/* ==========================================================================
   CSS VARIABLES - Color System v2
   ========================================================================== */
:root {
    /* Primary */
    --primary:         #3B82F6;
    --primary-light:  #60A5FA;
    --primary-soft:   #EFF6FF;
    --primary-border: #BFDBFE;

    /* Accent */
    --accent:         #F59E0B;
    --accent-hover:   #D97706;

    /* Semantic */
    --accent-green:   #22C55E;
    --accent-orange:  #F59E0B;
    --accent-red:     #EF4444;
    --accent-purple:  #8B5CF6;
    --info:           #0EA5E9;

    /* Base */
    --bg-white:  #FFFFFF;
    --bg-soft:   #F8FAFC;
    --bg-card:   #FFFFFF;
    --border:    #E2E8F0;

    /* Text */
    --text-dark:     #1E293B;
    --text-mid:      #64748B;
    --text-light:    #94A3B8;

    /* Shadows */
    --shadow-card:  0 2px 16px rgba(59, 130, 246, 0.07);
    --shadow-hover: 0 8px 32px rgba(59, 130, 246, 0.14);

    /* Radius */
    --radius-card: 20px;
    --radius-btn:  12px;
}

/* ==========================================================================
   GENERAL
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-soft);
    overflow-x: hidden;
}

.container { max-width: 1200px; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    padding: 0.75rem 0;
    background: rgba(255,255,255,0.93) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand.logo-espencerone {
    padding: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo-container { display: flex; align-items: center; gap: 10px; }

.logo-icon-cap {
    background: var(--primary);
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.logo-icon-cap i { font-size: 1.3rem; color: white; }

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Baris Atas: SMPN 1 Cerbon */
.logo-title-main {
    font-size: 1.35rem;        
    font-weight: 800;          
    color: #718096;            
    line-height: 1.1;
    letter-spacing: -0.2px;
}

/* Baris Bawah: Learning Management System */
.logo-subtitle-sub {
    font-size: 0.8rem;         
    font-weight: 400;          
    color: #a0aec0;            
    line-height: 1.2;
    letter-spacing: 0.3px;     
}

.navbar-brand.logo-espencerone:hover .logo-icon-cap {
    transform: rotate(-8deg) scale(1.05);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

.navbar-brand.logo-espencerone:hover .brand-name { color: var(--primary); }

.navbar-nav .nav-link {
    color: var(--text-mid);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 8px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover { color: var(--primary); background: var(--primary-soft); }

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
    padding: 8px;
}

.dropdown-item {
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 8px 14px;
    transition: all 0.2s;
}

.dropdown-item:hover { background: var(--primary-soft); color: var(--primary); }

/* Auth Buttons */
.btn-outline-primary {
    color: var(--primary);
    border: 1.5px solid var(--primary-border);
    padding: 7px 22px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.88rem;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 7px 22px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.88rem;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: white;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 525px; 
    min-height: 525px;
    display: flex;
    align-items: center; 
    overflow: hidden;
    padding: 0;
    background-color: #0a1226;
}

/* ── Foto sekolah: full background ── */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.03);
    animation: hero-zoom 12s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}

/* ── Overlay gelap: kiri & tengah ── */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(10, 18, 38, 0.90) 0%,
        rgba(10, 18, 38, 0.80) 40%,
        rgba(10, 18, 38, 0.45) 65%,
        rgba(10, 18, 38, 0.15) 100%
    );
    z-index: 1;
}

/* ── Shadow bawah ── */
.hero-shadow-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to top,
        rgba(10, 18, 38, 0.60) 0%,
        transparent 100%
    );
    z-index: 2;
}

/* ── Container hero: flex row ── */
.hero-container {
    position: relative;
    z-index: 3;
    height: 100%; 
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding-top: 40px; 
    padding-bottom: 40px;
    gap: 40px;
}

/* ── KIRI: Teks ── */
.hero-content {
    flex: 0 0 58%;
    max-width: 58%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.77rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    width: fit-content;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    animation: fadeInUp 0.5s ease both;
}

