/*
Theme Name: SportsVarta
Theme URI: https://sportsvarta.com
Description: Custom theme for SportsVarta sports news portal
Author: SportsVarta Team
Version: 1.0.0
Text Domain: sportsvarta
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --color-red:    #DC2626;
    --color-link:   #0B57D0;
    --color-dark:   #111827;
    --color-white:  #FFFFFF;
    --color-gray-50:  #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-400: #9CA3AF;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --font-main:    'Noto Sans', 'Hind', Arial, sans-serif;
    --radius-sm:    4px;
    --radius-md:    6px;
    --transition:   0.2s ease;
    --container-width: 1400px;
    --gap:          16px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    background: var(--color-white);
}

img { max-width: 100%; height: auto; display: block; }

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

ul { list-style: none; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Homepage full-width page wrapper */
.sv-page-wrap {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-gap { margin-bottom: 20px; }
.hp-section  { margin-bottom: 15px; }

/* ============================================================
   SITE HEADER & NAV
   ============================================================ */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 40px;
}

.site-logo img { height: 40px; width: auto; }
.site-logo a { display: flex; align-items: center; }

.site-logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-red);
    letter-spacing: -0.5px;
}

/* Nav */
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 8px; }
.main-nav a {
    display: block;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-gray-700);
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--color-red);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
    color: var(--color-red);
}
.main-nav .current-menu-item > a::after,
.main-nav .current-menu-ancestor > a::after,
.main-nav a:hover::after {
    transform: scaleX(1);
}

/* Header actions: search + login (points #1, #11) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-search-form {
    display: flex;
    align-items: center;
    background: var(--color-gray-100, #f3f4f6);
    border: 1px solid var(--color-gray-200, #e5e7eb);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
/* Crisp 1px focus border — no soft glow (point #15) */
.header-search-form:focus-within {
    border: 1px solid var(--color-red);
    box-shadow: none;
}
.header-search-input {
    border: 0;
    outline: 0;
    background: transparent;
    padding: 7px 6px 7px 16px;
    font-size: 14px;
    width: 170px;
    color: var(--color-gray-700, #374151);
}
.header-search-input::placeholder { color: var(--color-gray-500, #9ca3af); }
.header-search-btn {
    border: 0;
    background: var(--color-red);
    color: #fff;
    width: 36px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}
.header-search-btn:hover { background: #b91c1c; }
.header-search-btn svg { width: 16px; height: 16px; }
.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-red);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background var(--transition);
}
.header-login-btn:hover { background: #b91c1c; color: #fff; }
.header-login-btn svg { flex-shrink: 0; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-dark);
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================================================
   SECTION HEADING BAR  — Arrow-badge pattern (red badge + arrow)
   ============================================================ */
.section-heading {
    background: var(--color-dark);
    display: flex;
    align-items: center;
    height: 38px;
    margin-bottom: 14px;
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
    gap: 0;
}

.section-heading .heading-icon {
    background: var(--color-red);
    height: 100%;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0;
}
.section-heading .heading-icon svg { width: 14px; height: 14px; fill: #fff; }

/* Red arrow-badge title */
.section-heading .heading-title {
    background: var(--color-red);
    color: var(--color-white);
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding: 0 30px 0 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}

/* Tabs: after arrow badge, on the LEFT side */
.section-heading .heading-tabs {
    display: flex;
    gap: 8px;
    margin-left: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* View All link inside section heading */
.heading-viewall {
    margin-left: auto;
    margin-right: 16px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.heading-viewall:hover { background: #b91c1c; color: var(--color-white); }

.tab-pill {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tab-pill:hover, .tab-pill.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

/* ============================================================
   HERO SECTION  — Slider 60% + Trending right 40%
   ============================================================ */
.hero-section {
    display: grid;
    grid-template-columns: 52fr 48fr;
    gap: 12px;
    height: 420px;
    margin-bottom: 15px;
    width: 100%;
}

/* ── Slider ── */
.hero-slider-wrap {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.sv-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-dark);
}

/* KEY FIX: slides need explicit inset-0 AND z-index so they stack, not flow */
.sv-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
    z-index: 0;
}
.sv-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }

.sv-slide a { display: block; width: 100%; height: 100%; position: relative; }

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

/* Light bottom scrim only — image stays sharp (text lives in a solid panel) */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.30) 0%, transparent 45%);
}

/* Solid title panel inset from the edges (reference style) */
.slide-content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(17,24,39,0.92);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slide-title {
    color: var(--color-white);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
/* Title colour change on hover (point #4) */
.sv-slide a:hover .slide-title,
.sv-slide a:focus-visible .slide-title { color: var(--color-red); }

/* Dots — moved to top-right so they don't collide with the title panel */
.sv-dots {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.sv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.2s;
}
.sv-dot.active,
.sv-dot:hover { background: var(--color-white); transform: scale(1.3); }

/* ── Hero Right  (1 top card + 2 bottom side-by-side) ── */
.hero-right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.hero-right-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-width: 0;
    min-height: 0;
}
/* Single card in bottom row: take full width */
.hero-right-bottom--single { grid-template-columns: 1fr; }

/* ── Hero card: clean image + solid text panel (no gradient over the photo) ── */
.hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-dark);
    min-height: 0;
}

