/********** Nachu Investments CSS — Enhanced **********/

/* ---------- Design Tokens ---------- */
:root {
    --primary: #334b95;
    --secondary: #fd6a00;
    --light: #e8ecf7;
    --dark: #1a2d5a;
    --bg: #f8f9ff;
    --text: #1a2d5a;
    --muted: #6b7280;
    --radius: 10px;
    --shadow-sm: 0 2px 12px rgba(51, 75, 149, 0.08);
    --shadow-md: 0 4px 30px rgba(51, 75, 149, 0.12);
    --shadow-lg: 0 8px 48px rgba(51, 75, 149, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Override Bootstrap green with Nachu blue */
    --bs-primary: #334b95;
    --bs-primary-rgb: 51, 75, 149;
    --bs-link-color: #334b95;
    --bs-link-hover-color: #1a2d5a;
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Plus Jakarta Sans", "Jost", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.7;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}
h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}
h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}
p {
    color: var(--muted);
}

/* ---------- Utility ---------- */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s ease-out,
        visibility 0s linear 0.5s;
    z-index: 99999;
}
#spinner.show {
    transition:
        opacity 0.5s ease-out,
        visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
.text-primary {
    color: var(--primary) !important;
}
.bg-primary {
    background-color: var(--primary) !important;
}
.border-primary {
    border-color: var(--primary) !important;
}
.bg-dark {
    background-color: var(--dark) !important;
}
.bg-light {
    background-color: rgba(51, 75, 149, 0.06) !important;
}
.rounded-nachu {
    border-radius: var(--radius) !important;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    display: none;
    right: 28px;
    bottom: 28px;
    z-index: 99;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.back-to-top:hover {
    background: var(--dark);
    transform: translateY(-3px);
    color: #fff;
}

/* ---------- Buttons ---------- */
.btn {
    transition: var(--transition);
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.01em;
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}
.btn-primary,
.btn-outline-primary:hover {
    color: #fff !important;
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(51, 75, 149, 0.28);
}
.btn-primary:hover {
    background-color: var(--dark);
    border-color: var(--dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 45, 90, 0.35);
}
.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(253, 106, 0, 0.26);
}
.btn-secondary:hover {
    background-color: #d45800;
    border-color: #d45800;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 88, 0, 0.33);
}
.btn-square {
    width: 38px;
    height: 38px;
}
.btn-sm-square {
    width: 32px;
    height: 32px;
}
.btn-lg-square {
    width: 48px;
    height: 48px;
}
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* ---------- Navbar ---------- */
.nachu-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 12px rgba(51, 75, 149, 0.08);
}
.nachu-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
}
.nachu-nav__brand img {
    height: 64px;
    display: block;
}
/* Desktop links */
.nachu-nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nachu-nav__link {
    position: relative;
    padding: 0.5rem 0.85rem;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.nachu-nav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.nachu-nav__link:hover,
.nachu-nav__link.active {
    color: var(--primary);
}
.nachu-nav__link:hover::after,
.nachu-nav__link.active::after {
    transform: scaleX(1);
}
/* Hamburger button */
.nachu-nav__toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}
.nachu-nav__toggler:hover {
    background: rgba(51, 75, 149, 0.08);
}
.nachu-nav__toggler span {
    display: block;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        width 0.3s ease;
    transform-origin: center;
}
.nachu-nav__toggler span:nth-child(1) {
    width: 24px;
}
.nachu-nav__toggler span:nth-child(2) {
    width: 18px;
}
.nachu-nav__toggler span:nth-child(3) {
    width: 24px;
}
/* Animate to X */
.nachu-nav__toggler.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 24px;
}
.nachu-nav__toggler.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nachu-nav__toggler.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 24px;
}
/* Mobile drawer */
.nachu-nav__drawer {
    overflow: hidden;
    max-height: 0;
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.35s ease;
    background: #fff;
    border-top: 1px solid rgba(51, 75, 149, 0.08);
    padding: 0 1.5rem;
}
.nachu-nav__drawer.open {
    max-height: 400px;
    padding: 0.75rem 1.5rem 1.25rem;
}
.nachu-nav__drawer-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(51, 75, 149, 0.07);
    transition:
        color 0.2s,
        padding-left 0.2s;
}
.nachu-nav__drawer-link:last-child {
    border-bottom: none;
}
.nachu-nav__drawer-link:hover,
.nachu-nav__drawer-link.active {
    color: var(--primary);
    padding-left: 0.5rem;
}
/* Show toggler on mobile, hide desktop links */
@media (max-width: 991.98px) {
    .nachu-nav__links {
        display: none;
    }
    .nachu-nav__toggler {
        display: flex;
    }
    .nachu-nav__inner {
        height: 70px;
        padding: 0 1rem;
    }
    .nachu-nav__brand img {
        height: 54px;
    }
}
@media (min-width: 992px) {
    .nachu-nav__toggler {
        display: none;
    }
    .nachu-nav__drawer {
        display: none;
    }
}

