
/* ============================================================
   PAPERLINE — SHARED DESIGN SYSTEM
   Works with:
   index.html
   categories.html
   contact.html

   Palette: Pastel Lavender + Powder Blue + Mint + Navy
   Headings: Space Grotesk / Playfair Display
   Body: DM Sans / Noto Sans Tamil
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {
  color-scheme: light;

  --paper-bg: #f5f3fc;
  --paper-bg-soft: #f9f8ff;
  --paper-bg-lavender: #eae5fb;
  --paper-bg-blue: #e5efff;
  --paper-bg-mint: #e5f4ec;
  --paper-bg-peach: #ffebe0;
  --paper-bg-yellow: #fff3d4;

  --paper-white: #ffffff;
  --paper-ink: #20263a;
  --paper-ink-soft: #363b51;
  --paper-muted: #74798d;
  --paper-muted-light: #9699aa;

  --paper-navy: #17243a;
  --paper-navy-soft: #202d45;
  --paper-navy-light: #34466b;

  --paper-purple: #8070bc;
  --paper-purple-dark: #65549d;
  --paper-purple-light: #dcd2fc;
  --paper-purple-pale: #eee9fb;

  --paper-blue: #d8e6ff;
  --paper-mint: #d4eee2;

  --paper-border: #e2dfed;
  --paper-border-strong: #d5d0e6;

  --paper-shadow-sm:
    0 4px 14px rgba(31, 39, 64, 0.045);

  --paper-shadow:
    0 12px 30px rgba(31, 39, 64, 0.065);

  --paper-shadow-lg:
    0 20px 50px rgba(31, 39, 64, 0.11);

  --paper-shadow-neon:
    0 0 14px rgba(151, 129, 235, 0.30);

  --paper-radius-sm: 6px;
  --paper-radius: 9px;
  --paper-radius-lg: 12px;
  --paper-radius-xl: 16px;

  --paper-container: 1160px;
  --paper-gutter: 22px;

  --paper-font-body:
    "DM Sans",
    "Noto Sans Tamil",
    sans-serif;

  --paper-font-heading:
    "Space Grotesk",
    "Noto Sans Tamil",
    sans-serif;

  --paper-font-editorial:
    "Playfair Display",
    "Noto Sans Tamil",
    Georgia,
    serif;

  --paper-ease: cubic-bezier(.2, .75, .25, 1);
  --paper-transition: 250ms var(--paper-ease);
}


/* ============================================================
   02. RESET & BASE TYPOGRAPHY
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper-bg);
  color: var(--paper-ink);
  font-family: var(--paper-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--paper-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--paper-ink);
  font-family: var(--paper-font-heading);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.6px;
  margin-top: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -1.8px;
}

h2 {
  font-size: clamp(29px, 3.5vw, 43px);
  letter-spacing: -1.2px;
}

h3 {
  font-size: 20px;
  letter-spacing: -.45px;
}

p {
  margin-top: 0;
}

img,
picture,
video,
canvas,
svg {
  max-width: 100%;
}

img {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(151, 129, 235, .68);
  outline-offset: 3px;
}

::selection {
  background: #dcd2fc;
  color: #27213e;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--paper-container), calc(100% - 44px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: 65px;
}

.small-note {
  margin: 15px 0 0;
  color: var(--paper-muted-light);
  font-size: 10px;
  line-height: 1.7;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--paper-purple);
  font-family: var(--paper-font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: currentColor;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--paper-navy);
  font-size: 12px;
  font-weight: 700;
  transition:
    color var(--paper-transition),
    gap var(--paper-transition);
}

.text-link:hover {
  color: var(--paper-purple-dark);
  gap: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  transition:
    color var(--paper-transition),
    background var(--paper-transition),
    border-color var(--paper-transition),
    transform var(--paper-transition),
    box-shadow var(--paper-transition);
}

.button span {
  transition: transform var(--paper-transition);
}

.button:hover span {
  transform: translate(2px, -2px);
}

.button-primary {
  color: #fff;
  background: var(--paper-navy);
  box-shadow: 0 5px 15px rgba(23, 36, 58, .12);
}

.button-primary:hover {
  color: #fff;
  background: var(--paper-navy-light);
  box-shadow: 0 9px 23px rgba(23, 36, 58, .20);
  transform: translateY(-2px);
}

.button-outline {
  color: var(--paper-navy);
  background: rgba(255, 255, 255, .8);
  border-color: var(--paper-border-strong);
}

.button-outline:hover {
  background: var(--paper-bg-lavender);
  border-color: var(--paper-purple-light);
  transform: translateY(-2px);
}

.button-light {
  background: #fff;
  color: var(--paper-navy);
  border-color: #fff;
}

.button-light:hover {
  background: var(--paper-bg-lavender);
  border-color: var(--paper-bg-lavender);
  transform: translateY(-2px);
}


/* ============================================================
   03. TOP INFORMATION STRIP
   ============================================================ */

.top-strip {
  position: relative;
  z-index: 1001;
  min-height: 29px;
  background: #e9e5f7;
  border-bottom: 1px solid rgba(125, 111, 180, .12);
  color: #45425e;
  font-size: 10px;
  letter-spacing: .2px;
}

