* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#header {
    position: relative;
    top: 0;
    width: 100%;
    background-color: #c40000;
    height: 120px;
    padding-left: 20px;
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f3f3f3;}


#header.fixed {
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #c40000;
    transition: all 0.3s ease-in-out;
}

body {
    margin-top: 120px; 
}

.thumbnail {
    float: left;
    margin: 0 15px 5px 0;
    width: calc(20% - 20px); /* Adjust the width of each thumbnail */
}

.thumbnail img {
    width: 200px; /* Set a fixed width */
    height: 150px; /* Set a fixed height */
    object-fit: cover; /* Ensure images are cropped appropriately */
    display: block;
}

.thumbnail p {
    margin: 5px 0;
}

body {
    font-family: Segoe UI, Trebuchet MS, sans-serif;
    background: #f3f3f3; /* Changed background color */
    margin: 0;
    padding: 0;
}

header {
    background-color: #c40000;
    height: 120px;
    padding-left: 20px;
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #f3f3f3;
}

header h1 {
    font-size: 36px;
    margin: 0;
}

header h1 a {
    color: #f3f3f3;
}

header p {
    margin: 0;
    font-size: 16px;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}

article,
aside {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    width: calc(50% - 20px);
}

article h2,
aside h2 {
    color: #333;
}

article a,
aside a {
    color: #d31400;
}

nav {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    width: 100%;
}

nav h2 {
    display: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

nav a {
    font-size: 14px;
    color: #fff;
}

footer {
    padding: 30px;
    font-size: 15px;
    color: #666;
    text-align: center;
    background-color: #cccccc;
}

.cs-logo {
    position: absolute;
    top: 20px; /* Adjust this value to position the logo vertically */
    left: 20px; /* Adjust this value to position the logo horizontally */
    z-index: 2; /* Ensure the logo appears above other content */
    width: 150px; /* Adjust the width of the logo */
    height: auto; /* Maintain aspect ratio */
}

/* Existing CSS for the section */
#hero-1785 {
    position: relative; /* Make the section a positioning context for the logo */

}

#menu {
    display: none; /* Hidden by default */
    background-color: #333;
    color: #fff;
    padding: 10px;
    position: absolute;
    top: 120px; /* Position below the header */
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it appears above other content */
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
}

#menu li {
    margin: 10px 0;
}

#menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

#menu a:hover {
    text-decoration: underline;
}

/* JavaScript controlled class to toggle visibility */
.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 400px) {
    .thumbnail {
        width: calc(50% - 10px); /* 2 columns */
    }

    article,
    aside {
        width: 100%; /* Full width */
    }

    nav ul {
        flex-direction: column; /* Stack menu items vertically */
    }
}

@media (min-width: 401px) and (max-width: 800px) {
    .thumbnail {
        width: calc(25% - 10px); /* 4 columns */
    }

    article,
    aside {
        width: calc(50% - 10px); /* 2 columns */
    }
}

@media (min-width: 801px) and (max-width: 1200px) {
    .thumbnail {
        width: calc(20% - 10px); /* 5 columns */
    }

    article,
    aside {
        width: calc(50% - 20px); /* 2 columns */
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #ff4b2b;
    padding: 20px 0;
    text-align: center;
    color: #fff;
}

.logo a {
    font-size: 1.5em;
    color: #fff;
    text-decoration: none;
}

.navbar {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.nav-menu {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 20px;
}

.nav-item a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px;
    transition: all 0.3s ease;
}

.nav-item a:hover {
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.dropdown {
    position: relative;
}

.dropbtn {
    color: #fff;
    background-color: inherit;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 10px;
    transition: all 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    text-decoration: underline;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}