/* =================================================
   AGTECH DESIGN SYSTEM (GREEN–YELLOW)
================================================= */
body {
  background-color: #fbfaf5;/* soft agri off-white */
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
:root {
  --green-main: #1f6f43;
  --green-dark: #155737;
  --green-soft: #eaf4ee;
  --yellow-accent: #f3c623;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --border-light: #e5e7eb;
}

/* =================================================
   HERO SECTION
================================================= */
.hero-wrapper {
  background-color:#f4f8f2;
  padding: 4rem 2rem 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title-main {
  display: block;
  font-weight: 800;
  color: var(--green-dark);

  /* Deep professional shadow */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 6px 12px rgba(0, 0, 0, 0.15);
}


.hero-title-sub {
  display: block;
  font-weight: 700;
  color: #c8a437; /* muted institutional gold */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);

  animation: fadeUp 1.2s ease-out forwards;
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 520px;
}

/* =================================================
   ACTION BUTTONS
================================================= */
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions a {
  border: 1px solid var(--green-main);
  color: var(--green-main);
  padding: 0.55rem 1.1rem;
  border-radius: 0.45rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: #ffffff;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-actions a.primary {
  background: var(--green-main);
  color: #ffffff;
}

.hero-actions a:hover,
.hero-actions a:focus-visible {
  background: var(--green-main);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(31, 111, 67, 0.25);
  outline: none;
}

.hero-actions a.primary:hover {
  background: var(--green-dark);
}

/* =================================================
   HERO VISUAL
================================================= */
.hero-visual {
  background:
    linear-gradient(
      135deg,
      rgba(31, 111, 67, 0.15),
      rgba(243, 198, 35, 0.15)
    ),
    url("assets/entrygif.gif") center / cover no-repeat;
  height: 320px;
  border-radius: 2rem;
}

/* =================================================
   STATS BAR – STABLE & RESPONSIVE
================================================= */

.stats-bar {
  margin-top: 3.5rem;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #f4faf6, #fffdf4);
}

/* Main container */
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2.2rem;
  background: #ffffff;
  border-radius: 1.4rem;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Individual stat */
.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
}

/* Value */
.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
}

/* Label */
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* =================================================
   TABLET – ALLOW WRAP IF NEEDED
================================================= */

@media (max-width: 992px) {

  .stats-grid {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    flex: 0 0 33%;
  }

  .stat-value {
    font-size: 1.7rem;
  }
}

/* =================================================
   MOBILE – FULLY VISIBLE (NO HORIZONTAL SCROLL)
================================================= */

@media (max-width: 576px) {

  .stats-grid {
    flex-wrap: wrap;
    overflow: visible;
    justify-content: center;
    gap: 1.6rem;
    padding: 1.6rem 1.4rem;
  }

  .stat-item {
    flex: 0 0 50%;   /* two per row */
    min-width: 140px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }
}

