/* ============================================================
   BAWABET SAIDA — site.css (v3 — alignment fixed)
   Mobile-first | RTL Arabic | ASP.NET MVC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* ── RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background: #f0f0f4;
    color: #0e0e14;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ── CSS VARIABLES ── */
:root {
    --red: #C8102E;
    --ink: #0e0e14;
    --ink2: #22222e;
    --gray-bg: #f0f0f4;
    --gray-lt: #e4e4ea;
    --white: #ffffff;
    --muted: #8a8a9a;
    --border: rgba(0,0,0,.07);
    --r: 8px;
    --r-lg: 12px;
    --maxw: 1200px; /* ONE source of truth for max-width */
    --gutter: 24px; /* ONE source of truth for side padding */
}

/* ============================================================
   INNER WRAP — THE KEY FIX
   Every full-width bar uses this to constrain its content
   to the same max-width as .page-wrapper
   ============================================================ */
.inner-wrap {
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    width: 100%;
}


/* ============================================================
   UTILITY BAR
   ============================================================ */
.util-bar {
    background: var(--ink2);
    height: 34px;
    display: flex;
    align-items: center;
}

    .util-bar .inner-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.util-bar__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.util-bar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .util-bar__right a {
        display: flex;
        align-items: center;
    }

    .util-bar__right i {
        font-size: 14px;
        color: #a0a0b8;
        cursor: pointer;
    }

        .util-bar__right i:hover {
            color: #ffffff;
        }

.live-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(200,16,46,.4);
    border-radius: 3px;
    padding: 2px 8px;
    background: rgba(200,16,46,.08);
}

.live-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

.live-badge__text {
    font-size: 9px;
    color: var(--red);
    font-weight: 700;
    letter-spacing: .6px;
}

.util-bar__date {
    font-size: 10px;
    color: #a0a0b8;
}


/* ============================================================
   LEADERBOARD AD BAR
   ============================================================ */
.ad-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    display: flex;
    align-items: center;
}

    .ad-bar .inner-wrap {
        display: flex;
        justify-content: center;
    }


/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 2.5px solid var(--red);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

    .site-header .inner-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.brand__icon {
    width: 40px;
    height: 40px;
    background: var(--red);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .brand__icon i {
        font-size: 20px;
        color: #fff;
    }

.brand__name {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -1px;
    line-height: 1.1;
}

.brand__sub {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px;
}

/* Header tools */
.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 7px 16px;
    cursor: pointer;
    min-width: 170px;
}

    .search-box i {
        font-size: 14px;
        color: var(--muted);
    }

    .search-box span {
        font-size: 12px;
        color: #bbb;
        flex: 1;
    }

.icon-btn {
    width: 38px;
    height: 38px;
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    background-color: var(--gray-bg);
}

    .icon-btn i {
        font-size: 17px;
        color: var(--ink2);
    }

.menu-toggle {
    display: none;
}


/* ============================================================
   MAIN NAVIGATION
   ============================================================ */
.main-nav {
    background: var(--ink2);
    display: flex;
    align-items: center;
    position: sticky;
    top: 64px;
    z-index: 99;
    overflow: visible;
    scrollbar-width: none;
}

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    /* inner-wrap inside nav — use flex so links sit in a row */
    .main-nav .inner-wrap {
        display: flex;
        align-items: center;
        padding-top: 0;
        padding-bottom: 0;
        min-width: max-content; /* prevent wrapping */
    }

    .main-nav a {
        font-size: 12.5px;
        font-weight: 500;
        color: #9090a8;
        padding: 11px 14px;
        white-space: nowrap;
        display: block;
        border-bottom: 2px solid transparent;
        transition: color .15s;
    }

        .main-nav a:hover {
            color: #ccc;
        }

        .main-nav a.active {
            color: #fff;
            border-bottom-color: var(--red);
        }

.nav-separator {
    width: 1px;
    height: 14px;
    background: #2e2e3e;
    flex-shrink: 0;
    margin: 0 2px;
}

