/* ==========================================
   REHAN SCHOOL - MAIN STYLESHEET
   AI-Enabled Educational Platform
   ========================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Deep Ocean Blue to Teal */
    --primary-50: #e6f7ff;
    --primary-100: #b3e0ff;
    --primary-200: #80caff;
    --primary-300: #4db3ff;
    --primary-400: #1a9dff;
    --primary-500: #0077cc;
    --primary-600: #005fa3;
    --primary-700: #00477a;
    --primary-800: #002f52;
    --primary-900: #001829;

    /* Secondary Colors - Warm Coral */
    --secondary-50: #fff5f2;
    --secondary-100: #ffe0d6;
    --secondary-200: #ffcbba;
    --secondary-300: #ffb69e;
    --secondary-400: #ffa182;
    --secondary-500: #ff6b35;
    --secondary-600: #e54d1a;
    --secondary-700: #b33d15;
    --secondary-800: #802c0f;
    --secondary-900: #4d1a09;

    /* Accent Colors - Electric Purple */
    --accent-500: #7c3aed;
    --accent-600: #6d28d9;

    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-400) 100%);
    --gradient-dark: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d3a5c 100%);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 119, 204, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* 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-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    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.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.25rem; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title {
    margin-bottom: 20px;
}

.section-description {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn i {
    font-size: 0.875rem;
    transition: transform var(--transition-base);
}

.btn:hover i {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 4px 20px rgba(0, 119, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 8px 30px rgba(0, 119, 204, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-light {
    background: white;
    color: var(--primary-600);
}

.btn-light:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.0625rem;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    color: white;
}

.header.scrolled .logo-text {
    color: var(--gray-900);
}

.logo-text .highlight {
    color: var(--primary-500);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.header.scrolled .nav-links a {
    color: var(--gray-700);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.header.scrolled .nav-links a:hover,
.header.scrolled .nav-links a.active {
    color: var(--primary-600);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions .btn-primary {
    padding: 12px 24px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition-base);
}

.header.scrolled .mobile-menu-btn span {
    background: var(--gray-800);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-400);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-500);
    bottom: -100px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-500);
    top: 50%;
    left: 50%;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-5deg); }
    75% { transform: translate(-20px, -10px) rotate(3deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    color: white;
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--secondary-400) 0%, var(--secondary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1875rem;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-avatars {
    display: flex;
}

.trust-avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--gray-800);
    margin-left: -12px;
    object-fit: cover;
}

.trust-avatars img:first-child {
    margin-left: 0;
}

.hero-trust p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.hero-trust strong {
    color: white;
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-card {
    position: relative;
}

.hero-img-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-img-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-800);
    animation: bounce 3s ease-in-out infinite;
}

.floating-card i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
}

.card-1 {
    top: 20px;
    left: -30px;
    animation-delay: 0s;
}

.card-1 i {
    background: var(--primary-100);
    color: var(--primary-600);
}

.card-2 {
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.card-2 i {
    background: var(--secondary-100);
    color: var(--secondary-600);
}

.card-3 {
    bottom: 40px;
    left: 20px;
    animation-delay: 1s;
}

.card-3 i {
    background: #fef3c7;
    color: #d97706;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-2 {
    animation: bounce2 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes bounce2 {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 10px)); }
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card.featured {
    background: var(--gradient-primary);
    border: none;
}

.feature-card.featured * {
    color: white;
}

.feature-card.featured .feature-icon {
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-600);
}

.feature-card.featured .feature-icon i {
    color: white;
}

.feature-card h3 {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-card.featured p {
    color: rgba(255, 255, 255, 0.85);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.9375rem;
}

.feature-card.featured .feature-link {
    color: white;
}

.feature-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.feature-link:hover i {
    transform: translateX(4px);
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats {
    padding: 80px 0;
    background: var(--gradient-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: var(--section-padding);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid white;
}

.about-img-secondary img {
    width: 220px;
    height: 180px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    top: 30px;
    left: -30px;
    background: var(--gradient-secondary);
    padding: 24px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.exp-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.exp-text {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    margin-top: 4px;
}

.about-content .section-badge {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    color: var(--gray-600);
    font-size: 1.0625rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-700);
    font-weight: 500;
}

.about-feature i {
    color: var(--success);
    font-size: 1.25rem;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 1rem;
}

.testimonial-text {
    color: var(--gray-700);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.0625rem;
    margin-bottom: 4px;
}

.author-info span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    color: var(--gray-600);
    transition: var(--transition-base);
}

.nav-btn:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition-base);
}

