/* ============================================================
   ReTriot — Main Stylesheet
   Premium Bangla News Website Theme
   ============================================================ */

/* ---- FONT FACES ---- */
@font-face {
    font-family: 'Kaium';
    src: url('../fonts/Li-Kaium-Kothamala-Unicode.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo2';
    src: url('../fonts/Exo2-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---- CSS VARIABLES ---- */
:root {
    --navy: #0B0F2F;
    --navy-light: #141938;
    --navy-dark: #070A20;
    --teal: #2AB6B0;
    --teal-hover: #22A09B;
    --teal-light: #E6F7F6;
    --teal-bg: rgba(42, 182, 176, 0.08);
    --white: #FFFFFF;
    --bg: #F5F6F8;
    --bg-alt: #ECEEF2;
    --text: #1C1C1C;
    --text-secondary: #555;
    --text-muted: #888;
    --border: #E2E5EA;
    --border-light: #F0F1F4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-headline: 'Kaium', 'Noto Sans Bengali', sans-serif;
    --font-body: 'Roboto', 'Noto Sans Bengali', sans-serif;
    --font-logo: 'Exo2', sans-serif;
    --header-height: 64px;
    --sidebar-width: 320px;
    --max-width: 1280px;
    --transition: 0.2s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-hover); }

ul, ol { list-style: none; }
button, input, select, textarea {
    font-family: inherit; font-size: inherit; color: inherit;
    border: none; outline: none; background: none;
}
button { cursor: pointer; }

/* ---- UTILITY CLASSES ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.section-gap { margin-bottom: 40px; }

/* ---- TOP BAR ---- */
.topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar__date { display: flex; align-items: center; gap: 6px; }
.topbar__date svg { width: 14px; height: 14px; fill: var(--teal); }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__social { display: flex; gap: 10px; }
.topbar__social a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
    display: flex; align-items: center;
}
.topbar__social a:hover { color: var(--teal); }
.topbar__social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- HEADER / LOGO ---- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.header--hidden { transform: translateY(-100%); }
.header--shadow { box-shadow: var(--shadow-md); }
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__icon { height: 38px; width: auto; }
.logo__text {
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.5px;
}
.logo__re { color: var(--navy); }
.logo__triot { color: var(--teal); }

/* Search bar */
.header-search {
    flex: 0 1 380px;
    position: relative;
}
.header-search__input {
    width: 100%;
    height: 40px;
    padding: 0 42px 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--bg);
    font-size: 14px;
    transition: border-color var(--transition), background var(--transition);
}
.header-search__input:focus {
    border-color: var(--teal);
    background: var(--white);
}
.header-search__input::placeholder { color: var(--text-muted); }
.header-search__btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--teal);
    color: var(--white);
    transition: background var(--transition);
}
.header-search__btn:hover { background: var(--teal-hover); }
.header-search__btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Hamburger */
.hamburger {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: transparent;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--navy);
    position: relative;
    transition: background var(--transition);
}
.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    width: 22px; height: 2px;
    background: var(--navy);
    transition: transform 0.3s ease;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
.hamburger.active span { background: transparent; }
.hamburger.active span::before { transform: rotate(45deg); top: 0; }
.hamburger.active span::after { transform: rotate(-45deg); top: 0; }

/* ---- NAVBAR ---- */
.navbar {
    background: var(--navy);
    position: relative;
    z-index: 999;
}
.navbar__list {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.navbar__list::-webkit-scrollbar { display: none; }
.navbar__item {}
.navbar__link {
    display: block;
    padding: 12px 18px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.navbar__link:hover,
.navbar__link--active {
    color: var(--white);
    background: rgba(42, 182, 176, 0.12);
}
.navbar__link--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--teal);
    border-radius: 3px 3px 0 0;
}