/* =================================================
   FLOATING SOCIAL ICONS
================================================= */
.social-float-right {
  position: fixed;
  top: 45%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.social-float-right a {
  background: var(--green-main);
  color: #ffffff;
  padding: 0.6rem 0.7rem;
  margin: 0.15rem 0;
  border-radius: 0.45rem 0 0 0.45rem;
  text-align: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.social-float-right a:hover {
  background: var(--yellow-accent);
  color: var(--green-dark);
  padding-right: 1.2rem;
}

/* =================================================
   FLOATING SOCIAL ICONS – MOBILE ADAPTATION
================================================= */

@media (max-width: 768px) {

  .social-float-right {
    position: fixed;
    bottom: 12px;
    top: auto;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    background: rgba(0, 48, 24, 0.9); /* deep green glass */
    padding: 0.4rem 0.6rem;
    border-radius: 1.2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .social-float-right a {
    margin: 0 0.35rem;
    padding: 0.45rem 0.55rem;
    border-radius: 50%;
    font-size: 1rem;
  }

  .social-float-right a:hover {
    padding-right: 0.55rem; /* cancel desktop slide */
    background: var(--yellow-accent);
    color: var(--green-dark);
  }
}

/* =================================================
   RESPONSIVE
================================================= */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 220px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .hero-wrapper {
    padding: 3rem 1.2rem 2rem;
  }
  .hero-actions a {
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
  }
}

/* ===============================
   FOOTER – AGTECH COLOUR THEME
================================ */

/* Full-width wrapper */

.footer-wrapper {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -47vw;
  margin-right: -47vw;
  width: 100vw;
  background: #1f3d2b;
    overflow-x: hidden;
}
/* Footer main */
.footer {
  color: #eef4ef;        /* soft off-white */
  display: flex;
  flex-direction: column;
}

/* Columns container */
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
}

/* Individual column */
.footer-column {
  flex: 1;
  min-width: 200px;
  margin: 10px;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #c8a437;        /* muted institutional gold */
}

.footer-column ul li a {
  color: #eef4ef;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #c8a437;
}

/* Bottom copyright */
.footer-bottom {
  background: #183424;   /* darker green strip */
  color: #e6ede8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  flex-wrap: wrap;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Logos */
.footer-logos img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #f6faf7;   /* soft light background */
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logos img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(200, 164, 55, 0.45); /* gold glow */
}

/* Footer text */
.footer-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  padding: 0 20px;
}

.footer-text a {
  color: #cfd8d2;
  text-decoration: none;
}

.footer-text a:hover {
  color: #ffffff;
}

/* =================================================
   REMOVE GAP AFTER FOOTER
================================================= */

/* Remove default body spacing */
body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Ensure footer is last visible block */
.footer-wrapper {
  margin-bottom: 0 !important;
}

/* Prevent Quarto container padding from leaking */
main {
  padding-bottom: 0 !important;
}

/* ===============================
   MOBILE RESPONSIVE FOOTER
================================ */

@media (max-width: 768px) {

  /* Stack main footer columns */
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
  }

  .footer-column {
    margin: 12px 0;
    min-width: unset;
  }

  /* Bottom section stacks vertically */
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  /* Logos in ONE horizontal row */
  .footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    order: 1;
  }

  .footer-logos img {
    width: 70px;
    height: 70px;
  }

  /* Copyright/text goes LAST */
  .footer-text {
    order: 2;
    padding: 0;
    font-size: 14px;
  }
}
/* =====================================
   MOBILE: TOP FOOTER LINKS IN ONE LINE
===================================== */

@media (max-width: 768px) {

  /* Put Logins | Policies | Contact in one row */
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    padding: 25px 15px;
    text-align: center;
  }

  .footer-column {
    flex: 1;
    margin: 0;
    min-width: 0;
  }

  .footer-column h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer-column ul {
    padding: 0;
    margin: 0;
  }

  .footer-column ul li {
    list-style: none;
    margin: 4px 0;
  }

  .footer-column ul li a {
    font-size: 13px;
    line-height: 1.4;
  }
}


/* =================================================
   QUARTO NAVBAR – FINAL LOGIC (CLEAN & STABLE)
================================================= */

/* ---------- Navbar container ---------- */
.navbar {
  background-color: #f4f8f2 !important; /* soft agri off-white */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.45rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* ---------- Brand / Logo ---------- */
.navbar-brand img {
  height: 42px;
}

/* ---------- Base nav link ---------- */
.navbar-nav .nav-link {
  position: relative;
  color: #2f3e34 !important;   /* default text */
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0.25rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

/* ---------- Hover underline (ONLY on hover) ---------- */
.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--green-main),
    #c8a437
  );
  transform: translateX(-50%);
  transition: width 0.25s ease;
  border-radius: 2px;
}

/* Show underline only on hover */
.navbar-nav .nav-link:hover::before {
  width: 100%;
}

/* ---------- Active / Selected page ---------- */
.navbar-nav .nav-link.active {
  color: var(--green-main) !important; /* solid green text */
  font-weight: 600;
}

/* IMPORTANT: no underline for active */
.navbar-nav .nav-link.active::before {
  width: 0 !important;
}

