/*
Theme Name: Alfattah
Theme URI: https://alfattah-yayasan.com
Author: Antigravity AI
Author URI: https://antigravity.ai
Description: Premium modern WordPress theme for Yayasan Pesantren Alfattah - Master Stable.
Version: 2.0.0
Text Domain: alfattah
*/

:root {
    --primary-green: #28a745;
    --primary-gold: #ffd700;
    --deep-green: #1e4d2b;
    --dark-bg: #111111;
    --text-dark: #1a1a1a;
    --text-white: #ffffff;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: #fff;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.5px; }
a { text-decoration: none; transition: var(--transition-smooth); }

/* ==========================================================================
   NAVBAR & NAVIGATION
   ========================================================================== */
.navbar {
    background: var(--dark-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: 1px;
    z-index: 1010;
}
.nav-logo i { color: var(--primary-green); margin-right: 10px; }
.nav-logo img { max-height: 50px; width: auto; }

/* Desktop Navigation */
.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu-list {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list > li {
    position: relative;
    padding: 30px 0;
}

.nav-menu-list a {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu-list li:hover > a {
    color: var(--primary-green);
}

/* Submenu / Dropdown */
.nav-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    min-width: 240px;
    padding: 1rem 0;
    list-style: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    border-top: 3px solid var(--primary-green);
}

/* Multi-level Dropdown Logic */
.nav-menu-list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -3px;
    border-top: none;
    border-left: 3px solid var(--primary-green);
    border-radius: 0 12px 12px 12px;
}

.nav-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu-list .sub-menu li {
    padding: 0;
    position: relative;
}

.nav-menu-list .sub-menu a {
    padding: 0.9rem 1.8rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    white-space: nowrap;
}

.nav-menu-list .sub-menu li:last-child a { border-bottom: none; }

.nav-menu-list .sub-menu a:hover {
    background: rgba(40, 167, 69, 0.15);
    color: var(--primary-green);
    padding-left: 2.2rem;
}

/* Indicators for items with children */
.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    opacity: 0.5;
}

.sub-menu .menu-item-has-children > a::after {
    content: '\f105';
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10000;
    position: relative;
}

.nav-actions {
    display: flex;
    align-items: center;
    z-index: 1010;
}

.reg-btn {
    background: var(--primary-green);
    color: white;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.reg-btn:hover { 
    background: #218838; 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4); 
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .navbar { padding: 0 5%; }

    .mobile-nav-toggle { 
        display: block !important; 
    }

    .nav-actions {
        display: none; /* Hide top right action on mobile to prevent overlap */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100% !important;
        width: 300px;
        height: 100vh;
        background: #111 !important;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 2rem 40px;
        transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -15px 0 40px rgba(0,0,0,0.8);
        z-index: 50000 !important;
        visibility: hidden;
    }

    .nav-links.active { 
        right: 0 !important; 
        visibility: visible !important;
    }

    .nav-menu-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu-list > li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-menu-list a {
        padding: 1.2rem 0;
        width: 100%;
        justify-content: space-between;
        font-size: 1.1rem;
    }

    .nav-menu-list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(255,255,255,0.03);
        border: none;
        padding: 0 1rem;
        box-shadow: none;
    }

    .nav-menu-list li.submenu-active > .sub-menu {
        display: block;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-wrapper {
    background: var(--dark-bg);
    min-height: 650px; /* Reduced height as requested */
    height: 75vh;
    padding-top: 90px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Static building background removed to be replaced by dynamic slider */
}

/* NEW MASTER SLIDER LAYOUT */
.hero-master-swiper {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.hero-master-swiper .swiper-slide {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17,17,17,0.3) 0%, transparent 60%);
    z-index: 6;
}

.hero-blob {
    position: absolute;
    left: -10%;
    top: 0;
    width: 60%;
    height: 100%;
    background: #fff;
    border-radius: 0 400px 400px 0;
    z-index: 10;
    box-shadow: 20px 0 50px rgba(0,0,0,0.2);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    pointer-events: none; /* Let clicks pass to buttons */
}

.hero-text h1 {
    font-size: 4.8rem;
    line-height: 1;
    color: #222;
    margin-bottom: 1.5rem;
}
.hero-text h1 span { color: var(--primary-green); display: block; }

.hero-text p {
    font-size: 1.15rem;
    color: #444;
    max-width: 520px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-text .enroll-btn {
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--primary-green) 100%);
    color: white !important;
    padding: 1.2rem 2.8rem;
    border-radius: 12px;
    font-weight: 900;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: btnPulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: auto;
}

@keyframes btnPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.hero-text .enroll-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--deep-green) 100%);
}

.hero-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    pointer-events: auto;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    color: var(--deep-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2);
}

