/* =====================================================================
   LSM Website - Stylesheet Publik
   ===================================================================== */
:root {
    --primary: #7a1b41;
    --primary-rgb: 122, 27, 65;
    --primary-dark: #5c1432;
    --primary-mid: #963059;
    --primary-light: #edd5df;
    --secondary: #963059;
    --accent: #7a1b41;
    --dark: #1e1e1e;
    --charcoal: #2b2b2b;
    --gray: #6c757d;
    --light: #f4f6f8;
    --body: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow: 0 10px 30px rgba(0,0,0,.10);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.15);
    --radius: 4px;
}

* { scroll-behavior: smooth; }

html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Roboto', system-ui, sans-serif;
    color: #3a3a3a;
    background: var(--body);
    overflow-x: clip;
    max-width: 100%;
}

main {
    overflow-x: clip;
    max-width: 100%;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

.container,
.container-fluid {
    width: 100%;
}

/* Desktop: container tetap (selaras navbar) — kecuali index (viewport-fit) */
@media (min-width: 992px) {
    body:not(.viewport-fit) .container {
        max-width: 960px;
        margin-inline: auto;
    }

    body:not(.viewport-fit) .container-fluid {
        max-width: 960px;
        margin-inline: auto;
        padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    }
}

@media (min-width: 1200px) {
    body:not(.viewport-fit) .container,
    body:not(.viewport-fit) .container-fluid {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    body:not(.viewport-fit) .container,
    body:not(.viewport-fit) .container-fluid {
        max-width: 1320px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--primary);
}

a { text-decoration: none; transition: all .2s ease; }

/* Tombol bergaya pill, huruf kapital ber-spasi */
.btn {
    border-radius: 50rem;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
    padding: .6rem 1.6rem;
}
.btn-lg { padding: .8rem 2.2rem; }
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-disabled-bg: var(--primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
}
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* ---------- Brand logo ---------- */
.brand-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    padding: 0 0 8px;
    line-height: 1.05;
    text-align: center;
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: padding .35s ease, font-size .35s ease;
}
.brand-logo-line {
    display: block;
    font-size: 1.2rem;
}
.brand-logo-line + .brand-logo-line {
    margin-top: 3px;
}
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ---------- Section ---------- */
.eyebrow {
    color: var(--secondary);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .82rem;
}
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-light { background: var(--light); }
.section-head { margin-bottom: 48px; }
.section-head .eyebrow {
    color: var(--secondary);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .82rem;
}
.section-head h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 0 14px;
    color: var(--primary);
}
.section-head p { color: var(--gray); max-width: 620px; font-weight: 300; }

