:root {
    --primary-blue: #0A2540;
    --accent-gold: #FFC107;
    --danger-red: #DC3545;
    --success-green: #198754;
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f8f9fa; }
.top-bar { background-color: var(--primary-blue); color: #fff; font-size: 0.85rem; }
.main-header { background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar-custom { background-color: #0d3b66; }
.navbar-custom .nav-link { color: #fff !important; font-weight: 500; text-transform: uppercase; font-size: 0.9rem; padding: 12px 18px !important; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active { background-color: var(--accent-gold); color: #000 !important; }
.ticker-wrap { background: var(--success-green); color: white; padding: 2px; font-weight: 600; }
.card-custom { border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.3s; }
.card-custom:hover { transform: translateY(-5px); }
.footer-main { background-color: var(--primary-blue); color: #ccc; }

/* ===== Shared Lightbox Modal (Home + Gallery pages) ===== */
#galleryModal .carousel-item { display: none; }
#galleryModal .carousel-item.active { display: block !important; }
#galleryModal .lightbox-img {
    max-height: 78vh;
    max-width: 85vw;
    object-fit: contain;
    border-radius: 6px;
}
#galleryModal .carousel-control-prev,
#galleryModal .carousel-control-next {
    width: 8%;
    opacity: 0.9;
    z-index: 1055;
}
#galleryModal .carousel-control-prev-icon,
#galleryModal .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
}
@media (max-width: 767.98px) {
    #galleryModal .lightbox-img { max-width: 92vw; max-height: 70vh; }
    #galleryModal .carousel-control-prev,
    #galleryModal .carousel-control-next { width: 12%; }
}

/* ===== Home Page: Hero Slider ===== */
.hero-slide-img-wrap {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #000;
}
.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 991.98px) {
    .hero-slide-img-wrap { height: 400px; }
}
@media (max-width: 767.98px) {
    .hero-slide-img-wrap {
        height: auto;
        background-color: #000;
    }
    .hero-slide-img {
        height: auto;
        object-fit: contain;
        max-height: 60vh;
    }
}
@media (max-width: 480px) {
    .hero-slide-img { max-height: 50vh; }
}

/* ===== Home Page: Gallery Preview Section ===== */
.home-gallery-card { height: 220px; background-color: #000; cursor: pointer; }
.home-gallery-img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.3s ease; }
.home-gallery-card:hover .home-gallery-img { transform: scale(1.08); opacity: 0.9; }
.home-gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 50%); }

/* ===== Gallery Page ===== */

/* Category filter pills */
.gallery-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 9px 18px;
    border-radius: 50px;
    background: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.gallery-pill:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
}
.gallery-pill.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}
.gallery-pill-count {
    margin-left: 8px;
    background: rgba(0,0,0,0.08);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 20px;
}
.gallery-pill.active .gallery-pill-count {
    background: rgba(255,255,255,0.25);
}

/* Photo grid */
.gallery-card { height: 160px; background-color: #000; cursor: pointer; }
.gallery-img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-card:hover .gallery-img { transform: scale(1.08); opacity: 0.9; }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%); }
@media (min-width: 768px) {
    .gallery-card { height: 190px; }
}

/* Pagination */
.pagination {
    gap: 8px;
    align-items: center;
}
.pagination .page-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    color: #0A2540;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0;
    transition: 0.2s;
    margin-left: 10px;
}
.pagination .page-link:hover {
    background: #f1f5f9;
    color: #0A2540;
    border-color: #cbd5e1;
}
.pagination .active .page-link {
    background: #0A2540;
    border-color: #0A2540;
    color: #fff;
    box-shadow: 0 3px 8px rgba(10,37,64,0.25);
}
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    width: auto;
    padding: 0 14px;
    border-radius: 20px !important;
}

/* ===== Video Gallery Page ===== */
.video-card {
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.video-thumb-wrap {
    position: relative;
    height: 170px;
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
}
.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.video-thumb-wrap:hover .video-thumb-img {
    transform: scale(1.06);
    opacity: 0.75;
}
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    pointer-events: none;
}
@media (min-width: 768px) {
    .video-thumb-wrap { height: 190px; }
}