/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#scrollUpBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1a3a8d;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

#scrollUpBtn:hover {
  transform: translateY(-4px);
  background: #084298; 
}

/* Show button */
#scrollUpBtn.show {
  opacity: 1;
  visibility: visible;
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}



/* 
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 110px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a3a8d;
}

.logo span {
  color: #1a3a8d;
  font-weight: 600;
}
.logo img {
  height: 125px;        
  width: auto;         
  display: block;
}


.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav a:hover {
  color: #1a3a8d;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-list a:hover {
  color: #1a3a8d;
  transform: scale(1.05);
}

.dropdown {
  position: relative;
}

.dropdown a {
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: rgba(255, 254, 254, 0.83);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  list-style: none;
  padding: 10px 0;
  display: none !important;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10;
  animation: fadeIn 0.25s ease-in-out;
}

.dropdown-menu li {
  text-align: left;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #4b4a4a;
  transition: background 0.3s ease;
}

.dropdown-menu a:hover {
  background: rgba(3, 40, 152, 0.507);
  border-radius: 6px;
  color: rgb(255, 255, 255);
}

.dropdown:hover .dropdown-menu {
  display: block !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
} */

/* =========================
   HEADER BASE
========================= */
/* 
.header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1000;
} */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

/* =========================
   LOGO
========================= */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height:95px;
  width: auto;
  /* max-width: 250px; */
  display: block;
  padding: 10px;
}

/* =========================
   NAVIGATION (DESKTOP)
========================= */
/* Make navbar stick to the top */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a3a8d;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
}
@media (max-width: 900px) {
  .logo img {
    height: 75px;
  }
}

.nav ul {
  list-style: none;
  display: flex;
  /* align-items: center; */
  text-align: left;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav ul li {
  position: relative;
}

.nav ul li a {  
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
  padding: 6px 0;
  transition: color 0.3s ease;
}

/* Underline animation */
.nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #1a3a8d;
  transition: width 0.3s ease;
}

/* Hover */
.nav ul li a:hover {
  color: #1a3a8d;
}

.nav ul li a:hover::after {
  width: 100%;
}

/* Active link */
.nav ul li a.active {
  color: #1a3a8d;
  font-weight: 600;
}

.nav ul li a.active::after {
  width: 100%;
}

/* =========================
   DROPDOWN MENU (DESKTOP)
========================= */
.dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  text-align: left;
  justify-content: flex-start;

  background: #ffffff;
  min-width: 220px;
  padding: 16px 18px !important;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}


/* .dropdown-menu li {
  width: 100%;
} */

/* .dropdown-menu li a {
  width: 100%;
  padding: 10px 16px;
  display: block;
  font-size: 0.95rem;
  text-align: left;
}

.dropdown-menu li a:hover {
  background: #f2f5ff;
  color: #1a3a8d;
} */

.dropdown-menu li a {
  position: relative;
  /* display: block; */
  display: inline-block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
}

.dropdown-menu li a::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 6px;

  width: 100%;
  height: 2px;
  opacity: 0;

  background-color: #1a3a8d;

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.25s ease;
}

.dropdown-menu li a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}


/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* logout button */
.logout-btn {
  background: #d52916;
  color: #fff;
  padding: 8px 22px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s;
}


.logout-btn:hover {
  background: #ef675a;
}




/* =========================
   HAMBURGER BUTTON
========================= */
.menu-toggle {
  display: none;
  font-size: 1.7rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a3a8d;
}

/* =========================
   MOBILE & TABLET
========================= */
@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .nav {
    width: 100%;
    margin-top: 12px;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    padding: 10px 0;
    display: none; /* toggled by JS */
  }

  .nav ul li {
    width: 100%;
    text-align: center;
  }

  .nav ul li a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  /* Disable underline animation on mobile */
  .nav ul li a::after {
    display: none;
  }

  /* Dropdown becomes accordion */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f7f7f7;
    border-radius: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }
}


/* Rolling Banner */
.rolling-banner {
  position: fixed;
  top: 110px;
  /* EXACTLY under your navbar */
  left: 0;
  width: 100%;
  background: #8d8d8d;
  color: white;
  padding: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  z-index: 900;
}


.banner-track {
  display: inline-block;
  padding-left: 100%;
  animation: scrollBanner 21s linear infinite;
}

.banner-track span {
  margin-right: 60px;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Animation */
@keyframes scrollBanner {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}


/* =============================
   RESPONSIVE NAVBAR
============================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Keep dropdown hidden by default */
  .dropdown-menu {
    display: none;
    position: relative;
    box-shadow: none;
    background: #f9f9f9;
    border-radius: 4px;
    padding-left: 1rem;
  }

  /* Show it only when About Us is hovered */
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 0.5rem 0;
  }
}

