/* Import Nepali Fonts */
@font-face {
    font-family: 'Vesper Libre';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/vesperlibre/v21/bx6CNxyWnf-uxPdXDHUD_RdICUWM6qI.woff2) format('woff2');
    unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #003d7a;
    --dark-blue: #003d7a;
    --light-blue: #0e99b5;
    --accent-blue: #003d7a;
    --highlight-blue: #0a7d92;
    --text-dark: #003d7a;
    --text-light: #666666;
    --bg-light: #ecf0f1;
    --bg-dark: #003d7a;
    --danger-red: #e74c3c;
}

/* ========================================
   GLOBAL STYLES
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vesper Libre', 'Mukta', sans-serif;
    font-size: 18px;
    color: #003d7a;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Nepali Text Styling */
[lang="ne"],
.nepali-text,
body[lang="ne"] {
    font-family: 'Vesper Libre', 'Mukta', sans-serif;
    font-weight: 500;
}

/* ========================================
   TOP HEADER WITH LOGO
======================================== */

.top-header-main {
    background: white;
    padding: 4px 0 0;
    border-bottom: 1px solid #e5e5e5;
}

.header-date-left,
.header-date-right {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
}

.logo {
    text-align: center;
}

.logo img {
    height: 140px;
    max-width: 100%;
}

.top-nav-logo {
    display: none;
}

.sticky .top-nav-logo {
    display: block;
}

/* ========================================
   NAVIGATION BAR
======================================== */

.main-nav {
    background: white;
    padding: 0;
    margin-top: 4px;
    box-shadow: none;
    border-bottom: 1px solid #e5e5e5;
}

.main-nav .navbar-nav {
    flex-grow: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
}

.main-nav .navbar-nav .nav-item {
    margin-right: 8px;
}

.main-nav .navbar-nav .nav-item:last-child {
    margin-right: 0;
}

.main-nav .nav-link {
    color: var(--primary-blue) !important;
    padding: 12px 20px;
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s;
    position: relative;
    border-radius: 5px;
    white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: white !important;
    background: var(--dark-blue) !important;
}

/* Dropdown Arrow */
.main-nav .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
}

/* Dropdown Menu */
.main-nav .dropdown-menu {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding: 5px 0;
}

.main-nav .dropdown-item {
    color: var(--primary-blue);
    padding: 10px 20px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 18px;
}

.main-nav .dropdown-item:hover {
    background: #f5f5f5;
    color: var(--dark-blue);
}

/* Nested dropdown: subcategory with sub-subcategories */
.main-nav .dropdown-submenu {
    position: relative;
}
.main-nav .dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    display: none;
}
.main-nav .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.main-nav .dropdown-submenu > .dropdown-item.dropdown-toggle::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    margin-left: 5px;
}

/* ========================================
   SEARCH BAR IN NAVBAR
======================================== */

.search-bar {
    position: relative;
    display: inline-block;
}

.search-bar input {
    border: 1px solid #ddd;
    padding: 6px 35px 6px 12px;
    border-radius: 3px;
    width: 150px;
    transition: all 0.3s;
    background: white;
    font-size: 13px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
    width: 250px;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--primary-blue);
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.search-bar button:hover {
    color: var(--dark-blue);
}

/* ========================================
   USER ICON & BUTTONS
======================================== */

.user-icon a {
    color: var(--primary-blue);
    font-size: 28px;
    transition: color 0.3s;
}

.user-icon a:hover {
    color: var(--dark-blue);
}

