/* ============================================================
   ROOT VARIABLES & MODERN DESIGN SYSTEM
   ============================================================ */
:root {
    --green-h:      148;
    --green-s:      75%;
    --green-l:      26%;
    --green-base:   hsl(var(--green-h), var(--green-s), var(--green-l));      /* #10592e */
    --green-dk:     hsl(var(--green-h), var(--green-s), calc(var(--green-l) - 8%)); /* #073519 */
    --green-lt:     hsl(160, 84%, 40%);                                       /* #10b981 */
    --gold:         #ffc107;
    --gold-dk:      #e6a800;
    --gold-glow:    rgba(255, 193, 7, 0.4);
    
    --bg:           #f2f6f4;
    --card-bg:      rgba(255, 255, 255, 0.88);
    --border-color: rgba(25, 135, 84, 0.08);
    
    --text:         #111e17;
    --muted:        #50675b;
    --white:        #ffffff;
    
    --r-xl:         24px;
    --r-lg:         16px;
    --r-md:         12px;
    --r-sm:         8px;
    
    --sh-premium:   0 15px 40px rgba(15, 89, 46, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    --sh-hover:     0 25px 50px rgba(15, 89, 46, 0.09), 0 4px 15px rgba(0, 0, 0, 0.03);
    --tr:           0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   DEKORATIF GLOWING BACKGROUND BLOBS
   ============================================================ */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.28;
    pointer-events: none;
    animation: floatBlob 25s infinite alternate ease-in-out;
}
.blob-1 {
    width: 450px;
    height: 450px;
    background: rgba(16, 185, 129, 0.18);
    top: -100px;
    left: -100px;
}
.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 193, 7, 0.12);
    bottom: 8%;
    right: -120px;
    animation-delay: -6s;
    animation-duration: 28s;
}
.blob-3 {
    width: 350px;
    height: 350px;
    background: rgba(25, 135, 84, 0.14);
    top: 38%;
    left: 45%;
    animation-delay: -12s;
    animation-duration: 22s;
}
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(80px, 40px) scale(1.15) rotate(120deg); }
    100% { transform: translate(-60px, 90px) scale(0.9) rotate(240deg); }
}

/* ============================================================
   RESET & BODY SETUP
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 72px;
    overflow-x: hidden;
    position: relative;
}
@media (max-width: 768px) { body { padding-top: 62px; } }
main { flex: 1; }
a { text-decoration: none; color: inherit; transition: var(--tr); }
img { max-width: 100%; display: block; }

/* ============================================================
   SMART FLOATING CAPSULE NAVBAR
   ============================================================ */
#mainNavbar {
    background: linear-gradient(90deg, var(--green-dk), var(--green-base));
    height: 72px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}
#mainNavbar.navbar-scrolled {
    background: rgba(7, 53, 25, 0.78) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 193, 7, 0.28) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28) !important;
    margin: 10px auto !important;
    border-radius: 40px !important;
    max-width: 90% !important;
    left: 5% !important; right: 5% !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
}
#mainNavbar.navbar-scrolled .logo-brand {
    width: 38px; height: 38px;
}
#mainNavbar.navbar-scrolled .brand-title {
    font-size: 13.5px;
}
#mainNavbar.navbar-scrolled .brand-subtitle {
    font-size: 10px;
}
@media (max-width: 991px) {
    #mainNavbar.navbar-scrolled {
        border-radius: 20px !important;
        margin: 6px auto !important;
        max-width: 95% !important;
        left: 2.5% !important; right: 2.5% !important;
        height: auto !important;
    }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    background: #061f12;
    overflow: hidden;
}
.hero-slide {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 440px;
    max-height: 680px;
    overflow: hidden;
}
.hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.65) 100%);
}
.hero-content.glass-card {
    position: absolute;
    bottom: 24%;
    left: 8%;
    transform: translateY(0);
    z-index: 2;
    max-width: 580px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--r-xl);
    padding: 34px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    color: var(--white);
    animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    background: linear-gradient(to right, #ffffff, #ffd43b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 15px;
    opacity: 0.92;
    margin-bottom: 24px;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dk));
    color: #13221a;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: var(--tr);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.5);
    color: #000;
}
.animate-arrow {
    transition: transform 0.3s;
}
.hero-btn:hover .animate-arrow {
    transform: translateX(5px);
}
.hero-wave-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}
.hero-wave {
    width: 100%;
    height: auto;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 55vh;
        min-height: 350px;
    }
    .hero-img {
        position: absolute !important;
        height: 100% !important;
        object-fit: cover;
    }
    .hero-slide::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    }
    .hero-content.glass-card {
        position: absolute !important;
        bottom: 12% !important;
        left: 5% !important;
        right: 5% !important;
        max-width: 90% !important;
        margin: 0 !important;
        padding: 20px 22px !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    .hero-content h1 {
        font-size: 20px !important;
        font-weight: 700;
        margin-bottom: 8px;
    }
    .hero-content p {
        font-size: 12.5px !important;
        margin-bottom: 14px;
        line-height: 1.5;
    }
    .hero-btn {
        padding: 8px 18px !important;
        font-size: 11.5px !important;
    }
}
}

