body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 65px 10px 10px 10px; /* Top padding for fixed nav header */
    min-height: 100vh;
    color: #333;
    position: relative;
}

/* Navigation Header */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    gap: 12px;
}

/* Navigation Buttons */
.nav-button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    background: rgba(5, 32, 142, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(5, 32, 142, 0.2);
}

/* Hamburger Menu Button */
.hamburger-menu {
    flex-direction: column;
    gap: 3px;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: #05208e;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover .hamburger-line {
    background: #041a73;
}

/* Refresh Button */
.refresh-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: #05208e;
}

.refresh-button:hover .refresh-icon {
    transform: rotate(180deg);
    color: #041a73;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: absolute;
    top: 50px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 180px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px;
}

.nav-dropdown-item:hover {
    background: rgba(5, 32, 142, 0.1);
    color: #05208e;
    transform: translateX(2px);
}

.nav-dropdown-item.active {
    background: rgba(5, 32, 142, 0.15);
    color: #05208e;
    font-weight: 600;
}

.nav-dropdown-item:first-child {
    margin-top: 8px;
}

.nav-dropdown-item:last-child {
    margin-bottom: 8px;
}


/* Removed white overlay to let background image show through */
body::before {
    display: none;
}

/* Mobile adjustments for dropdown */
@media (max-width: 768px) {
    .nav-header {
        padding: 0 15px;
        gap: 10px;
    }
    
    .nav-dropdown {
        top: 45px;
        left: 15px;
        min-width: 160px;
    }
    
    .nav-dropdown-item {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* Common header responsive styles */
    .header h1,
    .page-header h1,
    .main-content h1 {
        font-size: 1.4em;
    }
    
    h2 {
        font-size: 1.2em;
        padding: 6px 10px;
    }
    
    .footer {
        padding: 20px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-header {
        padding: 0 10px;
        gap: 8px;
    }
    
    .nav-dropdown {
        top: 40px;
        left: 10px;
        min-width: 140px;
    }
    
    .nav-dropdown-item {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    /* Common header responsive styles for small screens */
    .header h1,
    .page-header h1,
    .main-content h1 {
        font-size: 1.2em;
    }
    
    h2 {
        font-size: 1.1em;
        padding: 5px 8px;
        border-left-width: 2px;
    }
    
    .footer {
        padding: 15px 10px;
    }
    
    .footer p {
        font-size: 0.8em;
    }
}

/* Common header styles for all pages */
.header h1,
.page-header h1,
.main-content h1 {
    color: #05208e;
    font-size: 1.6em;
    font-weight: 500;
    text-align: center;
    margin: 0 0 25px 0;
}

/* Common h2 styling with gradient background */
h2 { 
    color: #05208e; 
    margin-top: 20px; 
    font-size: 1.3em;
    border-left: 3px solid #0056b3;
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(0,86,179,0.15) 0%, rgba(0,123,255,0.05) 80%, transparent 100%);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Emoji styling for better visibility */
h2:has-text("🎯") { border-left-color: #28a745; }
h2:has-text("📻") { border-left-color: #e74c3c; }
h2:has-text("⏰") { border-left-color: #f39c12; }
h2:has-text("🌍") { border-left-color: #3498db; }
h2:has-text("📈") { border-left-color: #9b59b6; }
h2:has-text("💡") { border-left-color: #f1c40f; }
h2:has-text("🔬") { border-left-color: #95a5a6; }
/* Common footer styling for all pages */
.footer {
    background: rgba(255, 255, 255, 0.3);
    color: #6c757d;
    padding: 15px 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 20px;
    border-radius: 0 0 12px 12px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
    text-align: center;
}

.footer p {
    margin: 2px 0;
    opacity: 0.8;
    font-size: 0.9em;
}

.footer a {
    color: #05208e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #041a73;
    text-decoration: underline;
}

.footer .disclaimer {
    font-style: italic;
}
