/* =============================================
   NEWSLETTER PAGE — styles.css
   Depends on ../css/styles.css
============================================= */

/* =============================================
   HERO
============================================= */
#nl-hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.nl-hero-bg {
  position: absolute;
  inset: 0;
}

.nl-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.nl-hero-overlay {
  position: absolute;
  inset: 0;
  /* Strong dark gradient on left for text legibility */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.10) 100%
  );
}

.nl-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 110px 60px;
}

.nl-hero-content h1 {
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
}

/* Mascot floats bottom-right of hero */
.nl-hero-mascot {
  position: absolute;
  bottom: 0;
  right: 6%;
  z-index: 3;
  width: 200px;
  pointer-events: none;
}

.nl-hero-mascot svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
}

@media (max-width: 1024px) {
  .nl-hero-content { padding: 0 60px 50px; }
  .nl-hero-content h1 { font-size: 50px; }
  .nl-hero-mascot { width: 150px; right: 3%; }
}

@media (max-width: 767px) {
  #nl-hero { height: 360px; }
  .nl-hero-content { padding: 0 20px 40px; }
  .nl-hero-content h1 { font-size: 38px; }
  .nl-hero-mascot { width: 110px; right: 2%; }
}


/* =============================================
   WHAT IS HUB DATE
============================================= */
#nl-what {
  background: #ffffff;
  padding: 90px 0 80px;
}

.nl-what-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 110px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.nl-what-text {
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nl-what-text h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0;
}

.nl-what-text p {
  font-size: 16px;
  line-height: 1.75;
  color: #2d2d2d;
  margin: 0;
}

.nl-read-btn {
  display: inline-block;
  align-self: flex-start;
  background-color: #F78A3C;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nl-read-btn:hover {
  background-color: #e07530;
  transform: scale(1.03);
}

/* Device mockup (right side) */
.nl-what-mockup {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nl-mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

/* "HUB DATE" branding label above laptop */
.nl-mockup-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
  line-height: 1;
  gap: 2px;
}

.nl-hub-red {
  font-size: 42px;
  font-weight: 900;
  color: #812926;
  letter-spacing: -1px;
}

.nl-welcome-small {
  font-size: 13px;
  color: #812926;
  font-style: italic;
  font-weight: 500;
  margin-left: 52px;
}

.nl-hub-date-big {
  font-size: 42px;
  font-weight: 900;
  color: #812926;
  letter-spacing: -1px;
  margin-left: 52px;
}

/* Laptop shell */
.nl-laptop {
  background: #1a1a1a;
  border-radius: 12px 12px 0 0;
  padding: 12px 12px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.20);
}

.nl-laptop-screen {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  min-height: 220px;
}

.nl-screen-content {
  padding: 0;
}

.nl-screen-header {
  background: #812926;
  padding: 10px 16px;
}

.nl-sc-logo {
  color: #FFD546;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
}

.nl-screen-body {
  padding: 14px 16px;
}

.nl-sc-greeting {
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.nl-sc-text {
  font-size: 10.5px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 8px;
}

.nl-sc-bullet {
  font-size: 10px;
  line-height: 1.5;
  color: #444;
  margin: 0 0 4px;
}

.nl-laptop-base {
  background: #2d2d2d;
  height: 14px;
  border-radius: 0 0 8px 8px;
  margin: 0 -4px;
}

/* Phone shell (overlapping laptop bottom-left) */
.nl-phone {
  position: absolute;
  bottom: -20px;
  left: -30px;
  width: 100px;
  background: #1a1a1a;
  border-radius: 14px;
  padding: 8px 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.nl-phone-screen {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-phone-content {
  text-align: center;
  padding: 10px;
}

.nl-phone-hub {
  font-size: 10px;
  font-weight: 900;
  color: #812926;
  letter-spacing: 0.5px;
  display: block;
}

@media (max-width: 1024px) {
  .nl-what-inner { flex-direction: column; padding: 0 60px; gap: 60px; }
  .nl-what-text { flex: none; width: 100%; }
  .nl-mockup-wrap { max-width: 400px; }
}

@media (max-width: 767px) {
  #nl-what { padding: 70px 0; }
  .nl-what-inner { padding: 0 20px; }
  .nl-what-text h2 { font-size: 32px; }
  .nl-read-btn { font-size: 16px; padding: 16px 30px; }
  .nl-phone { display: none; }
}


/* =============================================
   SUBSCRIBE FORM
============================================= */
#nl-subscribe {
  background: #ffffff;
  padding: 0 0 80px;
}

.nl-subscribe-inner {
  display: flex;
  min-height: 520px;
}

/* Left: image half */
.nl-subscribe-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}

.nl-subscribe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* "SUBSCRIBE NOW" badge overlay */
.nl-subscribe-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 180, 200, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nl-subscribe-now-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.nl-sub-line1 {
  font-size: 64px;
  font-weight: 900;
  color: #ffffff;
  background: #FFD546;
  color: #1a1a1a;
  padding: 4px 16px 0;
  line-height: 1.15;
  letter-spacing: -1px;
  display: block;
  transform: rotate(-2deg);
}

.nl-sub-line2 {
  font-size: 64px;
  font-weight: 900;
  color: #1a1a1a;
  background: #FFD546;
  padding: 0 16px 6px;
  line-height: 1.15;
  letter-spacing: -1px;
  display: block;
  transform: rotate(-2deg) translateX(20px);
}

/* Right: form half */
.nl-subscribe-form-wrap {
  flex: 1;
  background: #FAF5EE;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.nl-subscribe-form-wrap h2 {
  font-size: 36px;
  font-weight: 700;
  color: #41BED0;
  line-height: 1.2;
  margin: 0;
}

.nl-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-form-field input,
.nl-form-field select {
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: #2d2d2d;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.nl-form-field input:focus,
.nl-form-field select:focus {
  box-shadow: 0 0 0 2px #41BED0;
}

.nl-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  cursor: pointer;
  color: #999;
}

.nl-form-field select:valid,
.nl-form-field select option:not([disabled]) {
  color: #2d2d2d;
}

.nl-form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.nl-form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #41BED0;
}

