/* assets/css/style.css */

/* ==========================================================================
   1. Import Fonts & Design System Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette - Editorial Serif style integrated with Pesantren colors */
    --background: #FDFBF7;           /* Warm Ivory/Cream Canvas */
    --foreground: #1A2421;           /* Rich Dark Greenish-Black text */
    --primary: #114B33;              /* Deep Emerald Green (Pesantren) */
    --primary-hover: #0B3624;
    --primary-light: rgba(17, 75, 51, 0.06);
    
    --muted: #F4EFE6;                /* Slightly darker cream for surfaces */
    --muted-foreground: #5C6B64;     /* Warm gray-green secondary text */
    
    --accent: #C5A059;               /* Burnished Gold Accent */
    --accent-hover: #B08C45;
    --accent-light: rgba(197, 160, 89, 0.08);
    
    --accent-blue: #1C648E;          /* Technology Blue for STEAM */
    --accent-blue-hover: #134C6E;
    --accent-blue-light: rgba(28, 100, 142, 0.08);
    
    --border: #E9E3D8;               /* Warm thin border lines */
    --card: #FFFFFF;                 /* Pure White Card Canvas */
    --ring: #114B33;                 /* Focus Outline color */
    
    /* Typography Font Pairing */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans 3', 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Shadow System */
    --shadow-sm: 0 1px 2px rgba(26, 36, 33, 0.03);
    --shadow-md: 0 4px 12px rgba(26, 36, 33, 0.05);
    --shadow-lg: 0 8px 24px rgba(26, 36, 33, 0.08);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Reset & Global Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Paper Texture Overlay (Signature Design Element) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.035;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Glow */
.ambient-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    top: 20%;
    right: -10%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    filter: blur(80px);
}

/* Base Headings & Links */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--foreground);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 72rem; /* 1152px */
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Rule Dividers */
.divider {
    height: 1px;
    background-color: var(--border);
    width: 100%;
    border: none;
}

.divider-short {
    width: 4rem;
    height: 2px;
    background-color: var(--accent);
    margin: 1.5rem auto;
}

/* Section label (Small caps with rules) */
.section-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.section-label::before, .section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border);
    max-width: 12rem;
}

.section-label span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ==========================================================================
   3. Typography Styles
   ========================================================================== */
.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }
.small-caps {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.lead {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

/* ==========================================================================
   4. Buttons & Interactive Targets
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    min-height: 2.875rem; /* Min 46px for touch targets */
    transition: var(--transition);
    user-select: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--card);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--card);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    border-color: rgba(255,255,255,0.7);
    color: #FFFFFF;
}

.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #FFFFFF;
}

.btn-ghost {
    background-color: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    color: var(--foreground);
    background-color: var(--muted);
}

.btn:active {
    transform: translateY(0);
}

/* Quick WA Button Floating */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 99;
    font-size: 1.75rem;
}

.wa-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20BA5A;
}

/* ==========================================================================
   5. Layout Components (Header & Navigation)
   ========================================================================== */
.site-header {
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.site-header.scroll {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    transition: var(--transition);
}

.site-header.scroll .navbar {
    height: 4rem;
}

/* Logo brand styled like editorial wordmark */
.brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.55rem, 2vw, 0.625rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-top: -0.1rem;
    white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 13rem;
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    color: var(--foreground);
}

.dropdown-link:hover {
    background-color: var(--muted);
    color: var(--primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--foreground);
    position: relative;
    transition: var(--transition);
}

.hamburger-line::before,
.hamburger-line::after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--foreground);
    position: absolute;
    transition: var(--transition);
}

.hamburger-line::before { top: -6px; }
.hamburger-line::after { bottom: -6px; }