.top-strip-inner {
  width: min(var(--paper-container), calc(100% - 44px));
  min-height: 29px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-inline: auto;
}

.top-strip p {
  margin: 0;
}

.top-strip-message {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--paper-purple);
  box-shadow: 0 0 0 4px rgba(128, 112, 188, .12);
}

.top-strip-date {
  color: #68627f;
  text-align: right;
}


/* ============================================================
   04. SHARED NAVBAR
   Dark navy + pastel lavender highlights
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  color: #f8f7ff;
  background: rgba(23, 36, 58, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 22px rgba(17, 27, 46, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-container {
  width: min(var(--paper-container), calc(100% - 44px));
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr minmax(210px, 270px);
  align-items: center;
  gap: 35px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #f8f7ff;
}

.brand-symbol {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #d3c7ff;
  transition: color var(--paper-transition), transform var(--paper-transition);
}

.brand-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand:hover .brand-symbol {
  color: #fff;
  transform: rotate(-3deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--paper-font-heading);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
}

.brand-period {
  color: #b8a7fa;
}

.brand-tagline {
  margin-top: 4px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.35px;
  opacity: .7;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(17px, 2.4vw, 33px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  color: rgba(247, 247, 255, .76);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--paper-transition);
}

.nav-link::after {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 0;
  height: 2px;
  content: "";
  border-radius: 9px;
  background: #c5b6ff;
  transition: width var(--paper-transition);
}

.nav-link:hover,
.nav-link.active,
.nav-link[aria-current="page"] {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-search {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px 4px 11px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  transition:
    border-color var(--paper-transition),
    background var(--paper-transition),
    box-shadow var(--paper-transition);
}

.nav-search:focus-within {
  border-color: rgba(197, 182, 255, .75);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(197, 182, 255, .08);
}

.nav-search > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #c4bbeb;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  outline: none;
  color: #fff;
  background: transparent;
  font-size: 11px;
}

.nav-search input::placeholder {
  color: #c0c4d0;
}

.nav-search input:focus-visible {
  outline: none;
}

.nav-search button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: #d8cff9;
  color: #24213d;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--paper-transition), color var(--paper-transition);
}

.nav-search button:hover {
  background: #fff;
  color: var(--paper-navy);
}

.mobile-menu-toggle {
  display: none;
}


/* ============================================================
   05. HOMEPAGE HERO
   ============================================================ */

.hero-section {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--paper-navy);
}

.hero-backdrop,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-backdrop {
  z-index: -3;
  overflow: hidden;
}

.hero-image {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 7s ease;
  will-change: opacity, transform;
}

.hero-image.active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(18, 29, 47, .87) 0%,
      rgba(18, 29, 47, .69) 45%,
      rgba(18, 29, 47, .24) 100%
    );
}

.hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 390px;
  padding-block: 36px;
  gap: 25px;
}

.hero-copy-wrap {
  width: min(700px, 100%);
}

.hero-eyebrow {
  color: #ded5ff;
}

.hero-slides {
  position: relative;
  min-height: 202px;
}

.hero-slide {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  transform: translateY(9px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
}

.hero-slide.active {
  position: relative;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-slide h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: var(--paper-font-editorial);
  font-size: clamp(39px, 5.3vw, 64px);
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1.12;
}

.hero-slide h1 span {
  color: #cdbdff;
  font-style: italic;
}

.hero-slide p {
  max-width: 565px;
  margin: 15px 0 22px;
  color: rgba(255, 255, 255, .83);
  font-size: 14px;
  line-height: 1.9;
}

.hero-slide .button {
  margin-top: 1px;
}

.hero-slide .button-primary {
  background: #e1d8ff;
  color: #25203c;
  box-shadow: 0 6px 18px rgba(13, 19, 36, .17);
}

.hero-slide .button-primary:hover {
  background: #fff;
  color: #25203c;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

.hero-dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .37);
  transition: width var(--paper-transition), background var(--paper-transition);
}

.hero-dot:hover,
.hero-dot.active {
  width: 34px;
  background: #d9ceff;
}

.hero-slide-counter {
  margin-left: 6px;
  color: rgba(255, 255, 255, .67);
  font-size: 10px;
  letter-spacing: 1px;
}

.hero-slide-counter strong {
  color: #fff;
}

.hero-note {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 235px;
  margin-bottom: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 9px;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(12px);
}

.hero-note-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #dcd2fc;
  color: #342a57;
  font-size: 18px;
}

.hero-note-label {
  margin: 0;
  color: #d9d0ff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-note-copy {
  margin: 3px 0 0;
  color: #fff;
  font-size: 11px;
  line-height: 1.45;
}

.hero-scroll-cue {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .7);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.scroll-cue-line {
  display: inline-block;
  width: 27px;
  height: 1px;
  background: #d8cff9;
}


/* ============================================================
   06. NEWS TICKER / MARQUEE
   ============================================================ */