/* Hero Section */
/* .hero {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  margin-top: 150px;
}

.hero-img {
  width: 100%;
  height: 100%;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease-in-out;
}

.hero-overlay-text {
  position: absolute;
  top: 80%;
  left: 0;
  transform: translateY(-50%);

  font-size: 3rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 3px;

  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-left: 6px solid #ffd54f;

  opacity: 0;
  animation: slideLeft 1.5s ease-out forwards;
}

@keyframes slideLeft {
  0% {
    transform: translate(-100%, -50%);
    opacity: 0;
  }
  100% {
    transform: translate(0, -50%);
    opacity: 1;
  }
} */

/* .hero-slider {
  position: relative;
  width: 100%;
  height: 350px;   
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text {
  position: absolute;
  bottom: 20%;
  left: 50px;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  opacity: 0;
  animation: slideInText 1.2s forwards;
}

@keyframes slideInText {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}
  /* HERO SECTION */

.hero-carousel {
  width: 100%;
  overflow: hidden;
  /* opacity: 1; */
}

.hero-scroll-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* optionally hide scrollbar */
  scrollbar-width: none;
}

.hero-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  flex: 0 0 100vw;
  height: 100vh;
  /* or a set hero height, e.g. 80vh */
  background-size: cover;
  background-position: center;
  position: relative;
  scroll-snap-align: start;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  box-sizing: border-box;
}

/* dark overlay behind banner text */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.35);
  z-index: 1;
  pointer-events: none;
}

.carousel-content {
  color: white;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  position: relative; /* create stacking context */
  z-index: 2; /* above the overlay */
}

/* .carousel-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
} */

.carousel-content h1 {
  /* Make heading smaller and responsive so it doesn't appear oversized */
  /* font-size: clamp(1.8rem, 3.5vw, 2.4rem); */
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: 500;
  /* letter-spacing: 1px; */
  text-transform: uppercase;
  text-align: center;
  z-index: 5;
  white-space: nowrap;
  font-size: clamp(3.5rem, 7vw, 5.5rem);

  /* Text styling */
  text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);

  /* Fade-in animation */
  opacity: 0;
  animation: fadeInTitle 1.2s ease forwards;
  font-family: "Handlee", cursive;
  font-style: normal;
  padding-bottom: 15px;
}

.carousel-content h2{
  /* top: 100%;
  margin-top: 130px;
  left: 50%; */
  position: absolute;
  top: 60%;
  left: 55%;                 /* increase this to move right */
  transform: translate(-50%, 70px);
  white-space: nowrap;
}

.carousel-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}



/* Main container */
.index-about-container {
  width: 100%;
  padding: 60px 0;
  display: flex;
  justify-content: center;

}

/* Flex layout for text + image */
.index-about-content {
  width: 85%;
  display: flex;
  justify-content: flex-start;
  /* changed from space-between */
  align-items: center;
  gap: 100px;
  /* increased gap to push content right */
  padding-left: 150px;
  /* creates the large white space on the left */
}

/* Left section */
.index-about-text {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

/* Vertical line */
.vertical-line {
  width: 15px;
  height: 350px;
  background-color: #072f87;
  /* deep blue */
}

/* Text block */
.text-block h2 {
  margin-bottom: 20px;
  color: #072f87;
  font-size: 36px;
  font-weight: 700;
}

.text-block p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: #000;
}

/* Arrow button */
.arrow-btn {
  margin: 20px auto 0 auto;
  margin-top: 10px;
  width: 45px;
  height: 45px;
  background: #072f87;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  transition: 0.2s ease;
}

.arrow-btn:hover {
  background: #0a3fb3;
}

/* Right image */
.index-about-img img {
  width: 500px;
  height: 400px;
  object-fit: cover;
  margin-bottom: 80px;

  transition:
    transform 0.5s ease,
    filter 0.4s ease,
    box-shadow 0.4s ease;
  border-radius: 5px;
}

/* Hover effects */
.index-about-img img:hover {
  transform: scale(1.05) translateY(-6px);
  /* zoom + lift */
  filter: brightness(1.1);
  /* slight brighten */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  /* soft shadow */
}


@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(80px); /*changed to 50 to keep consistency*/
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.index-about-content {
  animation: slideRight 1.7s ease-out both;
  animation-timeline: aboutScroll;
  animation-range: 0% 40%;
}



/* CSR Section */
/* ESG Carousel Styles */
/* Slider Section */
.slider-section {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 100%; /* start off-screen */
  background-size: cover;
  background-position: center;
  transition: left 1.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  left: 0; /* active slide visible */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  color: white;
  text-align: center;
  max-width: 700px;
  padding: 20px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0,0,0,0.3);
  padding: 10px;
  cursor: pointer;
  user-select: none;
  border-radius: 70%;
}

.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }

/* Read More Button Styling */
.esg-read-more-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 30px;
}

.esg-read-more-btn:hover {
  background-color: white;
  color: #000;
}


/* ----- Events Section ----- */
.events {
  text-align: center;
  padding: 60px 0;
}

.events h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 40px;
  color: #222;
}

/* Grid layout */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
}

/* Card styling */
.event-card {
  background: #ffffff;
  border-radius: 20px 0px 20px 0px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Image */
.event-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Text inside card */
.event-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 18px;
  margin-bottom: 10px;
}

.event-card p {
  padding: 0 20px;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  min-height: 85px;
  /* gives equal height like in picture */
}

/* Read More Button */
.read-more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 14px;
  border-radius: 40px;
  border: 2px solid #151b6c;
  background: transparent;
  color: #151b6c;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;   
  font-style: italic;
  font-size: 14px; 
}

/* Hover Effect */
.read-more-btn:hover {
  background: #151b6c;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(21, 27, 108, 0.25);
}

/* Scroll Animation Base */
.event-card {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease-out;
}

/* When visible */
.event-card.show {
  opacity: 1;
  transform: translateY(0);
}


/* partners section */
.partners-section {
  background: #f3f2ee;
  padding: 80px 0;
  text-align: left;
}

.partners-header {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.partners-tag {
  color: #6ec5a1;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.partners-header h2 {
  font-size: 42px;
  font-weight: 600;
  color: #113436;
  line-height: 1.2;
}

.partners-header h2 span {
  color: #1a3a8d;
  /* gradient blue from your design */
}

/* Carousel */
.partners-carousel {
  overflow: hidden;
  width: 100%;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 30px;
  animation: scroll 5s linear infinite;
}

/* Pause scrolling when hovering over the carousel */
.partners-carousel:hover .partner-track {
  animation-play-state: paused;
}

.partner-card {
  background: #fff;
  padding: 40px 60px;
  border-radius: 20px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-card img {
  max-height: 70px;
  max-width: 180px;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* footer */
.footer-bg {
  position: relative;
  width: 100%;
  padding: 80px 0 40px;
  background: #0d0d0d;
  /* Dark background */
  color: #ffffff;
  overflow: hidden;
}

/* Blue overlay */
.footer-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(55, 55, 55, 0.55);
  z-index: 1;
}

.footer-content,
.footer-bottom {
  position: relative;
  z-index: 2;
  /* brings text above the overlay */
}

/* Layout */
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 85%;
  margin: auto;
  gap: 40px;
}

.footer-logo img {
  width: 160px;
}

.footer-links h4,
.footer-address h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links h4,
.footer-address h4 {
  position: relative;
  display: inline-block;
  /* keeps underline only under the text */
  padding-bottom: 8px;
}

.footer-links h4::after,
.footer-address h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  /* HALF underline */
  height: 2px;
  background: #0148b3;
  /* underline color */
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 0.7;
  color: #0d6efd;
}

.footer-links .social-icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.footer-links .social-icons a {
  color: #fff;
  font-size: 24px;
  transition: 0.3s ease;
}

.footer-links .social-icons a:hover {
  color: #0d6efd;
  /* or your theme color */
  transform: translateY(-3px);
}


.footer-address p {
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  opacity: 0.9;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
}


/* Learn More Button */
/* .learn-more-btn {
  display: inline-block;
  background: linear-gradient(135deg, #005b2a 0%, #005b2a 100%);
  color: #fff;
  border: none;
  padding: 0.65rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(21, 90, 156, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
  text-decoration: none;
} */

.learn-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(21, 90, 156, 0.22);
  background-color: #555;
}

.learn-more-btn:active {
  transform: translateY(-1px) scale(0.995);
}

.learn-more-btn:focus {
  outline: 3px solid rgba(26, 115, 186, 0.18);
  outline-offset: 3px;
}

/* Make sure button stacks nicely on small screens */
.about-text .learn-more-btn {
  margin-top: 1.25rem;
}

/* --- Banner --- */
.top-banner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Base layout */
.info-section {
  margin: 40px auto;
  max-width: 1100px;
  overflow: hidden;
  border-radius: 1px;
}

/* Two-column structure */
.info-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 300px;
  background-color: transparent;
  gap: 20px;
}

/* Reverse layout for alternating rows */
.info-row.reverse {
  flex-direction: row-reverse;
}

/* Text box */
.info-text {
  flex: 1;
  padding: 30px 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.6;
  margin-right: 15px;
}

