/* STICKY HEADER SYSTEM */
.header {
    background: #e2e8f0; /* Soft Slate Gray - Professional and makes logo pop */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    color: #333;
    transition: var(--transition);
}

.top-nav {
    background: #cbd5e0; /* Slightly darker than header for depth */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 0;
}

.header-wrapper {
    width: 100%;
}

body.dark-theme .header {
    background: #121212;
    color: #fff;
}

/* Top Info Bar */
.top-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #eeeeee;
    padding: 8px 0;
}

.top-nav .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.date-time-bar {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
}

body.dark-theme .top-nav {
    background: #1a1a1a;
    border-bottom-color: #333;
}

body.dark-theme .date-time-bar {
    color: #aaa;
}

/* Main Header Row */
.header-main {
    padding: 12px 0;
}

.header-flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo & Hamburger Area */
.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: -10px; /* Pulls hamburger closer to the left edge */
    margin-right: 25px; /* Gap between logo and the Navigation menu */
}

#hamburgerBtn {
    font-size: 1.5rem;
    margin-right: 15px; /* Reduced spacing between hamburger and logo */
    cursor: pointer;
    color: #333;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

body.dark-theme #hamburgerBtn {
    color: #fff;
}

#hamburgerBtn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.main-logo {
    max-height: 100px; /* Increased logo size for better visibility */
    width: auto;
    object-fit: contain;
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    gap: 2px;
    flex-grow: 1;
    justify-content: center;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #333;
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(0,0,0,0.05);
}

body.dark-theme .nav-link {
    color: #eee;
}

body.dark-theme .nav-link:hover {
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    background: var(--secondary-color);
    color: #fff;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 5px;
    color: #333;
}

body.dark-theme .dropdown-toggle i {
    color: #eee;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 6px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child { border-bottom: none; }

.dropdown-content a:hover {
    background: rgba(0,0,0,0.04);
    color: var(--secondary-color);
    padding-left: 25px;
}

body.dark-theme .dropdown-content a:hover {
    background: rgba(255,255,255,0.05);
}

/* Right Actions */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-right-actions i {
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
    transition: var(--transition);
}

body.dark-theme .header-right-actions i {
    color: #eee;
}

.header-right-actions i:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* BREAKING NEWS TICKER */
.breaking-ticker-container {
    width: 100%;
    margin-top: 20px;
    background: #071C33;
    position: relative;
    z-index: 10;
}

.breaking-ticker {
    background: #071C33; /* Deep Navy */
    color: #fff;
    height: 45px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.ticker-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    height: 100%;
}

.ticker-label {
    background: #8b0000; /* Red Breaking News Label */
    color: #fff;
    padding: 0 25px;
    font-weight: 900;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 0.85rem;
    z-index: 30;
    position: absolute;
    left: 0;
    top: 0;
    box-shadow: 10px 0 20px rgba(0,0,0,0.3);
}

.ticker-scroll-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0;
}

.ticker-content {
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: tickerMove 30s linear infinite;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff; /* White Scrolling Headlines */
}


.ticker-content:hover { animation-play-state: paused; }

.ticker-content span {
    margin-right: 100px;
    cursor: pointer;
}

@keyframes tickerMove {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* SIDE DRAWER SYSTEM */
.side-drawer {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100%;
    background: var(--card-bg);
    z-index: 2000;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 8px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.side-drawer.open {
    left: 0;
}

.drawer-header {
    padding: 30px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.3rem;
    font-weight: 900;
}

.close-drawer {
    cursor: pointer;
    font-size: 1.8rem;
    transition: var(--transition);
}

.close-drawer:hover { transform: rotate(90deg) scale(1.1); }

.drawer-nav {
    padding: 20px 0;
    overflow-y: auto;
    flex-grow: 1;
}

.drawer-nav a {
    display: block;
    padding: 16px 35px;
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.drawer-nav a:hover {
    background: rgba(139, 0, 0, 0.05);
    color: var(--secondary-color);
    padding-left: 45px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MOBILE RESPONSIVE */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .side-drawer { width: 300px; left: -300px; }
}
