/*
 * Ketan - Childcare & Kids School Template
 * Custom CSS for Laravel AIS Project
 * Based on EnvyTheme Ketan Template Design
 */

/* ============================================
   CSS Variables & Root Styles
============================================ */
:root {
    /* Primary Colors */
    --primary-orange: #FD6F23;
    --primary-blue: #0056D2;
    --primary-purple: #8B5CF6;
    --primary-teal: #14B8A6;
    --primary-pink: #EC4899;
    --primary-yellow: #F59E0B;

    /* Text Colors */
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #64748B;
    --text-white: #FFFFFF;

    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;

    /* Gradients */
    --gradient-orange: linear-gradient(135deg, #FD6F23 0%, #FF8C42 100%);
    --gradient-blue: linear-gradient(135deg, #0056D2 0%, #0066FF 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    --gradient-teal: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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-card: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Font Family */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* ============================================
   Reset & Base Styles
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-medium);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

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

ul,
ol {
    list-style: none;
}

/* ============================================
   Typography
============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* ============================================
   Utility Classes
============================================ */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title .subtitle {
    display: inline-block;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: var(--gradient-blue);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--text-white);
}

/* ============================================
   Preloader
============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-gray);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Header & Navigation
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-normal);
    background: var(--bg-white);
    /* Always white */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    /* Subtle shadow always */
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

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

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

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--primary-orange);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Menu Toggle */
/* Removed transparent header styles */

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Mobile Responsive Utilities */
@media (max-width: 991px) {
    .mobile-hidden {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .login-text {
        display: none !important;
    }
}

/* ============================================
   Hero Section
============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 140px 0 0;
    overflow: hidden;
    background: #0056D2;
}

/* Wavy Cloud Border Top */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,60 350,60 600,30 C850,0 1050,0 1200,30 L1200,0 L0,0 Z" fill="%23ffffff"/></svg>') repeat-x;
    background-size: 1200px 60px;
    z-index: 1;
}

/* Wavy Cloud Border Bottom */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0 C150,80 350,80 600,40 C850,0 1050,0 1200,40 L1200,120 L0,120 Z" fill="%23ffffff"/></svg>') repeat-x;
    background-size: 1200px 80px;
    z-index: 1;
}

/* Educational Icons Pattern Background */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.08;
    z-index: 0;
}

.hero-shapes::before {
    content: '🎨 📚 🔬 ⚽ 🎵 🌍 ✏️ 🎭 🧮 🏆';
    position: absolute;
    top: 10%;
    left: 5%;
    font-size: 3rem;
    letter-spacing: 80px;
    line-height: 120px;
    color: rgba(255, 255, 255, 0.15);
    animation: float 20s linear infinite;
}

.hero-shapes::after {
    content: '📖 🎨 🔬 ⚽ 🎵 🌍 ✏️ 🎭 🧮 🏆';
    position: absolute;
    bottom: 15%;
    right: 5%;
    font-size: 2.5rem;
    letter-spacing: 70px;
    line-height: 100px;
    color: rgba(255, 255, 255, 0.15);
    animation: float 25s linear infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 0 100px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
    font-size: 1.25rem;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-white);
}

.hero-text h1 span {
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature i {
    color: #FFD700;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn-primary {
    background: #FD6F23;
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(253, 111, 35, 0.4);
}

.hero-buttons .btn-primary:hover {
    background: #FF8C42;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(253, 111, 35, 0.5);
}

.hero-buttons .btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: #0056D2;
}

/* Hero Images - Children on sides */
.hero-image {
    display: none;
    /* Will show children images in updated home.blade.php */
}

.hero-image-badge {
    display: none;
    /* Remove floating badges for this design */
}

/* ============================================
   Statistics/Counter Section
============================================ */
.counter-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.counter-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
}

.counter-item:nth-child(1) {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
}

.counter-item:nth-child(2) {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.counter-item:nth-child(3) {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
}

.counter-item:nth-child(4) {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.counter-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.counter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
}

.counter-item:nth-child(1) .counter-icon {
    background: var(--gradient-orange);
}

.counter-item:nth-child(2) .counter-icon {
    background: var(--gradient-blue);
}

.counter-item:nth-child(3) .counter-icon {
    background: var(--gradient-purple);
}

.counter-item:nth-child(4) .counter-icon {
    background: var(--gradient-teal);
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.counter-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   Why Choose Us Section
============================================ */
.features-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-card);
}

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

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition-normal);
}