.btn-login,
.btn-signup {
    padding: 8px 20px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-login {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-login:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white;
}

.btn-signup {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-signup:hover {
    background: var(--primary-blue);
    color: white;
}

/* ========================================
   NAVBAR TOGGLER & HAMBURGER
======================================== */

.hamburger-btn {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    margin-right: 15px;
    transition: color 0.3s;
}

.hamburger-btn:hover {
    color: var(--dark-blue);
}

/* ========================================
   SIDE NAV (OFF-CANVAS)
======================================== */

.side-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.side-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-nav {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100%;
    background: #e8eaec;
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.side-nav.active {
    left: 0;
}

.side-nav-header {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
}

.close-side-nav {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    color: #4b8ba0;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    gap: 6px;
}

.close-side-nav .close-text {
    font-size: 12px;
    letter-spacing: 1px;
}

.close-side-nav i {
    font-size: 22px;
}

.side-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
}

.side-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.side-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #d1d5da;
    margin-top: auto;
}

.side-nav-buttons .btn-login,
.side-nav-buttons .btn-signup {
    text-align: center;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.side-nav-buttons .btn-login {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.side-nav-buttons .btn-login:hover {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
}

.side-nav-buttons .btn-signup {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.side-nav-buttons .btn-signup:hover {
    background: var(--primary-blue);
    color: white;
}

.side-nav-menu li {
    border-bottom: 1px solid #d1d5da;
}

.side-nav-menu li.has-submenu {
    border-bottom: none;
}

.side-nav-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #003d7a;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.3s;
}

.side-nav-menu li a:hover {
    color: #0a7d92;
}

.side-nav-menu li a i {
    font-size: 14px;
    color: #0a7d92;
}

/* Mobile side nav: item row (link + toggle) */
.side-nav-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.side-nav-submenu .side-nav-item-row {
    padding: 6px 0;
    border-bottom: none;
}

.side-nav-item-row a {
    flex: 1;
    color: #003d7a;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.3s;
}

.side-nav-item-row a:hover {
    color: #0a7d92;
}

.side-nav-toggle {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #0a7d92;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.side-nav-menu li.has-submenu.open .side-nav-toggle {
    transform: rotate(180deg);
}

.side-nav-menu li.has-submenu.open .side-nav-toggle i {
    color: #003d7a;
}

/* Mobile side nav: submenu – compact, visible */
.side-nav-submenu {
    list-style: none;
    padding: 0 0 2px 12px;
    margin: 0;
    display: none;
    border-bottom: 1px solid #e5e5e5;
    background: rgba(0, 61, 122, 0.04);
}

.side-nav-menu li.has-submenu.open .side-nav-submenu {
    display: block;
}

.side-nav-submenu li {
    border-bottom: none;
    margin: 0;
    line-height: 1.3;
    display: block;
}

.side-nav-submenu li a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #003d7a !important;
    text-decoration: none;
    transition: color 0.3s;
    visibility: visible;
    opacity: 1;
}

.side-nav-submenu li a:hover {
    color: #0a7d92 !important;
}

/* First-level subcategory row (link + chevron) – ensure text is visible */
.side-nav-submenu > li > .side-nav-item-row,
.side-nav-submenu > li > a {
    color: #003d7a !important;
    min-height: 36px;
    align-items: center;
}

/* Nested submenu (sub-subcategory): tighter spacing */
.side-nav-submenu .side-nav-submenu {
    padding-left: 10px;
    padding-bottom: 2px;
    margin-top: 0;
}

.side-nav-submenu .side-nav-submenu li a {
    font-size: 14px;
    padding: 4px 0;
}

/* ========================================
   NAVBAR LAYOUT ADJUSTMENTS
======================================== */

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left-group {
    display: flex;
    align-items: center;
}

.nav-right-group {
    display: flex;
    align-items: center;
}

/* Hide original toggler as we use hamburger now */
.navbar-toggler {
    display: none !important;
}

/* Mobile Logo */
.mobile-logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.mobile-logo img {
    height: 100%;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.login-signup-buttons {
    flex-wrap: nowrap;
}

/* ========================================
   LANGUAGE SWITCHER
======================================== */

.lang-switcher .lang-btn {
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.lang-switcher .lang-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

/* ========================================
   TRENDING ICON
======================================== */

.trending-icon a {
    color: var(--primary-blue);
    font-size: 24px;
    transition: all 0.3s;
    display: inline-block;
}

.trending-icon a:hover {
    color: var(--dark-blue);
    transform: scale(1.1);
}

/* ========================================
   BREAKING NEWS
======================================== */

/* ========================================
   SPLIT TICKER (BREAKING NEWS & NEPSE)
======================================== */

.ticker-wrapper {
    background: #f8f9fa;
    /* Very light background for the whole ticker */
    border-bottom: 2px solid #e0e0e0;
    overflow: hidden;
    height: 45px;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
}

.breaking-ticker,
.nepse-ticker {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.breaking-ticker {
    border-right: 2px solid #ddd;
    background: #fff;
}

.nepse-ticker {
    background: #fff;
    /* White background for stock ticker part */
}

.breaking-ticker .ticker-label {
    background: #fff;
    color: var(--danger-red);
}

.ticker-label {
    background: var(--primary-blue);
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 10;
    position: relative;
    font-weight: 800;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow to separate label */
}

.nepse-label {
    background: var(--primary-blue);
    /* Match the breaking news blue */
    color: #fff;
    padding: 0 20px;
}

.nepse-status-dot {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    box-shadow: 0 0 5px #2ecc71;
}

.ticker-content {
    flex: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding-left: 10px;
    overflow: hidden;
}

.ticker-scroll {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroller 30s linear infinite;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroller {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.ticker-item {
    display: inline-block;
    margin-right: 40px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.ticker-item:hover {
    color: var(--primary-blue);
}

.stock-item {
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
    font-family: 'Mukta', sans-serif;
}

.stock-symbol {
    font-weight: 800;
    margin-right: 8px;
}

.stock-price {
    margin-right: 8px;
}

.stock-change {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.stock-up {
    background: #e8f6ef;
    color: #1a8a4e;
}

.stock-down {
    background: #fbebee;
    color: #d63031;
}

/* Base styles for old breaking news (keep for compatibility if needed elsewhere) */
.breaking-news {
    background: var(--primary-blue);
    color: white;
    padding: 12px 0;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(10, 61, 98, 0.15);
}

/* ========================================
   BREADCRUMB
======================================== */

.breadcrumb {
    background: transparent;
    padding: 15px 0;
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

/* ========================================
   HOME: FEATURED / TRENDING SECTION
======================================== */

/* Left column: trending headlines list – tight spacing, proper alignment */
.featured-headlines-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.featured-headline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0 !important;
}
.featured-headline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.featured-headline-item .flex-shrink-0 {
    width: 140px !important;
    min-width: 140px;
}
.featured-headline-item .flex-shrink-0 img {
    height: 95px !important;
    object-fit: cover;
    border-radius: 8px;
}
.featured-headline-item .flex-grow-1 h5 {
    font-size: 1.15rem !important;
    font-weight: 700;
    margin: 0 !important;
    line-height: 1.35;
}

/* Center column: main featured image + title – standard block, minimal gap */
.featured-main-article {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.featured-main-article .featured-main-image-wrap {
    margin-bottom: 6px;
    line-height: 0;
}
.featured-main-article .featured-main-image-wrap img {
    width: 100%;
    object-fit: cover;
    max-height: 450px;
    vertical-align: top;
}
.featured-main-article .featured-main-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    text-align: center;
}
.featured-main-article .featured-main-title a {
    display: block;
}

/* Center: latest 2 featured – two blocks (image + title) stacked */
.featured-center-two .featured-main-article {
    margin-bottom: 1.25rem;
}
.featured-center-two .featured-main-article:last-child {
    margin-bottom: 0;
}
.featured-center-two .featured-main-article .featured-main-image-wrap img {
    max-height: 320px;
}
.featured-center-two .featured-main-article .featured-main-title {
    font-size: 1.5rem;
}

/* Right column: exchange rate widget – fit within sidebar, no overflow */
.exchange-rate-dialog {
    min-width: 0;
}
.exchange-rate-dialog .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.exchange-rate-dialog .table td,
.exchange-rate-dialog .table th {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    white-space: nowrap;
}

/* ========================================
   ARTICLE CARDS
======================================== */

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(10, 61, 98, 0.1);
    transition: all 0.4s;
    margin-bottom: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(10, 61, 98, 0.2);
    border-color: var(--primary-blue);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card .card-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card .category-badge {
    background: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 60px 0 30px;
    color: #fff;
}

.footer-logo img {
    max-height: 80px;
    margin-bottom: 25px;
}

.footer-about {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social-links a {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
}

.footer-social-label {
    font-size: 0.85rem;
    margin-left: 4px;
    opacity: 0.9;
}

@media (max-width: 576px) {
    .footer-social-label {
        font-size: 0.75rem;
    }
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-blue, #003d7a);
}

footer a {
    display: block;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

footer a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #333;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

.article-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.5;
    flex-grow: 1;
    font-weight: 700;
    color: var(--text-dark);
}

.article-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.article-card h3 a:hover {
    color: var(--primary-blue);
}

.article-meta {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 600;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-blue);
}

/* ========================================
   FEATURED ARTICLE
======================================== */

.featured-article {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid var(--primary-blue);
}

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-article:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 61, 98, 0.95));
    padding: 40px;
    color: white;
}

.featured-overlay h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
}

.featured-overlay h2 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-overlay h2 a:hover {
    color: var(--highlight-blue);
}

/* ========================================
   SIDEBAR
======================================== */

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(10, 61, 98, 0.1);
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.sidebar-widget h4 {
    color: var(--primary-blue);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-blue);
    position: relative;
}

.sidebar-article {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-article:last-child {
    border-bottom: none;
}

.sidebar-article img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
    border: 2px solid var(--primary-blue);
}

.sidebar-article h5 {
    font-size: 17px;
    margin: 0;
    font-weight: 700;
}

.sidebar-article h5 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-article h5 a:hover {
    color: var(--primary-blue);
}

/* ========================================
   ADVERTISEMENTS
======================================== */

.ad-container {
    background: #f9f9f9;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    margin: 10px 0;
}

.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* ========================================
   FOOTER
======================================== */

footer {
    background: var(--primary-blue);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -3px 15px rgba(10, 61, 98, 0.15);
}

footer h5 {
    color: white;
    margin-bottom: 25px;
    font-weight: 800;
    font-size: 24px;
    border-bottom: 3px solid white;
    padding-bottom: 10px;
    display: inline-block;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s;
    padding-left: 0;
    font-weight: 600;
    font-size: 19px;
}

footer a:hover {
    color: white;
    padding-left: 5px;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 18px;
}

/* ========================================
   SECTION TITLES
======================================== */

.section-title {
    color: var(--primary-blue);
    font-size: 36px;
    font-weight: 800;
    margin: 35px 0 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-blue);
    position: relative;
}

/* ========================================
   ARTICLE DETAIL PAGE
======================================== */

.article-detail .article-title {
    font-size: 42px;
    line-height: 1.4;
    color: var(--primary-blue);
    font-weight: 800;
}

.article-detail .featured-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(10, 61, 98, 0.15);
    border: 2px solid #e0e0e0;
}

.article-content {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 500;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3 {
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 800;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.article-tags .badge {
    background: var(--primary-blue);
    margin-left: 5px;
    font-weight: 600;
}

/* ========================================
   CATEGORY PAGE
======================================== */

.category-header {
    background: var(--primary-blue);
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(10, 61, 98, 0.2);
}

.category-header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
}

/* ========================================
   PAGINATION
======================================== */

.pagination .page-link {
    color: var(--primary-blue);
    font-weight: 600;
    border-color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 700;
}

.pagination .page-link:hover {
    background: var(--primary-blue);
    color: white;
}

footer {
    background: var(--primary-blue);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -5px 20px rgba(10, 61, 98, 0.2);
}

footer h5 {
    color: white;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 20px;
    border-bottom: 3px solid var(--highlight-blue);
    padding-bottom: 10px;
    display: inline-block;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: all 0.3s;
    padding-left: 0;
    font-size: 15px;
}

footer a:hover {
    color: var(--highlight-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   SECTION TITLES
======================================== */

.section-title {
    color: var(--primary-blue);
    font-size: 32px;
    font-weight: 700;
    margin: 35px 0 25px;
    padding-bottom: 12px;
    border-bottom: 4px solid var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--highlight-blue);
}

/* ========================================
   ARTICLE DETAIL PAGE
======================================== */

.article-detail .article-title {
    font-size: 36px;
    line-height: 1.3;
    color: var(--text-dark);
}

.article-detail .featured-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-content {
    font-size: 21px;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3 {
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-light);
}

.article-tags .badge {
    background: var(--primary-blue);
    margin-left: 5px;
}

/* ========================================
   CATEGORY PAGE
======================================== */

.category-header {
    background: var(--primary-blue);
    color: white;
    padding: 30px;
    border-radius: 10px;
}

.category-header h1 {
    margin: 0;
    font-size: 36px;
}

/* ========================================
   PAGINATION
======================================== */

.pagination .page-link {
    color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* ========================================
   BREADCRUMB
======================================== */

.breadcrumb {
    background: transparent;
    padding: 15px 0;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--accent-blue);
}

/* ========================================
   COMMENTS SECTION
======================================== */

.comment-form {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.comment {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {

    /* Mobile Navbar Layout */
    .main-nav {
        padding: 5px 0;
    }

    .main-nav .container {
        flex-wrap: nowrap;
        padding: 0 10px;
        gap: 8px;
        align-items: center;
        justify-content: space-between;
    }

    .nav-left-group {
        width: 100%;
        margin-bottom: 0;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        order: 1;
    }

    .nav-left-group>button {
        order: 1;
        margin: 0 !important;
        min-width: 40px;
        flex-shrink: 0;
    }

    .nav-left-group>.mobile-logo {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .mobile-logo .logo-with-text {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: inherit;
    }

    .mobile-logo .logo-text {
        font-weight: 900;
        font-size: 18px;
        background: linear-gradient(90deg, #001f3f 0%, #e63946 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        white-space: nowrap;
        letter-spacing: 1px;
        font-family: 'Arial', sans-serif;
    }

    .nav-left-group>.search-bar {
        display: none;
    }

    .nav-left-group>.collapse {
        display: none;
    }

    .nav-right-group {
        flex-wrap: nowrap;
        gap: 8px;
        margin-bottom: 0;
        order: 2;
        margin-top: 0;
    }

    .collapse.navbar-collapse {
        width: 100%;
        order: 3;
        margin-top: 12px;
    }

    .main-nav .navbar-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding-bottom: 8px;
    }

    .main-nav .nav-item {
        white-space: nowrap;
        flex-shrink: 0;
        border-bottom: 3px solid transparent;
        transition: border-color 0.3s;
    }

    .main-nav .nav-item:first-child {
        border-bottom-color: var(--primary-blue);
    }

    .main-nav .nav-link {
        padding: 8px 10px;
        margin: 0;
        font-size: 14px;
    }

    .search-bar {
        display: none;
    }

    .mobile-logo img {
        height: 35px;
    }

    .lang-switcher {
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .lang-switcher .lang-btn {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .trending-icon {
        display: inline-flex;
        margin-right: 8px;
    }

    .trending-icon a {
        font-size: 20px;
    }

    .user-icon {
        display: none;
    }

    .login-signup-buttons {
        display: none !important;
    }

    .featured-article {
        height: 350px;
    }

    .featured-overlay h2 {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .article-detail .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }
}

/* ========================================
   COMMENTS SECTION
======================================== */

.comment-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 2px solid var(--primary-blue);
}

.comment-form h5 {
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 20px;
}

.comment {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.comment strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* ========================================
   BUTTONS
======================================== */

.btn-primary {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 61, 98, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (min-width: 1200px) {
    .container {
        max-width: 92%;
    }
}

@media (max-width: 768px) {
    .featured-article {
        height: 350px;
    }

    .featured-overlay h2 {
        font-size: 24px;
    }

    .search-bar input {
        width: 100%;
    }

    .main-nav .nav-link {
        padding: 8px 12px !important;
    }

    .main-nav {
        padding: 5px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .article-detail .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }

    .logo img {
        height: 60px;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

.text-primary-blue {
    color: var(--primary-blue) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-extra-bold {
    font-weight: 800 !important;
}

/* ========================================
   SCROLL TO TOP BUTTON
======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(10, 61, 98, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(10, 61, 98, 0.4);
}

/* ========================================
   NOTIFICATION SYSTEM
======================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s;
    z-index: 10000;
    max-width: 350px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #27ae60;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-info {
    border-left: 4px solid var(--highlight-blue);
}

/* ========================================
   STICKY NAVIGATION
======================================== */

.main-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ========================================
   LOADING SPINNER
======================================== */

.spinner {
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   MOBILE MENU - LEFT SLIDE
======================================== */

/* Navbar backdrop/overlay */
.navbar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.navbar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu slide styles */
@media (max-width: 991px) {

    /* Mobile logo in navbar */
    .navbar-logo-mobile {
        display: none;
        margin-right: auto;
    }

    .navbar-logo-mobile img {
        height: 40px;
    }

    /* Show mobile logo when navbar is present */
    .main-nav .navbar-logo-mobile {
        display: block;
    }

    .navbar-collapse {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        background: white;
        padding: 20px 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse.show-mobile-menu {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
        padding: 0 15px;
    }

    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f0f0f0;
        color: #003d7a !important;
    }

    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        padding-left: 20px;
        border: none;
        box-shadow: none;
        background: #f8f9fa;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 10px 0 !important;
        color: #003d7a;
        font-size: 14px;
    }

    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background: transparent;
        color: #0a7d92;
    }

    /* Hide right side items on mobile collapse */
    .navbar-collapse .d-flex {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 20px 15px;
        border-top: 1px solid #f0f0f0;
        margin-top: 20px;
    }

    .navbar-collapse .d-flex .search-bar {
        margin: 0 0 10px 0 !important;
    }

    .navbar-collapse .d-flex .btn-login,
    .navbar-collapse .d-flex .btn-signup {
        display: inline-block;
        width: 100%;
    }

    /* Show navbar toggler */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23003d7a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Mobile header layout */
    .top-header-main {
        padding: 10px 0;
        display: none;
    }

    .header-date-left,
    .header-date-right {
        display: none;
    }

    .logo img {
        height: 50px;
    }
}

/* Make sticky header work on mobile scroll */
@media (max-width: 991px) {
    .navbar.sticky {
        position: sticky;
        top: 0;
        z-index: 1001;
    }

    .navbar.sticky .navbar-collapse {
        z-index: 1000;
    }
}

/* Desktop menu stays normal */
@media (min-width: 992px) {
    .navbar-collapse {
        transform: none !important;
    }

    .navbar-backdrop {
        display: none;
    }

    .navbar-toggler {
        display: none !important;
    }

    /* Hide logo on desktop navbar */
    .navbar-logo-mobile {
        display: none !important;
    }
}

/* ========================================
   RESPONSIVE OVERRIDES
   ======================================== */

.featured-img-container {
    min-height: 350px;
}

@media (max-width: 768px) {
    .featured-img-container {
        min-height: auto !important;
        height: auto !important;
    }

    .ticker-wrapper {
        min-height: auto;
        height: auto;
        padding: 2px 0;
    }

    .breaking-ticker {
        width: 100% !important;
        border-right: none;
    }

    .breaking-ticker .ticker-label {
        background: #fff !important;
        /* White background */
        color: #e74c3c !important;
        /* Red text as requested */
        box-shadow: none;
        padding: 0 10px;
    }

    .ticker-content {
        padding-left: 5px;
    }
}