/* ---------- Cards ---------- */
.card-custom {
    background: #fff;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}
.card-custom:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-custom .card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.card-custom .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-custom:hover .card-img-wrap img { transform: scale(1.06); }
.card-custom .card-cat {
    position: absolute; top: 12px; left: 12px;
    background: var(--primary); color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase; letter-spacing: 1px;
    font-size: .72rem; font-weight: 500;
    padding: 4px 12px; border-radius: 50px;
}
.card-custom .card-body { padding: 22px; }
.card-custom .card-title { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; font-weight: 600; }
.card-custom .card-title a { color: var(--primary); }
.card-custom .card-title a:hover { color: var(--primary-light); }
.card-meta { font-size: .8rem; color: var(--gray); }
.card-meta i { color: var(--primary); }

/* ---------- Overlay image card (ala Kurawal) ---------- */
.overlay-card {
    position: relative; display: block;
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.overlay-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.overlay-card:hover img { transform: scale(1.07); }
.overlay-card .ov {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 35%, rgba(15,15,15,.88));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 26px;
    transition: background .3s;
}
.overlay-card:hover .ov { background: linear-gradient(transparent 20%, rgba(var(--primary-rgb), .9)); }
.overlay-card .ov-cat {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase; letter-spacing: 2px;
    font-size: .72rem; color: var(--secondary); margin-bottom: 6px;
}
.overlay-card .ov h3 {
    color: #fff; font-size: 1.5rem; line-height: 1.2;
    text-transform: uppercase; font-weight: 600; margin: 0;
}
.overlay-card .ov p { color: rgba(255,255,255,.85); font-size: .85rem; margin: 8px 0 0; font-weight: 300; }
.overlay-card .ov-status { position: absolute; top: 14px; right: 14px; z-index: 2; }

/* ---------- Team carousel (Owl) ---------- */
.team-carousel-wrap {
    position: relative;
    padding: 0 80px;
}
.team-overlay-card {
    cursor: default;
    height: 100%;
}
.team-overlay-card .ov h3 {
    font-size: 1.25rem;
}
.team-carousel.owl-carousel {
    position: relative;
}
.team-carousel.owl-carousel .owl-stage-outer {
    padding: 8px 0 24px;
}
.team-carousel .owl-nav {
    position: absolute;
    top: 0;
    left: -80px;
    right: -80px;
    bottom: 40px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}
.team-carousel .owl-nav button.owl-prev,
.team-carousel .owl-nav button.owl-next {
    position: static;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: var(--primary) !important;
    color: #fff !important;
    font-size: 1.25rem !important;
    line-height: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background .2s, transform .2s;
    box-shadow: var(--shadow-sm);
}
.team-carousel .owl-nav button.owl-prev:hover,
.team-carousel .owl-nav button.owl-next:hover {
    background: var(--primary-light) !important;
    transform: scale(1.05);
}
.team-carousel .owl-dots {
    margin-top: 8px;
}
.team-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: rgba(var(--primary-rgb), .25);
    transition: background .2s, transform .2s;
}
.team-carousel .owl-dots .owl-dot.active span,
.team-carousel .owl-dots .owl-dot:hover span {
    background: var(--primary);
    transform: scale(1.15);
}
@media (max-width: 767.98px) {
    .team-carousel-wrap {
        padding: 0 44px;
        overflow: hidden;
    }
    .team-carousel .owl-nav {
        left: 0;
        right: 0;
    }
}

/* ---------- Program card ---------- */
.program-info { font-size: .85rem; }
.program-info li { display: flex; align-items: start; gap: 8px; margin-bottom: 6px; color: #4a5760; }
.program-info i { color: var(--primary); margin-top: 3px; }

/* ---------- Feature box (about/why) ---------- */
.feature-box {
    text-align: center;
    padding: 32px 22px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: transform .25s;
}
.feature-box:hover { transform: translateY(-6px); }
.feature-box .icon {
    width: 70px; height: 70px; margin: 0 auto 18px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; font-size: 1.8rem;
}

/* ---------- Page header ---------- */
.page-header {
    background-color: var(--primary-dark);
    color: #fff;
    min-height: 65vh;
    padding: 160px 0 88px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.12);
    animation: pageHeaderZoom 1.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    will-change: transform;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(20,20,20,.85) 0%, rgba(var(--primary-rgb), .72) 100%);
    opacity: 0;
    animation: pageHeaderOverlayIn 1s ease forwards;
}
.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.page-header h1 {
    opacity: 0;
    will-change: transform, opacity;
    animation: heroFadeUp .75s cubic-bezier(0.255, 0.670, 0.000, 1.010) forwards;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 0;
    animation-delay: .25s;
}
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@keyframes pageHeaderZoom {
    from { transform: scale(1.14); }
    to   { transform: scale(1); }
}
@keyframes pageHeaderOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .page-header-bg,
    .page-header::before,
    .page-header h1 {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ---------- About ---------- */
/* ---------- About history (2-col + collage) ---------- */
.history-section {
    background: #fff;
}
.history-headline {
    font-size: clamp(2rem, 3.8vw, 2.85rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--dark);
    margin-bottom: 1.25rem;
}
.history-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #6c757d;
    margin-bottom: 1rem;
}
.history-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #6c757d;
    margin-bottom: 0;
}
.history-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
    margin-top: 2.5rem;
}
.history-stat-num {
    font-size: clamp(2.4rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    font-family: 'Roboto Condensed', sans-serif;
}
.history-stat-label {
    margin-top: .55rem;
    font-size: .95rem;
    line-height: 1.45;
    color: #6c757d;
}
.history-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    min-height: clamp(360px, 42vw, 520px);
}
.history-collage-stack {
    display: grid;
    grid-template-rows: 1.15fr 0.85fr;
    gap: 14px;
    min-height: 100%;
}
.history-collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}
.history-collage-tall {
    min-height: 100%;
}
@media (max-width: 991.98px) {
    .history-collage {
        min-height: 380px;
        max-width: 560px;
        margin: 0 auto;
    }
    .history-stats {
        gap: 1.5rem 2rem;
    }
}