.swiper-pagination-bullet {
    background: white !important;
    width: 12px;
    height: 12px;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: var(--primary-gold) !important;
    width: 30px;
    border-radius: 10px;
    opacity: 1;
}

/* NATURAL GLASS NAVIGATION */
.hero-master-swiper .swiper-button-next,
.hero-master-swiper .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
    opacity: 0; /* Hidden by default */
    transform: translateY(-50%) scale(0.8);
}

.hero-master-swiper:hover .swiper-button-next,
.hero-master-swiper:hover .swiper-button-prev {
    opacity: 1; /* Reveal on hover */
    transform: translateY(-50%) scale(1);
}

.hero-master-swiper .swiper-button-next::after,
.hero-master-swiper .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 900;
}

.hero-master-swiper .swiper-button-next {
    right: 40px;
}

.hero-master-swiper .swiper-button-prev {
    left: calc(50% + 80px); /* Perfectly balanced beyond the white curve on desktop */
}

.hero-master-swiper .swiper-button-next:hover,
.hero-master-swiper .swiper-button-prev:hover {
    background: rgba(40, 167, 69, 0.8); /* Theme green on hover */
    color: white;
    border-color: transparent;
}

@media (max-width: 992px) {
    .hero-master-swiper .swiper-button-prev { left: 20px; opacity: 1; transform: translateY(-50%); }
    .hero-master-swiper .swiper-button-next { right: 20px; opacity: 1; transform: translateY(-50%); }
}
.social-icons a {
    width: 45px;
    height: 45px;
    background: white;
    color: var(--deep-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.social-icons a:hover { background: var(--primary-green); color: white; transform: translateY(-3px); }

.status-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.pulsing-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    position: relative;
}
.pulsing-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(3.5); opacity: 0; }
}
.status-text { font-size: 0.9rem; font-weight: 800; color: var(--primary-green); letter-spacing: 2px; }

.green-circle-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #28a745 0%, transparent 70%);
    opacity: 0.4;
    z-index: 1;
}

/* ==========================================================================
   QUICK MENU
   ========================================================================== */
.quick-menu-wrapper {
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--primary-green) 100%);
    padding: 6rem 5% 6rem;
    position: relative;
    z-index: 100;
    margin-top: -10px;
}

.wave-top {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 150px;
    line-height: 0;
    z-index: 101;
    overflow: hidden;
}
.wave-top svg { width: 100%; height: 150px; transform: translateY(2px); }
.wave-top path { fill: var(--deep-green); }

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1240px;
    margin: 0 auto;
    gap: 2rem;
}

.quick-menu-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: white;
    transition: var(--transition-smooth);
}
.quick-menu-item:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.1); }

.quick-menu-item i { font-size: 3rem; color: var(--primary-gold); margin-bottom: 1.5rem; display: block; }
.quick-menu-item h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 2rem; letter-spacing: 2px; }

.quick-menu-btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: var(--primary-gold);
    color: var(--deep-green);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* ==========================================================================
   BACKGROUND & DEPTH UTILITIES
   ========================================================================== */
.section-alt-bg { background-color: #f4f9f4 !important; }
.section-dark-bg { 
    background: linear-gradient(135deg, #1a3d25 0%, #1e4d2b 100%) !important; 
    color: white; 
    position: relative;
    overflow: hidden;
    padding-top: 12rem !important; /* Extra padding for top wave */
    padding-bottom: 12rem !important; /* Extra padding for bottom wave */
}
.section-dark-bg .section-title { color: white; position: relative; z-index: 10; }
.section-dark-bg .section-title::after { background: var(--primary-gold); }

.section-pattern { position: relative; }
.section-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(48, 115, 66, 0.05) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* NEWS ON DARK */
.section-dark-bg .news-grid { position: relative; z-index: 10; }
.section-dark-bg .news-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}
.section-dark-bg .news-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.section-dark-bg .news-card h3 { color: white; transition: 0.3s; }
.section-dark-bg .news-card:hover h3 { color: var(--primary-gold); }
.section-dark-bg .news-date { color: rgba(255,255,255,0.5); }
.section-dark-bg .news-link { color: var(--primary-gold); display: flex; align-items: center; gap: 0.5rem; }

.more-news-btn {
    display: inline-block;
    padding: 1.1rem 3rem;
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.more-news-btn:hover {
    background: var(--primary-gold);
    color: var(--deep-green);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

/* ==========================================================================
   LIST SECTIONS (FASILITAS / LEMBAGA)
   ========================================================================== */
.section-container { padding: 8rem 10%; position: relative; z-index: 10; }
.section-title {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 6px;
    background: var(--primary-gold);
    border-radius: 10px;
}

/* SYMMETRICAL INFO LISTS */
.info-lists-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch; /* Forces equal height */
}

.info-block {
    display: flex;
    flex-direction: column;
}

.list-header {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    overflow: hidden;
}

.list-header i.bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 6rem;
    color: rgba(40, 167, 69, 0.05);
    z-index: 0;
}

.list-container {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
}

.list-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(40, 167, 69, 0.1);
}

