/* ==========================================================================
   1. Design Tokens & Global Reset
   ========================================================================== */
:root {
  --red: #d71920;
  --red2: #a80f15;
  --ink: #0b1118;
  --paper: #f4f4f1;
  --white: #ffffff;
  --line: #d9dadd;
  --muted: #6c727b;
  --blue: #0c253c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}

/* ==========================================================================
   2. Typography & Editorial Headings
   ========================================================================== */
.article-main h1,
.lead-copy h2,
.lead-copy h3,
.sub-leads h3,
.latest-row h3,
.most-read h3,
.video-card h3,
.photo-grid h3,
.section-main h3,
.section-side h3 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   3.a Top Bar, Navigation & Brand
   ========================================================================== */
   .vibedesk-logo {
    width: 400px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 576px) {
    .vibedesk-logo {
        width: 320px;
    }
}

   /* ==========================================================================
   3. Top Bar, Navigation & Brand
   ========================================================================== */
.top-strip {
  background: #090d12;
  color: #aeb6c0;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.42rem 0;
}

.news-nav {
  background: #ffffff;
  border-bottom: 1px solid #111111;
  box-shadow: none;
}

.news-nav .container {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

.navbar-brand {
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: -0.08em;
  white-space: nowrap;
  color: #111111 !important;
}

.navbar-brand strong,
.navbar-brand em {
  font-weight: 900;
  color: #111111;
  font-style: normal;
}

.navbar-brand span {
  color: var(--red);
  font-weight: 900;
}

.navbar-brand small {
  font-size: 0.52rem;
  color: #777777;
}

.news-nav .navbar-nav {
  gap: 2px;
}

.news-nav .nav-link,
.news-nav .navbar-nav .nav-link {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  color: #17202a !important;
  padding: 0.48rem 0.52rem !important;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: 4px;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.news-nav .nav-link:hover,
.news-nav .nav-link:focus-visible,
.news-nav .navbar-nav .nav-link:hover,
.news-nav .navbar-nav .nav-link:focus {
  background: #0c253c !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(7, 17, 31, 0.18);
  outline: none;
}

.news-nav .nav-link.active,
.news-nav .navbar-nav .nav-link.active {
  background: var(--red) !important;
  color: #ffffff !important;
  box-shadow: inset 0 -3px 0 var(--red2), 0 3px 10px rgba(201, 21, 32, 0.24);
}

.search-btn,
.news-nav .search-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  margin-left: 0.25rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   4. Breaking News Ticker
   ========================================================================== */
.ticker {
  position: relative;
  background: #111820;
  color: #ffffff;
  border-bottom: 3px solid var(--red);
  overflow: hidden;
}

.ticker:after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #d71920, #ff7a7f, #d71920);
  opacity: 0.9;
}

.ticker-inner {
  display: flex;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
}

.ticker strong {
  background: var(--red);
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 15px;
  margin-left: -12px;
  white-space: nowrap;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.ticker-window {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  overflow: hidden;
  padding-left: 16px;
}

.ticker-track a {
  font-size: 0.73rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.ticker-track span {
  color: #f03b41;
}

.ticker-marquee {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  min-width: 100%;
  animation: tickerMove 42s linear infinite;
}

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

.ticker-marquee a {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.ticker-marquee span {
  color: #ff3940;
  font-size: 0.55rem;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   5. Masthead & Header Actions
   ========================================================================== */
.newsroom-masthead {
  background: #ffffff;
  border-bottom: 1px solid #111111;
}

.masthead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.mast-brand {
  flex: 1;
  min-width: 0;
}

.edition {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #777777;
}

.newsroom-masthead h1 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  margin: 0.55rem 0 0;
}

.newsroom-masthead h1 span {
  color: var(--red);
}

.newsroom-masthead h1 em {
  color: #111111;
  font-style: normal;
}

.newsroom-masthead p {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  margin: 0.8rem 0 0;
  color: #555555;
}

.masthead-right {
  width: min(480px, 46%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.mast-sponsor-label {
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  font-weight: 900;
  color: #73777c;
  text-align: right;
}

.mast-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mast-actions a {
  border: 1px solid #bbbbbb;
  color: #111111;
  text-decoration: none;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 0.46rem 0.62rem;
  line-height: 1;
}

.mast-actions a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ==========================================================================
   6. Frontpage Lead News & 3D Carousel
   ========================================================================== */
.newsroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 25px;
}

.lead-news {
  background: #ffffff;
  border: 1px solid #cfd1d3;
}

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

.lead-image {
  height: 410px;
  position: relative;
  overflow: hidden;
}

.lead-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.lead-news:hover .lead-image img {
  transform: scale(1.025);
}

.live-chip {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 0.45rem 0.65rem;
}

.lead-copy {
  padding: 20px 22px 23px;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.story-meta b {
  color: var(--red);
  font-weight: 900;
}

.story-meta span {
  color: #7b8188;
}

.lead-copy h2 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
  margin: 0.45rem 0 0.6rem;
}

.lead-copy p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #565d65;
  margin: 0;
}

/* 3D Flip Carousel */
.top-story-rotator {
  position: relative;
  perspective: 1400px;
  margin-bottom: 18px;
}

.top-story-stack {
  position: relative;
  display: grid;
  transform-style: preserve-3d;
  min-width: 0;
}

.top-story-slide {
  grid-area: 1/1;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: rotateX(-8deg) translateY(12px);
  transform-origin: center center;
  backface-visibility: hidden;
  z-index: 0;
}

.top-story-slide.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  animation: topStoryFlipIn 0.85s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.top-story-slide.is-leaving {
  visibility: visible;
  opacity: 1;
  z-index: 1;
  animation: topStoryFlipOut 0.65s cubic-bezier(0.55, 0.05, 0.7, 0.3) both;
  pointer-events: none;
}

.top-story-slide .lead-image img {
  transition: transform 0.8s ease;
}

.top-story-slide.is-active .lead-image img {
  animation: topStoryImageZoom 6s ease both;
}

.top-story-slide .live-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-story-slide .live-chip small {
  margin-left: auto;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.top-story-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
}

.top-story-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #b9bec3;
  cursor: pointer;
  transition: all 0.25s;
}

.top-story-dot.is-active {
  width: 28px;
  border-radius: 8px;
  background: var(--red);
}

.top-story-empty {
  background: #ffffff;
  border: 1px dashed #c8cbd0;
  padding: 28px;
  color: #263341;
}

.top-story-empty strong {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.top-story-empty p {
  margin: 8px 0 0;
  color: #626b75;
  font-size: 0.9rem;
}

@keyframes topStoryFlipIn {
  0%   { opacity: 0; transform: rotateX(-18deg) translateY(18px) scale(0.985); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: rotateX(0) translateY(0) scale(1); }
}

@keyframes topStoryFlipOut {
  0%   { opacity: 1; transform: rotateX(0) translateY(0); }
  100% { opacity: 0; transform: rotateX(16deg) translateY(-12px); }
}

@keyframes topStoryImageZoom {
  0%   { transform: scale(1.035); }
  100% { transform: scale(1); }
}

/* Sub-leads grid */
.sub-leads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.sub-leads article {
  border-bottom: 1px solid #bbbbbb;
  padding: 14px 0;
}

.sub-leads a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.sub-leads img {
  width: 110px;
  height: 78px;
  object-fit: cover;
}

.sub-leads h3 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 1rem;
  line-height: 1.12;
  margin: 0.3rem 0;
  font-weight: 700;
}

/* ==========================================================================
   7. Sidebar / News Desk / Quick Brief
   ========================================================================== */
.home-side-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-side-rail > .ad-slot { order: 0; min-height: 210px; }
.home-side-rail > .quick-brief { order: 1; }

.news-desk {
  background: #ffffff;
  border-top: 5px solid var(--red);
  border-left: 1px solid #cccccc;
  border-right: 1px solid #cccccc;
}

.desk-head {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid #cccccc;
  font-size: 0.7rem;
  font-weight: 900;
}

.desk-head span { letter-spacing: 0.1em; }
.desk-head a { color: var(--red); text-decoration: none; }

.most-read {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid #dddddd;
  text-decoration: none;
  color: inherit;
}

.most-read > strong {
  font-family: "Noto Sans Malayalam", sans-serif;
  color: #c3c6ca;
  font-size: 1.6rem;
}

.most-read small {
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 900;
}

.most-read h3 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 0.93rem;
  line-height: 1.38;
  margin: 0.10rem 0;
}

.desk-promo {
  margin: 14px;
  background: #111820;
  color: #ffffff;
  padding: 18px;
}

.desk-promo span {
  font-size: 0.58rem;
  color: #ff4c51;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.desk-promo h3 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.desk-promo a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 900;
}

.quick-brief {
  background: #111820;
  color: #ffffff;
  padding: 18px;
  height: max-content;
  position: sticky;
  top: 80px;
}

.brief-head {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #39414a;
  padding-bottom: 10px;
}

.quick-brief p {
  font-size: 0.73rem;
  line-height: 1.5;
  border-bottom: 1px solid #39414a;
  padding: 12px 0;
  margin: 0;
}

.quick-brief p b {
  color: #ff4c51;
  margin-right: 8px;
}

.brief-social {
  display: flex;
  gap: 16px;
  color: #aaaaaa;
  padding-top: 14px;
}

.quick-brief .browse-category-link {
  display: block;
  color: #ffffff !important;
  text-decoration: none;
  padding: 7px 9px;
  border-radius: 4px;
  background: transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quick-brief .browse-category-link:hover,
.quick-brief .browse-category-link:focus-visible {
  background: #ffffff;
  color: #101820 !important;
}

.quick-brief .browse-category-link.active {
  background: var(--red);
  color: #ffffff !important;
}

/* ==========================================================================
   8. Layout Sections: Latest, Video, Photos & Category Grids
   ========================================================================== */
.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 4px solid #111111;
  border-bottom: 1px solid #111111;
  padding: 9px 0;
  margin-bottom: 18px;
}

.section-bar h2 {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
}

.section-bar a,
.section-note {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: #555555;
  text-decoration: none;
}

.section-bar.light {
  border-color: #ffffff;
}

.section-bar.light h2,
.section-bar.light a {
  color: #ffffff;
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 30px;
}

.latest-row {
  padding: 13px 0;
  border-bottom: 1px solid #cfd1d3;
}

.latest-row a {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.latest-row img {
  width: 185px;
  height: 110px;
  object-fit: cover;
}

.latest-row h3 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 1.35rem;
  line-height: 1.08;
  margin: 0.3rem 0;
}

.latest-row p {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #666666;
  margin: 0.3rem 0 0;
}

/* Video Strip */
.video-strip {
  background: #0c1722;
  color: #ffffff;
  border-top: 5px solid var(--red);
}

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

.video-card a {
  color: #ffffff;
  text-decoration: none;
}

.video-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #111111;
}

.video-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.video-card:hover img {
  transform: scale(1.04);
}

.video-image span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  font-size: 1.3rem;
}

.video-card h3 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 1rem;
  line-height: 1.18;
  margin: 0.35rem 0;
}