.nav-toggle.open .hamburger-line {
    background-color: transparent;
}
.nav-toggle.open .hamburger-line::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle.open .hamburger-line::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==========================================================================
   6. Hero Slider (Fully dynamic via CSS/JS)
   ========================================================================== */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 42rem;
    background-color: #1A2421;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 36, 33, 0.4) 0%, rgba(26, 36, 33, 0.85) 100%);
    z-index: 2;
}

.slide-content-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
    color: #FFFFFF;
}

.slide-content {
    max-width: 46rem;
}

.slide-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.slide-headline {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(35px);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.slide-subheadline {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.slide-ctas {
    display: flex;
    gap: 1rem;
    transform: translateY(45px);
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.slide.active .slide-label,
.slide.active .slide-headline,
.slide.active .slide-subheadline,
.slide.active .slide-ctas {
    transform: translateY(0);
    opacity: 1;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(253, 251, 247, 0.1);
    border: 1px solid rgba(253, 251, 247, 0.2);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--background);
    color: var(--primary);
    border-color: var(--background);
}

.slider-arrow-prev { left: 2rem; }
.slider-arrow-next { right: 2rem; }

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    list-style: none;
}

.slider-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
}

/* ==========================================================================
   7. Section Layouts & UI Components
   ========================================================================== */

/* Asymmetric Columns Layout */
.grid-asym-2 {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4rem;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

/* Intro Section Stylings */
.welcome-illustration {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.welcome-illustration::after {
    content: "";
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    border-radius: 4px;
}

/* Custom Card Component */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

/* Custom Border Tops to enforce style identity */
.card-accent-top { border-top: 3px solid var(--accent); }
.card-primary-top { border-top: 3px solid var(--primary); }
.card-blue-top { border-top: 3px solid var(--accent-blue); }

.card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-cta {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-cta:hover {
    color: var(--primary);
}

/* Programs section highlights */
.program-school-grid {
    margin-top: 2rem;
}

/* Visi Misi Tab System */
.tab-container {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    background-color: var(--muted);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1.25rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--muted-foreground);
    text-align: center;
}

.tab-btn:hover {
    background-color: rgba(197, 160, 89, 0.05);
    color: var(--primary);
}

.tab-btn.active {
    background-color: var(--card);
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-pane {
    padding: 3rem;
    display: none;
}

.tab-pane.active {
    display: block;
}

.visi-misi-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.visi-misi-list li {
    position: relative;
    padding-left: 2rem;
}

.visi-misi-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Keunggulan Section (Grid) */
.feature-item {
    display: flex;
    gap: 1.5rem;
}

.feature-icon-wrapper {
    background-color: var(--primary-light);
    color: var(--primary);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    border: 1px solid rgba(17, 75, 51, 0.15);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* FAQ Accordion Component */
.faq-accordion {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.faq-question-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--foreground);
    padding: 0.5rem 0;
}

.faq-question-btn:hover {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

.faq-answer p {
    padding-top: 1rem;
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 15rem; /* Adjust if needed */
}

/* Footer Section */
.site-footer {
    background-color: #1A2421; /* Rich Dark Greenish-Black */
    color: rgba(255,255,255,0.7);
    padding-top: 5rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.9375rem;
}

.site-footer h3, .site-footer h4 {
    color: #FFFFFF;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .brand-title {
    color: #FFFFFF;
    transition: color 0.2s ease;
}

.footer-brand .brand:hover .brand-title {
    color: var(--accent);
}

.footer-about {
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    transform: translateX(4px);
    color: var(--accent);
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    color: var(--accent);
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.footer-map-container {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    height: 12rem;
    width: 100%;
    margin-top: 1.5rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

/* ==========================================================================
   8. Specific Page Templates (KB, TPA, TK, SD, SMP)
   ========================================================================== */

/* Subpage Hero */
.subpage-hero {
    background-color: var(--muted);
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.subpage-hero::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -30%;
    width: 35rem;
    height: 35rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.subpage-hero-content {
    position: relative;
    z-index: 2;
    max-width: 48rem;
}

.subpage-hero .subpage-label {
    margin-bottom: 1rem;
    display: inline-block;
}

.subpage-hero h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.subpage-hero p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* Focus learning items grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.focus-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
}

.focus-card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.focus-card-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
}

/* SMP STEAM & Project-Based Showcase */
.steam-banner {
    background-color: var(--accent-blue-light);
    border: 1px dashed var(--accent-blue);
    border-radius: 8px;
    padding: 3rem;
    margin: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.steam-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent-blue);
}

.projects-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.project-card-accent {
    border-top: 3px solid var(--accent-blue);
}

.project-card-body {
    padding: 2rem;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* ==========================================================================
   9. Registration Form & Flow Layout
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    position: relative;
    padding-top: 3rem;
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-light);
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1;
}

.step-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* Form layouts */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3.5rem;
    box-shadow: var(--shadow-md);
    max-width: 54rem;
    margin: 0 auto;
}

.form-section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-control {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--foreground);
    min-height: 2.75rem;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

textarea.form-control {
    min-height: 6rem;
    resize: vertical;
}

.form-note {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.35rem;
}

.file-upload-wrapper {
    position: relative;
    border: 1px dashed var(--border);
    border-radius: 4px;
    background-color: var(--muted);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-wrapper:hover {
    border-color: var(--accent);
    background-color: var(--card);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 1.5rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.file-upload-text {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
}

.file-upload-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
    display: none;
}

/* ==========================================================================
   10. Blog (SEO Layouts)
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.blog-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.blog-card-img {
    height: 13rem;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border);
}

.blog-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-readmore {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--foreground);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-readmore:hover {
    color: var(--accent);
}

/* Single Blog Page */
.blog-post-container {
    max-width: 46rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.blog-post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-post-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
}

.blog-post-meta span strong {
    color: var(--foreground);
}

.blog-post-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.blog-post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.blog-post-content p {
    margin-bottom: 1.75rem;
}

.blog-post-content h2, .blog-post-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}

.blog-post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--primary);
    margin: 2.5rem 0;
}

