:root {
  --primary: #198754;
  --primary-hover: #157347;
  --primary-dark: #146c43;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --border: #e9ecef;
  --shadow: 0 12px 30px rgba(33, 37, 41, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-section {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #f8fff9 0%, #f1f8f4 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--primary);
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  margin: 0 0 1rem;
}

.hero-copy p,
.section-heading p,
.card-body p,
.news-card p,
.resource-panel li,
.site-footer p {
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.4rem 0 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(25, 135, 84, 0.18);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--border);
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  color: var(--text-dark);
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  animation: floatCard 4s ease-in-out infinite;
}

.hero-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
  font-weight: 600;
}

.quick-access,
.updates-section,
.articles-section,
.events-section,
.opportunities-section,
.video-section,
.resources-section,
.newsletter-section,
.related-section {
  padding: 4rem 0 0;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-cards,
.article-grid,
.event-grid,
.opportunity-grid,
.related-grid {
  display: grid;
  gap: 1.25rem;
}

.quick-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.article-card,
.event-card,
.opportunity-card,
.news-card,
.resource-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover,
.article-card:hover,
.event-card:hover,
.opportunity-card:hover,
.news-card:hover,
.resource-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(33, 37, 41, 0.12);
}

.info-card {
  padding: 1.4rem;
}

.info-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--light-bg);
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card,
.event-card {
  overflow: hidden;
}

.article-card img,
.event-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.pill,
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--light-bg);
  color: var(--primary-dark);
  font-size: 0.77rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.6rem;
}

.filter-bar {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
}

.search-box input,
.filter-bar select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem 0.7rem 2.4rem;
  min-width: 220px;
  font: inherit;
  color: var(--text-dark);
  background: #fff;
}

.search-box i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
}

.updates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.news-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(33, 37, 41, 0.06);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  opacity: 0;
  transform: translateY(40px);
}

.news-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.news-card-media {
  position: relative;
  overflow: hidden;
}

.news-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.news-card-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-update-card:hover .featured-update-image img,
.featured-update-card:focus-within .featured-update-image img {
  transform: scale(1.05);
}

.news-card-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  background: #198754;
  color: #fff;
  border-radius: 20px;
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.news-card .card-body {
  padding: 2rem;
}

.news-card h3 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #212529;
  margin: 0 0 0.9rem;
}

.news-card p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #6c757d;
  margin: 0 0 1.25rem;
}

.news-card .category-badge {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1rem;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #777;
  font-size: 0.92rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.news-meta-text {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.news-card .btn {
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.news-card .btn-primary {
  background: #198754;
  color: #fff;
}

.news-card .btn-secondary {
  background: #fff;
  color: #198754;
  border: 1px solid #198754;
}

.watch-video-btn:hover,
.watch-video-btn:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(25, 135, 84, 0.2);
}

.read-more-btn:hover,
.read-more-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(25, 135, 84, 0.14);
  background: rgba(25, 135, 84, 0.04);
}

.play-icon-animation {
  display: inline-flex;
  animation: pulsePlay 1.6s ease-in-out infinite;
}

@keyframes pulsePlay {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.event-card .card-body p {
  margin: 0.2rem 0;
}

.opportunity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.opportunity-card {
  padding: 1.4rem;
}

.deadline {
  color: var(--primary-dark);
}

.video-shell {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.25rem;
  align-items: center;
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.play-button {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 1.6rem;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.resource-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-panel {
  padding: 1.3rem 1.4rem;
}

.resource-panel ul {
  padding-left: 1rem;
  margin: 0.7rem 0 0;
}

.newsletter-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 28px;
  padding: 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.newsletter-form input {
  min-width: 260px;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
}

.newsletter-form .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.newsletter-form .btn-primary:hover,
.newsletter-form .btn-primary:focus-visible {
  background: #f2f6f3;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-detail-container {
  padding: 3rem 0 4rem;
}

.article-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-detail-header {
  padding: 2rem 2rem 1rem;
}

.article-detail-header h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  color: var(--primary-dark);
  margin: 0.8rem 0 0.9rem;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-detail-media {
  padding: 0 2rem 1rem;
}

.article-detail-media img,
.detail-video-frame iframe {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

.article-detail-media img {
  min-height: 320px;
}

.detail-video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.detail-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-detail-content {
  padding: 0 2rem 2rem;
}

.article-detail-content p,
.article-detail-content div p {
  color: var(--text-muted);
  line-height: 1.8;
}

.related-posts-section {
  padding: 0 2rem 2rem;
}

.related-posts-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.related-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.related-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-post-card .card-body {
  padding: 1rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2000;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal-dialog {
  width: min(860px, 100%);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  background: var(--light-bg);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
}

.video-frame {
  margin-top: 1rem;
  min-height: 420px;
}

.video-frame video {
  width: 100%;
  min-height: 420px;
  border-radius: 14px;
  background: #000;
}

.video-frame iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 14px;
}

.article-detail-media video {
  width: 100%;
  border-radius: 14px;
  background: #000;
  margin-top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 992px) {
  .quick-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .updates-grid,
  .article-grid,
  .opportunity-grid,
  .related-grid,
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-shell,
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .quick-cards,
  .updates-grid,
  .article-grid,
  .event-grid,
  .opportunity-grid,
  .related-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    width: 100%;
  }

  .search-box input,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

  .hero-actions,
  .newsletter-form {
    width: 100%;
  }

  .news-card .card-body {
    padding: 1.25rem;
  }

  .news-card h3 {
    font-size: 1.5rem;
  }

  .news-card p {
    font-size: 1rem;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-actions {
    width: 100%;
    flex-direction: column;
  }

  .news-card .btn {
    width: 100%;
  }

  .news-card-media img {
    height: 250px;
  }

  .featured-update-card:hover .featured-update-image img,
  .featured-update-card:focus-within .featured-update-image img {
    transform: none;
  }

  .related-post-grid {
    grid-template-columns: 1fr;
  }

  .article-detail-header,
  .article-detail-media,
  .article-detail-content,
  .related-posts-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-card img,
  .video-thumbnail img {
    height: 280px;
  }
}