/* Image box */
.info-image {
  flex: 1;
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Background colors */
.blue-box {
  background-color: #002d72;
}

.teal-box {
  background-color: #9e9c9c;
}

.pink-box {
  background-color: #0e660b;
}


/* Typography */
.info-text h2 {
  font-size: 25px;
  margin-bottom: 10px;
  font-weight: 700;
}

.info-text p {
  font-size: 20px;
}

/* White space between sections */
.info-section+.info-section {
  margin-top: 25px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .info-row {
    flex-direction: column;
    height: auto;
  }

  .info-image img {
    height: 250px;
  }

  .info-text {
    padding: 20px;
    text-align: center;
  }
}

/* ===== Banner Section ===== */
.banner {
  position: relative;
  width: 100%;
  height: 700px;
  /* adjust height if you want */
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ensures the image covers the area */
  display: block;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* dark overlay for text contrast */
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-overlay h1 {
  color: #fff;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}


/* ===== Mission Section ===== */
.mission-banner {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.mission-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(83, 83, 83, 0.4);
}

.mission-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.mission-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mission-image img {
  width: 100%;
  max-width: 500px;
  /* border-radius: 12px; */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mission-text {
  flex: 1;
}

.mission-text h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  position: relative;
}

.mission-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #0162c9;
  margin-top: 10px;
  border-radius: 2px;
}

.mission-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mission-content {
    flex-direction: column;
    text-align: center;
  }

  .mission-image img {
    max-width: 100%;
  }

  .mission-text h2::after {
    margin: 10px auto;
  }
}

/* ===== Vision Section ===== */
.vision-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.vision-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.vision-text {
  flex: 1;
}

.vision-text h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  position: relative;
}

.vision-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #28a745;
  /* green to differentiate from mission */
  margin-top: 10px;
  border-radius: 2px;
}

.vision-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.vision-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .vision-content {
    flex-direction: column;
    text-align: center;
  }

  .vision-text h2::after {
    margin: 10px auto;
  }

  .vision-image img {
    max-width: 100%;
  }
}

/* new vision and mission style */
.mv-section {
  padding: 80px 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.mv-block {
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 40px;
}

.mv-block.reverse {
  flex-direction: row-reverse;
}

.mv-text {
  flex: 1;
}

.mv-text h2 {
  font-size: 2.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.mv-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 25px;
}

.mv-label {
  font-size: 0.9rem;
  color: #d49a45;
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
}

.mv-image {
  flex: 1;
}

.mv-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}


/* objectives page */
.history-top-banner img {
  width: 100%;
  height: 900px;
  object-fit: cover;
  background-attachment: fixed;
}

/* Text on the right */
.objectives-banner-text {
  position: absolute;
  right: 20px;
  /* push text slightly from the right */
  top: 50%;
  /* move to vertical center */
  transform: translateY(40%);
  /* initial position before animation */
  text-align: right;
  animation: slideUp 1.3s ease forwards;
  opacity: 0;
}

.objectives-banner-text h2 {
  color: #fff;
  font-size: 48px;
  letter-spacing: 1px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
}

/* Slide-up animation */
@keyframes slideUp {
  from {
    transform: translateY(80%);
    opacity: 0;
  }

  to {
    transform: translateY(-50%);
    /* final adjustment to perfect centering */
    opacity: 1;
  }
}


.objectives-section {
  padding: 80px 0;
}

.section-title {
  text-align: left;
  font-size: 2.8rem;
  margin-bottom: 50px;
  font-weight: 800;
}

/* Each row looks like the screenshot */
.objective-row {
  display: flex;
  align-items: center;
  width: 75%;
  background: #e2f1de;
  padding: 10px 10px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  gap: 30px;
}

.objective-row.reverse {
  margin-left: auto;
  /* pushes it to right side for alternating effect */
  flex-direction: row-reverse;
}

/* Circle image with overlay */
.objective-image {
  width: 180px;
  height: 180px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
}

/* Base image */
.objective-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(100%); */
}

/* Green overlay tint */
.overlay-green::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(255, 255, 255, 0.45);   */
  mix-blend-mode: multiply;
}

/* Text */
.objective-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.objective-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Responsive */
@media (max-width: 900px) {
  .objective-row {
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  .objective-row.reverse {
    margin-left: 0;
    flex-direction: column;
  }
}

/* Base hidden state before animation */
.objective-row {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1.2s ease;
}

.objective-row.reverse {
  transform: translateX(50px);
}

/* When element is visible */
.objective-row.show {
  opacity: 1;
  transform: translateX(0);
}




.objectives-image {
  position: relative;
  text-align: center;
  margin-top: 40px;
  padding-left: 10px;
  padding-right: 10px;
  filter: brightness(70%);
}

.objectives-bg {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  object-fit: cover;
  opacity: 0.9;
}

.image-overlay {
  position: relative;
  display: inline-block;
  width: 100%;
}

.overlay-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  /* background: rgba(77, 77, 77, 0.4); */
  padding: 15px 25px;
  border-radius: 8px;
  max-width: 80%;
}

