/* ============================================
   E-Learning Academy Hub - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #1a365d;
    --color-primary-dark: #0f2942;
    --color-secondary: #c9a227;
    --color-secondary-dark: #a88420;
    --color-accent: #2d7d46;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-muted: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

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

.btn-secondary {
    background-color: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
}

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

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

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

.btn-white:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-bg-alt);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
}

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

.logo img {
    height: 36px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

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

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

.main-nav .btn {
    color: #fff;
}

.main-nav .btn::after {
    display: none;
}

.main-nav .btn:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 120px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-family: var(--font-heading);
    color: var(--color-secondary);
}

.hero-stat span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Section Padding */
.section {
    padding: 80px 0;
}

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

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.intro-content h2 {
    margin-bottom: 1rem;
}

.intro-content p {
    margin-bottom: 1.25rem;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.intro-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.intro-feature svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.intro-feature span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.course-card-image {
    position: relative;
    overflow: hidden;
}

.course-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.04);
}

.course-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.course-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.course-card h3 a:hover {
    color: var(--color-secondary-dark);
}

.course-card p {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    flex: 1;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.course-price .original {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
}

.testimonial-card p {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-primary);
}

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

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}

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

.blog-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.blog-card-category {
    color: var(--color-secondary-dark);
    font-weight: 600;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.blog-card h3 a:hover {
    color: var(--color-secondary-dark);
}

.blog-card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--color-primary);
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

/* Page Header */
.page-header {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Content Pages */
.content-page {
    padding: 60px 0;
}

.content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-page ul li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

/* Course Detail */
.course-detail {
    padding: 60px 0;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.course-detail-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.course-detail-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.course-detail-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.course-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

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

.course-detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.course-sidebar-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.course-sidebar-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.course-sidebar-card .btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

.course-sidebar-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

.course-sidebar-info p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.course-sidebar-info p strong {
    color: var(--color-text);
    font-weight: 500;
}

.curriculum-list {
    margin-top: 1.5rem;
}

.curriculum-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.curriculum-item:last-child {
    border-bottom: none;
}

.curriculum-number {
    width: 36px;
    height: 36px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Blog Detail */
.blog-detail {
    padding: 60px 0;
}

.blog-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-detail-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-detail-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.blog-detail-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.blog-detail-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.blog-detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-detail-body p {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.blog-detail-body h2,
.blog-detail-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-detail-body ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-detail-body ul li {
    margin-bottom: 0.5rem;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.blog-sidebar-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-sidebar-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.blog-sidebar-card ul li {
    margin-bottom: 0.75rem;
}

.blog-sidebar-card ul li a {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.blog-sidebar-card ul li a:hover {
    color: var(--color-primary);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail svg {
    flex-shrink: 0;
    color: var(--color-secondary-dark);
    margin-top: 2px;
}

.contact-detail strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.contact-detail span {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    background: #f0fdf4;
    color: #166534;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* Search & Filter */
.search-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-filter input,
.search-filter select {
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.search-filter input {
    flex: 1;
    min-width: 240px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border-light);
    padding: 1.5rem 0;
}

.faq-item h3 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active h3::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-top: 1rem;
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

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

.footer-brand img {
    height: 32px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul li {
    margin-bottom: 0.625rem;
}

.footer-links ul li a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 120px 0;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-page h2 {
    margin-bottom: 1rem;
}

.error-page p {
    max-width: 480px;
    margin: 0 auto 2rem;
}

/* Flash Messages */
.flash-message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.flash-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================
   Entrance Animations
   ============================================ */

/* Base animation states */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }

/* Hero entrance animations (play on load) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-content h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.hero-content > p {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.45s both;
}

.hero-stats {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.hero-image {
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* Intro section animations */
.intro-image {
    animation: fadeInLeft 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.intro-content {
    animation: fadeInRight 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}

/* CTA section */
.cta-section h2,
.cta-section p,
.cta-section .btn {
    opacity: 0;
}

.cta-section h2.is-visible,
.cta-section p.is-visible,
.cta-section .btn.is-visible {
    opacity: 1;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cta-section p.is-visible {
    animation-delay: 0.1s;
}

.cta-section .btn.is-visible {
    animation-delay: 0.2s;
}

/* Card hover lift enhancement */
.course-card,
.blog-card,
.feature-card,
.testimonial-card {
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .hero-content h1,
    .hero-content > p,
    .hero-buttons,
    .hero-stats,
    .hero-image,
    .intro-image,
    .intro-content,
    .cta-section h2,
    .cta-section p,
    .cta-section .btn {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .intro-grid,
    .course-detail-grid,
    .blog-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .course-detail-sidebar,
    .blog-sidebar {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100dvh - 72px);
        min-height: calc(100vh - 72px);
        z-index: 1100;
        background: #ffffff;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }
    
    .main-nav a {
        font-size: 1.1rem;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .search-filter {
        flex-direction: column;
    }
    
    .search-filter input {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