.breaking-bar {
  width: 100%;
  display: flex;
  align-items: stretch;
  min-height: 43px;
  overflow: hidden;
  color: #fff;
  background: var(--paper-navy);
}

.breaking-label {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  background: #cfc3fb;
  color: #292441;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.breaking-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30264d;
  box-shadow: 0 0 0 4px rgba(48, 38, 77, .10);
}

.ticker-viewport {
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 27px;
  width: max-content;
  white-space: nowrap;
  animation: paperTicker 43s linear infinite;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .7px;
}

.ticker-track > span {
  flex: 0 0 auto;
}

.ticker-separator {
  color: #c8b9ff;
  font-size: 12px;
}

.breaking-bar:hover .ticker-track {
  animation-play-state: paused;
}

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


/* ============================================================
   07. SECTION HEADINGS / LAYOUT
   ============================================================ */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 26px;
  margin-bottom: 29px;
}

.section-heading > div:first-child {
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--paper-font-heading);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -1.3px;
  line-height: 1.16;
}

.section-heading h2 > span {
  color: var(--paper-purple);
}

.section-description {
  max-width: 530px;
  margin: 11px 0 0;
  color: var(--paper-muted);
  font-size: 13px;
  line-height: 1.85;
}

.section-heading > .text-link {
  flex: 0 0 auto;
  margin-bottom: 5px;
}

.section-bottom-link {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}


/* ============================================================
   08. HOMEPAGE NEWSPAPER SHELF
   ============================================================ */

.newspaper-section {
  background: var(--paper-bg);
}

.newspaper-heading {
  align-items: flex-end;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px;
  align-items: stretch;
}

.paper-card {
  min-width: 0;
  border: 1px solid var(--paper-border);
  border-radius: var(--paper-radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--paper-shadow-sm);
  transition:
    transform var(--paper-transition),
    border-color var(--paper-transition),
    box-shadow var(--paper-transition);
}

.paper-card:hover {
  transform: translateY(-6px);
  border-color: #cfc3f5;
  box-shadow: var(--paper-shadow);
}

.paper-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.paper-preview {
  position: relative;
  min-height: 235px;
  padding: 12px;
  overflow: hidden;
  color: #202020;
  background: #fffdf9;
  border-bottom: 1px solid #eeebf2;
  transition: background var(--paper-transition);
}

.paper-card:hover .paper-preview {
  background: #fff;
}

.paper-preview-hindu {
  background: #fdfcf7;
}

.paper-preview-thanthi {
  background: #fffafa;
}

.paper-preview-dinamalar {
  background: #fffcf3;
}

.paper-preview-toi {
  background: #fff9f9;
}

.paper-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  padding-bottom: 6px;
  border-bottom: 2px solid #303030;
  font-size: 7px;
  font-weight: 700;
}

.paper-preview-date {
  color: #6c6c6c;
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.toi-masthead {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.7px;
}

.dtnext-masthead {
  font-family: var(--paper-font-heading);
  color: #27476d;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -1px;
}

.paper-preview-rule {
  height: 1px;
  margin: 6px 0;
  background: #c9c5c1;
}

.paper-preview-headline {
  margin: 7px 0 9px;
  font-family: Georgia, "Noto Sans Tamil", serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.3px;
}

.paper-preview-thanthi .paper-preview-headline,
.paper-preview-dinamalar .paper-preview-headline {
  font-family: "Noto Sans Tamil", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.preview-kicker {
  display: block;
  margin-bottom: 5px;
  color: #87554d;
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .5px;
}

.paper-preview-photo {
  width: 100%;
  height: 88px;
  margin: 8px 0;
  overflow: hidden;
  background: #e7e6e6;
}

.paper-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.76);
  transition: transform .5s ease, filter .4s ease;
}

.paper-card:hover .paper-preview-photo img {
  transform: scale(1.045);
  filter: saturate(.98);
}

.paper-preview-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.paper-preview-columns span {
  height: 35px;
  background: repeating-linear-gradient(
    to bottom,
    #d4d2d0 0,
    #d4d2d0 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: .8;
}

.paper-preview-caption {
  padding-top: 6px;
  margin-top: 7px;
  border-top: 1px solid #d5d1cf;
  color: #686868;
  font-family: Arial, sans-serif;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: .5px;
}

.paper-card-info {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 14px;
}

.paper-card-info > div {
  min-width: 0;
}

.paper-language {
  display: inline-flex;
  align-items: center;
  margin-bottom: 5px;
  padding: 4px 6px;
  border-radius: 4px;
  color: #64529f;
  background: #eee8ff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .7px;
}

.paper-card-info h3 {
  margin: 0 0 4px;
  font-family: var(--paper-font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.paper-card-info p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 10px;
  line-height: 1.65;
}

.paper-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid #e8e1f7;
  border-radius: 7px;
  color: var(--paper-purple-dark);
  background: #f9f6ff;
  font-size: 13px;
  transition:
    transform var(--paper-transition),
    color var(--paper-transition),
    background var(--paper-transition);
}

.paper-card:hover .paper-arrow {
  color: #fff;
  background: var(--paper-purple);
  transform: translate(2px, -2px);
}


/* ============================================================
   09. HOMEPAGE LATEST NEWS CARDS
   ============================================================ */

.latest-section {
  background: #fbfaff;
  border-top: 1px solid #eeebf5;
  border-bottom: 1px solid #e9e5f1;
}

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

.news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--paper-border);
  border-radius: var(--paper-radius-lg);
  background: #fff;
  box-shadow: var(--paper-shadow-sm);
  transition:
    transform var(--paper-transition),
    border-color var(--paper-transition),
    box-shadow var(--paper-transition);
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #d2c8f2;
  box-shadow: var(--paper-shadow);
}

