/* Language toggle: html.lang-local hides English spans, shows local spans */
html:not(.lang-local) .lang-local { display: none !important; }
html.lang-local .lang-en { display: none !important; }

[data-lang-toggle] button[data-lang-btn].btn-link[aria-pressed="true"] {
  color: #ffc107 !important;
  border-bottom-color: #ffc107 !important;
}
[data-lang-toggle] button[data-lang-btn].btn-link[aria-pressed="false"] {
  opacity: 0.7;
}

/* ===== admin_dashboard_newsroom_operations ===== */
:root {
  --bs-primary: #b9151e;
  --bs-primary-rgb: 185, 21, 30;
  --bs-secondary: #745b00;
  --bs-body-bg: #f9f9f9;
  --bs-body-font-family: "Source Serif 4", serif;
  --headline-font: "Anton", sans-serif;
  --label-font: "Archivo Narrow", sans-serif;
}

body {
  background-color: var(--bs-body-bg);
  font-family: var(--bs-body-font-family);
}

.font-headline {
  font-family: var(--headline-font);
  text-transform: uppercase;
}
.font-label {
  font-family: var(--label-font);
  text-transform: uppercase;
}

/* Sidebar Styling */
.sidebar {
  min-height: 100vh;
  background: #ffffff;
  border-right: 1px solid #dee2e6;
  z-index: 1000;
}

.nav-pills .nav-link {
  border-radius: 0;
  color: #5b403d;
  font-family: var(--label-font);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.nav-pills .nav-link:hover {
  background-color: #f3f3f3;
}

.nav-pills .nav-link.active {
  background-color: var(--bs-primary);
  color: #ffffff;
}

/* Card Customization */
.card {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
  font-family: var(--label-font);
  font-weight: 700;
  text-transform: uppercase;
}

.stat-card {
  transition: transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-5px);
}

.bg-primary-subtle-custom {
  background-color: #ffdad6;
}
.bg-secondary-subtle-custom {
  background-color: #ffe089;
}

.marquee-container {
  background: #1b1b1b;
  color: #ffffff;
  padding: 8px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1030;
}

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

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--label-font);
  font-size: 0.875rem;
}

.profile-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid #1b1b1b;
}

.main-content {
  padding-bottom: 60px;
}

@media (max-width: 768px) {
  .sidebar {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
  }
}

/* ===== e_paper_reader_interactive_snippet_share ===== */
:root {
  --primary: #b9151e;
  --secondary: #745b00;
  --background: #f9f9f9;
  --surface: #f9f9f9;
  --on-background: #1b1b1b;
  --secondary-container: #fecc02;
  --on-secondary-container: #6e5700;
}

body {
  font-family: "Source Serif 4", serif;
  background-color: var(--background);
  color: var(--on-background);
  overflow-x: hidden;
}

.font-anton {
  font-family: "Anton", sans-serif;
}
.font-archivo {
  font-family: "Archivo Narrow", sans-serif;
}

.navbar {
  background-color: var(--surface);
  border-bottom: 4px solid var(--on-background);
  height: 80px;
}

