* {
  box-sizing: border-box;
}

:root {
  --tdm-primary: #0d6efd;
  --tdm-primary-hover: #0b5ed7;
  --tdm-text: #1a1a1a;
  --tdm-text-muted: #64748b;
  --tdm-bg: #ffffff;
  --tdm-bg-subtle: #f8fafc;
  --tdm-border: #e2e8f0;
  --tdm-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --tdm-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tdm-text);
  background-color: var(--tdm-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  --tdm-text: #f1f5f9;
  --tdm-text-muted: #94a3b8;
  --tdm-bg: #0f172a;
  --tdm-bg-subtle: #1e293b;
  --tdm-border: #334155;
  --tdm-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  --tdm-card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.25);
  background-color: var(--tdm-bg);
  color: var(--tdm-text);
}

a {
  color: var(--tdm-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--tdm-primary-hover);
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 24px 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

p {
  margin: 0 0 24px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-pill, .post-card .card-category,
.ticker-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.breaking-pill {
  background: #dc2626;
  color: #ffffff;
}

.hot-pill {
  background: #f59e0b;
  color: #ffffff;
}

.card, .trending-widget, .video-card, .extension-card-horizontal, .post-card {
  background: var(--tdm-bg);
  border-radius: 0;
  box-shadow: var(--tdm-card-shadow);
  border: 1px solid var(--tdm-border);
  padding: 16px 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover, .trending-widget:hover, .video-card:hover, .extension-card-horizontal:hover, .post-card:hover {
  box-shadow: var(--tdm-card-shadow-hover);
  border-color: var(--tdm-border);
}

body.dark-mode .card, body.dark-mode .trending-widget, body.dark-mode .video-card, body.dark-mode .extension-card-horizontal, body.dark-mode .post-card {
  background: var(--tdm-bg-subtle);
  border-color: var(--tdm-border);
}
body.dark-mode .card:hover, body.dark-mode .trending-widget:hover, body.dark-mode .video-card:hover, body.dark-mode .extension-card-horizontal:hover, body.dark-mode .post-card:hover {
  box-shadow: var(--tdm-card-shadow-hover);
}

.pre-header {
  background-color: #2d2d2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .pre-header {
  background-color: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.05);
}

.pre-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 20px;
}

.pre-header-navigation ul,
.pre-header-navigation #pre-header-menu,
.pre-header-navigation .menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 16px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}
.pre-header-navigation li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.pre-header-navigation a {
  display: block !important;
  padding: 2px 0 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 400 !important;
  font-size: 11px !important;
  transition: color 0.2s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}
.pre-header-navigation a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

.site-header {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease, position 0.3s ease;
}
.site-header.is-sticky-header {
  position: sticky;
  top: 0;
}

body.dark-mode .site-header {
  background: #111111;
  border-color: #333333;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.site-logo a {
  display: flex;
  align-items: center;
  color: #333333;
  text-decoration: none;
  gap: 10px;
}
.site-logo .logo-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 28px;
  height: 21px;
  color: currentColor;
}
.site-logo .logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.site-logo .logo-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-right: 2px;
}
.site-logo .logo-badge {
  display: inline-block;
  padding: 3px 3px;
  background: #ffd700;
  color: #000000;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.2;
}
.site-logo .site-title {
  font-size: 24px;
  font-weight: 700;
}

body.dark-mode .site-logo a {
  color: #ffffff;
}

.site-tagline {
  margin: 0;
  font-size: 14px;
  color: #777777;
  font-style: italic;
}

body.dark-mode .site-tagline {
  color: #aaaaaa;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-button {
  background: var(--tdm-primary);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease;
}
.header-button:hover {
  background: rgb(0, 76.5, 153);
  opacity: 1;
}

.dark-mode-toggle {
  background: none;
  border: none;
  color: #333333;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.dark-mode-toggle:hover {
  opacity: 0.7;
}
.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
}
.dark-mode-toggle .icon-dark {
  display: none;
}

body.dark-mode .dark-mode-toggle {
  color: #ffffff;
}
body.dark-mode .dark-mode-toggle .icon-light {
  display: none;
}
body.dark-mode .dark-mode-toggle .icon-dark {
  display: block;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: #333333;
  transition: all 0.3s ease;
}

body.dark-mode .mobile-menu-toggle span {
  background: #ffffff;
}