@media (max-width: 768px) {
  .overlay-text {
    font-size: 1.2rem;
    padding: 10px 15px;
  }
}







/* updated history page */
.history-top-banner {
  position: relative;
  width: 100%;
  height: 90vh;
  /* You can adjust */
  overflow: hidden;
}

.history-top-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  /* Darkens the image for text visibility */
}

.history-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  z-index: 5;

  /* Text styling */
  text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);

  /* Fade-in animation */
  opacity: 0;
  animation: fadeInTitle 1.2s ease forwards;
}

@keyframes fadeInTitle {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .history-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  .history-top-banner {
    height: 40vh;
  }
}

.history-wrapper {
  background-image: url("../images/history-background.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.history-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1rem;
}

.history-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 6rem 0;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s ease;
}

.history-section.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.history-section.reverse {
  flex-direction: row-reverse;
}

.history-image {
  flex: 1;
  position: relative;
}

.history-image img {
  width: 100%;
  border-radius: 1px;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.1);
}

.history-text {
  flex: 1;
  padding: 1rem;
  position: relative;
}

.year {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 5px;
  margin-bottom: 1rem;
}

.subtitle {
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 900px) {

  .history-section,
  .history-section.reverse {
    flex-direction: column;
  }

  .year {
    font-size: 3rem;
  }
}

/* -------------------------
   PARALLAX BANNER
--------------------------*/
.esg-top-banner {
  position: relative;
  height: 100vh;
  width: 100%;
  background: url("../images/esg-background2.jpg") center/cover no-repeat;
  background-attachment: fixed;
  /* PARALLAX EFFECT */
  display: flex;
  align-items: center;
  justify-content: center;
}

.esg-top-banner img {
  display: none;
  /* not needed since using background-image */
}

/* dark overlay like rotary */
.esg-banner-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.45); */
}

.esg-banner-text {
  position: absolute;
  /* instead of relative */
  top: 50vh;
  text-align: center;
  color: #f3f2ee;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeUp 1.2s ease;
}


.esg-banner-text p {
  font-size: 30px;
  margin-top: 105px;
  font-weight: 300;
}

/* fade up effect */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-down arrow */
.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.scroll-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.scroll-arrow:hover {
  opacity: 1;
}


.scroll-arrow span {
  width: 6px;
  height: 6px;
  border-bottom: 2px solid white;
  border-right: 2px solid white;
  transform: rotate(45deg);
  margin-top: 8px;
  animation: arrowBounce 1.4s infinite ease-in-out;
}

@keyframes arrowBounce {
  0% {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }

  50% {
    transform: translateY(10px) rotate(45deg);
    opacity: 0.6;
  }

  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }
}



/* -------------------------
    CONTENT SCROLLS OVER IMAGE
--------------------------*/
.esg-grid {
  /* margin-top: -5px; pulls content upward over banner */
  position: relative;
  z-index: 10;
}

/* Shadow on top for sleek transition */
.esg-grid::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
  z-index: -1;
}


/* -------------------------
    MODERN GRID SECTIONS
--------------------------*/
/* .esg-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
} */

.esg-img-overlay {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-width: 300px;
  height: 430px;
}

.esg-img-overlay img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.esg-overlay-text {
  position: absolute;
  inset: 0;
  /* full coverage */
  background: rgba(225, 240, 225, 0.7);
  /* white transparent cover */

  display: flex;
  /* center the title */
  align-items: center;
  justify-content: center;

  transition: all 0.6s ease;
}

.esg-overlay-text h2 {
  margin: 0;
  color: #000;
  font-size: 38px;
  white-space: nowrap;
}

.esg-img-overlay:hover img {
  transform: scale(1.1);
  /* zoom in image on hover */
}

.esg-img-overlay:hover .esg-overlay-text {
  transform: translateY(100%);
  /* moves overlay FULLY off the image */
  background: rgba(255, 255, 255, 0);
  /* fade during movement */
}

.esg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.esg-row.reverse {
  direction: rtl;
  /* simple way to swap order */
}

.esg-row.reverse>* {
  direction: ltr;
}

/* white & grey sections */
.white-bg {
  background: #ffffff;
}

.grey-bg {
  background: #f2f2f2;
}

/* text block */
.esg-text {
  padding: 60px 80px;
  /* wider text area */
  max-width: 900px;
  /* allow text to span more horizontally */
  width: 100%;
  margin: auto;
  /* keep it centered */
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeSlide 1s ease both;
}

.esg-text h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

.esg-text p {
  font-size: 19px;
  line-height: 1.6;
}

/* image block */
/* .esg-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.esg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;   
  object-position: center;
  display: block;
}

.esg-img img:hover {
  opacity: 1;
  filter: none;
} */