.video-poster {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: #080c10;
}

.video-poster > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
  filter: saturate(0.9);
}

.video-poster:hover > img {
  transform: scale(1.03);
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(215, 25, 32, 0.95);
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.video-poster > small {
  position: absolute;
  left: 14px;
  bottom: 12px;
  background: #111111;
  color: #ffffff;
  padding: 5px 8px;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.video-poster.playing {
  cursor: default;
}

.video-poster.playing > iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-poster.playing > small,
.video-poster.playing > .video-play {
  display: none;
}

/* Photo Gallery Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.photo-grid article {
  background: #ffffff;
  border: 1px solid #cccccc;
}

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

.photo-grid img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.photo-grid div {
  padding: 12px;
}

.photo-grid span,
.section-main span,
.section-side span {
  font-size: 0.6rem;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-grid h3 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 1rem;
  line-height: 1.15;
  margin: 0.3rem 0;
}

/* Section Blocks */
.section-block {
  border-top: 1px solid #c9cbce;
  background: #ffffff;
}

.section-block:nth-child(even) {
  background: #eceeeb;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 25px;
}

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

.section-main img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.section-main h3 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 1.7rem;
  line-height: 1.03;
  margin: 0.35rem 0;
}

.section-main p {
  font-size: 0.8rem;
  color: #666666;
}

.section-side article {
  border-bottom: 1px solid #c9cbce;
  padding-bottom: 13px;
  margin-bottom: 13px;
}

.section-side a {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.section-side img {
  width: 120px;
  height: 80px;
  object-fit: cover;
}

.section-side h3 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 0.98rem;
  line-height: 1.12;
  margin: 0.2rem 0;
}

.section-side small {
  font-size: 0.6rem;
  color: #777777;
}

/* ==========================================================================
   9. Article Detail Page & Sharing
   ========================================================================== */
.article-page {
  background: #f3f3f0;
}

.article-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 245px;
  gap: 25px;
  align-items: start;
}