.primary-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}
.primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: center;
}
.primary-navigation a {
  display: block;
  padding: 8px 0;
  color: #333333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
  text-decoration: none;
}
.primary-navigation a:hover {
  color: var(--tdm-primary);
  opacity: 1;
}

body.dark-mode .primary-navigation a {
  color: #ffffff;
}

.nav-primary {
  display: flex;
  align-items: center;
}

.secondary-navigation {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 48px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.secondary-navigation.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

body.dark-mode .secondary-navigation {
  background: #111111;
  border-color: #333333;
}
body.dark-mode .secondary-navigation.is-sticky {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.secondary-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.secondary-navigation.is-sticky .secondary-nav-container {
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.secondary-nav-items,
.secondary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: center;
}
.secondary-nav-items li,
.secondary-navigation ul li {
  margin: 0;
}
.secondary-nav-items a,
.secondary-navigation ul a {
  display: block;
  padding: 16px 0;
  color: #333333;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
  text-decoration: none;
}
.secondary-nav-items a:hover, .secondary-nav-items a.active,
.secondary-navigation ul a:hover,
.secondary-navigation ul a.active {
  color: var(--tdm-primary);
  opacity: 1;
}

body.dark-mode .secondary-nav-items a,
body.dark-mode .secondary-navigation ul a {
  color: #ffffff;
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  .header-right {
    gap: 16px;
  }
  .dark-mode-toggle {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .primary-navigation {
    order: 3;
    width: 100%;
    display: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
  }
  .primary-navigation.active {
    display: block;
  }
  .primary-navigation ul {
    flex-direction: column;
    gap: 0;
  }
  .primary-navigation a {
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
  }
  body.dark-mode .primary-navigation {
    border-color: #333333;
  }
  body.dark-mode .primary-navigation a {
    border-color: #333333;
  }
  .secondary-nav-items {
    flex-wrap: wrap;
    gap: 24px;
  }
  .secondary-nav-items a {
    padding: 16px 0;
    font-size: 14px;
  }
}
/* Newsroom homepage */
.newsroom-greeting-bar {
  background: var(--tdm-bg-subtle);
  border-bottom: 1px solid var(--tdm-border);
  padding: 12px 0;
}

body.dark-mode .newsroom-greeting-bar {
  background: var(--tdm-bg-subtle);
  border-color: var(--tdm-border);
}

.newsroom-greeting-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.newsroom-greeting-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--tdm-text);
}

body.dark-mode .newsroom-greeting-text {
  color: var(--tdm-text);
}

.newsroom-briefing-link {
  display: none; /* hidden for now */
}

.newsroom-briefing-link:hover {
  color: var(--tdm-primary-hover);
}

.site-main-newsroom .main-content-wrapper {
  padding-top: 24px;
}

.hero-block-full {
  width: 100%;
  padding: 24px 0 48px;
}

.hero-block-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-with-stories {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

.hero-main {
  min-width: 0;
}

.hero-main-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-main-image-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-main-image-placeholder {
  width: 100%;
  height: 100%;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
}

body.dark-mode .hero-main-image-placeholder {
  background: #2a2a2a;
  color: #9ca3af;
}

.hero-main-category {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--tdm-primary);
  color: #fff;
}

.hero-main-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
  color: var(--tdm-text);
}

.hero-main-link:hover .hero-main-title {
  color: var(--tdm-primary);
}

.hero-main-meta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tdm-text-muted);
}

body.dark-mode .hero-main-title {
  color: var(--tdm-text);
}

body.dark-mode .hero-main-meta {
  color: var(--tdm-text-muted);
}

.hero-side-stories {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--tdm-border);
  padding-left: 28px;
}

body.dark-mode .hero-side-stories {
  border-color: var(--tdm-border);
}

.hero-side-item {
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--tdm-border);
}

.hero-side-item:last-child {
  border-bottom: none;
}

body.dark-mode .hero-side-item {
  border-color: var(--tdm-border);
}

.hero-side-link {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.hero-side-item-first .hero-side-link {
  flex-direction: column;
  gap: 12px;
}

.hero-side-image-top {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.hero-side-item-first .hero-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-side-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 68px;
  overflow: hidden;
  order: 2;
}

.hero-side-content {
  flex: 1;
  min-width: 0;
}

.hero-side-content-with-thumb {
  order: 1;
}

.hero-side-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px 0;
  color: var(--tdm-text);
}