.hero-badge .badge-dot {
    width: 7px; height: 7px;
    background: #22C55E;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Judul */
.hero-title {
    font-size: 2.4rem; 
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .school-name {
    color: #60A5FA;   
    display: block;
    margin-top: 2px;
}

/* Deskripsi */
.hero-description {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-bottom-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* ── TOMBOL CTA ── */
.btn-signup {
    background: var(--primary, #3B82F6) !important;
    color: white !important;
    padding: 11px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    position: relative;
    z-index: 5;
    transform: translateY(0);
    transition: transform 0.2s ease-in-out, background-color 0.2s ease;
}

.btn-signup i { 
    font-size: 0.78rem; 
    transition: transform 0.2s ease;
}

.btn-signup:hover {
    background: #2563eb !important; 
    transform: translateY(-4px) !important; 
    color: white !important;
}

.btn-signup:hover i {
    transform: translateX(3px); 
}

.btn-signup:active {
    transform: translateY(0) !important; 
}

/* ── STATISTIK CHIPS ── */
.hero-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 8px 16px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: transform 0.2s ease-in-out, background-color 0.2s ease;
}

.stat-chip:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) !important;
}

.stat-chip .stat-num { font-weight: 800; font-size: 1rem; color: #fff; line-height: 1.2; }
.stat-chip .stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.6); white-space: nowrap; }

/* ── KANAN: Foto siswa ── */
.hero-student-wrap {
    flex: 0 0 38%;
    max-width: 38%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-student-img {
    width: 100%;
    max-width: 310px; 
    height: auto;
    object-fit: contain;
    object-position: bottom;
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.6) 12%, black 30%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.6) 12%, black 30%);
    filter: drop-shadow(-8px 0 24px rgba(0,0,0,0.5));
    animation: fadeInUp 0.9s ease 0.3s both;
}

/* ── SECTION TITLES ── */
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 44px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section { 
    padding: 80px 0; 
    background: #f6f8fd; 
}

.about-section .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-section .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--slate-main);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.about-section .section-subtitle {
    font-size: 0.95rem;
    color: var(--slate-sub);
    text-align: center;
    margin-bottom: 40px;
}

.about-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; 
    gap: 40px;
    align-items: center;
    background: #ffffff;
    border-radius: 16px; 
    padding: 32px; 
    box-shadow: 0 4px 20px rgba(31, 41, 55, 0.03);
    border: 1.5px solid var(--slate-border);
    margin-top: 20px;
}

.about-image-wrapper {
    width: 100%;
    height: 280px; 
    position: relative;
    overflow: hidden;
    border-radius: 12px; 
    border: 1px solid var(--slate-border);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease;
}

.about-card:hover .about-image-wrapper img { 
    transform: scale(1.04); 
}

.about-content { text-align: left; }

.about-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--slate-main); 
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-text {
    color: var(--slate-sub); 
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: justify;
}

.about-content .btn-secondary {
    display: inline-flex !important; 
    align-items: center;
    gap: 8px;
    background-color: #1e40af !important; 
    color: #ffffff !important;            
    padding: 12px 24px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    border: none !important;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.about-content .btn-secondary:hover {
    background-color: #1d4ed8 !important; 
    color: #ffffff !important;            
    transform: translateY(-2px);          
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35); 
}

.about-content .btn-secondary i {
    font-size: 0.8rem;
    color: #ffffff !important;            
    transition: transform 0.2s ease;
}

/* ==========================================================================
   KELAS SECTION
   ========================================================================== */
.kelas-section {
    padding: 60px 0;
    background: #ffffff; 
}

