/* 
   Khabar Fast - Premium UI Design System (Exact Match)
*/

:root {
    --brand-red: #c3272e;
    --red: #BB1919;
    --blue: #002D82;
    --blue-2: #001B60;
    --blue-dark: #00467F;
    --brand-dark: #121212;
    --dark: #161616;
    --bg-light: #f8f9fa;
    --text-dark: #1a1a1a;
    --gray: #474747;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.1);
    /* Dark Mode Variables Init */
    --body-bg: #fff;
    --card-bg: #fff;
    --text-color: #1a1a1a;
}

body,
.index-body,
#wrapper {
    background-color: #f1f3f6 !important;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ====== DARK MODE ====== */
body.dark-mode {
    --body-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    background-color: var(--body-bg) !important;
    color: var(--text-color) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Wrapper & main layout */
body.dark-mode #wrapper,
body.dark-mode .index-body {
    background-color: var(--body-bg) !important;
}

body.dark-mode #form1 {
    background-color: var(--body-bg) !important;
}

/* Header */
body.dark-mode .header-nav {
    background: #1a1a1a !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .nav-links a {
    color: var(--text-color) !important;
}

body.dark-mode .nav-links .active a {
    color: var(--brand-red) !important;
}

body.dark-mode .btn-hamburger,
body.dark-mode .btn-icon {
    color: var(--text-color) !important;
}