.hero-side-item-first .hero-side-title {
  font-size: 19px;
  font-weight: 800;
}

.hero-side-link:hover .hero-side-title {
  color: var(--tdm-primary);
}

body.dark-mode .hero-side-title {
  color: var(--tdm-text);
}

.hero-side-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--tdm-text-muted);
}

body.dark-mode .hero-side-meta {
  color: var(--tdm-text-muted);
}

@media (max-width: 992px) {
  .hero-with-stories {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-side-stories {
    border-left: none;
    border-top: 1px solid #e5e5e5;
  padding-left: 0;
  padding-top: 24px;
  }

  body.dark-mode .hero-side-stories {
    border-color: #333333;
  }

  .hero-main-title {
    font-size: 26px;
  }
}

/* Category block – BI style (2 features + 4 list + ad) */
.category-block-bi {
  margin-bottom: 48px;
}

.category-block-bi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e5e5;
}

body.dark-mode .category-block-bi-header {
  border-color: #333333;
}

.category-block-bi-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: #0f0f0f;
  letter-spacing: -0.02em;
}

body.dark-mode .category-block-bi-title {
  color: #ffffff;
}

.category-block-bi-more {
  font-size: 14px;
  font-weight: 700;
  color: #0f0f0f;
  text-decoration: none;
}

.category-block-bi-more:hover {
  color: var(--tdm-primary);
}

body.dark-mode .category-block-bi-more {
  color: #ffffff;
}

.category-block-bi-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.category-block-bi-main {
  min-width: 0;
}

.category-block-bi-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.category-block-bi-card {
  margin: 0;
}

.category-block-bi-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-block-bi-card-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 16px;
}

.category-block-bi-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-block-bi-card-image-placeholder {
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
}

body.dark-mode .category-block-bi-card-image-placeholder {
  background: #2a2a2a;
  color: #9ca3af;
}

.category-block-bi-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: #0f0f0f;
}

.category-block-bi-card-link:hover .category-block-bi-card-title {
  color: var(--tdm-primary);
}

body.dark-mode .category-block-bi-card-title {
  color: #ffffff;
}

.category-block-bi-card-meta {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

body.dark-mode .category-block-bi-card-meta {
  color: #9ca3af;
}

.category-block-bi-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.category-block-bi-list-item {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

body.dark-mode .category-block-bi-list-item {
  border-color: #333333;
}

.category-block-bi-list-link {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.category-block-bi-list-content {
  flex: 1;
  min-width: 0;
}

.category-block-bi-list-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px 0;
  color: #0f0f0f;
}

.category-block-bi-list-link:hover .category-block-bi-list-title {
  color: var(--tdm-primary);
}

body.dark-mode .category-block-bi-list-title {
  color: #ffffff;
}

.category-block-bi-list-meta {
  font-size: 12px;
  color: #6b7280;
}

body.dark-mode .category-block-bi-list-meta {
  color: #9ca3af;
}

.category-block-bi-list-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.category-block-bi-list-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-block-bi-sidebar {
  position: sticky;
  top: calc(80px + 24px);
}

.category-block-bi-ad-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 8px;
}

.category-block-bi-ad-widget img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .category-block-bi-body {
    grid-template-columns: 1fr;
  }

  .category-block-bi-features {
    grid-template-columns: 1fr;
  }

  .category-block-bi-list {
    grid-template-columns: 1fr;
  }

  .category-block-bi-sidebar {
    position: static;
  }
}

.section-title-newsroom {
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding-bottom: 10px !important;
  margin-bottom: 24px !important;
  border-bottom: 2px solid var(--tdm-primary) !important;
  color: var(--tdm-text) !important;
}

body.dark-mode .section-title-newsroom {
  color: var(--tdm-text) !important;
  border-color: var(--tdm-primary) !important;
}

.latest-headlines-section {
  margin-bottom: 48px;
}

.latest-headlines-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--tdm-border);
  border-radius: 0;
  overflow: hidden;
}

body.dark-mode .latest-headlines-list {
  border-color: var(--tdm-border);
}

.latest-headlines-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--tdm-border);
}

.latest-headlines-item:last-child {
  border-bottom: none;
}

body.dark-mode .latest-headlines-item {
  border-color: var(--tdm-border);
}