.news-image-link {
  display: block;
}

.news-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--paper-bg-blue);
}

.news-image-large {
  height: 250px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease, filter .45s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.045);
  filter: saturate(1.06);
}

.image-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 5px;
  background: rgba(255, 255, 255, .93);
  color: #38334e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .75px;
  box-shadow: 0 4px 14px rgba(25, 29, 45, .08);
}

.image-badge-blue {
  background: #e3edff;
}

.image-badge-mint {
  background: #e1f3e8;
}

.news-card-body {
  padding: 18px;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #8b88a0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .65px;
  line-height: 1.6;
  text-transform: uppercase;
}

.news-card-body h3 {
  margin: 11px 0 8px;
  font-family: var(--paper-font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1.38;
}

.news-card-body h3 a {
  transition: color var(--paper-transition);
}

.news-card-body h3 a:hover {
  color: var(--paper-purple-dark);
}

.news-card-body > p {
  margin: 0 0 14px;
  color: var(--paper-muted);
  font-size: 12px;
  line-height: 1.85;
}

.news-card-body .text-link {
  font-size: 11px;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--paper-border);
  border-radius: 7px;
  background: #fff;
  color: #666b80;
  font-size: 10px;
  font-weight: 700;
  transition:
    color var(--paper-transition),
    background var(--paper-transition),
    border-color var(--paper-transition);
}

.filter-button:hover {
  border-color: #cfc4ef;
  color: var(--paper-purple-dark);
}

.filter-button.active {
  border-color: var(--paper-navy);
  color: #fff;
  background: var(--paper-navy);
}

.news-card[hidden],
.paper-card[hidden],
.video-card[hidden] {
  display: none !important;
}

#searchEmptyState {
  width: min(450px, calc(100% - 30px));
  margin: 30px auto;
  padding: 24px;
  border: 1px dashed var(--paper-border-strong);
  border-radius: var(--paper-radius-lg);
  background: #fff;
  color: var(--paper-ink);
  text-align: center;
}

#searchEmptyState > span {
  display: block;
  color: var(--paper-purple);
  font-size: 28px;
}

#searchEmptyState strong {
  display: block;
  margin-top: 7px;
  font-family: var(--paper-font-heading);
  font-size: 16px;
}

#searchEmptyState p {
  margin: 5px 0 0;
  color: var(--paper-muted);
  font-size: 11px;
}


/* ============================================================
   10. VIDEO SPOTLIGHT / AUTOMATIC MARQUEE
   ============================================================ */

.video-section {
  background: var(--paper-bg);
}

.video-heading {
  align-items: flex-end;
}

.video-marquee {
  overflow: hidden;
  padding-block: 5px 17px;
  margin-inline: -1px;
}

.video-track {
  width: max-content;
  display: flex;
  align-items: stretch;
  gap: 17px;
  animation: paperVideoScroll 48s linear infinite;
  will-change: transform;
}

.video-marquee:hover .video-track,
.video-marquee:focus-within .video-track {
  animation-play-state: paused;
}

.video-card {
  width: 306px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--paper-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--paper-shadow-sm);
  transition: transform var(--paper-transition), box-shadow var(--paper-transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--paper-shadow);
}

.video-play-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
}

.video-thumb {
  position: relative;
  display: block;
  height: 172px;
  overflow: hidden;
  background: #e4e7f2;
}

.video-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.video-card:hover .video-thumb > img {
  transform: scale(1.06);
}

.video-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  background: rgba(23, 36, 58, .8);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .15);
  transition:
    transform var(--paper-transition),
    background var(--paper-transition),
    box-shadow var(--paper-transition);
}

.video-play-icon svg {
  width: 17px;
  height: 17px;
  margin-left: 2px;
}

.video-play-card:hover .video-play-icon {
  background: #65549d;
  box-shadow: 0 0 0 9px rgba(255, 255, 255, .18);
  transform: translate(-50%, -50%) scale(1.07);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(20, 30, 47, .83);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .7px;
}

.video-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}

.video-label {
  color: var(--paper-purple);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
}

.video-label-tamil {
  color: #477a5a;
}

.video-card-content strong {
  display: block;
  margin: 9px 0 15px;
  color: var(--paper-ink);
  font-family: var(--paper-font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.video-watch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--paper-purple-dark);
  font-size: 10px;
  font-weight: 700;
}

.video-caption {
  margin: 8px 0 0;
  color: var(--paper-muted-light);
  font-size: 10px;
  line-height: 1.7;
}

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


