/* --- CSS Variables and Base Styles --- */
:root {
    --deep-black: #020202;
    --vibrant-yellow: #ffc70f;
    --bold-red: #ef3d50;
    --forest-green: #1a7842;
    --royal-blue: #253b88;
    --charcoal-gray: #494949;
    --light-gray: #f4f4f4;
    --white: #ffffff;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    --container-width: 1100px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--deep-black);
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--forest-green);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--bold-red);
}

ul {
    list-style: none;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--deep-black);
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-gray);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--vibrant-yellow);
    color: var(--deep-black);
}

.btn-primary:hover {
    background-color: #e6b300;
    color: var(--deep-black);
}

.btn-secondary {
    background-color: var(--deep-black);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--charcoal-gray);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--deep-black);
    border-color: var(--deep-black);
}

.btn-outline:hover {
    background-color: var(--deep-black);
    color: var(--white);
}

/* --- Header & Navbar --- */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.navbar-logo img {
    height: 60px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--deep-black);
    transition: color 0.3s ease;
}

.nav-link.active, .nav-link:hover {
    color: var(--vibrant-yellow);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--deep-black);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Sections --- */
.hero, .page-hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before, .page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero .hero-content, .page-hero .container {
    position: relative;
    z-index: 2;
}

.hero {
    height: calc(100vh - var(--header-height));
}

.page-hero {
    padding: 80px 0;
}

.hero-content, .page-hero .container {
    max-width: 800px;
}

.hero-title, .page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle, .page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 3rem;
}

/* --- Feature Cards & Icons --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.feature-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
}

.feature-icon svg {
    width: 60px;
    height: 60px;
    color: var(--forest-green);
    stroke-width: 1.5;
}

.feature-card h3 {
    color: var(--forest-green);
    margin-bottom: 0.5rem;
}

/* --- Alternating Feature Section --- */
.alternating-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.feature-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.alternating-feature.reverse .feature-image {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.alternating-feature.reverse .feature-text {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--vibrant-yellow);
}

.cta-title {
    font-size: 2.8rem;
    color: var(--deep-black);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--deep-black);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--deep-black);
    color: var(--white);
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: auto;
    width: 200px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #ccc;
}

.footer-links h4, .footer-contact h4, .footer-social h4 {
    margin-bottom: 1rem;
    color: var(--vibrant-yellow);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-contact a {
    color: var(--white);
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--vibrant-yellow);
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    color: var(--white);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--vibrant-yellow);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid var(--charcoal-gray);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- Membership Page Specifics --- */
.membership-form-section .container {
    max-width: 900px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-container fieldset {
    border: none;
    margin-bottom: 2rem;
    padding: 0;
}

.form-container legend {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--deep-black);
    border-bottom: 2px solid var(--vibrant-yellow);
    padding-bottom: 0.5rem;
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--royal-blue);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
}

.full-width-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
}

#form-feedback {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

#form-feedback.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#form-feedback.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.payment-info-section {
    margin-top: 4rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.payment-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.payment-card h3 {
    color: var(--deep-black);
}

.payment-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.final-step {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--charcoal-gray);
    color: var(--white);
    text-align: center;
    border-radius: 10px;
}

.final-step h3 {
    color: var(--vibrant-yellow);
}

.final-step a {
    color: var(--vibrant-yellow);
    font-weight: bold;
}

/* --- Resources Page Styles --- */
.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post-excerpt {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.blog-post-excerpt img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: var(--charcoal-gray);
    margin-bottom: 0.5rem;
}

.blog-post-excerpt h3 {
    margin-bottom: 0.5rem;
}

.sidebar .widget {
    margin-bottom: 2.5rem;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
}

.sidebar .widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--vibrant-yellow);
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 0.75rem;
}

.sidebar ul li a {
    color: var(--deep-black);
}
.sidebar ul li a:hover {
    color: var(--forest-green);
}

.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 0 0 1.5rem 0;
    margin: 0;
}

/* --- Contact Page Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-details ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-details ul li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-details ul li svg {
    width: 30px;
    height: 30px;
    color: var(--forest-green);
    flex-shrink: 0;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 3rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Leadership Profile Cards --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.team-member-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 2rem;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--light-gray);
}

.team-member-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.team-member-card .title {
    color: var(--charcoal-gray);
    margin-bottom: 1rem;
}

.bio-toggle {
    background: none;
    border: none;
    color: var(--forest-green);
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.bio-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    text-align: left;
    font-size: 0.9rem;
    color: #333;
}

.bio-content p {
    margin-top: 1rem;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.8rem; }
    
    .alternating-feature {
        display: flex;
        flex-direction: column;
    }

    .feature-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }
    .navbar-logo {
        grid-column: 1 / 2;
    }
    .nav-btn {
        grid-column: 2 / 3;
        justify-self: center;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .hamburger {
        grid-column: 3 / 4;
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1.5rem 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .page-title {
        font-size: 2.5rem;
    }

    .features-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: auto;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .contact-details ul {
        align-items: flex-start;
    }
}