/* =========================================================
   GALLERY PAGE STYLES
   Color Palette (matches site):
   - Navy Blue:    #0f2748
   - Deep Blue:    #123b67
   - Cyan Blue:    #0788d1 / #009fe3
   - Light Blue:   #e8f6ff
   - Accent Gold:  #e4ac1c
   - Body Text:    #6c7a89
========================================================= */


/* ==================== GENERAL ==================== */

.section-padding {
    padding: 80px 0;
}

.section-badge {
    display: inline-block;
    background: #e4ac1c;
    color: #0f2748;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 14px;
}

.section-title {
    color: #0f2748;
    font-weight: 700;
    font-size: 38px;
}

.section-description {
    max-width: 700px;
    margin: 15px auto 0;
    color: #6c7a89;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   HERO
========================================================= */

.gallery-hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url("../images/index/commercial-ro.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 72, 0.82);
}

.min-vh-50 {
    min-height: 480px;
}

.gallery-hero-badge {
    display: inline-block;
    background: #e4ac1c;
    color: #0f2748;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
}

.gallery-hero h1 {
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.gallery-hero p {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
}


/* =========================================================
   GALLERY INTRO
========================================================= */

.gallery-intro-section {
    background: radial-gradient(circle at 5% 20%, rgb(9 68 102 / 40%), #1191be33 28%),
                radial-gradient(circle at 95% 80%, rgba(0, 174, 239, 0.07), transparent 30%),
                #f7fbff;
    position: relative;
    overflow: hidden;
}


/* =========================================================
   FILTER BUTTONS
========================================================= */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid #d5e8fa;
    background: #ffffff;
    color: #123b67;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e8f6ff;
    color: #0078c9;
    border-color: #b8dcf5;
}

.filter-btn.active {
    background: linear-gradient(135deg, #0078d4, #009fe3);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 126, 207, 0.25);
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {
    position: relative;
}


/* Hide / Show animation for filter */

.gallery-item {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    display: block;
    animation: galleryFade 0.45s ease;
}

@keyframes galleryFade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================================================
   GALLERY CARD
========================================================= */

.gallery-card {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(18, 82, 130, 0.08);
    transition: all 0.35s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 109, 180, 0.16);
}


/* =========================================================
   GALLERY IMAGE
========================================================= */

.gallery-image {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
    background: linear-gradient(135deg, #edf9ff, #dff3ff);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.08);
}


/* =========================================================
   GALLERY OVERLAY
========================================================= */

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background: linear-gradient(
        to top,
        rgba(15, 39, 72, 0.92) 0%,
        rgba(15, 39, 72, 0.55) 45%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}


/* Tag */

.gallery-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 5px 14px;
    border-radius: 50px;
    background: #e4ac1c;
    color: #0f2748;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    transform: translateY(12px);
    transition: transform 0.35s ease 0.05s;
}

.gallery-card:hover .gallery-tag {
    transform: translateY(0);
}


/* Title */

.gallery-overlay h5 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    transform: translateY(12px);
    transition: transform 0.35s ease 0.1s;
}

.gallery-card:hover .gallery-overlay h5 {
    transform: translateY(0);
}


/* Description */

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.80);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px 0;
    transform: translateY(12px);
    transition: transform 0.35s ease 0.15s;
}

.gallery-card:hover .gallery-overlay p {
    transform: translateY(0);
}


/* Zoom Button */

.gallery-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0078c9;
    font-size: 20px;
    cursor: pointer;
    transform: scale(0.6);
    opacity: 0;
    transition: all 0.35s ease 0.1s;
}

.gallery-card:hover .gallery-zoom {
    transform: scale(1);
    opacity: 1;
}

.gallery-zoom:hover {
    background: #e4ac1c;
    color: #0f2748;
}


/* =========================================================
   LIGHTBOX MODAL
========================================================= */

.gallery-modal .modal-content {
    background: #0f2748;
    border: none;
    border-radius: 18px;
    overflow: hidden;
}

.gallery-modal .modal-body {
    position: relative;
}

.gallery-modal .modal-body img {
    display: block;
    max-height: 75vh;
    object-fit: contain;
    background: #ffffff;
}

.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #0f2748;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: #e4ac1c;
    color: #0f2748;
    transform: rotate(90deg);
}

.gallery-modal-caption {
    padding: 18px 25px;
    background: #0f2748;
    text-align: center;
}

.gallery-modal-caption h5 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}


/* =========================================================
   CTA
========================================================= */

.gallery-cta {
    position: relative;
    padding: 90px 0;
    background-image: url("../images/index/cta-banner.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 72, 0.85);
}

.cta-icon {
    font-size: 42px;
    color: #e4ac1c;
}

.gallery-cta h2 {
    font-size: 38px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .section-title {
        font-size: 32px;
    }

    .gallery-image {
        height: 260px;
    }

    .gallery-cta h2 {
        font-size: 32px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .section-padding {
        padding: 55px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
    }

    .gallery-hero {
        min-height: 420px;
    }

    .min-vh-50 {
        min-height: 420px;
    }

    .gallery-hero h1 {
        font-size: 30px;
    }

    .gallery-hero p {
        font-size: 16px;
    }

    .gallery-hero .btn-lg {
        font-size: 15px;
        padding: 10px 18px;
        margin-bottom: 8px;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .gallery-image {
        height: 240px;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(15, 39, 72, 0.92) 0%,
            rgba(15, 39, 72, 0.45) 55%,
            transparent 100%
        );
    }

    .gallery-tag,
    .gallery-overlay h5,
    .gallery-overlay p {
        transform: translateY(0);
    }

    .gallery-zoom {
        transform: scale(1);
        opacity: 1;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .gallery-cta {
        padding: 65px 15px;
    }

    .gallery-cta h2 {
        font-size: 26px;
    }

    .gallery-cta .btn-lg {
        font-size: 15px;
        padding: 10px 20px;
        margin-bottom: 8px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .section-title {
        font-size: 25px;
    }

    .gallery-hero h1 {
        font-size: 26px;
    }

    .gallery-hero p {
        font-size: 15px;
    }

    .gallery-hero-badge {
        font-size: 12px;
        padding: 7px 16px;
    }

    .filter-btn {
        padding: 7px 15px;
        font-size: 12px;
    }

    .gallery-image {
        height: 220px;
    }

    .gallery-overlay h5 {
        font-size: 16px;
    }

    .gallery-overlay p {
        font-size: 12px;
    }

    .gallery-zoom {
        width: 36px;
        height: 36px;
        font-size: 16px;
        top: 15px;
        right: 15px;
    }

    .gallery-modal-close {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .gallery-modal-caption h5 {
        font-size: 16px;
    }
}