/* ============================================================
   FIXED MARQUEE WITH LINEAR TRANS-MASK (0 BUG / NO CUTOFF)
   ============================================================ */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 20px 0 10px;
}
.marquee-content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(90deg, var(--green-dk), var(--green-base));
    border-radius: 50px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 30px rgba(15, 110, 60, 0.14);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}
/* Masking gradients to fade text in and out smoothly on boundaries */
.marquee-content-wrap::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 72px;
    background: linear-gradient(to right, var(--green-dk) 40%, transparent);
    z-index: 5;
    pointer-events: none;
}
.marquee-content-wrap::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 48px;
    background: linear-gradient(to left, var(--green-base) 20%, transparent);
    z-index: 5;
    pointer-events: none;
}
.marquee-icon {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-left: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    animation: bellShake 2.5s infinite;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 24s linear infinite;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--white);
    position: relative;
    z-index: 1;
}

/* ============================================================
   STATS STRIP (FLOATING CARD DECK)
   ============================================================ */
.stats-strip {
    background: transparent;
    padding: 10px 0 35px;
    position: relative;
    z-index: 5;
}
.stats-grid {
    display: flex !important;
    justify-content: center;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
}
.glass-card-stat {
    flex: 1;
    min-width: 170px;
    max-width: 230px;
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--r-lg);
    padding: 16px 20px !important;
    box-shadow: var(--sh-premium);
    display: flex !important;
    align-items: center;
    gap: 14px;
    transition: var(--tr);
}
.glass-card-stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-hover);
    border-color: rgba(25, 135, 84, 0.2);
}
.stat-icon-glow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--green-base);
    transition: var(--tr);
}
.glass-card-stat:hover .stat-icon-glow {
    background: var(--green-base);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
    transform: scale(1.1) rotate(10deg);
}
.glass-card-stat div {
    display: flex;
    flex-direction: column;
}
.glass-card-stat .stat-num {
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.glass-card-stat small {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.online-dot { color: #10b981 !important; font-size: 10px !important; animation: pulse 1.5s infinite; }

@media (max-width: 576px) {
    .glass-card-stat { min-width: 130px; padding: 12px 14px !important; }
}

/* ============================================================
   FLUID SEAMLESS SECTIONS (NO KAKU CONTAINERS)
   ============================================================ */
.fluid-section {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 60px 0;
    overflow: hidden;
}
.bg-white-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1.5px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
}
.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}
.section-divider svg {
    width: 100%;
    height: 48px;
}

.card-label {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(25, 135, 84, 0.08); color: var(--green-base);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
    padding: 4px 12px; border-radius: 20px;
}
.card-heading {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.card-heading::after {
    content: ""; position:absolute; bottom:0; left:0;
    width:52px; height:3px;
    background: var(--green-base); border-radius: 2px;
}
.text-center.card-heading::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-top {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 24px; flex-wrap: wrap; gap: 8px;
}
.btn-more { font-size:13px; font-weight:700; color:var(--green-base); white-space:nowrap; transition:var(--tr); }
.btn-more:hover { color: var(--green-lt); transform: translateX(4px); }

/* ============================================================
   SAMBUTAN KEPALA MADRASAH (MORPH SQUIRCLE FRAME)
   ============================================================ */
.sambutan-inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 32px;
    align-items: flex-start;
}
.sambutan-photo-frame {
    position: relative;
    flex-shrink: 0;
    width: 170px;
    height: 205px;
    z-index: 1;
}
.sambutan-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    box-shadow: 0 12px 30px rgba(15, 89, 46, 0.18);
    border: 4px solid var(--white);
    transition: var(--tr);
    animation: morphImage 8s infinite alternate ease-in-out;
}
.sambutan-photo-frame:hover img {
    border-radius: 50% 50% 50% 50%;
}
.photo-glow-ring {
    position: absolute;
    inset: -6px;
    border: 2px dashed var(--gold);
    border-radius: 30% 70% 70% 30% / 50% 60% 40% 50%;
    z-index: -1;
    animation: rotateRing 15s linear infinite;
    opacity: 0.65;
}
@keyframes morphImage {
    0% { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; }
    50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 60%; }
    100% { border-radius: 60% 40% 60% 40% / 40% 50% 50% 60%; }
}
@keyframes rotateRing { to { transform: rotate(360deg); } }