/* Mobile nav drawer */
.nav-drawer {
    display: none;
    flex-direction: column;
    background: var(--ink2);
    padding: 8px 0;
}

    .nav-drawer a {
        font-size: 14px;
        font-weight: 500;
        color: #9090a8;
        padding: 13px var(--gutter);
        border-bottom: 1px solid rgba(255,255,255,.04);
    }

        .nav-drawer a.active {
            color: var(--red);
        }

    .nav-drawer.open {
        display: flex;
    }


/* ============================================================
   BREAKING TICKER
   ============================================================ */
.breaking-ticker {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 34px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

    .breaking-ticker .inner-wrap {
        display: flex;
        align-items: stretch;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
    }

.ticker__label {
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    letter-spacing: .3px;
}

.ticker__text {
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 12px;
    color: #444;
    gap: 16px;
    overflow: hidden;
    white-space: nowrap;
}

.ticker__dot {
    color: var(--red);
    font-size: 7px;
    flex-shrink: 0;
}


/* ============================================================
   AD SLOT COMPONENT
   ============================================================ */
.ad-slot {
    background: var(--white);
    border: 1.5px dashed #d0d0e0;
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

    .ad-slot::before {
        content: '';
        position: absolute;
        inset: 0;
        background: repeating-linear-gradient( 45deg, transparent, transparent 8px, rgba(0,0,0,.015) 8px, rgba(0,0,0,.015) 16px );
    }

    .ad-slot i {
        font-size: 20px;
        color: #d8d8e8;
        margin-bottom: 5px;
        position: relative;
    }

.ad-slot__badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
    position: relative;
}

.ad-slot__size {
    font-size: 11px;
    font-weight: 600;
    color: #c0c0d0;
    position: relative;
}

.ad-slot__note {
    font-size: 9px;
    color: #ccc;
    margin-top: 3px;
    position: relative;
}

.ad-slot--leaderboard .ad-slot__badge {
    background: #fff8e1;
    color: #b45309;
}

.ad-slot--sidebar .ad-slot__badge {
    background: #eff6ff;
    color: #1d4ed8;
}

.ad-slot--inline .ad-slot__badge {
    background: #f0fdf4;
    color: #15803d;
}

.ad-slot--native {
    background: #fffbeb;
    border-color: #fcd34d;
}

    .ad-slot--native .ad-slot__badge {
        background: #fef3c7;
        color: #92400e;
    }

/* Sizes */
.ad-leaderboard {
    width: 728px;
    max-width: 100%;
    height: 70px;
}

.ad-billboard {
    width: 100%;
    height: 90px;
    margin-bottom: 16px;
}

.ad-sidebar-top {
    width: 100%;
    height: 220px;
}

.ad-sidebar-mid {
    width: 100%;
    height: 180px;
}

.ad-inline {
    width: 100%;
    height: 80px;
}


/* ============================================================
   PAGE WRAPPER — uses same --maxw and --gutter
   ============================================================ */
.page-wrapper {
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
    padding: 16px var(--gutter) 40px;
}

/* Two-column layout */
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
    align-items: start;
}


/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-header__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

    .section-header__title::before {
        content: '';
        width: 4px;
        height: 16px;
        background: var(--red);
        border-radius: 2px;
        display: block;
    }

.section-header__link {
    font-size: 11px;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

    .section-header__link i {
        font-size: 11px;
    }


/* ============================================================
   HERO
   ============================================================ */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.hero-main {
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    min-height: 300px;
    background: #100820;
    display: block;
}

.hero-main__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-main__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,0,15,.96) 0%, rgba(5,0,15,.5) 45%, rgba(5,0,15,.1) 100%);
}

.hero-main__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: .4px;
}

.hero-main__body {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 22px 20px;
}

.hero-main__cat {
    font-size: 10px;
    color: rgba(255,255,255,.45);
    margin-bottom: 6px;
}