.hero-card a {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
}
/* Top card = horizontal: image left, text right */
.hero-card--top a { flex-direction: row; }
.hero-card--top .hero-card__media { flex: 0 0 46%; }
/* Bottom cards = vertical: image on top, text below */
.hero-right-bottom .hero-card a { flex-direction: column; }
.hero-right-bottom .hero-card__media { flex: 0 0 56%; }

.hero-card__media {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}
.hero-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.hero-card:hover .hero-card__img { transform: scale(1.04); }

.hero-card__panel {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.hero-card__title {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.hero-card a:hover .hero-card__title { color: var(--color-red); }
.hero-card--top .hero-card__title { font-size: 17px; -webkit-line-clamp: 4; }

/* card-meta with category LEFT + time RIGHT */
.card-meta--spread {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ============================================================
   CARD-OVERLAY  (used in Top News + category sections)
   Dark card, image full-fill, gradient, category LEFT time RIGHT
   ============================================================ */
.card-overlay {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    background: var(--color-dark);
    display: flex;
    transition: transform var(--transition), box-shadow var(--transition);
}
/* No card lift/shadow — only the image zooms lightly (point #16) */

.card-overlay a {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

/* Image gets its own area — never covered by the heading */
.card-overlay__media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    flex-shrink: 0;
}
.card-overlay__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card-overlay:hover .card-overlay__img { transform: scale(1.04); }

.card-overlay__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-overlay__title {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.card-overlay:hover .card-overlay__title { color: var(--color-red); }
/* Meta row sits below the title, pushed to the card's bottom edge */
.card-overlay__body .card-meta--spread { margin-top: auto; }

/* 4-column Top News grid */
.top-news-grid--4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

/* ============================================================
   TRENDING BLOCK  (60/40 split) — LEGACY, kept for other uses
   ============================================================ */
.trending-block {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: var(--gap);
    margin-bottom: 40px;
}

/* ---- Large Card (left 60%) ---- */
.card-large {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/10;
    min-height: 280px;
}
.card-large .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-large:hover .card-img { transform: scale(1.04); }

.card-large .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 32%, transparent 65%);
}
.card-large .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}
.card-large .card-title {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-large .card-title:hover { color: var(--color-red); }

/* ---- Small Cards stack (right 40%) ---- */
.cards-stack { display: flex; flex-direction: column; gap: var(--gap); }

.card-small {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1;
    min-height: 130px;
}
.card-small .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-small:hover .card-img { transform: scale(1.04); }

.card-small .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 32%, transparent 65%);
}
.card-small .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
}
.card-small .card-title {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-small .card-title:hover { color: #f87171; }

/* Shared meta — sits BELOW the title now (point #6), so space above not below */
.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 0;
    flex-wrap: wrap;
}
.cat-badge {
    display: inline-block;
    background: var(--color-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
/* Smaller meta inside news cards (point #6) */
.card-meta .cat-badge,
.card-meta--spread .cat-badge {
    font-size: 10px;
    padding: 2px 7px;
    letter-spacing: 0.2px;
}
.card-meta .time-ago,
.card-meta--spread .time-ago { font-size: 11px; }
.time-ago {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
}
.time-ago-dark {
    color: var(--color-gray-400);
    font-size: 12px;
}

/* ============================================================
   TOP NEWS GRID  — same arrow-badge header as section-heading
   ============================================================ */
.top-news-header {
    display: flex;
    align-items: center;
    height: 38px;
    background: var(--color-dark);
    border-radius: 4px;
    margin-bottom: 14px;
    padding: 0;
    overflow: hidden;
    gap: 0;
}
.section-label {
    background: var(--color-red);
    color: var(--color-white);
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding: 0 30px 0 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.view-all-btn {
    margin-left: auto;
    margin-right: 16px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background var(--transition);
}
.view-all-btn:hover { background: #b91c1c; color: var(--color-white); }

.top-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

/* Card Horizontal (for Top News, category grids) */
.card-grid {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow var(--transition), transform var(--transition);
}
.card-grid:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.card-grid .card-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.card-grid .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-grid:hover .card-img-wrap img { transform: scale(1.04); }

.card-grid .card-content { padding: 14px; }
.card-grid .card-content .card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-gray-900);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-grid .card-content .card-title:hover { color: var(--color-red); }
.card-grid .card-meta { margin-bottom: 0; }

/* ============================================================
   LATEST NEWS SIDEBAR (numbered list)
   ============================================================ */
.latest-news-box {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.latest-news-box .latest-header {
    background: var(--color-red);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    text-align: center;
    letter-spacing: 0.3px;
}
.latest-news-list { padding: 0; }
.latest-news-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-gray-100);
    transition: background var(--transition);
}
.latest-news-item:last-child { border-bottom: none; }
.latest-news-item:hover { background: var(--color-gray-50); }
.latest-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-red);
    line-height: 1;
    min-width: 24px;
    padding-top: 2px;
}
.latest-news-item .item-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.latest-news-item:hover .item-title { color: var(--color-red); }

/* ============================================================
   MOST VIEWED + RELATED NEWS SIDEBAR BOXES (points #3, #4, #7.1)
   ============================================================ */
/* Stack spacing when multiple boxes share a sidebar */
.category-sidebar > .most-viewed-box,
.category-sidebar > .related-news-box,
.category-sidebar > .latest-news-box,
.category-sidebar > .ad-zone,
.hp-content-sidebar > .most-viewed-box,
.hp-content-sidebar > .ad-zone { margin-bottom: 24px; }

.most-viewed-box,
.related-news-box {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.most-viewed-header,
.related-news-header {
    background: var(--color-dark, #111827);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    text-align: center;
    letter-spacing: 0.3px;
}
.most-viewed-header { background: var(--color-red); }
.most-viewed-list { padding: 0; margin: 0; counter-reset: mv; list-style: none; }
.most-viewed-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-gray-100);
    transition: background var(--transition);
}
.most-viewed-item:last-child { border-bottom: none; }
.most-viewed-item:hover { background: var(--color-gray-50); }
.mv-thumb-link { flex-shrink: 0; }
.mv-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.mv-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mv-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.most-viewed-item:hover .mv-title { color: var(--color-red); }
.mv-views { font-size: 11px; color: var(--color-gray-500, #9ca3af); font-weight: 500; }
.most-viewed-viewall {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-red);
    border-top: 1px solid var(--color-gray-100);
}
.most-viewed-viewall:hover { background: var(--color-gray-50); }

/* Related News */
.related-news-list { padding: 0; margin: 0; list-style: none; }
.related-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-gray-100);
    transition: background var(--transition);
}
.related-news-item:last-child { border-bottom: none; }
.related-news-item:hover { background: var(--color-gray-50); }
.rn-thumb-link { flex-shrink: 0; }
.rn-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; display: block; }
.rn-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-news-item:hover .rn-title { color: var(--color-red); }

