/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
header {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem; /* Reduced from 2rem to 1rem to decrease space between logo and menu */
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 150px; /* Increased from 100px to 120px */
    width: auto;
    display: block;
}

/* Navigation styles */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.nav-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    background: #4682B4;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-button:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.2);
}

/* Dropdown styles - Updated for better interaction */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
}

/* Updated dropdown interaction */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Add padding to create a hoverable area between button and dropdown */
.dropdown::after {
    content: '';
    position: absolute;
    height: 20px;
    width: 100%;
    top: 100%;
    left: 0;
}

/* Keep dropdown visible when hovering over the gap */
.dropdown:hover::after {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #4682B4;
}

/* Content styles */
.content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Footer styles */
footer {
    background: #333;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
}

/* Responsive design */
@media (max-width: 1200px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem; /* Reduced from 2rem to maintain consistency */
    }

    .logo-img {
        height: 120px; /* Keep consistent with desktop size */
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .dropdown-content {
        position: absolute;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 100px; /* Slightly reduced for mobile */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-button {
        width: 200px;
        text-align: center;
    }

    .dropdown-content {
        position: relative;
        width: 200px;
        margin: 0.5rem auto;
    }
}