.about-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- Tentang Kami (Beranda) ---------- */
.home-about-section {
    background: #fff;
}
.home-about-collage {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: clamp(360px, 42vw, 500px);
    border-top-right-radius: 72px;
    border-bottom-right-radius: 72px;
    overflow: hidden;
}
.home-about-strip {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.home-about-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-about-strip--short { height: 72%; }
.home-about-strip--mid   { height: 88%; }
.home-about-strip--tall  { height: 100%; }
.home-about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 1.25rem;
    font-family: 'Roboto Condensed', sans-serif;
}
.home-about-accent {
    color: var(--primary-light);
}
.home-about-desc {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}
@media (max-width: 991.98px) {
    .home-about-collage {
        max-width: 560px;
        margin: 0 auto;
        border-radius: 24px;
    }
    .home-about-desc {
        max-width: none;
    }
}

/* ---------- Visi & Misi ---------- */
.vm-section {
    background: #fff;
    overflow: hidden;
}
.vm-section > .row {
    margin: 0;
}
.vm-panel {
    padding: clamp(2.5rem, 5vw, 4.5rem);
    min-height: 100%;
    height: 100%;
}
.vm-vision {
    background: #fff;
}
.vm-mission {
    background: rgba(var(--primary-rgb), .07);
    border-top-right-radius: 56px;
}
.vm-icon {
    font-size: 1.65rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1.35rem;
}
.vm-title {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.25rem;
}
.vm-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #6c757d;
    margin-bottom: 1rem;
}
@media (max-width: 991.98px) {
    .vm-mission {
        border-top-right-radius: 0;
        border-top-left-radius: 40px;
    }
}

.list-check { list-style: none; padding: 0; }
.list-check li { padding: 8px 0 8px 32px; position: relative; }
.list-check li::before {
    content: '\F26E'; font-family: 'bootstrap-icons';
    position: absolute; left: 0; color: var(--primary); font-size: 1.1rem;
}

/* ---------- Org team ---------- */
.team-card { text-align: center; }
.team-card .avatar {
    width: 120px; height: 120px; border-radius: 50%;
    margin: 0 auto 14px; object-fit: cover;
    border: 4px solid #fff; box-shadow: var(--shadow);
    background: var(--light);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; color: var(--primary); font-weight: 700;
}
.team-card .name { font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.team-card .pos { color: var(--primary); font-size: .88rem; }

/* ---------- Gallery ---------- */
.gallery-page .gallery-item {
    aspect-ratio: 16 / 11;
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.gallery-page .gallery-item .overlay {
    padding: 20px;
}
.gallery-page .gallery-item .overlay span {
    font-size: 1rem;
}
.gallery-page .gallery-item .play-icon {
    font-size: 4rem;
}
.gallery-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3; box-shadow: var(--shadow-sm); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,.75));
    display: flex; align-items: flex-end; padding: 16px;
    opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { color: #fff; font-weight: 600; font-size: .9rem; }
.gallery-item .play-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 3rem; background: rgba(0,0,0,.3);
}

