/* -------------------------------------------------
    NEWSLETTER - Climatora Daily
------------------------------------------------- */

/* BUTTONS */
.nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  background: var(--primary-blue);
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.nl-btn:hover {
  background: var(--secondary-blue);
  color: #fff;
  transform: translateY(-3px);
}

.nl-btn-green {
  background: var(--primary-green);
  color: #000;
}

.nl-btn-green:hover {
  background: #c3cf33;
  color: #000;
}

/* KICKER + META */
.nl-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-blue);
  border-left: 4px solid var(--primary-green);
  padding-left: 10px;
  margin-bottom: 14px;
}

.nl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--secondary-blue);
  margin-bottom: 20px;
}

.nl-meta i {
  color: var(--primary-blue);
  margin-right: 5px;
}

.nl-issue-no {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--primary-green);
  color: #000;
  padding: 5px 12px;
  border-radius: 30px;
}

/* -------------------------------------------------
    HERO: INTRO + SUBSCRIBE (carousel background)
------------------------------------------------- */
.nl-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 0 70px; /* clear fixed navbar */
}

.nl-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.nl-hero-inner {
  position: relative;
  z-index: 5;
}

.nl-hero .nl-kicker {
  color: #fff;
}

.nl-hero .nl-intro-title {
  color: #fff;
}

.nl-hero .nl-intro-title span {
  color: var(--primary-green);
  background: none;
  padding: 0;
}

.nl-hero .nl-intro p {
  color: rgba(255, 255, 255, 0.92);
}

.nl-hero .nl-intro .nl-btn {
  background: var(--primary-green);
  color: #000;
}

.nl-hero .nl-intro .nl-btn:hover {
  background: #c3cf33;
  color: #000;
}

.nl-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.nl-intro-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--secondary-blue);
  margin-bottom: 18px;
  line-height: 1.1;
}

.nl-intro-title span {
  color: var(--primary-blue);
  background: linear-gradient(transparent 62%, var(--primary-green) 62%);
  padding: 0 4px;
}

.nl-intro p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 28px;
  max-width: 560px;
}

.nl-subscribe-card {
  background: #fff;
  border: 2px solid var(--primary-green);
  border-radius: 22px;
  padding: 40px 34px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.nl-subscribe-card h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--secondary-blue);
  margin-bottom: 8px;
}

.nl-subscribe-card > p {
  font-family: var(--font-body);
  color: #333;
  margin-bottom: 22px;
}

.nl-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.nl-subscribe-form .form-control {
  border-radius: 30px;
  padding: 11px 20px;
  font-family: var(--font-body);
  border: 1px solid #ccc;
}

.nl-subscribe-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(46, 82, 164, 0.15);
}

.nl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nl-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

.nl-consent input {
  margin-top: 3px;
  accent-color: var(--primary-blue);
}

.nl-consent a {
  color: var(--primary-blue);
  font-weight: 600;
}

/* -------------------------------------------------
    LATEST ISSUE
------------------------------------------------- */
.nl-latest-section {
  padding: 80px 0;
  background: var(--light-grey);
}

.nl-latest-card {
  max-width: 950px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  padding: 40px;
  border-top: 6px solid var(--primary-green);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.nl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.nl-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary-blue);
  background: var(--light-grey);
  padding: 7px 14px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.25s ease;
}

.nl-chip i {
  color: var(--primary-blue);
}

.nl-chip b {
  background: var(--primary-blue);
  color: #fff;
  font-size: 0.75rem;
  padding: 1px 8px;
  border-radius: 20px;
}

.nl-chip:hover {
  background: var(--primary-green);
  color: #000;
}

.nl-lead {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--secondary-blue);
  line-height: 1.25;
  margin-bottom: 22px;
}

/* TODAY IN 60 SECONDS */
.nl-sixty {
  background: rgba(213, 224, 65, 0.18);
  border-left: 5px solid var(--primary-green);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 28px;
}

.nl-sixty h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.nl-sixty ul {
  margin: 0;
  padding-left: 20px;
}

.nl-sixty li {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: #222;
  margin-bottom: 8px;
}

.nl-sixty li:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------
    ALL ISSUES
------------------------------------------------- */
.nl-filter {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin: -20px auto 40px;
}

.nl-filter .form-select,
.nl-filter .form-control {
  border-radius: 30px;
  padding: 10px 20px;
  font-family: var(--font-body);
}

.nl-filter .form-select {
  max-width: 220px;
}

.nl-issue-card {
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--primary-green);
}

.nl-issue-card .buzz-body {
  flex: 1;
}