/* Cards */
body.dark-mode .card-v3,
body.dark-mode .card-v3-body,
body.dark-mode .card-box {
    background: var(--card-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .card-v3 .title,
body.dark-mode .card-v3 .date {
    color: var(--text-color) !important;
}

/* Section headers */
body.dark-mode .section-header-v4 {
    border-bottom-color: #333 !important;
}

body.dark-mode .section-header-v4 h2,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h4 a,
body.dark-mode h3 a,
body.dark-mode h2 a {
    color: var(--text-color) !important;
}

body.dark-mode .main-hd {
    color: var(--text-color) !important;
}

body.dark-mode .hd-line {
    border-bottom-color: #333 !important;
}

/* Links */
body.dark-mode a {
    color: #90caf9 !important;
}

body.dark-mode a:hover {
    color: #bbdefb !important;
}

body.dark-mode .nav-links a,
body.dark-mode .nav-links .active a {
    color: var(--text-color) !important;
}

body.dark-mode .nav-links .active a {
    color: var(--brand-red) !important;
}

/* Section cards & containers */
body.dark-mode .section-card,
body.dark-mode .visual-stories-container,
body.dark-mode .trending-bar-v2 {
    background: var(--card-bg) !important;
}

/* Sub news items */
body.dark-mode .sub-news-item .title {
    color: var(--text-color) !important;
}

/* Featured horizontal cards */
body.dark-mode .feat-horiz-content h3 {
    color: var(--text-color) !important;
}

body.dark-mode .feat-horiz-content p {
    color: #aaa !important;
}

/* V4 layout items */
body.dark-mode .v4-feat-content h3,
body.dark-mode .v4-sub-item h5,
body.dark-mode .v4-side-text h4,
body.dark-mode .v4-feature-card .title {
    color: var(--text-color) !important;
}

body.dark-mode .v4-feat-content p {
    color: #aaa !important;
}

/* Visual stories */
body.dark-mode .vs-card {
    background: var(--card-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .vs-overlay .title {
    color: var(--text-color) !important;
}

body.dark-mode .vs-title h2 {
    color: var(--text-color) !important;
}

/* Live feed */
body.dark-mode .live-feed-sidebar {
    background: var(--card-bg) !important;
}

body.dark-mode .live-item {
    border-left-color: #444 !important;
}

body.dark-mode .live-text {
    color: var(--text-color) !important;
}

body.dark-mode .live-feed-title h3 {
    color: var(--text-color) !important;
}

/* Sidebar widgets */
body.dark-mode .sidebar-widget,
body.dark-mode .sidebar-compact-list {
    background: var(--card-bg) !important;
    border-color: #333 !important;
}

/* Mobile nav drawer */
body.dark-mode .mobile-nav-drawer {
    background: #1a1a1a !important;
}

body.dark-mode .mobile-nav-header {
    border-bottom-color: #333 !important;
}

body.dark-mode .mobile-menu-list li {
    border-bottom-color: #2a2a2a !important;
}

body.dark-mode .mobile-menu-list li a {
    color: var(--text-color) !important;
}

/* Follow bar */
body.dark-mode .follow-bar {
    background: var(--card-bg) !important;
}

body.dark-mode .follow-bar h3 {
    color: var(--text-color) !important;
}

/* Trending bar */
body.dark-mode .trending-list-v2 a {
    background: #2a2a2a !important;
    color: var(--text-color) !important;
}

/* See more button */
body.dark-mode .btn-see-more {
    background: var(--card-bg) !important;
    border-color: #444 !important;
    color: var(--brand-red) !important;
}

/* Container override for dark mode */
body.dark-mode .container {
    background-color: transparent !important;
}

/* Scrollbar dark */
body.dark-mode ::-webkit-scrollbar {
    background: #1a1a1a;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

/* Search overlay */
body.dark-mode .search-overlay,
body.dark-mode .ne-dropdown-menu {
    background: #1a1a1a !important;
}

body.dark-mode .search-overlay input {
    background: #2a2a2a !important;
    color: var(--text-color) !important;
    border-color: #444 !important;
}

/* Dark mode toggle icon */
body.dark-mode #darkModeToggle i {
    color: #ffd700 !important;
}

/* Header Overrides */
/* Header Overrides */
.header-top-mini {
    background: #000;
    padding: 8px 0;
    color: #fff;
    font-size: 13px;
    border-bottom: 1px solid #222;
}
.top-mini-links{
    padding: 4px;
}
.top-mini-links a {
    color: #fff;
    text-transform: capitalize;
    font-weight: 700;
    margin-right: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.top-mini-links a:hover {
    color: var(--brand-red);
}

.header-social-v2 li {
    margin-left: 5px;
}

.header-social-v2 a.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.header-social-v2 a.social-icon:hover {
    transform: translateY(-2px);
}

/* Social Brand Colors */
.facebook {
    background-color: #3b5998;
}

.twitter {
    background-color: #1da1f2;
}

.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.pinterest {
    background-color: #bd081c;
}

.youtube {
    background-color: #cd201f;
}

.linkedin {
    background-color: #0077b5;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .header-top-mini .col-md-6 {
        text-align: center !important;
    }

    .top-mini-links {
        margin-bottom: 10px;
    }
}

.header-nav {
    border-bottom: 2px solid #eee;
}

.btn-hamburger {
    background: none;
    border: none;
    font-size: 20px;
    color: #000;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 18px;
    color: #000;
}

.nav-links a {
    color: #000;
    font-weight: 700;
    font-size: 15px;
    padding: 24px 10px;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

.nav-links .active a {
    color: var(--brand-red);
    border-bottom: 3px solid var(--brand-red);
}

/* Breaking News Skewed Bar */
.breaking-news-grid {
    background: var(--brand-red);
    display: flex;
    overflow: hidden;
    height: 43px;
    align-items: center;
    border-radius: 4px;
    margin-top: 15px;
}

.hero-v3-grid,
.visual-stories-container,
.video-hub-modern .container,
.section-card {
    border-radius: 8px;
    margin-bottom: 30px;
}

.section-card.row {
    align-items: stretch;
}

.section-card .col-lg-4 {
    display: flex;
    flex-direction: column;
}

.section-header-v4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .btn-hamburger {
        display: none !important;
    }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-drawer.active {
    left: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-menu-list li a {
    display: block;
    padding: 12px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.mobile-menu-list li a:hover {
    color: var(--brand-red);
    padding-left: 5px;
}

body.dark-mode .hero-v3-grid,
body.dark-mode .visual-stories-container,
body.dark-mode .video-hub-modern .container,
body.dark-mode .section-card {
    background: var(--card-bg) !important;
}

.breaking-label {}

.breaking-label span {
    transform: skew(20deg);
    display: inline-block;
}

.breaking-ticker-wrap {
    flex: 1;
    color: #fff;
    padding: 3px 20px;
    font-weight: 700;
    font-size: 16px;
}

/* Hero Section */
.hero-v3-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.main-story-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 598px;
}

.main-story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.main-story-overlay .badge-cat {
    background: var(--brand-red);
    padding: 4px 10px;
    font-size: 12px;
    margin-bottom: 15px;
    display: inline-block;
    border-radius: 2px;
}

.main-story-overlay h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

/* Right Column Widgets */
.side-widget-live {
    background: #000;
    border-radius: 16px;
    height: 260px;
    position: relative;
    overflow: hidden;
}

.live-badge-red {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brand-red);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(204, 0, 1, 0.4);
    z-index: 3;
}

.play-btn-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 56px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
    z-index: 2;
}

.side-widget-live:hover .play-btn-center {
    transform: translate(-50%, -50%) scale(1.1);
    color: #fff;
}

.live-breaking-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, #002e5a, #004d96);
    padding: 10px 15px;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.live-breaking-strip::before {
    content: '';
    width: 6px;
    height: 18px;
    background: #ff0000;
    display: inline-block;
}

/* Weather Widget Polish */
.weather-widget {
    background: radial-gradient(53.01% 53.01% at 50% 50%, #1985BB 0%, #005AAE 100%);
    border-radius: 16px;
    padding: 13px;
    color: #fff;
    height: 318px;
    margin-top: 20px;
}

.weather-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    margin-top: 22px;
}

.weather-main h4 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2px;
}

.weather-main .small {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    margin-top: 7px;
}

.weather-temp {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 45px;
    color: #FFFFFF;
    line-height: normal;
    margin-top: 5px;
}

.weather-forecast-strip {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 10px;
    gap: 5px;
}

.forecast-day {
    background: #1985BB;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    padding: 8px 5px;
}

.forecast-day img {
    width: 30px;
    margin-bottom: 5px;
}

.forecast-day .wk {
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
}

.forecast-day .dd {
    font-size: 14px;
}

.forecast-day div:first-child {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.forecast-day .icon {
    height: 36px;
}

.forecast-day i {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

/* Bottom News Grid */
.news-row-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card-v3 {
    border-radius: 8px;
    overflow: hidden;
    transition: var(--shadow-md);
}

.card-v3-img {
    height: 200px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.card-v3-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-v3-body {
    padding: 20px 15px 14px;
    background: #fff;
}

.card-v3 .badge-small {
    background: var(--brand-red);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    bottom: 0;
    left: 12px;
    border-radius: 2px;
    z-index: 2;
}

.badge-biz {
    background: #2b3d54 !important;
}

.badge-ent,
.badge-cricket {
    background: var(--brand-red) !important;
}

.card-v3 .title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    color: #1a1a1a;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 3;
}

.card-v3 .date {
    font-size: 11px;
    color: #999;
}

/* Sponsored Banner */
.sponsored-banner {
    background: #0c171e;
    margin-top: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    color: #fff;
}

.sponsored-banner h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.btn-white {
    background: #fff;
    color: #000;
    font-weight: 800;
    padding: 12px 25px;
    border-radius: 4px;
    border: none;
}

.breaking-label img {
    width: 358px;
    left: -5px;
    position: relative;
}

.main-logo {
    background: #161616;
    padding: 12px 10px;
    border-radius: 8px;
}

.card-box {
    background: #fff;
    padding: 22px 20px;
    border-radius: 14px;
    height: 100%;
}

/* --- NEW COMPONENTS FROM UI --- */

/* State Filter Bar */
.cat-filter-wrap {
    background: var(--blue);
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    padding: 0 33px;
    position: relative;
}

.cat-filter-wrap::before {
    content: "";
    position: absolute;
    right: 0;
    background: var(--blue);
    width: 33px;
    height: 100%;
    z-index: 1;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
}

.cat-filter-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    background: var(--blue);
    width: 33px;
    height: 100%;
    z-index: 1;
    border-bottom-left-radius: 12px;
    border-top-left-radius: 12px;
}

.cat-filter-list {
    display: flex;
    gap: 15px;
    flex: 1;
    -ms-overflow-style: none;
    overflow-x: scroll;
}

.cat-filter-list::-webkit-scrollbar {
    display: none;
}

.cat-filter-list a {
    color: #fff;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 15px;
    border-radius: 8px;
    transition: 0.3s;
    position: relative;
}

.cat-filter-list a:hover {
    background: var(--red);
    color: #fff;
}

.cat-filter-list a.active {
    background: var(--brand-red);
}

.cat-filter-list a::before {
    content: '';
    background: url(../img/icons/down-arrow.svg);
    position: absolute;
    width: 20px;
    height: 13px;
    bottom: -10px;
    left: 50%;
    transform: translate(-50%, 0);
    display: none;
}

.filter-arrow {
    cursor: pointer;
    background: var(--red);
    width: 20px;
    height: 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    position: absolute;
    z-index: 9;
}

.filter-arrow img {
    width: 100%;
}

.filter-arrow.next img {
    transform: rotate(180deg);
}

.filter-arrow.prev {
    left: 10px;
}

.filter-arrow.next {
    right: 8px;
}

.cat-filter-list a.active::before {
    display: block;
}

/* Large Horizontal Feature */
.feat-horiz {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.feat-horiz-img {
    flex: 0 0 45%;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.feat-horiz-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feat-horiz-content {
    flex: 1;
}

.feat-horiz-content h3 {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    color: var(--dark);
}

.feat-horiz-content p {
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: var(--gray);
}

.feat-horiz-content .read-more {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 13px;
}

/* Sub News Grid 2-col */
.sub-news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sub-news-item {
    display: flex;
    gap: 15px;
    align-items: start;
}

.sub-news-item img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sub-news-item .title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--dark);
    width: 240px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.sub-news-item .date {
    font-size: 11px;
    color: #999;
}

/* Sports Widget */
.widget-sports {
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.sports-tabs {
    display: flex;
    background: #c3272e;
}

.sports-tabs div {
    flex: 1;
    text-align: center;
    color: #fff;
    font-size: 11px;
    padding: 12px;
    font-weight: 800;
    cursor: pointer;
}

.sports-tabs div.active {
    opacity: 1;
    background: var(--dark);
    position: relative;
}

.score-card {
    background: url(../img/score-bg.jpg) no-repeat;
    padding: 68px 20px;
    color: #fff;
    text-align: center;
    position: relative;
    background-size: cover;
}

.match-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    z-index: 9;
    background: linear-gradient(180deg, #D9D9D9 0%, #FFFFFF 100%);
    border-radius: 0px 0px 43.283px 43.283px;
    padding: 7px 0;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    width: 264px;
    margin: 0 auto;
    position: relative;
    z-index: 9;
}

.team-box img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 10px;
}

.team-box .country {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 5px;
    line-height: normal;
}

.vs {
    font-size: 30px;
    font-weight: 900;
}

.match-status {
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 15px;
}

.score-card .flag {
    width: 63px;
    height: 63px;
    border-radius: 50%;
}

.score-card .flag img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #fff;
}

.score-card .score {
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
}

.score-card::after {
    content: "";
    background: linear-gradient(181deg, #000000ad, transparent);
    position: absolute;
    top: 90px;
    height: 70%;
    width: 80%;
    left: 50%;
    transform: translate(-50%, 0);
}

/* Stock Widget */
.widget-stocks {
    background: var(--blue-2);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    margin-bottom: 30px;
}

.stock-tabs {
    display: flex;
    background: #fff;
    border-radius: 25px;
    padding: 4px;
    margin-bottom: 20px;
}

.stock-tabs span {
    flex: 1;
    text-align: center;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

.stock-tabs span.active {
    background: #c3272e;
    color: #fff;
    border-radius: 25px;
}

.stock-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stock-item:last-child {
    border: none;
}

.stock-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.stock-info .tag {
    font-size: 10px;
    opacity: 0.5;
    text-transform: uppercase;
}

.stock-vitals {
    text-align: right;
}

.stock-vitals .price {
    font-size: 14px;
    font-weight: 800;
    display: block;
}

.stock-vitals .change {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

.stock-vitals .change.down {
    color: #ef4444;
}

/* Follow Section */
.follow-bar {
    background: #fff;
    border-radius: 100px;
    padding: 15px 33px;
    margin: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: fit-content;
    margin: 0 auto;
}

.follow-bar h3 {
    margin: 0;
    font-weight: 900;
    font-size: 24px;
    color: #1a1a1a;
    font-family: 'Martel Sans', sans-serif;
}

.social-list-round {
    display: flex;
    gap: 15px;
}

.social-list-round a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    transition: 0.3s;
    padding-top: 2px;
}

.social-list-round a:hover {
    opacity: 0.9;
    color: #fff;
    background-color: var(--dark);
}

.bg-fb {
    background: #3b5998;
}

.bg-tw {
    background: #1da1f2;
}

.bg-ig {
    background: #e1306c;
}

.bg-pt {
    background: #bd081c;
}

.bg-yt {
    background: #ff0000;
}

.bg-li {
    background: #0077b5;
}

@media (max-width: 991px) {
    .feat-horiz {
        flex-direction: column;
    }

    .feat-horiz-img {
        flex: 0 0 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .sub-news-list {
        grid-template-columns: 1fr;
    }

    .follow-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 30px;
        text-align: center;
    }
}

/* Video Hub V3 (Modern) */
.video-hub-modern {
    background: url(../img/bg-1.jpg) no-repeat;
    padding: 60px 0;
    margin: 60px 0;
    position: relative;
    background-size: cover;
}

.video-hub-modern .video-title-v3 {
    color: #fff;
    font-weight: 900;
    font-size: 32px;
    margin-bottom: 30px;
    margin-left: 10px;
}

.video-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.video-featured-main {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.play-btn-huge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    pointer-events: none;
}

.video-featured-main:hover .play-btn-huge {
    transform: translate(-50%, -50%) scale(1.1);
    color: #fff;
}

.video-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px 30px 30px;
    color: #fff;
}

.video-featured-overlay h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    line-height: 1.4;
}

/* Side List in Video Hub */
.video-side-list {
    background: var(--dark);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 480px;
}

.v-side-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v-side-item:last-child {
    border: none;
}

.v-side-content {
    flex: 1;
}

.v-side-content h4 {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
}

.v-side-meta {
    font-size: 11px;
    color: #ccc;
}

.v-side-img {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
}

.v-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.v-side-img i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Bottom Row in Video Hub */
.video-row-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.v-bottom-card {
    border-radius: 10px;
    overflow: hidden;
    color: #fff;
    transition: 0.3s;
    position: relative;
}

.v-bottom-thumb {
    position: relative;
    height: 204px;
}

.v-bottom-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v-bottom-thumb .play-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #fff;
    opacity: 0.8;
}

.v-bottom-body {
    padding: 15px;
    width: 100%;
    height: 110px;
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 7.14%, #000000 100%);
    border-radius: 11px;
    padding-top: 65px;
}

.v-bottom-body .title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #fff;
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.v-bottom-meta {
    font-size: 11px;
    color: #999;
}

.v-bottom-card .title {
    color: #fff;
}

.sidebar-compact-list {
    margin-top: 14px;
}

@media (max-width: 991px) {
    .video-hub-modern {
        margin: 30px 0;
        border-radius: 0;
    }

    .video-featured-main,
    .video-side-list {
        height: auto;
    }
}

/* --- VISUAL STORIES --- */
.visual-stories-container {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.vs-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.vs-title i {
    color: var(--brand-red);
    font-size: 24px;
}

.vs-title h2 {
    margin: 0;
    font-weight: 900;
    font-size: 26px;
}

.vs-grid {
    display: flex;
    gap: 15px;
}

.vs-card .vs-overlay {
    padding: 9px 10px 17px;
}

.vs-grid::-webkit-scrollbar {
    display: none;
}

.vs-card {
    flex: 0 0 184px;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 0.5px solid #E8E8E8;
    border-radius: 22px;
}

.vs-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.vs-progress {
    position: absolute;
    top: 0;
    z-index: 99;
    left: 50%;
    transform: translate(0, 10px);
}

.vs-overlay .title {
    font-weight: 700;
    font-size: 12px;
    line-height: 15px;
    display: flex;
    align-items: center;
    margin: 10px 0 0;
    color: var(--dark);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}


.vs-progress {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 3px;
}

.vs-progress span {
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    flex: 1;
    border-radius: 10px;
}

.vs-progress span.active {
    background: #fff;
}

/* --- TRENDING NEWS V2 BAR --- */
.trending-bar-v2 {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.trending-label-v2 {
    background: var(--blue-dark);
    color: #fff;
    padding: 10px 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-list-v2 {
    background: var(--red);
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 13px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.trending-list-v2::-webkit-scrollbar {
    display: none;
}

.trending-list-v2 a {
    color: var(--dark);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
}

/* --- LIVE UPDATES FEED --- */
.live-feed-sidebar {
    padding: 20px;
    border-radius: 4px;
    height: 100%;
}

.live-feed-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.live-feed-title h3 {
    margin: 0;
    font-weight: 900;
    font-size: 22px;
}

.live-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0;
    border-left: 1px solid #ddd;
    padding-bottom: 18px;
}

.live-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--brand-red);
    border-radius: 50%;
}

.live-time {
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-red);
    margin-bottom: 5px;
    display: block;
}

.live-text {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    display: block;
}

/* --- CATEGORY SECTION V4 (Sports, Ent, etc.) --- */
.section-v4 {
    margin-bottom: 50px;
}

.section-header-v4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-header-v4 h2 {
    margin: 0;
    font-weight: 900;
    font-size: 24px;
    position: relative;
}

.section-header-v4 h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--brand-red);
}

.btn-see-more {
    font-size: 13px;
    color: var(--red);
    padding: 4px 12px;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #E2E2E2;
    border-radius: 20px;
    font-weight: 800;
    display: flex;
    gap: 9px;
    align-items: center;
}

.v4-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.v4-main-col {
    padding: 0;
}

.v4-feature-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.v4-feat-img {
    flex: 0 0 55%;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    height: auto;
    display: flex;
    gap: 15px;
}

.v4-feat-img .item {
    flex: 1;
}

.v4-feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v4-feat-content {
    flex: 1;
}

.v4-feat-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
}