.article-main {
  background: #ffffff;
  border: 1px solid #d4d5d6;
  padding: 30px 34px;
}

.article-main > h1 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 10px 0 15px;
  max-width: 980px;
}

.article-deck {
  font-size: 1.12rem;
  line-height: 1.55;
  color: #60656b;
  max-width: 900px;
}

.sharebar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
  padding: 10px 0;
  margin: 20px 0;
}

.sharebar a,
.sharebar button {
  border: 1px solid #c8cacc;
  background: #ffffff;
  color: #171b20;
  text-decoration: none;
  padding: 0.55rem 0.72rem;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.sharebar a:hover,
.sharebar button:hover {
  border-color: var(--red);
  color: var(--red);
}

.sharebar-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  position: relative;
}

.sharebar-compact:after {
  content: 'Tap an icon to share • Copy link keeps the URL ready for your posts';
  font-size: 0.55rem;
  color: #8a8f95;
  letter-spacing: 0.02em;
  margin-left: 4px;
}

.share-label {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #777777;
  margin-right: 3px;
}

.share-icon {
  width: 34px;
  height: 34px !important;
  min-width: 34px;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #c9cbce !important;
  background: #ffffff !important;
  color: #222222 !important;
  text-decoration: none !important;
  font-size: 0.82rem !important;
}