.hero-main__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.hero-main__meta {
    display: flex;
    gap: 14px;
}

    .hero-main__meta span {
        font-size: 10px;
        color: rgba(255,255,255,.4);
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .hero-main__meta i {
        font-size: 10px;
    }

.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-side-card {
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    flex: 1;
    min-height: 92px;
    display: block;
}

.hero-side-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-side-card__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, transparent 55%);
}

.hero-side-card__body {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 10px 13px;
}

.hero-side-card__cat {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 3px;
}

.hero-side-card__title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* ============================================================
   NEWS CARD GRID
   ============================================================ */
.news-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

    .news-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

.news-card__img {
    height: 110px;
    position: relative;
}

.news-card__img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.news-card__img-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 55%);
}

.news-card__cat {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: .3px;
}

.news-card__body {
    padding: 11px 12px 13px;
}

.news-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.55;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-card__meta {
    font-size: 10px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .news-card__meta i {
        font-size: 10px;
    }


/* ============================================================
   COMPACT NEWS LIST
   ============================================================ */
.news-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 16px;
}

.news-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .1s;
}

    .news-list-item:last-child {
        border-bottom: none;
    }

    .news-list-item:hover {
        background: #fafafa;
    }

.news-list-item--ad {
    background: #fffbeb;
    cursor: default;
}

    .news-list-item--ad:hover {
        background: #fffbeb;
    }

.news-list-item__num {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-lt);
    min-width: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.news-list-item__body {
    flex: 1;
    min-width: 0;
}

.news-list-item__top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.news-list-item__cat {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 3px;
    letter-spacing: .3px;
    white-space: nowrap;
}

.news-list-item__time {
    font-size: 10px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 2px;
}

    .news-list-item__time i {
        font-size: 10px;
    }

.news-list-item__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-list-item__thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-list-item__thumb-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}


/* ============================================================
   WIDE FEATURE
   ============================================================ */
.wide-feature {
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    height: 165px;
    margin-bottom: 16px;
    display: block;
}

.wide-feature__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.wide-feature__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(4,16,30,.95) 0%, rgba(4,16,30,.35) 100%);
}

.wide-feature__body {
    position: absolute;
    inset: 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wide-feature__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(200,16,46,.15);
    border: 1px solid rgba(200,16,46,.35);
    color: #ff6b7a;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
    letter-spacing: .3px;
}

.wide-feature__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
    max-width: 60%;
    margin-bottom: 9px;
}

.wide-feature__meta {
    display: flex;
    gap: 14px;
}

    .wide-feature__meta span {
        font-size: 10px;
        color: rgba(255,255,255,.4);
        display: flex;
        align-items: center;
        gap: 3px;
    }


/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.photo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.photo-card {
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    height: 100px;
    display: block;
}

.photo-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.photo-card__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 55%);
}

.photo-card__info {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 9px 11px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.photo-card__title {
    font-size: 11px;
    color: #fff;
    font-weight: 500;
    line-height: 1.35;
}

.photo-card__count {
    font-size: 9px;
    color: rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    gap: 2px;
}

    .photo-card__count i {
        font-size: 9px;
    }


/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.c-pol {
    background: #eef0ff;
    color: #3730a3;
}

.c-eco {
    background: #ecfdf5;
    color: #065f46;
}

.c-soc {
    background: #fdf2f8;
    color: #831843;
}

.c-cul {
    background: #fff7ed;
    color: #7c2d12;
}

.c-loc {
    background: #eff6ff;
    color: #1e40af;
}

.c-spt {
    background: #f0fdf4;
    color: #14532d;
}

.c-hlt {
    background: #fff1f2;
    color: #9f1239;
}


/* ============================================================
   SIDEBAR CARDS
   ============================================================ */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 12px;
}