.list-item {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid #f8f8f8;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.list-item i {
    width: 35px;
    height: 35px;
    background: rgba(40, 167, 69, 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Unified Colors: Green & Gold */
.facility-list { border-top: 6px solid var(--primary-green); }
.institution-list { border-top: 6px solid var(--primary-gold); } /* Gold for symmetry but following the theme */

.list-item span { font-weight: 500; font-size: 1rem; color: #333; }

/* ==========================================================================
   NEWS & GALLERY
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.news-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.news-img { width: 100%; height: 240px; object-fit: cover; }
.news-body { padding: 2rem; }
.news-date { font-size: 0.8rem; color: #888; font-weight: 600; margin-bottom: 0.5rem; display: block; }
.news-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.news-link { color: var(--primary-green); font-weight: 800; font-size: 0.9rem; }

/* INNOVATIVE BENTO GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    perspective: 1000px;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Bento Variations */
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; } /* Large */
.gallery-item:nth-child(3) { grid-row: span 2; } /* Tall */
.gallery-item:nth-child(6) { grid-column: span 2; } /* Wide */

.gallery-item:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(4deg);
    box-shadow: 0 30px 60px rgba(30, 77, 43, 0.25);
    z-index: 200;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 77, 43, 0.9), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: 0.4s;
    backdrop-filter: blur(2px);
}

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

.gallery-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: 0.4s 0.1s;
}

.gallery-item:hover .gallery-overlay h4 { transform: translateY(0); }

/* RESPONSIVE BENTO */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .gallery-item:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
}
/* ==========================================================================
   CONTACT & MAP
   ========================================================================== */
/* PREMIUM CONTACT & MAP SECTION */
.contact-section-wrapper {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
    background: #fdfdfd;
}

.contact-bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-size: 20rem;
    font-weight: 950;
    color: rgba(30, 77, 43, 0.02);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    letter-spacing: -10px;
}

.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    align-items: center;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 40px;
    padding: 4rem;
    margin-right: -100px;
    position: relative;
    z-index: 20;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.contact-info-card .section-title { font-size: 3rem; margin-bottom: 3.5rem; }

.contact-tile {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    border: 1px solid #f0f0f0;
}

.contact-tile:hover {
    transform: translateX(15px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.1);
}

.contact-tile i {
    width: 70px;
    height: 70px;
    background: rgba(40, 167, 69, 0.1); /* Match Fasilitas soft green */
    color: var(--primary-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: 0.3s;
}

.contact-tile:hover i { background: var(--primary-green); color: white; transform: rotate(10deg); }

.contact-tile h4 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.contact-tile p { font-size: 1.05rem; color: #666; line-height: 1.5; }

.map-outer-frame {
    padding: 15px;
    background: white;
    border: 8px solid var(--deep-green); /* Stronger theme match with Deep Green */
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    outline: 2px solid var(--primary-gold); /* Subtle gold accent instead of full gold background */
    outline-offset: -12px;
}

.map-container {
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    filter: grayscale(1);
    transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-outer-frame:hover .map-container { filter: grayscale(0); transform: scale(1.02); }

.map-container iframe { width: 100%; height: 100%; border: 0; }

/* RESPONSIVE PREMIUM CONTACT */
@media (max-width: 1100px) {
    .contact-map-grid { grid-template-columns: 1fr; padding: 0 5%; gap: 3rem; }
    .contact-info-card { margin-right: 0; padding: 3rem; }
}

@media (max-width: 768px) {
    .contact-bg-watermark { display: none; }
    .contact-tile { padding: 1.5rem; gap: 1.2rem; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 3000;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .news-grid, .gallery-grid, .contact-map-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-menu-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-logo { font-size: 1.1rem; }
    .reg-btn { padding: 0.6rem 1.2rem; font-size: 0.8rem; }
    
    .hero-text { text-align: center; margin: 0 auto; }
    .hero-text h1 { 
        font-size: 2.5rem; 
        text-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    }
    .hero-text p { 
        font-size: 0.95rem; 
        margin: 0 auto 2rem;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2); 
    }
    .hero-footer { justify-content: center; flex-direction: column; gap: 1rem; }
    .hero-footer .social-icons { margin-left: 0 !important; }
    .status-container { justify-content: center; }

    .hero-master-swiper .swiper-slide::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5); /* Stronger darken for mobile readability */
        z-index: 7;
    }

    .hero-blob {
        width: 100%;
        left: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    /* QUICK MENU */
    .quick-menu-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.8rem;
    }
    .quick-menu-item { padding: 1.5rem 0.5rem; border-radius: 15px; }

    /* SECTION POLISH */
    .section-container { padding: 4rem 5%; }
    .section-title { font-size: 1.8rem; margin-bottom: 2.5rem; text-align: center; display: block; }
    .section-title::after { left: 50%; transform: translateX(-50%); width: 60px; }

    /* INFO LISTS */
    .info-lists-grid { grid-template-columns: 1fr; gap: 2rem; }
    .list-item { padding: 1rem 1.5rem; }

    /* NEWS & GALLERY */
    .news-grid, .gallery-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    
    /* CONTACT SECTION */
    .contact-info-card { padding: 2rem; border-radius: 20px; }
    .contact-tile { padding: 1.2rem; flex-direction: column; text-align: center; align-items: center; }
    .contact-tile i { width: 50px; height: 50px; font-size: 1.2rem; }
    .map-container { height: 350px; }
    
    /* STICKY WHATSAPP */
    .whatsapp-sticky { width: 55px; height: 55px; font-size: 1.6rem; bottom: 20px; right: 20px; }
}

/* ==========================================================================
   SUBPAGE & BLOG SYSTEM
   ========================================================================== */
.subpage-header {
    background: var(--deep-green);
    padding: 180px 5% 120px;
    position: relative;
    color: white;
    text-align: center;
    border-bottom: 5px solid var(--primary-gold);
    overflow: hidden;
}

.header-inner-container { position: relative; z-index: 10; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.subpage-header h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; font-weight: 800; text-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.subpage-breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.4); margin-bottom: 2.5rem; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.article-meta { display: flex; justify-content: center; gap: 2.5rem; font-weight: 600; font-size: 0.95rem; opacity: 0.8; flex-wrap: wrap; margin-top: 2rem; }
.article-meta i { color: var(--primary-gold); margin-right: 8px; }

.subpage-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    max-width: 1400px;
    margin: -4rem auto 0;
    padding: 0 5% 8rem;
    position: relative;
    z-index: 20;
}