.latest-headlines-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.latest-headlines-link:hover {
  background: var(--tdm-bg-subtle);
}

body.dark-mode .latest-headlines-link:hover {
  background: var(--tdm-bg-subtle);
}

.latest-headlines-time {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--tdm-text-muted);
  text-transform: uppercase;
}

body.dark-mode .latest-headlines-time {
  color: var(--tdm-text-muted);
}

.latest-headlines-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.latest-headlines-link:hover .latest-headlines-title {
  color: var(--tdm-primary);
}

.ticker-section {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 24px 0;
  overflow: hidden;
}

body.dark-mode .ticker-section {
  background: #111111;
  border-color: #333333;
}

.ticker-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 48px;
}

.ticker-block {
  flex: 1;
}

.ticker-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  color: #777777;
}

body.dark-mode .ticker-label {
  color: #aaaaaa;
}

.ticker-items-wrapper {
  position: relative;
}

.ticker-items {
  display: flex;
  gap: 24px;
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.ticker-item {
  display: none;
  flex-direction: column;
  min-width: 280px;
  width: 280px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 0;
  transition: transform 0.2s ease, opacity 0.3s ease;
  text-decoration: none;
  color: #333333;
  overflow: hidden;
}
.ticker-item:hover {
  transform: translateY(-2px);
  opacity: 1;
}

body.dark-mode .ticker-item {
  color: #ffffff;
}

.ticker-item-header {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 0;
}
.ticker-item-header .ticker-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ticker-item-header .ticker-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
}
.ticker-item-header .ticker-pill {
  position: absolute;
  top: 8px;
  left: 8px;
}

body.dark-mode .ticker-item-header .ticker-thumb-placeholder {
  background: #333333;
}

.ticker-item-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticker-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticker-date {
  font-size: 11px;
  color: #777777;
  white-space: nowrap;
}

body.dark-mode .ticker-date {
  color: #aaaaaa;
}

.ticker-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--tdm-primary);
  width: 0%;
  transition: width linear;
  z-index: 10;
  border-radius: 0;
}

@media (max-width: 768px) {
  .ticker-container {
    flex-direction: column;
    gap: 24px;
  }
  .ticker-item {
    min-width: 240px;
  }
}
.featured-post {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
}
.featured-post .featured-image-wrapper {
  flex: 1;
  position: relative;
}
.featured-post .featured-image-wrapper .featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 0;
}
.featured-post .featured-image-wrapper .featured-image-placeholder {
  width: 100%;
  height: 400px;
  background: #e0e0e0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777777;
}
.featured-post .featured-image-wrapper .category-pill, .featured-post .featured-image-wrapper .post-card .card-category, .post-card .featured-post .featured-image-wrapper .card-category {
  position: absolute;
  top: 24px;
  left: 24px;
}

.site-main-newsroom .featured-post .featured-image-wrapper .category-pill {
  background: var(--tdm-primary);
  color: #fff;
}

.site-main-newsroom .featured-post .featured-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-main-newsroom .featured-post .read-more-link {
  color: var(--tdm-primary);
  font-weight: 700;
}
.featured-post .featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-post .featured-title {
  font-size: 36px;
  margin-bottom: 24px;
}
.featured-post .featured-title a {
  color: #333333;
  text-decoration: none;
}
.featured-post .featured-title a:hover {
  color: var(--tdm-primary);
  opacity: 1;
}
.featured-post body.dark-mode .featured-title a {
  color: #ffffff;
}
.featured-post .featured-excerpt {
  font-size: 18px;
  color: #777777;
  margin-bottom: 24px;
}
.featured-post body.dark-mode .featured-excerpt {
  color: #aaaaaa;
}
.featured-post .read-more-link {
  color: var(--tdm-primary);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 992px) {
  .featured-post {
    flex-direction: column;
  }
  .featured-post .featured-image-wrapper .featured-image,
  .featured-post .featured-image-wrapper .featured-image-placeholder {
    height: 300px;
  }
  .featured-post .featured-title {
    font-size: 28px;
  }
}
.post-card {
  padding: 0;
  overflow: hidden;
}
.post-card .card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.post-card .card-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}
.post-card .card-image-wrapper .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card .card-image-wrapper .card-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777777;
}
.post-card:hover .card-image {
  transform: scale(1.05);
}
.post-card .card-content {
  padding: 24px;
}
.post-card .card-category {
  background: var(--tdm-primary);
  color: #ffffff;
  margin-bottom: 16px;
}