/* animation on scroll-like effect */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobile responsive */
@media (max-width: 768px) {
  .esg-top-banner {
    height: 55vh;
  }

  .esg-banner-text h1 {
    font-size: 36px;
  }

  .esg-banner-text p {
    font-size: 18px;
  }

  .esg-row,
  .esg-row.reverse {
    grid-template-columns: 1fr;
  }

  .esg-img img {
    max-width: 70%;
  }
}



/* members page */
/* Banner */
/* Members Banner */
.members-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.members-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

/* Text Container */
.members-text {
    position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  z-index: 5;

  /* Text styling */
  text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.7);

  /* Fade-in animation */
  opacity: 0;
  animation: fadeInTitle 1.2s ease forwards;
}

/* Text Styling */
.members-text h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #fff;
}

.members-text p {
  font-size: 20px;
  line-height: 1.5;
  color: #f2f2f2;
}

/* Slide-up Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 50px);
    /* starts lower + centered */
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
    /* normal centered position */
  }
}

.members-title {
  text-align: center;
  margin-bottom: 40px;
}

.members-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

/* underline style */
/* .members-title h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #0066cc;
  display: block;
  margin: 10px auto 0 auto;
  border-radius: 3px;
} */


/* Grid Layout */
.members-section {
  padding: 60px 20px;
}
/* 
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
} */

/* Member Card */
/* .member-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  position: relative;
} */

.member-card {
  min-height: 220px;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  align-items: start;
}
.other-members-grid .member-card {
  padding: 18px 14px 10px;     /* smaller card — reduced bottom padding */
  min-height: auto;
}


/* Wrapper ONLY for members with dropdown */
/* .member-wrapper {
  position: relative;
  margin-bottom: 60px;
} */
/* Wrapper ONLY for members with dropdown */
.member-wrapper {
  position: relative;
  transition: margin-bottom 0.35s ease;
  margin-bottom: 60px;
}

/* Space reserved ONLY when dropdown is open */
.member-wrapper.active {
  margin-bottom: 260px; /* adjust based on bio length */
}

.member-wrapper.long-bio.active { margin-bottom: 300px; }    /* for long bio */

/* Card styling */
.member-card {
  background: #fff;
  padding: 12px; /* reduced to tighten spacing between image and card border */
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  min-height: 180px;
}

/* Toggle */
.member-toggle {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #151b6c;
  cursor: pointer;
}

/* Dropdown panel (absolute, no layout impact) */
.member-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 12px; /* reduced to match card padding */
  border-radius: 12px;

  background: rgba(245, 244, 244, 0.75);
  backdrop-filter: blur(4px);

  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;

  z-index: 10;
}


/* Open state */
.member-wrapper.active .member-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Placeholder Photo */
.member-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;   /* portrait ratio */
  height: auto;
  margin: 0 auto 26px;
  overflow: hidden;
  position: relative; 
}
.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.other-members-grid .member-photo {
  width: 200px;
  height: 300px;
  margin-bottom: 14px;
}

/* Overlay that appears on hover */
.member-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
.member-overlay h4 {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.member-overlay h6{
  font-size: 0.75rem;
  /* margin-top: 8px; */
  font-weight: 700;
}
/* Show overlay when hovering the card or photo */
.member-card:hover .member-overlay,
.member-photo:hover .member-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* soft zoom on hover (keeps underneath image scaled slightly) */
.member-card:hover .member-photo img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}
/* hide legacy toggle (we now show overlay on hover) */
.member-toggle { display: none; }

@media (max-width: 600px) {
  .member-photo {
    width: 130px;
    height: 130px;
  }
  .member-overlay {
    padding: 12px;
    font-size: 0.9rem;
  }
}


.placeholder-photo {
  background: #dce1e8;
  color: #666;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-style: italic;
}

/* Name + Role */
.member-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #959595;
  margin-bottom: 8px;
}

.member-role {
  font-size: 16px;
  color: #0066cc;
  margin-bottom: 12px;
  font-weight: 600;
}

.member-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* Slide-up animation */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to title */
.members-title {
  animation: slideUpFade 1s ease-out forwards;
  opacity: 0;
}

/* Apply animation to each member card */
.member-card {
  opacity: 0;
  animation: slideUpFade 0.9s ease-out forwards;
}

/* Small delay for stagger effect */
.member-card:nth-child(1) {
  animation-delay: 0.3s;
}

.member-card:nth-child(2) {
  animation-delay: 0.45s;
}

.member-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* For the second row */
.container.members-grid:nth-of-type(2) .member-card:nth-child(1) {
  animation-delay: 0.75s;
}

.container.members-grid:nth-of-type(2) .member-card:nth-child(2) {
  animation-delay: 0.9s;
}

.container.members-grid:nth-of-type(2) .member-card:nth-child(3) {
  animation-delay: 1.05s;
}


