:root {
    /* Colors */
    --primary-color: #0a2540;
    /* Deep Modern Blue */
    --secondary-color: #00bcd4;
    /* Cyan/Teal for accents */
    --accent-color: #ffc107;
    /* Gold/Yellow for CTA */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --dark-bg: #1a1a1a;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 64px;

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

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: typename(rgba(255, 255, 255, 0.95));
    /* TypeName?  Typo fallback: rgba(255,255,255,0.95) */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) 0;
    transition: padding 0.3s ease;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
}

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

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

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

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

.header-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: var(--spacing-xs);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 4px;
}

.lang-btn.active {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    background-color: #0d3a66;
    /* Slightly lighter/darker */
    border-color: #0d3a66;
}

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

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

.small-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    /* Space for fixed header */
    padding-bottom: var(--spacing-xxl);
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

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

.hero-image-wrapper {
    position: relative;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    border-radius: var(--radius-lg);
    background-image: url('https://placehold.co/600x400/0a2540/ffffff?text=Learning+Center+Hero');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

/* Utilities */
.bg-light {
    background-color: var(--bg-light);
}

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

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

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

.mb-4 {
    margin-bottom: 24px;
}

.mb-5 {
    margin-bottom: 48px;
}

/* Grids */
.courses-grid,
.teachers-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

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

/* Cards Global */
.course-card,
.teacher-card,
.news-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover,
.teacher-card:hover,
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Course Card */
.course-image {
    position: relative;
    height: 200px;
}

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

.course-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
}

.course-content {
    padding: var(--spacing-lg);
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.course-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    min-height: 3rem;
    /* Align buttons */
}

/* Results Item */
.result-item {
    padding: var(--spacing-lg);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.result-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.result-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Teacher Card */
.teacher-card {
    text-align: center;
    padding-bottom: var(--spacing-md);
}

.teacher-image {
    height: 250px;
}

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

.teacher-name {
    margin-top: var(--spacing-md);
    font-size: 1.2rem;
}

.teacher-subject {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* News Card */
.news-image {
    height: 200px;
}

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

.news-content {
    padding: var(--spacing-lg);
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    margin-top: auto;
}

.pt-150 {
    padding-top: 150px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.chat-toggle-btn svg {
    width: 28px;
    height: 28px;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: chatOpen 0.3s ease-out;
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: var(--spacing-md);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-welcome {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.registrar-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.registrar-btn {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    background: #f9f9f9;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.registrar-btn:hover {
    background: #eee;
}

.chat-footer {
    padding: var(--spacing-sm);
    border-top: 1px solid #eee;
    display: flex;
    gap: var(--spacing-sm);
}

.chat-footer input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-footer button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Messages */
.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 0.9rem;
}

.message.sent {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message.received {
    background-color: #f1f1f1;
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}


/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-list.active {
        right: 0;
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        /* Above the menu */
    }

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

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

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

    /* Close button for mobile menu if needed, or re-use toggle */
}