.kelas-section .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.kelas-section .section-title {
    color: var(--slate-main);
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.kelas-section .section-subtitle {
    font-size: 0.85rem;
    color: var(--slate-sub);
    margin-bottom: 40px;
    line-height: 1.5;
    text-align: center;
}

.kelas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.kelas-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px solid var(--slate-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

.kelas-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 38px rgba(30, 64, 175, 0.12), 
                0 15px 12px rgba(30, 64, 175, 0.06);
    border-color: var(--blue-primary);
}

.kelas-preview {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kelas-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(31, 41, 55, 0.2);
    transition: background 0.3s ease;
    z-index: 1;
}

.kelas-card:hover .kelas-preview::before {
    background: rgba(31, 41, 55, 0.45);
}

.kelas-status {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bg-success);
    color: var(--text-success);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.pulse-dot {
    width: 6px; height: 6px;
    background-color: var(--text-success);
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(21, 128, 61, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

.btn-view-kelas {
    background: #ffffff;
    color: var(--slate-main);
    border: 1.5px solid var(--slate-border);
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.kelas-card:hover .btn-view-kelas {
    opacity: 1;
    transform: translateY(0);
}

.btn-view-kelas:hover {
    background: var(--blue-primary);
    color: #ffffff;
    border-color: var(--blue-primary);
}

.btn-view-kelas i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.btn-view-kelas:hover i { transform: translateX(3px); }

.kelas-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kelas-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-main);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-border);
}

.mapel-area { display: flex; flex-direction: column; gap: 8px; }
.mapel-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--slate-sub);
    letter-spacing: 0.05em;
}

.mapel-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.mapel-badge {
    background: var(--slate-bg-well);
    color: var(--slate-sub);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--slate-border);
    transition: all 0.2s ease;
}

.mapel-badge:hover {
    background: #ffffff;
    border-color: var(--blue-primary);
    color: var(--blue-primary);
}

.kelas-anim { animation: fadeInUp 0.6s ease both; }

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 60px 0;
    background-color: #f6f8fd; 
}

.contact-section .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-section .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--slate-main);
    text-align: center;
    margin-bottom: 8px;
}

.contact-section .section-subtitle {
    font-size: 0.95rem;
    color: var(--slate-sub);
    text-align: center;
    margin-bottom: 56px;
}

.contact-clean-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 64px;
    align-items: start;
}

.contact-block-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--slate-main);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-flat-list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
}

.contact-flat-list .item-alamat { grid-column: span 2; }

.contact-flat-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: none; 
    border: none;
    padding: 0;
}

.contact-flat-list li > i {
    font-size: 1.15rem;
    margin-top: 3px;
    min-width: 22px;
    text-align: center;
}

.contact-flat-list .text-wrapper { display: flex; flex-direction: column; gap: 2px; }

.contact-flat-list .label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--slate-sub);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-flat-list p {
    font-size: 0.92rem;
    color: var(--slate-main);
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}

