/* ========================================
   Home - Newsletter Cards
   ======================================== */

.newsletter-card {
  background: #171717;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  transition: all 0.4s ease-in-out;
  border: 1px solid rgba(255,255,255,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF731D, #ff9a5c);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.newsletter-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 115, 29, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.newsletter-card:hover::before {
  opacity: 1;
}

.nl-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.nl-edition {
  background: linear-gradient(135deg, #FF731D, #ff9a5c);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.nl-date {
  color: #888;
  font-size: 13px;
  font-family: 'Barlow', sans-serif;
}

.nl-date i {
  color: #FF731D;
  margin-right: 5px;
}

.nl-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  line-height: 1.4;
  margin-bottom: 12px;
}

.nl-summary {
  color: #999;
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Barlow', sans-serif;
  margin-bottom: 18px;
  flex-grow: 1;
}

.nl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.nl-tag {
  background: rgba(255, 115, 29, 0.08);
  color: #FF731D;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 115, 29, 0.15);
}

.nl-read-btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  align-self: flex-start;
}

.nl-read-btn i {
  margin-right: 8px;
}

.nl-home-cta {
  text-align: center;
  margin-top: 20px;
}

/* ========================================
   Newsletter Page - Header
   ======================================== */

.newsletter-archive-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.newsletter-archive-header p {
  color: #999;
  font-size: 17px;
  line-height: 1.7;
  font-family: 'Barlow', sans-serif;
  margin-top: 20px;
}

/* ========================================
   Newsletter Page - Subscribe Box
   ======================================== */

.nl-subscribe-box {
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border: 1px solid rgba(255, 115, 29, 0.2);
  border-radius: 20px;
  padding: 45px 40px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.nl-subscribe-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 115, 29, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.nl-subscribe-box::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 115, 29, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.nl-subscribe-box h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  margin-bottom: 10px;
  position: relative;
}

.nl-subscribe-box p {
  color: #999;
  font-size: 15px;
  font-family: 'Barlow', sans-serif;
  margin-bottom: 25px;
  position: relative;
}

.nl-subscribe-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  gap: 10px;
  position: relative;
}

.nl-subscribe-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 14px 24px;
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}

.nl-subscribe-form input[type="email"]:focus {
  border-color: #FF731D;
  background: rgba(255, 115, 29, 0.04);
}

.nl-subscribe-form input[type="email"]::placeholder {
  color: #555;
}

/* ========================================
   Newsletter Page - Featured (Latest)
   ======================================== */

.nl-featured {
  background: linear-gradient(135deg, #171717 0%, #1a1a1a 50%, #171717 100%);
  border: 1px solid rgba(255, 115, 29, 0.15);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.nl-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF731D, #ff9a5c, #FF731D);
}

.nl-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF731D, #ff9a5c);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nl-featured-content {
  padding-right: 20px;
}

.nl-featured-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.nl-edition-lg {
  background: rgba(255, 115, 29, 0.15);
  color: #FF731D;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 5px 16px;
  border-radius: 8px;
}

.nl-featured-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  line-height: 1.3;
  margin-bottom: 15px;
}

.nl-featured-summary {
  color: #999;
  font-size: 16px;
  line-height: 1.7;
  font-family: 'Barlow', sans-serif;
  margin-bottom: 20px;
}

.nl-featured-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 30px;
}

.nl-featured-icon-wrap {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 115, 29, 0.12), rgba(255, 115, 29, 0.04));
  border: 1px solid rgba(255, 115, 29, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #FF731D;
}

.nl-featured-stats {
  display: flex;
  gap: 30px;
}

.nl-stat {
  text-align: center;
}

.nl-stat-number {
  display: block;
  color: #FF731D;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 4px;
}