.nl-issue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--primary-blue);
}

.nl-issue-card .buzz-footer {
  font-family: var(--font-heading);
  font-weight: 700;
}

.nl-page-status {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #666;
  margin-top: 16px;
}

.buzz-section .pagination .page-link {
  color: var(--primary-blue);
}

.buzz-section .pagination .page-item.active .page-link {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

/* -------------------------------------------------
    PROMO
------------------------------------------------- */
.nl-promo-section {
  padding: 70px 0 60px;
  background: #fff;
}

/* Archive section: brand tint so it separates from the grey "Latest Issue" and white promo */
.nl-archive-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(215, 225, 60, 0.18) 0, transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(44, 82, 160, 0.12) 0, transparent 38%),
    linear-gradient(180deg, #eaf0fa 0%, #f3f7ea 100%);
  border-top: 1px solid rgba(44, 82, 160, 0.08);
  border-bottom: 1px solid rgba(44, 82, 160, 0.08);
}

.nl-archive-section .nl-issue-card {
  background: #fff;
}

/* Archive grid: 3 cards per row on desktop */
.nl-issue-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Gallery (max 9 images from admin, 3 per row = 3 x 3) */
.nl-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 840px;
  margin: 0 auto 60px;
}

.nl-gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.nl-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nl-gallery-item:hover img {
  transform: scale(1.04);
}

/* Promo (heading, text, button come from admin) */
.nl-promo {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  background: linear-gradient(120deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
  border-radius: 20px;
  padding: 38px 44px;
  box-shadow: 0 14px 34px rgba(30, 60, 140, 0.22);
}

/* Soft decorative circles */
.nl-promo::before,
.nl-promo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.nl-promo::before {
  width: 280px;
  height: 280px;
  right: -90px;
  top: -140px;
  background: rgba(255, 255, 255, 0.06);
}

.nl-promo::after {
  width: 160px;
  height: 160px;
  right: 180px;
  bottom: -110px;
  background: rgba(255, 255, 255, 0.05);
}

.nl-promo > * {
  position: relative;
  z-index: 1;
}

.nl-promo-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--primary-green);
  font-size: 1.6rem;
}

.nl-promo-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.nl-promo h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 8px;
  max-width: 640px;
  overflow-wrap: anywhere;
}

.nl-promo p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 620px;
}

.nl-promo-btn {
  gap: 12px;
  max-width: 340px;
  padding: 15px 26px;
  border-radius: 14px;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.nl-promo-btn span {
  line-height: 1.35;
}

.nl-promo-btn i {
  transition: transform 0.3s ease;
}

.nl-promo-btn:hover i {
  transform: translateX(4px);
}

.nl-disclaimer {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  max-width: 760px;
  margin: 28px auto 0;
  line-height: 1.6;
}

/* -------------------------------------------------
    ISSUE DETAILS
------------------------------------------------- */
/* No hero on this page: keep the fixed navbar solid and clear it */
body:has(.nl-issue-page) .navbar-custom {
  background: rgba(46, 82, 164, 0.96) !important;
  backdrop-filter: blur(12px);
}

.nl-issue-page {
  padding-top: 90px;
}

.nl-issue-container {
  max-width: 1140px;
  border-radius: 22px;
}

.nl-masthead {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.nl-masthead h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--primary-blue);
  line-height: 1.2;
  margin-bottom: 16px;
}

.nl-share {
  display: flex;
  gap: 10px;
}

.nl-share a,
.nl-share button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  color: var(--primary-blue);
  font-size: 1.05rem;
  text-decoration: none;
  transition: 0.25s ease;
}

.nl-share a:hover,
.nl-share button:hover {
  background: var(--primary-blue);
  color: var(--primary-green);
}

.nl-issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

/* CATEGORY */
.nl-category {
  margin-bottom: 36px;
  scroll-margin-top: 110px;
}

.nl-category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary-blue);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--primary-green);
}

.nl-category-title i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.nl-category-title small {
  margin-left: auto;
  font-size: 0.85rem;
  background: var(--light-grey);
  color: var(--primary-blue);
  padding: 3px 12px;
  border-radius: 20px;
}

/* STORY */
.nl-story {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
  scroll-margin-top: 110px;
  transition: 0.3s ease;
}

.nl-story:hover,
.nl-story:target {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-green);
}

.nl-region {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-blue);
  background: rgba(46, 82, 164, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.nl-region.is-india {
  background: rgba(213, 224, 65, 0.35);
  color: #4a4f00;
}

.nl-story h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-blue);
  margin-bottom: 10px;
  line-height: 1.35;
}

