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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f3f0;
}

/* Color Variables */
:root {
    --primary-color: #8B0000; /* Bordeaux */
    --secondary-color: #f5f3f0; /* Crème */
    --accent-color: #DAA520; /* Doré */
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-logo {
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: rotate(360deg);
}

.nav-brand h1 {
    margin: 0;
}

.nav-brand h1 a {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand h1 a:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #a00000);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(245, 243, 240, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(139, 0, 0, 0.2));
}

.hero-content h2 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    animation: slideInUp 1s ease-out;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 500;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cta-button.primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.cta-button.primary:hover {
    background-color: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

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

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-icon {
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

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

/* Grid Layouts */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.exercises-grid,
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cards */
.article-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.2);
}

.exercise-card,
.test-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.exercise-card::before,
.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.2);
}

.exercise-card:hover,
.test-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.article-card:hover::before {
    transform: scaleX(1);
    height: 6px;
}

.exercise-card:hover::before,
.test-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.article-card h3,
.exercise-card h3,
.test-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
}

.article-card p,
.exercise-card p,
.test-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: justify;
}

.article-meta,
.exercise-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.reading-time,
.duration,
.difficulty,
.participants,
.article-category {
    background-color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    color: var(--text-dark);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.exercise-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.benefit {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Buttons */
.read-more-btn,
.start-exercise-btn,
.take-test-btn,
.join-discussion-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.read-more-btn:hover,
.start-exercise-btn:hover,
.take-test-btn:hover,
.join-discussion-btn:hover {
    background-color: #a00000;
}

/* Library Section */
.library-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-list {
    list-style: none;
}

.resource-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.resource-list li:last-child {
    border-bottom: none;
}

/* Forum Section */
.forum-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.forum-stat {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.forum-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.forum-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forum-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.topic {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

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

.topic-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-start;
}

.topic h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.topic p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.topic-posts,
.topic-members,
.topic-activity {
    background-color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.forum-guidelines {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.forum-guidelines h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.guideline {
    text-align: center;
    padding: 1rem;
}

.guideline-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.guideline h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.guideline p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Test Section Enhancements */
.test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.test-duration,
.test-questions,
.test-accuracy {
    background-color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    color: var(--text-dark);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "Populaire";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features li:last-child {
    border-bottom: none;
}

.select-plan-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.select-plan-btn:hover {
    background-color: #a00000;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group input.error {
    border-color: #e74c3c;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #a00000;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.email-block {
    max-width: 700px;
    width: 100%;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 50%, #f8f6f3 100%);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.15);
    border: 2px solid rgba(218, 165, 32, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.email-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.email-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(139, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.email-block .contact-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.email-block .contact-icon svg {
    filter: drop-shadow(0 5px 15px rgba(139, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.email-block:hover .contact-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.email-block h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.email-block p {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.email-block p a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.1), rgba(218, 165, 32, 0.2));
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.email-block p a:hover {
    background: linear-gradient(135deg, var(--accent-color), #e6b800);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

.contact-note {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    background: rgba(139, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.contact-details {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(245, 243, 240, 0.8) 100%);
    border-radius: 15px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.1), transparent);
    transition: left 0.5s ease;
}

.detail-item:hover::before {
    left: 100%;
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.detail-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-color), #e6b800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.detail-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.detail-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.contact-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.contact-form-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-container.compact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.15);
}

.contact-form.compact {
    gap: 1rem;
}

.contact-form.compact .form-group {
    margin-bottom: 1rem;
}

.contact-form.compact .form-row {
    gap: 0.75rem;
}

.contact-form.compact input,
.contact-form.compact select,
.contact-form.compact textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-form.compact input:focus,
.contact-form.compact select:focus,
.contact-form.compact textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.contact-form.compact textarea {
    min-height: 100px;
}

.contact-form.compact .submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form.compact .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--white);
}

.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer-logo {
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: rotate(360deg);
}

.footer-brand h3 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-brand h3 a:hover {
    color: var(--white);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    padding: 1rem;
    z-index: 1500;
    display: block;
    animation: slideInUp 0.5s ease-out;
}

.cookie-popup.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-accept {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.btn-accept:hover {
    background-color: #b8860b;
}

.cookie-link {
    color: var(--white);
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .articles-grid,
    .exercises-grid,
    .tests-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h2 {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .article-card,
    .exercise-card,
    .test-card,
    .pricing-card {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}