@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

:root {
    /* Color Palette - Premium Islamic (Emerald & Gold) */
    --primary-dark: #004d99;
    /* Deep Forest Green */
    --primary-main: #3399ff;
    /* Emerald Green */
    --primary-light: #66b3ff;
    --accent-gold: #D4AF37;
    /* Premium Gold */
    --accent-light: #FCE68E;

    /* Typography Colors */
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #F8FAFC;

    /* Backgrounds */
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 25px 30px -5px rgba(51, 153, 255, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* =========================================================================
   UTILITIES
   ========================================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-main), var(--accent-gold));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-main);
    color: white;
    box-shadow: 0 4px 15px rgba(51, 153, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 153, 255, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent-gold), #B8962E);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* =========================================================================
   NAVIGATION (GLASSMORPHISM)
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 24px 0;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 110px;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
    height: 80px;
}

.nav-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-dark);
    line-height: 1.1;
}

.navbar.scrolled .nav-logo span {
    color: var(--primary-dark);
}

/* Base state for transparent navbar (Hero text color check) */
.navbar:not(.scrolled) .nav-logo span,
.navbar:not(.scrolled) .nav-links a {
    color: white;
}

.navbar:not(.scrolled) .nav-logo img {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-dark);
}



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

.navbar:not(.scrolled) .nav-toggle {
    color: white;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(0, 77, 153, 0.8), rgba(51, 153, 255, 0.7)), url('../foto/Foto Gedung.png') center center / cover no-repeat;
    background-attachment: fixed;
    color: white;
    padding-top: 150px;
}

/* Disable fixed attachment on touch/mobile — it breaks on Android & iOS */
@supports (-webkit-touch-callout: none),
(hover: none) {
    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPjxyZWN0IHdpZHRoPSI0IiBoZWlnaHQ9IjQiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: var(--accent-gold);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* =========================================================================
   SAMBUTAN KEPALA SEKOLAH
   ========================================================================= */
.sambutan {
    padding: 100px 0;
    background-color: var(--bg-card);
    position: relative;
}

.sambutan-wrapper {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 60px;
    align-items: stretch;
}

.sambutan-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    height: 100%;
}

.sambutan-image {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 100%;
    background-color: #f0f4f8;
}

.sambutan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

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


.sambutan-content h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.sambutan-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: justify;
}

.kepsek-name {
    margin-top: 32px;
    font-family: var(--font-heading);
}

.kepsek-name h4 {
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.kepsek-name p {
    color: var(--accent-gold);
    font-weight: 500;
}

/* =========================================================================
   PROFIL & SEJARAH (INFO GRID)
   ========================================================================= */
.profil-info {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.history-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-main);
}

.history-card h3 {
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.history-card p {
    color: var(--text-muted);
    text-align: justify;
}

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

.info-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(51, 153, 255, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(51, 153, 255, 0.1);
    color: var(--primary-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.info-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.data-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-word;
}

.data-list li:last-child {
    margin-bottom: 0;
}

/* =========================================================================
   VISI MISI BOARDS
   ========================================================================= */
.visi-misi {
    padding: 100px 0;
    background: #3399ff;
    color: white;
}

.visi-misi .section-title {
    color: white;
}

.visi-misi .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vm-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.vm-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.vm-card h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--accent-gold);
}

.vm-icon {
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.vm-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.vm-list {
    list-style: none;
}

.vm-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.vm-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: -2px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

/* =========================================================================
   EKSTRAKURIKULER & KURIKULUM
   ========================================================================= */
.ekskul {
    padding: 100px 0;
    background: var(--bg-body);
}

.ekskul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.ekskul-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ekskul-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-main);
    z-index: -1;
    transition: height 0.4s ease;
}

.ekskul-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}

.ekskul-card:hover::before {
    height: 100%;
}

.ekskul-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
    background: rgba(51, 153, 255, 0.1);
    color: var(--primary-main);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 2rem;
    transition: var(--transition);
}

.ekskul-card:hover .ekskul-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.ekskul-card h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    transition: var(--transition);
}

.ekskul-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.ekskul-card:hover h4,
.ekskul-card:hover p,
.ekskul-card:hover .ekskul-list {
    color: white;
}

.ekskul-list {
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: var(--transition);
    width: 100%;
}

.ekskul-list li {
    margin-bottom: 6px;
}

.ekskul-list li:last-child {
    margin-bottom: 0;
}


/* =========================================================================
   INFORMASI & PENGUMUMAN
   ========================================================================= */
.informasi-section {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.informasi-wrapper {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .informasi-wrapper {
        grid-template-columns: 1fr;
    }
}

.berita-list {
    display: flex;
    flex-direction: column;
}

.berita-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.berita-card {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.berita-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(51, 153, 255, 0.1);
}

.berita-img {
    width: 220px;
    flex-shrink: 0;
}

.berita-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.berita-content {
    padding: 24px;
    flex: 1;
}

.berita-date {
    font-size: 0.85rem;
    color: var(--primary-main);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.berita-content h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.berita-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.berita-link {
    color: var(--primary-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.berita-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 600px) {
    .berita-card {
        flex-direction: column;
    }

    .berita-img {
        width: 100%;
        height: 180px;
    }
}

/* Sidebar Info */
.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-main), var(--accent-gold));
    border-radius: 2px;
}