.dot.active {
    background: var(--primary-500);
    width: 30px;
    border-radius: var(--radius-full);
}

/* ==========================================
   ARTICLES SECTION
   ========================================== */
.articles {
    padding: var(--section-padding);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--gray-100);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.article-card.featured-article {
    grid-row: span 2;
}

.article-image {
    position: relative;
    overflow: hidden;
}

.article-card.featured-article .article-image img {
    height: 300px;
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 28px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.article-meta i {
    color: var(--primary-500);
}

.article-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color var(--transition-base);
}

.article-card:hover h3 {
    color: var(--primary-600);
}

.article-content p {
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-600);
    font-weight: 600;
}

.article-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

.article-link:hover i {
    transform: translateX(4px);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--gray-900);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 24px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-500);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--gray-400);
}

.footer-contact i {
    color: var(--primary-400);
    margin-top: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: var(--gray-500);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-description {
        margin: 0 auto 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-content .section-badge,
    .about-content .section-title {
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-content .btn {
        display: block;
        text-align: center;
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card.featured-article {
        grid-row: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px 0;
        color: var(--gray-700);
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-actions .btn-primary {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-img-wrapper img {
        height: 350px;
    }

    .floating-card {
        padding: 12px 16px;
        font-size: 0.8125rem;
    }

    .floating-card i {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .card-1 {
        left: 10px;
    }

    .card-2 {
        right: 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 30px 16px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-img-secondary {
        display: none;
    }

    .experience-badge {
        top: 20px;
        left: 20px;
        padding: 18px 22px;
    }

    .exp-number {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 70px 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .btn-lg {
        padding: 16px 28px;
        font-size: 1rem;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .trust-avatars img {
        width: 36px;
        height: 36px;
    }

    .stat-card {
        padding: 24px 12px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-card {
        padding: 30px 24px;
    }

    .testimonial-card {
        padding: 28px;
    }

    .article-content {
        padding: 20px;
    }
}

/* ==========================================
   PAGE-SPECIFIC STYLES
   ========================================== */

/* Page Hero (for internal pages) */
.page-hero {
    padding: 160px 0 80px;
    background: var(--gradient-hero);
    text-align: center;
}

.page-hero h1 {
    color: white;
    margin-bottom: 16px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1875rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: white;
}

/* Curriculum Page Styles */
.curriculum-section {
    padding: var(--section-padding);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.curriculum-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
}

.curriculum-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.curriculum-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.curriculum-icon i {
    font-size: 2rem;
    color: white;
}

.curriculum-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.curriculum-card p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.curriculum-list {
    list-style: none;
}

.curriculum-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.curriculum-list li:last-child {
    border-bottom: none;
}

.curriculum-list i {
    color: var(--success);
}

/* Facilitators Page Styles */
.team-section {
    padding: var(--section-padding);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-base);
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--primary-600);
    transition: var(--transition-base);
}

.team-social a:hover {
    background: var(--primary-500);
    color: white;
}

.team-info {
    padding: 24px;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.team-info span {
    color: var(--primary-600);
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Contact Page Styles */
.contact-section {
    padding: var(--section-padding);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    background: var(--gradient-primary);
    padding: 50px;
    border-radius: var(--radius-xl);
    color: white;
}

.contact-info h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact-item-icon i {
    font-size: 1.25rem;
}

.contact-item-content h4 {
    color: white;
    font-size: 1.0625rem;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.contact-item-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.contact-social h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.contact-form {
    display: grid;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 119, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
}

/* Map Section */
.map-section {
    height: 400px;
    background: var(--gray-200);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive for page-specific styles */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