.nl-stat-label {
  color: #666;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   Newsletter Page - Timeline
   ======================================== */

.nl-timeline-header {
  margin-bottom: 30px;
}

.nl-timeline-header h3 {
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nl-timeline-header h3 i {
  color: #FF731D;
  font-size: 18px;
}

.nl-timeline {
  position: relative;
  padding-left: 30px;
}

.nl-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #FF731D, rgba(255, 115, 29, 0.1));
}

.nl-timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.nl-timeline-dot {
  position: absolute;
  left: -26px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 3px solid #FF731D;
  z-index: 1;
  transition: all 0.3s;
}

.nl-timeline-item:hover .nl-timeline-dot {
  background: #FF731D;
  box-shadow: 0 0 12px rgba(255, 115, 29, 0.4);
}

.nl-timeline-card {
  background: #171717;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 28px 30px;
  transition: all 0.3s ease;
}

.nl-timeline-card:hover {
  border-color: rgba(255, 115, 29, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.nl-timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.nl-timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nl-edition-sm {
  background: rgba(255, 115, 29, 0.1);
  color: #FF731D;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
}

.nl-timeline-title {
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.nl-timeline-summary {
  color: #888;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.nl-timeline-link {
  color: #FF731D;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.nl-timeline-link:hover {
  color: #ff9a5c;
  gap: 12px;
}

/* ========================================
   Newsletter Detail Page - Modern Layout
   ======================================== */

.nl-detail-section {
  padding-bottom: 60px;
}

.newsletter-detail {
  max-width: 820px;
  margin: 0 auto;
}

.nl-back-link {
  display: inline-flex;
  align-items: center;
  color: #FF731D;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 30px;
  transition: all 0.3s;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nl-back-link:hover {
  color: #ff9a5c;
  gap: 12px;
}

/* Hero */
.nl-detail-hero {
  background: linear-gradient(135deg, #171717 0%, #1c1c1c 50%, #141414 100%);
  border: 1px solid rgba(255, 115, 29, 0.12);
  border-radius: 24px;
  padding: 48px 44px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.nl-detail-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #FF731D, #ff9a5c, #FF731D, transparent);
}

.nl-detail-hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 115, 29, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.nl-detail-hero-inner {
  position: relative;
}

.nl-detail-edition-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF731D, #ff9a5c);
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.nl-detail-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.nl-detail-date,
.nl-detail-read-time {
  color: #888;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nl-detail-date i,
.nl-detail-read-time i {
  color: #FF731D;
  font-size: 13px;
}

.nl-detail-hero-title {
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 22px;
  letter-spacing: -0.3px;
}

.nl-detail-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Intro */
.nl-detail-intro {
  margin-bottom: 36px;
  padding: 0 4px;
}

.nl-detail-intro p {
  color: #b0b0b0;
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

/* Article Cards */
.nl-detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.nl-article-card {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s ease;
  position: relative;
}

.nl-article-card:hover {
  border-color: rgba(255, 115, 29, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateX(4px);
}

.nl-article-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #FF731D, #ff9a5c);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nl-article-card:hover .nl-article-card-accent {
  opacity: 1;
}

.nl-article-card-inner {
  display: flex;
  padding: 30px 32px;
  gap: 24px;
}

.nl-article-number {
  color: rgba(255, 115, 29, 0.15);
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  min-width: 56px;
  user-select: none;
  transition: color 0.35s;
}

.nl-article-card:hover .nl-article-number {
  color: rgba(255, 115, 29, 0.3);
}

.nl-article-content {
  flex: 1;
  min-width: 0;
}

.nl-article-severity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nl-severity-critical {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.nl-severity-high {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.nl-severity-alert {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.nl-severity-warning {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.nl-article-content h3 {
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
}

.nl-article-content p {
  color: #999;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

.nl-article-action {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.nl-article-action span {
  color: #FF731D;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nl-article-action span i {
  font-size: 12px;
}

/* Tip of the Week */
.nl-detail-tip {
  background: linear-gradient(135deg, rgba(255, 115, 29, 0.06) 0%, rgba(255, 115, 29, 0.02) 100%);
  border: 1px solid rgba(255, 115, 29, 0.15);
  border-radius: 18px;
  padding: 32px 36px;
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.nl-tip-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: rgba(255, 115, 29, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF731D;
  font-size: 22px;
}

.nl-tip-content h4 {
  color: #FF731D;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.nl-tip-content p {
  color: #b0b0b0;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Footer / Sign-off */
.nl-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 30px;
}

.nl-detail-sign-off p {
  color: #888;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  margin-bottom: 6px;
}

.nl-detail-author {
  color: #FF731D;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.nl-detail-share {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nl-detail-share > span {
  color: #666;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nl-share-links {
  display: flex;
  gap: 8px;
}

.nl-share-links a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #888;
  font-size: 15px;
  transition: all 0.3s;
}

.nl-share-links a:hover {
  background: rgba(255, 115, 29, 0.1);
  border-color: rgba(255, 115, 29, 0.25);
  color: #FF731D;
}

/* Nav bottom */
.nl-detail-nav {
  text-align: center;
}

.nl-nav-all {
  color: #FF731D;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid rgba(255, 115, 29, 0.2);
  background: rgba(255, 115, 29, 0.04);
}

.nl-nav-all:hover {
  background: rgba(255, 115, 29, 0.1);
  border-color: rgba(255, 115, 29, 0.4);
  color: #FF731D;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991px) {
  .nl-featured {
    padding: 30px;
  }

  .nl-featured-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .nl-featured-title {
    font-size: 24px;
  }

  .nl-featured-visual {
    flex-direction: row;
    justify-content: center;
  }

  .nl-featured-icon-wrap {
    width: 80px;
    height: 80px;
    font-size: 32px;
    border-radius: 16px;
  }

  .nl-detail-hero {
    padding: 36px 30px;
  }

  .nl-detail-hero-title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .nl-subscribe-form {
    flex-direction: column;
  }

  .nl-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nl-featured {
    padding: 24px;
  }

  .nl-featured-title {
    font-size: 20px;
  }

  .nl-timeline-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .nl-featured-visual {
    flex-direction: column;
  }

  .nl-featured-stats {
    gap: 20px;
  }

  .nl-detail-hero {
    padding: 28px 22px;
  }

  .nl-detail-hero-title {
    font-size: 22px;
  }

  .nl-detail-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nl-article-card-inner {
    flex-direction: column;
    padding: 24px;
    gap: 12px;
  }

  .nl-article-number {
    font-size: 32px;
    min-width: auto;
  }

  .nl-detail-tip {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .nl-detail-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nl-detail-share {
    flex-direction: column;
    gap: 10px;
  }
}
