/* ================================================================
   GALMUDUG TIMES — Washington Post–Inspired Design System
   Clean, authoritative editorial aesthetic
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&display=swap');

/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
    --gt-black: #1a1a1a;
    --gt-dark: #2a2a2a;
    --gt-text: #292929;
    --gt-meta: #767676;
    --gt-border: #e5e5e5;
    --gt-border-light: #f0f0f0;
    --gt-bg-warm: #faf9f7;
    --gt-bg-light: #f7f7f7;
    --gt-white: #ffffff;
    --gt-red: #c41e3a;
    --gt-red-dark: #a01830;
    --gt-link: #0066c0;
    --gt-link-hover: #004080;
    --gt-font-display: 'Playfair Display', Georgia, serif;
    --gt-font-body: 'Libre Baskerville', Georgia, serif;
    --gt-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --gt-max-width: 1340px;
    --gt-content-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--gt-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gt-text);
    background-color: var(--gt-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gt-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gt-link-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

:focus-visible {
    outline: 2px solid var(--gt-link);
    outline-offset: 2px;
}

/* ================================================================
   2. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gt-font-display);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--gt-black);
}

h2 { font-size: 2.25rem; }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.25rem; }

/* Legacy masthead (used on some pages) */
.masthead {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--gt-white);
}

.title {
    font-family: var(--gt-font-display);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--gt-black);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.tagline {
    font-family: var(--gt-font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--gt-meta);
}

.story-headline {
    font-family: var(--gt-font-display);
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: var(--gt-black);
}

.story-headline a {
    color: inherit;
    text-decoration: none;
}

.story-headline a:hover,
.story-headline:hover {
    color: var(--gt-red);
}

.section-title {
    font-family: var(--gt-font-ui);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gt-black);
    border-bottom: 2px solid var(--gt-black);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ================================================================
   3. ANTI-FLICKER / SKELETON LOADING
   ================================================================ */
html { visibility: visible; }

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 3px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 3px;
}