.blog-post-tags {
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    gap: 0.5rem;
}

.blog-tag {
    background-color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    color: var(--muted-foreground);
}

/* ==========================================================================
   11. Admin Panel & CRM Layouts
   ========================================================================== */
.admin-body {
    background-color: #F8F9FA;
    font-family: var(--font-sans);
}

.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--muted);
}

.admin-login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 28rem;
}

.admin-layout {
    display: grid;
    grid-template-columns: 16rem 1fr;
    min-height: 100vh;
    background-color: #F8F9FA;
}

.admin-sidebar {
    background-color: #0E3E2A; /* Deeper Green */
    color: rgba(255,255,255,0.7);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.05);
    height: 100vh;
    position: sticky;
    top: 0;
    width: 16rem;
    flex-shrink: 0;
    z-index: 100;
    grid-column: 1;
}

.admin-sidebar .brand-title {
    color: #FFFFFF;
}

.admin-sidebar-menu {
    list-style: none;
    margin-top: 3rem;
}

.admin-sidebar-item {
    margin-bottom: 0.75rem;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    background-color: rgba(255,255,255,0.08);
    color: #FFFFFF;
}

.admin-sidebar-link.active {
    border-left: 3px solid var(--accent);
}

.admin-content-area {
    padding: 2rem 2rem 2rem 2rem;
    overflow-y: auto;
    background-color: #F8F9FA; /* Light background to prevent layout green leak */
    grid-column: 2;
}

