/* Newsletters homepage section (mockup 7_Newsletter.html). */

.region-homepage-newsletters {
  width: 100%;
  background: #ffffff;
}

#block-lives-newsletters-homepage.newsletter-section {
  margin: 0 0 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #4d4d4d;
}

.newsletter-section {
  width: 100%;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.newsletter-section .section-link {
  color: #E30613;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.newsletter-section .section-link:hover {
  color: #1a1a1a;
}

.newsletter-section .section-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.newsletter-section .section-link:hover svg {
  transform: translateX(4px);
}

.newsletter-section .slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.newsletter-section .slider-arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-section .slider-arrow svg {
  width: 28px;
  height: 28px;
  stroke: #E30613;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.newsletter-section .slider-prev:hover svg {
  transform: translateX(-3px);
}

.newsletter-section .slider-next:hover svg {
  transform: translateX(3px);
}

.newsletter-section .slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.newsletter-section .slider-track::-webkit-scrollbar {
  display: none;
}

.newsletter-section .newsletter-card {
  flex-shrink: 0;
  width: 240px;
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

.newsletter-section .newsletter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  border-color: #E5E0D8;
}

.newsletter-section .card-header {
  background: linear-gradient(135deg, #E30613 0%, #c01018 100%);
  padding: 28px 22px;
  text-align: center;
  position: relative;
}

.newsletter-section .card-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: #F5B700;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.newsletter-section .card-nl-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  line-height: 1.2;
}

.newsletter-section .card-nl-title.is-long {
  font-size: 1rem;
}

.newsletter-section .card-date {
  font-size: 0.85rem;
  color: #F5B700;
  font-weight: 600;
}

.newsletter-section .card-body {
  padding: 20px 22px;
  min-height: 150px;
  flex-grow: 1;
}

.newsletter-section .card-summary {
  list-style: none;
  margin: 0;
  padding: 0;
}

.newsletter-section .card-summary li {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.45;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 16px;
}

.newsletter-section .card-summary li:last-child {
  border-bottom: none;
}

.newsletter-section .card-summary li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #E30613;
  font-size: 0.5rem;
  top: 10px;
}

.newsletter-section .card-footer {
  padding: 0 22px 20px;
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.newsletter-section .newsletter-card:not(:has(.card-body)) .card-footer {
  padding-top: 16px;
}

.newsletter-section .read-more {
  font-size: 0.8rem;
  color: #E30613;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.newsletter-section .read-more svg {
  width: 14px;
  height: 14px;
  stroke: #E30613;
  transition: transform 0.3s ease;
}

.newsletter-section .newsletter-card:hover .read-more svg {
  transform: translateX(3px);
}

.newsletter-section .subscription-box {
  background: #f8f8f8;
  padding: 40px;
  padding-left: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.newsletter-section .subscription-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: #F5B700;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.newsletter-section .subscription-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.newsletter-section .subscription-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.newsletter-section .subscription-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.newsletter-section .subscription-button {
  background: #E30613;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.newsletter-section .subscription-button:hover {
  background: #c01018;
}

.newsletter-section .subscription-button svg {
  width: 18px;
  height: 18px;
  stroke: white;
  transition: transform 0.3s ease;
}

.newsletter-section .subscription-button:hover svg {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .newsletter-section .subscription-box {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding-left: 40px;
  }

  .newsletter-section .subscription-box::before {
    width: 80px;
    height: 80px;
  }

  .newsletter-section .subscription-button {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .newsletter-section .newsletter-card {
    width: 200px;
  }

  .newsletter-section .subscription-box {
    padding: 30px 20px;
    padding-left: 20px;
  }

  .newsletter-section .subscription-box::before {
    width: 60px;
    height: 60px;
  }
}
