/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navbar: #5DADE2;
  --bg: #F8FBFF;
  --mint: #7ED6A5;
  --mint-hover: #66c491;
  --hover-blue: #4A90E2;
  --text: #2C3E50;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== NEWS HERO ===== */
.news-hero {
  background: linear-gradient(135deg, #EAF4FF 0%, var(--bg) 100%);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-hero-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.news-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  margin: 10px 0 16px;
}

.news-hero p {
  color: #5A6B7B;
  font-size: 1.05rem;
  line-height: 1.7;
}

.news-hero .floating-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--navbar);
}

.news-hero .icon-1 { top: 15%; left: 10%; }
.news-hero .icon-2 { top: 20%; right: 12%; color: var(--mint-hover); }
.news-hero .icon-3 { top: 70%; left: 45%; }



/* ===== SHARED SECTIONS ===== */
.news-filter,
.featured-news,
.news-grid-section {
  max-width: 1300px;
  margin: 50px auto;
  padding: 40px 50px;
}

.eyebrow {
  color: var(--navbar);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.eyebrow.center {
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--navbar);
  background: rgba(93, 173, 226, 0.12);
  width: fit-content;
  margin: 0 auto 20px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
}

.eyebrow i {
  margin-right: 6px;
}

.news-grid-section h2.center {
  text-align: center;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 16px;
}

/* ===== FEATURED NEWS ===== */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-image {
  position: relative;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.featured-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--mint-hover);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.featured-content {
  background: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-date {
  color: var(--navbar);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.featured-content h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}

.featured-content p:not(.featured-date) {
  color: #5A6B7B;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.featured-extra {
  display: none;
  margin-bottom: 18px;
}

.featured-extra p {
  color: #5A6B7B;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.featured-extra.show {
  display: block;
  animation: fadeSlideDown 0.4s ease;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== FILTER TABS =====
   White bar + shadow + radius
   Each button grows with its text → label always fits & stays centered
   ================================= */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 35px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 24px;
  padding: 12px 20px;
  gap: 12px;
}

/* Colors match your original code: bg = light, active = navbar blue */
.filter-btn {
  background: var(--bg);
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  width: auto;
  transition: background 0.2s ease, color 0.2s ease;
  /* stops blue rectangle flash on click / tap */
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.filter-btn:focus,
.filter-btn:focus-visible,
.filter-btn:active {
  outline: none;
  box-shadow: none;
}

.filter-btn:hover {
  background: #EAF4FF;
}

.filter-btn.active {
  background: var(--navbar);
  color: var(--white);
}

/* ===== NEWS CARDS GRID ===== */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.news-card-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-card-image {
  position: relative;
  height: 180px;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navbar);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

.news-card-body {
  padding: 22px;
}

.news-date {
  color: var(--navbar);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.news-card-body h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card-body p:not(.news-date) {
  color: #6B7C8C;
  font-size: 0.87rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.load-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

.load-more-wrapper .btn {
  display: inline-flex;
}

.hidden-news {
  display: none;
}

/* ===== ANNOUNCEMENTS ===== */
.announcements-box {
  max-width: 1000px;
  margin: 50px auto;
  background: #FFF7E6;
  border-left: 4px solid #F5A623;
  border-radius: var(--radius);
  padding: 30px 40px;
}

.announcements-box .eyebrow {
  color: #B8790C;
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.announcement-item i {
  color: #F5A623;
}

.announcement-item p {
  color: #6B5B3A;
  font-size: 0.92rem;
}

/* ===== NEWSLETTER ===== */
.news-newsletter {
  background: var(--navbar);
  padding: 60px 40px;
  margin-top: 60px;
}

.newsletter-inner {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.newsletter-inner i {
  font-size: 2rem;
  margin-bottom: 16px;
}

.newsletter-inner h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.newsletter-inner p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.news-newsletter-form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  align-items: stretch;
}

.news-newsletter-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 18px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.9rem;
  outline: none;
}

.news-newsletter-form button {
  flex: 0 0 auto;
  background: var(--mint);
  color: var(--text);
  border: none;
  padding: 14px 22px;
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-image img {
    min-height: 240px;
  }

  .news-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Floating icons visible on mobile — smaller */
  .news-hero .floating-icon {
    display: flex;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .news-hero .icon-1 { top: 10%; left: 4%; }
  .news-hero .icon-2 { top: 12%; right: 4%; }
  .news-hero .icon-3 { top: 78%; left: 8%; }


  .news-hero {
    padding: 50px 16px;
  }

  .news-hero h1 {
    font-size: 2rem;
  }

  .news-filter,
  .featured-news,
  .news-grid-section {
    padding: 24px 16px;
    margin: 28px 12px;
    max-width: calc(100% - 24px);
  }

  .news-grid-section h2.center {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .featured-content {
    padding: 24px 18px;
  }

  .featured-content h2 {
    font-size: 1.25rem;
  }

  /*
    Same tab style (white bar, shadow, radius)
    Buttons size to content so full name fits centered
    flex-wrap → about 3 per row when space allows
  */
  .filter-tabs {
    width: 100%;
    max-width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 35px;
    padding: 12px 14px;
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
  }

  .filter-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 12px 18px;
    font-size: 0.8rem;
    border-radius: 30px;
    background: var(--bg);
    border: none;
    text-align: center;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  .filter-btn.active {
    background: var(--navbar);
    color: var(--white);
  }

  .news-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .news-card-image {
    height: 140px;
  }

  .news-card-body {
    padding: 14px;
  }

  .news-card-body h4 {
    font-size: 0.9rem;
  }

  .news-card-body p:not(.news-date) {
    font-size: 0.78rem;
  }

  .announcements-box {
    margin: 28px 12px;
    padding: 20px 16px;
  }

  .news-newsletter {
    padding: 40px 16px;
  }

  .news-newsletter-form {
    width: 100%;
    max-width: 100%;
  }

  .news-newsletter-form button {
    padding: 14px 16px;
    font-size: 0.85rem;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
  }

  
}

@media (max-width: 480px) {
  .news-hero h1 {
    font-size: 1.7rem;
  }

  .filter-tabs {
    border-radius: 28px;
    padding: 10px 12px;
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 14px;
    font-size: 0.75rem;
    border-radius: 24px;
  }

  .news-cards-grid {
    gap: 10px;
  }

  .footer-container {
    gap: 24px 14px;
  }
}