.admin-nav-toggle {
    display: none;
    background-color: #114B33; /* var(--primary) */
    color: white;
    padding: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    z-index: 101;
    box-shadow: var(--shadow-sm);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.admin-title-desc {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Admin CRM stats grid */
.crm-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.crm-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.crm-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.crm-stat-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.25rem;
}

/* CRM Table View */
.table-responsive {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.admin-table th {
    background-color: var(--muted);
    font-weight: 600;
    color: var(--foreground);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--foreground);
}

.admin-table tr:hover {
    background-color: rgba(253, 251, 247, 0.5);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.badge-pending { background-color: #FFF3CD; color: #856404; }
.badge-approved { background-color: #D4EDDA; color: #155724; }
.badge-rejected { background-color: #F8D7DA; color: #721C24; }

.badge-kb { background-color: #E2F0D9; color: #385723; }
.badge-tpa { background-color: #FCE4D6; color: #C65911; }
.badge-tk { background-color: #FFF2CC; color: #7F6000; }
.badge-sd { background-color: #D9E1F2; color: #1F497D; }
.badge-smp { background-color: #E1D5E7; color: #6C8EBF; }

/* Alert boxes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success { background-color: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.alert-danger { background-color: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }

/* Filter Actions Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 20rem;
    width: 100%;
}

.crm-filters {
    display: flex;
    gap: 0.75rem;
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float-pulse 2s infinite;
}

.wa-float:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

@keyframes float-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.chat-icon {
    width: 60%;
    height: 60%;
}

@media (max-width: 768px) {
    .wa-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
}

/* ==========================================================================
   12. Responsive Style Adaptations (< 768px / Mobile)
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .admin-layout {
        grid-template-columns: 16rem 1fr !important;
    }
    .admin-sidebar {
        display: flex !important;
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        transform: none !important;
        width: 16rem !important;
        box-shadow: none !important;
        grid-column: 1 !important;
    }
    .admin-nav-toggle {
        display: none !important;
    }
    .admin-content-area {
        padding: 2rem !important;
        grid-column: 2 !important;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr !important;
    }
    .admin-nav-toggle {
        display: flex !important;
    }
    .admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 16rem !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        box-shadow: var(--shadow-lg) !important;
        grid-column: auto !important;
    }
    .admin-sidebar.open {
        transform: translateX(0) !important;
    }
    .admin-content-area {
        grid-column: auto !important;
        padding: 1.5rem !important;
    }
    .admin-sidebar.open ~ .admin-content-area {
        position: relative;
    }
    .admin-sidebar.open ~ .admin-content-area::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(26, 36, 33, 0.4);
        backdrop-filter: blur(2px);
        z-index: 999;
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .py-32 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
    .py-20 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    
    /* Navigation adaptation */
    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 16rem;
        height: 100vh;
        background-color: var(--background);
        border-left: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 1px solid var(--border);
        margin-left: 1rem;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
    }

    .nav-item-dropdown:hover .dropdown-menu {
        display: block;
    }

    /* Grids */
    .grid-2, .grid-3, .grid-5, .grid-asym-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem 1.5rem;
    }

    .site-footer {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Slider adjustments */
    .hero-slider-container {
        height: 34rem;
    }

    .slide-headline {
        font-size: 2.15rem;
    }

    .slide-subheadline {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .slider-arrow {
        width: 2.75rem;
        height: 2.75rem;
    }

    .slider-arrow-prev { left: 1rem; }
    .slider-arrow-next { right: 1rem; }

    /* Cards */
    .card {
        padding: 1.75rem;
    }

    .tab-pane {
        padding: 1.5rem;
    }
    
    .tab-btn {
        font-size: 0.95rem;
        padding: 1rem 0.5rem;
    }

    /* subpage hero */
    .subpage-hero {
        padding: 4rem 0;
    }

    .subpage-hero h1 {
        font-size: 2rem;
    }

    /* focus learning grid */
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .steam-banner {
        grid-template-columns: 1fr;
        padding: 1.75rem;
        gap: 1.5rem;
    }

    /* form */
    .form-card {
        padding: 1.75rem;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* stats crm */
    .crm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* table crm on mobile (becomes cards list) */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-wrapper {
        max-width: 100%;
    }

    .crm-filters {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .crm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
}
