/* General Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    color: #2c2a26;
    background-color: #fbfefb;
    line-height: 1.6;
}

/* Container */
.container {
    flex: 1;  /* Allows the container to expand and push footer down */
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px;
    box-sizing: border-box;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Header */
.navbar {
    background-color: #fefefe;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    padding: 0 50px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-bottom: none;
    position: relative;
    flex-wrap: nowrap;
}

/* Tagline Bar */
.tagline-bar {
    background-color: #939f5c;
    color: #fbfefb;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 5px 0;
    letter-spacing: 0.5px;
}

.tagline-bar p {
    max-width: 1400px;  /* Match main content width */
    margin: 0 auto;  /* Center the text */
    padding: 0 50px;  /* Match the main content left and right padding */
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    max-height: 150px !important;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.08);
}

/* Navigation */
.nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
    align-items: center;
    margin-left: auto;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    background-color: #214e35;
    color: #ffffff;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    top: 100%;
    left: 0;
    min-width: 220px;
}

.dropdown-menu li {
    padding: 15px 20px;
}

.dropdown-menu a {
    color: #2c2a26;
    font-size: 18px;
    font-weight: normal;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #5296a5;
    color: #fbfefb;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
}

.menu-toggle .bar {
    width: 35px;
    height: 5px;
    margin: 5px 0;
    background-color: #000000;
    border-radius: 2px;
}

/* Buttons */
.button-primary {
    background-color: #0050bd;
    color: #fbfefb;
    font-weight: bold;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-primary:hover {
    background-color: #32343a;
}

/* Sections */
.section {
    background-color: #939f5c;
    color: #fbfefb;
    padding: 70px 50px;
    border-radius: 10px;
    margin: 60px auto;
    text-align: center;
}

.section h2 {
    font-size: 42px;
    margin-bottom: 25px;
}

/* Footer */
.footer {
    background-color: #5296a5;
    color: #fbfefb;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 20px 50px;
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.1);
    border-top: none;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    margin-top: auto;  /* Ensures footer stays at bottom */
}

.footer a {
    color: #fbfefb;
    text-decoration: none;
    font-weight: bold;
    margin-left: 20px;
}

.footer a:hover {
    color: #939f5c;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar {
        padding: 30px 60px;
    }

    .nav-links {
        gap: 30px;
    }

    .section {
        padding: 50px 30px;
    }
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 120px;
        left: 0;
        background-color: #ffffff;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: inline-block;  /* Fit text width */
        width: auto;
        max-width: 80%;  /* Keep consistent spacing */
        padding: 10px 20px;
        font-size: 20px;  /* Main menu font size */
        font-weight: bold;
        border-radius: 8px;
        transition: all 0.3s ease-in-out;
    }

    .nav-links li a:hover {
        background-color: #5296a5;
        color: #ffffff;
    }

    /* Dropdown Menu */
    .dropdown-menu {
        display: none;
        flex-direction: column;
        align-items: center;  /* Align submenu items properly */
        position: relative;
        width: 100%;
        padding: 0;
        background-color: #f0f0f0;  /* Different background color for distinction */
        border-top: 1px solid #ddd;
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu a {
        display: inline-block;
        width: auto;
        max-width: 70%;  /* Slightly smaller width */
        padding: 8px 20px;  /* Adjust padding for proper alignment */
        font-size: 18px;  /* Smaller font size for sub-menu items */
        color: #000000;
        text-align: center;
    }

    .dropdown-menu a:hover {
        background-color: #939f5c;  /* Different hover background */
        color: #ffffff;
    }

    /* Hamburger Menu Icon */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        position: absolute;
        top: 50%;
        right: 50px;
        transform: translateY(-50%);
    }

    .menu-toggle .bar {
        width: 35px;
        height: 5px;
        margin: 5px 0;
        background-color: #000000;
        border-radius: 2px;
    }
}


@media (max-width: 767px) {
    .navbar {
        padding: 20px;
    }

    .logo img {
        max-height: 150px !important;
    }

    .nav-links {
        top: 120px;
    }
}

@media (max-width: 479px) {
    .logo img {
        max-height: 150px !important;
    }

    .menu-toggle {
        right: 30px;
    }

    .footer {
        padding: 30px 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .button-primary {
        width: 100%;
    }
}

/* Contact Form Styling */
.contact-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fbfefb; /* Light background */
    border: 2px solid #5296a5; /* Border color */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    color: #2c2a26;
}

.contact-form h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c2a26;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #5296a5;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background-color: #5296a5;
    color: #fbfefb;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.contact-form button:hover {
    background-color: #0050bd;
}
