* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  background: #f4f7f9;
  color: #0b1b12;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.page-wrapper {
  min-height: 100vh;
  padding: 40px 16px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero */
.hero-section {
  width: 100%;
  max-width: 1300px;
  /* background: linear-gradient(135deg, linear-gradient(135deg, rgb(50, 94, 198) 0%, rgba(26, 104, 115, 1) 100%) 0%, linear-gradient(135deg, rgb(50, 94, 198) 0%, rgba(26, 104, 115, 1) 100%) 100%); */
  border-radius: 32px;
  padding: 12px 22px;
  position: relative;
  overflow: hidden;
  color: #111111;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

.hero-section.inview {
  transform: translateY(0);
  opacity: 1;
}

.hero-section h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
}



/* Feed container */
.feed-container {
  width: 100%;
  max-width: 1300px;
  margin-top: 32px;
  background: linear-gradient(135deg, rgb(50, 94, 198) 0%, rgba(26, 104, 115, 1) 100%);
  border-radius: 15px;
  padding: 32px 24px 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

.feed-container.inview {
  transform: translateY(0);
  opacity: 1;
}

/* Tabs */
.feed-navigation {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: whitesmoke;
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.feed-navigation span {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: black;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
  white-space: nowrap;
}

.feed-navigation span.active {
  background: linear-gradient(135deg, rgb(50, 94, 198) 0%, rgba(26, 104, 115, 1) 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(123, 136, 60, 0.871);
}

/* Sections */
.feed-section {
  display: none;
  animation: fadeIn 300ms ease;
}

.feed-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid of cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .page-wrapper {
    padding: 24px 16px 56px;
  }

  .hero-section {
    padding: 12px 20px;
    /* border-radius: 24px; */
  }

  .hero-section h1 {
    font-size: 26px;
  }

  .feed-container {
    padding: 20px 16px 24px;
    border-radius: 24px;
  }

  .feed-navigation {
    width: 100%;
    justify-content: center;
  }

  .feed-navigation span {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 8px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.thumbnail {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fdfdfd;
  border-radius: 18px;
  padding: 22px 20px 18px;
  color: #0b1b12;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  position: relative;
  overflow: hidden;
}

.thumbnail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0 0,
    rgba(0, 178, 79, 0.1),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.thumbnail h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 10px;
}

.thumbnail p {
  font-size: 14px;
  color: #3a4a40;
  margin-bottom: 16px;
  flex: 1 1 auto;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: blueviolet;
  transition: color 220ms ease;
  z-index: 1;
}

.read-more i {
  font-size: 14px;
  transition: transform 220ms ease;
}

.thumbnail:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  background: #ffffff;
}

.thumbnail:hover::before {
  opacity: 1;
}

.thumbnail:hover .read-more {
  color: linear-gradient(135deg, rgb(50, 94, 198) 0%, rgba(26, 104, 115, 1) 100%);
}

.thumbnail:hover .read-more i {
  transform: translateX(4px);
}

/* Pagination */
.pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination-link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  background: #021b10;
  color: #d0e5d8;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease,
    box-shadow 220ms ease;
}

.pagination-link.active {
  background: white;
  color: black;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 178, 79, 0.35);
}

.pagination-link:hover {
  background: linear-gradient(135deg, rgb(50, 94, 198) 0%, rgba(26, 104, 115, 1) 100%);
  color: #ffffff;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 260ms ease;
}

/* News section (single card layout) */
.news-single-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* FAQ */
.faq-section-wrapper {
  background: linear-gradient(135deg, rgb(50, 94, 198) 0%, rgba(26, 104, 115, 1) 100%);
  border-radius: 24px;
  padding: 24px 20px;
  color: #f1f6f3;
  margin-top: 4px;
}

.faq-section-wrapper h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 18px 0 10px;
}

.faq {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0 8px;
}

.faq:last-child {
  border-bottom: none;
}

.faq-link {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  padding-right: 32px;
  cursor: pointer;
  display: inline-block;
  color: #ffffff;
  transition: color 200ms ease;
}

.faq-link::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 13px;
  transition: transform 220ms ease, color 220ms ease;
  color: white;
}

.faq-link.active {
  color: black;
}

.faq-link.active::after {
  transform: translateY(-50%) rotate(180deg);
  color: black;
}

.faq-content {
  display: none;
  padding: 10px 0 2px;
  font-size: 14px;
  color: #d6ebe0;
}

.faq-content p {
  margin-bottom: 10px;
}

.faq-content a {
  color: #9af0bc;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