.feature-card:nth-child(1) .feature-icon {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
}

.feature-card:nth-child(2) .feature-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
}

.feature-card:nth-child(3) .feature-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-purple);
}

.feature-card:nth-child(4) .feature-icon {
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary-teal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   Classes Section
============================================ */
.classes-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.class-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

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

.class-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.class-card:hover .class-image img {
    transform: scale(1.1);
}

.class-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-orange);
    color: var(--text-white);
    padding: 6px 15px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.class-content {
    padding: 25px;
}

.class-content h4 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

.class-content h4 a:hover {
    color: var(--primary-orange);
}

.class-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.class-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.class-meta span i {
    color: var(--primary-orange);
}

.class-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.class-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--bg-gray);
}

.class-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.class-price span {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ============================================
   Gallery Section
============================================ */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--text-white);
    transform: scale(0.5);
    transition: var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ============================================
   Registration CTA Section
============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-orange);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text {
    color: var(--text-white);
}

.cta-text h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.cta-features li i {
    width: 24px;
    height: 24px;
    background: var(--text-white);
    color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.cta-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.cta-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* ============================================
   Teachers Section
============================================ */
.teachers-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.teacher-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

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

.teacher-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-social {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: center;
    gap: 10px;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.teacher-card:hover .teacher-social {
    transform: translateY(0);
}

.teacher-social a {
    width: 40px;
    height: 40px;
    background: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    transition: var(--transition-normal);
}

.teacher-social a:hover {
    background: var(--primary-orange);
    color: var(--text-white);
}

.teacher-content {
    padding: 25px;
    text-align: center;
}

.teacher-content h4 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.teacher-content span {
    color: var(--primary-orange);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================
   Testimonials Section
============================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-orange);
}

.testimonial-author-info h5 {
    font-size: 1.15rem;
    margin-bottom: 3px;
}

.testimonial-author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-stars {
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

/* ============================================
   Blog Section
============================================ */
.blog-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

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

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--gradient-orange);
    color: var(--text-white);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    text-align: center;
    line-height: 1.2;
}

.blog-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.blog-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.blog-meta span {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta span i {
    color: var(--primary-orange);
}

.blog-content h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content h4 a:hover {
    color: var(--primary-orange);
}

.blog-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-orange);
    font-weight: 600;
}

.read-more:hover {
    gap: 12px;
}

/* ============================================
   Newsletter Section
============================================ */
.newsletter-section {
    padding: 80px 0;
    background: var(--gradient-blue);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-text {
    color: var(--text-white);
}

.newsletter-text h3 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-text p {
    opacity: 0.9;
    margin-bottom: 0;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 25px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 16px 35px;
    background: var(--text-white);
    color: var(--primary-blue);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.newsletter-form button:hover {
    background: var(--text-dark);
    color: var(--text-white);
}

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

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

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo-text {
    color: var(--text-white);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

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

.footer-social a:hover {
    background: var(--primary-orange);
}

.footer-title {
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 25px;
    position: relative;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-links a:hover::before {
    margin-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    flex-shrink: 0;
}

.footer-contact a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--primary-orange);
}

/* ============================================
   Scroll to Top Button
============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-orange);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ============================================
   Animations
============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   Responsive Styles
============================================ */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 2.75rem;
    }

    .counter-grid,
    .features-grid,
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p,
    .hero-features {
        justify-content: center;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .cta-content {
        grid-template-columns: 1fr;
    }

    .classes-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .hero-image-badge {
        display: none;
    }

    .counter-grid,
    .features-grid,
    .classes-grid,
    .teachers-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-item {
        padding: 30px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.85rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .cta-form {
        padding: 25px;
    }
}

/* ============================================
   Mobile Menu Overlay
============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--bg-white);
    padding: 80px 30px 30px;
    transform: translateX(100%);
    transition: var(--transition-normal);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-gray);
}

.mobile-nav-menu a:hover {
    color: var(--primary-orange);
}