/* ============================================
   KEYNES INTERNATIONAL LANGUAGE ACADEMY
   Premium Academic Authority Design System
   ============================================ */

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

:root {
    /* Colors - Premium Academic Authority */
    --primary: #6B2C3E;
    --primary-light: #8B4A5C;
    --primary-dark: #4A1F2E;
    --secondary: #2C5282;
    --accent: #D4AF37;
    --accent-light: #E8C547;
    --background: #FFFFFF;
    --foreground: #1A1A1A;
    --text-muted: #666666;
    --border-color: #E0E0E0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Lato', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--foreground);
    background-color: var(--background);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--primary);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

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

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 700;
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid white;
    background-color: transparent;
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107, 44, 62, 0.85) 0%, rgba(44, 82, 130, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   CLASS FORMATS SECTION
   ============================================ */

.class-formats {
    background-color: #F9F7F4;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.format-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.format-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.format-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.format-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

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

/* ============================================
   COURSES SECTION
   ============================================ */

.courses {
    background-color: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.course-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.course-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--primary);
    padding: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
}

.course-card p {
    color: var(--accent);
    font-weight: 600;
    padding: 0 var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background-color: #F9F7F4;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.about-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.about-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.contact-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-info h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.contact-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    background-color: #F9F7F4;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-card p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    font-style: italic;
}

.testimonial-card h4 {
    color: var(--primary);
    font-family: var(--font-serif);
    margin-bottom: var(--spacing-xs);
}

.testimonial-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--foreground);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-col h3,
.footer-col h4 {
    font-family: var(--font-serif);
    margin-bottom: var(--spacing-md);
    color: var(--accent);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

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

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-content {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: var(--spacing-md);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

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

    .formats-grid,
    .courses-grid,
    .about-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo-text {
        display: none;
    }

    .hero {
        height: 400px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

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

    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

.format-card,
.course-card,
.about-card,
.testimonial-card {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}
