:root {
  --main-header-bg: #3e9451;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
.header {
  background: #3e9451;
  color: #fff;
  padding: 15px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
}

/* SLIDER */
.slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.caption {
  position: absolute;
  bottom: 60px;
  left: 60px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 20px;
}

.caption {
  bottom: 80px;
}


/* PUBLICATIONS */
.publications {
  padding: 60px 0;
  background: #ffffff;
}

.publications h2 {
  margin-bottom: 30px;
}

.publication {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #3e9451;
}

.publication h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.publication .authors {
  font-size: 14px;
  color: #555;
}

.publication .journal {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}

.publication a {
  color: #3e9451;
  text-decoration: none;
  font-weight: bold;
}

.publication a:hover {
  text-decoration: underline;
}


/* NEWS */
.news {
  padding: 60px 0;
  background: #f5f5f5;
}

.news article {
  background: #fff;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #3e9451;
}

/* GALLERY */
.gallery {
  padding: 60px 0;
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 6px;
}

/* FOOTER */
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 30px 0;
}

.footer a {
  color: #3e9451;
  margin: 0 10px;
  text-decoration: none;
}

/* SLIDER ARROWS */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}

.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }

.arrow:hover {
  background: rgba(0,0,0,0.8);
}

/* DOTS */
.dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #ffffff;
}

/* TEAM */
.team {
  padding: 60px 0;
  background: #ffffff;
  text-align: center;
}

.team h2 {
  margin-bottom: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.team-member {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
}

.team-member img {
  width: 100%;
  max-width: 180px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.team-member h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.team-member p {
  font-size: 14px;
  color: #666;
}

.team-member .email a {
  color: #3e9451;
  text-decoration: none;
}
.team-member .email a:hover {
  text-decoration: underline;
}

/* ABOUT US */
.about-us {
  padding: 70px 0;
  background: #ffffff;
}

.about-us h2 {
  text-align: center;
  margin-bottom: 20px;
}

.about-us .intro {
  text-align: justfy;
  max-width: 1000px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.about-box {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
}

.about-box h3 {
  margin-bottom: 10px;
  color: #3e9451;
}

.about-box ul {
  margin-left: 18px;
}

.about-box li {
  margin-bottom: 8px;
}

/* =========================
   SPONSORS / PARTICIPANTS
   ========================= */

section.sponsors-section {
  padding: 70px 20px;
  background-color: #f4f6f8;
}

section.sponsors-section .section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
}

section.sponsors-section .section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 45px;
}

section.sponsors-section .sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

section.sponsors-section a.sponsor-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  text-decoration: none !important;
  color: #000;
  border: 1px solid #ddd;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.sponsors-section a.sponsor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

section.sponsors-section a.sponsor-card img {
  max-width: 140px;
  max-height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

section.sponsors-section a.sponsor-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

section.sponsors-section a.sponsor-card span {
  font-size: 14px;
  color: #666;
}

section.sponsors-section {
  background-color: #3e9451; /* SAME as .header */
}

/* =========================
   PUBLICATIONS
   ========================= */

section.publications {
  padding: 80px 20px;
  background-color: #ffffff;
}

section.publications .section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
}

section.publications .section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.publications-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.publication-card {
  background: #f9fafb;
  border-left: 5px solid var(--main-header-bg);
  padding: 25px 25px 30px;
  border-radius: 10px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.publication-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.publication-card .authors {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

.publication-card .meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 15px;
}

.publication-card .pub-link {
  display: inline-block;
  font-size: 14px;
  color: var(--main-header-bg);
  text-decoration: none;
  font-weight: 600;
}

.publication-card .pub-link:hover {
  text-decoration: underline;
}

.publication-card .pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* space between icon and text */
  font-size: 14px;
  color: var(--main-header-bg);
  text-decoration: none;
  font-weight: 600;
}

.publication-card .pub-link:hover {
  text-decoration: underline;
}

.publication-card .pdf-icon {
  width: 18px;
  height: 18px;
}

/* =========================
   TEAM SECTION
   ========================= */

section.team {
  padding: 80px 20px;
  background-color: #f9fafb;
}

section.team .section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
}

section.team .team-subtitle {
  font-size: 20px;
  text-align: center;
  color: #555;
  margin: 40px 0 20px;
}

section.team .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.team-member {
  background: #ffffff;
  border-radius: 14px;
  text-align: center;
  padding: 20px 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.team-member img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.team-member h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #222;
}