/* ---------- Hero Carousel ---------- */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(
        160deg,
        rgba(26, 45, 90, 0.75) 0%,
        rgba(51, 75, 149, 0.55) 100%
    );
    z-index: 1;
    padding: 1rem;
}
.carousel-caption h1 {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.hero-title {
    font-size: clamp(1.4rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--secondary);
}
@media (max-width: 576px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* ---------- Page Header ---------- */
.page-header {
    background:
        linear-gradient(rgba(26, 45, 90, 0.75), rgba(51, 75, 149, 0.6)),
        url(../img/aboutpage.webp) center center / cover no-repeat;
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 17px;
    color: var(--light);
}

/* ---------- Facts Strip ---------- */
.facts {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}
.facts .display-4 {
    font-size: 3rem;
    font-weight: 800;
}

/* ---------- Service Cards ---------- */
.service-item {
    position: relative;
    text-align: left;
    border-radius: var(--radius);
    overflow: hidden;
}
.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}
.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 0.5s ease;
    z-index: -1;
}
.service-item:hover .service-img img {
    transform: scale(1);
}
.service-item .service-text {
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-radius: var(--radius);
}
.service-item:hover .service-text {
    background: rgba(26, 45, 90, 0.9);
}
.service-item .service-text h4,
.service-item .service-text p {
    transition: color 0.3s;
}
.service-item:hover .service-text h4 {
    color: #fff;
}
.service-item:hover .service-text p {
    color: var(--light);
}
.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: var(--transition);
}
.service-item:hover .service-text .btn-square {
    background: rgba(255, 255, 255, 0.15);
}
.service-item:hover .service-text .btn-square i {
    color: #fff !important;
}
.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: width 0.3s ease;
    border-radius: 6px;
}
.service-item:hover .service-text .btn {
    width: 118px;
}

/* ---------- Generic hover cards ---------- */
.card-hover {
    transition: var(--transition);
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

/* ---------- Team ---------- */
.team-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.team-item img {
    transition: transform 0.4s ease;
}
.team-item:hover img {
    transform: scale(1.04);
}
.team-item .team-text {
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}
.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}
.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
    border-radius: 50%;
}
.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

/* ---------- Focus Ring — override Bootstrap green ---------- */
:root {
    --bs-focus-ring-color: rgba(51, 75, 149, 0.25);
    --bs-focus-ring-width: 3px;
}
*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(51, 75, 149, 0.25) !important;
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(51, 75, 149, 0.2) !important;
    outline: none !important;
}
.btn:focus,
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(51, 75, 149, 0.25) !important;
    outline: none !important;
}
.btn-secondary:focus,
.btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(253, 106, 0, 0.3) !important;
}
.btn-outline-danger:focus,
.btn-outline-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

/* ---------- Accordion ---------- */
.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: var(--light);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(51, 75, 149, 0.2);
}

/* ---------- Contact Form ---------- */
.contact-input {
    height: 52px !important;
    border: 1.5px solid rgba(51, 75, 149, 0.15) !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--dark) !important;
    box-shadow: none !important;
}
.contact-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(51, 75, 149, 0.12) !important;
}
.contact-textarea {
    border: 1.5px solid rgba(51, 75, 149, 0.15) !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--dark) !important;
    box-shadow: none !important;
}
.contact-textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(51, 75, 149, 0.12) !important;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark) !important;
}
.footer p {
    color: rgba(232, 236, 247, 0.72);
    line-height: 1.8;
}
.footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1.25rem;
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    text-align: left;
    color: rgba(232, 236, 247, 0.68);
    font-weight: 500;
    text-transform: capitalize;
    transition: var(--transition);
    font-size: 0.9rem;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--secondary);
}
.footer .btn.btn-link:hover {
    color: #fff;
    letter-spacing: 0.5px;
    box-shadow: none;
}
.footer-contact i {
    color: var(--secondary);
    width: 18px;
    margin-right: 8px;
}

/* ---------- Social Buttons ---------- */
.social-btn {
    background: rgba(232, 236, 247, 0.12);
    color: #e8ecf7;
    transition: var(--transition);
}
.social-btn:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Mobile Utilities ---------- */
@media (max-width: 575.98px) {
    .container-xxl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .display-5 {
        font-size: 1.6rem !important;
    }
    .facts .display-4 {
        font-size: 2.2rem;
    }
    .service-item .service-text {
        padding: 1.5rem !important;
    }
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 38px;
        height: 38px;
    }
}

/* ---------- Copyright ---------- */
.copyright {
    color: rgba(232, 236, 247, 0.55);
    background: #0d1a38;
    font-size: 0.875rem;
}
.copyright a {
    color: rgba(232, 236, 247, 0.8);
    text-decoration: none;
}
.copyright a:hover {
    color: #fff;
}

/* ============================================================
   Gallery Filter Card
   ============================================================ */
.gallery-filter-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border-top: 3px solid var(--primary);
    margin-bottom: 2.5rem;
}

/* Header */
.gallery-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    background: rgba(51, 75, 149, 0.03);
    border-bottom: 1px solid rgba(51, 75, 149, 0.08);
    font-size: 0.9rem;
}
.gallery-active-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gallery-total-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

/* Body */
.gallery-filter-body {
    padding: 1.5rem;
}

