/* 🌟 News & Updates Styles (Dark Theme with Red Accents) */

.news {
  padding: 5rem 2rem;
  background: #0a0a12; /* deep navy-black */
  position: relative;
  overflow: hidden;
}

/* Red Accent Strip */
.news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ff1e1e, #b30000);
}

/* Container */
.news .container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Title & lead */
.news h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.news .lead {
  color: #ccc;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* 🔎 Search + Filter controls */
.news-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}
.news-controls input {
  padding: 0.7rem 1rem;
  width: 280px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(12px);
  color: #fff;
}
.news-controls input::placeholder {
  color: #aaa;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.filter-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.filter-btn.active,
.filter-btn:hover {
  background: #ff1e1e;
  color: #fff;
}

/* 🌟 Featured News */
.featured-news {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.featured-news img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.featured-content {
  padding: 1.5rem;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(20px);
  text-align: left;
  color: #fff;
}
.featured-content h3 {
  margin: 0.5rem 0;
  font-size: 1.6rem;
  color: #ff4f4f;
}
.featured-content .read-more {
  margin-top: 1rem;
  background: #ff1e1e;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.featured-content .read-more:hover {
  background: #b30000;
}

/* 📰 News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.news-card {
  background: rgba(20, 20, 20, 0.55); /* dark glass */
  backdrop-filter: blur(18px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  color: #fff;
}
.news-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-card .content {
  padding: 1rem 1.2rem;
}
.news-card h3 {
  margin: 0.6rem 0;
  font-size: 1.3rem;
  color: #ff4f4f;
}
.news-card p {
  color: #ccc;
  font-size: 0.95rem;
}
.news-card .read-more {
  margin-top: 0.8rem;
  background: transparent;
  border: none;
  color: #ff4f4f;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}
.news-card .read-more:hover {
  color: #fff;
}

/* 🏷️ Tags & Dates */
.date {
  display: inline-block;
  background: #ff1e1e;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  margin-right: 0.5rem;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
}
.tag.fundraiser {
  background: #ff4f81;
  color: #fff;
}
.tag.event {
  background: #42a5f5;
  color: #fff;
}
.tag.achievement {
  background: #66bb6a;
  color: #fff;
}

/* 📩 Newsletter CTA */
.newsletter-cta {
  margin-top: 4rem;
  padding: 2rem;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
  text-align: center;
  color: #fff;
}
.newsletter-cta h3 {
  margin-bottom: 0.5rem;
  color: #ff4f4f;
}
.newsletter-cta form {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.newsletter-cta input {
  padding: 0.7rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 250px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
}
.newsletter-cta input::placeholder {
  color: #aaa;
}
.newsletter-cta button {
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  border: none;
  background: #ff1e1e;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.newsletter-cta button:hover {
  background: #b30000;
}

/* 🔥 Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
}
.modal-content {
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  max-width: 600px;
  margin: 8% auto;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
  text-align: left;
  animation: slideDown 0.4s ease;
}
.modal-content h2 {
  margin-top: 0;
  color: #ff4f4f;
}
.modal .close {
  float: right;
  font-size: 1.6rem;
  cursor: pointer;
  color: #fff;
}
@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .featured-news img {
    height: 200px;
  }
  .modal-content {
    width: 90%;
    margin: 15% auto;
  }
}
/* Make links look like buttons */
.btn-link {
  display: inline-block;
  text-decoration: none;
  background: #009688;
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease;
  cursor: pointer;
}

.btn-link:hover {
  background: #00796b;
}