.site-main-newsroom .post-card .card-category {
  background: var(--tdm-primary);
}
.post-card .card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
  line-height: 1.3;
}
.post-card .card-excerpt {
  font-size: 14px;
  color: #777777;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card body.dark-mode .card-excerpt {
  color: #aaaaaa;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.extensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 768px) {
  .extensions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .extensions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1600px) {
  .extensions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.extension-card-horizontal {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.extension-card-horizontal:hover {
  transform: translateY(-2px);
}

.extension-card-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.extension-icon {
  flex-shrink: 0;
}
.extension-icon .extension-icon-img {
  width: 64px;
  height: 64px;
  border-radius: 0;
  object-fit: cover;
}
.extension-icon .extension-icon-placeholder {
  width: 64px;
  height: 64px;
  background: #e0e0e0;
  border-radius: 0;
}
body.dark-mode .extension-icon .extension-icon-placeholder {
  background: #333333;
}

.extension-info {
  flex: 1;
  min-width: 0;
}
.extension-info .extension-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.extension-info .extension-title a {
  color: #333333;
  text-decoration: none;
}
.extension-info .extension-title a:hover {
  color: var(--tdm-primary);
}
body.dark-mode .extension-info .extension-title a {
  color: #ffffff;
}
.extension-info .extension-publisher {
  font-size: 14px;
  color: #777777;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}
body.dark-mode .extension-info .extension-publisher {
  color: #aaaaaa;
}

.extension-action {
  flex-shrink: 0;
}

.extension-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  color: #333333;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.extension-download-btn:hover {
  color: var(--tdm-primary);
  border-color: var(--tdm-primary);
}
.extension-download-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.extension-download-btn:hover svg {
  transform: translateX(2px);
}

body.dark-mode .extension-download-btn {
  color: #ffffff;
  border-color: #333333;
}
body.dark-mode .extension-download-btn:hover {
  color: var(--tdm-primary);
  border-color: var(--tdm-primary);
}

.post-small {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}
.post-small:last-child {
  border-bottom: none;
}
body.dark-mode .post-small {
  border-color: #333333;
}
.post-small .small-link {
  display: flex;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.post-small .small-image-wrapper {
  flex-shrink: 0;
}
.post-small .small-image-wrapper .small-image {
  width: 110px;
  height: 70px;
  object-fit: cover;
  border-radius: 0;
}
.post-small .small-image-wrapper .small-image-placeholder {
  width: 110px;
  height: 70px;
  background: #e0e0e0;
  border-radius: 0;
}
.post-small .small-content {
  flex: 1;
}
.post-small .small-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  line-height: 1.3;
}
.post-small .small-date {
  font-size: 14px;
  color: #777777;
}
.post-small body.dark-mode .small-date {
  color: #aaaaaa;
}

.video-card {
  padding: 0;
  overflow: hidden;
}
.video-card .video-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.video-card .video-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.video-card .video-image-wrapper {
  aspect-ratio: 1;
}
.video-card .video-image-wrapper .video-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-card .video-image-wrapper .video-image-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777777;
}
.video-card .video-image-wrapper .video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  transition: background 0.3s ease;
}
.video-card:hover .video-image {
  transform: scale(1.05);
}
.video-card:hover .video-play-icon {
  background: rgba(0, 0, 0, 0.9);
}
.video-card .video-content {
  padding: 24px;
}
.video-card .video-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.video-card .video-date {
  font-size: 14px;
  color: #777777;
}
.video-card body.dark-mode .video-date {
  color: #aaaaaa;
}

.main-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.content-area {
  min-width: 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px 0;
  padding-bottom: 24px;
  border-bottom: 2px solid #e0e0e0;
}

body.dark-mode .section-title {
  border-color: #333333;
}

.breaking-news-section {
  margin-bottom: 48px;
}

.breaking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-now-section {
  margin-bottom: 48px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .popular-grid {
    grid-template-columns: 1fr;
  }
}
.app-section {
  background: #f5f5f5;
  padding: 60px;
  margin: 48px 0;
  text-align: center;
  border-radius: 0;
}

body.dark-mode .app-section {
  background: #1a1a1a;
}

.app-content {
  max-width: 600px;
  margin: 0 auto;
}

