/* Navbar Styling */
nav {
    background-color: #1F1F1F;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: static; /* Ensures natural flow for flex alignment */
    margin: 0 1rem;
}

nav ul li a {
    color: #EAEAEA;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #FFD700;
}

/* Dropdown */
.dropdown-wrapper {
    position: relative; /* Enable relative positioning for dropdown menu */
}

.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Positioned below the parent */
    left: 0;
    width: 100%; /* Matches navbar width */
    background-color: #2A2A2A; /* Dropdown background */
    padding: 1rem;
    z-index: 20;
    opacity: 0; /* Initially hidden */
    visibility: hidden;
    transform: translateY(-10px); /* Slide-in effect */
    transition: all 0.3s ease; /* Smooth opening/closing transition */
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-menu {
    display: flex; /* Makes the dropdown visible */
    justify-content: space-between; /* Aligns left and right sections */
}

/* Show Dropdown on Hover */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover { /* Allow the dropdown to remain visible while hovering */
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Drop down smoothly */
}

/* Left Section */
.dropdown-left {
    flex: 1; /* Takes up half the dropdown width */
    padding: 1rem 2rem;
    max-width: 600px;
    color: #EAEAEA;
    border-right: 2px solid #444; /* Divider line */
}

.dropdown-left h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #A67B5B; /* Elegant brown tone */
}

.dropdown-left p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Right Section */
.dropdown-right {
    flex: 1; /* Takes up half the dropdown width */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.dropdown-right img {
    max-width: 60px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-right: 1rem;
}

.dropdown-right a {
    color: #FFD700;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center; /* Centers text relative to the image */
}

.dropdown-right a:hover {
    color: #FFC107; /* Subtle hover effect */
    text-decoration: underline;
}

/* Invisible Hover Area */
.dropdown-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* Matches parent width */
    height: 20px; /* Provides a buffer for hover/click */
    background: transparent; /* Invisible */
}

/* Mobile & Responsive Adjustments */
@media (max-width: 768px) {
    .dropdown-menu {
        flex-direction: column; /* Stack content vertically */
        padding: 0.5rem;
    }

    .dropdown-left {
        border-right: none; /* Remove divider for smaller screens */
    }

    .dropdown-right a {
        font-size: 0.9rem; /* Slightly smaller text for space-saving */
    }
}