/* Homepage content — full width (Most Viewed now lives on article pages, #16) */
.hp-content-layout { display: block; }
.hp-content-main { min-width: 0; }

/* ============================================================
   WWE / CATEGORY PAGE  (3-col + Latest News sidebar)
   ============================================================ */
.category-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}
.category-sidebar { position: sticky; top: 80px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
    padding: 30px 0;
}
.single-article { min-width: 0; }

.article-header { margin-bottom: 24px; text-align: center; }
/* Breadcrumb on single posts (point #8) */
.sv-breadcrumb {
    font-size: 13px;
    color: var(--color-gray-500, #6b7280);
    margin-bottom: 14px;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.sv-breadcrumb a {
    color: var(--color-gray-600, #4b5563);
    text-decoration: none;
}
.sv-breadcrumb a:hover { color: var(--color-red); text-decoration: underline; }
.sv-breadcrumb a:last-of-type { color: var(--color-red); font-weight: 600; }
.sv-bc-sep { color: var(--color-gray-400, #9ca3af); }

.article-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.28;
    color: #000;
    margin-bottom: 16px;
    text-align: center;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--color-gray-600);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-gray-200);
}
.article-meta .cat-badge { font-size: 11px; }

/* Wrapper keeps icon+tooltip relationship outside overflow:hidden */
.article-featured-img-wrap {
    position: relative;
    margin-bottom: 24px;
}
.article-featured-img {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.article-featured-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: #000;
    display: block;
}
/* ⓘ info-circle icon — bottom-left corner of image (sibling of tooltip) */
.img-source-icon {
    position: absolute;
    bottom: 10px;
    left: 12px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: background 0.2s;
}
.img-source-icon:hover,
.img-source-icon:focus { background: var(--color-red); outline: none; }
.img-source-icon .fa-info-circle {
    color: #fff;
    font-size: 15px;
}
/* Caption shown to the RIGHT of the ⓘ icon (point #4) */
.img-caption-inline {
    position: absolute;
    bottom: 10px;
    left: 50px;
    max-width: calc(100% - 62px);
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 11;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* When no source icon present, caption sits at the far left */
.img-caption-inline--noicon { left: 12px; max-width: calc(100% - 24px); }
/* Tooltip — shown ONLY on icon hover/focus, lives outside overflow:hidden */
.img-source-tooltip {
    display: none;
    position: absolute;
    bottom: 48px;
    left: 8px;
    background: rgba(17,24,39,0.95);
    color: #fff;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 6px;
    white-space: normal;
    z-index: 20;
    max-width: 300px;
    min-width: 180px;
    line-height: 1.7;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.img-source-tooltip i { margin-right: 5px; color: #9ca3af; }
.img-source-icon:hover ~ .img-source-tooltip,
.img-source-icon:focus ~ .img-source-tooltip { display: block; }

.article-secondary-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}
.article-secondary-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.article-video { margin-bottom: 24px; }
.video-embed-wrap {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}
.video-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Article body typography */
/* Article typography — larger text, more line gap, black copy (points #10, #12, #13) */
.article-body { font-size: 18px; line-height: 1.9; color: #000; }
.article-body h1 { font-size: 30px; font-weight: 800; color: #000; margin: 32px 0 14px; line-height: 1.3; }
.article-body h2 { font-size: 26px; font-weight: 700; color: #000; margin: 32px 0 14px; line-height: 1.35; }
.article-body h3 { font-size: 22px; font-weight: 700; color: #000; margin: 26px 0 12px; line-height: 1.4; }
.article-body h4 { font-size: 19px; font-weight: 700; color: #000; margin: 22px 0 10px; line-height: 1.45; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #000; }
.article-body blockquote {
    border-left: 4px solid var(--color-red);
    padding-left: 16px;
    margin: 20px 0;
    font-style: italic;
    color: var(--color-gray-600);
}
/* Social embeds must not inherit the quote styling (point #14) */
.article-body blockquote.twitter-tweet,
.article-body blockquote.instagram-media {
    border-left: 0;
    padding-left: 0;
    font-style: normal;
    color: inherit;
}
/* In-content links: blue, underline only on hover (point #9) */
.article-body a {
    color: var(--color-link);
    text-decoration: none;
}
.article-body a:hover,
.article-body a:focus-visible { text-decoration: underline; }

/* Related Superstars / Events (points #5, #6, #7) */
.post-related-block {
    margin: 14px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray-700, #374151);
}
.post-related-label {
    font-weight: 700;
    color: var(--color-dark, #111827);
    margin-right: 6px;
}
.post-related-link {
    color: var(--color-red);
    font-weight: 600;
    text-decoration: none;
}
a.post-related-link:hover { text-decoration: underline; }
.post-follow-line {
    margin: 20px 0 8px;
    padding: 14px 18px;
    background: var(--color-gray-100, #f3f4f6);
    border-left: 4px solid var(--color-red);
    border-radius: 6px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--color-dark, #111827);
}
.post-follow-line a {
    color: var(--color-red);
    font-weight: 700;
    text-decoration: none;
}
.post-follow-line a:hover { text-decoration: underline; }

/* Share bar */
.share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;          /* must wrap or it overflows small screens (#19) */
    gap: 10px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--color-gray-200);
}
.share-bar .share-label { font-size: 14px; font-weight: 600; color: var(--color-gray-600); }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: opacity var(--transition);
}
.share-btn:hover { opacity: 0.85; color: #fff; }
.share-btn.share-fb   { background: #1877f2; }
.share-btn.share-tw   { background: #1da1f2; }
.share-btn.share-wa   { background: #25d366; }

/* Author box */
.posted-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray-600);
    margin-top: 10px;
}
.posted-by svg { fill: var(--color-gray-400); }

/* ============================================================
   ABOUT PAGE — redesigned
   ============================================================ */
.about-hero-banner {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1f2937 40%, #7f1d1d 100%);
    padding: 70px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.about-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 1;
}
.about-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.about-hero-badge {
    display: inline-block;
    background: var(--color-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.about-hero-title { font-size: 42px; font-weight: 900; color: #fff; margin-bottom: 14px; line-height: 1.15; }
.about-hero-sub { font-size: 17px; color: rgba(255,255,255,0.72); line-height: 1.6; }

/* Stats strip */
.about-stats-strip { background: var(--color-red); padding: 0; }
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto;
}
.about-stat-card {
    text-align: center;
    padding: 28px 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.about-stat-card:last-child { border-right: none; }
.about-stat-icon { margin-bottom: 10px; }
.about-stat-icon svg { width: 28px; height: 28px; stroke: rgba(255,255,255,0.85); display: block; margin: 0 auto; }
.about-stat-value { font-size: 34px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 5px; }
.about-stat-label { font-size: 13px; color: rgba(255,255,255,0.8); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Body sections */
.about-body { max-width: 1400px; margin: 0 auto; padding: 30px 20px 50px; }
.about-section { margin-bottom: 30px; }

/* Flat content card */
.about-content-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.about-content-card p { color: #374151; line-height: 1.8; font-size: 15px; margin-bottom: 14px; }
.about-content-card p:last-child { margin-bottom: 0; }

/* Mission grid */
.about-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.mission-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.mission-check {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mission-check svg { width: 18px; height: 18px; stroke: #fff; stroke-width: 3; fill: none; }
.mission-card h4 { font-size: 15px; font-weight: 700; color: var(--color-dark); margin-bottom: 5px; }
.mission-card p { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0; }

/* Why cards grid */
.why-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.why-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 3px solid var(--color-red);
}
.why-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.why-card-icon {
    width: 54px; height: 54px;
    background: rgba(220,38,38,.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.why-card-icon svg { width: 26px; height: 26px; stroke: var(--color-red); }
.why-card h4 { font-size: 15px; font-weight: 700; color: var(--color-dark); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
    .about-hero-title { font-size: 30px; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-mission-grid { grid-template-columns: 1fr; }
    .why-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .about-stats-grid { grid-template-columns: 1fr 1fr; }
    .why-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AD ZONES
   ============================================================ */
.ad-zone { text-align: center; margin: 20px 0; line-height: 1; }
.ad-zone:empty { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 30px;
    padding-bottom: 30px;
}
.footer-heading {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-red); }

.social-links { display: flex; gap: 10px; margin-top: 4px; }
.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}
.social-btn:hover { opacity: 0.85; }
.social-btn.fb  { background: #1877f2; }
.social-btn.tw  { background: #1da1f2; }
.social-btn.wa  { background: #25d366; }
.social-btn svg { width: 18px; height: 18px; fill: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 30px 0;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
    transition: all var(--transition);
}
.page-numbers.current,
.page-numbers:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

/* ============================================================
   AJAX LOADING STATES
   ============================================================ */
.ajax-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}
.ajax-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid var(--color-red);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   NOTICES (admin) — only shown in front-end if needed
   ============================================================ */
.notice-video-error {
    background: #fef3cd;
    border-left: 4px solid #f0ad4e;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    color: #7d5a00;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-section { height: 420px; }
    .top-news-grid--4col { grid-template-columns: repeat(2, 1fr); }
    .trending-block { grid-template-columns: 55fr 45fr; }
    .top-news-grid { grid-template-columns: repeat(2, 1fr); }
    .category-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-title { font-size: 30px; }
    .article-body { font-size: 17px; }
    .article-body h2 { font-size: 23px; }
    .article-body h3 { font-size: 20px; }
    .card-overlay__title { font-size: 15px; }
}

@media (max-width: 768px) {
    .site-header .container { gap: 12px; }
    .menu-toggle { display: flex; flex-direction: column; order: 3; }
    .site-logo { order: 1; }
    .header-actions { order: 2; margin-left: auto; gap: 8px; }
    .header-search-input { width: 110px; padding-left: 12px; }
    .header-login-btn { padding: 8px; }
    .header-login-btn span { display: none; }  /* icon-only login on mobile */
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        padding: 12px 20px 20px;
        z-index: 99;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a::after { display: none; }

    /* Hero: stack on mobile */
    .hero-section {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
    }
    .sv-page-wrap { padding: 0 12px; }

    /* Main slider stays a full banner (image + title overlay) */
    .hero-slider-wrap { height: 250px; }
    .slide-content { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; gap: 6px; }
    .slide-title { font-size: 16px; -webkit-line-clamp: 3; }

    /* Trending cards → horizontal list rows: image LEFT, title RIGHT (sportsvarta style) */
    .hero-right { height: auto; display: flex; flex-direction: column; gap: 10px; }
    .hero-right-bottom { display: flex; flex-direction: column; gap: 10px; height: auto; }
    .hero-card, .hero-card--top { height: 96px; }
    .hero-card a,
    .hero-card--top a,
    .hero-right-bottom .hero-card a { flex-direction: row; }
    .hero-card__media,
    .hero-card--top .hero-card__media,
    .hero-right-bottom .hero-card__media { flex: 0 0 40%; }
    .hero-card__panel { padding: 8px 12px; }
    .hero-card__title, .hero-card--top .hero-card__title { font-size: 14px; -webkit-line-clamp: 3; }
    .section-heading, .top-news-header { height: 34px; }
    .section-heading .heading-title, .section-label { font-size: 13px; padding-right: 26px; }
    /* Share buttons must wrap on small screens */
    .share-bar { gap: 8px; }
    .share-btn { flex: 0 0 auto; }

    /* All card grids become a single-column list on mobile */
    .top-news-grid--4col { grid-template-columns: 1fr; }
    .trending-block { grid-template-columns: 1fr; }
    .top-news-grid { grid-template-columns: 1fr; }
    .category-layout { grid-template-columns: 1fr; }
    .hp-content-layout { grid-template-columns: 1fr; }
    .hp-content-sidebar { position: static; }
    .category-cards-grid { grid-template-columns: 1fr; }

    /* Grid cards → horizontal list: image LEFT, title RIGHT (sportsvarta style) */
    .card-overlay { height: auto; }
    .card-overlay a { flex-direction: row; align-items: stretch; }
    .card-overlay__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 92px; }
    .card-overlay__body { justify-content: center; padding: 10px 12px; }
    .card-overlay__body .card-meta--spread { margin-top: 8px; }
    .card-overlay__title { font-size: 14px; -webkit-line-clamp: 3; }
    .single-layout { grid-template-columns: 1fr; }
    .about-layout { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-title { font-size: 26px; }
    .article-body { font-size: 17px; line-height: 1.85; }
    .article-body h2 { font-size: 21px; }
    .article-body h3 { font-size: 19px; }
    .section-heading .heading-tabs { display: none; }
}

@media (max-width: 480px) {
    /* Trending + section cards already horizontal from the <=768 rules; just
       trim the banner a touch on very small phones. */
    .hero-slider-wrap { height: 220px; }
    .footer-grid { grid-template-columns: 1fr; }
    /* Collapse header search to icon-only on very small screens */
    .header-search-input { width: 0; padding: 0; opacity: 0; pointer-events: none; }
    .header-search-form:focus-within .header-search-input { width: 120px; padding: 7px 6px 7px 12px; opacity: 1; pointer-events: auto; }
}