.sambutan-text-container {
    position: relative;
    flex: 1;
}
.decorative-quote {
    position: absolute;
    top: -24px;
    left: -20px;
    font-size: 72px;
    color: rgba(25, 135, 84, 0.05);
    pointer-events: none;
    z-index: 0;
}
.sambutan-text {
    position: relative;
    z-index: 1;
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--muted);
    text-align: justify;
}

@media (max-width: 768px) {
    .sambutan-inner { flex-direction: column !important; align-items: center; gap: 24px; }
    .sambutan-photo-frame { width: 140px; height: 170px; }
}

/* ============================================================
   VISI MISI & PREMIUM CARDS
   ============================================================ */
.visi-box, .misi-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(25, 135, 84, 0.08);
    border-radius: var(--r-xl);
    padding: 26px 28px;
    box-shadow: var(--sh-premium);
    transition: var(--tr);
}
.visi-box:hover, .misi-box:hover {
    background: var(--white);
    border-color: rgba(25, 135, 84, 0.2);
    box-shadow: var(--sh-hover);
    transform: translateY(-5px);
}
.visi-icon-glowing, .misi-icon-glowing {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--green-base), var(--green-lt));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.25);
}
.visi-content h5, .misi-content h5 {
    font-weight: 750;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--green-base);
}
.visi-content p, .misi-list {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0;
}

/* ============================================================
   GALERI Kegiatan
   ============================================================ */
.galeri-wrapper { position: relative; overflow: hidden; }
.galeri-slider {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; padding: 6px 2px 10px;
}
.galeri-slider::-webkit-scrollbar { display: none; }
.galeri-item {
    min-width: 210px; flex-shrink: 0;
    border-radius: var(--r-md); overflow: hidden;
    box-shadow: var(--sh-premium); background: var(--white);
    border: 1px solid rgba(25, 135, 84, 0.05);
    transition: transform var(--tr);
}
.galeri-item:hover { transform: translateY(-4px); }
.galeri-item img { width:100%; height:135px; object-fit:cover; display:block; transition:transform 0.4s; }
.galeri-item:hover img { transform: scale(1.07); }
.galeri-caption { padding:8px 12px; font-size:12.5px; font-weight:600; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.galeri-btn {
    position:absolute; top:46%; transform:translateY(-50%);
    background:var(--green-base); color:#fff;
    border:none; width:34px; height:34px;
    border-radius:50%; font-size:13px;
    cursor:pointer; z-index:10;
    opacity:0; transition:opacity 0.3s;
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.galeri-btn:hover { background: var(--green-dk); }
.galeri-wrapper:hover .galeri-btn { opacity: 1; }
.galeri-prev { left: 0; }
.galeri-next { right: 0; }
.galeri-dots { text-align:center; margin-top:8px; }
.galeri-dots span { display:inline-block; width:7px; height:7px; margin:0 3px; background:#ccc; border-radius:50%; cursor:pointer; transition:0.3s; }
.galeri-dots span.active { background:var(--green-base); transform:scale(1.3); }

/* ============================================================
   BERITA & ARTIKEL GRID LAYOUT
   ============================================================ */
.berita-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.berita-card-new {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(25, 135, 84, 0.05);
    box-shadow: var(--sh-premium);
    transition: var(--tr);
    display: flex;
    flex-direction: column;
}
.berita-card-new:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-hover);
    border-color: rgba(25, 135, 84, 0.12);
}
.berita-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.berita-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.berita-card-new:hover .berita-img-wrap img { transform: scale(1.06); }
.berita-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(25, 135, 84, 0.9);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    z-index: 2;
}
.berita-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.berita-body h6 { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 10px; flex: 1; }
.berita-link { font-size: 12px; font-weight: 700; color: var(--green-base); display: inline-flex; align-items: center; transition: var(--tr); margin-top: auto; }
.berita-link:hover { color: var(--green-lt); }
.animate-arrow-sub { transition: transform 0.3s; }
.berita-link:hover .animate-arrow-sub { transform: translateX(4px); }

