/* Base Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #9b1822;
    /* Deep Red from image */
    --primary-gradient: linear-gradient(135deg, #a11f2c 0%, #b82b3a 100%);
    --secondary-color: #28354c;
    /* Navy blue from image */
    --text-main: #333333;
    --text-muted: #777777;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #eaeaea;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1280px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Sections */
.main-header {
    background: transparent;
    position: relative;
    z-index: 1001;
}

/* Top Breaking News Bar */
.top-breaking-bar {
    background: var(--secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
}

.breaking-inner {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.breaking-label {
    background: #bd2130;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.breaking-ticker {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.breaking-ticker marquee {
    display: block;
    width: 100%;
}

.ticker-item {
    color: #e2e8f0;
}

.ticker-item:hover {
    color: #fff;
}

.ticker-separator {
    margin: 0 15px;
    color: #64748b;
    font-size: 10px;
}

.breaking-controls {
    padding: 0 15px;
    cursor: pointer;
    color: #94a3b8;
    background: transparent;
    border: 0;
    font: inherit;
}

/* Main Navigation */
.main-nav {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.desktop-brand {
    display: none;
}

/* Category Navigation Bar & Slider */
.nav-categories-bar {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    gap: 4px;
}

.nav-scroll-container {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.nav-scroll-container::-webkit-scrollbar {
    display: none;
}

.nav-scroll-container.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.nav-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.nav-scroll-btn:hover {
    background: #ffffff;
    color: var(--primary-color, #c81e1e);
    border-color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.nav-scroll-btn:active {
    transform: scale(0.92);
}

.nav-scroll-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.nav-menu li {
    flex-shrink: 0;
}

/* More Categories Dropdown */
.nav-more-dropdown {
    position: relative;
    flex-shrink: 0;
    margin-left: 6px;
}

.nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-more-btn:hover,
.nav-more-dropdown.is-open .nav-more-btn {
    background: #ffffff;
    color: var(--primary-color, #c81e1e);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    border-color: #ffffff;
}

.nav-more-icon {
    font-size: 11px;
    transition: transform 0.22s ease;
}

.nav-more-dropdown.is-open .nav-more-icon {
    transform: rotate(180deg);
}

.nav-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 480px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
}

.nav-more-dropdown.is-open .nav-more-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-more-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-more-header i {
    color: var(--primary-color, #c81e1e);
}

.nav-more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.nav-more-grid::-webkit-scrollbar {
    width: 5px;
}

.nav-more-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.nav-more-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #fbfbfb;
    border: 1px solid #ececec;
    transition: all 0.18s ease;
}

.nav-more-item .bullet-icon {
    font-size: 10px;
    color: var(--primary-color, #c81e1e);
    opacity: 0.6;
    transition: transform 0.18s ease;
}

.nav-more-item:hover {
    background: #fff4f4;
    border-color: #ffd8d8;
    color: var(--primary-color, #c81e1e);
    transform: translateX(3px);
}

.nav-more-item:hover .bullet-icon {
    opacity: 1;
    transform: translateX(2px);
}

.nav-brand {
    position: sticky;
    left: 0;
    z-index: 2;
    flex: 0 0 auto;
    background: var(--primary-color);
    padding-right: 30px;
    font-size: 20px;
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-brand {
    display: inline-flex;
    justify-self: center;
    padding: 7px 0;
}

.brand-logo-mark {
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.brand-wordmark strong {
    font-weight: 800;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
}

.header-search {
    display: flex;
    align-items: center;
    flex: 0 0 190px;
    width: 190px;
    height: 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 15, 15, 0.12);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search:focus-within {
    border-color: #f3c5c9;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 3px 10px rgba(30, 15, 15, 0.14);
}

.header-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 12px 0 15px;
    background: transparent;
    color: #263244;
    font: inherit;
    font-size: 13px;
}

.header-search input::placeholder {
    color: #7b8491;
    opacity: 1;
}

.header-search button {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right: 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover {
    background: var(--secondary-color);
    transform: scale(1.04);
}

.language-select {
    flex: 0 0 auto;
    min-width: 92px;
    max-width: 130px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.language-select:hover,
.language-select:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
}

.language-select option {
    background: #fff;
    color: #1a2333;
    font-size: 14px;
    padding: 6px 10px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.nav-actions>a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-account[href="dashboard.php"] {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 6px 12px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-close {
    display: none;
}

/* Main Content Area */
.main-content {
    margin-top: 30px;
    margin-bottom: 80px;
}

.site-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    max-width: min(360px, calc(100vw - 32px));
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: #24334b;
    color: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.24);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Grid Layouts */
.home-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
}

/* Article Page Styles */
.article-container {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin: 15px 0;
    font-family: var(--font-heading);
    color: #111;
    word-break: break-word;
}

.article-cat {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-navigation a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: min(48%, 320px);
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
}

.article-navigation a:last-child {
    margin-left: auto;
    text-align: right;
}

.article-navigation a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.article-navigation span {
    color: var(--text-muted);
    font-size: 12px;
}

.article-navigation strong {
    font-size: 14px;
    line-height: 1.4;
}

.article-featured-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-break: break-word;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

/* Hero News Rebuild */
.hero-news-new {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

.hero-img-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-bookmark {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #555;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.hero-bookmark.is-saved {
    color: var(--primary-color);
}

.hero-bookmark:disabled {
    cursor: wait;
    opacity: 0.7;
}

.hero-text-box {
    padding: 25px 30px;
}

.hero-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.cat-text {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-headline {
    font-size: 32px;
    color: #111;
    line-height: 1.3;
    font-weight: 400;
    font-family: var(--font-heading);
}

.hero-content .news-title {
    font-weight: 400;
}

/* Sidebar Latest News Rebuild */
.sidebar-latest-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.sidebar-latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.sidebar-latest-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.red-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.live-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.latest-list-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.latest-list-item:last-child {
    margin-bottom: 0;
}

.latest-time {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    width: 55px;
}

.latest-info {
    flex-grow: 1;
}

.latest-cat {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

.latest-info h4 {
    font-size: 15px;
    color: #222;
    line-height: 1.5;
    font-weight: 600;
}

.latest-info h4 a:hover {
    color: var(--primary-color);
}

.all-news-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
}

.all-news-link:hover {
    text-decoration: underline;
}

/* Older styles retained for fallback */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    position: relative;
    align-self: start;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.image-bookmark {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(34, 48, 68, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #46556c;
    box-shadow: 0 3px 12px rgba(20, 28, 40, 0.24);
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.image-bookmark:hover {
    transform: translateY(-1px) scale(1.05);
    color: var(--primary-color);
}

.image-bookmark.is-saved {
    color: var(--primary-color);
}

.image-bookmark:disabled {
    cursor: wait;
    opacity: 0.7;
}

.article-image-wrap {
    position: relative;
    margin-bottom: 25px;
}

.article-image-wrap .article-featured-img {
    display: block;
    width: 100%;
    max-width: none;
    height: 280px;
    object-fit: cover;
    object-position: center 25%;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}

.article-image-wrap .image-bookmark {
    top: 16px;
    right: 16px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-cat {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.news-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #111;
}

.news-description {
    margin: 8px 0 12px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.other-news-list {
    display: grid;
    gap: 10px;
    margin-bottom: 50px;
}

.other-news-item {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
}

.other-news-item h3 {
    margin-bottom: 6px;
    font-size: 16px;
}

.other-news-item h3 a {
    color: var(--secondary-color);
    text-decoration: none;
}

.other-news-item p {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.news-read-more {
    display: inline-block;
    margin: 0 0 12px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

.article-body .news-read-more {
    display: block;
    width: fit-content;
}

.article-subscribe-link {
    display: inline-block;
    margin-bottom: 12px;
    padding: 9px 16px;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.article-share {
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.article-share h4 {
    margin-bottom: 10px;
}

.article-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.article-share-links a,
.article-share-links button {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    border: 0;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.article-share-links a:hover,
.article-share-links button:hover { opacity: .88; transform: translateY(-1px); }
.article-share-links .share-facebook { background: #1877f2; }
.article-share-links .share-twitter { background: #000; }
.article-share-links .share-whatsapp { background: #25d366; }
.article-share-links .share-instagram { background: linear-gradient(45deg, #feda75, #fa7e1e 35%, #d62976 65%, #962fbf 85%, #4f5bd5); }
.article-share-links .share-native { background: #475569; }

.subscription-gate {
    padding-top: 48px;
    padding-bottom: 56px;
}

.subscription-gate-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.subscription-gate-label {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.subscription-gate-card > h1 {
    margin: 10px 0;
    font-size: 26px;
    line-height: 1.35;
}

.subscription-gate-description,
.subscription-gate-note {
    color: var(--text-muted);
    line-height: 1.65;
}

.subscription-gate-card > h2 {
    margin: 28px 0 14px;
    font-size: 20px;
}

.subscription-gate-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.subscription-gate-plan {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.subscription-gate-plan.is-featured {
    border-color: var(--primary-color);
}

.subscription-gate-plan h3 {
    margin-bottom: 8px;
}

.subscription-gate-plan p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.subscription-gate-plan p strong {
    color: var(--secondary-color);
    font-size: 28px;
}

.subscription-gate-plan a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.subscription-gate-note {
    margin-top: 18px;
    font-size: 13px;
}

.home-subscription-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.home-subscription-modal.is-open {
    display: flex;
}

.home-subscription-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 32, .68);
}

.home-subscription-card {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    padding: 30px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
    animation: subscription-card-in .18s ease-out;
}

@keyframes subscription-card-in {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.home-subscription-card h2 {
    margin: 8px 36px 6px 0;
    font-size: 24px;
}

.home-subscription-prompt,
.home-subscription-note {
    color: var(--text-muted);
    line-height: 1.5;
}

.home-subscription-card .subscription-gate-plans {
    margin-top: 20px;
}

.home-subscription-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f5;
    color: var(--secondary-color);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.home-subscription-note {
    margin-top: 16px;
    font-size: 13px;
}

body.subscription-modal-open {
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Footer */
.main-footer {
    background: var(--secondary-color);
    color: #ccc;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-widget h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 800;
}

.footer-brand-logo {
    gap: 10px;
}

.footer-brand-logo .brand-logo-mark {
    width: 44px;
    height: 44px;
}

.footer-brand-logo .brand-wordmark {
    font-size: 25px;
}

.footer-widget h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 600;
}

.about-widget .tagline {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-widget .desc {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.links-widget ul li {
    margin-bottom: 16px;
}

.links-widget ul li a {
    color: #ccc;
    font-size: 14px;
    transition: var(--transition);
}

.links-widget ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    background: #1a2333;
    padding: 25px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Advertisement slots */
.advertisement-widget {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.advertisement-box {
    position: relative;
    display: flex;
    min-height: 250px;
    width: 100%;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, #fff 0%, #f0f3f8 100%);
    color: var(--secondary-color);
    text-align: center;
    text-decoration: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.advertisement-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
    border-color: #cbd5e1;
    color: var(--secondary-color);
}

.advertisement-box img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.advertisement-fallback strong {
    max-width: 240px;
    font-size: 20px;
    line-height: 1.35;
    color: #1e293b;
    font-weight: 700;
}

.advertisement-fallback>a,
.advertisement-fallback .ad-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.advertisement-box:hover .ad-contact-btn {
    transform: translateX(4px);
    color: #8b0000;
}

.advertisement-label {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    padding: 3px 7px;
    border-radius: 3px;
    background: rgba(40, 53, 76, 0.8);
    color: #fff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.advertisement-box:not(.advertisement-fallback) .advertisement-label {
    background: rgba(40, 53, 76, 0.72);
}

.advertisement-tall {
    min-height: 600px;
}

.saved-articles {
    margin-top: 42px;
}

.saved-news-card {
    position: relative;
}

.saved-remove-button {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: #fff;
    color: var(--primary-color);
    cursor: pointer;
}

.saved-news-card .saved-remove-button {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 4;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(34, 48, 68, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 12px rgba(20, 28, 40, 0.24);
    font-size: 0;
}

.saved-news-card .saved-remove-button i {
    font-size: 16px;
}

.saved-news-empty {
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
}

.dashboard-page {
    max-width: 1120px;
}

.dashboard-page > .section-title {
    display: block;
    width: fit-content;
    margin: 12px 0 26px;
    padding: 0 0 10px;
    border-bottom: 3px solid var(--primary-color);
    color: #1d2b42;
    font-size: 30px;
}

.dashboard-page .sub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.dashboard-page .sub-grid > div {
    position: relative;
    overflow: hidden;
    padding: 28px !important;
    border: 1px solid #e7ebf1 !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #fff 0%, #fbfcff 100%) !important;
    box-shadow: 0 12px 34px rgba(28, 42, 64, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-page .sub-grid > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(28, 42, 64, 0.12) !important;
}

.dashboard-page .sub-grid h3 {
    margin: 0 0 18px !important;
    padding: 0 0 16px !important;
    border-bottom: 1px solid #edf0f4 !important;
    color: #1d2b42 !important;
    font-size: 21px !important;
}

.dashboard-page .sub-grid p {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    margin: 0 !important;
    border-bottom: 1px solid #f0f2f5;
    color: #263449;
}

.dashboard-page .sub-grid p:last-of-type {
    border-bottom: 0;
}

.dashboard-page .sub-grid p strong {
    flex: 0 0 120px;
    color: #748095 !important;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.dashboard-page .sub-grid p span[style*="color: #2ecc71"] {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 20px;
    background: #e9f8ef;
    color: #16834a !important;
    font-size: 12px;
}

.dashboard-page .sub-grid a[href="logout.php"] {
    padding: 10px 16px !important;
    border-radius: 9px !important;
    background: #f0f3f8 !important;
    color: #45546a !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-page .sub-grid a[href="logout.php"]:hover {
    background: #e4e9f1 !important;
    color: #202d42 !important;
}

.dashboard-page .sub-grid div[style*="text-align: center"] {
    min-height: 205px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dashboard-page .saved-articles {
    margin-top: 42px;
}

.dashboard-page .saved-articles > .section-title {
    color: #1d2b42;
}

/* ============================================================
   Enhanced Homepage Layout & Gap-Free News Sections
   ============================================================ */
.home-top-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

.latest-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

/* Sidebar Trending Box */
.sidebar-trending-box {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    margin-top: 24px;
}

.sidebar-trending-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 14px 18px;
}

.sidebar-trending-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #fff;
}

.trending-list {
    display: flex;
    flex-direction: column;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    background: #f8fafc;
}

.trending-rank {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-item:nth-child(1) .trending-rank {
    background: #b71c1c;
    color: #fff;
}
.trending-item:nth-child(2) .trending-rank {
    background: #dc2626;
    color: #fff;
}
.trending-item:nth-child(3) .trending-rank {
    background: #ea580c;
    color: #fff;
}

.trending-item-content {
    flex: 1;
    min-width: 0;
}

.trending-item-content h4 {
    margin: 0 0 5px 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    transition: color 0.2s;
}

.trending-item:hover .trending-item-content h4 {
    color: #b71c1c;
}

.trending-meta {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Full Width Category Sections */
.home-categories-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-bottom: 60px;
}

.home-category-section {
    width: 100%;
}

.category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.category-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.category-accent-bar {
    width: 5px;
    height: 22px;
    background: #b71c1c;
    border-radius: 3px;
    display: inline-block;
}

.category-view-all-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #b71c1c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, color 0.2s;
}

.category-view-all-link:hover {
    transform: translateX(4px);
    color: #8b0000;
}

.fullwidth-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px;
}

/* Single Featured Card when only 1 article in a category */
.single-news-featured-card {
    position: relative;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.single-news-featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.single-featured-link {
    display: grid;
    grid-template-columns: 360px 1fr;
    text-decoration: none;
    color: inherit;
}

.single-featured-img {
    height: 230px;
    overflow: hidden;
    position: relative;
}

.single-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-news-featured-card:hover .single-featured-img img {
    transform: scale(1.04);
}

.single-featured-body {
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-featured-badge {
    background: #fee2e2;
    color: #b71c1c;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.single-featured-title {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.single-featured-desc {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.single-featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
}

.single-featured-meta .read-more-text {
    color: #b71c1c;
    font-weight: 700;
}

/* Full Width Other News List */
.other-news-full-wrapper {
    margin-bottom: 60px;
}

.other-news-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* ============================================================
   Scroll To Top Floating Button (Sticky Bottom Right)
   ============================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: #b71c1c;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 18px rgba(183, 28, 28, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, box-shadow 0.2s ease;
    z-index: 99999;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: #8e1414;
    color: #ffffff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(183, 28, 28, 0.65);
}

.scroll-to-top:active {
    transform: translateY(-1px) scale(0.98);
}

.scroll-to-top i {
    pointer-events: none;
    line-height: 1;
}

/* ============================================================
   Google Translate Overrides (Zero Layout Shift)
   ============================================================ */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}

#google_translate_element {
    display: none !important;
}

iframe.skiptranslate {
    display: none !important;
}

/* ============================================================
   Top Real-Time Views Badge
   ============================================================ */
.top-realtime-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.top-realtime-views-badge:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.9);
}

.top-realtime-views-badge i {
    font-size: 11px;
    color: #94a3b8;
}

.top-realtime-views-badge .realtime-views-num {
    color: #4ade80;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.top-realtime-views-badge .realtime-views-lbl {
    color: #e2e8f0;
    font-size: 11.5px;
}

.top-realtime-views-badge .live-status-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: live-pulse-glow 1.8s infinite;
}

@keyframes live-pulse-glow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}




