/* assets/styles/styles.css */

:root {
    --primary-blue: #3498db;
    --water-blue: #2980b9;
    --dark-navy: #1a252f;
    --network-gold: #f1c40f;
    --bg-gray: #f4f7f6;
}

/* --- CORE RESET --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gray);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- THE WATER HEADER --- */
header {
    background: linear-gradient(135deg, #1a252f 0%, #2980b9 100%) !important;
    color: white;
    border-bottom: 4px solid var(--primary-blue);
    width: 100%;
}

.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 a {
    color: white !important;
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
}

/* --- UNIFIED DROPDOWN SYSTEM --- */

/* Fix for the parent list item */
.dropdown { 
    position: relative; 
    list-style: none !important;
}

/* Unified styles for both .dropdown-menu and .dropdown-content.
   This kills the "exploded" look and removes the dots.
*/
.dropdown-menu, 
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; 
    background: #2c3e50; /* Darker navy for the menu */
    min-width: 220px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    /* THE "DOT KILLER" - Essential Resets */
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

/* Show either class on hover */
.dropdown:hover .dropdown-menu,
.dropdown:hover .dropdown-content { 
    display: block; 
}

/* Ensure list items inside don't have bullets or extra ghost padding */
.dropdown-menu li,
.dropdown-content li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    width: 100%;
}

/* Style the internal links to be clean, full-width rows */
.dropdown-menu li a,
.dropdown-content li a {
    color: white !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    display: block !important;
    font-size: 0.9rem;
    font-weight: normal;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

/* Hover state for links */
.dropdown-menu li a:hover,
.dropdown-content li a:hover { 
    background: var(--primary-blue) !important;
}

/* Remove border from last item in the list */
.dropdown-menu li:last-child a,
.dropdown-content li:last-child a {
    border-bottom: none;
}

/* --- THE LAYOUT ENGINE (Sidebar/News) --- */
.main-layout {
    display: flex !important; 
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

.main-news-container {
    flex: 3; /* 75% width */
    min-width: 0;
}

.sidebar-column {
    flex: 1; /* 25% width */
    min-width: 300px;
}

.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* --- WATER THEMED FOOTER --- */
footer {
    background: linear-gradient(0deg, #000 0%, var(--dark-navy) 100%) !important;
    color: white;
    border-top: 4px solid var(--primary-blue);
    padding: 50px 0 20px 0;
    margin-top: 60px;
    text-align: center;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .main-layout {
        flex-direction: column; /* Stack sidebar on mobile */
    }
    
    .sidebar-column {
        width: 100%;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Highlight styling for today's date */
.highlight { 
    background-color: #fff9c4 !important; /* Soft Yellow */
    border-left: 5px solid #fbc02d;
    font-weight: bold;
}

.today-label {
    background: #fbc02d;
    color: #000;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}