/* ============================================================
   11. UPCOMING EVENTS / FESTIVALS
   ============================================================ */

.events-section {
  background: #f1effa;
  border-top: 1px solid #e5e0f1;
  border-bottom: 1px solid #e5e0f1;
}

.events-heading {
  align-items: center;
}

.calendar-stamp {
  min-width: 86px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: 1px solid #d8d0f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
  color: #8171b9;
  box-shadow: var(--paper-shadow-sm);
  transform: rotate(3deg);
}

.calendar-stamp span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
}

.calendar-stamp strong {
  font-family: var(--paper-font-editorial);
  font-size: 23px;
  line-height: 1.3;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.event-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--paper-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--paper-shadow-sm);
  transition:
    transform var(--paper-transition),
    box-shadow var(--paper-transition),
    border-color var(--paper-transition);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--paper-shadow);
  border-color: #d2c7f0;
}

.event-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: #d9d0ff;
}

.event-navratri {
  background: #fff;
}

.event-navratri::before {
  background: #bcaaf2;
}

.event-diwali::before {
  background: #f4c68f;
}

.event-christmas::before {
  background: #b8dfc9;
}

.event-newyear::before {
  background: #b9d3f6;
}

.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
}

.event-category {
  color: #85869a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
  line-height: 1.5;
}

.event-symbol {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--paper-bg-lavender);
  color: var(--paper-purple);
  font-size: 17px;
}

.event-diwali .event-symbol {
  background: #fff1dc;
  color: #a66a32;
}

.event-christmas .event-symbol {
  background: #e3f4e9;
  color: #42825b;
}

.event-newyear .event-symbol {
  background: #e6efff;
  color: #476a9f;
}

.event-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 11px;
  color: var(--paper-purple);
}

.event-date span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.event-date strong {
  color: var(--paper-ink);
  font-family: var(--paper-font-editorial);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1px;
}

.event-card h3 {
  margin: 0 0 8px;
  font-family: var(--paper-font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.event-card p {
  min-height: 66px;
  margin: 0;
  color: var(--paper-muted);
  font-size: 11px;
  line-height: 1.8;
}

.event-footnote {
  display: block;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #efedf5;
  color: #73738b;
  font-size: 9px;
  font-weight: 700;
}


/* ============================================================
   12. CLOSING CTA — HOMEPAGE
   ============================================================ */

.closing-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 49px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(176, 159, 246, .2), transparent 27%),
    #202d45;
}

.closing-cta > .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 220px;
  gap: 35px;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.cta-content .eyebrow {
  color: #c7b9ff;
}

.cta-content h2 {
  margin: 0;
  color: #fff;
  font-family: var(--paper-font-editorial);
  font-size: clamp(34px, 4.5vw, 49px);
  font-weight: 700;
  letter-spacing: -1.1px;
  line-height: 1.14;
}

.cta-content h2 span {
  color: #cbbcff;
  font-style: italic;
}

.cta-content > p:not(.eyebrow) {
  max-width: 480px;
  margin: 13px 0 20px;
  color: #c9cfde;
  font-size: 12px;
  line-height: 1.85;
}

.cta-paper-stack {
  position: relative;
  width: 255px;
  height: 225px;
  flex: 0 0 auto;
  margin-right: 35px;
  transform: rotate(-4deg);
}

.cta-paper {
  position: absolute;
  width: 180px;
  height: 215px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #d5d0e1;
  background: #fdfcff;
  color: #23263a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .14);
}

.cta-paper-back {
  top: 0;
  left: 30px;
  transform: rotate(12deg);
  background: #ece6fb;
}

.cta-paper-back > span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
}

.cta-paper-front {
  z-index: 2;
  top: 12px;
  left: 40px;
  transform: rotate(-4deg);
}

.cta-paper-brand {
  display: block;
  margin-bottom: 17px;
  padding-bottom: 8px;
  border-bottom: 2px solid #222;
  font-family: var(--paper-font-heading);
  font-size: 13px;
  font-weight: 800;
}

.cta-paper-front strong {
  display: block;
  margin-bottom: 11px;
  font-family: var(--paper-font-editorial);
  font-size: 20px;
  line-height: 1.25;
}

.cta-paper-lines {
  height: 42px;
  background: repeating-linear-gradient(
    to bottom,
    #ceccd5 0,
    #ceccd5 2px,
    transparent 2px,
    transparent 7px
  );
}

.cta-paper-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 9px;
}

.cta-paper-columns span {
  height: 30px;
  background: repeating-linear-gradient(
    to bottom,
    #d8d5df 0,
    #d8d5df 2px,
    transparent 2px,
    transparent 5px
  );
}

.cta-decoration {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(215, 204, 255, .13);
  border-radius: 50%;
  pointer-events: none;
}

.cta-decoration-one {
  width: 340px;
  height: 340px;
  right: -120px;
  top: -200px;
}

.cta-decoration-two {
  width: 260px;
  height: 260px;
  right: -85px;
  top: -160px;
}


/* ============================================================
   13. SHARED FOOTER
   Light lavender footer + dark text + neon social hover
   ============================================================ */

