/* =========================
   NEWSPAPER CARD SECTION
========================= */

/* =========================
   NEWSPAPER CARD SECTION (Overlay on Hero)
========================= */

.newspaper-card-section {
  position: absolute;
  top: 0;
  right: 0;
  height: 90vh; /* same as hero */
  width: 400px; /* you can tweak width */
  display: flex;
  justify-content: center; /* center horizontally within right side */
  align-items: center; /* center vertically in hero */
  z-index: 10; /* on top of hero */
  pointer-events: none; /* hero stays clickable underneath */
}

.newspaper-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto; /* re-enable links & hover on card */
}

.newspaper-card {
  background-color: #EEEEEE;
  color: var(--color-body);
  width: 340px;
  height: 70%; /* reduced from 85% */
  padding: 28px 30px 32px; /* slightly smaller padding */
  border: 1px solid #cfcfcf;
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background-image: url("../textures/crumpled-paper.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  transition: all 0.8s ease-in-out;
  filter: brightness(0.97) contrast(1.05);
}



/* TEXT */
.newspaper-card h3 {
  font-size: var(--font-lg);
  color: var(--color-heading);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 1.2px;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 8px;
}

.newspaper-card h4 {
  font-size: var(--font-sm);
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.newspaper-card p {
  font-size: var(--font-sm);
  line-height: var(--lh-loose);
  text-align: justify;
  margin-bottom: 6px; /* reduced from 10px */
}

.newspaper-card a.read-more {
  display: inline-block;
  margin-top: 8px; /* reduced from 15px */
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  font-size: var(--font-sm);
  letter-spacing: 0.6px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.newspaper-card a.read-more:hover {
  color: var(--color-heading);
}

/* =========================
   TEXT CROSSFADE ANIMATION
========================= */
.text-fade-out {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.text-fade-in {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}


/* Devices: width 1024px and height between 600px and 650px */
@media (width: 1024px) and (min-height: 600px) and (max-height: 650px) {
  .newspaper-card {
    height: 78%; /* increased from 70% */
  }
}

/* =========================
   NEWS CONTROLS (Prev, Pause, Next)
========================= */
.news-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 20;
}

.news-btn {
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.news-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
  .news-controls {
    bottom: 10px;
    right: 10px;
  }

  .news-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}