/* ---------- Instagram-style lightbox ---------- */
body.ig-lightbox-open { overflow: hidden; }
.ig-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 72px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}
.ig-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.ig-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}
.ig-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 1100px);
    max-height: min(90vh, 900px);
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    animation: igLightboxIn .28s ease;
}
@keyframes igLightboxIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
.ig-lightbox-media {
    flex: 1 1 auto;
    min-width: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.ig-lightbox-media img {
    max-width: 100%;
    max-height: min(90vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
}
.ig-lightbox-media .ig-lightbox-video {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: min(90vh, 900px);
}
.ig-lightbox-media .ig-lightbox-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.ig-lightbox-sidebar {
    flex: 0 0 340px;
    width: 340px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #efefef;
    background: #fff;
}
.ig-lightbox-sidebar-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #efefef;
}
.ig-lightbox-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ig-lightbox-head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ig-lightbox-author {
    font-size: .9rem;
    font-weight: 600;
    color: #262626;
    line-height: 1.2;
}
.ig-lightbox-badge {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--primary);
}
.ig-lightbox-sidebar-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
}
.ig-lightbox-caption {
    margin: 0 0 10px;
    font-size: .92rem;
    line-height: 1.55;
    color: #262626;
    word-break: break-word;
}
.ig-lightbox-caption strong {
    font-weight: 600;
    margin-right: 6px;
}
.ig-lightbox-desc {
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: #737373;
    white-space: pre-line;
}
.ig-lightbox-desc:empty { display: none; }
.ig-lightbox-sidebar-foot {
    padding: 12px 16px 16px;
    border-top: 1px solid #efefef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ig-lightbox-date {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #8e8e8e;
}
.ig-lightbox-counter {
    font-size: .75rem;
    color: #8e8e8e;
    font-weight: 500;
}
.ig-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.ig-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.ig-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #262626;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: transform .2s, background .2s;
}
.ig-lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.ig-lightbox-nav:disabled {
    opacity: 0.35;
    cursor: default;
    transform: translateY(-50%);
}
.ig-lightbox-prev { left: 16px; }
.ig-lightbox-next { right: 16px; }
.ig-lightbox--single .ig-lightbox-nav { display: none; }
@media (max-width: 991.98px) {
    .ig-lightbox {
        padding: 0;
        align-items: stretch;
    }
    .ig-lightbox-dialog {
        flex-direction: column;
        width: 100%;
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }
    .ig-lightbox-media {
        flex: 1 1 55%;
        min-height: 0;
    }
    .ig-lightbox-media img,
    .ig-lightbox-media .ig-lightbox-video {
        max-height: 100%;
    }
    .ig-lightbox-sidebar {
        flex: 0 0 auto;
        width: 100%;
        max-height: 45%;
    }
    .ig-lightbox-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.45);
    }
    .ig-lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
    }
    .ig-lightbox-prev { left: 8px; }
    .ig-lightbox-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .ig-lightbox-dialog { animation: none; }
}

/* ---------- Document list ---------- */
.doc-item {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: 12px; padding: 18px 20px;
    box-shadow: var(--shadow-sm); transition: all .2s;
}
.doc-item:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.doc-item .doc-icon {
    width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--primary-rgb), .1); color: var(--primary); font-size: 1.5rem;
}

/* ---------- Forms ---------- */
.form-card {
    background: #fff; border-radius: var(--radius);
    padding: 36px; box-shadow: var(--shadow);
}
.form-control, .form-select { padding: 11px 14px; border-radius: 10px; border-color: #dde5e0; }
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 .2rem rgba(var(--primary-rgb), .15);
}
.form-label { font-weight: 600; color: #3a4750; font-size: .9rem; }

/* ---------- Article content ---------- */
.article-page {
    padding-top: 56px;
    padding-bottom: 64px;
}
.article-page-inner {
    max-width: 960px;
}
.article-breadcrumb {
    margin-bottom: 1.75rem;
    padding: 0;
    background: none;
    font-size: .88rem;
}
.article-breadcrumb a {
    color: var(--gray);
    text-decoration: none;
}
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}
.article-breadcrumb .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}
.article-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 1.25rem;
    text-transform: none;
    letter-spacing: 0;
}
.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.article-date {
    font-size: .95rem;
    color: var(--gray);
}
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #dde3e8;
    color: var(--gray);
    font-size: .95rem;
    transition: all .2s;
}
.article-share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), .06);
}
.article-share-btn--facebook {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.article-share-btn--facebook:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.article-hero {
    margin: 0 0 2.25rem;
    border-radius: 16px;
    overflow: hidden;
}
.article-hero img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.article-content { font-size: 1.05rem; line-height: 1.85; color: #3a4750; }
.article-content p { margin-bottom: 1.1rem; }
.article-content h2,
.article-content h3,
.article-content h4 { color: var(--dark); margin: 1.5rem 0 0.75rem; line-height: 1.35; }
.article-content ul,
.article-content ol { margin-bottom: 1.1rem; padding-left: 1.4rem; }
.article-content li { margin-bottom: 0.35rem; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--primary-light);
    background: rgba(var(--primary-rgb), 0.05);
}
.article-content table { width: 100%; margin-bottom: 1.1rem; border-collapse: collapse; }
.article-content th,
.article-content td { border: 1px solid #dde5e0; padding: 0.55rem 0.75rem; }
.article-content img { max-width: 100%; border-radius: 10px; }

.article-related {
    background: var(--light);
    padding: 64px 0 80px;
}
.article-related-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: 0;
}
.article-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.article-related-media {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 16 / 10;
}
.article-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.article-related-link:hover .article-related-media img {
    transform: scale(1.03);
}
.article-related-date {
    display: block;
    font-size: .85rem;
    color: var(--gray);
    margin-bottom: 8px;
}
.article-related-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--dark);
    margin: 0;
    transition: color .2s;
}
.article-related-link:hover .article-related-name {
    color: var(--primary);
}