.site-footer {
  color: #252a3b;
  background: #ebe8f8;
}

.footer-main {
  padding: 43px 0 37px;
}

.footer-grid {
  width: min(var(--paper-container), calc(100% - 44px));
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1fr;
  gap: 36px;
  margin-inline: auto;
}

.footer-brand {
  color: #20263a;
}

.footer-brand .brand-symbol {
  color: #7466b0;
}

.footer-brand .brand-period {
  color: #7865b7;
}

.footer-brand .brand-tagline {
  color: #6e6c81;
}

.footer-about-copy {
  max-width: 280px;
  margin: 17px 0;
  color: #6b7083;
  font-size: 12px;
  line-height: 1.9;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-socials a {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid #d9d4ea;
  border-radius: 8px;
  color: #4d466f;
  background: rgba(255, 255, 255, .65);
  transition:
    color var(--paper-transition),
    background var(--paper-transition),
    box-shadow var(--paper-transition),
    transform var(--paper-transition);
}

.footer-socials a:hover {
  color: #fff;
  background: #554879;
  box-shadow: var(--paper-shadow-neon);
  transform: translateY(-3px);
}

.footer-socials svg {
  display: block;
  width: 16px;
  height: 16px;
}

.footer-column h3 {
  margin: 4px 0 17px;
  color: #252a3b;
  font-family: var(--paper-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.1px;
}

.footer-column > a:not(.contact-item) {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: #6a6e80;
  font-size: 11px;
  transition: color var(--paper-transition), transform var(--paper-transition);
}

.footer-column > a:not(.contact-item):hover {
  color: #5e4a9e;
  transform: translateX(3px);
}

.footer-contact-intro {
  margin: 0 0 12px;
  color: #6b7083;
  font-size: 11px;
  line-height: 1.75;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  color: #666c80;
  font-size: 10px;
  line-height: 1.6;
}

.contact-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #d8d2ee;
  border-radius: 7px;
  color: #7665b2;
  background: rgba(255, 255, 255, .7);
  transition:
    color var(--paper-transition),
    background var(--paper-transition),
    box-shadow var(--paper-transition);
}

.contact-icon svg {
  width: 15px;
  height: 15px;
}

.contact-item:hover .contact-icon {
  color: white;
  background: #594d83;
  box-shadow: var(--paper-shadow-neon);
}

.footer-bottom {
  border-top: 1px solid #dcd7eb;
  background: #dcd8ed;
}

.footer-bottom-inner {
  width: min(var(--paper-container), calc(100% - 44px));
  min-height: 53px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-inline: auto;
}

.footer-bottom p {
  margin: 0;
  color: #6a6c7d;
  font-size: 10px;
}

.footer-bottom-note {
  text-align: center;
}

.back-to-top {
  color: #4a416c;
  font-size: 10px;
  font-weight: 700;
  transition: color var(--paper-transition);
}

.back-to-top:hover {
  color: #7563b6;
}


/* ============================================================
   14. VIDEO MODAL
   ============================================================ */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 19, 33, .79);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(850px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: #f9f8ff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .3);
  animation: paperModalEnter .25s ease both;
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.video-modal-header .eyebrow {
  margin-bottom: 5px;
}

.video-modal-header h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.5px;
}

.video-modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--paper-border);
  border-radius: 8px;
  color: var(--paper-ink);
  background: #fff;
  font-size: 25px;
  line-height: 1;
  transition: background var(--paper-transition), transform var(--paper-transition);
}

.video-modal-close:hover {
  transform: rotate(4deg);
  background: var(--paper-bg-lavender);
}

.video-player-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #111a2a;
}

.video-player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal-note {
  margin: 12px 0 0;
  color: var(--paper-muted);
  font-size: 10px;
  line-height: 1.7;
}

@keyframes paperModalEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ============================================================
   15. SEARCH / SHARED UTILITY STATES
   ============================================================ */

.search-empty-state {
  text-align: center;
}

.search-empty-state[hidden] {
  display: none !important;
}

.search-empty-state strong {
  color: var(--paper-ink);
}

.search-empty-state p {
  color: var(--paper-muted);
}


/* ============================================================
   16. OPTIONAL REUSABLE CARD STYLES
   ============================================================ */

.card {
  border: 1px solid var(--paper-border);
  border-radius: var(--paper-radius-lg);
  background: #fff;
  box-shadow: var(--paper-shadow-sm);
}

.card-hover {
  transition:
    transform var(--paper-transition),
    box-shadow var(--paper-transition),
    border-color var(--paper-transition);
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: #d1c6f1;
  box-shadow: var(--paper-shadow);
}

.pastel-lavender {
  background: var(--paper-bg-lavender);
}

.pastel-blue {
  background: var(--paper-bg-blue);
}

.pastel-mint {
  background: var(--paper-bg-mint);
}

.pastel-peach {
  background: var(--paper-bg-peach);
}


/* ============================================================
   17. RESPONSIVE — TABLETS
   ============================================================ */

@media (max-width: 1100px) {
  .nav-container {
    grid-template-columns: auto 1fr minmax(180px, 230px);
    gap: 20px;
  }

  .paper-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .hero-note {
    display: none;
  }
}