/* ---- BREAKING NEWS TICKER ---- */
.ticker {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 42px;
    display: flex;
    align-items: center;
}
.ticker__label {
    flex-shrink: 0;
    background: #E53935;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    animation: pulse-label 2s ease-in-out infinite;
}
@keyframes pulse-label {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.ticker__label svg { width: 14px; height: 14px; fill: currentColor; }
.ticker__track {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.ticker__content {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%;
}
.ticker__content:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.ticker__item {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    color: var(--text);
}
.ticker__item a { color: var(--text); font-weight: 300; }
.ticker__item a:hover { color: var(--teal); }
.ticker__dot {
    width: 6px; height: 6px;
    background: #E53935;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

/* ---- AD SLOTS ---- */
.ad-slot {
    background: var(--bg-alt);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    position: relative;
}
/* Filled ad slots — remove placeholder styling */
.ad-slot--filled {
    background: transparent;
    border: none;
    height: auto !important;
    display: block;
    width: 100%;
    min-height: 50px;
    text-align: center;
}
.ad-slot--filled .ad-slot__label {
    display: block;
    text-align: center;
    margin-bottom: 4px;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ad-slot--filled ins.adsbygoogle {
    display: block;
    width: 100%;
}
.ad-slot--header { height: 90px; margin: 12px auto; max-width: 728px; }
.ad-slot--footer { height: 90px; margin: 20px auto; max-width: 728px; }
.ad-slot--sidebar { height: 250px; width: 100%; margin-bottom: 20px; }
.ad-slot--sidebar-top { width: 100%; margin-bottom: 20px; }
.ad-slot--sidebar-mid { width: 100%; margin-bottom: 20px; }
.ad-slot--sidebar-bottom { width: 100%; margin-bottom: 20px; }
.ad-slot--sidebar-tall { height: 600px; width: 100%; margin-bottom: 20px; }
.ad-slot--infeed { height: 100px; width: 100%; margin: 16px 0; }
.ad-slot--in-article { height: 250px; width: 100%; margin: 24px 0; }
.ad-slot--after-featured { height: 90px; margin: 12px auto; max-width: 728px; }
.ad-slot--mid-content { height: 100px; width: 100%; margin: 20px 0; }
.ad-slot--between-sections { height: 90px; margin: 16px auto; max-width: 728px; }
.ad-slot--before-content { height: 100px; width: 100%; margin: 20px 0; }
.ad-slot--after-content { height: 100px; width: 100%; margin: 20px 0; }

/* ---- FEATURED SECTION ---- */
.featured {
    padding: 24px 0;
}
.featured__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    min-height: 420px;
}
.featured__main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.featured__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}
.featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured__main:hover .featured__image {
    transform: scale(1.03);
}
.featured__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: var(--white);
}
.featured__title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 24px;
    line-height: 1.5;
    color: var(--white);
    margin-top: 10px;
    margin-bottom: 6px;
}
.featured__overlay .card__meta {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.featured__overlay .card__category {
    position: static;
    display: inline-block;
}

/* Featured side (2x2 grid of smaller items) */
.featured__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}
.featured__side-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.featured__side-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}
.featured__side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.featured__side-item:hover .featured__side-img {
    transform: scale(1.05);
}
.featured__side-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
}
.featured__side-content .card__category {
    position: static;
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
}
.card__category--small {
    font-size: 10px;
    padding: 2px 8px;
}
.featured__side-title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.45;
    color: var(--white);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- NEWS CARD ---- */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.card__image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-alt);
}
.card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card__image-wrap img {
    transform: scale(1.05);
}
.card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--teal);
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--font-body);
    z-index: 2;
}
.card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card__title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.5;
    color: var(--navy);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card__title a { color: inherit; }
.card__title a:hover { color: var(--teal); }
.card__excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.card__meta svg { width: 13px; height: 13px; fill: var(--text-muted); margin-right: 3px; }
.card__meta-item { display: flex; align-items: center; }

/* Card size variants */
.card--large .card__title { font-size: 22px; -webkit-line-clamp: 4; }
.card--large .card__image-wrap { aspect-ratio: 16/9; }
.card--small .card__title { font-size: 15px; -webkit-line-clamp: 2; }
.card--small .card__image-wrap { aspect-ratio: 16/10; }
.card--small .card__body { padding: 12px; }
.card--small .card__excerpt { display: none; }

/* Horizontal card */
.card--horizontal {
    flex-direction: row;
    height: auto;
}
.card--horizontal .card__image-wrap {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    margin: 12px;
}
.card--horizontal .card__body { padding: 12px 12px 12px 0; }
.card--horizontal .card__title { font-size: 14px; -webkit-line-clamp: 2; margin-bottom: 4px; }
.card--horizontal .card__excerpt { display: none; }
.card--horizontal .card__category { display: none; }

/* ---- MAIN LAYOUT (Content + Sidebar) ---- */
.layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 30px;
    padding: 24px 0;
}
.layout__main,
.layout__content { min-width: 0; }
.sidebar { }