.v4-feat-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.v4-sub-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.v4-sub-item {
    display: flex;
    gap: 12px;
    align-items: start;
}

.v4-sub-item img {
    width: 90px;
    height: 65px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.v4-sub-item h5 {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1.4;
}

.v4-side-item {
    gap: 15px;
    margin-bottom: 14px;
    display: flex;
    align-items: start;
}

.v4-side-img {
    width: 70px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.v4-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v4-side-text h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.v4-feature-card .title {
    font-weight: 600;
    font-size: 14px;
    line-height: 19px;
    color: var(--dark);
}

@media (max-width: 991px) {
    .v4-layout-grid {
        grid-template-columns: 1fr;
    }

    .v4-feature-card {
        flex-direction: column;
    }

    .v4-feat-img {
        flex: 0 0 100%;
        height: 220px;
    }
}

@media (max-width: 576px) {
    .v4-sub-list {
        grid-template-columns: 1fr;
    }
}


/* --- PREMIUM FOOTER --- */
.premium-footer {
    background: #0d0d0d;
    color: #fff;
    padding: 60px 0 30px;
    font-family: 'Inter', sans-serif;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fbcf00;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.footer-col {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 15px;
    overflow: hidden;
    /* Ensure content doesn't break column width */
}

.footer-col:last-child {
    border-right: none;
}

.footer-links {
    list-style: disc;
    padding: 0;
    padding-left: 18px;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
    display: block;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
    /* Significantly increased width for 3-column layout */
}

.footer-links a:hover {
    color: #fbcf00;
    padding-left: 5px;
}

/* FIX: Ensure no white space at bottom */
html {
    background-color: #0d0d0d;
    /* Matches footer */
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #0d0d0d;
    /* Matches footer to hide gaps */
}

#form1 {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
    background-color: transparent;
    /* Allow black body bg to show if gaps exist */
}

#wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    /* Only content area should be white */
    width: 100%;
    /* Ensure full width */
}

.premium-footer {
    margin-top: auto;
    margin-bottom: 0 !important;
}

/* Main Footer Row: Social + Nav Left, Apps Right */
.footer-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-left-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.social-circles {
    display: flex;
    gap: 15px;
}

.social-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: 0.3s;
}

