:root {
    --primary-color: #c4a75a; /* Goldish brown from site */
    --secondary-color: #2e4a3e; /* Dark green */
    --text-color: #333;
    --bg-color: #fdfaf2;
    --white: #ffffff;
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.container:nth-of-type(1){
    max-width: 100vw;
    .block-content {max-width: 700px; margin: 0 auto;}
}

header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

main {
    padding-bottom: 50px;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--secondary-color);
}

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

.block-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.block-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.block-hero .text-content {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 30px;
}

.block-hero img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Cards Grid */
.blocks-grid.type-cards {
    display: grid; max-width: 743px; margin: 0px auto 60px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.block-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

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

.block-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.block-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Content Sections */
.block-text_image {
    display: flex;
    align-items: center;
    gap: 40px;
}

.block-text_image:nth-child(even) {
    flex-direction: row-reverse;
}

.block-text_image .block-media, .block-text_image .block-content {
    flex: 1;
}

.block-text_image img {
    width: 100%;
    border-radius: 8px;
}

/* Team Section */
.blocks-grid.type-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

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

.block-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--primary-color);
}

/* Partners */
.blocks-grid.type-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.block-partner img {
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.block-partner img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer p {
    margin-bottom: 10px;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .block-text_image {
        flex-direction: column !important;
    }

    nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-links li {
        margin-left: 0; /* Clear desktop margins */
    }
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a.active {
    color: #007BFF; /* Example active color */
}

/* Hide burger button on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* --- Mobile Responsive Styles (Screens under 768px) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show the burger icon */
        z-index: 10;
    }
    nav { position: relative; 
        >.logo { position:absolute; left: 5px; top: 0px; } /* Ensure logo is visible */
        >button { position: absolute; right: 5px; top:0px; } /* Ensure burger is visible */
    }
    nav>.logo { display: inline-block; }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 1.5rem;
        text-align: center;
        
        /* Hide menu by default on mobile */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    /* When JS triggers '.active', show the mobile menu */
    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Optional: Turns the burger into an 'X' when open */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}