.navbar-brand {
  font-size: 48px;
  color: var(--primary) !important;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.edition-info {
  border-left: 2px solid var(--on-background);
  padding-left: 1rem;
  line-height: 1.2;
}

.btn-marathi-toggle {
  background-color: var(--secondary-container);
  border: 2px solid var(--on-background);
  border-radius: 0;
  font-weight: 700;
  font-family: "Archivo Narrow";
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-marathi-toggle:hover {
  background-color: var(--primary);
  color: white;
}

.offcanvas-pages {
  width: 320px !important;
  border-right: 2px solid var(--on-background);
}

.page-thumb-active {
  border: 2px solid var(--on-background);
  padding: 4px;
  background: var(--primary);
}

.page-thumb {
  border: 2px solid transparent;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.page-thumb:hover {
  opacity: 1;
  border-color: var(--primary);
}

.epaper-canvas {
  background-color: #e2e2e2;
  min-height: calc(100vh - 80px - 80px); /* Adjust for header/footer */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.main-newspaper-img {
  box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 1);
  border: 2px solid var(--on-background);
  max-width: 900px;
  width: 100%;
}

.marquee-selection {
  position: absolute;
  border: 3px dashed var(--primary);
  background: rgba(185, 21, 30, 0.1);
  z-index: 20;
}

.selection-toolbar {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--on-background);
  display: flex;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.selection-toolbar .btn {
  border-radius: 0;
  color: white;
  border-right: 1px solid #444;
  font-family: "Archivo Narrow";
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.viewer-controls {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--on-background);
  display: flex;
  padding: 4px;
}

.viewer-controls .btn {
  color: white;
  border-radius: 0;
}

.btn-primary-brutalist {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0;
  font-family: "Archivo Narrow";
  font-weight: 700;
}

.trending-aside {
  border-left: 2px solid var(--on-background);
  padding: 2rem;
  background-color: var(--surface);
}

.trending-title {
  font-family: "Anton";
  border-bottom: 4px solid var(--primary);
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer {
  background-color: var(--on-background);
  color: white;
  padding: 2rem 0;
  border-top: 4px solid var(--primary);
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  vertical-align: middle;
}

/* ===== umbrella_adsmedia_article_detail_desktop ===== */
:root {
  --primary: #b9151e;
  --on-primary: #ffffff;
  --surface: #f9f9f9;
  --on-surface: #1b1b1b;
  --surface-container: #eeeeee;
  --surface-container-highest: #e2e2e2;
  --secondary-container: #fecc02;
  --on-secondary-container: #6e5700;
  --outline: #906f6c;
  --outline-variant: #e4beba;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: "Source Serif 4", serif;
}

.font-headline {
  font-family: "Anton", sans-serif;
}
.font-label {
  font-family: "Archivo Narrow", sans-serif;
  text-transform: uppercase;
}

.btn-primary-custom {
  background-color: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--on-surface);
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.25rem;
}
.btn-primary-custom:hover {
  background-color: var(--on-surface);
  color: var(--surface);
}

.nav-link-custom {
  color: var(--on-surface);
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-link-custom:hover {
  background-color: var(--primary);
  color: var(--on-primary);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-marquee {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.social-sidebar {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
  width: 64px;
}

.featured-image-container {
  border: 4px solid var(--on-surface);
  position: relative;
}
.featured-image-container img {
  filter: grayscale(100%) contrast(125%) brightness(90%);
}

.dropcap::first-letter {
  font-family: "Anton", sans-serif;
  font-size: 5rem;
  float: left;
  line-height: 1;
  padding-right: 0.75rem;
  color: var(--primary);
}

blockquote {
  border-left: 8px solid var(--primary);
  border-top: 2px solid var(--on-surface);
  border-bottom: 2px solid var(--on-surface);
  border-right: 2px solid var(--on-surface);
  background-color: #f3f3f3;
  padding: 2rem;
  margin: 2.5rem 0;
}

.sidebar-trending-num {
  font-family: "Anton", sans-serif;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

footer {
  border-top: 8px solid var(--primary);
  background-color: var(--on-surface);
  color: var(--surface);
}

/* ===== umbrella_adsmedia_category_page_desktop ===== */
:root {
  --primary: #b9151e;
  --on-primary: #ffffff;
  --secondary-container: #fecc02;
  --on-secondary-container: #6e5700;
  --surface: #f9f9f9;
  --on-surface: #1b1b1b;
  --surface-variant: #e2e2e2;
  --outline: #906f6c;
  --tertiary: #ad0090;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: "Source Serif 4", serif;
}

.font-headline {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
}
.font-label {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}
.font-body {
  font-family: "Source Serif 4", serif;
}

/* Custom UI Components */
.umbrella-navbar {
  border-bottom: 4px solid var(--on-surface);
  background: white;
  padding: 1rem 0;
}

.brand-text {
  font-family: "Anton", sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  text-decoration: none;
  line-height: 1;
}

.nav-link-custom {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  color: var(--on-surface);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-link-custom.active {
  color: var(--primary);
  border-bottom: 4px solid var(--primary);
}

.lang-switcher {
  border: 2px solid var(--on-surface);
  display: flex;
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  font-family: "Archivo Narrow", sans-serif;
  font-size: 0.75rem;
  border: none;
  background: none;
}

.lang-btn.active {
  background: var(--primary);
  color: var(--on-primary);
  border-right: 2px solid var(--on-surface);
}

.category-badge {
  background: var(--primary);
  color: var(--on-primary);
  padding: 4px 12px;
  font-family: "Archivo Narrow", sans-serif;
  font-size: 0.85rem;
  display: inline-block;
}

.display-title {
  font-family: "Anton", sans-serif;
  font-size: 4rem;
  line-height: 1;
  margin-top: 1rem;
}

.filter-group .btn {
  border: 2px solid var(--on-surface);
  border-radius: 0;
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
}

.filter-group .btn-primary {
  background-color: var(--primary);
  border-color: var(--on-surface);
}

/* Hero Card */
.hero-card {
  border: 4px solid var(--on-surface);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem;
}

/* Bento Cards */
.article-card {
  border: 2px solid var(--on-surface);
  border-radius: 0;
  height: 100%;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.article-card:hover {
  box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1);
}

.article-card .card-img-top {
  border-radius: 0;
  border-bottom: 1px solid var(--on-surface);
}

/* Sidebar */
.ad-box {
  border: 2px solid var(--on-surface);
  background: #eee;
  padding: 1rem;
}

.ad-content {
  background: var(--on-surface);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 2px solid var(--primary);
}

.trending-box {
  border: 4px solid var(--on-surface);
  background: var(--secondary-container);
  padding: 1.5rem;
}

.footer {
  background: var(--on-surface);
  color: white;
  padding-top: 4rem;
  border-top: 8px solid var(--primary);
}

.social-share {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
}

.share-btn {
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid var(--on-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
}

@media (max-width: 992px) {
  .display-title {
    font-size: 2.5rem;
  }
  .social-share {
    display: none;
  }
}

/* ===== umbrella_adsmedia_homepage_desktop ===== */
:root {
  --primary: #b9151e;
  --primary-container: #dd3333;
  --on-primary: #ffffff;
  --secondary: #745b00;
  --secondary-container: #fecc02;
  --on-secondary-container: #6e5700;
  --tertiary: #ad0090;
  --tertiary-container: #d800b4;
  --on-tertiary-container: #fffeff;
  --surface: #f9f9f9;
  --on-surface: #1b1b1b;
  --on-surface-variant: #5b403d;
  --outline: #906f6c;
  --surface-container-highest: #e2e2e2;
  --surface-container: #eeeeee;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: "Source Serif 4", serif;
  font-size: 16px;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-logo {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
}

.font-label {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

/* Brutalist Styles */
.brutal-border {
  border: 2px solid var(--on-surface) !important;
  border-radius: 0;
}
.brutal-shadow {
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
}
.editorial-rule {
  border-bottom: 4px solid var(--on-surface);
}

/* Header */
.navbar {
  border-bottom: 4px solid var(--on-surface);
  padding: 1rem 0;
  background-color: var(--surface) !important;
}
.brand-logo {
  font-size: 2.5rem;
  color: var(--primary) !important;
  line-height: 1;
  letter-spacing: -1px;
  text-decoration: none;
}
.nav-link {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  color: var(--on-surface) !important;
  padding: 0.25rem 0.5rem !important;
}
.nav-link:hover {
  background-color: var(--primary);
  color: var(--on-primary) !important;
}
.nav-link.active {
  border-bottom: 4px solid var(--primary);
  color: var(--primary) !important;
}

/* Brutalist Mobile Menu Toggle */
.navbar-toggler {
  border: 2px solid var(--on-surface) !important;
  border-radius: 0 !important;
  padding: 0.5rem 0.75rem !important;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface);
  transition: all 0.2s ease;
}

.navbar-toggler:hover {
  background-color: var(--primary);
  color: var(--on-primary);
}

.navbar-toggler:not(.collapsed) {
  background-color: var(--on-surface);
  color: var(--surface);
}

.navbar-toggler .material-symbols-outlined {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}

/* Bootstrap default toggle icon override */
.navbar-toggler-icon {
  background-image: none;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
}

.navbar-toggler-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: currentColor;
  transform: translateY(-50%);
}

/* Hero image: reduce fold height on desktop */
.hero-image-wrap {
  max-height: clamp(260px, 40vh, 420px);
}

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

@media (max-width: 991.98px) {
  .hero-image-wrap {
    max-height: 340px;
  }
}

@media (max-width: 767.98px) {
  .hero-image-wrap {
    max-height: none;
  }

  .hero-main-image {
    height: auto;
  }
}

/* Mobile Menu Dropdown */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--surface);
    border-bottom: 2px solid var(--on-surface);
    padding: 1rem 0;
    margin-top: 0.5rem;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .navbar-nav .nav-item {
    border-bottom: 1px solid var(--surface-container);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 0;
  }

  .navbar-nav .nav-link:active,
  .navbar-nav .nav-link:focus {
    background-color: var(--primary);
    color: var(--on-primary) !important;
  }
}

@media (min-width: 992px) {
  .navbar-collapse {
    background-color: transparent;
    border-bottom: 0;
    padding: 0;
    margin-top: 0;
  }

  .navbar-nav {
    flex-direction: row;
    gap: 0;
  }

  .navbar-nav .nav-item {
    border-bottom: 0;
  }
}

/* Marquee */
.news-ticker {
  background-color: var(--on-surface);
  color: var(--surface);
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Sidebar Social */
.social-sidebar {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1040;
}
.social-sidebar .brutal-box {
  background-color: var(--surface-container-highest);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.social-sidebar .vertical-text {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Components */
.badge-politics {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

.home-top-ad {
  overflow: hidden;
  min-height: 72px;
  width: 100%;
}

.home-top-ad-link {
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 72px;
  width: 100%;
  text-decoration: none;
}

.home-top-ad-link img {
  width: 80%;
  min-width: auto;
  height: 510px !important;
  max-height: 510px !important;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: 0 0 80%;
}

.home-top-ad-copy {
  flex: 0 0 20%;
  width: 20%;
  min-height: 72px;
  padding: 0.35rem 0.6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.home-top-ad-copy strong {
  font-family: "Anton", sans-serif;
  font-size: clamp(0.9rem, 1vw, 1.25rem);
  line-height: 1;
  text-transform: uppercase;
  text-align: left;
}

.home-top-ad-copy .font-label {
  font-size: 0.6rem;
}

.hero-share-plugin {
  border: 2px solid var(--on-surface);
  padding: 0.5rem 0.75rem;
  background: var(--surface-container-low);
}

.share-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--on-surface);
  width: 36px;
  height: 36px;
  text-decoration: none;
  color: var(--on-surface);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.share-chip svg {
  display: block;
  flex-shrink: 0;
}

.share-chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
  color: var(--on-surface);
}

.share-ig {
  background: #ffd7eb;
}
.share-x {
  background: #d9d9d9;
}
.share-wa {
  background: #c7ffd8;
}
.share-th {
  background: #ffe7c2;
}

.btn-brutal {
  border: 2px solid var(--on-surface);
  border-radius: 0;
  font-family: "Anton", sans-serif;
  transition: all 0.2s;
}
.btn-brutal:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 1);
}

.weather-card {
  background-color: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.visit-counter-card {
  background: var(--secondary-container);
  color: var(--on-surface);
  padding: 1rem;
}

.visit-counter-header {
  border-bottom: 2px solid var(--on-surface);
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

.visit-counter-header h3 {
  line-height: 1;
}

.visit-counter-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--on-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}

.visit-counter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.visit-counter-stat {
  background: var(--surface);
  border: 2px solid var(--on-surface);
  padding: 0.65rem;
  min-width: 0;
}

.visit-counter-stat span,
.visit-counter-stat strong {
  display: block;
}

.visit-counter-stat span {
  color: var(--on-surface-variant);
  font-size: 0.72rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.visit-counter-stat strong {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
}

.ad-placeholder {
  background-color: var(--surface-container);
  border: 2px dashed var(--on-surface-variant);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* News Card */
.news-card {
  background-color: var(--surface);
  padding: 1rem;
  height: 100%;
  transition: background-color 0.2s;
}
.news-card:hover {
  background-color: var(--surface-container);
}
.news-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin-bottom: 1rem;
}

.hero-value-strip {
  background-color: var(--surface-container);
}

.interest-chip {
  border: 2px solid var(--on-surface);
  padding: 0.3rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.interest-chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
}

.top-story-lead img {
  aspect-ratio: 16/10;
}

.top-story-label {
  background-color: var(--on-surface);
  color: var(--surface);
}

.top-story-lead,
.top-story-mini {
  height: auto;
}

.top-story-mini {
  padding: 0.9rem;
}

.top-story-thumb {
  width: 132px;
  min-width: 132px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 2px solid var(--on-surface);
  margin-bottom: 0;
}

.top-story-number,
.top-story-read-time {
  font-size: 0.7rem;
}

.top-story-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Newsletter */
.newsletter-section {
  background-color: var(--primary-container);
  color: var(--on-primary);
}

.newsletter-form {
  display: flex;
  flex-wrap: nowrap;
}

.newsletter-input {
  border: 4px solid var(--on-surface);
  border-radius: 0;
  padding: 1rem;
}
.newsletter-btn {
  background-color: var(--on-surface);
  color: var(--surface);
  padding: 1rem 2rem;
}

@media (max-width: 767.98px) {
  .home-top-ad,
  .home-top-ad-link,
  .home-top-ad-copy {
    min-height: 0;
  }

  .home-top-ad-link {
    flex-direction: column;
  }

  .home-top-ad img {
    width: 100%;
    min-height: 0;
    max-height: 180px;
    aspect-ratio: 16 / 9;
  }

  .home-top-ad-link img {
    width: 100%;
    flex: 0 0 100%;
    height: auto !important;
    max-height: 180px !important;
  }

  .home-top-ad-copy {
    width: 100%;
    flex: 1 1 auto;
    min-height: 48px;
    padding: 0.35rem 0.5rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
  }

  .home-top-ad-copy strong {
    text-align: left;
    font-size: clamp(0.85rem, 4vw, 1rem);
  }

  .top-story-mini .d-flex {
    flex-direction: column;
  }

  .top-story-thumb {
    width: 100%;
    min-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .newsletter-btn {
    width: 100%;
  }
}

footer {
  background-color: var(--on-surface);
  color: #ccc;
  border-top: 8px solid var(--primary);
}

.material-symbols-outlined {
  vertical-align: middle;
}

/* ===== umbrella_adsmedia_homepage_mobile ===== */
:root {
  --primary-red: #b9151e;
  --on-surface: #1b1b1b;
  --surface: #f9f9f9;
  --secondary-yellow: #fecc02;
  --tertiary-magenta: #ad0090;
}

body {
  font-family: "Source Serif 4", serif;
  background-color: var(--surface);
  color: var(--on-surface);
  overflow-x: hidden;
}

h1,
h2,
h3,
.headline {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
}

.label-bold {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Brutalist Shadow Utility */
.brutal-shadow {
  box-shadow: 4px 4px 0px 0px var(--on-surface);
}

/* Navbar Customization */
.navbar-custom {
  background-color: var(--surface);
  border-bottom: 4px solid var(--on-surface);
  height: 80px;
}

.brand-en {
  font-family: "Anton", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--primary-red);
}

.brand-mr {
  font-family: "Archivo Narrow", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--on-surface);
}

/* Ticker Animation */
.ticker-wrapper {
  background-color: var(--on-surface);
  color: var(--surface);
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  animation: ticker-kf 30s linear infinite;
}

@keyframes ticker-kf {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Hero Article */
.hero-article {
  border: 4px solid var(--on-surface);
  position: relative;
  background: #000;
}

.hero-article img {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
  width: 100%;
  height: 500px;
  object-fit: cover;
  opacity: 0.7;
}

.hero-article:hover img {
  filter: grayscale(0%);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(27, 27, 27, 0.95));
  color: #fff;
}

/* Ad Space */
.ad-space {
  border: 2px dashed #906f6c;
  padding: 1rem;
  text-align: center;
}

.ad-placeholder {
  background-color: #e2e2e2;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--on-surface);
}

/* Section Borders */
.feed-divider {
  border-top: 4px solid var(--on-surface);
  margin: 2rem 0;
}

/* Opinion Card */
.opinion-card {
  background-color: var(--on-surface);
  color: var(--surface);
  border: 4px solid var(--primary-red);
  padding: 2rem;
}

/* Social Sticky (Desktop only) */
.sticky-social {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.social-box {
  background: var(--surface);
  border: 2px solid var(--on-surface);
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 1.5rem;
}

footer {
  background-color: var(--on-surface);
  color: #fff;
  border-top: 8px solid var(--primary-red);
  padding: 4rem 0 2rem;
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */
/* Mobile First Approach */

/* Extra Small Devices (< 576px) */
@media (max-width: 575.98px) {
  body {
    font-size: 14px;
  }

  h1,
  .display-5 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  h2,
  .h2,
  .display-4 {
    font-size: 1.5rem !important;
  }

  h3,
  .h3 {
    font-size: 1.25rem !important;
  }

  .brand-logo,
  .brand-en {
    font-size: 1.25rem !important;
  }

  .navbar,
  .navbar-custom {
    padding: 0.75rem 0 !important;
    height: auto !important;
    min-height: 60px;
  }

  .navbar-toggler {
    padding: 0.5rem 0.75rem !important;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid var(--on-surface) !important;
    background-color: var(--surface) !important;
  }

  .navbar-toggler:hover {
    background-color: var(--primary) !important;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
  }

  .navbar-toggler .material-symbols-outlined {
    font-size: 1.25rem;
  }

  /* Fixed elements hide or reposition on mobile */
  .social-sidebar,
  .sticky-social,
  .social-share {
    display: none !important;
  }

  .hero-article img {
    height: 250px !important;
  }

  .hero-overlay {
    padding: 1rem !important;
  }

  .hero-overlay h1 {
    font-size: 1.5rem !important;
  }

  .hero-overlay h2 {
    font-size: 1rem !important;
  }

  .hero-overlay p {
    font-size: 0.875rem !important;
  }

  .display-title {
    font-size: 2rem !important;
  }

  .category-badge {
    padding: 3px 8px !important;
    font-size: 0.7rem !important;
  }

  .btn-group {
    gap: 0.25rem !important;
  }

  .btn,
  .btn-sm {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
  }

  /* Cards */
  .article-card,
  .hero-card,
  .opinion-card {
    margin-bottom: 1rem !important;
  }

  .article-card {
    height: auto !important;
  }

  /* Spacing adjustments */
  .container,
  .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .row {
    margin-left: -0.375rem !important;
    margin-right: -0.375rem !important;
  }

  .row > * {
    padding-left: 0.375rem !important;
    padding-right: 0.375rem !important;
  }

  /* Main newspaper image responsive */
  .main-newspaper-img {
    max-width: 100% !important;
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 1) !important;
  }

  .epaper-canvas {
    min-height: calc(100vh - 60px) !important;
    padding: 1rem !important;
  }

  .viewer-controls {
    flex-direction: column !important;
    top: 0.5rem !important;
    gap: 0.25rem !important;
  }

  .viewer-controls .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
  }

  .offcanvas-pages {
    width: 100% !important;
  }

  /* Marquee font size */
  .marquee-content,
  .ticker-content {
    font-size: 0.75rem !important;
  }

  /* Newsletter section */
  .newsletter-input {
    padding: 0.75rem !important;
    font-size: 0.875rem !important;
  }

  .newsletter-btn {
    padding: 0.75rem 1rem !important;
  }

  /* Ad placeholder */
  .ad-placeholder {
    height: 80px !important;
  }

  /* Footer */
  footer {
    padding: 2rem 0 1rem !important;
  }

  footer .row {
    gap: 1rem !important;
  }

  .col-md-3 {
    margin-bottom: 1rem;
  }

  /* Badges */
  .badge {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
  }

  /* Opinion card */
  .opinion-card {
    padding: 1.5rem !important;
  }

  .opinion-card h2 {
    font-size: 1.25rem !important;
  }

  /* Section spacing */
  .feed-divider {
    margin: 1rem 0 !important;
    border-top: 2px solid var(--on-surface) !important;
  }

  /* Font scaling */
  .display-1 {
    font-size: 2rem !important;
  }
  .display-2 {
    font-size: 1.75rem !important;
  }
  .display-3 {
    font-size: 1.5rem !important;
  }
  .display-4 {
    font-size: 1.25rem !important;
  }
  .display-5 {
    font-size: 1.75rem !important;
  }
  .display-6 {
    font-size: 1.5rem !important;
  }

  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Navbar brand */
  .navbar-brand {
    margin-right: 0 !important;
  }

  /* Collapse navbar menu */
  .navbar-collapse {
    padding-top: 1rem;
  }

  .nav-item {
    margin-bottom: 0.5rem;
  }

  /* Sidebar trending */
  .trending-aside {
    padding: 1rem !important;
    border-left: none !important;
    border-top: 2px solid var(--on-surface) !important;
  }

  /* Social box inline on mobile */
  .social-box {
    width: auto !important;
    padding: 0.75rem !important;
    gap: 1rem !important;
  }

  /* Buttons flex wrap */
  .btn-toolbar {
    flex-wrap: wrap;
  }

  /* Tables responsive */
  table {
    font-size: 0.875rem !important;
  }

  /* Grid adjustments */
  .col-md-6,
  .col-md-4,
  .col-md-3,
  .col-md-2 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Fixed height removal */
  .hero-article img,
  .main-newspaper-img,
  .card-img,
  .card-img-top {
    height: auto !important;
    aspect-ratio: auto !important;
  }

  /* Stat cards stacking */
  .stat-card {
    margin-bottom: 1rem !important;
  }

  /* Overlay text reduction */
  .hero-overlay {
    background: linear-gradient(transparent, rgba(27, 27, 27, 0.98)) !important;
  }
}

/* Small Devices (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2rem !important;
  }

  .display-title {
    font-size: 2.5rem !important;
  }

  .brand-logo,
  .brand-en {
    font-size: 1.5rem !important;
  }

  .navbar,
  .navbar-custom {
    padding: 0.75rem 0 !important;
    height: auto !important;
    min-height: 65px;
  }

  .hero-article img {
    height: 300px !important;
  }

  .main-newspaper-img {
    max-width: 100% !important;
  }

  .social-sidebar,
  .sticky-social {
    display: none !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .col-md-6 {
    width: 100% !important;
  }

  .display-1 {
    font-size: 2.5rem !important;
  }
  .display-4 {
    font-size: 1.75rem !important;
  }
}

/* Medium Devices (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .display-title {
    font-size: 2.5rem !important;
  }

  .hero-article img {
    height: 350px !important;
  }

  .social-sidebar,
  .sticky-social {
    width: 50px !important;
  }

  .social-sidebar .brutal-box,
  .social-box {
    padding: 0.5rem !important;
  }

  .navbar,
  .navbar-custom {
    padding: 0.75rem 0 !important;
    height: auto !important;
    min-height: 70px;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .main-newspaper-img {
    max-width: 95% !important;
  }

  .display-1 {
    font-size: 3rem !important;
  }
}

/* Large Devices (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .display-title {
    font-size: 3.5rem !important;
  }

  .display-1 {
    font-size: 3.5rem !important;
  }
}

/* Extra Large Devices (1200px+) */
@media (min-width: 1200px) {
  .page-pad {
    padding-left: 6rem !important;
    padding-right: 6rem !important;
  }
}

/* Landscape Orientation Mobile */
@media (max-height: 500px) and (max-width: 767px) {
  .navbar,
  .navbar-custom {
    min-height: 50px !important;
  }

  h1,
  .display-5 {
    font-size: 1.25rem !important;
  }

  .hero-article img,
  .main-newspaper-img {
    height: 200px !important;
    max-height: 60vh !important;
  }

  .hero-overlay {
    padding: 0.75rem !important;
  }

  .hero-overlay h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
  }

  .hero-overlay p {
    display: none;
  }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  button {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  .nav-link {
    padding: 0.75rem !important;
  }

  .article-card:active {
    transform: scale(0.98);
  }

  .navbar-toggler {
    min-height: 48px !important;
    min-width: 48px !important;
  }

  .navbar-toggler:active {
    background-color: var(--primary);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
  }
}

/* High Resolution Devices */
@media (min-resolution: 300dpi) and (max-width: 575.98px) {
  body {
    font-size: 15px;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .marquee-content,
  .ticker-content,
  .animate-marquee {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  .social-sidebar,
  .sticky-social,
  .social-share,
  .navbar-toggler,
  .navbar-collapse,
  footer {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
  }

  img {
    max-width: 100% !important;
  }
}

/* Fluid Typography across all devices */
h1 {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
}
h4 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}
h5 {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}
h6 {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.display-1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
}
.display-2 {
  font-size: clamp(1.75rem, 5vw, 4rem);
}
.display-3 {
  font-size: clamp(1.5rem, 4.5vw, 3.5rem);
}
.display-4 {
  font-size: clamp(1.25rem, 4vw, 3rem);
}
.display-5 {
  font-size: clamp(1.1rem, 3.5vw, 2.5rem);
}
.display-6 {
  font-size: clamp(1rem, 3vw, 2rem);
}

/* Responsive container padding */
.container-fluid {
  padding-left: clamp(0.5rem, 2vw, 1.5rem);
  padding-right: clamp(0.5rem, 2vw, 1.5rem);
}

/* Ensure images never overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive gap utility */
.gap-responsive {
  gap: clamp(0.5rem, 2vw, 1rem);
}
.gap-responsive-lg {
  gap: clamp(1rem, 3vw, 2rem);
}

/* Video responsive wrapper */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive tables */
@media (max-width: 767px) {
  table {
    font-size: 0.875rem;
  }

  table th,
  table td {
    padding: 0.5rem !important;
  }
}

/* Ensure sticky header works on mobile */
.sticky-top {
  z-index: 1020;
}

/* Mobile menu optimization */
.offcanvas {
  max-width: 100% !important;
}

@media (max-width: 575px) {
  .offcanvas {
    width: 100% !important;
  }
}

/* Responsive grid gaps */
.row {
  --bs-gutter-x: clamp(0.75rem, 2vw, 1.5rem);
  --bs-gutter-y: clamp(0.75rem, 2vw, 1.5rem);
}

/* ===== secondary_mega_nav ===== */
.secondary-nav {
  background-color: #1b1b1b;
  border-bottom: 3px solid #b9151e !important;
  padding: 0;
  min-height: unset;
  height: auto;
}

.secondary-nav .navbar-nav {
  gap: 0;
}

.secondary-nav .nav-link,
.secondary-nav .nav-link.dropdown-toggle {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000000 !important;
  padding: 0.6rem 0.85rem;
  border-right: 1px solid #2e2e2e;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.secondary-nav .nav-link:hover,
.secondary-nav .nav-item.dropdown:hover > .nav-link {
  background-color: #b9151e;
  color: #000000 !important;
}

.secondary-nav .nav-link.fw-semibold {
  color: #000000 !important;
  border-right: 2px solid #b9151e;
}

.secondary-nav .nav-link.fw-semibold:hover {
  background-color: #fecc02;
  color: #000000 !important;
}

/* Hover-open dropdowns */
.secondary-nav .nav-item.dropdown:hover > .dropdown-menu {
  display: block;
  margin-top: 0;
}

.secondary-nav .dropdown-menu {
  background-color: var(--surface, #f9f9f9);
  border: 2px solid #b9151e;
  border-top: 3px solid #fecc02;
  border-radius: 0;
  padding: 0;
  min-width: 220px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  animation: snav-drop 0.12s ease;
}

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

.secondary-nav .dropdown-item {
  font-family: "Archivo Narrow", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #000000;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #d9d9d9;
  border-radius: 0;
  transition: background 0.12s, color 0.12s, padding-left 0.12s;
}

.secondary-nav .dropdown-item:last-child {
  border-bottom: none;
}

.secondary-nav .dropdown-item:hover,
.secondary-nav .dropdown-item:focus {
  background-color: #b9151e;
  color: #000000;
  padding-left: 1.4rem;
}

.secondary-nav .navbar-toggler {
  border: 1px solid #444;
  color: #000000;
  padding: 0.25rem 0.5rem;
}

.secondary-nav .navbar-toggler .material-symbols-outlined {
  color: #000000;
  font-size: 1.4rem;
}

/* Mobile: revert hover, use BS click */
@media (max-width: 991.98px) {
  .secondary-nav .nav-link,
  .secondary-nav .nav-link.dropdown-toggle {
    border-right: none;
    border-bottom: 1px solid #2e2e2e;
  }

  .secondary-nav .dropdown-menu {
    border: none;
    border-left: 3px solid #b9151e;
    box-shadow: none;
    background-color: var(--surface, #f9f9f9);
  }

  .secondary-nav .nav-item.dropdown:hover > .dropdown-menu {
    display: none;
  }
  .secondary-nav .nav-item.dropdown .dropdown-menu.show {
    display: block;
  }
}
