/* =============================================================
   TIMELY INDIA CORE — main.css
   Mobile-first | Performance-first | Discover-ready
============================================================= */

/* ── CSS Variables ── */
:root {
  --red:        #CC0000;
  --red-dark:   #990000;
  --red-light:  #ff4444;
  --black:      #111111;
  --text:       #222222;
  --text-light: #555555;
  --text-muted: #888888;
  --border:     #e5e5e5;
  --bg:         #f5f5f5;
  --white:      #ffffff;
  --radius:     4px;
  --shadow:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 2px 12px rgba(0,0,0,.12);
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --transition: .2s ease;
  --container:  1200px;
  --content:    780px;
}

/* ── 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-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-size: .875rem;
  font-weight: 700;
  border-radius: 0 0 4px 0;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Container ── */
.ti-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .ti-container { padding: 0 24px; } }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
#masthead {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Top Bar */
.ti-topbar {
  background: var(--red);
  padding: 6px 0;
  display: none;
}
@media (min-width: 992px) { .ti-topbar { display: block; } }
.ti-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8125rem;
  color: rgba(255,255,255,.85);
}
.ti-topbar a { color: rgba(255,255,255,.85); }
.ti-topbar a:hover { color: #fff; }
.ti-topbar-date { letter-spacing: .02em; }
.ti-topbar-links { display: flex; gap: 16px; }

/* Header Main */
.ti-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

/* Logo */
.ti-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
}
.ti-logo a:hover { color: var(--red); }
.ti-logo img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }
.ti-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--red);
  letter-spacing: -.01em;
  line-height: 1;
}
@media (min-width: 992px) { .ti-logo img { height: 52px; } }

/* Header Actions */
.ti-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ti-search-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.ti-search-toggle:hover { background: var(--bg); color: var(--red); }
.ti-search-toggle svg { width: 20px; height: 20px; }

/* Desktop Nav */
.ti-primary-nav { display: none; }
@media (min-width: 992px) {
  .ti-primary-nav {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  .ti-primary-nav a {
    display: block;
    padding: 8px 14px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
  }
  .ti-primary-nav a:hover,
  .ti-primary-nav .current-menu-item > a,
  .ti-primary-nav .current-menu-ancestor > a {
    color: var(--red);
    background: #fff5f5;
  }
  /* Dropdown */
  .ti-primary-nav .menu-item-has-children { position: relative; }
  .ti-primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 200;
  }
  .ti-primary-nav .sub-menu a {
    padding: 10px 16px;
    border-radius: 0;
    font-size: .875rem;
    border-bottom: 1px solid var(--border);
  }
  .ti-primary-nav .sub-menu li:last-child a { border-bottom: none; }
  .ti-primary-nav .menu-item-has-children:hover > .sub-menu { display: block; }
}