/* ---- SECTION HEADER ---- */
.section { padding: 16px 0; }
.section--category { padding: 24px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
    position: relative;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--teal);
}
.section-header__title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 20px;
    color: var(--navy);
}
.section-header__more {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-header__more:hover { color: var(--teal-hover); }
.section-header__more svg { width: 14px; height: 14px; fill: currentColor; }

/* ---- NEWS GRID ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.news-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}
.news-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

/* ---- SIDEBAR WIDGETS ---- */
.widget {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}
.widget__header {
    background: var(--navy);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget__header svg { width: 16px; height: 16px; fill: var(--teal); }
.widget__title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 16px;
    color: var(--white);
}
.widget__body { padding: 0; }

/* Most read list */
.most-read { counter-reset: rank; }
.most-read__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
    counter-increment: rank;
}
.most-read__item:last-child { border-bottom: none; }
.most-read__item:hover { background: var(--teal-bg); }
.most-read__rank {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.most-read__item:nth-child(-n+3) .most-read__rank {
    background: var(--teal);
    color: var(--white);
}
.most-read__title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: var(--navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.most-read__title a,
.most-read__link { color: var(--navy); font-family: var(--font-headline); font-weight: 300; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.most-read__title a:hover,
.most-read__link:hover { color: var(--teal); }
.most-read__meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Tag cloud */
.tag-cloud { padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud__item,
.tag-cloud__tag {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.tag-cloud__item:hover,
.tag-cloud__tag:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

/* Widget section-header alignment */
.widget > .section-header {
    padding: 14px 16px 12px;
    margin-bottom: 0;
}

/* ---- CATEGORY SECTION (Homepage rows) ---- */
.category-section {
    margin-bottom: 36px;
}
.category-section .news-grid {
    grid-template-columns: repeat(4, 1fr);
}
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.category-grid__side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---- ARTICLE PAGE ---- */
.article .layout__main {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}
.article__header { margin-bottom: 24px; }
.article__header .card__category {
    position: static;
    display: inline-block;
    margin-bottom: 14px;
}
.article__title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 30px;
    line-height: 1.5;
    color: var(--navy);
    margin-bottom: 12px;
}
.article__excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.article__meta svg { width: 14px; height: 14px; fill: var(--text-muted); vertical-align: -2px; margin-right: 4px; }
.article__meta-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.article__meta-right { display: flex; align-items: center; gap: 12px; }
.article__author,
.article__date,
.article__time-ago,
.article__views { display: inline-flex; align-items: center; gap: 4px; }

/* Share buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    padding: 0;
}
.share-buttons--bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 28px;
}
.share-buttons__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: transform var(--transition), opacity var(--transition);
    white-space: nowrap;
}
.share-btn:hover { transform: translateY(-1px); opacity: 0.9; color: var(--white); }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.share-btn--facebook { background: #1877F2; }
.share-btn--twitter { background: #0F1419; }
.share-btn--whatsapp { background: #25D366; }
.share-btn--copy { background: var(--navy); cursor: pointer; }

/* Bottom share: icon-only compact */
.share-buttons--bottom .share-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}
.share-buttons--bottom .share-btn svg { width: 16px; height: 16px; }

/* Article featured image */
.article__featured-image {
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.article__featured-image img {
    width: 100%;
    display: block;
    border-radius: 0;
}
.article__featured-image figcaption {
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 0;
    text-align: center;
}

/* Article body */
.article__body {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text);
}
.article__body p { margin-bottom: 18px; }
.article__body h2, .article__body h3 {
    font-family: var(--font-headline);
    font-weight: 300;
    color: var(--navy);
    margin: 28px 0 14px;
}
.article__body h2 { font-size: 24px; }
.article__body h3 { font-size: 20px; }
.article__body blockquote {
    border-left: 4px solid var(--teal);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--teal-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.article__body img {
    border-radius: var(--radius-md);
    margin: 20px 0;
}
.article__body a { color: var(--teal); text-decoration: underline; }

/* Tags */
.article__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.article__tags-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}
.article__tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.article__tag:hover {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

/* Related news */
.related-news { margin-top: 40px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
    padding: 14px 0;
    font-size: 13px;
}
.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb__item { display: flex; align-items: center; gap: 6px; }
.breadcrumb__item::after { content: '›'; color: var(--text-muted); }
.breadcrumb__item:last-child::after { display: none; }
.breadcrumb__item a { color: var(--text-muted); }
.breadcrumb__item a:hover { color: var(--teal); }
.breadcrumb__item--active span { color: var(--text-secondary); font-weight: 300; }

/* ---- PAGINATION ---- */
.pagination {
    padding: 24px 0;
    display: flex;
    justify-content: center;
}
.pagination__list {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.pagination__link:hover {
    border-color: var(--teal);
    color: var(--teal);
}
.pagination__link--active {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.pagination__dots {
    padding: 0 6px;
    color: var(--text-muted);
}

/* ---- 404 ERROR PAGE ---- */
.error-page {
    padding: 60px 0 80px;
    min-height: 50vh;
    display: flex;
    align-items: center;
}
.error-page__content {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}
.error-page__illustration {
    margin-bottom: 24px;
}
.error-page__illustration svg {
    width: 200px;
    height: auto;
    opacity: 0.85;
    animation: error-float 3s ease-in-out infinite;
}
@keyframes error-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.error-page__code {
    font-family: var(--font-heading);
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    color: var(--teal);
    margin-bottom: 8px;
    letter-spacing: -2px;
}
.error-page__title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}
.error-page__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}
.error-page__search {
    margin-bottom: 24px;
}
.error-page__search-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    transition: border-color 0.2s;
}
.error-page__search-wrap:focus-within {
    border-color: var(--teal);
}
.error-page__search-icon {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    margin: 0 0 0 14px;
    flex-shrink: 0;
}
.error-page__input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--font-body);
    background: transparent;
    color: var(--text);
}
.error-page__input::placeholder { color: var(--text-muted); }
.error-page__search-wrap .btn {
    border-radius: 0;
    padding: 12px 20px;
    height: 100%;
}
.error-page__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.error-page__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn--outline-dark {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
}
.btn--outline-dark:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 48px 0 0;
    margin-top: 40px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand .logo { margin-bottom: 16px; }
.footer__tagline {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.6);
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}
.footer__social a:hover { background: var(--teal); color: var(--white); }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.footer__heading {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 16px;
    color: var(--white);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
    display: inline-block;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color var(--transition);
}
.footer__links a:hover { color: var(--teal); }
.footer__bottom {
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* ---- SEARCH PAGE ---- */
.search-hero {
    background: var(--navy);
    padding: 40px 0;
    text-align: center;
    color: var(--white);
}
.search-hero__title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 24px;
    margin-bottom: 20px;
}
.search-hero__form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-hero__input {
    width: 100%;
    height: 52px;
    padding: 0 52px 0 24px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 16px;
}
.search-hero__input::placeholder { color: rgba(255,255,255,0.4); }
.search-hero__input:focus { border-color: var(--teal); background: rgba(255,255,255,0.12); }
.search-hero__btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--teal); color: var(--white);
    display: flex; align-items: center; justify-content: center;
}
.search-hero__btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- 404 PAGE ---- */
.page-404 {
    text-align: center;
    padding: 80px 20px;
}
.page-404__code {
    font-size: 120px;
    font-weight: 800;
    color: var(--navy);
    font-family: var(--font-logo);
    line-height: 1;
}
.page-404__title {
    font-family: var(--font-headline);
    font-weight: 300;
    font-size: 24px;
    color: var(--text);
    margin: 16px 0;
}
.page-404__text {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}
.page-404__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--teal);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: background var(--transition);
}
.page-404__btn:hover { background: var(--teal-hover); color: var(--white); }

