body{
    background-color: #F8F8F8;
    font-family: Montserrat, roboto;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 1.5rem;
    color: #1C1C1C;
}

header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color:#a3b18a;
    padding: 10px 20px;
    color: #fff;
    
}

header nav ul{
    list-style: none;
    display: flex;
    gap: 18px;
    color: #fff;

}

header ul li a{
    display: inline;
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #3a5a40;
    font-size: 1.5rem;  
    transition: color 0.3s ease;
    text-decoration: none;
    outline: none;

    
}

header ul li a:hover {
    color:#ecf39e;
}

#sidebar{
    padding: 0px;

}

#sidebar ul.sidebar-menu{
    list-style: none;
    display: flex;
    padding: 15px;
    gap: 80px;          
    margin: 0;     
    align-items: center;
    position: relative;
    z-index: 10;
    justify-content: flex-end;

}

#sidebar ul.sidebar-menu li{
    position: relative;
    padding: 2px;
    
}
/* Replace your existing #sidebar ul.sidebar-menu li a rule with this: */
#sidebar ul.sidebar-menu > li:not(.No-dropdown) > a {
    text-decoration: none;
    color: #efe6e6; /* Base color for 'Tournaments' and 'Legends' */
    font-size: 1.2rem;
    font-weight: normal;
    padding: 4px 0;
    display: block;
    white-space: nowrap;
    transition: color 0.3s ease;
}

#sidebar ul.sidebar-menu > li:not(.No-dropdown) > a:hover {
    color: #26b810; /* Hover color for 'Tournaments' and 'Legends' */
}

#sidebar ul.sidebar-menu > li.No-dropdown > a {
    text-decoration: none;
    color: #555; /* Example color for Gallery link, CHANGE THIS to your desired color */
    font-size: 1.2rem;
    font-weight: normal;
    padding: 4px 0;
    display: block;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* ADD this new rule for the Gallery link hover state: */
#sidebar ul.sidebar-menu > li.No-dropdown > a:hover {
    color: #d4d6d9; /* Example hover color for Gallery link, CHANGE THIS to your desired color */
}

.sidebar-menu {
    list-style: none;                  
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px; 
    font-size: 1.2rem;
    color: #555;            
}
.sidebar-menu li a {
    text-decoration: none;             
    color: #3a5a40;                    
    transition: color 0.3s ease;       
}

#sidebar .dropdown-content { /* Use .dropdown-content to match your HTML class */
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    /* REMOVE: align-items: center; (This would horizontally center li's within dropdown, not text) */
    background-color: #a3b18a;
    min-width: 200px; /* Wider dropdown, adjust as desired */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0; /* Ensure no padding on the dropdown ul itself */
    flex-direction: column;
    border-radius: 5px;
    gap: 0px; /* ADDED: Explicitly ensures no gap between dropdown li items */
}


#sidebar .dropdown-content li { /* Use .dropdown-content li to match your HTML */
    width: 100%;
    margin: 0; /* Ensure no margin on dropdown li */
    padding: 0; /* Ensure no padding on dropdown li */
}


#sidebar .dropdown-content li a { /* Use .dropdown-content li a to match your HTML */
    color: rgb(243, 235, 235);
    padding: 0px 16px; /* CHANGED: Set top/bottom padding to 0px to remove internal gap */
    /* You can experiment with a very small padding like 2px 16px if you need a tiny bit of space */
    text-decoration: none;
    display: block;
    text-align: left;
    white-space: nowrap; /* Prevent text from wrapping */
}


#sidebar ul ul li a:hover {
    background-color: #396c46; /* Hover effect for dropdown links */
}

#sidebar ul.sidebar-menu li:hover > .dropdown-content { /* Update this selector */
    display: flex;
    flex-direction: column;
}


#tennis-news-container {
    max-width: 800px; /* Limits the width of the news section */
    margin: 20px auto; /* Centers the container horizontally with 20px top/bottom margin */
    padding: 20px; /* Spacing inside the container */
    border: 1px solid #ddd; /* Light grey border around the container */
    border-radius: 8px; /* Slightly rounded corners */
    background-color: #fff; /* White background for the news box */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    font-family: Arial, sans-serif; /* Standard readable font */
    line-height: 1.6; /* Good line spacing for readability */
    color: #333; /* Dark grey text color */
}

/* Heading for the news section */
#tennis-news-container h2 {
    color: #333; /* Dark grey color for the heading */
    text-align: center; /* Center the heading text */
    margin-bottom: 25px; /* Space below the heading */
    border-bottom: 2px solid #007bff; /* A blue line under the heading for emphasis */
    padding-bottom: 10px; /* Space between heading text and the blue line */
}

/* Style for each individual news item */
.news-item {
    border-bottom: 1px solid #eee; /* Light grey separator line between articles */
    padding-bottom: 15px; /* Space below the content of each article */
    margin-bottom: 15px; /* Space below the separator line */
}

/* Remove the bottom border from the very last news item for a cleaner look */
.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Styling for the article title (which is usually a link) */
.news-item h3 {
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 8px; /* Space below the title */
    font-size: 1.3em; /* Slightly larger font size for titles */
    color: #007bff; /* A vibrant blue color for the link (ESPN blue-ish) */
}

/* Styling for the actual link within the title */
.news-item a {
    text-decoration: none; /* Removes the default underline from links */
    color: inherit; /* Inherits the color from the parent h3 (so it's blue) */
}

/* Effect when hovering over an article link */
.news-item a:hover {
    text-decoration: underline; /* Adds an underline when the mouse is over the link */
    color: #0056b3; /* Slightly darker blue on hover for visual feedback */
}

/* Styling for the article description/excerpt */
.news-item p {
    font-size: 0.95em; /* Slightly smaller font size than body text */
    color: #555; /* Medium grey color for descriptions */
    margin-top: 5px; /* Space above the description */
    margin-bottom: 8px; /* Space below the description */
}

/* Styling for the publication date */
.news-item small {
    color: #777; /* Lighter grey color for the date */
    font-size: 0.8em; /* Smaller font size for the date */
    display: block; /* Makes the date appear on its own line below the description */
}

/* --- Basic Body Styles (Optional - adjust to fit your overall site design) --- */
/* You might already have similar styles in your styles.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4; /* Light grey background for the page */
    margin: 0;
    padding: 20px;
}