/* Unitel 20 anniversary — dark band + hero post */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Page background scoped to /unitel-new-test only (body class set by the
   template). Two SVGs layered: Asset 2 on top, Asset 3 underneath. fixed
   attachment keeps them locked to the viewport while content scrolls. */
body.home-unitel20 {
  /* Unitel green palette (only #46c800 / #4ed400 / #9eeb6d are used here;
     full scale kept for reference) */
  --u-50:  #e6ffd9;
  --u-100: #c2f5a3;
  --u-200: #9eeb6d;
  --u-300: #7ae137;
  --u-400: #5cd710;
  --u-500: #4ed400;
  --u-600: #46c800; /* primary */
  --u-700: #3baa00;
  --u-800: #308c00;
  --u-900: #256e00;
  --u-text-secondary: #b8c8d4;

  /* Tunable Y offset where the deepest bg flips from dark → white.
     Lands roughly at the mid-height of the editors-grid cards. */
  --unitel-dark-height: 1080px;

  background-color: #ffffff; /* deepest = white globally (mid-cards down) */
  position: relative;
}

/* Deepest-layer dark backdrop + Asset 3 (the opaque dark-navy field) —
   scoped to the upper region only, so the lower region stays clean white. */
body.home-unitel20::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--unitel-dark-height);
  background-color: #050709;
  background-image: url("/img/unitel/20-unitel/Asset%203.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Asset 2 overlay — viewport-fixed, drifts across BOTH the dark upper
   region and the white lower region. Contrast/saturation boost keeps it
   visible on white where it would otherwise wash out. */
body.home-unitel20::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/img/unitel/20-unitel/Asset%202.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: contrast(1.18) saturate(1.35);
  z-index: 1;
  pointer-events: none;
}

/* ===== Theme overrides — neutralize the global blue (#0078f6 / #005cc3)
   from style.css for elements that appear on /unitel-new-test. Scoped to
   body.home-unitel20 so other pages keep their existing colors. ===== */
/* Scope white headings to the dark band only — outside it (burger menu,
   light-band article cards, etc.) headings should keep their default
   colors so they remain readable on light backgrounds. */
body.home-unitel20 .unitel-dark-band h3,
body.home-unitel20 .unitel-dark-band h5,
body.home-unitel20 .unitel-dark-band h6,
body.home-unitel20 .unitel-dark-band .uk-article h3 {
  color: #ffffff;
}

body.home-unitel20 a.uk-text-muted:hover,
body.home-unitel20 .article1 .content .title > a:hover,
body.home-unitel20 .header.white .next-article-category {
  color: var(--u-600) !important;
}

body.home-unitel20 .blue-dot::before {
  color: var(--u-600);
}

body.home-unitel20 .uk-tab > li.uk-active > a,
body.home-unitel20 .uk-tab > li > a:focus,
body.home-unitel20 .uk-tab > li.uk-open > a {
  color: var(--u-600);
  border-bottom-color: var(--u-600);
}

body.home-unitel20 .aravt-item a.author-link {
  border-color: var(--u-600);
}

/* Body / preview text and secondary meta on the dark page */
body.home-unitel20 .editors-item .meta .title,
body.home-unitel20 .editors-item .meta {
  color: var(--u-text-secondary);
}
body.home-unitel20 .editors-item .meta .date,
body.home-unitel20 .editors-item .meta .author {
  color: #d1d5db; /* tailwind gray-300 equivalent */
}

/* Bands kept transparent so the deepest bg (dark backdrop or white) and the
   fixed SVG overlay both show through. Bands sit ABOVE the SVG overlay
   (z-index 1) so their content reads on top of the overlay. */
body.home-unitel20 .unitel-light-band {
  background: transparent;
  position: relative;
  z-index: 2;
}

body.home-unitel20 .unitel-dark-band {
  position: relative;
  width: 100%;
  background: transparent;
  isolation: isolate;
  z-index: 2;
}

/* Header transparent + above the dark band */
body.home-unitel20 .header-container,
body.home-unitel20 .header,
body.home-unitel20 .header.black,
body.home-unitel20 .header-container.black {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 20;
}

body.home-unitel20 .header .burger-menu-piece {
  background: #fff !important;
}

/* When the burger toggles to the X (menu open), it sits over the menu's
   light #fafafa background — flip the pieces dark so the close X is visible. */
body.home-unitel20 .header .burger-menu.active .burger-menu-piece {
  background: #1c1c1c !important;
}

body.home-unitel20 .header a,
body.home-unitel20 .header span,
body.home-unitel20 .header .opacity05,
body.home-unitel20 .header .next-article-category,
body.home-unitel20 .header .chip {
  color: #fff !important;
}

body.home-unitel20 .header .social-link svg,
body.home-unitel20 .header .social-link svg path {
  fill: #fff !important;
}

/* Older blurred-imagery overlay disabled — body bg is now the two SVGs only */
body.home-unitel20 .unitel-dark-band::before {
  content: none;
}

