/* ================================
   PONDOK PESANTREN ROUDHOTUL QURAN
   Modern Islamic Design System
   ================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

/* ================================
   CSS Variables / Design Tokens
   ================================ */
:root {
    /* Primary Colors - Islamic Green */
    --primary-900: #0d3d12;
    --primary-800: #1B5E20;
    --primary-700: #2E7D32;
    --primary-600: #388E3C;
    --primary-500: #43A047;
    --primary-400: #66BB6A;
    --primary-300: #81C784;

    /* Secondary Colors - Gold */
    --gold-500: #D4AF37;
    --gold-400: #E5C158;
    --gold-300: #F0D77A;
    --gold-600: #B8960C;

    /* Accent Colors */
    --accent-teal: #00796B;
    --accent-teal-light: #009688;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-arabic: 'Amiri', serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px rgba(27, 94, 32, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(10px);
}

/* ================================
   CSS Reset & Base Styles
   ================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* ================================
   Typography
   ================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray-600);
}

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    direction: rtl;
    color: var(--gold-500);
}

/* ================================
   Layout Utilities
   ================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-600), var(--gold-500));
    border-radius: var(--radius-full);
}

.section-header p {
    max-width: 600px;
    margin: var(--space-lg) auto 0;
    font-size: 1.1rem;
}

/* ================================
   Button Styles
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-800);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--gray-900);
    box-shadow: var(--shadow-lg);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

/* ================================
   Header & Navigation
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header.scrolled .nav-link {
    color: var(--gray-800);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-600);
}

.header.scrolled .logo-text {
    color: var(--primary-800);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-600), var(--gold-500));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    transition: var(--transition-base);
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gold-500);
    color: var(--gray-900);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.nav-cta:hover {
    background: var(--gold-400);
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.header.scrolled .mobile-toggle span {
    background: var(--gray-800);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(13, 61, 18, 0.9) 0%,
            rgba(27, 94, 32, 0.8) 50%,
            rgba(0, 121, 107, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 var(--space-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: var(--white);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title .highlight {
    background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-arabic {
    font-family: var(--font-arabic);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--gold-400);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    color: var(--white);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    margin-top: var(--space-4xl);
    animation: fadeInUp 1s ease 1s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-400);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    opacity: 0.8;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
}

/* ================================
   About Section
   ================================ */
.about {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--gold-500);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-content h2 {
    margin-bottom: var(--space-lg);
}

.about-content .subtitle {
    color: var(--primary-600);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.feature-text p {
    font-size: 0.9rem;
    margin: 0;
}

/* Leadership Cards */
.leadership {
    margin-top: var(--space-3xl);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.leader-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.leader-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-600), var(--gold-500));
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.leader-card h4 {
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.leader-card p {
    color: var(--primary-600);
    font-weight: 500;
    margin: 0;
    font-size: 0.9rem;
}

/* ================================
   Programs Section
   ================================ */
.programs {
    background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.programs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.programs .section-header h2 {
    color: var(--white);
}

.programs .section-header h2::after {
    background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
}

.programs .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.program-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-base);
    overflow: hidden;
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
    transform: scaleX(0);
    transition: var(--transition-base);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.program-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.program-card:hover .program-image img {
    transform: scale(1.1);
}

.program-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -50px auto var(--space-lg);
    position: relative;
    z-index: 1;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
}

.program-card h3 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.program-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
}

.program-features {
    text-align: left;
}

.program-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.program-features li::before {
    content: '✓';
    color: var(--gold-400);
    font-weight: bold;
}

/* ================================
   Facilities Section
   ================================ */
.facilities {
    background: var(--white);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.facility-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition-base);
}

.facility-card:hover img {
    transform: scale(1.1);
}

.facility-card:hover .facility-overlay {
    transform: translateY(0);
}

.facility-overlay h4 {
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.facility-overlay p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
    color: var(--white);
}

/* ================================
   Contact Section
   ================================ */
.contact {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-info h3 {
    margin-bottom: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: var(--space-xs);
}

.contact-text p {
    margin: 0;
}

.contact-text a {
    color: var(--primary-600);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--primary-800);
}

.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    height: 100%;
    min-height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ================================
   Footer
   ================================ */
.footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-about .logo {
    margin-bottom: var(--space-lg);
}

.footer-about p {
    color: var(--gray-400);
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gold-500);
    color: var(--gray-900);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--gold-400);
    padding-left: var(--space-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--gray-500);
    margin: 0;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   WhatsApp Float Button
   ================================ */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    color: var(--white);
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    transition: var(--transition-base);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        order: -1;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
        flex-direction: column;
        justify-content: center;
        padding: var(--space-2xl);
        transition: var(--transition-base);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.25rem;
        padding: var(--space-md) 0;
    }

    .nav-cta {
        margin-top: var(--space-lg);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }

    .stat-item {
        flex: 0 0 40%;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .stat-item {
        flex: 0 0 100%;
    }

    .hero-stats {
        gap: var(--space-lg);
    }
}