/* ============================================================
   18. RESPONSIVE — SMALL TABLETS / LARGE PHONES
   ============================================================ */

@media (max-width: 820px) {
  .nav-container {
    grid-template-columns: auto 1fr;
    gap: 15px;
  }

  .main-nav {
    gap: 20px;
  }

  .nav-search {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-bottom: 11px;
  }

  .site-header .nav-container {
    padding-top: 11px;
  }

  .nav-link {
    min-height: 42px;
  }

  .nav-link::after {
    bottom: 3px;
  }

  .hero-inner {
    min-height: 370px;
  }

  .hero-section {
    min-height: 370px;
  }

  .hero-slides {
    min-height: 215px;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-cta > .container {
    gap: 15px;
  }

  .cta-paper-stack {
    transform: scale(.85) rotate(-4deg);
    transform-origin: center right;
    margin-right: 0;
  }
}


/* ============================================================
   19. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 720px) {
  :root {
    --paper-gutter: 15px;
  }

  html {
    scroll-padding-top: 80px;
  }

  body {
    font-size: 13px;
  }

  .container,
  .top-strip-inner,
  .nav-container,
  .footer-grid,
  .footer-bottom-inner {
    width: min(calc(100% - 30px), 560px);
  }

  .top-strip {
    font-size: 9px;
  }

  .top-strip-inner {
    min-height: 27px;
  }

  .top-strip-date {
    max-width: 46%;
  }

  .nav-container {
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: 10px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-tagline {
    font-size: 6.5px;
  }

  .mobile-menu-toggle {
    width: 37px;
    height: 37px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    order: 2;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 9px;
    background: #f7f5ff;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 1002;
    padding: 8px 15px 13px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #17243a;
    border-top: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 15px 22px rgba(0, 0, 0, .13);
  }

  .site-header.menu-open .main-nav {
    display: flex;
  }

  .nav-link {
    min-height: 42px;
    padding: 0 8px;
  }

  .nav-link::after {
    bottom: 5px;
    left: 8px;
  }

  .nav-search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 36px;
    margin: 0 0 11px;
  }

  .site-header.menu-open .nav-container {
    padding-bottom: 0;
  }

  .section {
    padding-block: 45px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 23px;
  }

  .section-heading h2 {
    font-size: clamp(29px, 8vw, 37px);
    letter-spacing: -1px;
  }

  .section-description {
    font-size: 12px;
  }

  .section-heading > .text-link {
    margin-bottom: 0;
  }

  .hero-section {
    min-height: unset;
  }

  .hero-inner {
    min-height: 340px;
    padding-block: 38px 40px;
  }

  .hero-copy-wrap {
    width: 100%;
  }

  .hero-slides {
    min-height: 220px;
  }

  .hero-slide h1 {
    font-size: clamp(36px, 10vw, 50px);
    letter-spacing: -1.3px;
  }

  .hero-slide p {
    max-width: 470px;
    font-size: 12px;
    line-height: 1.85;
  }

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(18, 29, 47, .83),
        rgba(18, 29, 47, .53)
      );
  }

  .hero-scroll-cue {
    right: 15px;
    bottom: 13px;
    font-size: 7px;
  }

  .breaking-label {
    padding-inline: 11px;
    font-size: 8px;
  }

  .ticker-track {
    gap: 19px;
    font-size: 8px;
  }

  .paper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .paper-preview {
    min-height: 195px;
    padding: 10px;
  }

  .paper-preview-headline {
    font-size: 14px;
  }

  .paper-preview-photo {
    height: 70px;
  }

  .paper-card-info {
    padding: 11px;
  }

  .paper-card-info h3 {
    font-size: 13px;
  }

  .paper-card-info p {
    font-size: 9px;
  }

  .paper-arrow {
    width: 24px;
    height: 24px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .news-image {
    height: 215px;
  }

  .news-image-large {
    height: 230px;
  }

  .news-card-body {
    padding: 16px;
  }

  .news-card-body h3 {
    font-size: 18px;
  }

  .news-card-body > p {
    font-size: 11px;
  }

  .news-filter {
    width: 100%;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .video-card {
    width: 270px;
  }

  .video-thumb {
    height: 155px;
  }

  .video-track {
    gap: 12px;
    animation-duration: 37s;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .event-card {
    padding: 17px;
  }

  .event-card p {
    min-height: unset;
  }

  .event-date {
    margin-block: 15px 9px;
  }

  .event-date strong {
    font-size: 31px;
  }

  .closing-cta {
    padding-block: 37px;
  }

  .closing-cta > .container {
    min-height: unset;
  }

  .cta-paper-stack {
    display: none;
  }

  .cta-content h2 {
    font-size: 35px;
  }

  .footer-main {
    padding: 35px 0 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 27px 19px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
    padding-block: 13px;
    gap: 7px 16px;
  }

  .footer-bottom-note {
    display: none;
  }

  .video-modal {
    padding: 12px;
  }

  .video-modal-panel {
    padding: 14px;
    border-radius: 10px;
  }

  .video-modal-header h2 {
    font-size: 18px;
  }
}


/* ============================================================
   20. RESPONSIVE — VERY SMALL SCREENS
   ============================================================ */

@media (max-width: 380px) {
  .container,
  .top-strip-inner,
  .nav-container,
  .footer-grid,
  .footer-bottom-inner {
    width: calc(100% - 24px);
  }

  .brand-symbol {
    width: 31px;
    height: 31px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    letter-spacing: 1px;
  }

  .hero-inner {
    min-height: 325px;
  }

  .hero-slide h1 {
    font-size: 35px;
  }

  .hero-slide p {
    font-size: 11px;
  }

  .hero-slides {
    min-height: 225px;
  }

  .paper-grid {
    gap: 8px;
  }

  .paper-preview {
    min-height: 182px;
    padding: 8px;
  }

  .paper-preview-top {
    font-size: 6px;
  }

  .paper-preview-headline {
    font-size: 12px;
  }

  .paper-preview-photo {
    height: 57px;
  }

  .paper-preview-columns span {
    height: 27px;
  }

  .paper-card-info {
    padding: 9px;
  }

  .paper-card-info h3 {
    font-size: 12px;
  }

  .paper-language {
    font-size: 7px;
  }

  .paper-arrow {
    display: none;
  }

  .video-card {
    width: 250px;
  }

  .footer-grid {
    gap: 25px 13px;
  }
}


/* ============================================================
   21. REDUCED MOTION ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .hero-image {
    transform: none !important;
  }
}

/* ==========================================
   PAPERLINE VIDEO SPOTLIGHT — AUTO SCROLL
   ========================================== */

.video-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 6px 0 14px;
  isolation: isolate;
}

