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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #e7cfb9; /* Light background color */
    color: #333; /* Dark text color */
    display: flex;
    flex-direction: column; /* Allow body to stack elements vertically */
    min-height: 100vh; /* Ensure body takes full height */
}

/* Container for content */
.container {
    width: 80%;
    margin: auto;
    overflow: visible;
    text-align: center; /* Center the other elements in the container */
}
header {
    background: #efeae3; /* Soft beige background */
    color: #a62a2a; /* Dark red text */
    padding: 5px 20px; /* Padding for the header */
    z-index: 10; /* Ensure header is above other elements */
    display: flex; /* Use flexbox for horizontal layout */
    flex-direction: row; /* Horizontal alignment */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Ensure nav takes full width */
    gap: 5px; /* Add gap between logo and title */
}


.logo {
    display: flex; /* Align items within the logo container */
    align-items: center; /* Center vertically */
}

.logo-video {
    height: 50px; /* Set height for both logo and video */
    width: auto; /* Keep the aspect ratio */
    margin-right: 5px; /* Space between logo/video and title */
}

nav {
    width: 100%; /* Ensure nav takes full width */
}

nav ul {
    list-style: none;
    text-align: center;
    padding: 10px 0;
    display: flex; /* Use flexbox to align items in a row */
    justify-content: center; /* Center the items */
}

nav ul li {
    margin: 0 15px;
    position: relative;
    white-space: nowrap; /* Prevent text from wrapping */
}

nav a {
    color: #a62a2a; /* Dark red */
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
    display: inline-block;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffcc00; /* Golden color on hover */
}

/* Dropdown Menu Styles */
.dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Align the dropdown below the parent item */
    left: 50%;
    transform: translateX(-50%);
    right: 20; /* Align to the left */
    background-color: #efeae3; /* Match the header background */
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100; /* Higher z-index to appear above other elements */
    opacity: 0; /* Initially hidden */
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; /* Smooth transition for dropdown */
}

nav ul li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: #a62a2a;
    text-decoration: none;
}

.dropdown a:hover {
    background-color: rgba(255, 204, 0, 0.2); /* Highlighted background color on hover */
}

/* Main Content Styles */
main {
    flex: 1; /* Allow main content to grow */
    padding: 20px; /* Padding for the main content */
}

/* Blog Section */
.blog-section {
    padding: 40px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.blog-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blog-post {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.blog-post h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.blog-post p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.blog-post a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 600;
}

.blog-post a:hover {
    text-decoration: underline;
}

/* Footer */
      footer {
    background: #ab845f; /* Background color */
    color: white; /* Text color */
    padding: 20px 0; /* Padding for spacing */
    text-align: center;
    display: flex; /* Use flexbox */
    justify-content: space-between; /* Align items horizontally */
    align-items: center; /* Vertically align items */
    flex-direction: row; /* Align items in a row */
}

footer .container {
    display: flex;
    justify-content: space-between; /* Space between copyright and links */
    align-items: center;
    width: 100%; /* Take up full width */
    padding: 0 20px; /* Add padding for space */
}
footer p {
    font-size: 1.2em; /* Larger font size for footer */
    margin: 0; /* Remove margin */
    white-space: nowrap; /* Prevent line breaks */
}

footer nav ul {
    list-style: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
    display: flex; /* Flexbox to align horizontally */
}

footer nav ul li {
    margin-left: 20px; /* Space between the links */
}

footer a {
    color: white; /* White links */
    text-decoration: none;
}

footer a:hover {
    color: #ffcc00; /* Golden color on hover */
}
.title {
    font-size: 1.8em; /* Adjust size for the title */
    font-weight: bold; /* Make the title bold */
    color: #a62a2a; /* Match the text color */
    margin: 0; /* Remove default margin */
    white-space: nowrap; /* Prevent title text from wrapping */
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .title {
        margin: 10px 0;
        font-size: 1.5em;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    nav ul li {
        margin: 5px 0;
    }

    .blog-posts-container {
        grid-template-columns: 1fr;
    }
}