/* Featured news */
.berita-featured {
    grid-column: span 2;
    flex-direction: row !important;
}
.berita-featured .berita-img-wrap { width: 44%; aspect-ratio: auto; }
.berita-featured .berita-img-wrap img { height: 100%; }
.berita-featured .berita-body { padding: 24px; justify-content: center; }
.berita-featured .berita-body h6 { font-size: 16px; flex: unset; margin-bottom: 12px; }

@media (max-width: 576px) {
    .berita-grid { grid-template-columns: 1fr !important; }
    .berita-featured { grid-column: span 1; flex-direction: column !important; }
    .berita-featured .berita-img-wrap { width: 100%; }
}

/* Glass Widgets & lists */
.glass-widget {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-premium);
    overflow: hidden;
    transition: var(--tr);
}
.glass-widget:hover {
    box-shadow: var(--sh-hover);
    border-color: rgba(25, 135, 84, 0.15);
}
.artikel-list { padding: 8px 16px; }
.artikel-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 4px; border-bottom: 1px solid rgba(25, 135, 84, 0.05); transition: var(--tr); color: var(--text); }
.artikel-row:last-child { border-bottom: none; }
.artikel-row:hover { color: var(--green-base); transform: translateX(4px); }
.artikel-dot { flex-shrink: 0; width: 7px; height: 7px; background: var(--green-base); border-radius: 50%; margin-top: 6px; }
.artikel-row span { font-size: 13.5px; font-weight: 600; line-height: 1.45; display: block; }
.artikel-row small { font-size: 11px; color: var(--muted); margin-top: 3px; display: block; }

/* ============================================================
   VIDEO CARDS
   ============================================================ */
.video-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.video-card-new {
    border-radius:var(--r-lg); overflow:hidden;
    box-shadow:var(--sh-premium); background:var(--white);
    border:1px solid rgba(25, 135, 84, 0.05); transition:var(--tr);
}
.video-card-new:hover { transform: translateY(-5px); box-shadow: var(--sh-hover); }
.video-card-new p { font-size:13px; font-weight:700; padding:10px 12px; margin:0; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.video-thumb { position:relative; width:100%; padding-top:56.25%; cursor:pointer; overflow:hidden; }
.video-thumb img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.video-card-new:hover .video-thumb img { transform: scale(1.05); }
.play-btn {
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:42px; height:42px; background:rgba(0,0,0,0.65); color:#fff;
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    font-size:14px; transition:var(--tr);
}
.play-btn:hover { background: var(--green-base); transform: translate(-50%,-50%) scale(1.1); }
.video-thumb iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:none; }

@media (max-width: 991px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .video-grid { grid-template-columns:1fr; } }

/* ============================================================
   GURU & PEGAWAI (PREMIUM CARDS & SCROLLER)
   ============================================================ */