.video-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  min-width: max-content;
  animation: paperlineVideoScroll 36s linear infinite;
  will-change: transform;
}

.video-marquee:hover .video-track,
.video-marquee:focus-within .video-track {
  animation-play-state: paused;
}

.video-card {
  flex: 0 0 300px;
  width: 300px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ded9ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 39, 63, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 39, 63, 0.14);
}

.video-play-card {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.video-thumb {
  position: relative;
  display: block;
  height: 178px;
  overflow: hidden;
  background: #e9e6f6;
}

.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  color: #282640;
  background: rgba(255, 255, 255, .92);
  transform: translate(-50%, -50%);
  transition: background .2s ease, color .2s ease;
}

.video-play-icon svg {
  width: 21px;
  height: 21px;
}

.video-play-card:hover .video-play-icon {
  color: #fff;
  background: #363254;
}

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  color: #fff;
  background: rgba(23, 36, 58, .86);
  font-size: 10px;
  font-weight: 700;
}

.video-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 16px;
}

.video-label {
  color: #7969b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
}

.video-card-content strong {
  color: #202b40;
  font-size: 16px;
  line-height: 1.5;
}

.video-watch {
  color: #50437e;
  font-size: 12px;
  font-weight: 700;
}

/* Seamless movement across duplicated cards */
@keyframes paperlineVideoScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 600px) {
  .video-track {
    gap: 13px;
    animation-duration: 28s;
  }

  .video-card {
    flex-basis: 265px;
    width: 265px;
  }

  .video-thumb {
    height: 158px;
  }

  .video-card-content {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-track {
    animation: none;
  }

  .video-card,
  .video-thumb img {
    transition: none;
  }
}


/* ==========================================
   ADAPTIVE INVERTED NEON CURSOR
   Light background = dark cursor
   Dark background  = light cursor
   Button hover     = pink neon
   ========================================== */

@media (hover: hover) and (pointer: fine) {

  body.neon-cursor-enabled,
  body.neon-cursor-enabled * {
    cursor: none !important;
  }

  .neon-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;

    border: 2px solid #ffffff;
    border-radius: 50%;

    pointer-events: none;
    z-index: 999999;
    opacity: 0;

    transform: translate3d(-50%, -50%, 0) scale(1);

    /* Automatically inverts against the page beneath it */
    mix-blend-mode: difference;

    background: #ffffff;

    box-shadow:
      0 0 8px rgba(103, 247, 255, 0.65),
      0 0 18px rgba(103, 247, 255, 0.25);

    transition:
      width 0.25s ease,
      height 0.25s ease,
      border-color 0.25s ease,
      background 0.25s ease,
      box-shadow 0.25s ease,
      opacity 0.2s ease,
      transform 0.2s ease;

    will-change: transform, left, top;
  }

  /* Center dot */
  .neon-cursor::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    top: 50%;
    left: 50%;

    border-radius: 50%;
    background: #ffffff;

    transform: translate(-50%, -50%);
  }

  .neon-cursor.is-visible {
    opacity: 1;
  }

/* Hover: invert cursor color based on background */
.neon-cursor.is-hovering {
  width: 54px;
  height: 54px;

  border-color: #ffffff;
  background: #ffffff;

  mix-blend-mode: difference;

  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.65),
    0 0 28px rgba(255, 255, 255, 0.3);
}

.neon-cursor.is-hovering::before {
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff;
}
}