.sidebar-card__head {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-card__head-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

    .sidebar-card__head-title::before {
        content: '';
        width: 3px;
        height: 14px;
        border-radius: 2px;
        display: block;
        background: var(--red);
    }

.sidebar-card__head a {
    font-size: 10px;
    color: var(--red);
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

    .trending-item:last-child {
        border-bottom: none;
    }

    .trending-item:hover {
        background: #fafafa;
    }

.trending-item__num {
    font-size: 19px;
    font-weight: 800;
    color: var(--gray-lt);
    min-width: 24px;
    line-height: 1.1;
    flex-shrink: 0;
}

.trending-item__cat {
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: .3px;
}

.trending-item__title {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.trending-item__views {
    font-size: 9px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 3px;
}

    .trending-item__views i {
        font-size: 9px;
    }

.opinion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

    .opinion-item:last-child {
        border-bottom: none;
    }

.opinion-item__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.opinion-item__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 2px;
}

.opinion-item__author {
    font-size: 10px;
    color: var(--muted);
}

.score-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
}

    .score-item:last-child {
        border-bottom: none;
    }

.score-item__team {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    flex: 1;
}

    .score-item__team.away {
        text-align: left;
    }

.score-item__val {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    min-width: 52px;
}

.weather-widget {
    padding: 14px;
}

.weather-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.weather-city {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.weather-day {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px;
}

.weather-temp {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.weather-feel {
    font-size: 10px;
    color: var(--muted);
    text-align: left;
}

.weather-desc {
    font-size: 11px;
    color: #555;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.weather-days {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.weather-day-item {
    text-align: center;
    padding: 5px 0;
}

    .weather-day-item span {
        display: block;
        font-size: 9px;
        color: var(--muted);
    }

    .weather-day-item i {
        font-size: 14px;
        color: #64a0e4;
        margin: 3px 0;
        display: block;
    }

    .weather-day-item strong {
        font-size: 12px;
        color: var(--ink);
        font-weight: 600;
    }

.tags-cloud {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-chip {
    font-size: 11px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: #555;
    cursor: pointer;
    background: var(--gray-bg);
    transition: border-color .15s, color .15s;
}

    .tag-chip:hover {
        border-color: var(--red);
        color: var(--red);
    }


/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 11px 16px;
    border-radius: var(--r);
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--ink2);
    margin-top: 8px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 20px;
}

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.footer-brand__icon {
    width: 34px;
    height: 34px;
    background: var(--red);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .footer-brand__icon i {
        font-size: 16px;
        color: #fff;
    }

.footer-brand__name {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

.footer-brand__sub {
    font-size: 11px;
    color: #b0b0c8;
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-social {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .footer-social i {
        font-size: 14px;
        color: #c0c0d8;
    }

    .footer-social:hover i {
        color: #ffffff;
    }

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-col h5 {
    font-size: 10px;
    font-weight: 700;
    color: #c8102e;
    letter-spacing: .4px;
    margin-bottom: 11px;
}

.footer-col a {
    display: block;
    font-size: 11px;
    color: #c0c0d4;
    margin-bottom: 7px;
    cursor: pointer;
    transition: color .15s;
}

    .footer-col a:hover {
        color: #ffffff;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 12px 0;
}

    .footer-bottom p {
        font-size: 10px;
        color: #a0a0b8;
    }

    .footer-bottom a {
        color: #c0c0d4;
    }

        .footer-bottom a:hover {
            color: #fff;
        }


/* ============================================================
   RESPONSIVE — TABLET (max 960px)
   ============================================================ */
@media (max-width: 960px) {
    :root {
        --gutter: 16px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-stack {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .hero-side-card {
        min-height: 120px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box span {
        display: none;
    }

    .search-box {
        min-width: auto;
        padding: 7px 10px;
        border-radius: 8px;
    }

    .main-nav {
        top: 64px;
    }

    .ad-leaderboard {
        width: 100%;
    }
}


/* ============================================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================================ */
@media (max-width: 640px) {
    :root {
        --gutter: 12px;
    }

    .util-bar {
        display: none;
    }

    .ad-bar {
        display: none;
    }
    /* hide leaderboard on mobile */

    .site-header {
        height: 54px;
        top: 0;
    }

    .main-nav {
        display: none;
        top: 54px;
    }

    .brand__name {
        font-size: 19px;
    }

    .brand__sub {
        display: none;
    }

    .brand__icon {
        width: 34px;
        height: 34px;
    }

    .search-box {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .page-wrapper {
        padding: 10px var(--gutter) 24px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-main {
        min-height: 230px;
    }

    .hero-main__title {
        font-size: 15px;
    }

    .hero-stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hero-side-card:last-child {
        grid-column: 1 / -1;
    }

    .news-card-grid {
        grid-template-columns: 1fr;
    }

    .news-card__img {
        height: 150px;
    }

    .news-list-item {
        gap: 10px;
        padding: 10px 12px;
    }

    .news-list-item__title {
        font-size: 12px;
    }

    .photo-row {
        grid-template-columns: 1fr 1fr;
    }

    .photo-card:last-child {
        grid-column: 1 / -1;
    }

    .wide-feature {
        height: 140px;
    }

    .wide-feature__title {
        font-size: 14px;
        max-width: 90%;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding-top: 20px;
        padding-bottom: 14px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom .inner-wrap {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .ad-sidebar-top {
        height: 160px;
    }

    .ad-billboard {
        height: 60px;
    }
}


/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    left: 28px; /* left = visually left in RTL = bottom-left corner */
    width: 44px;
    height: 44px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(200, 16, 46, .4);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease, background .15s;
    pointer-events: none;
}

    #scrollTopBtn i {
        font-size: 20px;
        line-height: 1;
    }

    #scrollTopBtn.visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    #scrollTopBtn:hover {
        background: var(--red-dark, #a00d24);
        box-shadow: 0 6px 18px rgba(200, 16, 46, .5);
    }

    #scrollTopBtn:active {
        transform: scale(.93);
    }

@media (max-width: 640px) {
    #scrollTopBtn {
        bottom: 18px;
        left: 16px;
        width: 40px;
        height: 40px;
    }

        #scrollTopBtn i {
            font-size: 18px;
        }
}


/* ============================================================
   SKELETON LOADER
   ============================================================ */
@keyframes skeleton-shimmer {
    0% {
        background-position: -680px 0;
    }

    100% {
        background-position: 680px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-lt) 25%, var(--gray-bg) 50%, var(--gray-lt) 75% );
    background-size: 1360px 100%;
    animation: skeleton-shimmer 1.4s infinite linear;
    border-radius: var(--r);
}

/* hide real content while loading */
.page-loading .skeleton-hide {
    visibility: hidden;
}

/* ── Skeleton shapes ── */
.sk-line {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.sk-line-sm {
    height: 11px;
    margin-bottom: 6px;
    border-radius: 3px;
}

.sk-title {
    height: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.sk-img {
    width: 100%;
    border-radius: var(--r);
}

.sk-circle {
    border-radius: 50%;
}

.sk-badge {
    height: 20px;
    width: 60px;
    border-radius: 10px;
}

/* ── Hero skeleton ── */
.sk-hero-main {
    width: 100%;
    min-height: 300px;
    border-radius: var(--r-lg);
}

.sk-hero-side {
    width: 100%;
    height: 92px;
    border-radius: var(--r);
}

/* ── News card skeleton ── */
.sk-card-img {
    width: 100%;
    height: 110px;
    border-radius: var(--r) var(--r) 0 0;
}

.sk-card-body {
    padding: 11px 12px 14px;
}

/* ── List item skeleton ── */
.sk-list-thumb {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 6px;
}

.sk-list-num {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 4px;
}

/* ── Trending skeleton ── */
.sk-trending-num {
    width: 22px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 4px;
}

/* dark mode — slightly different shimmer */
@media (prefers-color-scheme: dark) {
    .skeleton {
        background: linear-gradient(90deg, #2a2a3a 25%, #333345 50%, #2a2a3a 75%);
        background-size: 1360px 100%;
    }
}


/* ============================================================
   MOBILE RESPONSIVE FIXES — text + layout
   ============================================================ */

/* ── 480px and below — very small phones ── */
@media (max-width: 480px) {
    :root {
        --gutter: 10px;
    }

    /* Brand */
    .brand__name {
        font-size: 17px;
    }

    /* Hero */
    .hero-main {
        min-height: 200px;
    }

    .hero-main__title {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    .hero-main__cat {
        display: none;
    }

    .hero-main__body {
        padding: 14px 12px;
    }

    .hero-main__badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    /* Hero stack — 2 cols, last spans full */
    .hero-stack {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .hero-side-card {
        min-height: 80px;
    }

        .hero-side-card:last-child {
            grid-column: 1 / -1;
        }

    .hero-side-card__title {
        font-size: 11px;
    }

    /* News cards — single col */
    .news-card-grid {
        grid-template-columns: 1fr;
    }

    .news-card__img {
        height: 160px;
    }

    .news-card__title {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    /* News list */
    .news-list-item {
        padding: 10px var(--gutter);
        gap: 8px;
    }

    .news-list-item__num {
        font-size: 16px;
        min-width: 22px;
    }

    .news-list-item__title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .news-list-item__thumb {
        width: 52px;
        height: 40px;
    }

    /* Section headers */
    .section-header__title {
        font-size: 13px;
    }

    .section-header__link {
        font-size: 10px;
    }

    /* Sidebar */
    .trending-item__title {
        font-size: 12px;
    }

    .trending-item__num {
        font-size: 16px;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-brand__name {
        font-size: 17px;
    }

    /* Page wrapper */
    .page-wrapper {
        padding: 8px var(--gutter) 20px;
    }

    /* Ticker */
    .ticker__text {
        font-size: 11px;
        gap: 10px;
    }

    .ticker__label {
        font-size: 9px;
        padding: 0 10px;
    }

    /* Skeleton billboard */
    .ad-billboard {
        height: 50px;
    }
}

/* ── Fix: prevent horizontal scroll on all screens ── */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ── Fix: images never overflow their container ── */
img {
    max-width: 100%;
    height: auto;
}

/* ── Fix: news list item — prevent layout break on tiny screens ── */
.news-list-item__body {
    min-width: 0; /* allows flex child to shrink below content size */
    overflow: hidden;
}

/* ── Fix: news card body ── */
.news-card__body {
    overflow: hidden;
}

/* ── Fix: ticker text never forces page wider ── */
.breaking-ticker {
    overflow: hidden;
    max-width: 100%;
}

/* ── Fix: hero stack on tablet shows 3 equal columns ── */
@media (max-width: 960px) and (min-width: 641px) {
    .hero-stack {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .hero-side-card {
        min-height: 120px;
        flex: none;
    }
}

/* ── Fix: content-grid never overflows ── */
.content-grid {
    min-width: 0;
}

.main-column, .sidebar {
    min-width: 0;
    overflow: hidden;
}


/* ============================================================
   NAV MORE DROPDOWN
   ============================================================ */
.nav-more {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 500;
    color: #9090a8;
    padding: 11px 14px;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
}

    .nav-more:hover {
        color: #ccc;
    }

.nav-more__dropdown {
    display: none;
    position: fixed; /* fixed so it escapes any overflow:hidden parent */
    background: var(--ink2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 0 0 var(--r) var(--r);
    min-width: 180px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

    .nav-more__dropdown a {
        display: block;
        padding: 10px 16px;
        font-size: 13px;
        color: #9090a8;
        border-bottom: 1px solid rgba(255,255,255,.04);
        white-space: nowrap;
    }

        .nav-more__dropdown a:last-child {
            border-bottom: none;
        }

        .nav-more__dropdown a:hover {
            color: #fff;
            background: rgba(255,255,255,.05);
        }

        .nav-more__dropdown a.active {
            color: var(--red);
        }

.nav-more.open .nav-more__dropdown {
    display: block;
}

.nav-more.open {
    color: #fff;
}
