/* Nepal-inspired visual layer and reliable bilingual visibility */
:root {
  --nepal-red: #b61f36;
  --nepal-blue: #234f73;
  --himalaya-mist: #edf3f2;
  --warm-paper: #fffaf4;
}

html[data-language="np"] [data-en],
html[data-language="en"] [data-np] {
  display: none !important;
}

html[data-language="np"] [data-np],
html[data-language="en"] [data-en] {
  display: revert !important;
}

body {
  background: var(--warm-paper);
}

.site-header .nav-shell {
  border-color: rgba(182, 31, 54, .1);
}

.brand-mark {
  background: linear-gradient(145deg, var(--nepal-red), #cf4a36);
}

.brand-copy small,
.language-toggle i,
.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown > button:hover {
  color: var(--nepal-red);
}

.language-toggle {
  border: 1px solid rgba(35, 79, 115, .16);
  background: rgba(255, 255, 255, .78);
  font-weight: 900;
}

.hero {
  min-height: 820px;
  padding-bottom: 90px;
  background:
    radial-gradient(circle at 10% 32%, rgba(255, 255, 255, .95), transparent 30%),
    radial-gradient(circle at 76% 42%, rgba(72, 116, 133, .17), transparent 33%),
    linear-gradient(135deg, #fff8ef 0%, #f3eadf 54%, #e7eff0 100%);
}

.hero::before {
  border-color: rgba(35, 79, 115, .09);
  box-shadow: 0 0 0 90px rgba(255,255,255,.11), 0 0 0 190px rgba(182,31,54,.025);
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(480px, .9fr);
  gap: 54px;
}

.hero h1 em,
.kicker,
.eyebrow {
  color: var(--nepal-red);
}

.btn.primary {
  background: linear-gradient(135deg, var(--nepal-red), #d05a38);
  box-shadow: 0 12px 25px rgba(182, 31, 54, .2);
}

.btn.primary:hover {
  background: #96172a;
}

.hero-photo-panel {
  position: relative;
  min-height: 565px;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, .75);
  border-radius: 34px 34px 120px 34px;
  background: #b9ced7;
  box-shadow: 0 28px 70px rgba(47, 70, 78, .2);
  isolation: isolate;
}

.hero-photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(21, 47, 61, .06) 32%, rgba(16, 42, 54, .78) 100%);
}

.hero-photo-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nepal-flag-chip {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 55, 70, .55);
  backdrop-filter: blur(12px);
}

.nepal-flag-chip span {
  font-size: 28px;
  line-height: 1;
}

.nepal-flag-chip strong {
  font-size: 12px;
  letter-spacing: .04em;
}

.hero-photo-caption {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 106px;
  color: #fff;
}

.hero-photo-caption p {
  margin: 10px 0 0;
  max-width: 410px;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: 25px;
  line-height: 1.35;
}

.hero-topic-row {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hero-topic-row a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
}

.hero-topic-row a:hover {
  background: rgba(255, 255, 255, .25);
}

.hero-topic-row a > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--nepal-red);
  background: #fff;
  font-weight: 900;
}

.hero-topic-row b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.categories-section,
.latest-section,
.community-cta {
  background: var(--warm-paper);
}

.feature-section {
  background: var(--himalaya-mist);
}

.festival-section {
  background: linear-gradient(135deg, #153d58, #244e5a 55%, #6d3d38);
}

.stats-strip {
  background: #fff;
}

.article-card {
  border-color: rgba(35, 79, 115, .12);
}

.card-visual img,
.article-cover img {
  transition: transform .45s ease;
}

.article-card:hover .card-visual img {
  transform: scale(1.045);
}

.card-visual::after,
.article-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(20, 45, 55, .18));
}

.card-visual em {
  color: var(--nepal-red);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(19, 49, 65, .82), rgba(36, 76, 89, .56)),
    url('/images/hero-nepal-himalaya.png');
  background-position: center 44%;
  background-size: cover;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.page-hero p {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}

.page-hero .kicker {
  color: #ffd3b4;
}

.page-content {
  box-shadow: 0 20px 55px rgba(34, 70, 81, .08);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  transition: .2s ease;
}

.social-links a:hover {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .15);
  transform: translateY(-2px);
}

.social-links span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--nepal-red), #da5a36);
  font-size: 12px;
  font-weight: 900;
}

.social-links b {
  font-size: 10px;
  letter-spacing: .02em;
}

@media (min-width: 951px) {
  html[lang="en"] .nav-shell {
    gap: 15px;
  }

  html[lang="en"] .main-nav > a,
  html[lang="en"] .nav-dropdown > button {
    padding-inline: 9px;
    font-size: 13px;
    white-space: nowrap;
  }

  html[lang="en"] .brand-copy strong {
    font-size: 17px;
  }
}

@media (max-width: 950px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-panel {
    width: min(650px, 100%);
    min-height: 540px;
    margin: 12px auto 0;
  }

  .main-nav.open {
    z-index: 20;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}

@media (max-width: 700px) {
  .hero-photo-panel {
    min-height: 470px;
    border-width: 5px;
    border-radius: 25px 25px 70px 25px;
  }

  .hero-photo-caption {
    left: 20px;
    right: 20px;
    bottom: 140px;
  }

  .hero-photo-caption p {
    font-size: 21px;
  }

  .hero-topic-row {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr 1fr;
  }

  .nepal-flag-chip {
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 390px) {
  .brand-copy {
    display: none;
  }

  .nav-shell {
    gap: 8px;
  }
}
