/* ============ Newsletters Page CSS ============ */
.newsletters-hero {
  background: linear-gradient(135deg, #0E4D4A 0%, #166B67 100%);
  padding: 100px 0 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.newsletters-hero .decor-blob {
  position: absolute;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  filter: blur(40px);
}

.newsletters-hero .blob-1 { width: 300px; height: 300px; top: -100px; left: -100px; }
.newsletters-hero .blob-2 { width: 400px; height: 400px; bottom: -150px; right: -50px; }

.newsletters-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.newsletters-hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.newsletters-grid {
  padding: 80px 0;
  background: #f8fafc;
  min-height: 50vh;
}

.newsletters-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.nl-card-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nl-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(14, 77, 74, 0.08);
}

.nl-card-image {
  height: 200px;
  background: #EAF5F0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nl-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback gradients for the dummy images */
.nl-card-item:nth-child(1) .nl-card-image { background: linear-gradient(135deg, #FFD166 0%, #F59E0B 100%); }
.nl-card-item:nth-child(2) .nl-card-image { background: linear-gradient(135deg, #A7F3D0 0%, #10B981 100%); }
.nl-card-item:nth-child(3) .nl-card-image { background: linear-gradient(135deg, #BFDBFE 0%, #3B82F6 100%); }
.nl-card-item:nth-child(4) .nl-card-image { background: linear-gradient(135deg, #FBCFE8 0%, #EC4899 100%); }
.nl-card-item:nth-child(5) .nl-card-image { background: linear-gradient(135deg, #DDD6FE 0%, #8B5CF6 100%); }
.nl-card-item:nth-child(6) .nl-card-image { background: linear-gradient(135deg, #FECACA 0%, #EF4444 100%); }


.nl-card-image .nl-category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.9);
  color: #0E4D4A;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nl-card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nl-card-date {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 10px;
  font-weight: 500;
}

.nl-card-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  color: #0F172A;
  margin-bottom: 12px;
  line-height: 1.3;
}

.nl-card-content p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.nl-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #14938D;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
  margin-top: auto;
}

.nl-read-more:hover {
  gap: 12px;
  color: #0E4D4A;
}

@media (max-width: 768px) {
  .newsletters-hero h1 { font-size: 2.5rem; }
  .newsletters-container { grid-template-columns: 1fr; }
}

/* ============ Side Drawer (Offcanvas) CSS ============ */
.nl-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nl-drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}
.nl-side-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 600px;
  height: 100vh;
  background: #fff;
  z-index: 999999;
  box-shadow: -5px 0 25px rgba(0,0,0,0.1);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nl-side-drawer.show {
  right: 0;
}
.nl-drawer-header {
  padding: 20px 30px;
  background: #0E4D4A;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nl-drawer-header h5 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}
.nl-drawer-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.nl-drawer-close:hover {
  background: rgba(255,255,255,0.4);
}
.nl-drawer-body {
  padding: 30px;
}
.nl-drawer-image {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.nl-drawer-date {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 10px;
  font-weight: 500;
}
.nl-drawer-title {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: #0F172A;
  margin-bottom: 16px;
  line-height: 1.3;
}
.nl-drawer-short-desc {
  font-size: 1.1rem;
  color: #475569;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.6;
  border-left: 4px solid #14938D;
  padding-left: 16px;
}
.nl-drawer-content {
  line-height: 1.8;
  color: #334155;
  font-size: 1.05rem;
}