/* ---------- News page ---------- */
.news-toolbar {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.news-search {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}
.news-search .form-control {
    border-radius: 50px;
    border-color: #dde3e8;
}
.news-search .btn {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
}
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: .75rem;
}
.news-filter-pill {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .72rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #dde3e8;
    color: var(--gray);
    text-decoration: none;
    transition: all .2s;
}
.news-filter-pill:hover,
.news-filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.news-archives .form-select {
    max-width: 280px;
    border-radius: var(--radius);
    font-size: .88rem;
}
.news-result-count {
    font-size: .9rem;
    color: var(--gray);
    margin-bottom: 2rem;
}
.news-grid {
    margin-bottom: .5rem;
}
.news-card {
    height: 100%;
}
.news-card-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.news-card-media {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1;
}
.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.news-card-link:hover .news-card-media img {
    transform: scale(1.03);
}
.news-card-meta {
    font-size: .9rem;
    font-weight: 400;
    color: #666;
    margin: 0 0 8px;
    line-height: 1.4;
}
.news-card-title {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0;
    transition: color .2s;
}
.news-card-link:hover .news-card-title {
    color: var(--primary);
}
.news-pagination {
    margin-top: 3rem;
    padding-top: 1rem;
}

/* ---------- Contact ---------- */
.contact-item {
    display: flex; gap: 16px; align-items: start; margin-bottom: 22px;
}
.contact-item .icon {
    width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--primary-rgb), .1); color: var(--primary); font-size: 1.3rem;
}
.contact-item h6 { margin-bottom: 2px; color: var(--dark); }
.contact-item p { margin: 0; color: var(--gray); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }
.empty-state i { font-size: 3.5rem; color: #cdd8d1; margin-bottom: 14px; }

/* ---------- Float buttons ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.7rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(37,211,102,.5);
    animation: pulse 2s infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5)} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }
.back-to-top {
    position: fixed; right: 22px; bottom: 88px; z-index: 998;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    display: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow); font-size: 1.2rem;
}
.back-to-top.show { display: flex; }

/* ---------- Footer ---------- */
.site-footer { background: #7a1b41; color: rgba(255,255,255,.7); padding-top: 64px; }
.footer-about { font-size: .92rem; line-height: 1.7; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 18px; font-weight: 600; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: .92rem; }
.footer-contact i { color: var(--primary-light); margin-top: 3px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: 8px;
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 48px; padding: 20px 0; font-size: .85rem;
}

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: all .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    html,
    body {
        overflow-x: clip;
        max-width: 100%;
        overscroll-behavior-x: none;
    }

    main,
    .home-koi-main {
        overflow-x: clip;
        max-width: 100%;
    }

    .container,
    .container-fluid {
        max-width: 100%;
        overflow-x: clip;
    }

    .row {
        max-width: 100%;
    }

    .page-header h1 {
        overflow-wrap: anywhere;
        word-break: break-word;
        padding-inline: 0.25rem;
    }

    .page-header-content {
        max-width: 100%;
        padding-inline: 0.5rem;
    }

    .article-content {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .article-content table,
    .article-content pre {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }

    .team-carousel-wrap {
        overflow: hidden;
    }

    .team-carousel.owl-carousel .owl-stage-outer {
        overflow: hidden;
    }
}

@media (max-width: 575px) {
    .section { padding: 56px 0; }
    .section-head h2 { font-size: 1.6rem; }
    .form-card { padding: 24px; }
}