/* ---------- Separator (|) ---------- */
.navbar-nav .nav-link::after {
  content: " |";
  color: #cfd6cf;
  font-weight: 400;
  margin-left: 0.25rem;
}

/* Remove separator from last LEFT menu item */
.navbar-nav:not(.ms-auto) .nav-item:last-child .nav-link::after {
  content: "";
}

/* Remove separator from RIGHT menu (Login etc.) */
.navbar-nav.ms-auto .nav-link::after {
  content: "";
}

/* ---------- Right-side (Login) ---------- */
.navbar-nav.ms-auto .nav-link {
  font-weight: 600;
  color: #1f6f43 !important;
}

/* ---------- Focus & accessibility ---------- */
.navbar-nav .nav-link:focus {
  box-shadow: none;
}

/* ---------- Mobile behaviour ---------- */
@media (max-width: 992px) {

  /* No separators in mobile menu */
  .navbar-nav .nav-link::after {
    content: "";
  }

  /* No underline animation in mobile */
  .navbar-nav .nav-link::before {
    display: none;
  }
}

/* =================================================
   ABOUT SECTION – ELEGANT & INTERACTIVE
================================================= */

.about-section {
  background: linear-gradient(
    180deg,
    #f6faf7 0%,
    #fbfaf5 100%
  );
  padding: 4rem 1.5rem;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Title */
.about-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  position: relative;
}

/* Decorative underline */
.about-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 0.5rem;
  background: linear-gradient(
    90deg,
    var(--green-main),
    #c8a437
  );
  border-radius: 3px;
}

/* Paragraph text */
.about-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.2rem;
  max-width: 900px;
}

/* =================================================
   FEATURE LIST (CLICKABLE FEEL)
================================================= */

.about-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

/* Each item as soft card */
.about-list li {
  background: #fdfdfb;
  border-left: 4px solid var(--green-main);
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: #1f2937;
  cursor: default;
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* Hover interaction */
.about-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #c8a437;
}

/* =================================================
   SUBTITLE / IMPACT SECTION
================================================= */

.about-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-main);
  margin: 2.5rem 0 1rem;
}

/* =================================================
   RESPONSIVE TUNING
================================================= */

@media (max-width: 768px) {
  .about-title {
    font-size: 1.7rem;
  }

  .about-text {
    font-size: 0.98rem;
  }
}

/* =================================================
   GALLERY SECTION
================================================= */

.gallery-section {
  background: #f6faf7;
  padding: 4rem 1.5rem;
}

.gallery-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
}

.gallery-subtitle {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 2.5rem;
}

.gallery-subhead {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-main);
  margin: 2.5rem 0 1.2rem;
}

/* =================================================
   SLIDER FRAME
================================================= */

.gallery-slider {
  position: relative;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  overflow: hidden;
}

.gallery-slider img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: opacity 0.4s ease;
}

.auto-slider img {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

/* =================================================
   SLIDER CONTROLS
================================================= */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(31, 111, 67, 0.75);
  color: #ffffff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.gallery-slider:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: var(--green-dark);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}
/* Smooth fade control */
.gallery-slider img {
  transition: opacity 0.45s ease;
}

.fade-out {
  opacity: 0;
}

/* =================================================
   MOBILE OPTIMIZATION
================================================= */

@media (max-width: 768px) {

  .gallery-slider {
    max-width: 100%;
  }

  .gallery-slider img {
    max-height: 240px;
  }

  .slider-btn {
    opacity: 1;
    top: auto;
    bottom: 12px;
    transform: none;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* =================================================
   ACTION HUB SECTION
================================================= */

.action-section {
  background: #fbfaf5;
  padding: 4.5rem 1.5rem;
}

.action-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* Titles */
.action-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
}

.action-subtitle {
  color: #475569;
  max-width: 720px;
  margin: 0.8rem auto 3rem;
}

/* Grid */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* Card */
.action-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 2rem 1.6rem;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Icon */
.action-icon {
  width: 52px;
  height: 52px;
  background: #eaf4ef;
  color: var(--green-main);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Headings */
.action-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}

.action-card p {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* Buttons */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.action-buttons a {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--green-main);
  color: var(--green-main);
  text-decoration: none;
  transition: all 0.25s ease;
  background: #ffffff;
}

.action-buttons a:hover {
  background: var(--green-main);
  color: #ffffff;
}

/* =================================================
   MOBILE OPTIMIZATION
================================================= */

@media (max-width: 768px) {

  .action-card {
    padding: 1.8rem 1.4rem;
  }

  .action-title {
    font-size: 1.7rem;
  }
}

/* =================================================
   UPCOMING EVENT SECTION
================================================= */

.event-section {
  background: linear-gradient(
    135deg,
    #f3f9f4,
    #fff8e1
  );
  padding: 4.5rem 1.5rem;
}

.event-container {
  max-width: 1200px;
  margin: auto;
}

/* Card */
.event-card {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 2.5rem;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  animation: fadeUp 0.8s ease both;
}

/* Poster (YouTube thumbnail ratio) */
.event-poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.2rem;
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

/* Content */
.event-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Badge */
.event-badge {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--green-main),
    var(--yellow-accent)
  );
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 0.8rem;
}