.contact-flat-list p a {
    color: var(--slate-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-flat-list p a:hover {
    color: var(--blue-primary);
    text-decoration: underline;
}

.contact-flat-list .empty-text {
    color: var(--slate-sub);
    font-style: italic;
    font-weight: 500;
}

/* ── WARNA IKON SELEKTIF ── */
.icon-alamat { color: #4b5563; } 
.icon-npsn   { color: #b45309; } 
.icon-email  { color: #ea4335; } 
.icon-web    { color: #1a73e8; } 
.icon-telp   { color: #34a853; } 

.social-desc {
    font-size: 0.88rem;
    color: var(--slate-sub);
    line-height: 1.5;
    margin-bottom: 20px;
}

.social-flat-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-link-flat {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--slate-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-link-flat i {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.icon-fb { color: #1877f2; }
.icon-ig { color: #e1306c; }
.icon-tw { color: #1da1f2; }

.social-link-flat:hover { transform: translateX(4px); }
.social-link-flat:hover .icon-fb { color: #1154b0; }
.social-link-flat:hover .icon-ig { color: #b81f51; }
.social-link-flat:hover .icon-tw { color: #0d7dbd; }

/* ==========================================================================
   BACK TO TOP & FOOTER
   ========================================================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 28px; right: 28px;
    background: var(--primary);
    color: white;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    z-index: 1000;
}

.btn-back-to-top.show { opacity: 1; visibility: visible; }
.btn-back-to-top:hover { background: var(--primary-light); transform: translateY(-3px); }

.footer { background: var(--text-dark); padding: 22px 0; text-align: center; }
.footer-text { color: var(--text-light); margin: 0; font-size: 0.85rem; }

/* ==========================================================================
   MODAL TENTANG KAMI
   ========================================================================== */
.about-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.60);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.about-modal-backdrop.open { opacity: 1; visibility: visible; }

.about-modal {
    background: #ffffff !important; 
    border-radius: 12px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(31, 41, 55, 0.15);
    border: 1.5px solid var(--slate-border);
    transform: translateY(32px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden;
}

.about-modal-backdrop.open .about-modal { transform: translateY(0) scale(1); }

.amodal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px 14px;
    border-bottom: 1.5px solid var(--slate-border);
    flex-shrink: 0;
    background: #ffffff !important;
}

.amodal-logo {
    width: 42px; height: 42px;
    background: #eff6ff !important;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue-primary) !important;
    font-size: 1.15rem;
    border: 1.5px solid var(--slate-border);
    flex-shrink: 0;
}

.amodal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--slate-main);
    margin: 0 0 2px;
    line-height: 1.3;
}

.amodal-subtitle {
    font-size: 0.72rem;
    color: var(--slate-sub);
    font-weight: 500;
}

.amodal-close {
    margin-left: auto;
    width: 32px; height: 32px;
    border: 1.5px solid var(--slate-border);
    border-radius: 6px;
    background: transparent !important;
    color: var(--slate-sub) !important;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.amodal-close:hover {
    background: var(--bg-danger) !important;
    border-color: #fca5a5 !important;
    color: var(--text-danger) !important;
}

.amodal-tabs {
    display: flex;
    gap: 24px; 
    padding: 0 24px; 
    border-bottom: 1.5px solid var(--slate-border);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
    background: #ffffff !important;
}

.amodal-tabs::-webkit-scrollbar { display: none; }

.atab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 4px; 
    background: transparent !important; 
    color: var(--slate-sub) !important; 
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    border: none !important; 
    border-bottom: 3px solid transparent !important; 
    border-radius: 0 !important; 
    box-shadow: none !important; 
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* 🎨 PEWARNAAN IKON FUNGSIONAL */
.atab i.fa-user, .atab i.fa-id-card, .atab i.fa-school { color: #1e40af !important; }
.atab i.fa-history, .atab i.fa-landmark, .atab i.fa-calendar-alt { color: #b45309 !important; }
.atab i.fa-star, .atab i.fa-bullseye, .atab i.fa-award { color: #15803d !important; }
.atab i.fa-map-marker-alt, .atab i.fa-map-marked-alt { color: #dc2626 !important; }

.atab:hover { background: transparent !important; color: var(--slate-main) !important; }

.atab.active {
    background: transparent !important; 
    color: var(--blue-primary) !important; 
    font-weight: 700;
    border-bottom-color: var(--blue-primary) !important; 
    box-shadow: none !important;
}

.atab.active i { color: var(--blue-primary) !important; }

.amodal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    background: #ffffff !important;
    scrollbar-width: thin;
    scrollbar-color: var(--slate-border) transparent;
}

.atab-content { display: none; }
.atab-content.active { display: block; animation: fadeInUp 0.3s ease both; }

/* PROFIL TAB */
.profil-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid var(--slate-border);
    border-radius: 8px;
    overflow: hidden;
}

.profil-row {
    display: grid;
    grid-template-columns: 180px 16px 1fr;
    align-items: start;
    gap: 0 8px;
    padding: 10px 16px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--slate-border);
    transition: background 0.15s ease;
}

.profil-row:last-child { border-bottom: none; }
.profil-row:nth-child(odd) { background: var(--slate-bg-well) !important; }
.profil-row:hover { background: #eff6ff !important; }
.profil-key { color: var(--slate-sub); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.profil-key i { color: var(--blue-primary) !important; font-size: 0.75rem; width: 14px; }
.profil-sep { color: var(--slate-border); font-weight: 600; }
.profil-val { color: var(--slate-main); font-weight: 500; }

.badge-negeri {
    background: var(--bg-success) !important;
    color: var(--text-success) !important;
    border: 1.5px solid #a7f3d0;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* SEJARAH TAB */
.sejarah-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 28px;
}

.sejarah-timeline::before {
    content: '';
    position: absolute;
    left: 10px; top: 12px; bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue-primary), var(--blue-hover));
    border-radius: 2px;
}

.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -24px; top: 14px;
    width: 10px; height: 10px;
    background: var(--blue-primary) !important;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

.timeline-dot {
    position: absolute;
    left: -24px; top: 14px;
    width: 10px; height: 10px;
    background: var(--blue-primary) !important;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

.timeline-card {
    background: var(--slate-bg-well) !important;
    border: 1.5px solid var(--slate-border);
    border-radius: 8px;
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.timeline-card:hover {
    border-color: var(--blue-primary) !important;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.05);
}

.timeline-year {
    display: inline-block;
    background: #eff6ff !important;
    color: var(--blue-primary) !important;
    border: 1px solid var(--slate-border);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.timeline-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--slate-main); margin-bottom: 6px; }
.timeline-card p { font-size: 0.82rem; color: var(--slate-sub); line-height: 1.6; margin: 0; }

/* VISI MISI TAB */
.vm-wrap { display: flex; flex-direction: column; gap: 12px; }
.vm-card { border-radius: 10px; padding: 18px 20px; border: 1.5px solid var(--slate-border); position: relative; overflow: hidden; }
.vm-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; opacity: 0.06; }
.vm-visi { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important; border-color: var(--slate-border); }
.vm-visi::before { background: var(--blue-primary); }
.vm-misi { background: linear-gradient(135deg, #f0fdf4 0%, var(--bg-success) 100%) !important; border-color: #a7f3d0; }
.vm-misi::before { background: #22C55E; }

.vm-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 10px;
    border: 1.5px solid;
}

.vm-visi .vm-icon { background: white !important; color: var(--blue-primary) !important; border-color: var(--slate-border); }
.vm-misi .vm-icon { background: white !important; color: var(--text-success) !important; border-color: #a7f3d0; }
.vm-title { font-size: 0.95rem; font-weight: 800; color: var(--slate-main); margin-bottom: 8px; }
.vm-text { font-size: 0.85rem; color: var(--slate-sub); line-height: 1.65; margin: 0; }
.vm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vm-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; color: var(--slate-sub); line-height: 1.5; }
.vm-list li i { color: var(--text-success) !important; font-size: 0.8rem; margin-top: 3px; flex-shrink: 0; }

/* PETA TAB */
.peta-wrap { display: flex; flex-direction: column; gap: 12px; }

.peta-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #eff6ff !important;
    border: 1.5px solid var(--slate-border);
    border-radius: 10px;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.peta-info > i { color: var(--blue-primary) !important; font-size: 1rem; margin-top: 2px; }
.peta-info strong { font-size: 0.85rem; color: var(--slate-main); }
.peta-info span   { font-size: 0.78rem; color: var(--slate-sub); }
.peta-coords { margin-left: auto; display: flex; align-items: center; }
.peta-coords span { font-size: 0.72rem; color: var(--blue-primary) !important; font-weight: 600; background: white !important; border: 1.5px solid var(--slate-border); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.peta-coords i { margin-right: 5px; }
.peta-frame { border-radius: 10px; overflow: hidden; border: 1.5px solid var(--slate-border); box-shadow: 0 4px 12px rgba(31, 41, 55, 0.03); }
.peta-frame iframe { display: block; height: 280px; }

html body a.btn-primary, 
html body a.btn-maps {
    background: #1e40af !important; 
    background-color: #1e40af !important;
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    border: none !important;
    box-shadow: none !important; 
    position: relative !important;
    z-index: 9999 !important;
    transition: transform 0.2s ease-in-out !important;
}

html body a.btn-primary i, 
html body a.btn-maps i {
    color: #ffffff !important;
    display: inline-block !important;
    opacity: 1 !important;
}

html body a.btn-primary:hover, 
html body a.btn-maps:hover {
    background: #1d4ed8 !important; 
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-4px) !important; 
}

html body a.btn-primary:active, 
html body a.btn-maps:active {
    transform: translateY(0) !important;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-illustration {
    animation: fadeInUp 0.8s ease 0.2s both, float-card 4s ease-in-out 1s infinite;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

.hero-section::before,
.hero-section::after { display: none; }


/* ==========================================================================
   ── 📱 PRECISE RESPONSIVE CLEAN UTILITIES (LAPTOP, TABLET & HP) ──
   ========================================================================== */

/* ── 1. TABLET LAYOUT ADJUSTMENT (max 992px) ── */
@media (max-width: 992px) {
    .navbar { padding: 0.6rem 0; }
    
    .hero-section { height: auto; min-height: 500px; padding: 40px 0; }
    .hero-container { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
    .hero-content { flex: 0 0 60%; max-width: 60%; }
    .hero-title { font-size: 1.9rem; }
    .hero-description { font-size: 0.88rem; }
    .hero-student-wrap { flex: 0 0 35%; max-width: 35%; display: flex; align-items: flex-end; }
    .hero-student-img { max-width: 250px; }

    .hero-stats { gap: 8px; }
    .stat-chip { padding: 7px 12px; }
    .stat-chip .stat-num { font-size: 0.88rem; }

    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.85rem; margin-bottom: 32px; }

    .about-card { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
    .about-image-wrapper { height: 240px; }
    .about-content { text-align: center; }
    .about-content h3 { text-align: center; font-size: 1.45rem; }
    .about-text { text-align: justify; font-size: 0.9rem; }
    .about-content .btn-secondary { justify-content: center; margin: 0 auto; display: inline-flex !important; }

    .kelas-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-clean-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ── 2. MOBILE LARGE LAYOUT (max 768px) ── */
@media (max-width: 768px) {
    /* 🔥 REVISI MUTLAK: Penyesuaian Komponen Logo Sekolah Agar Pas & Tidak Patah/Menabrak Toggler */
    .logo-title-main {
        font-size: 1.15rem !important;
        letter-spacing: -0.3px;
    }
    .logo-subtitle-sub {
        font-size: 0.68rem !important;
    }
    .logo-icon-cap {
        width: 32px !important;
        height: 32px !important;
    }
    .logo-icon-cap i {
        font-size: 1.05rem !important;
    }

    .navbar-collapse { 
        background: white !important; 
        border-radius: 14px !important; 
        margin-top: 12px; 
        padding: 16px;
        border: 1px solid var(--slate-border) !important;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }
    .navbar-nav .nav-link { margin: 4px 0; padding: 8px 12px; font-size: 0.88rem; }
    .navbar-nav .nav-link:hover { background: var(--primary-soft); }
    .navbar-nav { margin-bottom: 12px; }
    
    .navbar .d-flex { 
        flex-direction: row !important; 
        gap: 10px; 
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    .navbar .d-flex .btn-outline-primary,
    .navbar .d-flex .btn-primary { 
        flex: 1 !important; 
        text-align: center;
        font-size: 0.82rem;
        padding: 8px 14px;
        justify-content: center;
    }

    .hero-section { min-height: 440px; height: auto; padding: 50px 0; }
    .hero-container { flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; position: relative; }
    .hero-content { flex: 0 0 100% !important; max-width: 100% !important; z-index: 5; text-align: left; }
    .hero-overlay { background: linear-gradient(160deg, rgba(10,18,38,0.94) 0%, rgba(10,18,38,0.82) 100%) !important; }
    
    /* 🔥 REVISI MUTLAK: Ukuran teks disinkronkan agar proporsional di HP */
    .hero-title { font-size: 1.8rem !important; line-height: 1.35; margin-bottom: 12px; }
    .hero-description { font-size: 0.88rem; line-height: 1.6; margin-bottom: 20px; }
    
    .hero-bottom-row { width: 100%; justify-content: flex-start; }
    .btn-signup { width: 100%; max-width: 260px; justify-content: center; padding: 11px 20px; font-size: 0.88rem; }
    
    /* 🔥 REVISI MUTLAK: Grid System Statistik Box */
    .hero-stats { 
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Membagi rata 3 kolom sejajar di layar mobile */
        gap: 10px !important; 
        width: 100% !important; 
    }
    .stat-chip { 
        padding: 8px 10px !important; 
        text-align: center !important;
        border-radius: 10px !important;
    }
    
    .hero-student-wrap { 
        position: absolute !important;
        right: -10px !important; 
        bottom: 0 !important;
        flex: none !important;
        max-width: 42% !important;
        opacity: 0.45 !important; 
        z-index: 1;
        pointer-events: none;
    }
    .hero-student-img { max-width: 220px; width: 100%; height: auto; }

    .kelas-section { padding: 40px 0; }
    .kelas-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .kelas-card { max-width: 100%; }

    .contact-section { padding: 40px 0; }
    .contact-flat-list { grid-template-columns: 1fr !important; gap: 20px; }
    .contact-flat-list .item-alamat { grid-column: span 1; }

    .about-modal { max-width: 95% !important; max-height: 85vh !important; }
    .amodal-tabs { gap: 16px; padding: 0 16px; }
    .atab { font-size: 0.8rem; padding: 12px 2px; }
}

/* ── 3. SMALL MOBILE SCREEN LAYOUT (max 480px) ── */
@media (max-width: 480px) {
    /* 🔥 REVISI MUTLAK: Pengecilan Sempurna Logo Di Layar Sangat Kecil (Dibawah 480px) */
    .navbar-brand {
        max-width: 78%;
    }
    .logo-title-main {
        font-size: 1.05rem !important;
    }
    .logo-subtitle-sub {
        font-size: 0.62rem !important;
    }
    .logo-icon-cap {
        width: 28px !important;
        height: 28px !important;
    }

    .hero-section { padding: 35px 0; }
    .hero-badge { font-size: 0.7rem; padding: 4px 10px; margin-bottom: 12px; }
    .hero-title { font-size: 1.45rem !important; }
    .hero-description { font-size: 0.84rem; line-height: 1.5; }
    .btn-signup { max-width: 100%; }
    
    /* 🔥 REVISI MUTLAK: Mengunci tata letak stat-chip agar tidak bertabrakan */
    .hero-stats { 
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important; 
    }
    .stat-chip { padding: 6px 4px !important; }
    .stat-chip .stat-num { font-size: 0.88rem !important; }
    .stat-chip .stat-label { font-size: 0.6rem !important; letter-spacing: -0.2px; }
    
    .hero-student-wrap { max-width: 48% !important; opacity: 0.35 !important; }

    .about-section { padding: 40px 0; }
    .about-card { padding: 16px 14px; }
    .about-image-wrapper { height: 180px; }
    .about-content h3 { font-size: 1.25rem; }
    .about-text { font-size: 0.84rem; line-height: 1.6; }

    .contact-clean-layout { gap: 30px; }
    .contact-block-title { font-size: 1.1rem; margin-bottom: 16px; }
    .contact-flat-list p { font-size: 0.88rem; }
    .social-link-flat { font-size: 0.85rem; }

    .about-modal { width: 95% !important; max-height: 85vh !important; }
    .amodal-header { padding: 14px 16px 10px; gap: 8px; }
    .amodal-logo { width: 36px; height: 36px; font-size: 1rem; }
    .amodal-title { font-size: 0.95rem; }
    .amodal-close { width: 28px; height: 28px; font-size: 0.75rem; }
    .amodal-body { padding: 16px; }
    
    .profil-row { grid-template-columns: 120px 10px 1fr !important; font-size: 0.78rem; padding: 8px 10px; }
    .timeline-card { padding: 10px 14px; }
    .timeline-card h4 { font-size: 0.82rem; }
    .timeline-card p { font-size: 0.78rem; }
    .vm-card { padding: 14px 16px; }
    .vm-title { font-size: 0.88rem; }
    .vm-text, .vm-list li { font-size: 0.8rem; }
    .peta-info { padding: 10px; gap: 6px; }
    .peta-info strong { font-size: 0.8rem; }
    .peta-info span { font-size: 0.74rem; }
    .peta-coords { margin-left: 0; margin-top: 4px; width: 100%; }
    .peta-frame iframe { height: 200px; }
}