.share-icon:hover {
  transform: translateY(-1px);
  border-color: var(--red) !important;
  color: var(--red) !important;
}

.share-icon[title="WhatsApp"]  { color: #168b45 !important; }
.share-icon[title="Instagram"] { color: #c52c74 !important; }
.share-icon[title="Facebook"]  { color: #315fb5 !important; }
.share-icon[title="X"]         { color: #111111 !important; }
.share-icon[title="Copy link"] { color: #5b6470 !important; }

.share-icon.copied {
  background: var(--red) !important;
  color: #ffffff !important;
  border-color: var(--red) !important;
  transform: scale(1.04);
}

.share-copy {
  transition: 0.18s;
}

.share-copy.copied i:before {
  content: '\f26a';
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  z-index: 9999;
  background: #07111f;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.share-toast.error {
  background: #8d1820;
}

.article-hero {
  margin: 20px 0 25px;
}

.article-hero img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.article-hero figcaption {
  font-size: 0.65rem;
  color: #777777;
  padding-top: 6px;
}

.article-body {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #252a2f;
}

.article-body p:first-child:first-letter {
  font-size: 3.8rem;
  float: left;
  line-height: 0.8;
  padding: 8px 8px 0 0;
  color: var(--red);
  font-weight: 700;
}

.article-body h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

.article-body a {
  color: #b30f16;
}

.article-video {
  aspect-ratio: 16/9;
  background: #111111;
  margin: 25px 0;
}

.article-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.side-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  border-top: 3px solid #111111;
  padding: 9px 0;
  border-bottom: 1px solid #bbbbbb;
  margin-bottom: 10px;
}

.related-mini {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #cccccc;
  color: inherit;
  text-decoration: none;
}

.related-mini img {
  width: 80px;
  height: 58px;
  object-fit: cover;
}

.related-mini b {
  font-size: 0.56rem;
  color: var(--red);
  text-transform: uppercase;
}

.related-mini h3 {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 0.78rem;
  line-height: 1.15;
  margin: 2px 0;
}

.related-mini small {
  font-size: 0.55rem;
  color: #888888;
}

.latest-mini {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #cccccc;
  text-decoration: none;
  color: inherit;
}

.latest-mini span {
  display: block;
  font-size: 0.56rem;
  color: var(--red);
  font-weight: 900;
}

.latest-mini b {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 0.78rem;
  line-height: 1.2;
}

.article-gallery {
  margin: 25px 0;
}

.gallery-main {
  background: #111111;
  position: relative;
}

.gallery-main img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
}

.gallery-caption {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  padding: 8px 12px;
  font-size: 0.68rem;
}

.gallery-thumbs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-top: 8px;
}

.gallery-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  background: #ffffff;
  flex: 0 0 90px;
  cursor: pointer;
}

.gallery-thumbs button:hover {
  border-color: var(--red);
}

.gallery-thumbs img {
  display: block;
  width: 90px;
  height: 62px;
  object-fit: cover;
}

.article-tags {
  display: flex;
  gap: 7px;
  margin: 25px 0;
}

.article-tags span {
  font-size: 0.6rem;
  background: #eef0f1;
  border: 1px solid #d6d8d9;
  padding: 5px 8px;
  text-transform: uppercase;
  font-weight: 900;
}

/* ==========================================================================
   10. Advertising System & Responsive Slots
   ========================================================================== */
.ad-slot {
  position: relative;
  background: #f5f6f7 !important;
  color: #6b7280;
  border: 1px solid #d4d5d6;
  min-height: 92px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot > a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.ad-slot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.ad-empty span {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: #999999;
  font-weight: 900;
}

.ad-slot.ad-image-error {
  min-height: 80px;
  background: #f5f6f7 !important;
  border: 1px dashed #b8bec5 !important;
}

.ad-slot.ad-image-error:after {
  content: 'Advertisement image unavailable';
  font-size: 0.75rem;
  color: #626b75;
  padding: 12px;
}

.ad-slot.ad-with-image,
.ad-slot.ad-has-image {
  background: #ffffff !important;
  border: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.ad-slot.ad-with-image > a,
.ad-slot.ad-has-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-slot.ad-with-image img,
.ad-slot.ad-has-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

/* Contextual ad slot dimensions */
.masthead-right .ad-slot {
  min-height: 150px;
  height: 150px;
  border: 0;
  border-radius: 3px;
  background: #111820;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.masthead-right .ad-slot:before {
  content: 'SPONSORED';
  position: absolute;
  top: 7px;
  right: 9px;
  color: #d8dee5;
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  z-index: 2;
}

.masthead-right .ad-slot.ad-with-image::before,
.masthead-right .ad-slot.ad-has-image:before {
  display: none !important;
}

.article-left .ad-slot,
.article-right .ad-slot {
  min-height: 180px;
}

.article-main > .ad-slot {
  min-height: 120px;
  margin-top: 28px;
}

/* Three-column bottom banner row */
.home-bottom-ad {
  padding-top: 0 !important;
  max-height: none;
  overflow: visible;
}

.home-bottom-ad .ad-slot {
  min-height: 150px;
  margin-bottom: 0;
}

.home-bottom-ad .ad-section-label {
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #858b92;
  margin: 0 0 8px;
  text-align: right;
}

.ad-grid.ad-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.ad-grid-card {
  height: 150px;
  max-height: 150px;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-grid-card > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.ad-grid-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: contain;
  background: #ffffff;
}

.ad-grid-card.ad-grid-missing {
  font-size: 0.75rem;
  color: #9a3535;
  padding: 12px;
  text-align: center;
}

/* Custom In-House Ad Formats */
.vd-ad-premium {
  min-height: 92px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  color: #ffffff;
  background: radial-gradient(circle at 85% 20%, rgba(215, 25, 32, 0.55), transparent 35%),
              linear-gradient(115deg, #0b1118, #182431 60%, #263847);
  text-align: left;
}

.vd-ad-premium small,
.vd-ad-banner span,
.vd-ad-rail small {
  display: block;
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  color: #d9e0e6;
  font-weight: 800;
  margin-bottom: 4px;
}

.vd-ad-premium strong {
  display: block;
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 1.15rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.vd-ad-premium span {
  display: block;
  font-size: 0.58rem;
  color: #aeb8c1;
  margin-top: 5px;
}

.vd-ad-premium > b,
.vd-ad-banner > b {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #ffffff;
}

.vd-ad-small {
  min-height: 220px;
  display: block;
  padding: 20px;
}

.vd-ad-small strong {
  font-size: 1.2rem !important;
}

.vd-ad-small > b {
  display: block;
  margin-top: 20px;
}

.vd-ad-banner {
  min-height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 22px;
  color: #ffffff;
  background: linear-gradient(90deg, #d71920, #9f1015);
  text-align: left;
}

.vd-ad-banner strong {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 1.25rem;
}

.vd-ad-rail {
  min-height: 220px;
  padding: 22px;
  background: #111820;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vd-ad-rail strong {
  font-family: "Noto Sans Malayalam", sans-serif;
  font-size: 2rem;
  line-height: 0.9;
  color: #ffffff;
}

.vd-ad-rail span {
  font-size: 0.58rem;
  color: #aeb7c0;
  margin-top: 10px;
}

.vd-ad-masthead {
  min-height: 150px !important;
  height: 150px !important;
  padding: 20px 24px !important;
}

.vd-ad-masthead strong {
  font-size: 1.45rem !important;
}

.vd-ad-real {
  position: relative;
}

.vd-ad-real b {
  display: block;
  margin-top: 18px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.vd-ad-real strong {
  font-size: 1.65rem !important;
  line-height: 0.92 !important;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.footer {
  background: #070b10 !important;
  color: #9fa8b2;
  border-top: 4px solid var(--red);
}

.footer a {
  color: #c8ced5 !important;
}

.brand-footer span {
  color: var(--red);
}

/* ==========================================================================
   12. Media Queries
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .top-story-slide.is-active,
  .top-story-slide.is-leaving,
  .top-story-slide.is-active .lead-image img {
    animation: none !important;
  }
  .top-story-dot {
    transition: none;
  }
}

@media (min-width: 992px) {
  .news-nav .container {
    min-height: 52px;
  }
  .news-nav .navbar-brand {
    margin-right: 1rem;
  }
  .news-nav .navbar-nav .nav-link {
    font-size: 0.60rem;
    padding: 0.45rem 0.42rem !important;
  }
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .article-right {
    grid-column: 2;
  }
  .article-left {
    grid-row: 1 / 3;
  }
  .article-right .ad-slot {
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .news-nav .container {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }
  .news-nav .navbar-brand {
    font-size: 1.5rem;
  }
  .news-nav .navbar-nav {
    align-items: stretch !important;
    padding-top: 0.45rem;
  }
  .news-nav .navbar-nav .nav-link {
    font-size: 0.78rem;
    padding: 0.65rem 0.75rem !important;
    white-space: normal;
  }
  .nav-item {
    border-bottom: 1px solid #eeeeee;
  }
  .search-btn {
    margin: 0.5rem 0;
  }
  .masthead-row {
    align-items: start;
    flex-direction: column;
  }
  .masthead-right {
    width: 100%;
  }
  .mast-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .mast-sponsor-label {
    text-align: left;
  }
  .masthead-right .ad-slot {
    height: 130px;
    min-height: 130px;
  }
  .newsroom-grid,
  .latest-layout,
  .section-grid {
    grid-template-columns: 1fr;
  }
  .news-desk {
    order: 2;
  }
  .sub-leads {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-brief {
    position: static;
  }
}

@media (max-width: 768px) {
  .article-layout {
    display: block;
  }
  .article-left,
  .article-right {
    display: none;
  }
  .article-main {
    padding: 20px 15px;
  }
  .article-body {
    font-size: 1.03rem;
  }
  .sharebar a,
  .sharebar button {
    font-size: 0.62rem;
  }
  .ad-slot {
    min-height: 70px;
  }
  .ad-grid.ad-grid-3 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ad-grid-card {
    height: 130px;
    max-height: 130px;
  }
  .ad-grid-card img {
    max-height: 130px;
  }
}

@media (max-width: 575px) {
  .newsroom-masthead h1 {
    font-size: 4rem;
  }
  .newsroom-masthead p {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
  }
  .masthead-right .mast-actions a {
    flex: 1;
    text-align: center;
    font-size: 0.55rem;
    padding: 0.4rem 0.52rem;
  }
  .masthead-right .ad-slot {
    height: 105px;
    min-height: 105px;
  }
  .ticker-track {
    padding-left: 10px;
  }
  .ticker strong {
    font-size: 0.58rem;
  }
  .ticker-marquee {
    animation-duration: 34s;
  }
  .lead-image {
    height: 280px;
  }
  .lead-copy {
    padding: 16px;
  }
  .lead-copy h2 {
    font-size: 2rem;
  }
  .latest-row a {
    grid-template-columns: 105px 1fr;
    gap: 10px;
  }
  .latest-row img {
    width: 105px;
    height: 75px;
  }
  .latest-row h3 {
    font-size: 1rem;
  }
  .latest-row p {
    display: none;
  }
  .video-grid,
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .photo-grid h3 {
    font-size: 0.9rem;
  }
  .section-main h3 {
    font-size: 1.35rem;
  }
  .section-side a {
    grid-template-columns: 95px 1fr;
  }
  .section-side img {
    width: 95px;
    height: 70px;
  }
  .article-main > h1 {
    font-size: 2.05rem;
    line-height: 1.04;
  }
  .share-label {
    display: none;
  }
  .sharebar-compact:after {
    display: none;
  }
  .vd-ad-masthead {
    min-height: 105px !important;
    height: 105px !important;
    padding: 13px 15px !important;
  }
  .vd-ad-masthead strong {
    font-size: 0.95rem !important;
  }
  .vd-ad-real strong {
    font-size: 1.3rem !important;
  }
  .vd-ad-premium {
    padding: 13px 15px;
  }
  .vd-ad-premium strong {
    font-size: 0.95rem;
  }
  .vd-ad-premium > b {
    font-size: 0.5rem;
  }
  .vd-ad-banner {
    display: block;
  }
  .vd-ad-banner strong {
    display: block;
    margin: 4px 0 8px;
    font-size: 1rem;
  }
}