/* Secondary Nav (Scrolling ticker below header) */
.ti-secondary-nav-wrap {
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.ti-secondary-nav-wrap::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, #fff);
  pointer-events: none;
}
.ti-secondary-nav {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}
.ti-secondary-nav::-webkit-scrollbar { display: none; }
.ti-secondary-nav a {
  display: block;
  padding: 9px 16px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.ti-secondary-nav a:hover,
.ti-secondary-nav .current-menu-item a {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Mobile Menu Toggle */
.ti-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  color: var(--text);
  transition: background var(--transition);
}
.ti-menu-toggle:hover { background: var(--bg); }
.ti-menu-toggle svg { width: 24px; height: 24px; }
@media (min-width: 992px) { .ti-menu-toggle { display: none; } }

/* Mobile Slideout Menu */
.ti-mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.ti-mobile-menu-overlay.is-open { display: block; }
.ti-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--red);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.ti-mobile-menu.is-open { transform: translateX(0); }
.ti-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.ti-mobile-menu-logo { color: #fff; font-size: 1.25rem; font-weight: 800; font-family: var(--font-serif); }
.ti-mobile-close { color: #fff; opacity: .8; padding: 4px; }
.ti-mobile-close:hover { opacity: 1; }
.ti-mobile-close svg { width: 24px; height: 24px; }
.ti-mobile-nav { padding: 8px 0; flex: 1; }
.ti-mobile-nav a {
  display: block;
  padding: 14px 20px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition), color var(--transition);
}
.ti-mobile-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.ti-mobile-nav .sub-menu a { padding-left: 36px; font-size: .9375rem; opacity: .85; }

/* Search Drawer */
.ti-search-drawer {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.ti-search-drawer.is-open { display: block; }
.ti-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}
.ti-search-form input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: .9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.ti-search-form input:focus { border-color: var(--red); }
.ti-search-form button {
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: .875rem;
  font-weight: 700;
  transition: background var(--transition);
}
.ti-search-form button:hover { background: var(--red-dark); }

/* Mobile Bottom Nav */
.ti-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 97;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
@media (min-width: 992px) { .ti-bottom-nav { display: none; } }
.ti-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--text-light);
  gap: 3px;
  transition: color var(--transition);
}
.ti-bottom-nav a:hover,
.ti-bottom-nav a.active { color: var(--red); }
.ti-bottom-nav svg { width: 22px; height: 22px; }

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; padding: 20px 0 40px; }
@media (min-width: 992px) { #content { padding: 28px 0 60px; } }

/* With Sidebar */
.ti-content-sidebar {
  display: grid;
  gap: 28px;
}
@media (min-width: 992px) {
  .ti-content-sidebar {
    grid-template-columns: 1fr 320px;
    gap: 32px;
  }
}

/* ══════════════════════════════════════════
   HOMEPAGE
══════════════════════════════════════════ */

/* Hero Post */
.ti-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--black);
}
.ti-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: .85;
  transition: transform .4s ease, opacity .3s;
}
.ti-hero:hover .ti-hero-img { transform: scale(1.03); opacity: .75; }
.ti-hero-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.ti-hero-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}
.ti-hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
@media (min-width: 768px) { .ti-hero-title { font-size: 1.625rem; } }
.ti-hero-meta {
  margin-top: 8px;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Homepage Grid — Latest Posts */
.ti-latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .ti-latest-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* Post Card */
.ti-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.ti-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ti-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.ti-card-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .35s ease;
}
.ti-card:hover .ti-card-img-wrap img { transform: scale(1.05); }
.ti-card-body { padding: 12px; }
.ti-card-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 6px;
}
.ti-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ti-card-title a { color: inherit; }
.ti-card-title a:hover { color: var(--red); }
.ti-card-meta {
  margin-top: 8px;
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ti-card-meta svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Horizontal Card (list style) */
.ti-card-h {
  display: flex;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.ti-card-h:hover { box-shadow: var(--shadow-md); }
.ti-card-h .ti-card-img-wrap {
  flex-shrink: 0;
  width: 110px;
  border-radius: var(--radius);
}
.ti-card-h .ti-card-img-wrap img { aspect-ratio: 4/3; border-radius: var(--radius); }
.ti-card-h .ti-card-body { padding: 0; flex: 1; min-width: 0; }
.ti-card-h .ti-card-title { font-size: .875rem; -webkit-line-clamp: 3; }
@media (min-width: 480px) {
  .ti-card-h .ti-card-img-wrap { width: 130px; }
  .ti-card-h .ti-card-title { font-size: .9375rem; }
}

/* Section Heading */
.ti-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.ti-section-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--black);
  position: relative;
  padding-left: 14px;
}
.ti-section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 20px;
  background: var(--red);
  border-radius: 2px;
}
.ti-see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 3px;
  transition: background var(--transition);
  white-space: nowrap;
}
.ti-see-all:hover { background: var(--red-dark); color: #fff; }

/* Section */
.ti-section { margin-bottom: 32px; }

/* Two-col category section */
.ti-cat-2col {
  display: grid;
  gap: 12px;
}
@media (min-width: 600px) { .ti-cat-2col { grid-template-columns: 1fr 1fr; } }

/* Web Stories Carousel */
.ti-stories-wrap { position: relative; }
.ti-stories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.ti-stories-scroll::-webkit-scrollbar { display: none; }
.ti-story-card {
  flex-shrink: 0;
  width: 140px;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--black);
}
@media (min-width: 480px) { .ti-story-card { width: 160px; } }
.ti-story-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  opacity: .8;
  transition: opacity .3s;
}
.ti-story-card:hover img { opacity: .65; }
.ti-story-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
}
.ti-story-card-title {
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════ */
.ti-single { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .ti-single { padding: 32px; } }

/* Breadcrumb */
.ti-breadcrumb {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.ti-breadcrumb a { color: var(--text-light); }
.ti-breadcrumb a:hover { color: var(--red); }
.ti-breadcrumb .sep { color: var(--border); }

/* Category Badge */
.ti-post-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

/* Post Title */
.ti-post-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}
@media (min-width: 768px) { .ti-post-title { font-size: 2rem; } }

/* Excerpt/Summary Box */
.ti-post-excerpt {
  background: #f8f9fa;
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  font-size: .9375rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Author Bar */
.ti-author-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.ti-author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}
.ti-author-info { flex: 1; min-width: 0; }
.ti-author-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ti-verified { color: #1da1f2; width: 16px; height: 16px; flex-shrink: 0; }
.ti-author-date { font-size: .8125rem; color: var(--text-muted); margin-top: 1px; }

/* Join Buttons */
.ti-join-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.ti-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}
.ti-join-btn:hover { border-color: currentColor; }
.ti-join-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.ti-join-btn.whatsapp { color: #25d366; }
.ti-join-btn.whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.ti-join-btn.google-news { color: #4285f4; }
.ti-join-btn.google-news:hover { background: #4285f4; color: #fff; border-color: #4285f4; }
.ti-join-btn.follow { color: var(--text-light); }

/* Featured Image */
.ti-post-thumb {
  margin: 0 -20px 20px;
  border-radius: 0;
}
@media (min-width: 768px) { .ti-post-thumb { margin: 0 -32px 28px; } }
.ti-post-thumb img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}
.ti-post-thumb figcaption {
  padding: 8px 20px;
  font-size: .8125rem;
  color: var(--text-muted);
  font-style: italic;
  background: #fafafa;
  border-top: 1px solid var(--border);
}

/* Ad Slot */
.ti-ad-slot {
  background: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: var(--radius);
  padding: 12px;
  margin: 20px 0;
  text-align: center;
  font-size: .75rem;
  color: #999;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Post Content */
.ti-entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}
.ti-entry-content h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--black);
  margin: 28px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  line-height: 1.3;
}
.ti-entry-content h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--black);
  margin: 24px 0 10px;
}
.ti-entry-content h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}
.ti-entry-content p { margin-bottom: 16px; }
.ti-entry-content ul, .ti-entry-content ol {
  margin: 0 0 16px 20px;
  list-style: revert;
}
.ti-entry-content li { margin-bottom: 6px; }
.ti-entry-content a { color: var(--red); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.ti-entry-content a:hover { color: var(--red-dark); }
.ti-entry-content strong { font-weight: 700; color: var(--black); }
.ti-entry-content blockquote {
  border-left: 4px solid var(--red);
  background: #fff8f8;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}
.ti-entry-content blockquote p { margin: 0; }
.ti-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .9375rem;
  overflow-x: auto;
  display: block;
}
.ti-entry-content table th {
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: .875rem;
}
.ti-entry-content table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}
.ti-entry-content table tr:nth-child(even) td { background: #fafafa; }
.ti-entry-content img { border-radius: var(--radius); margin: 16px 0; }
.ti-entry-content figure { margin: 20px 0; }
.ti-entry-content figcaption { font-size: .8125rem; color: var(--text-muted); text-align: center; margin-top: 6px; font-style: italic; }

/* Tags */
.ti-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.ti-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f0f0;
  color: var(--text-light);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background var(--transition), color var(--transition);
}
.ti-tag:hover { background: var(--red); color: #fff; }
.ti-tags-label { font-size: .8125rem; font-weight: 700; color: var(--text-light); }

/* Share Buttons */
.ti-share-section {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ti-share-label {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ti-share-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.ti-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ti-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  transition: opacity var(--transition), transform var(--transition);
}
.ti-share-btn:hover { opacity: .9; transform: translateY(-2px); color: #fff; }
.ti-share-btn svg { width: 17px; height: 17px; fill: currentColor; }
.ti-share-btn.facebook { background: #1877f2; }
.ti-share-btn.whatsapp { background: #25d366; }
.ti-share-btn.twitter { background: #000; }
.ti-share-btn.copy-link { background: #555; }
.ti-share-btn.more { background: #7c3aed; }

/* Floating Share (Desktop) */
.ti-float-share {
  display: none;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 6px;
  z-index: 90;
}
@media (min-width: 1280px) { .ti-float-share { display: flex; } }
.ti-float-share .ti-share-btn {
  width: 42px; height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 6px;
}
.ti-float-share .ti-share-btn span { display: none; }

/* Author Bio Box */
.ti-author-box {
  display: flex;
  gap: 16px;
  background: #f8f9fa;
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  border: 1px solid var(--border);
}
.ti-author-box-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--red);
}
.ti-author-box-info { flex: 1; min-width: 0; }
.ti-author-box-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.ti-author-box-bio {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Join Channel Boxes */
.ti-channel-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  margin: 10px 0;
  gap: 12px;
  transition: border-color var(--transition);
}
.ti-channel-join:hover { border-color: currentColor; }
.ti-channel-join.whatsapp { color: #25d366; }
.ti-channel-join.telegram { color: #0088cc; }
.ti-channel-join-left { display: flex; align-items: center; gap: 10px; }
.ti-channel-join svg { width: 22px; height: 22px; flex-shrink: 0; }
.ti-channel-join-text { font-size: .9375rem; font-weight: 700; color: var(--black); }
.ti-channel-join-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.ti-channel-join-btn:hover { opacity: .85; color: #fff; }
.ti-channel-join.whatsapp .ti-channel-join-btn { background: #25d366; }
.ti-channel-join.telegram .ti-channel-join-btn { background: #0088cc; }

/* Related Posts */
.ti-related { margin: 28px 0 0; }
.ti-related-head {
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  font-size: .9375rem;
  font-weight: 700;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ti-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
@media (min-width: 600px) { .ti-related-grid { grid-template-columns: repeat(3, 1fr); } }
.ti-related-item {
  background: var(--white);
  padding: 0;
  transition: background var(--transition);
}
.ti-related-item:hover { background: #fafafa; }
.ti-related-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.ti-related-item-body { padding: 10px 12px; }
.ti-related-item-title {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ti-related-item-title a { color: inherit; }
.ti-related-item-title a:hover { color: var(--red); }
.ti-related-item-date { font-size: .6875rem; color: var(--text-muted); margin-top: 5px; }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.ti-sidebar { display: flex; flex-direction: column; gap: 24px; }
.ti-widget {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ti-widget-title {
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  font-size: .9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ti-widget-body { padding: 12px; }

/* Trending Widget */
.ti-trending-list { display: flex; flex-direction: column; gap: 0; }
.ti-trending-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.ti-trending-item:last-child { border-bottom: none; padding-bottom: 0; }
.ti-trending-item img {
  width: 72px; height: 54px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.ti-trending-item-body { flex: 1; min-width: 0; }
.ti-trending-item-title {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ti-trending-item-title a { color: inherit; }
.ti-trending-item-title a:hover { color: var(--red); }
.ti-trending-item-date { font-size: .6875rem; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════
   ARCHIVE / CATEGORY
══════════════════════════════════════════ */
.ti-archive-header {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  border-left: 5px solid var(--red);
  box-shadow: var(--shadow);
}
.ti-archive-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--black);
}
.ti-archive-desc {
  font-size: .9375rem;
  color: var(--text-light);
  margin-top: 4px;
}
.ti-archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .ti-archive-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 992px) { .ti-archive-grid { grid-template-columns: repeat(4, 1fr); } }

/* Pagination */
.ti-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.ti-pagination a, .ti-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}
.ti-pagination a:hover { border-color: var(--red); color: var(--red); }
.ti-pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ══════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════ */
.ti-404 {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ti-404-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  font-family: var(--font-serif);
}
.ti-404-title { font-size: 1.5rem; font-weight: 700; margin: 12px 0 8px; }
.ti-404-text { color: var(--text-light); margin-bottom: 24px; }
.ti-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9375rem;
  transition: background var(--transition);
}
.ti-btn-primary:hover { background: var(--red-dark); color: #fff; }

/* ══════════════════════════════════════════
   SEARCH RESULTS
══════════════════════════════════════════ */
.ti-search-header {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.ti-search-header h1 { font-size: 1.25rem; font-weight: 700; }
.ti-search-header h1 span { color: var(--red); }
.ti-no-results {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   STATIC PAGE
══════════════════════════════════════════ */
.ti-page-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) { .ti-page-content { padding: 36px 40px; } }
.ti-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
  font-family: var(--font-serif);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#colophon {
  background: #1a1a1a;
  color: rgba(255,255,255,.75);
  margin-top: auto;
  padding-bottom: 60px; /* space for mobile bottom nav */
}
@media (min-width: 992px) { #colophon { padding-bottom: 0; } }

.ti-footer-widgets {
  padding: 40px 0 32px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .ti-footer-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .ti-footer-widgets { grid-template-columns: 2fr 1fr 1fr; gap: 40px; } }

.ti-footer-logo img { height: 40px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); }
.ti-footer-logo-text { font-size: 1.25rem; font-weight: 800; color: #fff; font-family: var(--font-serif); margin-bottom: 12px; }
.ti-footer-desc { font-size: .875rem; line-height: 1.7; max-width: 340px; }

.ti-footer-col-title {
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.ti-footer-links { display: flex; flex-direction: column; gap: 8px; }
.ti-footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.ti-footer-links a:hover { color: #fff; }
.ti-footer-links a::before { content: '›'; color: var(--red); font-weight: 900; }

/* Social icons */
.ti-footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.ti-social-icon {
  width: 36px; height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition), transform var(--transition);
}
.ti-social-icon:hover { opacity: .85; transform: translateY(-2px); }
.ti-social-icon svg { width: 18px; height: 18px; fill: #fff; }
.ti-social-icon.facebook { background: #1877f2; }
.ti-social-icon.twitter  { background: #000; }
.ti-social-icon.instagram{ background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.ti-social-icon.youtube  { background: #ff0000; }
.ti-social-icon.telegram { background: #0088cc; }
.ti-social-icon.rss      { background: #f26522; }

/* WhatsApp Join Card */
.ti-footer-whatsapp {
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.3);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.ti-footer-whatsapp-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ti-footer-whatsapp-top svg { width: 24px; height: 24px; flex-shrink: 0; }
.ti-footer-whatsapp-title { font-size: .875rem; font-weight: 700; color: #fff; }
.ti-footer-whatsapp-sub { font-size: .75rem; color: rgba(255,255,255,.6); }
.ti-footer-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  padding: 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.ti-footer-whatsapp-btn:hover { background: #1ebe57; color: #fff; }
.ti-footer-whatsapp-btn svg { width: 18px; height: 18px; }

.ti-footer-bottom {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
}
.ti-footer-bottom a { color: rgba(255,255,255,.6); }
.ti-footer-bottom a:hover { color: #fff; }

/* ══════════════════════════════════════════
   COMMENTS
══════════════════════════════════════════ */
.ti-comments-area {
  margin-top: 28px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.ti-comments-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.comment-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.comment-body { background: #f8f9fa; border-radius: var(--radius); padding: 14px 16px; border-left: 3px solid var(--red); }
.comment-author { font-weight: 700; color: var(--black); font-size: .9375rem; }
.comment-meta { font-size: .75rem; color: var(--text-muted); margin-bottom: 8px; }
.comment-content p { font-size: .9375rem; margin: 0; }
/* Comment Form */
.comment-respond { margin-top: 20px; }
.comment-reply-title {
  font-size: 1rem;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.comment-form { background: #f8f9fa; padding: 20px; border-radius: 0 0 var(--radius) var(--radius); border: 1px solid var(--border); border-top: none; }
.comment-form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color var(--transition);
  margin-bottom: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--red); }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form .form-submit { margin: 0; }
.comment-form input[type="submit"] {
  background: var(--red);
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
}
.comment-form input[type="submit"]:hover { background: var(--red-dark); }

/* ══════════════════════════════════════════
   WEB STORIES ARCHIVE
══════════════════════════════════════════ */
.ti-stories-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) { .ti-stories-archive-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .ti-stories-archive-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 992px) { .ti-stories-archive-grid { grid-template-columns: repeat(5, 1fr); } }
.ti-story-archive-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--black);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ti-story-archive-card:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.ti-story-archive-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  opacity: .85;
}
.ti-story-archive-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.ti-story-archive-card-title {
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.ti-badge { display:inline-block; padding:2px 8px; border-radius:2px; font-size:.6875rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.ti-badge-live { background:var(--red); color:#fff; animation: ti-pulse 1.4s infinite; }
@keyframes ti-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.ti-dot-live { width:8px; height:8px; border-radius:50%; background:var(--red); display:inline-block; animation:ti-pulse 1.2s infinite; }
.ti-divider { height:1px; background:var(--border); margin:20px 0; }

/* Scroll to top */
.ti-scroll-top {
  position:fixed;
  bottom:70px; right:16px;
  width:40px; height:40px;
  background:var(--red);
  color:#fff;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  z-index:96;
  opacity:0; pointer-events:none;
  transition:opacity .3s, transform .3s;
  box-shadow:0 2px 8px rgba(204,0,0,.4);
}
.ti-scroll-top.visible { opacity:1; pointer-events:auto; }
.ti-scroll-top:hover { transform:translateY(-3px); color:#fff; }
.ti-scroll-top svg { width:20px; height:20px; }
@media (min-width:992px) { .ti-scroll-top { bottom:24px; } }

/* ── Responsive helpers ── */
@media (max-width:480px) {
  .ti-post-title { font-size:1.375rem; }
  .ti-single { padding:16px; }
  .ti-archive-grid { grid-template-columns:1fr; }
}

/* ── Print ── */
@media print {
  #masthead, .ti-sidebar, .ti-share-section, .ti-related, #colophon,
  .ti-bottom-nav, .ti-float-share, .ti-scroll-top { display:none !important; }
  .ti-content-sidebar { display:block; }
  body { font-size:12pt; color:#000; }
}