.guru-card-premium {
    background: var(--white);
    border-radius: var(--r-xl);
    border: 1px solid rgba(25, 135, 84, 0.05);
    box-shadow: var(--sh-premium);
    overflow: hidden;
    text-align: center;
    transition: var(--tr);
    width: 100%;
}
.guru-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-hover);
    border-color: rgba(25, 135, 84, 0.15);
}
.guru-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e8f0eb;
}
.guru-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tr);
}
.guru-card-premium:hover .guru-photo-wrap img {
    transform: scale(1.05);
}
.guru-info {
    padding: 14px 12px;
}
.guru-info h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.guru-badge {
    display: inline-block;
    background: rgba(25, 135, 84, 0.07);
    color: var(--green-base);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ============================================================
   SUARA PENGUNJUNG (SARAN & KOMENTAR SCROLLER)
   ============================================================ */
.saran-form { display: flex; flex-direction: column; gap: 10px; }
.saran-input {
    width:100%; border:1.5px solid rgba(25, 135, 84, 0.1);
    border-radius:var(--r-md); padding:10px 14px; font-size:13.5px;
    font-family:inherit; color:var(--text); background:rgba(255,255,255,0.6);
    transition:var(--tr); resize:none;
}
.saran-input:focus {
    outline:none; border-color:var(--green-base);
    background: var(--white);
    box-shadow:0 0 0 3px rgba(25, 135, 84, 0.14);
}
.saran-textarea { min-height: 90px; }
.saran-btn {
    background:linear-gradient(90deg,var(--green-base),var(--green-lt));
    color:#white; border:none; border-radius:30px; padding:11px;
    font-size:13.5px; font-weight:700; cursor:pointer; transition:var(--tr);
    display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
    color: #fff;
}
.saran-btn:hover { background:linear-gradient(90deg,var(--green-dk),var(--green-base)); transform:translateY(-2px); }

.komentar-scroll-box::-webkit-scrollbar {
    width: 6px;
}
.komentar-scroll-box::-webkit-scrollbar-thumb {
    background: rgba(25, 135, 84, 0.15);
    border-radius: 4px;
}
.komentar-scroll-box::-webkit-scrollbar-track {
    background: transparent;
}
.komentar-item { display:flex; gap:12px; padding:14px; border-bottom:1px solid rgba(25, 135, 84, 0.05); }
.komentar-item:last-child { border-bottom: none; }
.komentar-avatar { flex-shrink:0; width:34px; height:34px; background:linear-gradient(135deg,var(--green-base),var(--green-lt)); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; }
.komentar-body { flex:1; }
.komentar-header { display:flex; justify-content:space-between; margin-bottom:4px; }
.komentar-header strong { font-size:13px; color:var(--green-base); }
.komentar-header span { font-size:11px; color:var(--muted); font-weight: 500; }
.komentar-body p { font-size:13px; color:var(--muted); line-height:1.55; margin:0; }

/* ============================================================
   ANALYTICS STRIP (STATISTIK DECK)
   ============================================================ */
.analytics-strip {
    background: linear-gradient(90deg, var(--green-dk), var(--green-base));
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}
.stat-analytics-deck {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.stat-a-item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-lg);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    transition: var(--tr);
}
.stat-a-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}
.stat-a-item i {
    font-size: 20px;
}
.stat-a-info {
    display: flex;
    flex-direction: column;
}
.stat-a-info span {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Outfit', sans-serif;
}
.stat-a-info small {
    font-size: 10px;
    opacity: 0.75;
    font-weight: 600;
}
.stat-a-item.online i { animation: pulse 1.5s infinite; }

/* ============================================================
   KONTAK SECTION
   ============================================================ */
