* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Eau de nil & gold palette */
    --primary-color: #7d9b8a;
    --primary-dark: #5f7a6b;
    --secondary-color: #c9a227;
    --secondary-dark: #a6851e;
    --text-color: #2c3e2c;
    --text-light: #5a6b5a;
    --bg-color: #ffffff;
    --bg-light: #f4f7f4;
    --border-color: #dde5e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content .hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    font-weight: 500;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .hero-byline {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    opacity: 1;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--secondary-color);
    color: #2c2a1a;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--secondary-dark);
    color: #2c2a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Policy pages */
.container-narrow {
    max-width: 720px;
}

.policy-content {
    padding: 60px 20px 80px;
}

.policy-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    text-align: left;
    color: var(--text-color);
}

.policy-content p,
.policy-content ul {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.policy-content ul {
    padding-left: 1.5rem;
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.policy-content a:hover {
    color: var(--secondary-color);
}

.policy-content h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.policy-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-list {
    margin-top: 1rem;
}

.faq-list dt {
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
}

.faq-list dd {
    margin-left: 0;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.back-link {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Sections */
section {
    padding: 80px 20px;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

.about {
    background-color: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.read-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--secondary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-light);
    margin: 0;
}

/* About page sections: Mission, Vision, Values, People */
.about-page .about-intro {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-page .about-intro p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-page .about-section {
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

.about-page .about-section:last-child {
    margin-bottom: 0;
}

.about-page .about-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--primary-dark);
}

.about-page .about-section > p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.about-page .about-section#values .values-grid {
    margin-top: 1.5rem;
}

.people-intro {
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Team Section */
.team {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.25;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: block;
    object-fit: cover;
}

.team-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.team-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member p {
    color: var(--text-light);
    margin: 0;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-card-subsections .service-card-intro {
    margin-bottom: 1.25rem;
}

.service-subsection {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.service-subsection h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.service-subsection p {
    margin-bottom: 0.5rem;
}

.certification-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.certification-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cta-section {
    background-color: var(--bg-light);
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Form */
.contact {
    background-color: var(--bg-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    width: 100%;
    background-color: var(--secondary-color);
    color: #2c2a1a;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

/* News Section */
.news {
    padding: 80px 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.news-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.news-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Resources Section */
.resources {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.resource-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resource-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.resource-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: var(--secondary-color);
}

/* Events Section */
.events {
    padding: 80px 20px;
}

.past-events {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-card.past {
    opacity: 0.7;
}

.event-date {
    min-width: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-content {
    flex: 1;
}

.event-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.event-time {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #2c2a1a;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.event-button:hover {
    background-color: var(--secondary-dark);
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.event-actions .event-button {
    margin: 0;
}

/* Event registration section */
.event-registration-section {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

.event-registration-section h2 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.registration-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.event-registration-form {
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.event-registration-form .form-row {
    margin-bottom: 1.25rem;
}

.event-registration-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.event-registration-form .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text-color);
}

.event-registration-form .form-group .required {
    color: var(--secondary-color);
}

.event-registration-form .form-group input,
.event-registration-form .form-group select,
.event-registration-form .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.event-registration-form .form-group input:focus,
.event-registration-form .form-group select:focus,
.event-registration-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.registration-note {
    max-width: 640px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .event-registration-form .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 2rem 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        min-width: auto;
        width: 100px;
        margin: 0 auto;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 0.75rem;
    }
}

/* Event registration thank-you popup */
.event-thankyou-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.event-thankyou-popup.event-thankyou-popup-visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
.event-thankyou-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.event-thankyou-popup-box {
    position: relative;
    background: var(--bg-color, #fff);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 100%;
}
.event-thankyou-popup-box h3 {
    margin-bottom: 1rem;
    color: var(--primary-color, #7d9b8a);
}
.event-thankyou-popup-box p {
    margin-bottom: 1.25rem;
    color: var(--text-color, #2c3e2c);
}
.event-thankyou-close {
    display: block;
    padding: 0.5rem 1.25rem;
    background: var(--primary-color, #7d9b8a);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}
.event-thankyou-close:hover {
    background: var(--primary-dark, #5f7a6b);
}
