/* Key Historical Figures of France Review - Main Stylesheet */

/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* CSS Variables for Color Scheme */
:root {
    --primary-blue: #1a3a5c;
    --accent-gold: #d4af37;
    --dark-blue: #0f2438;
    --light-blue: #e8f0f7;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --green-btn: #2d7a3e;
    --green-btn-hover: #1f5a2c;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

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

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

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 20px;
}

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

.logo span {
    color: var(--accent-gold);
}

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

nav ul li a {
    font-weight: 400;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-gold);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.85), rgba(15, 36, 56, 0.75));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--light-blue);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--green-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

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

/* Content Sections */
.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-image img {
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.content-text h2 {
    margin-bottom: 1.5rem;
}

.content-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats {
    background-color: var(--light-blue);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    color: var(--light-blue);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

.blog-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    height: 250px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.blog-card-date {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* Article Page */
.article-hero {
    height: 400px;
}

.article-hero h1 {
    font-size: 2.5rem;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-meta {
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-image {
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Contact Form */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

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

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-top: 5px;
}

.contact-item div h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-blue);
}

.contact-item div p {
    color: var(--text-light);
    margin-bottom: 0;
}

.map-container {
    margin-top: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

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

.resource-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 4px 15px var(--shadow);
}

.resource-card h3 {
    margin-bottom: 1rem;
}

.resource-card ul {
    list-style: none;
    padding: 0;
}

.resource-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.resource-card ul li a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.resource-card ul li a:hover {
    color: var(--accent-gold);
}

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

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

.team-member-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

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

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ Page */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-blue);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.faq-question .icon {
    color: var(--accent-gold);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active .icon {
    transform: rotate(180deg);
}

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

.faq-answer.active {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Legal Pages */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    margin-bottom: 1rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-light);
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px var(--shadow);
    z-index: 10000;
    display: none;
}

.cookie-banner.active {
    display: block;
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-banner a {
    color: var(--accent-gold);
}

.cookie-banner .btn {
    white-space: nowrap;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--light-blue);
    font-size: 0.95rem;
    line-height: 1.8;
}

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

.footer-links {
    list-style: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-blue);
}

/* Responsive Design */

/* Tablet (768px - 1024px) - 2 columns */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .content-section {
        gap: 2rem;
    }

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

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

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

/* Mobile (max 767px) - 1 column */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 50px 0;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 4px 10px var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    nav ul li {
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    /* Hero */
    .hero {
        height: 500px;
    }

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

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

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    /* Feature Cards - 1 column */
    .feature-cards {
        grid-template-columns: 1fr;
    }

    /* Content Section */
    .content-section {
        grid-template-columns: 1fr;
    }

    /* Blog Grid - 1 column */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Grid - 1 column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Team Grid - 1 column */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Resources Grid - 1 column */
    .resources-grid {
        grid-template-columns: 1fr;
    }

    /* Article Hero */
    .article-hero {
        height: 300px;
    }

    .article-hero h1 {
        font-size: 1.8rem;
    }

    /* Cookie Banner */
    .cookie-banner .container {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner .btn {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