.team-member .institution {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.team-member .department {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.team-member .email a {
  font-size: 13px;
  color: var(--main-header-bg);
  text-decoration: none;
}

.team-member .email a:hover {
  text-decoration: underline;
}

.team-subtitle {
  background-color: #e5e5e5;
  padding: 10px 0;
  border-radius: 8px;
}

/* =========================
   NEWS + GALLERY SIDE-BY-SIDE
   ========================= */

.news-gallery-section {
  padding: 80px 20px;
  background-color: #f9fafb;
}

.news-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 equal columns */
  gap: 40px;
  align-items: start;
}

/* NEWS STYLING */
.news h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.news article {
  margin-bottom: 25px;
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.news article h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.news article p {
  font-size: 14px;
  color: #555;
}

.news article span {
  font-size: 12px;
  color: #888;
}

/* GALLERY STYLING */
.gallery h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.gallery .grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

/* RESPONSIVE: stack vertically on smaller screens */
@media (max-width: 900px) {
  .news-gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery .grid img {
    height: 200px;
  }
}

/* =========================
   GALLERY IMAGE HOVER EFFECT
   ========================= */

.gallery .grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery .grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
  .gallery .grid img:hover {
    transform: scale(1.03);
  }
}

/* Reduce gap between Team and News/Gallery */
section.team {
  padding: 60px 20px 40px 20px; /* top 60px, bottom 40px */
}

.news-gallery-section {
  padding: 50px 20px; /* reduce top padding */
}

/* Reduce vertical gap between About Us and Publications */
section.about-us {
  padding: 60px 20px 40px 20px; /* top 60px, bottom 40px */
}

section.publications {
  padding: 50px 20px; /* top padding reduced from 80px → 50px */
}

section.sponsors-section {
  padding: 60px 20px 40px 20px;
}

section.team {
  padding: 60px 20px 40px 20px;
}

.news-gallery-section {
  padding: 50px 20px;
}

/* =========================
   ACTIVE MENU LINK
   ========================= */

header nav a.active {
  color: var(--main-header-bg); /* highlight color, matches theme */
  font-weight: 600;
  border-bottom: 2px solid var(--main-header-bg);
  padding-bottom: 2px;
}

/* =========================
   MOBILE MENU
   ========================= */

/* Hamburger icon */
.menu-toggle {
  display: none; /* default hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001; /* on top of nav */
}

.menu-toggle span {
  display: block;
  height: 3px;
  background-color: #fff; /* or match header text */
  border-radius: 2px;
}

/* =========================
   MOBILE MENU
   ========================= */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex; /* show hamburger on mobile */
  }

  header nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--main-header-bg);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    padding: 0 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  header nav a {
    color: #fff;
    font-size: 16px;
    padding: 12px 0;
  }

  header nav.active {
    max-height: 500px;
    padding: 20px;
  }
}

/* =========================
   FOOTER
   ========================= */
/* Footer general */
.footer {
  background-color: var(--main-header-bg);
  color: #fff;
  padding: 60px 20px 30px 20px;
  font-size: 14px;
  text-align: left; /* all text left-aligned by default */
}

/* Footer grid columns */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
  text-align: left;
}

/* Footer bottom bar (copyright centered) */
.footer-bottom {
  text-align: center; /* center only copyright */
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  font-size: 13px;
  color: #ddd;
}
/* Footer links */
.footer a {
  color: #fff; /* make all links white */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffd700; /* optional: subtle hover highlight */
}

/* Quick Links vertical list */
.footer-col a {
  display: block;        /* stack links vertically */
  margin-bottom: 8px;    /* spacing between links */
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #ffd700; /* highlight on hover */
}

/* Footer column headings spacing */
.footer-col h3 {
  font-size: 16px;
  margin-bottom: 15px; /* add space between heading and links */
}

/* Footer social links with icons */
.footer .social a {
  display: flex;
  align-items: center;
  gap: 8px;          /* space between icon and text */
  margin-bottom: 10px; /* spacing between links */
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}


.footer .social a i {
  font-size: 16px;
  color: #fff; /* ensure icon is white */
}

.footer .social a:hover i {
  color: #ffd700; /* optional hover color */
}

/* Footer social icons */
.footer .social a i {
  color: #fff;          /* make icons white */
  font-size: 18px;      /* slightly larger than text */
  margin-right: 8px;    /* space between icon and text */
}

.footer .social a:hover i {
  color: #ffd700;       /* hover effect */
}

/* Ensure social links text is also white */
.footer .social a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.footer .social a:hover {
  color: #ffd700;
}

/* Footer social icons — always white */
.footer .social a i {
  color: #ffffff;       /* explicit white */
  font-size: 18px;      /* slightly larger than text */
  margin-right: 8px;    /* spacing between icon and text */
  transition: color 0.3s ease;
}

/* Hover color */
.footer .social a:hover i {
  color: #ffd700;       /* golden hover color */
}