/* Title */
.event-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.8rem;
}

/* Description */
.event-description {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

/* Meta */
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 1.6rem;
}

.event-meta i {
  color: var(--green-main);
  margin-right: 0.4rem;
}

/* Actions */
.event-actions {
  display: flex;
  gap: 1rem;
}

.event-register {
  background: var(--green-main);
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  border-radius: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.event-details {
  border: 1px solid var(--green-main);
  color: var(--green-main);
  padding: 0.7rem 1.4rem;
  border-radius: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease;
}

.event-details:hover {
  background: #eaf4ef;
}

/* =================================================
   ANIMATION
================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =================================================
   UPCOMING EVENT – MOBILE REFINEMENT
================================================= */

@media (max-width: 768px) {

  .event-section {
    padding: 3.5rem 1.2rem;
  }

  .event-card {
    grid-template-columns: 1fr;   /* stack poster + content */
    gap: 1.8rem;
    padding: 1.6rem;
  }

  /* Poster slightly smaller on mobile */
  .event-poster img {
    aspect-ratio: 16 / 9;
    max-height: 220px;
    object-fit: cover;
  }

  .event-title {
    font-size: 1.5rem;
  }

  .event-description {
    font-size: 0.95rem;
  }

  /* Meta wraps neatly */
  .event-meta {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  /* Buttons = full width for thumb */
  .event-actions {
    flex-direction: column;
    gap: 0.8rem;
  }

  .event-register,
  .event-details {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

/* Very small phones */
@media (max-width: 480px) {

  .event-poster img {
    max-height: 200px;
  }

  .event-title {
    font-size: 1.35rem;
  }
}

/* =================================================
   AGTECH IN NEWS
================================================= */

.news-section {
  background: #fbfaf5;
  padding: 4.2rem 1.5rem;
}

.news-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.news-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
}

.news-subtitle {
  margin: 0.8rem auto 2.4rem;
  max-width: 700px;
  color: #475569;
}

/* GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

/* IMAGE CARD */
.news-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1rem;
  cursor: pointer;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* TOGGLE BUTTON */
.news-actions {
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid #e5e7eb; /* visual separation from grid */
}

.news-toggle-btn {
  background: none;
  border: none;
  color: var(--green-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.news-toggle-btn:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

/* =================================================
   MOBILE
================================================= */

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================
   CONTACT / LOCATION
================================================= */

.contact-section {
  background: #f8fafc;
  padding: 4rem 1.5rem;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  text-align: center;
  color: #475569;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
  border-radius: 12px;
}

.contact-details h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.contact-details p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* =================================================
   MOBILE
================================================= */

@media (max-width: 768px) {

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 260px;
  }
}


.news-section {
  background: #f8fafc;
  padding: 4rem 1.5rem;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.news-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
}

.news-subtitle {
  text-align: center;
  color: #475569;
  margin-bottom: 2.5rem;
}

/* ===============================
   MARQUEE
================================ */

.news-marquee {
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.8rem 0;
  margin-bottom: 3rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.news-track {
  display: flex;
  gap: 2rem;
  animation: scroll-news 35s linear infinite;
}

.news-marquee:hover .news-track {
  animation-play-state: paused;
}

.news-pill {
  white-space: nowrap;
  background: #ecfdf5;
  color: #065f46;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes scroll-news {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

/* ===============================
   NEWS GRID
================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.news-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 1.2rem;
}

.news-date {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.news-content h4 {
  margin: 0.4rem 0;
  font-size: 1.05rem;
}

.news-content p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

/* Read more link */
.news-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================
   GOVERNANCE STRUCTURE
================================================= */

.governance-section {
  background: #f8fafc;
  padding: 3.5rem 1.5rem;
}

.governance-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.governance-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
}

.governance-subtitle {
  margin: 0.8rem auto 2.6rem;
  max-width: 800px;
  color: #475569;
}

/* GRID */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

/* CARD */
.governance-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.6rem 1.2rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.governance-card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.governance-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.9rem;
}

/* TEXT */
.governance-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.governance-card p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
}

/* ACTION CARDS */
.governance-action {
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: #ffffff;
  border-radius: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
}

.governance-action:hover {
  transform: translateY(-5px);
}

.governance-action--board {
  background: linear-gradient(
    135deg,
    #0b5a56,
    #0f766e
  );
}
.governance-action--link {
  text-decoration: none;
}

/* =================================================
   BOARD SECTION
================================================= */

.board-section {
  display: none;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.board-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

/* =================================================
   RESPONSIVE
================================================= */

@media (max-width: 992px) {
  .governance-grid,
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .governance-grid,
  .board-grid {
    grid-template-columns: 1fr;
  }
}


/* =================================================
   TEAM SECTIONS
================================================= */

.team-section {
  background: #fbfaf5;
  padding: 3.4rem 1.5rem;
}

.team-section--light {
  background: #f6faf7;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* =================================================
   TITLES
================================================= */

.team-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.team-subtitle {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 2.4rem;
  max-width: 800px;
  line-height: 1.55;
}

.team-subhead {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-main);
  margin: 2.2rem 0 1.2rem;
}

/* =================================================
   ROWS
================================================= */

.team-row {
  display: grid;
  gap: 1.6rem;
  margin-bottom: 2.6rem;
}

.team-row--lead,
.team-row--support {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.team-row--mentors {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* =================================================
   CARD
================================================= */

.team-card {
  background: #ffffff;
  border-left: 4px solid var(--green-main);
  padding: 1.3rem 1.4rem;
  border-radius: 0.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.team-card--lead {
  border-left-color: var(--green-dark);
}

/* =================================================
   TEXT
================================================= */

.team-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  color: var(--green-dark);
}

.team-card h4 a {
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}

.team-card h4 a:hover {
  color: var(--green-main);
}

.team-card p {
  font-size: 0.93rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

.team-email {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: #1f6f43;
  text-decoration: none;
}

.team-email:hover {
  text-decoration: underline;
}

/* =================================================
   RESPONSIVE
================================================= */

@media (max-width: 992px) {
  .team-row--lead,
  .team-row--support {
    grid-template-columns: 1fr;
  }

  .team-row--mentors {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .team-section {
    padding: 2.6rem 1.2rem;
  }

  .team-title {
    font-size: 1.6rem;
  }

  .team-subtitle {
    font-size: 0.95rem;
  }

  .team-row--mentors {
    grid-template-columns: 1fr;
  }
}



/* =================================================
   SECTION SPACING TIGHTENING (GLOBAL OVERRIDE)
================================================= */

.hero-wrapper,
.about-section,
.gallery-section,
.action-section,
.event-section,
.news-section,
.contact-section,
.stats-bar {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Even tighter on mobile */
@media (max-width: 768px) {
  .hero-wrapper,
  .about-section,
  .gallery-section,
  .action-section,
  .event-section,
  .news-section,
  .contact-section,
  .stats-bar {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }
}