/* ---- MOBILE NAV DRAWER ---- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    overflow-y: auto;
}
.mobile-nav.open { left: 0; }
.mobile-nav__header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.mobile-nav__close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg);
}
.mobile-nav__close svg { width: 18px; height: 18px; }
.mobile-nav__list { padding: 16px 0; }
.mobile-nav__link {
    display: block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: var(--navy);
    border-bottom: 1px solid var(--border-light);
}
.mobile-nav__link:hover { background: var(--teal-bg); color: var(--teal); }
.mobile-nav__link--active { color: var(--teal); background: var(--teal-bg); font-weight: 500; }
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}
.mobile-overlay.open { display: block; }

/* ---- STICKY BOTTOM NAV (Mobile) ---- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 1500;
    padding: 6px 0 env(safe-area-inset-bottom);
}
.bottom-nav__list {
    display: flex;
    justify-content: space-around;
}
.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    font-size: 10px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.bottom-nav__item:hover,
.bottom-nav__item--active { color: var(--teal); }
.bottom-nav__item svg { width: 20px; height: 20px; fill: currentColor; }

/* ---- LOADING SKELETON ---- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border-light) 50%, var(--bg-alt) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton--text { height: 14px; margin-bottom: 8px; }
.skeleton--title { height: 20px; width: 80%; margin-bottom: 12px; }
.skeleton--image { aspect-ratio: 16/10; }

/* ---- STATIC PAGE ---- */
.page-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
}
.page-content h1, .page-content h2, .page-content h3 {
    font-family: var(--font-headline);
    font-weight: 300;
    color: var(--navy);
    margin-bottom: 16px;
}
.page-content p { margin-bottom: 16px; line-height: 1.8; }