.kontak-section {
    background: linear-gradient(180deg, var(--green-dk), #041a0d);
    padding: 115px 0 50px;
    border-top: 4px solid var(--gold);
}
.kontak-section .section-title { color:white; font-size: 28px; font-weight: 800; }
.kontak-section .section-title::after { background:rgba(255,255,255,0.6); }
.kontak-info p { font-size:15px; margin-bottom:14px; color:white; display:flex; align-items:center; }
.kontak-icon   { color:var(--gold); margin-right:12px; font-size:17px; width:20px; text-align:center; }
.map-box { border:4px solid rgba(255,255,255,0.15); border-radius:var(--r-xl); overflow:hidden; box-shadow:0 12px 30px rgba(0,0,0,0.3); }
.map-box iframe { border:0; display:block; }
.sosial-media a { display:inline-block; width:38px; height:38px; line-height:38px; text-align:center; border-radius:50%; background:white; color:var(--green-base); margin-right:10px; font-size:17px; transition:0.3s; }
.sosial-media a:hover { background:var(--gold); color:#000; transform:scale(1.1); }
.btn-wa { display:inline-block; background:#25D366; color:white; padding:10px 20px; border-radius:30px; margin-top:10px; font-weight:600; transition:0.3s; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3); }
.btn-wa i { margin-right:8px; }
.btn-wa:hover { background:#1ebe5d; transform:translateY(-2px); color:white; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45); }

/* ============================================================
   TOAST NOTIFIKASI
   ============================================================ */
.toast-premium { position:fixed; top:20px; right:20px; display:flex; align-items:center; gap:12px; background:rgba(20, 92, 50, 0.96); backdrop-filter:blur(10px); color:#fff; padding:14px 18px; border-radius:var(--r-lg); box-shadow:0 15px 40px rgba(0,0,0,0.2); min-width:280px; max-width:350px; z-index:99999; transform:translateX(120%); opacity:0; transition:all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.toast-premium.show { transform: translateX(0); opacity: 1; }
.toast-icon  { font-size:18px; background:rgba(255,255,255,0.2); padding:6px; border-radius:50%; width:30px; height:30px; display:flex; align-items:center; justify-content:center; }
.toast-title { font-weight:700; font-size:14px; color: var(--gold); }
.toast-message { font-size:13px; opacity:0.95; }
.toast-progress { position:absolute; bottom:0; left:0; height:4px; width:100%; background:rgba(255,255,255,0.2); border-radius:0 0 var(--r-lg) var(--r-lg); overflow:hidden; }
.toast-progress::before { content:""; display:block; height:100%; width:100%; background:var(--gold); animation:toastbar 3s linear forwards; }
@keyframes toastbar { from{width:100%} to{width:0} }

/* ============================================================
   SCROLL REVEAL & LOADER
   ============================================================ */
.reveal { opacity:0; transform:translateY(30px); transition:opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity:1; transform:translateY(0); }

#loader { position:fixed; inset:0; background:#f0f4f2; display:flex; align-items:center; justify-content:center; z-index:99999; }
.spinner { width:44px; height:44px; border:4px solid rgba(25, 135, 84, 0.1); border-top-color:var(--green-base); border-radius:50%; animation:spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   GLASSMORPHIC MODAL (SPA DYNAMIC OVERLAY)
   ============================================================ */
.glass-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4, 26, 13, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}
.glass-modal.show {
    display: flex;
    opacity: 1;
}
.glass-modal-dialog {
    width: 100%;
    max-width: 960px;
    max-height: 85vh;
    display: flex;
    animation: modalSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.glass-modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--r-xl);
    width: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
    overflow: hidden;
}
.glass-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(25, 135, 84, 0.08);
    background: rgba(25, 135, 84, 0.03);
}
.glass-modal-title {
    font-weight: 800;
    font-size: 19px;
    color: var(--green-base);
    margin: 0;
}
.glass-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--tr);
}
.glass-modal-close:hover {
    color: #ef4444;
    transform: rotate(90deg);
}
.glass-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    color: var(--text);
    scrollbar-width: thin;
    scrollbar-color: var(--green-base) transparent;
}
@keyframes modalSlideIn {
    from { transform: translateY(40px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */
.card { border:1px solid var(--border-color); border-radius:var(--r-xl); box-shadow:var(--sh-premium); overflow:hidden; transition: var(--tr); }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-hover); }
.btn { border-radius:30px; padding:8px 22px; font-weight:600; transition:var(--tr); }
.btn-primary { background:var(--green-base); border-color:var(--green-base); }
.btn-primary:hover { background:var(--green-dk); border-color:var(--green-dk); transform: translateY(-2px); }
.btn-outline-primary { color:var(--green-base); border-color:var(--green-base); }
.btn-outline-primary:hover { background:var(--green-base); color:#fff; transform: translateY(-2px); }
.btn-success { background:var(--green-base); border-color:var(--green-base); }
.btn-success:hover { background:var(--green-dk); border-color:var(--green-dk); }

footer { background:linear-gradient(90deg,var(--green-dk),var(--green-base)); color:#fff; padding:24px; text-align:center; font-size:14px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ============================================================
   SUBPAGES LOADER & STYLING FOR DYNAMIC MODAL
   ============================================================ */
.pengumuman-item { background:#fff; border-left:4px solid var(--green-base); border-radius:var(--r-sm); padding:16px 20px; margin-bottom:14px; box-shadow:var(--sh-premium); transition:var(--tr); }
.pengumuman-item:hover { transform:translateY(-3px); box-shadow:var(--sh-hover); }
.pengumuman-judul { font-weight:700; color:var(--text); margin-bottom:8px; }
.pengumuman-meta  { font-size:12px; color:var(--muted); display:flex; gap:12px; flex-wrap:wrap; margin-bottom:8px; font-weight:600; }
.pengumuman-meta i { color:var(--green-base); }
.pengumuman-isi   { font-size:14px; color:var(--muted); }
.btn-baca { color:var(--green-base); font-weight:700; font-size:13px; }
.btn-baca:hover { text-decoration: underline; color: var(--green-lt); }

.detail-card { background:#fff; padding:24px; border-radius:var(--r-xl); box-shadow:none; border:none; }
.detail-title { font-size:24px; font-weight:800; color:var(--text); margin-bottom:10px; line-height:1.35; }
.detail-meta  { font-size:13px; color:var(--muted); display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px; font-weight: 600; }
.detail-meta i { color:var(--green-base); }
.detail-image { border-radius:var(--r-xl); overflow:hidden; margin:16px 0; }
.detail-image img { width:100%; max-height:380px; object-fit:contain; background:#f5f5f5; }
.detail-content { font-size:14.5px; line-height:1.85; color:var(--muted); text-align:justify; }
.btn-back { display:none !important; } /* Hide back button in modal */

.modern-table { border-collapse:separate; border-spacing:0 10px; width: 100% !important; }
.modern-table thead th { border:none; color:var(--green-base); font-weight:700; font-size:13px; background:transparent; padding: 12px; }
.modern-table tbody tr { background:#white; box-shadow:var(--sh-premium); border-radius:var(--r-md); transition:var(--tr); background: #fff; }
.modern-table tbody tr:hover { transform:translateY(-2px); box-shadow:var(--sh-hover); }
.modern-table td { border:none; padding:14px; vertical-align:middle; }
.modern-table tbody tr td:first-child { border-radius:var(--r-md) 0 0 var(--r-md); }
.modern-table tbody tr td:last-child  { border-radius:0 var(--r-md) var(--r-md) 0; }

/* Custom Datatables in Glass Modal */
.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid rgba(25, 135, 84, 0.1) !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    outline: none !important;
    background: #fff !important;
    transition: var(--tr);
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--green-base) !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15) !important;
}

#sambutan,#visi,#berita,#kontak,#galeri,#video,#saran-pengunjung,#guru { scroll-margin-top: 80px; }
@media (max-width:768px) { .col-md-9,.col-md-3 { width:100%; } }

/* ============================================================
   MISSING KEYFRAMES & ACCELERATED SCROLL PERFORMANCE
   ============================================================ */
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(10deg); }
    20%, 40%, 60%, 80% { transform: rotate(-10deg); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* Hardware GPU Acceleration to make scrolling buttery smooth */
.bg-blob {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.marquee-content {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.glass-card, .glass-card-stat, .glass-widget, .bg-white-glass, #mainNavbar.navbar-scrolled {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Performance optimizations for mobile scrolling */
@media (max-width: 768px) {
    .bg-blob {
        filter: blur(50px) !important;
        opacity: 0.16 !important;
    }
    /* Disable expensive real-time background blurs on mobile screens for 60fps scrolling */
    .glass-card-stat, .bg-white-glass, .glass-widget, #mainNavbar.navbar-scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .glass-card-stat {
        background: rgba(255, 255, 255, 0.98) !important;
    }
    .bg-white-glass {
        background: rgba(255, 255, 255, 0.98) !important;
    }
    .glass-widget {
        background: rgba(255, 255, 255, 0.98) !important;
    }
    #mainNavbar.navbar-scrolled {
        background: rgba(7, 53, 25, 0.98) !important;
    }
}

/* Swiper Pagination Placement Fix (Anti-Overlapping) */
.guruSwiper {
    padding-bottom: 5px !important;
}

.bannerSwiper {
    padding-bottom: 35px !important;
}
.bannerSwiper .swiper-pagination {
    bottom: 0 !important;
}

/* Custom premium active bullet dots */
.swiper-pagination-bullet {
    background: #a3a3a3;
    opacity: 0.65;
}
.swiper-pagination-bullet-active {
    background: var(--green-base) !important;
    width: 20px !important;
    border-radius: 6px !important;
    opacity: 1 !important;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s !important;
}

/* Seamless Background Blend to remove visual footer gaps */
html {
    background-color: #041a0d !important; /* blends perfectly with the footer & kontak section bottom */
}

/* Hide host-injected analytics tracking banners or spacer divs at the absolute bottom */
body > div[style*="opacity: 0.9"], 
body > div[style*="z-index: 9999999"], 
body > div[id*="servers"],
body > a[href*="infinityfree"] {
    display: none !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}