.subpage-content-grid.single-article-grid { max-width: 1200px; gap: 3.5rem; }

/* NEWS CARDS & ARCHIVE */
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.news-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); transition: var(--transition-smooth); height: 100%; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.news-img-container { height: 250px; overflow: hidden; position: relative; }
.news-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-card:hover .news-img { transform: scale(1.1); }
.news-img-placeholder { height: 250px; background: #f8faf8; display: flex; align-items: center; justify-content: center; color: #ddd; }
.news-body { padding: 2.2rem; display: flex; flex-direction: column; flex-grow: 1; }
.news-date { display: block; margin-bottom: 1rem; color: #999; font-size: 0.85rem; font-weight: 600; }
.news-body h3 { font-size: 1.35rem; line-height: 1.4; margin-bottom: 1.5rem; color: var(--text-dark); }
.news-link { color: var(--primary-green); font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; margin-top: auto; }

/* SIDEBAR RECENT POSTS */
.sidebar-recent-post-item { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.8rem; }
.recent-thumb-wrapper { width: 75px; height: 75px; flex-shrink: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.recent-thumb { width: 100%; height: 100%; object-fit: cover; }
.recent-details { flex-grow: 1; min-width: 0; }
.recent-details a { font-size: 1rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; display: block; margin-bottom: 0.3rem; overflow-wrap: break-word; }
.recent-details span { font-size: 0.8rem; color: #aaa; font-weight: 600; }

/* SEARCH FORM UTILITIES */
.search-form { position: relative; }
.search-field { width: 100%; padding: 1.1rem 3.5rem 1.1rem 1.5rem; border-radius: 50px; border: 1px solid #eee; background: #fbfbfb; font-family: inherit; font-size: 0.95rem; }
.search-submit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--primary-green); font-size: 1.1rem; cursor: pointer; }

/* WIDGET LISTS */
.widget-list { list-style: none; padding: 0; }
.widget-list li { margin-bottom: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px dashed #f0f0f0; }
.widget-list a { color: #666; display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; font-weight: 500; }
.count-badge { background: #f0f9f0; color: var(--primary-green); padding: 2px 10px; border-radius: 10px; font-size: 0.75rem; font-weight: 700; }

@media (max-width: 768px) {
    body { overflow-x: hidden !important; width: 100%; position: relative; }
    .navbar { height: auto; padding: 15px 5%; flex-wrap: wrap; gap: 15px; justify-content: center; }
    .nav-logo { font-size: 1.1rem; width: 100%; justify-content: center; text-align: center; }
    .nav-logo i { margin-right: 8px; }
    .reg-btn { padding: 0.6rem 1.5rem; font-size: 0.85rem; }
    
    .subpage-header { padding: 180px 5% 80px !important; }
    .header-inner-container { padding: 0 15px; }
    .subpage-header h1 { font-size: 1.8rem !important; margin-top: 20px; word-break: break-word; }
    .subpage-breadcrumb { font-size: 0.8rem; margin-bottom: 1.5rem; }
    .article-meta { gap: 1rem; font-size: 0.8rem; flex-direction: column; align-items: center; }
    
    .subpage-content-grid { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 15px 4rem !important; overflow-x: hidden; display: block; }
    .glass-card.article-card-main { padding: 25px 15px !important; border-radius: 20px; width: 100% !important; box-sizing: border-box; }
    
    .entry-content { font-size: 1.05rem; overflow-wrap: break-word; width: 100% !important; }
    .entry-content p { overflow-wrap: break-word; }
    .entry-content img { max-width: 100% !important; height: auto !important; }
    
    .sidebar-recent-post-item { flex-direction: row; gap: 1rem; align-items: center; }
    .recent-thumb-wrapper { width: 60px; height: 60px; flex-shrink: 0; }
    .recent-details a { font-size: 0.9rem; white-space: normal; }
    
    .post-navigation { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SIDEBAR ENHANCEMENTS (MASTER PREMIUM)
   ========================================================================== */
.sidebar-widget {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f2f5f2;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(40, 167, 69, 0.08);
    border-color: rgba(40, 167, 69, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #f8faf8;
    position: relative;
    color: var(--text-dark);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-green);
}

/* Enhanced Categories */
.sidebar-categories { list-style: none; padding: 0; }
.sidebar-categories li { margin-bottom: 1rem; }
.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    background: #fdfdfd;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.sidebar-categories a:hover {
    background: #f0f9f0;
    color: var(--primary-green);
    border-color: rgba(40, 167, 69, 0.1);
    transform: translateX(8px);
}

.sidebar-categories .cat-count {
    background: #fff;
    color: #999;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.sidebar-categories a:hover .cat-count {
    background: var(--primary-green);
    color: white;
}

/* Premium Sidebar CTA */
.sidebar-cta-widget {
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--primary-green) 100%);
    color: white;
    padding: 3rem 2.2rem;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sidebar-cta-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: -1;
}

.sidebar-cta-widget h3 { color: white; margin-bottom: 1.2rem; font-size: 1.5rem; line-height: 1.3; }
.sidebar-cta-widget p { font-size: 0.95rem; opacity: 0.8; margin-bottom: 2rem; color: #fff; }

.sidebar-cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-gold);
    color: var(--deep-green);
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.sidebar-cta-btn:hover {
    background: white;
    color: var(--primary-green);
    transform: scale(1.05);
}

/* Recent Post Thumb Fixes */
.sidebar-recent-post-item:hover .recent-thumb-wrapper { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.recent-details a:hover { color: var(--primary-green); }

/* ==========================================================================
   ANIMATED BROCHURE STYLES
   ========================================================================== */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.brochure-poster-frame {
    background: white;
    padding: 2.5rem;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    border: 1px solid rgba(40,167,69,0.1);
    position: relative;
    overflow: hidden;
    animation: fadeScale 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: var(--transition-smooth);
}

.brochure-poster-frame:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 60px 150px rgba(40, 167, 69, 0.2);
}

.brochure-poster-frame img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.brochure-info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid rgba(40,167,69,0.05);
    animation: revealUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
}

.brochure-info-card.delay-1 { animation-delay: 0.3s; }
.brochure-info-card.delay-2 { animation-delay: 0.6s; }

.brochure-info-card h3 {
    font-size: 1.8rem;
    color: var(--deep-green);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brochure-info-card h3 i {
    color: var(--primary-gold);
}

.brochure-list {
    list-style: none;
    padding: 0;
}

.brochure-list li {
    padding: 1rem 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: #444;
}

.brochure-list li:last-child { border-bottom: none; }

.brochure-list li i {
    color: var(--primary-green);
}

.brochure-sticky-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1000;
    width: max-content;
    max-width: 90vw;
}

.brochure-sticky-cta .enroll-btn {
    padding: 1.2rem 2rem;
    font-size: 0.95rem;
    box-shadow: 0 20px 50px rgba(40, 167, 69, 0.4);
    display: block;
    text-align: center;
}

@media (min-width: 992px) {
    .brochure-sticky-cta .enroll-btn {
        padding: 1.5rem 4rem;
        font-size: 1.1rem;
    }
}

/* TRI-FOLD BROCHURE GRID - Mobile First */
.brochure-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

@media (min-width: 992px) {
    .brochure-grid-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2.5rem;
        padding: 0;
    }
}

/* BROCHURE PANELS */
.brochure-panel {
    background: white;
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
    border: 1px solid rgba(40,167,69,0.1);
    min-width: 0; /* Critical for grid shrinking */
    height: fit-content;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.brochure-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(40, 167, 69, 0.12);
}

@media (max-width: 768px) {
    .brochure-panel { padding: 1.5rem; border-radius: 20px; }
}

.panel-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--deep-green);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 1rem;
}

.panel-title i { color: var(--primary-gold); }

/* STEP INDICATORS */
.steps-list {
    list-style: none;
    padding: 0;
}

.step-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 2.5rem;
}

