
/* --- Global Styles & Main Layout Fix --- */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f0f0f0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header Styles: New Two-Column, Two-Row Layout --- */
header {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 2px solid #ccc;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.header-logo-column {
    display: flex;
    align-items: center;
    padding-right: 15px;
}

.logo {
    height: 90px;
}

.header-content-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    position: relative;
}

.header-content-column h1 {
    font-size: 32px;
    color: #333;
    margin: 0;
    padding-bottom: 5px;
}

/* --- Navigation Styles: Making the links into buttons --- */
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

header nav a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: #2789e3;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

header nav a:hover {
    background-color: #fff;
    color: #2789e3;
}

/* --- Hamburger Button Styles --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: absolute;
    top: 15px;
    right: 15px;
}

.hamburger-bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

/* Hamburger icon animation when menu is open */
body.menu-open .nav-toggle .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
body.menu-open .nav-toggle .hamburger-bar:nth-child(2) {
    opacity: 0;
}
body.menu-open .nav-toggle .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Responsive Adjustments for Header --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        position: relative;
    }

    .header-logo-column {
        padding-right: 0;
    }

    .header-content-column {
        align-items: center;
        text-align: center;
        position: relative;
        width: 100%;
    }

    .header-content-column h1 {
        font-size: 28px;
        margin-right: 60px;
        margin-left: 60px;
    }

    /* Show the hamburger button on mobile */
    .nav-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 8px;
    }

    /* Hide the main navigation on mobile by default and style as overlay */
    header nav.main-nav {
        /* Hides the menu completely */
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding-top: 100px;
        z-index: 1000;
        overflow-y: auto;
    }
    
    /* Show the navigation when the 'menu-open' class is active on the body */
    body.menu-open header nav.main-nav {
        display: block;
    }

    /* Style the list items and links for the mobile menu */
    header nav.main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    header nav.main-nav a {
        display: block;
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 15px 0;
        font-size: 20px;
        border: 1px solid #2789e3;
    }

    header nav.main-nav a:hover {
        background-color: #2789e3;
        color: #fff;
    }
}


/* --- Carousel Styles (Kept as is) --- */
.carousel-container {
    width: 800px;
    max-width: 90vw;
    height: 450px;
    overflow: hidden;
    position: relative;
    margin: 40px auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.carousel-items {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.carousel-item img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 12px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

.dot:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.8);
}

/* --- Three-Column Section Styles --- */
.three-column-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 40px auto;
}

.column {
    flex: 1;
    min-width: 280px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.column h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.column p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.column-link {
    display: inline-block;
    text-decoration: none;
    color: #2789e3;
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid #2789e3;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.column-link:hover {
    background-color: #2789e3;
    color: #fff;
}

@media (max-width: 768px) {
    .three-column-section {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .column {
        min-width: 90%;
        margin-bottom: 20px;
    }
}

/* --- Footer Styles --- */
footer {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 40px 20px;
    background-color: #fff;
    color: #333;
    text-align: center;
    flex-wrap: wrap;
}

.footer-contact, .footer-social {
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.footer-social .social-links a img {
    height: 30px;
    margin: 0 5px;
}

.footer-contact a {
    color: #333;
    text-decoration: underline;
}

.footer-contact p {
    margin: 5px 0;
}

/* Mailchimp form specific style */
.mc-field-group input-group {
    list-style: none;
}