.social-circle:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

.sc-fb {
    background: #3b5998;
}

.sc-x {
    background: #000;
}

.sc-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sc-pt {
    background: #bd081c;
}

.sc-yt {
    background: #cd201f;
}

.sc-li {
    background: #0077b5;
}

.bottom-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bottom-nav-links a {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.bottom-nav-links a:hover {
    color: #fbcf00;
}

.footer-right-content {
    flex-shrink: 0;
}

.app-badges {
    display: flex;
    gap: 20px;
}

.app-badge img {
    height: 65px;
    /* Premium larger size */
    border-radius: 8px;
    transition: 0.3s;
}

.app-badge:hover img {
    transform: scale(1.05);
}

/* Footer Bottom Strip */
.footer-copyright-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.copyright-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.breaking-ticker-wrap marquee {
    line-height: normal;
    display: flex;
    align-items: center;
}

.weather-main .weather-icon img {
    width: 137px;
}

.weather-main .weather-icon {
    margin-top: 5px;
    position: relative;
}

.weather-main .weather-icon .small-icon {
    width: 26px;
    display: inline-block;
    padding-top: 14px;
    position: relative;
}

.weather-main .weather-icon .small-icon img {
    width: 100%;
}

.weather-main .weather-icon .small-icon.cloud-1 {
    right: 5px;
}

.weather-main .weather-icon .small-icon.cloud-2 {
    right: 5px;
}

.hd-icon {
    width: 13px;
    margin-right: 6px;
    display: flex;
    height: 22px;
    align-items: center;
}

.main-hd {
    font-weight: 700;
    font-size: 30px;
    line-height: 26px;
    color: #161616;
    margin-bottom: 15px;
    gap: 8px;
}

.hd-line {
    border-bottom: 1px solid #efefef;
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.hd-line .main-hd {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .footer-top-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .footer-top-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-main-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-right-content {
        width: 100%;
        margin-top: 20px;
    }

    .app-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-col h4 {
        font-size: 18px;
    }

    .footer-links a {
        font-size: 16px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .premium-footer {
        padding: 40px 0 20px;
    }

    .footer-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        padding-right: 0;
    }

    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-links a {
        font-size: 14px;
        max-width: 100%;
    }

    .app-badges {
        flex-direction: column;
        gap: 15px;
    }

    .app-badge img {
        height: 50px;
    }
}

/* Code to override above queries */
.weather-main h4{
    font-weight: 600;
}
.sub-news-item {
    flex-wrap: wrap;
}
.header-top-mini{
    padding: 4px 20px;
}
.container {
    padding-top: 6px;
    padding-bottom: 6px;
}

.logo-container {
    width: 120px;
}

.logo-container {
    background: #161616;
    padding: 10px 10px;
    border-radius: 8px;
}

.main-logo img {
    max-height: 30px;
    width: auto;
    transition: 0.3s;
}

@media screen and (max-width: 767px) {
    .header-top-mini {
        padding-left: 8px;
        padding-right: 8px;
    }


    .header-top-mini {
        display: none;
    }
}


.sports-container {
    display: flex;
}

/*  sports and stocks tab tabs css */

.sports-tabs,
.stock-tabs {
    display: flex;
    background: var(--red);
}

.sports-tabs div,
.stock-tabs span {
    flex: 1;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

.sports-tabs .active,
.stock-tabs .active {
    background: var(--dark);
}

.sports-content,
.stock-content {
    display: none;
}

.sports-content.active,
.stock-content.active {
    display: block;
}


/* stocks tab css*/
.stock-tabs {
    display: flex;
    background: var(--white);
}

.stock-tabs span {
    flex: 1;
    text-align: center;
    color: var(--text-dark);
    cursor: pointer;
}

.stock-tabs span.active {
    background: var(--red);
}


/* cat-silter-wrap slider CSS  */
.cat-filter-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-filter-list {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    white-space: nowrap;
    flex: 1;
}

/* Responsive Hero Grid */
@media (max-width: 991px) {
    .hero-v3-grid {
        grid-template-columns: 1fr;
    }

    .main-story-card {
        height: 400px;
    }

    .side-widgets-column {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .main-story-card {
        height: 300px;
    }

    .main-story-overlay h2 {
        font-size: 22px;
    }
}

/* Responsive News Row */
@media (max-width: 991px) {
    .news-row-v3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news-row-v3 {
        grid-template-columns: 1fr;
    }
}

/* Responsive Video Grid */
@media (max-width: 991px) {
    .video-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth transition for dark mode toggle */
body,
#wrapper,
.header-nav,
.card-v3,
.card-v3-body,
.card-box,
.section-card,
.visual-stories-container,
.mobile-nav-drawer,
.follow-bar,
.sidebar-widget,
.live-feed-sidebar,
.container {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/*---------- Updated Fix  ------------  */
@media (max-width: 767px){
    .footer-main-row{
        align-items: center;
    }
    .social-circles {
        justify-content: center;
    }
    .bottom-nav-links{
        justify-content: center;
    }
    .footer-static-nav{
        justify-content:center;
    }
    .app-badges {
        justify-content: center;
        align-items: center;
    }
    .footer-copyright-bar{
        text-align: center;
    }
}

/* ====== DARK MODE - ALL PAGES COVERAGE ====== */

/* --- style.css global overrides --- */
body.dark-mode,
body.dark-mode html {
    background-color: var(--body-bg) !important;
    color: var(--text-color) !important;
}

body.dark-mode .bg-body {
    background-color: var(--body-bg) !important;
}

body.dark-mode .bg-white {
    background-color: var(--card-bg) !important;
}

body.dark-mode .bg-accent {
    background-color: #1a1a1a !important;
}

/* Headings from style.css */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h1 a,
body.dark-mode h2 a,
body.dark-mode h3 a,
body.dark-mode h4 a,
body.dark-mode h5 a {
    color: var(--text-color) !important;
}

/* Title variants from style.css */
body.dark-mode [class*="title-medium-dark"] a,
body.dark-mode [class*="title-bold-dark"] a,
body.dark-mode [class*="title-semibold-dark"] a,
body.dark-mode [class*="title-regular-dark"] a,
body.dark-mode [class*="title-light-dark"] a {
    color: var(--text-color) !important;
}

/* Text variants */
body.dark-mode .color-dark,
body.dark-mode p.text-light-dark,
body.dark-mode p.text-regular-dark,
body.dark-mode p.text-medium-dark,
body.dark-mode p.text-bold-dark {
    color: var(--text-color) !important;
}

/* General paragraph text */
body.dark-mode p {
    color: #bbb !important;
}

/* Breadcrumbs */
body.dark-mode .breadcrumbs-area2 {
    background-color: #1a1a1a !important;
}

body.dark-mode .breadcrumbs-area2 .breadcrumbs-content h1 {
    color: var(--text-color) !important;
}

/* All heading variants */
body.dark-mode .all-heading,
body.dark-mode .heading-bordered {
    color: var(--text-color) !important;
}

/* Dropdown menu */
body.dark-mode .ne-dropdown-menu,
body.dark-mode .header-drop-down-list {
    background-color: #1a1a1a !important;
}

body.dark-mode .header-drop-down-a {
    color: var(--text-color) !important;
}

body.dark-mode .ne-dropdown-menu li a {
    color: var(--text-color) !important;
}

body.dark-mode .ne-dropdown-menu li a:hover {
    background-color: #2a2a2a !important;
}

/* Item boxes */
body.dark-mode [class*="item-box-light"] {
    background-color: var(--card-bg) !important;
}

/* Pagination (shared across News-Category, Search, Photo, Video, Visual-Stories) */
body.dark-mode .pagination li a,
body.dark-mode .pagination li span,
body.dark-mode .pagination li input[type=submit] {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: #444 !important;
}

body.dark-mode .pagination li a:hover,
body.dark-mode .pagination li input[type=submit]:hover {
    background: #b20002 !important;
    color: #fff !important;
    border-color: #b20002 !important;
}

body.dark-mode .pagination li.active a {
    background: #b20002 !important;
    color: #fff !important;
}

body.dark-mode .pagination-btn-wrapper ul li a {
    background-color: #2a2a2a !important;
    color: var(--text-color) !important;
}

/* Media items (RightControl sidebar) */
body.dark-mode .media {
    border-color: #333 !important;
}

body.dark-mode .media-body {
    color: var(--text-color) !important;
}

body.dark-mode .sub-heading,
body.dark-mode .rd-more {
    color: var(--text-color) !important;
}

/* Story listing (shared: Photo, Video, Photo-Details, Video-Details, Visual-Stories, RightControl) */
body.dark-mode .story-listing li {
    border-bottom-color: #333 !important;
    background-color: var(--card-bg) !important;
}

body.dark-mode .story-listing li:nth-child(odd) {
    background-color: #2a2a2a !important;
}

body.dark-mode .story-listing li a,
body.dark-mode .story-listing li h3 {
    color: var(--text-color) !important;
}

/* Form controls */
body.dark-mode .form-control {
    background-color: #2a2a2a !important;
    color: var(--text-color) !important;
    border-color: #444 !important;
}

body.dark-mode .form-control::placeholder {
    color: #888 !important;
}

/* --- News-Details Page --- */
body.dark-mode .author-bar {
    color: #aaa !important;
}

body.dark-mode .reported-name {
    color: var(--text-color) !important;
}

body.dark-mode .author-img {
    border-color: #444 !important;
}

body.dark-mode .news_post {
    color: var(--text-color) !important;
}

body.dark-mode .news_post p,
body.dark-mode .news_post span,
body.dark-mode .news_post div,
body.dark-mode .news_post li,
body.dark-mode .news_post strong,
body.dark-mode .news_post b,
body.dark-mode .news_post em,
body.dark-mode .news_post h1,
body.dark-mode .news_post h2,
body.dark-mode .news_post h3,
body.dark-mode .news_post h4,
body.dark-mode .news_post h5,
body.dark-mode .news_post h6,
body.dark-mode .news_post a {
    color: #ccc !important;
}

body.dark-mode .news_post a {
    color: #6db3f2 !important;
}

body.dark-mode .post_share h5 {
    color: var(--text-color) !important;
}

body.dark-mode .post_date {
    color: var(--text-color) !important;
}

body.dark-mode .comment-section {
    background: var(--card-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .comment-section h3 {
    color: var(--text-color) !important;
}

body.dark-mode .also-read-strip {
    background: #1a1a1a !important;
    border-color: #333 !important;
}

body.dark-mode .also-read-content {
    color: var(--text-color) !important;
}

body.dark-mode .also-read-title {
    color: var(--text-color) !important;
}

body.dark-mode .tg_ap {
    border-color: #555 !important;
    color: var(--text-color) !important;
}

body.dark-mode .ap_main_heading_40 {
    color: var(--text-color) !important;
}

/* --- News-Category Page & Search Page (news-list) --- */
body.dark-mode .news-list-container {
    background: var(--body-bg) !important;
}

body.dark-mode .news-list-card {
    border-bottom-color: #333 !important;
}

body.dark-mode .news-list-title {
    color: var(--text-color) !important;
}

body.dark-mode .news-list-date {
    color: #999 !important;
}

body.dark-mode .news-list-desc {
    color: #aaa !important;
}

/* --- Search Page --- */
body.dark-mode .search-header-box {
    background: var(--card-bg) !important;
}

body.dark-mode .search-bar-wrapper input {
    background: #2a2a2a !important;
    color: var(--text-color) !important;
}

body.dark-mode .search-result-info {
    color: var(--text-color) !important;
}

/* --- Photo, Video, Visual-Stories Pages (shared card styles) --- */
body.dark-mode .category-filter {
    border-bottom-color: #333 !important;
}

body.dark-mode .filter-btn {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: #444 !important;
}

body.dark-mode .filter-btn:hover {
    border-color: #b20002 !important;
    color: #b20002 !important;
}

body.dark-mode .filter-btn.active {
    background: #b20002 !important;
    color: #fff !important;
    border-color: #b20002 !important;
}

body.dark-mode .photo-card,
body.dark-mode .video-card,
body.dark-mode .story-card {
    background: var(--card-bg) !important;
    border-color: #333 !important;
}

body.dark-mode .img-container {
    background: #2a2a2a !important;
}

body.dark-mode .card-body {
    background: var(--card-bg) !important;
}

body.dark-mode .card-title {
    color: var(--text-color) !important;
}

body.dark-mode .card-title:hover {
    color: #b20002 !important;
}

/* --- Photo-Details Page --- */
body.dark-mode .photo-description {
    color: #bbb !important;
}

body.dark-mode .photo-soc-1 {
    background: var(--card-bg) !important;
}

/* --- Video-Details Page --- */
body.dark-mode .video-detail-container {
    background: var(--card-bg) !important;
}

body.dark-mode .video-title {
    color: var(--text-color) !important;
}

body.dark-mode .video-meta {
    color: #999 !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .video-description {
    color: #bbb !important;
}

/* --- Author Page --- */
body.dark-mode .author-banner {
    background: var(--card-bg) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

body.dark-mode .author-left {
    border-right-color: #333 !important;
}

body.dark-mode .author-name {
    color: var(--text-color) !important;
}

body.dark-mode .author-designation {
    color: #aaa !important;
}

body.dark-mode .author-email {
    color: #999 !important;
}

body.dark-mode .author-desc {
    color: #bbb !important;
}

/* --- Visual-Stories-Details Page --- */
body.dark-mode .vs-details-body {
    background-color: #0d0d0d !important;
}

/* --- StaticPage --- */
body.dark-mode .static-page-content {
    color: var(--text-color) !important;
}

body.dark-mode .static-page-content p {
    color: #ccc !important;
}

/* --- style.css global elements --- */

/* Section space backgrounds */
body.dark-mode .section-space-default {
    background-color: var(--body-bg) !important;
}

/* ne-isotope containers */
body.dark-mode .ne-isotope {
    color: var(--text-color) !important;
}

/* Shadow box overrides */
body.dark-mode .shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Login form */
body.dark-mode .login-form {
    background: var(--card-bg) !important;
    border-color: #444 !important;
}

body.dark-mode .login-form input {
    color: var(--text-color) !important;
    border-color: #444 !important;
    background-color: #2a2a2a !important;
}

body.dark-mode .login-form label {
    color: var(--text-color) !important;
}

/* Newsletter */
body.dark-mode .newsletter-area .stylish-input-group input {
    background-color: #2a2a2a !important;
    color: var(--text-color) !important;
}

/* Leave comments */
body.dark-mode .leave-comments .form-group .form-control {
    color: var(--text-color) !important;
    background-color: #2a2a2a !important;
}

/* Contact form */
body.dark-mode .contact-form .form-group .form-control {
    color: var(--text-color) !important;
    background-color: #2a2a2a !important;
}

/* Blog tags */
body.dark-mode ul.blog-tags li a {
    color: var(--text-color) !important;
    border-color: #444 !important;
}

/* Address info */
body.dark-mode ul.address-info li {
    color: var(--text-color) !important;
}

/* Stay connected social */
body.dark-mode .stay-connected li p,
body.dark-mode .stay-connected-color li p {
    color: var(--text-color) !important;
}

body.dark-mode .stay-connected-color li {
    background-color: var(--card-bg) !important;
}

/* Select2 dropdowns */
body.dark-mode .select2-container--classic .select2-selection--single {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: var(--text-color) !important;
}

/* Search overlay full screen */
body.dark-mode .search-overlay {
    background: rgba(18, 18, 18, 0.97) !important;
}

/* Mean menu (mobile) */
body.dark-mode .mean-container .mean-bar .mean-nav ul li a {
    color: var(--text-color) !important;
}

body.dark-mode .mean-container .mean-bar .mean-nav ul li li a {
    color: var(--text-color) !important;
    border-top-color: #333 !important;
}

/* Post date styles */
body.dark-mode .post-date-dark ul li,
body.dark-mode .post-date-dark ul li a {
    color: var(--text-color) !important;
}

/* CKEditor content in news posts */
body.dark-mode .news_post table {
    color: var(--text-color) !important;
}

body.dark-mode .news_post table td,
body.dark-mode .news_post table th {
    border-color: #444 !important;
}

/* Feeding text / ticker */
body.dark-mode .feeding-text-dark2 .ticker,
body.dark-mode .feeding-text-dark2 .ticker-swipe {
    background-color: var(--card-bg) !important;
}

/* ap_ classes (shared across pages) */
body.dark-mode .ap_first_heading,
body.dark-mode .ap_first_heading a,
body.dark-mode .ap-sm-heading,
body.dark-mode .ap-sm-heading a {
    color: var(--text-color) !important;
}

/* Border utilities */
body.dark-mode .border-left-md {
    border-left-color: #444 !important;
}

/* Ensure text-muted is visible */
body.dark-mode .text-muted {
    color: #999 !important;
}