/* Labels */
.gallery-filter-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.gallery-filter-label i {
    margin-right: 4px;
    opacity: 0.7;
}

/* Search */
.gallery-search-row {
    display: flex;
    gap: 0;
}
.gallery-search-wrap {
    position: relative;
    flex: 1;
}
.gallery-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 2;
}
.gallery-search-input {
    width: 100%;
    height: 44px;
    border: 1.5px solid rgba(51, 75, 149, 0.18);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #fafbff;
    padding: 0 1rem 0 2.25rem;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--dark);
    transition: var(--transition);
    outline: none;
}
.gallery-search-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: none;
}
.gallery-search-input::placeholder {
    color: var(--muted);
}
.gallery-search-btn {
    height: 44px !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 0 1.25rem !important;
    font-size: 0.88rem !important;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Type pill toggles */
.gallery-type-pills {
    display: flex;
    gap: 6px;
}
.gallery-type-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 10px;
    border: 1.5px solid rgba(51, 75, 149, 0.18);
    border-radius: 8px;
    background: #fafbff;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.gallery-type-pill i {
    font-size: 0.8rem;
}
.gallery-type-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(51, 75, 149, 0.05);
}
.gallery-type-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 3px 12px rgba(51, 75, 149, 0.28);
}

/* Selects */
.gallery-select.form-select {
    height: 44px !important;
    border: 1.5px solid rgba(51, 75, 149, 0.18) !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    background-color: #fafbff !important;
    color: var(--dark) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.gallery-select.form-select:focus {
    border-color: var(--primary) !important;
    background-color: #fff !important;
}

/* Footer */
.gallery-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    background: rgba(51, 75, 149, 0.03);
    border-top: 1px solid rgba(51, 75, 149, 0.08);
}
.gallery-results-text {
    font-size: 0.82rem;
    color: var(--muted);
}
.gallery-results-text strong {
    color: var(--dark);
}

.gallery-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 1.5px solid rgba(51, 75, 149, 0.25);
    border-radius: 999px;
    background: transparent;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.gallery-reset-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Gallery Cards ── */
.gallery-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
}
.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.gallery-card-media {
    display: block;
    position: relative;
    padding-top: 66%;
    overflow: hidden;
    text-decoration: none;
    border: 0;
    width: 100%;
    background: linear-gradient(
        160deg,
        rgba(26, 45, 90, 0.12),
        rgba(51, 75, 149, 0.04)
    );
    cursor: pointer;
}
.gallery-card-media--video {
    appearance: none;
}
.gallery-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.gallery-card:hover .gallery-card-img {
    transform: scale(1.05);
}
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 45, 90, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-card-overlay i {
    color: #fff;
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}
.gallery-card-overlay--visible {
    opacity: 1;
}

.gallery-card-play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--secondary);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.gallery-card-play-button i {
    color: inherit;
    font-size: 1.35rem;
    margin-left: 3px;
}

.gallery-card-body {
    padding: 1rem 1.25rem 1.25rem;
}
.gallery-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}
.gallery-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gallery-card-badge--photo {
    background: rgba(51, 75, 149, 0.1);
    color: var(--primary);
}
.gallery-card-badge--video {
    background: rgba(253, 106, 0, 0.1);
    color: var(--secondary);
}

/* ── Empty State ── */
.gallery-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}
.gallery-empty-icon {
    font-size: 3rem;
    color: rgba(51, 75, 149, 0.18);
    margin-bottom: 1rem;
    display: block;
}
.gallery-empty h5 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.gallery-photo-modal {
    padding: 1.5rem;
    background:
        radial-gradient(circle at top, rgba(51, 75, 149, 0.1), transparent 52%),
        linear-gradient(
            180deg,
            rgba(248, 250, 252, 0.98),
            rgba(255, 255, 255, 1)
        );
}

.gallery-photo-modal__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72vh, 760px);
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    line-height: 0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.gallery-photo-modal__img {
    width: 100%;
    max-height: min(78vh, 860px);
    object-fit: contain;
    display: block;
}

.gallery-video-modal {
    padding: 1.25rem;
}

.gallery-video-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-video-modal__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
}

.gallery-video-modal__title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark);
}

.gallery-video-modal__caption {
    margin: 0.5rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.gallery-video-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(51, 75, 149, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-video-modal__close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.gallery-video-modal__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: var(--shadow-lg);
}

.gallery-video-modal__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Mobile ── */
@media (max-width: 767.98px) {
    .gallery-photo-modal {
        padding: 1rem;
    }
    .gallery-photo-modal__img-wrap {
        min-height: auto;
        border-radius: 16px;
    }
    .gallery-filter-body {
        padding: 1rem;
    }
    .gallery-filter-header,
    .gallery-filter-footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    .gallery-type-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .gallery-type-pill {
        min-width: 72px;
        font-size: 0.78rem;
        padding: 0 8px;
    }
    .gallery-card-play-button {
        width: 54px;
        height: 54px;
    }
    .gallery-video-modal {
        padding: 1rem;
    }
    .gallery-video-modal__header {
        margin-bottom: 0.85rem;
    }
    .gallery-video-modal__title {
        font-size: 1.05rem;
    }
}