.app-title {
  font-size: 32px;
  margin-bottom: 24px;
}

.app-text {
  font-size: 18px;
  color: #777777;
  margin-bottom: 32px;
}

body.dark-mode .app-text {
  color: #aaaaaa;
}

.app-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #ffffff;
  border-radius: 0;
  text-decoration: none;
  color: #333333;
  transition: transform 0.2s ease;
}
.app-badge:hover {
  transform: translateY(-2px);
  opacity: 1;
}
.app-badge img {
  height: 40px;
  width: auto;
}
.app-badge .app-badge-text {
  font-weight: 600;
}

body.dark-mode .app-badge {
  background: #2a2a2a;
  color: #ffffff;
}

.extensions-cta {
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.extensions-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0.2) 30%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.extensions-cta:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}
.extensions-cta:hover::before {
  opacity: 1;
}
.extensions-cta:hover .app-title {
  color: #3b82f6;
  transition: color 0.3s ease;
}
.extensions-cta:hover .app-text {
  color: #60a5fa;
  transition: color 0.3s ease;
}
.extensions-cta:hover .app-badge {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.extensions-cta .app-content {
  position: relative;
  z-index: 2;
}

body.dark-mode .extensions-cta:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
}
body.dark-mode .extensions-cta:hover .app-badge {
  background: #3b82f6;
  color: white;
}

.editor-choice-section {
  margin-bottom: 48px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .editor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}
.category-section {
  margin-bottom: 48px;
}

.category-featured {
  margin-bottom: 32px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.world-section {
  margin-bottom: 48px;
}

.world-featured {
  margin-bottom: 32px;
}

.world-more {
  margin-top: 32px;
}

.world-more-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.world-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.world-item {
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}
.world-item:last-child {
  border-bottom: none;
}
body.dark-mode .world-item {
  border-color: #333333;
}
.world-item a {
  text-decoration: none;
  color: inherit;
}
.world-item a h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.world-item a time {
  font-size: 14px;
  color: #777777;
}
body.dark-mode .world-item a time {
  color: #aaaaaa;
}

.video-section {
  margin-bottom: 48px;
}

.video-main {
  margin-bottom: 32px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
.sidebar {
  position: sticky;
  top: calc(80px + 24px);
  align-self: start;
}

.trending-widget {
  padding: 24px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.trending-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.trending-item .trending-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 16px;
}
.trending-item .trending-thumb-placeholder {
  width: 100%;
  height: 150px;
  background: #e0e0e0;
  border-radius: 0;
  margin-bottom: 16px;
}
.trending-item body.dark-mode .trending-thumb-placeholder {
  background: #333333;
}
.trending-item .trending-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 992px) {
  .main-content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    margin-top: 48px;
  }
}
.site-footer {
  background: #111111;
  color: #ffffff;
  padding: 48px 0 32px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #333333;
}

.footer-column h3.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: #ffffff;
}
.footer-column p {
  font-size: 14px;
  color: #aaaaaa;
  line-height: 1.6;
  margin: 0;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-menu li {
  margin-bottom: 16px;
}
.footer-menu li a {
  color: #aaaaaa;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-menu li a:hover {
  color: #ffffff;
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
}

.footer-logo {
  margin-bottom: 16px;
}
.footer-logo a {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  gap: 10px;
}
.footer-logo .logo-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 28px;
  height: 21px;
  color: currentColor;
}
.footer-logo .logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-logo .logo-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  margin-right: 2px;
}
.footer-logo .logo-badge {
  display: inline-block;
  padding: 3px 3px;
  background: #ffd700;
  color: #000000;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.2;
}
.footer-logo .site-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.footer-tagline {
  font-size: 14px;
  color: #aaaaaa;
  font-style: italic;
  margin: 0 0 24px 0;
}

.footer-copyright {
  font-size: 14px;
  color: #777777;
  margin: 0;
}

@media (max-width: 992px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Mobile layout fixes: prevent overflow, tune padding */
@media (max-width: 768px) {
  .main-content-wrapper {
    padding: 1.25rem 16px;
  }
  .single-article-content {
    padding: 1.25rem 16px !important;
  }
  .article-top-ad-container,
  .article-bottom-ad-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .entry-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .entry-content img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 992px) {
  .pre-header-container,
  .header-container,
  .secondary-nav-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/*# sourceMappingURL=main.css.map */
