/*
Theme Name: Bharatvanshi News
Theme URI: http://india24bharatvanshi.com/
Author: India 24 Team
Description: Professional News Portal Layout for India 24 Bharatvanshi.
Version: 2.0
Text Domain: bharatvanshi-news
*/

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 1. Top Bar --- */
.site-topbar {
    background-color: #008996;
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
}
.topbar-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 2. Main Header & Banner Section --- */
header.site-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}
.header-flex-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding h1 {
    margin: 0;
    font-size: 32px;
    color: #008996;
    font-weight: bold;
}
.site-branding h1 a {
    color: #008996;
    text-decoration: none;
}

/* --- Custom Logo Sizing & Alignment Fix --- */
.site-logo img {
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}
.site-header .site-logo {
    display: flex;
    align-items: center;
}

/* --- 3. Navigation Bar & Dropdown Menu --- */
nav.main-navigation {
    background-color: #008996;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav.main-navigation ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}
nav.main-navigation ul li {
    position: relative !important;
}
nav.main-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 12px !important;
    display: block;
    font-weight: 600;
    font-size: 13px !important;
    white-space: nowrap;
    transition: background 0.3s;
}
nav.main-navigation ul li a:hover {
    background-color: #006670;
}

/* Sub-menu / Dropdown Fix */
nav.main-navigation ul ul,
nav.main-navigation .sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 200px !important;
    background-color: #008996 !important;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2) !important;
    z-index: 99999 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
nav.main-navigation ul li:hover > ul,
nav.main-navigation ul li.focus > ul,
nav.main-navigation ul li:hover > .sub-menu {
    display: block !important;
}
nav.main-navigation ul ul li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
}
nav.main-navigation ul ul li a {
    padding: 12px 15px !important;
    white-space: nowrap !important;
    color: #ffffff !important;
    display: block !important;
}
nav.main-navigation ul ul li a:hover {
    background-color: #006670 !important;
}

/* --- 4. Content & News Grid Layout --- */
.site-content-wrapper {
    width: 90% !important;
    max-width: 1200px !important;
    margin: 30px auto !important;
    flex: 1;
}

/* Breaking News / Headlines Ticker bar */
.breaking-news-bar {
    background: #ffffff;
    border-left: 4px solid #008996;
    padding: 12px 15px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* --- 5. Footer --- */
footer.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
    border-top: 4px solid #008996;
}

/* --- Responsive Media Queries --- */
@media(max-width: 900px) {
    .header-flex-container {
        flex-direction: column;
        gap: 15px;
    }
}