.nl-story p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
}

.nl-why {
  background: var(--light-grey);
  border-radius: 10px;
  padding: 10px 14px;
}

.nl-why b {
  color: var(--primary-blue);
}

.nl-story-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.nl-story-foot a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-blue);
  text-decoration: none;
}

.nl-story-foot a:hover {
  color: var(--secondary-blue);
  text-decoration: underline;
}

.nl-copy-text {
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #666;
  padding: 0;
}

.nl-copy-text:hover {
  color: var(--primary-blue);
}

/* SIDEBAR */
/* Not sticky: with up to 9 images the sidebar is taller than the screen */
.nl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Sidebar images (max 9 from admin, stacked) */
.nl-side-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nl-side-gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.nl-side-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nl-side-gallery-item:hover img {
  transform: scale(1.04);
}

.nl-side-box {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.nl-side-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary-blue);
  margin-bottom: 12px;
}

.nl-side-box p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 14px;
}

.nl-side-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nl-side-box li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  transition: 0.2s ease;
}

.nl-side-box li:last-child a {
  border-bottom: none;
}

.nl-side-box li a i {
  color: var(--primary-blue);
  width: 18px;
  text-align: center;
}

.nl-side-box li a b {
  margin-left: auto;
  color: var(--primary-blue);
}

.nl-side-box li a:hover {
  color: var(--primary-blue);
  padding-left: 8px;
}

.nl-side-promo {
  background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
  border: none;
}

.nl-side-promo h4,
.nl-side-promo p {
  color: #fff;
}

.article-nav .disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* -------------------------------------------------
    IMAGE ZOOM (lightbox for both galleries)
------------------------------------------------- */
.nl-gallery-item img,
.nl-side-gallery-item img {
  cursor: zoom-in;
}

.nl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px;
  background: rgba(10, 20, 45, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nl-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.nl-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: scale(0.94);
  transition: transform 0.25s ease;
  user-select: none;
}

.nl-lightbox.is-open .nl-lb-img {
  transform: scale(1);
}

.nl-lb-close,
.nl-lb-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nl-lb-close:hover,
.nl-lb-nav:hover {
  background: var(--primary-green);
  color: #000;
}

.nl-lb-close {
  top: 16px;
  right: 16px;
}

.nl-lb-nav {
  top: 50%;
  transform: translateY(-50%);
}

.nl-lb-prev {
  left: 14px;
}

.nl-lb-next {
  right: 14px;
}

.nl-lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.nl-lightbox.is-single .nl-lb-nav,
.nl-lightbox.is-single .nl-lb-count {
  display: none;
}

@media (max-width: 768px) {
  .nl-lightbox {
    padding: 70px 12px;
  }

  .nl-lb-nav {
    top: auto;
    bottom: 14px;
    transform: none;
    width: 42px;
    height: 42px;
  }

  .nl-lb-prev {
    left: 20px;
  }

  .nl-lb-next {
    right: 20px;
  }

  .nl-lb-count {
    bottom: 26px;
  }
}

/* -------------------------------------------------
    RESPONSIVE
------------------------------------------------- */
@media (max-width: 992px) {
  .nl-intro-grid,
  .nl-issue-layout {
    grid-template-columns: 1fr;
  }

  .nl-sidebar {
    position: static;
  }

  .nl-side-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .nl-side-gallery-item {
    border-radius: 10px;
  }

  .nl-issue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nl-promo {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nl-promo-btn {
    grid-column: 2;
    justify-self: start;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nl-hero {
    padding: 110px 0 50px;
  }

  .nl-latest-section {
    padding: 60px 0;
  }

  .nl-intro-title {
    font-size: 2.4rem;
  }

  .nl-latest-card {
    padding: 26px 20px;
  }

  .nl-lead {
    font-size: 1.5rem;
  }

  .nl-filter {
    flex-direction: column;
    margin-top: -10px;
  }

  .nl-filter .form-select {
    max-width: none;
  }

  .nl-issue-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .nl-gallery {
    gap: 10px;
    margin-bottom: 40px;
  }

  .nl-gallery-item {
    border-radius: 8px;
  }

  .nl-promo {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 24px;
  }

  .nl-promo-icon {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .nl-promo-btn {
    grid-column: 1;
    max-width: none;
    width: 100%;
  }

  .nl-masthead h1 {
    font-size: 1.7rem;
  }

  .nl-issue-container {
    padding: 22px 16px;
  }

  .nl-story {
    padding: 18px;
  }
}