/* Contact page */
/* contact banner */
.contact-banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 50px;
  margin-top: 40px;
}

.contact-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(90%);
}

.contact-banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
}

.contact-banner-overlay h1 {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 4px;
}

.contact-page {
  width: 100%;
  padding: 80px 0;
  background: #f7f7f7;
}

/* Header Text */
.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h5 {
  color: #d29f5a;
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-header p {
  max-width: 600px;
  margin: 0 auto;
  color: #666;
}

/* Info Cards Row */
.contact-info-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto 60px;
  flex-wrap: wrap;
}

.info-card {
  background: #fff;
  padding: 30px 25px;
  width: 250px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Icon Style */
.icon-circle {
  width: 60px;
  height: 60px;
  background: #0c1c45;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
}

.icon-circle i {
  color: #fff;
  font-size: 22px;
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.info-card p {
  color: #666;
}

/* Main Content: Map + Form */
.contact-main {
  display: flex;
  width: 85%;
  margin: auto;
  gap: 30px;
  flex-wrap: wrap;
}

/* Map */
.contact-map {
  flex: 1;
  min-height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Form */
.contact-form {
  flex: 1;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.contact-form form input,
.contact-form form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
}

.contact-form form input:focus,
.contact-form form textarea:focus {
  border-color: #d29f5a;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

/* Send Button */
.send-btn {
  background: #d29f5a;
  color: #fff;
  padding: 14px 60px;
  border-radius: 8px;
  border: none;
  width: 50%;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-left: 150px;
}

.send-btn:hover {
  background: #c78b3a;
}


/* events page */
/* Section Title */
.upcoming-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1a3a8d;
  text-align: left;
  padding-left: 8%;
}

/* Section Wrapper */
.upcoming-event-section {
  width: 100%;
  padding: 60px 0;
}

.upcoming-wrapper {
  width: 85%;
  margin: auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Event Image */
.upcoming-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Right Side Box */
.upcoming-info {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

/* Date Box */
.event-date-box {
  text-align: center;
  border-right: 2px solid #1a3a8d;
  padding-right: 20px;
}

.event-date-box h1 {
  font-size: 48px;
  margin: 0;
  line-height: 1;
  color: #1a3a8d;
}

.event-date-box span {
  font-size: 18px;
  letter-spacing: 2px;
  color: #1a3a8d;
}

/* Event Text */
.event-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.event-text p {
  font-size: 16px;
  color: #555;
  max-width: 480px;
  margin-bottom: 20px;
}

/* View All */
.view-all {
  font-weight: 600;
  color: #1a3a8d;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: 18px;
}

.view-all:hover {
  color: #e8a745;
}

/* Banner */
.events-banner {
  position: relative;
  height: 60vh;
  overflow: hidden;
}

.events-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  transition: transform 0.4s ease;
}

.eventpage-card:hover img {
  transform: scale(1.05);
}

.events-banner-text {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  animation: slideUp 1s ease forwards;
}

.events-banner-text h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.events-banner-text p {
  font-size: 18px;
  opacity: 0.9;
}

/* Section Title */
.eventspage-grid-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1a3a8d;
}

.eventspage-grid-section {
  padding: 80px 60px; /* space around title + grid */
  background: 
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(175, 175, 175, 0.9)),
    url("../images/background3.jpg") center / cover no-repeat;
    background-attachment: fixed;
}

.eventspage-grid-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #101010;
  font-weight: 700;
}

/* 3-column grid */
.eventspage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

/* Default card style */
.eventpage-card {
  background: #f5f5f5;
  border-radius: 20px 0 20px 0;
  padding: 20px;
  box-shadow: 10px 15px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  overflow: hidden;

  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover: move up */
.eventpage-card:hover {
  transform: translateY(-10px);
  box-shadow: 15px 20px 35px rgba(0, 0, 0, 0.18);
}

@keyframes floatCard {
  0%   { transform: translateY(-8px); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(-8px); }
}

/* Event Image */
.eventpage-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 5px;
}

/* Title */
.eventpage-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #555;
  margin: 20px;
  margin-bottom: 10px;
}

/* Description */
.eventpage-description {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 20px 15px;
  min-height: 80px;
}

/* Read More */
.eventpage-read-more {
  margin-left: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a73d9;
  text-decoration: none;
  transition: 0.2s;
}

.eventpage-read-more:hover {
  color: #174a8c;
}

/* Responsive */
@media (max-width: 900px) {
  .eventspage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .eventspage-grid {
    grid-template-columns: 1fr;
  }
}

/* Fade + Slide In Animation */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to all event cards */
.eventpage-card {
  opacity: 0;
  animation: slideUpFade 1.5s ease forwards;
}

/* Delay each card for a staggered effect */
.eventpage-card:nth-child(1) {
  animation-delay: 0.1s;
}