.nl-form-check label {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

.nl-form-check label a {
  color: #41BED0;
  text-decoration: underline;
}

.nl-subscribe-btn {
  align-self: flex-start;
  background: #41BED0;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 44px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nl-subscribe-btn:hover {
  background: #2fa8be;
  transform: scale(1.03);
}

.nl-form-success {
  font-size: 15px;
  color: #2fa8be;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 1024px) {
  .nl-subscribe-inner { flex-direction: column; }
  .nl-subscribe-image { flex: none; height: 360px; }
  .nl-subscribe-form-wrap { padding: 50px 60px; }
  .nl-subscribe-form-wrap h2 { font-size: 30px; }
}

@media (max-width: 767px) {
  .nl-subscribe-image { height: 280px; }
  .nl-subscribe-form-wrap { padding: 40px 20px; }
  .nl-subscribe-form-wrap h2 { font-size: 26px; }
  .nl-sub-line1, .nl-sub-line2 { font-size: 44px; }
}


/* =============================================
   NEWSLETTER ARCHIVE — card grid
============================================= */
#nl-archive {
  background: #ffffff;
  padding: 0 0 100px;
}

.nl-archive-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 110px;
}

.nl-archive-heading {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 48px;
  line-height: 1.15;
}

/* 3-column grid */
.nl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

/* Base card */
.nl-card {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

/* ---- ALL cards: photo always fills the card ---- */
.nl-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
  z-index: 0;
}

.nl-card:hover img {
  transform: scale(1.04);
}

/* Dark gradient — always visible at bottom so title is readable */
.nl-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.15) 50%,
    transparent 100%
  );
  z-index: 1;
  transition: opacity 0.35s ease;
}

/* Colored hover overlay — hidden by default, shown on hover */
.nl-card-color-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--hover-color, #7EBB55);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: inherit;
}

.nl-card:hover .nl-card-color-overlay {
  opacity: 0.85;
}

/* On hover, dim the dark gradient so the color overlay dominates */
.nl-card:hover .nl-card-overlay {
  opacity: 0;
}

/* ---- DEFAULT state: title bottom-left, arrow bottom-right ---- */
.nl-card-default-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.3s ease;
}

.nl-card-default-content .nl-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.nl-card-default-content .nl-card-arrow {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  color: #ffffff;
  font-weight: 300;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Hide default arrow on hover */
.nl-card:hover .nl-card-default-content .nl-card-arrow {
  opacity: 0;
}

/* ---- HOVER state: title top-left, arrow bottom-right ---- */
.nl-card-hover-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nl-card:hover .nl-card-hover-content {
  opacity: 1;
}

.nl-card-hover-content .nl-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.nl-card-hover-content .nl-card-arrow-bottom {
  align-self: flex-end;
  font-size: 32px;
  color: #ffffff;
  font-weight: 300;
}

/* Hidden cards (shown on "show more") */
.nl-hidden {
  display: none;
}

/* Show more button */
.nl-show-more-wrap {
  display: flex;
  justify-content: center;
}

.nl-show-more-btn {
  background: #41BED0;
  color: #ffffff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  padding: 20px 56px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nl-show-more-btn:hover {
  background: #2fa8be;
  transform: scale(1.03);
}

.nl-show-more-btn.hidden {
  display: none;
}

@media (max-width: 1024px) {
  .nl-archive-inner { padding: 0 60px; }
  .nl-card-solid .nl-card-title { font-size: 22px; }
}

@media (max-width: 767px) {
  #nl-archive { padding: 0 0 70px; }
  .nl-archive-inner { padding: 0 20px; }
  .nl-archive-heading { font-size: 32px; margin-bottom: 32px; }
  .nl-grid { grid-template-columns: 1fr; gap: 14px; }
  .nl-card { aspect-ratio: 16 / 9; }
  .nl-card-solid .nl-card-title { font-size: 20px; }
  .nl-show-more-btn { font-size: 17px; padding: 18px 40px; }
}