.step-item:last-child { margin-bottom: 0; }

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2);
}

.step-item h4 {
    color: var(--deep-green);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 800;
}

.step-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* FEES TABLE */
.brochure-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* PREMIUM BROCHURE POLISH */
.brochure-page-wrapper {
    background: #f8faf8;
    background-image: radial-gradient(var(--primary-green) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-position: 0 0;
    padding: 150px 20px 100px;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.brochure-section-title {
    font-size: 1rem;
    color: var(--deep-green);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-gold);
    padding-left: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brochure-section-title.mt-5 { margin-top: 3.5rem; }

.panel-title i {
    color: var(--primary-gold);
    animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(10deg); }
    100% { transform: scale(1); }
}

/* STEP POLISH */
.step-item h4 {
    color: var(--primary-green);
    font-size: 0.75rem !important;
    letter-spacing: 1px;
    margin-bottom: 0.3rem !important;
    opacity: 0.8;
}

.step-number {
    border: 3px solid white;
}

/* TABLE FINANCIAL ALIGNMENT */
.brochure-table th {
    background: var(--deep-green);
    letter-spacing: 1px;
    font-weight: 700;
}

.brochure-table tr:nth-child(even) { background: #f9fbf9; }
.brochure-table td:nth-child(3) { 
    font-family: 'Courier New', Courier, monospace; /* Monospace for alignment */
    font-size: 0.95rem;
}

/* REASONS BOX */
.reasons-section h4 {
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
    letter-spacing: 1.5px;
}

.brochure-table td {
    padding: 1.2rem 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    line-height: 1.4;
    vertical-align: top;
}

/* Specific Column Widths to prevent overflow/overlap */
.brochure-table th:nth-child(1), .brochure-table td:nth-child(1) { width: 45px; } /* No */
.brochure-table th:nth-child(2), .brochure-table td:nth-child(2) { width: auto; font-weight: 600; } /* Uraian */
.brochure-table th:nth-child(3), .brochure-table td:nth-child(3) { width: 110px; font-weight: 800; color: var(--primary-green); text-align: right; } /* Nominal */
.brochure-table th:nth-child(4), .brochure-table td:nth-child(4) { width: 28%; font-size: 0.75rem; color: #888; padding-left: 1.5rem; } /* Keterangan */

@media (max-width: 768px) {
    .brochure-table th:nth-child(4), .brochure-table td:nth-child(4) { display: none; } /* Hide description on mobile */
    .brochure-table th:nth-child(3), .brochure-table td:nth-child(3) { width: 90px; }
}

.brochure-table tr:hover { background: #f8fcf8; }

/* REASONS LIST & PRESTASI */
.reasons-list { margin-top: 1rem; }
.reason-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
}
.reason-item.light { background: #f9fbf9; border-color: #eee; }
.reason-item.light span { color: var(--deep-green); }
.reason-item:hover { transform: translateX(8px); }
.reason-item i { font-size: 1.2rem; color: var(--primary-gold); }
.reason-item span { font-weight: 600; color: white; font-size: 0.85rem; }

/* HERO CENTER CONTENT */
.hero-center-content { text-align: center; }
.badge-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    color: var(--deep-green);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.hero-headline { font-size: 2.2rem; font-weight: 900; line-height: 1.1; margin-bottom: 0.5rem; color: white; text-transform: uppercase; }
.hero-headline .gold-text { color: var(--primary-gold); }
.hero-subtitle { font-size: 0.8rem; opacity: 0.6; letter-spacing: 2px; margin-bottom: 2rem; text-transform: uppercase; }

.brochure-flyer-frame { border-radius: 15px; overflow: hidden; margin-bottom: 2rem; border: 4px solid rgba(255,255,255,0.1); }
.brochure-flyer-frame img { width: 100%; display: block; }

.contact-card-box { background: rgba(255,255,255,0.1); padding: 1.5rem; border-radius: 15px; margin-bottom: 2rem; text-align: left; }
.contact-card-box h4 { font-size: 0.7rem; letter-spacing: 1px; margin-bottom: 1rem; opacity: 0.5; }
.contact-item { font-weight: 700; font-size: 1rem; color: var(--primary-gold); display: flex; align-items: center; gap: 0.8rem; }

.location-footer { display: flex; align-items: flex-start; gap: 1rem; text-align: left; opacity: 0.6; font-size: 0.75rem; }
.location-footer i { margin-top: 3px; }

/* MI HUB CARD */
.mi-hub-card {
    background: #fff9e6;
    border: 2px dashed var(--primary-gold);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mi-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--primary-gold);
    color: var(--deep-green);
    padding: 2px 40px;
    transform: rotate(45deg);
    font-size: 0.6rem;
    font-weight: 900;
}
.mi-hub-card h4 { color: var(--deep-green); margin-bottom: 1rem; font-size: 1.1rem; }
.contact-btn.yellow {
    background: var(--primary-gold);
    color: var(--deep-green);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* VISI MISI SECTION */
.visi-misi-flex { display: flex; gap: 4rem; }
.visi-column { flex: 1.5; }
.fasilitas-column { flex: 1; border-left: 1px solid #eee; padding-left: 4rem; }

.visi-text { font-size: 1.2rem; font-style: italic; color: #444; line-height: 1.6; margin-bottom: 2rem; }
.misi-list { list-style: none; padding: 0; }
.misi-list li { padding-left: 2rem; position: relative; margin-bottom: 1rem; font-weight: 500; }
.misi-list li::before { content: '•'; position: absolute; left: 0; color: var(--primary-green); font-size: 1.5rem; line-height: 1; }

.fasilitas-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.fasilitas-item { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; color: #666; font-weight: 500; }
.fasilitas-item i { font-size: 0.4rem; color: var(--primary-green); }

/* UNIFIED TRIFOLD LAYOUT */
.brochure-page-wrapper.unified {
    padding: 100px 20px 80px;
    background: #f8faf8;
}

.trifold {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Balanced Gap */
    align-items: stretch;
}

.brochure-panel.flyer-left, 
.brochure-panel.flyer-middle, 
.brochure-panel.flyer-right {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.brochure-panel.flyer-left { background: var(--deep-green); color: white; border: none; }
.brochure-panel.flyer-right { background: #fdfdfd; }

.panel-title.main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    border-bottom: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 3.5rem; /* More space below title */
    padding: 0;
    letter-spacing: 2px;
}

.panel-title.centered { justify-content: center; border-left: none; padding: 0; text-align: center; }
.panel-title.small { font-size: 1.1rem; }

/* PRESTIGE VERTICAL LIST (Flyer Left) */
.prestige-vertical-list { display: flex; flex-direction: column; gap: 2rem; } /* More space between items */
.prestige-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}
.yellow-dot {
    width: 28px;
    height: 28px;
    background: var(--primary-gold);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.trophy-bg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.05;
    transform: rotate(-15deg);
}

/* SYARAT LIST (Flyer Middle) */
.syarat-list-dots {
    list-style: none;
    padding: 0;
    margin-top: 2.5rem; /* More space above list */
}
.syarat-list-dots li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1.4rem; /* More space between items */
    font-weight: 600;
    color: #444;
}
.syarat-list-dots li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 1.5rem;
    line-height: 1.2;
}

/* EKSKUL BADGE GRID (Flyer Middle Bottom) */
.ekskul-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* More gap */
    margin-top: 2.5rem;
}
.ekskul-badge {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.badge-icon {
    width: 55px;
    height: 55px;
    background: #f0f4f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}
.ekskul-badge:hover .badge-icon {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
}
.ekskul-badge span { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: #777; }

/* CONTACT UNIFIED (Flyer Right) */
.flyer-logo-badge { text-align: center; margin-bottom: 2.5rem; }
.flyer-logo-badge img { width: 75px; height: auto; }
.flyer-frame-mini { 
    max-width: 180px; 
    margin: 0 auto 2.5rem; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}
.flyer-frame-mini img { width: 100%; height: auto; display: block; }

.contact-list-compact { margin: 2.5rem 0; }
.contact-row-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px; /* More padding */
    background: #f8faf8;
    border-radius: 12px;
    margin-bottom: 12px;
}
.contact-row-compact i { color: var(--primary-green); }
.contact-row-compact span { font-size: 0.85rem; color: #555; }

.ayo-daftar-btn {
    display: block;
    width: 100%;
    background: var(--deep-green);
    color: white;
    text-align: center;
    padding: 1.3rem;
    border-radius: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    box-shadow: 0 10px 20px rgba(11, 62, 45, 0.2);
    transition: var(--transition-smooth);
}
.ayo-daftar-btn:hover { background: var(--primary-green); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(11, 62, 45, 0.3); }

/* COMPACT SECONDARY SECTIONS */
.compact-panel { padding: 3rem 4rem; }
.visi-misi-flex.mini { gap: 4rem; }
.visi-text.mini { font-size: 1.1rem; margin-bottom: 2rem; }
.misi-list.mini li { margin-bottom: 0.8rem; font-size: 0.95rem; }
.fasilitas-grid.mini { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.program-grid.mini { grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.program-focus-card.dark { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 2rem; }
.program-focus-card.dark h3 { color: var(--primary-gold); font-size: 1.1rem; margin-bottom: 1rem; }
.program-focus-card.dark p { font-size: 0.8rem; opacity: 0.7; }

.mini-career-list { font-size: 0.75rem; color: var(--primary-gold); font-weight: 800; text-transform: uppercase; margin-top: 1.5rem; }

@media (max-width: 1200px) {
    .trifold { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 768px) {
    .trifold { grid-template-columns: 1fr; }
    .brochure-page-wrapper.unified { padding-top: 60px; }
    .fasilitas-grid.mini, .program-grid.mini { grid-template-columns: 1fr; }
}

/* CONTACT UNIFIED (Flyer Right) */
.flyer-logo-badge { text-align: center; margin-bottom: 2rem; }
.flyer-logo-badge img { width: 70px; height: auto; }
.flyer-frame-mini { 
    max-width: 180px; 
    margin: 0 auto 2rem; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}
.flyer-frame-mini img { width: 100%; height: auto; display: block; }

.contact-list-compact { margin: 2rem 0; }
.contact-row-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8faf8;
    border-radius: 12px;
    margin-bottom: 10px;
}
.contact-row-compact i { color: var(--primary-green); }
.contact-row-compact span { font-size: 0.85rem; color: #555; }

.ayo-daftar-btn {
    display: block;
    width: 100%;
    background: var(--deep-green);
    color: white;
    text-align: center;
    padding: 1.2rem;
    border-radius: 15px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(11, 62, 45, 0.2);
    transition: var(--transition-smooth);
}
.ayo-daftar-btn:hover { background: var(--primary-green); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(11, 62, 45, 0.3); }

/* COMPACT SECONDARY SECTIONS */
.compact-panel { padding: 2rem 3rem; }
.visi-misi-flex.mini { gap: 3rem; }
.visi-text.mini { font-size: 1rem; margin-bottom: 1rem; }
.misi-list.mini li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.fasilitas-grid.mini { grid-template-columns: repeat(2, 1fr); }
.program-grid.mini { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.program-focus-card.dark { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 1.5rem; }
.program-focus-card.dark h3 { color: var(--primary-gold); font-size: 1rem; margin-bottom: 0.8rem; }
.program-focus-card.dark p { font-size: 0.75rem; opacity: 0.7; }

.mini-career-list { font-size: 0.7rem; color: var(--primary-gold); font-weight: 800; text-transform: uppercase; margin-top: 1rem; }

@media (max-width: 1200px) {
    .trifold { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .trifold { grid-template-columns: 1fr; }
    .brochure-page-wrapper.unified { padding-top: 60px; }
    .fasilitas-grid.mini, .program-grid.mini { grid-template-columns: 1fr; }
}

/* INTERACTIVE BROCHURE GALLERY (Vertical Stack) */
.brochure-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.brochure-preview-card.full-preview {
    background: white;
    padding: 1.5rem;
    border-radius: 25px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.preview-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: auto; /* Allow natural image height */
}

.preview-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.preview-image-wrapper:hover img {
    transform: scale(1.03);
}

.zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 62, 45, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.4s ease;
}

.preview-image-wrapper:hover .zoom-overlay {
    opacity: 1;
}

.zoom-overlay i { font-size: 2.5rem; margin-bottom: 0.5rem; transform: translateY(15px); transition: all 0.4s ease; }
.zoom-overlay span { font-size: 0.8rem; font-weight: 800; letter-spacing: 1px; transform: translateY(15px); transition: all 0.4s ease; }

.preview-image-wrapper:hover .zoom-overlay i,
.preview-image-wrapper:hover .zoom-overlay span {
    transform: translateY(0);
}

.download-master-btn-compact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--deep-green) 0%, var(--primary-green) 100%);
    color: white !important;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2);
    transition: var(--transition-smooth);
    margin: 0 auto;
}

.download-master-btn-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--deep-green) 100%);
}

/* LIGHTBOX STYLES (Glassmorphism) */
.brochure-lightbox {
    display: none;
    position: fixed;
    z-index: 999991;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 20px;
    cursor: zoom-out;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover { color: var(--primary-gold); }

@media (max-width: 768px) {
    .brochure-preview-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1rem; }
    .lightbox-content { max-width: 100%; }
}

/* ANIMATIONS */
@keyframes pulseGlow {
    0% { transform: translate(-50%, 0) scale(1); box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3); }
    50% { transform: translate(-50%, 0) scale(1.05); box-shadow: 0 20px 50px rgba(40, 167, 69, 0.5); }
    100% { transform: translate(-50%, 0) scale(1); box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3); }
}

.animate-left { animation: slideInLeft 1s cubic-bezier(0.165, 0.84, 0.44, 1); }
.animate-right { animation: slideInRight 1s cubic-bezier(0.165, 0.84, 0.44, 1) backwards; }
.animate-up { animation: revealUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) backwards; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

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