.eventpage-card:nth-child(2) {
  animation-delay: 0.2s;
}

.eventpage-card:nth-child(3) {
  animation-delay: 0.3s;
}

.eventpage-card:nth-child(4) {
  animation-delay: 0.4s;
}

.eventpage-card:nth-child(5) {
  animation-delay: 0.5s;
}

.eventpage-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Add more if you add more cards */

/* delete button for events - only visible to admins */
.event-delete-btn {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 20px;
  margin-bottom: 10px;
}
/* Admin delete form wrapper */
.event-delete-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.event-delete-btn:hover {
  background: #a93226;
}

/* EVENTS */
/* environmental page */

/* Environment banner */
.env-banner {
  position: relative;
  width: 100%;
  height: 95vh;
  /* min-height: 420px;
  max-height: 740px; */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}


.env-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.env-banner h1 {
  position: relative;
  color: #fff;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 1px;
  z-index: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .env-banner {
    height: 260px;
  }

  .env-banner h1 {
    font-size: 32px;
  }
}
/* Intro text section */
.env-intro {
  padding: 80px 20px 40px;
}

.env-intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.env-intro-content p {
  font-size: 17px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .env-intro {
    padding: 60px 20px 30px;
  }

  .env-intro-content p {
    font-size: 16px;
  }
}

/* Gallery section spacing */
.env-gallery {
  margin-top: 80px;
  margin-bottom: 80px;
}

/* Image grid */
.env-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding-left: 180px;
  padding-right: 180px;
}

/* Images */
.env-gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #e0e0e0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 5px;
}

/* Hover effect (optional but nice) */
.env-gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Tablet */
@media (max-width: 1024px) {
  .env-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .env-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .env-gallery-grid img {
    height: 160px;
  }
}

/* Lightbox overlay */
.env-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.env-lightbox.active {
  display: flex;
}

.env-lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
}

/* Controls */
.env-close,
.env-prev,
.env-next {
  position: absolute;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

.env-close {
  top: 20px;
  right: 30px;
}

.env-prev {
  left: 30px;
}

.env-next {
  right: 30px;
}

/* Mobile */
@media (max-width: 768px) {
  .env-prev,
  .env-next {
    font-size: 30px;
  }
}

/* new image slider */
.env-gallery-slider {
  position: relative;
  width: 80%;
  overflow: hidden;
  padding: 20px 0 10px;
  margin: 0 auto;
  margin-bottom: 50px;
}

.env-gallery-viewport {
  overflow: hidden;
  flex: 1;
}

.env-slider-track {
  display: flex;
  gap: 16px;
  scroll-behavior: smooth;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 20px;
  cursor: grab;
}
.env-slider-track:active { /*to allow cursor to move the gallery images*/
  cursor: grabbing;
}
.env-slider-track::-webkit-scrollbar {
  display: none;
}

.env-slider-track img {
  flex: 0 0 auto;
  width: 300px;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
}
/* ARROWS */
.env-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
}

.env-arrow:hover {
  background: rgba(0,0,0,0.8);
}

.env-arrow-left {
  left: 25px;
}

.env-arrow-right {
  right: 25px;
}
/* hide arrow when scrolling is not possible */
.env-arrow { 
  opacity: 0.85;
}
.env-arrow:hover {
  opacity: 1;
}


/* Pagination dots */
.env-slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.env-slider-dots span {
  width: 10px;
  height: 10px;
  background: #cfd8e3;
  border-radius: 50%;
  cursor: pointer;
}

.env-slider-dots span.active {
  background: #0d3b8e; /* Kalis blue */
}
@media (max-width: 768px) {
  .env-slider-track img {
    width: 220px;
    height: 150px;
  }
}


/* talkon drugs */
.talkondrugs {
  position: relative;
  width: 100%;
  height: 100vh;              
  min-height: 420px;
  max-height: 740px;
  background: url("../images/talkondrugs/5.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper {
  max-width: 900px;
  margin: 40px auto;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}


/* adding event form */
.create-event-wrapper {
    
    display: flex;
    justify-content: flex-end;
    margin-bottom: 50px;
    margin-right: 20px;
}

.btn-create-event {
    background: #1a3a8d;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    
}
.btn-create-event:hover {
    background: #142f73;
}

.event-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

.event-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;

    /* IMPORTANT */
    max-height: 85vh;           /* prevents overflow off screen */
    overflow-y: auto;           /* enables scrolling */

    margin: 60px auto;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    scroll-behavior: smooth;
}


.event-modal-content h2 {
    margin-bottom: 20px;
}

.event-modal-content label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}

.event-modal-content input,
.event-modal-content textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
}

.btn-submit-event {
    margin-top: 20px;
    background: #1a3a8d;
    color: #fff;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 26px;
    cursor: pointer;
}