.skeleton-hero {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.content-loaded {
    animation: contentFadeIn 0.35s ease-out forwards;
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.gt-hero-grid { min-height: 440px; }
@media (max-width: 900px) { .gt-hero-grid { min-height: 280px; } }
@media (max-width: 600px) { .gt-hero-grid { min-height: 240px; } }

.gt-news-section,
.gt-featured-section,
.gt-cat-section {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ================================================================
   4. SHARE BUTTONS
   ================================================================ */
.share-buttons-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border: none;
    border-radius: 4px;
    font-family: var(--gt-font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.share-btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.share-btn-social i { font-size: 0.95rem; }

.share-btn-whatsapp { background: #25D366; }
.share-btn-whatsapp:hover { background: #1da851; }
.share-btn-telegram { background: #0088cc; }
.share-btn-telegram:hover { background: #0077b5; }
.share-btn-facebook { background: #1877F2; }
.share-btn-facebook:hover { background: #166fe5; }
.share-btn-twitter { background: #000; }
.share-btn-twitter:hover { background: #333; }
.share-btn-email { background: #555; }
.share-btn-email:hover { background: #444; }
.share-btn-copy {
    background: #fff;
    color: #333;
    border: 1.5px solid var(--gt-border);
}
.share-btn-copy:hover { border-color: #27ae60; color: #27ae60; }
.share-btn-copy.copied { background: #27ae60; border-color: #27ae60; color: #fff; }

@media (max-width: 600px) {
    .share-btn-social { padding: 0.45rem 0.7rem; font-size: 0.72rem; }
    .share-btn-social span { display: none; }
}

/* ================================================================
   5. CATEGORY COLORS
   ================================================================ */
.category-politics { border-bottom-color: #c41e3a !important; color: #c41e3a; }
.category-world { border-bottom-color: #1e90ff !important; color: #1e90ff; }
.category-business { border-bottom-color: #27ae60 !important; color: #27ae60; }
.category-technology { border-bottom-color: #8e44ad !important; color: #8e44ad; }
.category-opinion { border-bottom-color: #f39c12 !important; color: #f39c12; }
.category-culture { border-bottom-color: #e74c3c !important; color: #e74c3c; }
.category-economy { border-bottom-color: #16a085 !important; color: #16a085; }
.category-analysis { border-bottom-color: #2c3e50 !important; color: #2c3e50; }

/* ================================================================
   6. GT TOP BAR (thin utility bar)
   ================================================================ */
.gt-topbar {
    background: var(--gt-black);
    font-family: var(--gt-font-ui);
    font-size: 0.74rem;
    position: sticky;
    top: 0;
    z-index: 1002;
}

.gt-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--gt-max-width);
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
    gap: 1rem;
}

.gt-social {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.gt-social a {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    text-decoration: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    border: 1px solid rgba(255,255,255,0.12);
}

.gt-social a:hover {
    color: #fff;
    background: var(--gt-red);
    border-color: var(--gt-red);
    text-decoration: none;
}

.gt-topbar-center {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
}

.gt-weather-city {
    font-weight: 600;
    color: rgba(255,255,255,0.88);
}

.gt-sep { color: rgba(255,255,255,0.2); }

.gt-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.gt-topbar-right a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.74rem;
    transition: color 0.2s;
}

.gt-topbar-right a:hover { color: #fff; text-decoration: none; }

.gt-lang {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: 0.2rem;
}

.gt-lang-btn {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-family: var(--gt-font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.48rem;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
    line-height: 1.4;
}

.gt-lang-btn.active {
    background: var(--gt-red);
    border-color: var(--gt-red);
    color: #fff;
}

.gt-lang-btn:hover:not(.active) {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* ================================================================
   7. GT HEADER & NAVIGATION
   ================================================================ */
.gt-header {
    background: #1a1a1a;
    position: sticky;
    top: 38px;
    z-index: 999;
    border-bottom: none;
}

.gt-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: var(--gt-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* Logo — centered nameplate */
.gt-logo {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    padding: 1.4rem 0 0.8rem;
    border-right: none;
    margin-right: 0;
    transition: opacity 0.2s;
}

.gt-logo:hover { opacity: 0.85; text-decoration: none; }

.gt-logo-text {
    font-family: 'UnifrakturMaguntia', cursive;
    font-size: 3.2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #fff;
}

.gt-logo-tagline {
    font-family: var(--gt-font-ui);
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 0.35rem;
}

/* Nav links */
.gt-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex: 1 0 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: none;
    background: #1a1a1a;
}

.gt-nav::-webkit-scrollbar { display: none; }

.gt-nav .nav-item,
.gt-nav a.nav-item {
    font-family: var(--gt-font-ui);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    text-decoration: none !important;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    transition: color 0.18s, background 0.18s;
    border-bottom: none !important;
    white-space: nowrap;
    position: relative;
}

/* Underline accent on hover/active */
.gt-nav .nav-item::after,
.gt-nav a.nav-item::after {
    content: '' !important;
    display: block !important;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0 !important;
    height: 3px;
    background: var(--gt-red) !important;
    border-radius: 1.5px;
    transition: width 0.25s ease;
}

.gt-nav .nav-item:hover::after,
.gt-nav a.nav-item:hover::after,
.gt-nav .nav-item.nav-active::after,
.gt-nav a.nav-item.nav-active::after {
    width: 55% !important;
}

.gt-nav .nav-item:hover,
.gt-nav a.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    text-decoration: none !important;
    border-bottom-color: transparent !important;
}

.gt-nav .nav-item.nav-active,
.gt-nav a.nav-item.nav-active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

/* Search button */
.gt-search-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    padding: 0 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s, background 0.2s;
    border-left: 1px solid rgba(255,255,255,0.15);
    position: absolute;
    right: 1.5rem;
    top: 0.8rem;
    z-index: 10;
}

.gt-search-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* Hamburger (mobile) */
.gt-hamburger {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    border-radius: 3px;
    font-size: 1.05rem;
    margin-left: auto;
    align-self: center;
    margin-right: 0.5rem;
}

.gt-hamburger:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* Search expand bar */
.gt-search-expand {
    background: var(--gt-bg-light);
    border-top: 1px solid var(--gt-border);
}

.gt-search-expand-inner {
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    gap: 0.5rem;
}

.gt-search-expand-inner input {
    flex: 1;
    padding: 0.55rem 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: var(--gt-font-ui);
    font-size: 0.88rem;
    outline: none;
    background: #fff;
    color: var(--gt-text);
}

.gt-search-go {
    background: var(--gt-red);
    color: #fff;
    border: none;
    font-family: var(--gt-font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.55rem 1.2rem;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.gt-search-go:hover { background: var(--gt-red-dark); }

.gt-close-btn {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.gt-close-btn:hover { background: #ebebeb; border-color: #bbb; }

/* Search results panel */
.gt-search-results {
    background: #fff;
    border-top: 3px solid var(--gt-red);
    max-height: 420px;
    overflow-y: auto;
}

.gt-search-results-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
}

.gt-sr-count {
    font-family: var(--gt-font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gt-meta);
    margin-bottom: 0.75rem;
}

.gt-sr-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gt-border-light);
}

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

.gt-sr-cat {
    display: inline-block;
    color: #fff;
    padding: 0.15rem 0.45rem;
    font-family: var(--gt-font-ui);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.gt-sr-title {
    font-family: var(--gt-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    color: var(--gt-black);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s;
}

.gt-sr-title:hover { color: var(--gt-red); text-decoration: none; }

.gt-sr-close {
    margin-top: 0.75rem;
    background: none;
    border: none;
    font-family: var(--gt-font-ui);
    font-size: 0.78rem;
    color: #999;
    cursor: pointer;
    padding: 0;
}

/* Weather fade */
@keyframes wtFade {
    0% { opacity: 0; transform: translateY(-3px); }
    100% { opacity: 1; transform: translateY(0); }
}
.wt-fade { animation: wtFade 0.4s ease; }

/* Legacy header/nav (override for old pages) */
.header {
    background: var(--gt-white);
    border-bottom: 1px solid var(--gt-border);
}

.header-nav {
    background: var(--gt-white);
    border-top: 2px solid var(--gt-black);
    border-bottom: 1px solid var(--gt-border);
    padding: 0;
}

.main-nav {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--gt-white);
}

.nav-item {
    font-family: var(--gt-font-ui);
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gt-black);
    text-decoration: none;
    padding: 0.85rem 1.25rem;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    color: var(--gt-red);
    border-bottom-color: var(--gt-red);
    text-decoration: none;
}

.nav-item::after { display: none; }

.main-nav .nav-item::after { display: none; }

/* Double rules */
.double-rule {
    border-top: 3px double var(--gt-black);
    padding: 0.5rem 0;
}

.header-top-rule { border-top: 1px solid var(--gt-black); height: 0; }
.header-bottom-rule { border-top: 3px double var(--gt-black); }

/* ================================================================
   8. TICKER BAR
   ================================================================ */
.ticker-bar {
    background: var(--gt-red);
    color: #fff;
    padding: 0.55rem 0;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 2rem;
    max-width: var(--gt-max-width);
    margin: 0 auto;
}

.ticker-label {
    font-family: var(--gt-font-ui);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    white-space: nowrap;
    color: #fff;
    text-transform: uppercase;
    background: rgba(0,0,0,0.18);
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
}

.ticker-scroll {
    flex: 1;
    overflow: hidden;
    cursor: pointer;
}

.ticker-text {
    display: inline-block;
    animation: tickerScroll 50s linear infinite;
    font-family: var(--gt-font-ui);
    font-size: 0.82rem;
    white-space: nowrap;
}

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

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================================================
   9. LAYOUT CONTAINERS
   ================================================================ */
.container {
    max-width: var(--gt-content-width);
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.container-wide {
    max-width: var(--gt-content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.story-hero {
    grid-column: 1;
    padding: 0;
}

.sidebar {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-divider {
    height: 1px;
    background: var(--gt-border);
    margin: 1.25rem 0;
}

/* ================================================================
   10. STORY COMPONENTS
   ================================================================ */
.story {
    background: var(--gt-white);
    border-bottom: 1px solid var(--gt-border);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.story:hover { transform: none; box-shadow: none; }

.story-category {
    display: inline-block;
    font-family: var(--gt-font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gt-red);
    margin-bottom: 0.4rem;
    padding: 0;
    border-bottom: none;
    background: none !important;
}

.story-category::before { display: none; }
.story-category:hover { color: var(--gt-black); }

.story-description {
    font-size: 1.02rem;
    color: #444;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-style: normal;
}

.story-byline {
    display: flex;
    gap: 1.25rem;
    align-items: baseline;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gt-border);
}

.author-name {
    font-family: var(--gt-font-ui);
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gt-black);
}

.publish-date {
    font-family: var(--gt-font-ui);
    font-size: 0.73rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--gt-meta);
}

.story a { text-decoration: none; color: inherit; }

/* Story sidebar */
.story-sidebar {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gt-border);
}

.story-sidebar .story-headline { font-size: 1.3rem; }
.story-sidebar .story-description { font-size: 0.92rem; }

/* ================================================================
   11. DROP CAP
   ================================================================ */
.drop-cap {
    font-family: var(--gt-font-display);
    font-size: 3.2rem;
    font-weight: 900;
    float: left;
    margin: 0.05em 0.1em 0 0;
    line-height: 2.8rem;
    padding-top: 0.4rem;
    color: var(--gt-black);
}

/* ================================================================
   12. IMAGES
   ================================================================ */
.story-image {
    margin: 1.75rem 0;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 1px solid var(--gt-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gt-font-ui);
    color: #aaa;
    font-size: 0.85rem;
}

.story-image figcaption {
    font-family: var(--gt-font-ui);
    font-size: 0.78rem;
    color: var(--gt-meta);
    margin-top: 0.45rem;
    line-height: 1.4;
    font-style: italic;
}

/* ================================================================
   13. PULL QUOTES
   ================================================================ */
.pull-quote {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gt-black);
    border-bottom: 1px solid var(--gt-black);
    text-align: center;
}

.pull-quote blockquote {
    font-family: var(--gt-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--gt-black);
    margin-bottom: 0.75rem;
}

.pull-quote blockquote::before {
    content: '\201C';
    font-family: var(--gt-font-display);
    font-size: 2.5rem;
    color: var(--gt-red);
    display: block;
    margin-bottom: 0.25rem;
}

.pull-quote cite {
    font-family: var(--gt-font-ui);
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gt-meta);
    font-style: normal;
}

/* ================================================================
   14. STORY BODY
   ================================================================ */
.story-body {
    color: var(--gt-text);
    text-align: justify;
}

.story-body p { margin-bottom: 1.5rem; }

/* ================================================================
   15. SIDEBAR MODULES
   ================================================================ */
.sidebar-module {
    padding: 0;
    border-top: 2px solid var(--gt-black);
    padding-top: 1rem;
}

.module-title {
    font-family: var(--gt-font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--gt-black);
}

.module-list { list-style: none; }

.module-list li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--gt-border);
    padding-bottom: 0.75rem;
}

.module-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.module-list a {
    font-family: var(--gt-font-display);
    font-size: 0.95rem;
    color: var(--gt-black);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.2s;
}

.module-list a:hover { color: var(--gt-red); text-decoration: none; }

/* Sidebar compact cards (Top Stories) */
.sb-section-hdr {
    font-family: var(--gt-font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    background: var(--gt-black);
    padding: 0.42rem 0.8rem;
    margin-bottom: 0.5rem;
}

.sb-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gt-border);
    align-items: flex-start;
}

.sb-card:last-child { border-bottom: none; }

.sb-card-text { flex: 1; min-width: 0; }

.sb-cat {
    font-family: var(--gt-font-ui);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.sb-headline {
    font-family: var(--gt-font-display);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.32;
    margin: 0 0 0.25rem;
}

.sb-headline a { color: var(--gt-black); text-decoration: none; transition: color 0.2s; }
.sb-headline a:hover { color: var(--gt-red); }

.sb-meta {
    font-family: var(--gt-font-ui);
    font-size: 0.66rem;
    color: #aaa;
}

.sb-card-img { flex-shrink: 0; }
.sb-card-img img { width: 80px; height: 70px; object-fit: cover; display: block; }

/* Editors' Picks */
.module-picks {
    list-style: none;
    counter-reset: picks-counter;
    padding: 0;
    margin: 0;
}

.module-picks li {
    counter-increment: picks-counter;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--gt-border);
}

.module-picks li:last-child { border-bottom: none; padding-bottom: 0; }

.module-picks li::before {
    content: counter(picks-counter);
    font-family: var(--gt-font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ddd;
    line-height: 1;
    min-width: 1.6rem;
    flex-shrink: 0;
}

.module-picks a {
    font-family: var(--gt-font-display);
    font-size: 0.86rem;
    color: var(--gt-black);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.32;
    transition: color 0.2s;
    display: block;
}

.module-picks a:hover { color: var(--gt-red); }

.mp-meta {
    display: block;
    font-family: var(--gt-font-ui);
    font-size: 0.64rem;
    margin-top: 0.2rem;
}

/* Sidebar button */
.sidebar-btn {
    width: 100%;
    background: var(--gt-red);
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    font-family: var(--gt-font-ui);
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    transition: background 0.2s;
}

.sidebar-btn:hover { background: var(--gt-black); }

/* ================================================================
   16. SECONDARY GRID
   ================================================================ */
.secondary-section {
    max-width: var(--gt-max-width);
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-top: 3px solid var(--gt-black);
}

.secondary-divider {
    border-top: 3px double var(--gt-black);
    margin-bottom: 2rem;
}

.secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.story-secondary {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gt-border);
}

.story-secondary:last-child { border-bottom: none; }
.story-secondary:hover { background: transparent; }

.story-secondary .story-headline { font-size: 1.2rem; margin-bottom: 0.75rem; }
.story-secondary .story-description { font-size: 0.92rem; }

/* ================================================================
   17. SECTION PAGES (politics, world, etc.)
   ================================================================ */
.section-hero {
    max-width: var(--gt-max-width);
    margin: 0 auto;
    padding: 3.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    border-bottom: 2px solid var(--gt-border);
}

.section-hero-content { grid-column: 1; }

.section-accent {
    width: 100px;
    height: 260px;
    grid-column: 2;
    border-radius: 2px;
}

.section-description {
    font-family: var(--gt-font-body);
    font-size: 1.12rem;
    line-height: 1.65;
    color: #555;
    margin-top: 0.75rem;
}

/* ================================================================
   18. FOOTER
   ================================================================ */
.footer {
    background: var(--gt-black);
    margin-top: 3.5rem;
}

.footer-top-rule {
    border-top: 1px solid #333;
    background: var(--gt-black);
}

.footer-content {
    max-width: var(--gt-max-width);
    margin: 0 auto;
    padding: 2.75rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: var(--gt-font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.7rem; }

.footer-links a {
    font-family: var(--gt-font-ui);
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-text {
    font-family: var(--gt-font-ui);
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.subscribe-btn {
    background: var(--gt-red);
    color: #fff;
    border: none;
    padding: 0.7rem 1.4rem;
    font-family: var(--gt-font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    max-width: fit-content;
}

.subscribe-btn:hover { background: var(--gt-red-dark); }

.copyright {
    max-width: var(--gt-max-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    border-top: 1px solid #333;
    font-family: var(--gt-font-ui);
    font-size: 0.75rem;
    color: #555;
    text-align: center;
}

.footer-bottom-rule {
    border-top: 1px solid #333;
    background: var(--gt-black);
}

/* ================================================================
   19. ARTICLE PAGE
   ================================================================ */
.article-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.75rem 2rem;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
}

.full-article { grid-column: 1; }
.article-sidebar-col { grid-column: 2; }

.article-header { margin-bottom: 1.75rem; }

.article-title {
    font-family: var(--gt-font-display);
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.12;
    margin: 0.75rem 0;
    color: var(--gt-black);
}

.article-subtitle {
    font-family: var(--gt-font-body);
    font-size: 1.15rem;
    line-height: 1.55;
    color: #444;
    margin-bottom: 1.75rem;
    font-style: italic;
    border-left: 3px solid var(--gt-red);
    padding-left: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid var(--gt-border);
    border-bottom: 1px solid var(--gt-border);
    padding: 1.25rem 0;
    gap: 1.5rem;
}

.author-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gt-border);
}

.author-name-text {
    font-family: var(--gt-font-ui);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.author-title {
    font-family: var(--gt-font-ui);
    font-size: 0.72rem;
    color: var(--gt-meta);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

.article-dates {
    text-align: right;
    font-family: var(--gt-font-ui);
    font-size: 0.73rem;
    color: var(--gt-meta);
}

.update-date {
    font-family: var(--gt-font-ui);
    font-size: 0.73rem;
    color: var(--gt-meta);
    margin: 0.2rem 0;
    letter-spacing: 0.04em;
}

.article-featured-image { margin: 2rem 0; }
.article-featured-image img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.article-featured-image figcaption { font-family: var(--gt-font-ui); font-size: 0.78rem; color: var(--gt-meta); margin-top: 0.4rem; font-style: italic; }

/* Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    margin: 2rem 0;
}
.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* Article body */
.article-body {
    font-size: 1.02rem;
    line-height: 1.82;
}

.article-body p { margin-bottom: 1.4rem; }

.article-body h2 {
    font-family: var(--gt-font-display);
    font-size: 1.6rem;
    margin: 2.25rem 0 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gt-border);
}

.article-body ul, .article-body ol { margin: 1.25rem 0 1.25rem 2rem; }
.article-body li { margin-bottom: 0.5rem; }

.article-body p:first-child::first-letter {
    font-family: var(--gt-font-display);
    font-size: 3.8rem;
    font-weight: 900;
    float: left;
    margin: 0.08em 0.1em 0 0;
    line-height: 2.8rem;
    color: var(--gt-black);
}

.article-list {
    margin: 1.25rem 0 1.25rem 2.5rem;
    list-style-type: disc;
}

.article-list li { margin-bottom: 0.75rem; line-height: 1.65; }

.sidebar-box {
    background: var(--gt-bg-light);
    border-left: 4px solid var(--gt-red);
    padding: 1.25rem;
    margin: 2rem 0;
}

.sidebar-box h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.sidebar-box p { font-size: 0.92rem; margin-bottom: 0.6rem; }

/* Article footer */
.article-footer { margin-top: 2.5rem; }

.article-footer-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--gt-red) 0%, transparent 50%, var(--gt-red) 100%);
    margin-bottom: 1.25rem;
}

.article-footer-text {
    font-family: var(--gt-font-ui);
    font-size: 0.82rem;
    color: var(--gt-meta);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Tags */
.article-tags {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gt-border);
}

.tag-label {
    font-family: var(--gt-font-ui);
    font-size: 0.63rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.tag {
    display: inline-block;
    font-family: var(--gt-font-ui);
    font-size: 0.78rem;
    background: var(--gt-bg-light);
    color: var(--gt-text);
    padding: 0.45rem 0.85rem;
    margin: 0 0.35rem 0.4rem 0;
    border: 1px solid var(--gt-border);
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--gt-red);
    color: #fff;
    border-color: var(--gt-red);
}

/* Article sidebar */
.article-sidebar,
.article-sidebar-col {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 5rem;
    align-self: start;
}

.related-section {
    background: #fff;
    border: 1px solid var(--gt-border);
    padding: 1.5rem;
}

.related-title {
    font-family: var(--gt-font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--gt-black);
    border-bottom: 2px solid var(--gt-black);
    padding-bottom: 0.5rem;
}

.related-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gt-border-light);
}

.related-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.related-item h4 {
    font-family: var(--gt-font-display);
    font-size: 0.95rem;
    line-height: 1.32;
    margin: 0.3rem 0;
    font-weight: 700;
}

.related-item h4 a { color: var(--gt-black); text-decoration: none; }
.related-item h4 a:hover { color: var(--gt-red); }

.related-byline {
    font-family: var(--gt-font-ui);
    font-size: 0.72rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Subscribe section */
.subscribe-section {
    background: var(--gt-black);
    color: #fff;
    padding: 1.75rem;
    text-align: center;
}

.subscribe-title {
    font-family: var(--gt-font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.subscribe-text {
    font-family: var(--gt-font-body);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    color: #ccc;
}

.subscribe-box {
    background: var(--gt-black);
    color: #fff;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.subscribe-box-title {
    font-family: var(--gt-font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.subscribe-box p { font-size: 0.88rem; color: #ccc; margin-bottom: 1rem; }

.subscribe-box button {
    width: 100%;
    background: #fff;
    color: var(--gt-black);
    border: none;
    padding: 0.8rem;
    font-family: var(--gt-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.subscribe-box button:hover { background: var(--gt-red); color: #fff; }

.subscribe-btn-large {
    background: var(--gt-red);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    font-family: var(--gt-font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.subscribe-btn-large:hover { background: var(--gt-red-dark); }

/* Article loading */
.article-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #aaa;
    font-family: var(--gt-font-ui);
    grid-column: 1 / -1;
}

/* Reading progress bar */
#read-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gt-red);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 6px rgba(196, 30, 58, 0.45);
}

/* ================================================================
   20. ACTIONS, LIKES, SHARES
   ================================================================ */
.article-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--gt-border);
    border-bottom: 1px solid var(--gt-border);
    margin: 1.75rem 0;
    flex-wrap: wrap;
}

.action-label {
    font-family: var(--gt-font-ui);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gt-meta);
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: none;
    border: 1.5px solid var(--gt-border);
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    font-family: var(--gt-font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    color: #444;
}

.like-btn:hover { border-color: var(--gt-red); color: var(--gt-red); }
.like-btn.liked { background: var(--gt-red); border-color: var(--gt-red); color: #fff; }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1.5px solid var(--gt-border);
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-family: var(--gt-font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    color: #444;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.share-btn:hover { border-color: var(--gt-black); color: var(--gt-black); }
.share-btn.tw:hover { border-color: #1DA1F2; color: #1DA1F2; }
.share-btn.fb:hover { border-color: #1877F2; color: #1877F2; }
.share-btn.cp:hover { border-color: #27ae60; color: #27ae60; }
.share-btn.cp.copied { background: #27ae60; border-color: #27ae60; color: #fff; }

/* ================================================================
   21. COMMENTS
   ================================================================ */
.comments-section {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 3px double var(--gt-black);
}

.comments-title {
    font-family: var(--gt-font-display);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1.75rem;
}

.comment-form {
    background: var(--gt-bg-light);
    border: 1px solid var(--gt-border);
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
}

.comment-form-label {
    font-family: var(--gt-font-ui);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--gt-meta);
    margin-bottom: 0.6rem;
    display: block;
}

.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }

.c-input, .c-textarea {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--gt-font-body);
    font-size: 0.92rem;
    transition: border-color 0.2s;
}

.c-input:focus, .c-textarea:focus { outline: none; border-color: var(--gt-red); }

.c-textarea { min-height: 90px; resize: vertical; margin-bottom: 0.75rem; }

.c-submit {
    background: var(--gt-black);
    color: #fff;
    border: none;
    padding: 0.7rem 1.75rem;
    font-family: var(--gt-font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s;
}

.c-submit:hover { background: var(--gt-red); }

.c-success {
    color: #27ae60;
    font-family: var(--gt-font-ui);
    font-size: 0.82rem;
    margin-top: 0.4rem;
    display: none;
}

.comment-item {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--gt-border);
}

.comment-author {
    font-family: var(--gt-font-ui);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comment-date {
    font-family: var(--gt-font-ui);
    font-size: 0.72rem;
    color: #aaa;
    margin-left: 0.75rem;
}

.comment-text {
    font-family: var(--gt-font-body);
    font-size: 0.92rem;
    margin-top: 0.4rem;
    line-height: 1.6;
}

.no-comments {
    font-family: var(--gt-font-ui);
    font-size: 0.88rem;
    color: #aaa;
    font-style: italic;
    padding: 0.75rem 0;
}

/* ================================================================
   22. SEARCH
   ================================================================ */
#searchInput {
    font-family: var(--gt-font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--gt-black);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

#searchResults { animation: fadeSearchIn 0.2s ease; }

@keyframes fadeSearchIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   23. AD BANNERS
   ================================================================ */
.gt-ad-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    text-align: center;
}

.gt-ad-banner .ad-label {
    font-family: var(--gt-font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gt-meta);
    display: block;
    margin-bottom: 0.4rem;
}

.gt-ad-item {
    display: inline-block;
    position: relative;
    max-width: 728px;
    width: 100%;
}

.gt-ad-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gt-ad-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.gt-ad-item .ad-message {
    font-family: var(--gt-font-ui);
    font-size: 0.82rem;
    color: var(--gt-text);
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* Sidebar ad */
.gt-sidebar-ad {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--gt-bg-light);
    border: 1px solid var(--gt-border);
    border-radius: 4px;
}

.gt-sidebar-ad .ad-label {
    font-family: var(--gt-font-ui);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gt-meta);
    display: block;
    margin-bottom: 0.5rem;
}

.gt-sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.gt-sidebar-ad .ad-message {
    font-family: var(--gt-font-ui);
    font-size: 0.8rem;
    color: var(--gt-text);
    margin-top: 0.4rem;
    line-height: 1.4;
}

.gt-sidebar-ad a {
    text-decoration: none;
    color: inherit;
    display: block;
}

@media (max-width: 480px) {
    .gt-ad-banner { padding: 0.75rem; }
    .gt-sidebar-ad { margin-top: 1.5rem; padding: 0.75rem; }
}

/* ================================================================
   24. RESPONSIVE DESIGN
   ================================================================ */

/* -- Large tablets / Small desktop (≤1100px) -- */
@media (max-width: 1100px) {
    .container {
        max-width: 100%;
        padding: 2rem 1.5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .story-hero, .sidebar { grid-column: 1; }
    .secondary-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .article-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    .article-sidebar, .article-sidebar-col { grid-column: 1; position: static; }
    .section-hero { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
    .section-accent { display: none; }
}

/* -- Tablets (≤768px) -- */
@media (max-width: 768px) {
    /* Topbar & header */
    .gt-topbar { position: relative !important; top: auto !important; }
    .gt-topbar-inner { padding: 0.4rem 1rem; }
    .gt-topbar-center { display: none; }
    .gt-topbar-right a:not(:last-child):not(.gt-lang-btn) { display: none; }
    .gt-header { position: sticky !important; top: 0 !important; }
    .gt-header-inner { padding: 0 1rem; }
    .gt-logo { padding: 0.7rem 0 0.4rem; }
    .gt-logo-text { font-size: 2.5rem !important; }
    .gt-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: var(--gt-black);
        z-index: 100;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
    .gt-nav.open { display: flex; }
    .gt-nav .nav-item,
    .gt-nav a.nav-item {
        padding: 0.85rem 1.5rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        border-left: 3px solid transparent;
        color: rgba(255,255,255,0.8) !important;
    }
    .gt-nav .nav-item:hover,
    .gt-nav a.nav-item:hover {
        border-left-color: var(--gt-red) !important;
        color: #fff !important;
        background: rgba(255,255,255,0.05) !important;
    }
    .gt-nav .nav-item::after,
    .gt-nav a.nav-item::after { display: none !important; }
    .gt-hamburger { display: flex; position: absolute; right: 1rem; top: 0.7rem; }
    .gt-search-btn { display: none; }
    .gt-theme-toggle { right: 3.2rem; top: 0.7rem; font-size: 1.1rem; color: #fff; }

    /* Ticker */
    .ticker-bar { position: relative !important; top: auto !important; padding: 0.4rem 0 !important; }
    .ticker-content { padding: 0 0.6rem !important; gap: 0.5rem !important; }
    .ticker-label { font-size: 0.55rem !important; padding: 0.2rem 0.45rem !important; }
    .ticker-text { font-size: 0.68rem !important; }

    /* Typography */
    .title { font-size: 1.8rem !important; }
    .tagline { font-size: 0.65rem !important; }

    /* Layout */
    .container { padding: 1.25rem 1rem !important; gap: 1.5rem !important; }
    .story-headline { font-size: 1.35rem !important; }
    .story-description { font-size: 0.88rem !important; }

    .secondary-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
    .footer-content { grid-template-columns: 1fr !important; gap: 1.5rem !important; padding: 2rem 1.25rem !important; }

    /* Article page */
    .article-container { padding: 1.5rem 1rem !important; }
    .article-title { font-size: 1.8rem !important; }
    .article-subtitle { font-size: 1rem !important; }
    .article-meta { flex-direction: column; gap: 0.75rem; }
    .article-dates { text-align: left; }

    /* Section hero */
    .section-hero { padding: 2rem 1rem !important; }
    .secondary-section { padding: 1.5rem 1rem !important; }

    /* Drop cap */
    .drop-cap { font-size: 2.2rem !important; line-height: 1.8rem; }

    /* Images */
    .image-placeholder { height: 220px !important; }

    /* Comments */
    .comments-title { font-size: 1.3rem !important; }
    .comment-form { padding: 1rem !important; }

    /* Actions */
    .article-actions { gap: 0.4rem !important; }
    .like-btn, .share-btn { padding: 0.4rem 0.75rem !important; font-size: 0.72rem !important; }

    /* Contact page */
    .contact-wrapper { grid-template-columns: 1fr !important; gap: 2rem !important; padding: 2rem 1.25rem !important; }
    .contact-hero h1 { font-size: 2rem !important; }
    .contact-form-box { padding: 1.5rem !important; }
    .form-row { grid-template-columns: 1fr !important; }

    /* About page */
    .page-body { padding: 2rem 1.25rem !important; }
    .page-hero h1 { font-size: 2rem !important; }
    .team-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }
    .mission-box { padding: 1.5rem !important; }

    /* Touch targets */
    .gt-nav .nav-item { min-height: 44px; }
    .gt-social a { min-width: 36px; min-height: 36px; }
    .contact-social-links a { min-width: 44px; min-height: 44px; }

    /* Main nav (legacy) */
    .main-nav { flex-direction: column; gap: 0; }
    .nav-item { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gt-border); text-align: left; }
}

/* -- Small phones (≤480px) -- */
@media (max-width: 480px) {
    html { font-size: 14px !important; }

    .gt-logo-text { font-size: 2rem !important; }
    .gt-logo-tagline { font-size: 0.52rem !important; letter-spacing: 0.15em !important; }
    .gt-logo { padding: 0.6rem 0 0.4rem !important; }
    .gt-social a { width: 22px; height: 22px; font-size: 0.72rem; }

    /* Hero grid */
    .gt-hero-card:first-child .gt-hero-title { font-size: 1.6rem !important; line-height: 1.18 !important; }
    .gt-hero-card:not(:first-child) .gt-hero-title { font-size: 1rem !important; }
    .gt-hero-caption { padding: 1rem !important; }
    .gt-hero-cat { font-size: 0.55rem !important; }

    /* Today's news cards */
    .gt-today-thumb { width: 70px !important; height: 56px !important; }
    .gt-today-title { font-size: 0.85rem !important; }

    /* Featured cards */
    .gt-feat-img { height: 110px !important; }
    .gt-feat-title { font-size: 0.84rem !important; }

    /* Category columns */
    .gt-cat-feat-img { height: 160px !important; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 0.5rem !important; }

    .title { font-size: 1.5rem !important; }
    .masthead { padding: 1rem 0.5rem; }

    .container { padding: 1rem 0.75rem !important; }
    .story-headline { font-size: 1.15rem !important; line-height: 1.3 !important; }
    .story-description { font-size: 0.82rem !important; }
    .story-byline { flex-direction: column; gap: 0.3rem !important; }

    .footer-content { padding: 1.5rem 0.75rem !important; }
    .footer-column { padding: 0.75rem 0; }
    .copyright { padding: 1rem 0.75rem !important; font-size: 0.72rem !important; }

    .article-container { padding: 1rem 0.75rem !important; }
    .article-title { font-size: 1.5rem !important; }
    .article-body { font-size: 0.92rem !important; }

    .section-hero { padding: 1.5rem 0.75rem !important; }
    .section-title { font-size: 0.78rem !important; }

    .sb-headline { font-size: 0.82rem !important; }
    .sb-card-img img { width: 65px !important; height: 55px !important; }

    .drop-cap { font-size: 2rem !important; line-height: 1.5rem; }

    .ticker-bar { padding: 0.35rem 0 !important; }
    .ticker-content { padding: 0 0.5rem !important; }
    .ticker-label { font-size: 0.5rem !important; padding: 0.2rem 0.4rem !important; }
    .ticker-text {
        animation: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.65rem !important;
        max-width: calc(100vw - 80px) !important;
    }

    .contact-hero { padding: 2rem 1rem !important; }
    .contact-hero h1 { font-size: 1.6rem !important; }
    .contact-wrapper { padding: 1.5rem 0.75rem !important; }
    .contact-form-box { padding: 1.2rem !important; }

    .page-hero { padding: 2rem 1rem !important; }
    .page-hero h1 { font-size: 1.6rem !important; }
    .page-body { padding: 1.5rem 0.75rem !important; }
    .team-grid { grid-template-columns: 1fr !important; }

    .subscribe-btn { width: 100%; text-align: center; }
    .subscribe-btn-large { padding: 0.75rem 1.5rem !important; font-size: 0.72rem !important; }
}

/* ================================================================
   24. DARK THEME
   ================================================================ */
[data-theme="dark"] {
    --gt-black: #e8e8e8;
    --gt-dark: #d0d0d0;
    --gt-text: #d4d4d4;
    --gt-meta: #a0a0a0;
    --gt-border: #333;
    --gt-border-light: #2a2a2a;
    --gt-bg-warm: #1a1a1a;
    --gt-bg-light: #1e1e1e;
    --gt-white: #121212;
    --gt-link: #5b9bd5;
    --gt-link-hover: #7ab8e8;
}
[data-theme="dark"] body,
[data-theme="dark"] { background-color: #121212; color: #d4d4d4; }
[data-theme="dark"] .gt-header { background: #1a1a1a; border-bottom-color: #333; }
[data-theme="dark"] .gt-topbar { background: #0d0d0d; }
[data-theme="dark"] .gt-logo-text { color: #fff; }
[data-theme="dark"] .gt-logo-tagline { color: #999; }
[data-theme="dark"] .gt-nav .nav-item { color: #ccc; }
[data-theme="dark"] .gt-nav .nav-item:hover,
[data-theme="dark"] .gt-nav .nav-item.nav-active { color: #fff; }
[data-theme="dark"] .gt-search-btn { color: #ccc; }
[data-theme="dark"] .gt-search-expand { background: #1a1a1a; border-color: #333; }
[data-theme="dark"] .gt-search-expand input { background: #252525; color: #ddd; border-color: #444; }
[data-theme="dark"] .gt-hamburger { color: #ccc; }
[data-theme="dark"] .footer { background: #0d0d0d; }
[data-theme="dark"] .footer-title { color: #ccc; }
[data-theme="dark"] .footer-links a { color: #999; }
[data-theme="dark"] .footer-links a:hover { color: #fff; }
[data-theme="dark"] .footer-text { color: #888; }
[data-theme="dark"] .copyright { color: #666; border-top-color: #333; }

/* Cards, articles, grids */
[data-theme="dark"] .gt-today-card { background: #1a1a1a; border-color: #333; }
[data-theme="dark"] .gt-today-card:hover { background: #222; }
[data-theme="dark"] .gt-today-title { color: #e0e0e0; }
[data-theme="dark"] .gt-feat-card { background: #1a1a1a; border-color: #333; }
[data-theme="dark"] .gt-feat-title { color: #e0e0e0; }
[data-theme="dark"] .gt-cat-feat-title { color: #e0e0e0; }
[data-theme="dark"] .gt-cat-col-list li a { color: #d0d0d0; }
[data-theme="dark"] .gt-cat-col-list li { border-color: #333; }
[data-theme="dark"] .gt-cat-col-list { border-color: #333; }
[data-theme="dark"] .gt-today-grid { border-color: #333; }
[data-theme="dark"] .gt-section-hdr { border-top-color: #c41e3a; }
[data-theme="dark"] .gt-load-more-btn { background: #1a1a1a; color: #c41e3a; border-color: #c41e3a; }
[data-theme="dark"] .gt-load-more-btn:hover { background: #c41e3a; color: #fff; }

/* Article page */
[data-theme="dark"] .full-article { color: #d4d4d4; }
[data-theme="dark"] .article-title { color: #eee; }
[data-theme="dark"] .article-subtitle { color: #aaa; }
[data-theme="dark"] .article-body p { color: #ccc; }
[data-theme="dark"] .article-actions { background: #1a1a1a; border-color: #333; }
[data-theme="dark"] .like-btn { color: #ccc; border-color: #444; background: #1e1e1e; }
[data-theme="dark"] .like-btn:hover { background: #2a2a2a; }
[data-theme="dark"] .share-btn-social { background: #252525; color: #ccc; }
[data-theme="dark"] .comments-section { background: #1a1a1a; }
[data-theme="dark"] .comment-item { border-color: #333; }
[data-theme="dark"] .comment-form { background: #1e1e1e; }
[data-theme="dark"] .c-input, [data-theme="dark"] .c-textarea { background: #252525; color: #ddd; border-color: #444; }
[data-theme="dark"] .subscribe-box { background: #1a1a1a; }
[data-theme="dark"] .related-title { color: #ddd; }
[data-theme="dark"] .related-item h4 a { color: #d0d0d0; }

/* Category & other pages */
[data-theme="dark"] .page-hero { background: #1a1a1a; }
[data-theme="dark"] .page-hero h1 { color: #eee; }
[data-theme="dark"] .story-card { background: #1a1a1a; border-color: #333; }
[data-theme="dark"] .story-card:hover { background: #222; }
[data-theme="dark"] .story-card h3, [data-theme="dark"] .story-card h3 a { color: #e0e0e0; }
[data-theme="dark"] .story-card p { color: #aaa; }
[data-theme="dark"] .section-label { border-bottom-color: #333; }

/* Dark mode toggle button */
.gt-theme-toggle {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.6); font-size: 1.15rem;
    padding: 0 0.75rem;
    display: flex; align-items: center; justify-content: center;
    transition: color .2s;
    position: absolute;
    right: 4.2rem;
    top: 0.8rem;
    z-index: 10;
    line-height: 1;
}
.gt-theme-toggle:hover { color: #fff; }

/* ================================================================
   25. PRINT
   ================================================================ */
@media print {
    .ticker-bar, .gt-topbar, .gt-nav, .gt-hamburger, .gt-search-btn,
    .footer, .share-buttons-row, .article-actions { display: none; }
    body { background: #fff; color: #000; }
    a { color: #000; }
    .story-body { column-count: 2; column-gap: 2rem; }
}
