
/* General Layout */
.news-main-section {
  background: #f8f9fa;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

/* Section Titles */
.gradient-text {
  background: linear-gradient(90deg, #800020 40%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Filter Buttons */
.filter-btn {
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(128,0,32,0.06);
}
.filter-btn.active,
.filter-btn.btn-gradient {
  background: linear-gradient(90deg, #800020 60%, #FFD700 100%);
  color: #fff !important;
  border: none;
}
.filter-btn.btn-outline-secondary {
  background: #fff;
  color: #800020 !important;
  border: 1.5px solid #FFD700;
}

/* Card Styles */
.glass-card {
  background: rgba(255,255,255,0.97);
  border: 1.5px solid #FFD70022;
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 8px 32px rgba(128,0,32,0.10), 0 2px 8px rgba(255,215,0,0.08);
}
.glass-card:hover {
  box-shadow: 0 12px 40px rgba(128,0,32,0.18), 0 2px 8px rgba(255,215,0,0.10);
  transform: translateY(-8px) scale(1.04);
}

/* Card Images */
.card-img-top-wrapper img,
.card-img-top {
  width: 100%;
  min-height: 180px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 1.2rem 1.2rem 0 0;
  filter: contrast(1.12) saturate(1.12) brightness(1.04);
  transition: filter 0.3s;
}
.card-img-top-wrapper img:hover {
  filter: contrast(1.18) saturate(1.18) brightness(1.08) drop-shadow(0 4px 24px rgba(128,0,32,0.10));
}

/* Card Badges */
.img-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #FFD700;
  color: #800020;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(128,0,32,0.10);
  border: 2px solid #fff;
  z-index: 2;
}

/* Section Spacing */
.news-main-section section {
  margin-bottom: 3rem !important;
}

/* Media Section */
.ratio-16x9 {
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(128,0,32,0.08);
}
.glass-card .d-flex.flex-wrap.gap-2 img {
  margin-bottom: 0.5rem;
  border-radius: 0.7rem;
  box-shadow: 0 2px 8px rgba(128,0,32,0.06);
}

/* Newsletter */
.news-main-section #newsletterForm {
  background: none;
  border-radius: 2rem;
  box-shadow: none;
}

.news-main-section #newsletterForm input[type="email"] {
  border-radius: 2rem;
  border: 2px solid #FFD700;
  background: #fffbe6;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(255,215,0,0.08);
  transition: border 0.2s, box-shadow 0.2s;
}
.news-main-section #newsletterForm input[type="email"]:focus {
  border-color: #800020;
  box-shadow: 0 0 0 2px #FFD70055;
  background: #fffde9;
}
.news-main-section #newsletterForm .btn-gradient {
  background: linear-gradient(90deg, #FFD700 60%, #800020 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  box-shadow: 0 4px 16px rgba(128,0,32,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
.news-main-section #newsletterForm .btn-gradient:hover {
  background: linear-gradient(90deg, #800020 60%, #FFD700 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(128,0,32,0.16);
}

/* Loader Overlay */
.loader-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}
.loader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}
.modern-loader {
  display: flex;
  gap: 12px;
}
.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #800020;
  opacity: 0;
  animation: fadePulse 1.5s infinite ease-in-out;
}
.dot1 { animation-delay: 0s; }
.dot2 { animation-delay: 0.3s; }
.dot3 { animation-delay: 0.6s; }
@keyframes fadePulse {
  0%, 100% { opacity: 0; transform: scale(0.8);}
  50% { opacity: 1; transform: scale(1.2);}
}

/* Responsive Tweaks */
@media (max-width: 991.98px) {
  .news-main-section {
    padding-top: 2rem;
  }
  .card-img-top-wrapper img,
  .card-img-top {
    min-height: 120px;
    max-height: 160px;
    border-radius: 1rem 1rem 0 0;
  }
  .glass-card {
    border-radius: 1rem;
  }
}
@media (max-width: 575.98px) {
  .news-main-section {
    padding-top: 1rem;
  }
  .glass-card {
    border-radius: 0.7rem;
  }
  .card-img-top-wrapper img,
  .card-img-top {
    min-height: 80px;
    max-height: 120px;
    border-radius: 0.7rem 0.7rem 0 0;
  }
  .news-main-section .glass-card h3.gradient-text {
    font-size: 1.3rem;
  }
  .news-main-section #newsletterForm input[type="email"] {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
}

.news-main-section #newsletterMsg {
  min-height: 28px;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
}

.news-main-section .glass-card h3.gradient-text {
  font-size: 2.1rem;
  margin-bottom: 0.7rem;
  background: linear-gradient(90deg, #FFD700 40%, #800020 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.news-main-section .glass-card p.mb-4 {
  color: #800020;
  font-size: 1.13rem;
  margin-bottom: 1.2rem !important;
}