/* ===============================================================
   STYLE.CSS - PORTAL RESMI MI TANWIRUL AFKAR MEDALI PURI
   Desain Premium Kelas Dunia: Emerald Green & Gold, Glassmorphism
   Hak Cipta (c) 2026 Anton Maghfiron - A.D.A COMPUTER
   =============================================================== */

:root {
    --primary: #064e3b;
    --primary-light: #059669;
    --primary-dark: #022c22;
    --emerald: #10b981;
    --accent-gold: #d97706;
    --gold-light: #fbbf24;
    --gold-subtle: #fef3c7;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px -2px rgba(6, 78, 59, 0.08);
    --shadow-lg: 0 12px 30px -4px rgba(6, 78, 59, 0.12);
    --shadow-xl: 0 20px 40px -8px rgba(6, 78, 59, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------------- TOP TICKER: BEL SEKOLAH & WAKTU ---------------- */
.top-ticker-bar {
    background: linear-gradient(90deg, #022c22, #064e3b, #047857);
    color: #ecfdf5;
    font-size: 0.85rem;
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1001;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    white-space: nowrap;
}

.bell-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
}
.bell-live-pill:hover {
    background: rgba(251, 191, 36, 0.35);
    transform: scale(1.03);
}

.live-pulse {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ---------------- NAVBAR ---------------- */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-info h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.brand-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-light);
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
    transition: var(--transition);
}
.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}

.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
    position: relative;
    padding: 80px 24px;
    background: radial-gradient(circle at 10% 20%, rgba(236, 253, 245, 0.9) 0%, rgba(248, 250, 252, 1) 90%);
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.badge-madrasah {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.18;
    margin-bottom: 18px;
    letter-spacing: -0.8px;
}

.hero-title .highlight-gold {
    color: var(--accent-gold);
    position: relative;
}

.hero-desc {
    font-size: 1.08rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 35px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid #cbd5e1;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: #f1f5f9;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid #e2e8f0;
    padding-top: 22px;
}

.stat-item h4 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-media-wrapper {
    position: relative;
}

.hero-main-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-main-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - 8px);
}

.floating-badge-top {
    position: absolute;
    top: 25px;
    left: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}
.floating-badge-top .badge-icon {
    font-size: 1.5rem;
}
.floating-badge-top .badge-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
}
.floating-badge-top .badge-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---------------- FITUR 1-ATAP TERPADU SECTION ---------------- */
.section {
    padding: 70px 24px;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-pill {
    display: inline-block;
    background: #ecfdf5;
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: #ecfdf5;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.feature-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.feature-link:hover {
    gap: 8px;
}

/* ---------------- PORTAL TABUNGAN & RAPORT CEK MANDIRI ---------------- */
.checker-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.tab-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 28px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.search-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 600px;
}

.input-field {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1);
}

/* ---------------- GALERI FOTO INTERAKTIF THROTTLE & ZOOM ---------------- */
.gallery-scroll-container {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 15px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) #e2e8f0;
}

.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.gallery-scroll-container::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.gallery-item-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.gallery-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item-card:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-meta {
    padding: 16px;
}
.gallery-meta h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.gallery-meta p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------------- SMART VIDEO EMBED ---------------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.video-embed-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #0f172a;
}

.video-embed-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 16px;
}
.video-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.video-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------------- DIRECTORY DEWAN GURU & STAF ---------------- */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.teacher-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.teacher-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    border: 3px solid #ecfdf5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.teacher-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.teacher-role {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.teacher-bio {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------------- PPDB ONLINE TERPUSAT ---------------- */
.ppdb-section-card {
    background: linear-gradient(135deg, #064e3b, #047857);
    color: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-xl);
}

.ppdb-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.ppdb-content p {
    font-size: 1rem;
    color: #d1fae5;
    margin-bottom: 24px;
}

.ppdb-features-list {
    list-style: none;
    margin-bottom: 30px;
}
.ppdb-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.ppdb-form-card {
    background: white;
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

/* ---------------- LIGHTBOX MODAL ---------------- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox-modal.active {
    display: flex;
}

.lightbox-content-box {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
}

.lightbox-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ---------------- FOOTER & KREDIT ---------------- */
.footer {
    background: #022c22;
    color: #cbd5e1;
    padding: 60px 24px 30px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.creator-credit {
    color: var(--gold-light);
    font-weight: 700;
}

.creator-credit-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}
.creator-credit-link:hover {
    color: #ffffff !important;
    background: #059669;
    box-shadow: 0 0 15px #10b981, 0 0 30px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ---------------- SOCIAL ICONS DENGAN WARNA RESMI & EFEK NEON GLOW ---------------- */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.social-icon-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.social-icon-btn:hover svg {
    transform: scale(1.15);
}

/* WhatsApp Neon Green Glow */
.social-icon-btn.wa {
    border-color: rgba(37, 211, 102, 0.3);
}
.social-icon-btn.wa:hover {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(37, 211, 102, 0.8), 0 0 30px rgba(37, 211, 102, 0.4);
    border-color: #25D366;
    transform: translateY(-2px);
}

/* Instagram Neon Magenta/Orange Glow */
.social-icon-btn.ig {
    border-color: rgba(225, 48, 108, 0.3);
}
.social-icon-btn.ig:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(220, 39, 67, 0.8), 0 0 30px rgba(188, 24, 136, 0.4);
    border-color: #e1306c;
    transform: translateY(-2px);
}

/* Facebook Neon Blue Glow */
.social-icon-btn.fb {
    border-color: rgba(24, 119, 242, 0.3);
}
.social-icon-btn.fb:hover {
    background: #1877F2;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(24, 119, 242, 0.8), 0 0 30px rgba(24, 119, 242, 0.4);
    border-color: #1877F2;
    transform: translateY(-2px);
}

/* YouTube Neon Red Glow */
.social-icon-btn.yt {
    border-color: rgba(255, 0, 0, 0.3);
}
.social-icon-btn.yt:hover {
    background: #FF0000;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.4);
    border-color: #FF0000;
    transform: translateY(-2px);
}

/* Telepon Neon Emerald Glow */
.social-icon-btn.phone {
    border-color: rgba(16, 185, 129, 0.3);
}
.social-icon-btn.phone:hover {
    background: #10B981;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.8), 0 0 30px rgba(16, 185, 129, 0.4);
    border-color: #10B981;
    transform: translateY(-2px);
}

/* Email Neon Red Glow */
.social-icon-btn.email {
    border-color: rgba(234, 67, 53, 0.3);
}
.social-icon-btn.email:hover {
    background: #EA4335;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(234, 67, 53, 0.8), 0 0 30px rgba(234, 67, 53, 0.4);
    border-color: #EA4335;
    transform: translateY(-2px);
}

/* ---------------- 3 LAYER WIDGET PETA GOOGLE MAPS ---------------- */
.map-layer-container {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.map-layer-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px 18px;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.map-tab-btn {
    background: white;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.map-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.map-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.map-external-link {
    background: #4285F4;
    color: white;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    transition: var(--transition);
}
.map-external-link:hover {
    background: #1a73e8;
    box-shadow: 0 0 14px rgba(66, 133, 244, 0.6);
    transform: translateY(-2px);
}

.map-layer-viewport {
    width: 100%;
    height: 420px;
    position: relative;
    background: #0f172a;
}
.map-layer-viewport iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---------------- RESPONSIVE MEDIA QUERIES ---------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-desc {
        margin: 0 auto 28px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats-row {
        max-width: 500px;
        margin: 0 auto;
    }
    .ppdb-section-card {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle-btn {
        display: block;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .search-form-row {
        flex-direction: column;
    }
}
