/* ─── NEWSPAPER PAGE STYLES ─── */

/* ─── VINTAGE PAPER TEXTURE ─── */
.news-section{
  padding: 20px 80px 80px;
  max-width: 1400px;
  margin: auto;
  position: relative;
}

.news-section::before{
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139,119,90,0.015) 2px, rgba(139,119,90,0.015) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(139,119,90,0.01) 3px, rgba(139,119,90,0.01) 6px);
  pointer-events: none;
  z-index: 0;
}

/* ─── BREAKING NEWS TICKER ─── */
.news-ticker{
  width: 100%;
  overflow: hidden;
  background: var(--navy);
  padding: 10px 0;
  margin-bottom: 30px;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.news-ticker-label{
  flex-shrink: 0;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  margin: 0 12px 0 0;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: tickerPulse 1.5s ease-in-out infinite;
}

.news-ticker-label i{
  font-size: 14px;
}

@keyframes tickerPulse{
  0%, 100%{ opacity:1; }
  50%{ opacity:0.7; }
}

.news-ticker-track{
  flex: 1;
  overflow: hidden;
  position: relative;
}

.news-ticker-text{
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: tickerScroll 25s linear infinite;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}

.news-ticker-text span{
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.news-ticker-text span::before{
  content: '◆';
  color: var(--cyan);
  font-size: 10px;
}

@keyframes tickerScroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}

.news-ticker:hover .news-ticker-text{
  animation-play-state: paused;
}

/* ─── FEATURED HERO SCAN ─── */
.news-featured{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid #e8edf4;
  position: relative;
  overflow: hidden;
}

.news-featured::before{
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,163,218,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.news-featured-content h3{
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-featured-content h3 i{
  font-size: 16px;
}

.news-featured-content h2{
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 14px;
}

.news-featured-content h2 span{
  color: var(--cyan);
  position: relative;
}

.news-featured-content h2 span::after{
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cyan);
  opacity: 0.3;
  border-radius: 2px;
}

.news-featured-content p{
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 0;
}

.news-featured-image{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.4s ease;
}

.news-featured-image:hover{
  transform: scale(1.02);
}

.news-featured-image img{
  width: 100%;
  display: block;
  border-radius: 12px;
}

.news-featured-image .play-overlay{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(3,22,62,0.7));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}

.news-featured-image:hover .play-overlay{
  opacity: 1;
}

.news-featured-image .play-overlay i{
  font-size: 20px;
  color: var(--cyan);
}

/* ─── HEADER ─── */
.news-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.section-title{
  text-align: left;
  font-size: 34px;
  font-weight: 800;
  margin: 0;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

.section-title::after{
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 50px;
  height: 4px;
  background: linear-gradient(to right, var(--cyan), transparent);
  border-radius: 2px;
}

/* ─── YEAR FILTER PILLS ─── */
.news-filters{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.news-filter-btn{
  padding: 8px 20px;
  border: 1.5px solid #e0e6ed;
  border-radius: 30px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-mid);
}

.news-filter-btn:hover{
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.news-filter-btn.active{
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,163,218,0.25);
}

/* ─── NEWSPAPER GRID ─── */
.news-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.news-item{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e4e9f0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  background: #fff;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  opacity: 0;
  animation: fadeScaleIn 0.5s ease forwards;
  transform-style: preserve-3d;
  perspective: 800px;
}

.news-item:hover{
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 20px 45px rgba(0,163,218,0.15);
  border-color: rgba(0,163,218,0.3);
}

@keyframes fadeScaleIn{
  from{ opacity:0; transform:scale(0.9) translateY(15px); }
  to{ opacity:1; transform:scale(1) translateY(0); }
}

.news-item:nth-child(1){ animation-delay:0.03s; }
.news-item:nth-child(2){ animation-delay:0.06s; }
.news-item:nth-child(3){ animation-delay:0.09s; }
.news-item:nth-child(4){ animation-delay:0.12s; }
.news-item:nth-child(5){ animation-delay:0.15s; }
.news-item:nth-child(6){ animation-delay:0.18s; }
.news-item:nth-child(7){ animation-delay:0.21s; }
.news-item:nth-child(8){ animation-delay:0.24s; }
.news-item:nth-child(9){ animation-delay:0.27s; }
.news-item:nth-child(10){ animation-delay:0.3s; }
.news-item:nth-child(11){ animation-delay:0.33s; }
.news-item:nth-child(12){ animation-delay:0.36s; }

/* Paper-curl corner */
.news-item::after{
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(225deg, #fff 30%, #e4e9f0 50%, #d0d6df 70%, #fff 100%);
  z-index: 3;
  border-radius: 0 0 14px 0;
  transition: all 0.3s ease;
  box-shadow: -3px -3px 8px rgba(0,0,0,0.05);
}

.news-item:hover::after{
  width: 40px;
  height: 40px;
  background: linear-gradient(225deg, #fff 25%, var(--cyan) 50%, #007d94 75%, #fff 100%);
  box-shadow: -4px -4px 12px rgba(0,163,218,0.15);
}

.news-item-inner{
  position: relative;
  width: 100%;
  padding-top: 135%;
  overflow: hidden;
  background: #f8fafc;
}

.news-item-inner img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  backface-visibility: hidden;
}

.news-item:hover .news-item-inner img{
  transform: scale(1.08);
}

.news-item-overlay{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 18px 18px;
background: linear-gradient(
    to top,
    rgba(0,163,218,0.95) 0%,
    rgba(0,163,218,0.7) 50%,
    rgba(255,255,255,0) 100%
);
  /* background: linear-gradient(transparent 20%, rgba(3,22,62,0.88) 90%); */
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.news-item:hover .news-item-overlay{
  opacity: 1;
}

.news-item-overlay span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  transform: translateY(8px);
  transition: transform 0.3s ease 0.05s;
}

.news-item:hover .news-item-overlay span{
  transform: translateY(0);
}

.news-item-overlay span i{
  font-size: 14px;
  color: var(--cyan);
  transition: transform 0.3s;
}

.news-item:hover .news-item-overlay span i{
  transform: translateX(4px) scale(1.1);
}

.news-item-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(3,22,62,0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.news-item:hover .news-item-badge{
  background: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* Stamp mark (decorative) */
.news-item-stamp{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 11px;
  font-weight: 900;
  color: rgba(231,76,60,0.15);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: 'Montserrat', sans-serif;
  border: 2px solid rgba(231,76,60,0.12);
  padding: 4px 14px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
  transition: all 0.4s;
}

.news-item:hover .news-item-stamp{
  color: rgba(0,163,218,0.2);
  border-color: rgba(0,163,218,0.15);
  transform: translate(-50%, -50%) rotate(-10deg) scale(1.05);
}

/* ─── LIGHTBOX ─── */
.lightbox{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3,22,62,0.95);
  backdrop-filter: blur(12px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: lightboxFade 0.3s ease;
}

.lightbox.open{
  display: flex;
}

@keyframes lightboxFade{
  from{ opacity:0; }
  to{ opacity:1; }
}

.lightbox-img{
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  object-fit: contain;
  animation: lightboxZoom 0.35s ease;
}

@keyframes lightboxZoom{
  from{ transform:scale(0.82); opacity:0; }
  to{ transform:scale(1); opacity:1; }
}

.lightbox-close{
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 10001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-close:hover{
  opacity: 1;
  background: rgba(255,255,255,0.15);
}

.lightbox-prev,
.lightbox-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 10001;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.lightbox-prev:hover,
.lightbox-next:hover{
  background: rgba(255,255,255,0.2);
  border-color: var(--cyan);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-prev{ left: 24px; }
.lightbox-next{ right: 24px; }

.lightbox-counter{
  position: absolute;
  bottom: 28px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Montserrat', sans-serif;
  background: rgba(255,255,255,0.06);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px){
  .news-featured{
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }
  .news-grid{
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
}

@media(max-width:768px){
  .news-section{
    padding: 20px 24px 50px;
  }
  .news-header{
    flex-direction: column;
    align-items: stretch;
  }
  .news-featured-content h2{
    font-size: 24px;
  }
  .news-grid{
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
  }
  .news-ticker-label{
    font-size: 10px;
    padding: 4px 12px;
  }
  .news-ticker-text{
    font-size: 12px;
  }
  .lightbox-prev{ left: 10px; }
  .lightbox-next{ right: 10px; }
  .lightbox-prev,
  .lightbox-next{
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}

@media(max-width:550px){
  .news-section{
    padding: 20px 16px 40px;
  }
  .news-featured{
    padding: 20px;
  }
  .news-featured-content h2{
    font-size: 20px;
  }
  .news-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .news-item-inner{
    padding-top: 120%;
  }
  .news-item::after{
    width: 20px;
    height: 20px;
  }
}