.ppdb-poster,
.SPMB-poster {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.ppdb-poster:hover,
.SPMB-poster:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.ppdb-poster img,
.SPMB-poster img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.ppdb-poster-action,
.SPMB-poster-action {
    padding: 20px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ppdb-btn-full,
.SPMB-btn-full {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 1rem;
    padding: 14px 20px;
}


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

.agenda-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.agenda-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.agenda-date {
    background: rgba(51, 153, 255, 0.1);
    color: var(--primary-main);
    border-radius: 12px;
    min-width: 65px;
    text-align: center;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
}

.agenda-item:hover .agenda-date {
    background: var(--primary-main);
    color: white;
}

.agenda-date .day {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-heading);
}

.agenda-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.agenda-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agenda-info h5 {
    color: var(--text-dark);
    margin-bottom: 4px;
    font-size: 1rem;
}

.agenda-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================================================
   GURU & STAF
   ========================================================================= */
.guru-section {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.guru-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.guru-card {
    flex: 0 0 260px;
    max-width: 260px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-align: center;
    position: relative;
}

.guru-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(51, 153, 255, 0.2);
}

.guru-image {
    width: 100%;
    aspect-ratio: 3/4;
    height: auto;
    overflow: hidden;
    background-color: var(--text-light);
    /* use light background so contain looks natural */
    display: flex;
    justify-content: center;
    align-items: center;
}

.guru-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* this fits the image exactly without cutting */
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.guru-card:hover .guru-image img {
    transform: scale(1.05);
    /* slightly smaller scale for contain */
}

.guru-info {
    padding: 24px 20px;
    background: var(--bg-card);
    position: relative;
    z-index: 2;
}

.guru-info h4 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.subject-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(51, 153, 255, 0.1);
    color: var(--primary-main);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
}

.guru-card:hover .subject-badge {
    background: var(--primary-main);
    color: white;
}

/* =========================================================================
   GALERI
   ========================================================================= */
.galeri {
    padding: 100px 0;
    background-color: var(--bg-card);
}

.galeri-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.galeri-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 250px;
    flex: 1 1 300px;
    max-width: 380px;
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeri-item:hover {
    box-shadow: var(--shadow-md);
}

.galeri-item:hover img {
    transform: scale(1.05);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .nav-logo {
    display: block;
    margin-top: -20px;
    margin-bottom: 20px;
}

.footer-brand .nav-logo img {
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-main);
    transform: translateY(-3px);
}

#wa-social-btn:hover {
    background: #25D366 !important;
}


.footer-links h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

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

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--accent-gold);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact .fa-whatsapp {
    color: #25D366;
}

/* WhatsApp Button */
.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
    text-decoration: none;
}

.wa-btn i {
    font-size: 1.3rem;
    animation: waPulse 2s infinite;
    color: white;
}

.wa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    background: linear-gradient(135deg, #2eda6f, #1aaa90);
    color: white;
}

@keyframes waPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}


.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-gold);
}

/* =========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .sambutan-wrapper {
        gap: 40px;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .navbar {
        padding: 16px 0;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    /* Ensure nav links are visible when menu opens at the top */
    .navbar:not(.scrolled) .nav-links a,
    .nav-links a {
        color: var(--text-dark) !important;
        font-size: 1.1rem;
        padding: 15px 30px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        display: block;
        text-align: left;
    }

    /* Change toggle icon color when menu is open */
    .navbar .nav-toggle.open {
        color: var(--text-dark) !important;
    }

    .hero {
        min-height: 80vh;
        padding-top: 120px;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
        padding-top: 30px;
        align-items: center;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .sambutan,
    .profil-info,
    .informasi-section,
    .galeri,
    .ekskul,
    .visi-misi,
    .guru-section {
        padding: 60px 0;
    }

    .sambutan-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sambutan-image-wrapper {
        width: 260px;
        height: 320px;
        max-width: 100%;
        margin: 20px auto 10px auto;
        order: -1;
    }

    .sambutan-image {
        width: 100%;
        height: 100%;
    }

    .sambutan-image img {
        min-height: unset;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .history-card {
        padding: 24px;
        margin-bottom: 40px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-item .data-list li {
        text-align: center;
    }

    .berita-card {
        flex-direction: column;
    }

    .berita-img {
        width: 100%;
        height: 200px;
    }

    .sidebar-info {
        gap: 20px;
    }

    .vm-card {
        padding: 24px;
    }

    .vm-card h3 {
        font-size: 1.4rem;
        justify-content: center;
    }

    /* Guru Mobile adjustments */
    .guru-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .guru-card {
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }

    .guru-image {
        aspect-ratio: 1/1;
        /* maybe a square format looks better on mobile if space is tight */
    }

    .guru-info h4 {
        font-size: 1.1rem;
    }

    .subject-badge {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .sambutan-content h3 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* =========================================================================
   MOBILE FOOTER IMPROVEMENTS
   ========================================================================= */
@media (max-width: 768px) {
    footer {
        padding: 50px 0 16px 0;
    }

    /* Brand: center logo, smaller text */
    .footer-brand p {
        font-size: 0.82rem;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .footer-brand .nav-logo img {
        height: 70px;
    }

    /* Side-by-side: Pintasan + Informasi */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
    }

    /* Brand spans full width on top */
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        gap: 12px;
    }

    /* Headings smaller */
    .footer-links h4,
    .footer-contact h4 {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    /* Link items smaller */
    .footer-links ul li {
        margin-bottom: 8px;
    }

    .footer-links ul li a {
        font-size: 0.82rem;
    }

    /* Contact spans full width below */
    .footer-contact {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 20px;
    }

    .footer-contact h4 {
        font-size: 0.95rem;
    }

    .footer-contact ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
    }

    /* Address spans full width */
    .footer-contact li:first-child {
        grid-column: 1 / -1;
    }

    .footer-contact li {
        font-size: 0.8rem;
        gap: 8px;
        margin-bottom: 0;
        align-items: flex-start;
    }

    .footer-contact i {
        font-size: 1rem;
        margin-top: 1px;
    }

    .footer-contact span {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 0.75rem;
    }
}