/* General Page Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #EAEAEA;
    color: #333;
    margin: 0;
    padding: 0;
}

.logo {
    height: 80px; /* Adjust this to the desired logo height */
    width: auto;
    display: block;
    position: absolute;
    top: 0px;
    left: 20px;
}

/* Header Styles */
header {
    background-color: #6fa3a7;
    color: white;
    padding: 10px 10px 10px 10px;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}

/* .main-header Styles */
.main-header {
    background-color: #355c7d;
    color: white;
    position: relative;
    height: auto;
}

.main-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

.main-header p {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}

/* Link Styles */
a {
    color: #2a9d8f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005999;
}

a:visited {
    color: #005999;
}

a:active {
    color: #003366;
}

/* Main Menu Styling */
nav {
    display: flex;
    justify-content: center; /* Center the menu items */
    position: relative; /* Needed for positioning the hamburger menu */
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: auto;
}

.main-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.main-menu li {
    position: relative; /* Ensure the dropdown content is positioned relative to its parent */
}

.main-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    padding: 10px;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #007acc;
}

/* Dropdown Menu Styling */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Adjust the position to be relative to the parent li */
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1; /* Ensure the dropdown appears above other elements */
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    padding: 12px 16px;
    color: #333;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ffad60;
    color: #007acc;
}

.dropdown:hover .dropdown-content {
    display: block; /* Ensure dropdown stays open on hover */
}

/* Hamburger Menu and Mobile Styles */
.hamburger-btn {
    display: none; /* Initially hide */
    position: absolute;
    top: 10px;
    right: 20px; /* Position the hamburger menu on the right */
    padding: 20px;
    cursor: pointer;
}

.hamburger-btn .bar {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
}

.menu-mobile {
    display: none; /* Initially hidden */
}

@media only screen and (max-width: 768px) {
    .main-menu {
        display: none; /* Hide on mobile */
    }

    .hamburger-btn {
        display: block; /* Show hamburger menu on mobile */
    }

    .menu-mobile {
        display: none; /* Initially hidden */
        position: absolute;
        background-color: white;
        width: 100%;
        top: 50px;
        left: 0;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    }

    .menu-mobile ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .menu-mobile ul li {
        padding: 12px 16px;
        border-bottom: 1px solid #ddd;
    }

    .menu-mobile ul li a {
        color: #333;
        text-decoration: none;
    }

    .menu-mobile ul li a:hover {
        background-color: #f1f1f1;
    }

    .hamburger-btn.open + .menu-mobile {
        display: block; /* Show menu when hamburger is clicked */
    }
}

@media only screen and (min-width: 769px) {
    .main-menu {
        display: flex; /* Show on desktop */
    }

    .hamburger-btn,
    .menu-mobile {
        display: none; /* Hide on desktop */
    }
}

/* Main Content Area */
main {
    padding: 40px 20px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.categories {
    margin-top: 30px;
}

.categories h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}