/* ===== Hero ===== */
body.home-unitel20 .hero {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 60px 0 40px !important;
  position: relative !important;
  background: transparent !important;
  overflow: visible !important;
  z-index: 1;
  min-height: 0 !important;
  box-sizing: border-box;
}

/* Tighter section-tile margins on this page (style.css default is 3rem/2.8rem) */
body.home-unitel20 .editors-choice .section-tile {
  margin: 1rem 0 1.2rem 0;
}

body.home-unitel20 .hero .hero-background,
body.home-unitel20 .hero .hero-gradient {
  display: none !important;
}

body.home-unitel20 .unitel-hero {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* ===== Countdown card (left) ===== */
body.home-unitel20 .countdown-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background:
    url('/img/unitel/20-unitel/countdown-bg.png') no-repeat center / cover,
    #050709;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Old "20" overlay disabled — the new PNG has its own 20 designed in */
body.home-unitel20 .countdown-card::before {
  content: none;
}

/* "Дараагийн алхам" headline — centered over the 20 image */
body.home-unitel20 .countdown-card .countdown-headline {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.12;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

/* Unitel full-color logo, top-right of countdown card */
body.home-unitel20 .countdown-card .unitel-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  width: clamp(80px, 22%, 130px);
  height: auto;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

body.home-unitel20 .countdown {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 14%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  z-index: 2;
  font-family: 'Manrope', sans-serif;
}

body.home-unitel20 .countdown .unit {
  text-align: center;
  flex: 0 1 auto;
  min-width: 54px;
}

body.home-unitel20 .countdown .num {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 12px rgba(0,0,0,0.7);
}

body.home-unitel20 .countdown .lbl {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 9px;
  font-weight: 500;
  text-transform: capitalize;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

body.home-unitel20 .countdown .sep {
  display: inline-flex;
  align-items: flex-start;
  height: 1em;
  flex: 0 0 auto;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

/* ===== Hero text (right) ===== */
body.home-unitel20 .unitel-hero-text {
  color: #fff;
  min-width: 0;
}

body.home-unitel20 .unitel-hero-text .eyebrow {
  display: inline-block;
  color: var(--u-600);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

body.home-unitel20 .unitel-hero-text .headline-link {
  text-decoration: none;
  display: block;
}

body.home-unitel20 .unitel-hero-text .headline {
  font-size: clamp(26px, 2.6vw, 38px) !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  max-width: 640px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.home-unitel20 .unitel-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 28px 6px 6px;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-size: 16px;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.home-unitel20 .unitel-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(70, 200, 0, 0.4);
}

/* Rasengan-style animated energy orb (SVG-driven plasma + CSS bloom) */
body.home-unitel20 .unitel-cta .orb {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  isolation: isolate;
  overflow: visible;
  background: transparent;
  box-shadow:
    0 0 20px rgba(80, 240, 80, 0.5),
    0 0 48px rgba(120, 255, 100, 0.2),
    0 0 5px rgba(220, 255, 150, 0.42);
  animation: unitel-orb-bloom 2.4s ease-in-out infinite;
}

body.home-unitel20 .unitel-cta .orb::before,
body.home-unitel20 .unitel-cta .orb::after {
  content: none;
}

body.home-unitel20 .unitel-cta .orb .orb-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(160, 255, 100, 0.55));
  transition: filter 200ms ease;
}

/* Hover: crank up the intensity */
body.home-unitel20 .unitel-cta:hover .orb {
  animation-duration: 1s;
  box-shadow:
    0 0 40px rgba(120, 255, 100, 0.9),
    0 0 80px rgba(120, 255, 100, 0.4),
    0 0 12px rgba(220, 255, 150, 0.7);
}

body.home-unitel20 .unitel-cta:hover .orb .orb-svg {
  filter: drop-shadow(0 0 10px rgba(180, 255, 120, 0.9)) brightness(1.18) saturate(1.15);
}

@keyframes unitel-orb-spin {
  to { transform: rotate(360deg); }
}

@keyframes unitel-orb-fog {
  to { transform: rotate(-360deg); }
}

@keyframes unitel-orb-flicker {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

@keyframes unitel-orb-fog-pulse {
  0%, 100% { opacity: 0.65; filter: blur(3.5px); }
  50%      { opacity: 0.95; filter: blur(5px); }
}

@keyframes unitel-orb-bloom {
  0%, 100% {
    box-shadow:
      0 0 16px rgba(80, 240, 80, 0.4),
      0 0 42px rgba(120, 255, 100, 0.16),
      0 0 4px rgba(220, 255, 150, 0.32);
    transform: scale(0.97);
  }
  50% {
    box-shadow:
      0 0 32px rgba(120, 255, 100, 0.8),
      0 0 70px rgba(120, 255, 100, 0.35),
      0 0 12px rgba(220, 255, 150, 0.65);
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-unitel20 .unitel-cta .orb,
  body.home-unitel20 .unitel-cta .orb .orb-svg {
    animation: none;
  }
  body.home-unitel20 .unitel-cta .orb .orb-svg * {
    animation-play-state: paused;
  }
}

/* ===== Cards section: keep transparent so dark band shows through ===== */
body.home-unitel20 .editors-choice {
  background: transparent !important;
  position: relative;
  z-index: 1;
  /* style.css adds 234px bottom-padding to overlap the old slider; reset it */
  padding-bottom: 24px !important;
}

body.home-unitel20 .editors-choice .section-tile,
body.home-unitel20 .editors-choice .section-tile a,
body.home-unitel20 .editors-choice .section-tile h1,
body.home-unitel20 .editors-choice .section-tile span,
body.home-unitel20 .editors-choice .section-tile i {
  color: #ffffff !important;
}

/* Slider nav arrows are meaningless once the section is locked */
body.home-unitel20 .editors-choice .slider-nav { display: none !important; }

/* ===== Locked 4-up grid (static weekly drops, no carousel) ===== */
body.home-unitel20 .editors-grid {
  width: calc(100% - 50px);
  max-width: 1624px;
  margin: 0 auto;
  padding: 0 20px 40px;
  position: relative;
  z-index: 1;
}

body.home-unitel20 .editors-grid > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

body.home-unitel20 .editor-drop {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

body.home-unitel20 .editor-drop .cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: filter 600ms ease, transform 600ms ease, opacity 600ms ease;
  z-index: 0;
}

/* Top-left release-week pill */
body.home-unitel20 .editor-drop .week-stamp {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--u-600);
  color: var(--u-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Lock-state overlay */
body.home-unitel20 .editor-drop .lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--u-600);
  background: linear-gradient(180deg, rgba(5, 7, 9, 0.55) 0%, rgba(5, 7, 9, 0.78) 100%);
  opacity: 1;
  transition: opacity 500ms ease;
  pointer-events: none;
}

body.home-unitel20 .editor-drop .lock-overlay .lock-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

body.home-unitel20 .editor-drop .lock-overlay .lock-text {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Card content (figcaption) */
body.home-unitel20 .editor-drop .drop-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.30) 0%,
    rgba(0, 0, 0, 0.05) 35%,
    rgba(0, 0, 0, 0.00) 55%,
    rgba(0, 0, 0, 0.65) 100%);
  transition: opacity 500ms ease;
}

body.home-unitel20 .editor-drop .drop-content .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

body.home-unitel20 .editor-drop .drop-content .lead .read { float: right; }

body.home-unitel20 .editor-drop .drop-content .meta .title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

body.home-unitel20 .editor-drop .drop-content .meta .category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--u-600);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

body.home-unitel20 .editor-drop .blue-dot::before {
  content: '•';
  color: var(--u-600);
  margin-right: 6px;
}

body.home-unitel20 .editor-drop .cover-link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* --- Locked state ---------------------------------------------------- */
/* Dark "vault" card: solid dark fill + subtle green glow behind the padlock */
body.home-unitel20 .editor-drop.is-locked {
  background:
    radial-gradient(circle at 50% 42%, rgba(70, 200, 0, 0.18) 0%, rgba(70, 200, 0, 0) 55%),
    linear-gradient(180deg, #0c1116 0%, #05080b 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.45);
}
body.home-unitel20 .editor-drop.is-locked .cover { opacity: 0; }
body.home-unitel20 .editor-drop.is-locked .lock-overlay {
  background: transparent;
  gap: 14px;
}
body.home-unitel20 .editor-drop.is-locked .lock-overlay .lock-icon {
  width: 56px;
  height: 56px;
  color: var(--u-600);
  filter:
    drop-shadow(0 0 18px rgba(70, 200, 0, 0.55))
    drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}
body.home-unitel20 .editor-drop.is-locked .lock-overlay .lock-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 1.2px;
}
body.home-unitel20 .editor-drop.is-locked .drop-content { opacity: 0; }
body.home-unitel20 .editor-drop.is-locked .cover-link { pointer-events: none; cursor: not-allowed; }

/* --- Unlocked state -------------------------------------------------- */
body.home-unitel20 .editor-drop.is-unlocked .lock-overlay { opacity: 0; }
body.home-unitel20 .editor-drop.is-unlocked .cover { filter: none; transform: none; }
body.home-unitel20 .editor-drop.is-unlocked .drop-content { opacity: 1; }

@media (max-width: 960px) {
  body.home-unitel20 .editors-grid > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  body.home-unitel20 .editors-grid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0 40px !important;
  }
  body.home-unitel20 .editors-grid > ul {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0 20px 8px;
    margin: 0;
    scrollbar-width: none;
  }
  body.home-unitel20 .editors-grid > ul::-webkit-scrollbar { display: none; }
  body.home-unitel20 .editors-grid > ul > li {
    flex: 0 0 78%;
    max-width: 320px;
    min-width: 240px;
    scroll-snap-align: start;
    list-style: none;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  body.home-unitel20 .unitel-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }
  body.home-unitel20 .hero {
    padding: 60px 0 80px !important;
  }
  body.home-unitel20 .countdown-card {
    max-width: 380px;
    margin: 0 auto;
  }
}
