/* Google Font */
/* Google Font: Cinzel (similar to Trajan Pro) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');


@font-face {
  font-family: 'Trajan Pro';
  src: url('/fonts/TrajanPro-Regular.woff2') format('woff2'),
       url('/fonts/TrajanPro-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}


body {
 font-family: 'Trajan Pro', serif;
  margin: 0;
  padding: 0;
}

.top-header {
  background-color: #ba892d;
  padding: 25px 8%;f
  display: flex;u
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  flex-wrap: nowrap;
  min-height: 2px;
  color: white;
}

.left-section,
.right-section {
  display: flex;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 22px;
  text-decoration: none;
}

.tagline {
  text-align: center;
  font-weight: 600;
  font-size: 22px;
  font-style: italic;
  flex-grow: 1;
  color: white;
}

.nominee-button {
  background-color: #d3d3d3;
  color: #222; /* softer black */
  padding: 10px 20px;
  text-decoration: none;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border-radius: 0;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  .tagline {
    display: none;
  }

  .top-header {
    padding: 20px 5%;
    flex-wrap: nowrap;
  }

  .left-section {
    flex: 1;
    justify-content: flex-start;
  }

  .right-section {
    flex: 1;
    justify-content: flex-end;
    display: flex;
  }

  .nominee-button {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Desktop Styles */
.top-menu {
    background-color: #f2f2f2; /* Lighter gray */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px; /* Increased horizontal padding */
    border-bottom: 1px solid #ba892d;
     box-sizing: border-box; /* important for padding */
    width: 100%;
}


.logo img {
    height: 80px;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu > li {
    position: relative;
    margin: 0;
    padding: 0;
    border-left: 1px solid #ba892d; /* Reduced border thickness */
}

.menu > li:first-child {
    border-left: none;
}

.menu > li > a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background 0.3s;
    font-size:14px;
}

.menu > li > a:hover {
    background-color: #c0c0cb;
}

.arrow {
    margin-left: 5px;
    font-size: 12px;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #e0e0e0; /* Matching lighter gray */
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ba892d;
    z-index: 1000;
}



.submenu.open {
    display: block; /* Show when 'open' class is added */
}

.submenu li {
    border-top: 1px solid #ba892d;
}

.submenu li:first-child {
    border-top: none;
}

.submenu a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
    transition: background 0.3s;
}

.submenu a:hover {
    background-color: #c0c0cb;
}

@media (min-width: 769px) {
    #menuToggle {
        display: none;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide menu by default */
    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 120px; /* Adjusted top to move the menu lower */
        left: 0;
        background-color: #f2f2f2;
        padding: 10px 0;
        border-top: 1px solid #ba892d;
        z-index: 100;
    }

    .menu > li {
        border-left: none;
        width: 100%;
        border-bottom: 1px solid #ba892d;
    }

    .menu > li > a {
        padding: 12px 20px;
        text-align: center;
    }

    .submenu {
        position: relative;
        background-color: #e0e0e0;
        width: 100%;
        left: 0;
        top: 0;
        display: none; /* Hide by default */
    }

    .submenu li {
        border-top: none;
        width: 100%;
    }

    .submenu a {
        padding: 12px 20px;
        text-align: center;
    }

    /* Toggle Button - Hamburger */
    .menu-toggle {
        display: block;
        background-color: transparent;
        border: none;
        font-size: 30px;
        color: #333;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 90px; /* Adjust to align with logo */
        z-index: 200;
    }

    .logo img {
        height: 50px;
        margin-left: -40px;
    }

    /* Display menu when toggle is active */
    .menu.open {
        display: flex;
    }

    /* Hide the toggle button on desktop */

}

/* Show submenu on hover (desktop only) */
@media (min-width: 769px) {
  .menu > li:hover > .submenu {
    display: block;
  }
}
.submenu.open {
  display: block;
}

    /* FIX: Prevent menu toggle from overflowing on mobile */
@media (max-width: 768px) {

    .top-menu {
        padding: 10px 20px;     /* reduce mobile padding */
        position: relative;      /* so toggle aligns to it */
    }

    .menu-toggle {
        right: 15px !important;  /* safely inside screen */
        top: 50%;                /* vertically centered */
        transform: translateY(-50%);
        font-size: 28px;
        padding: 5px;
        z-index: 9999;
    }

    .logo img {
        height: 55px;
        margin-left: 0;          /* prevent pushing layout */
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        top: 50%;               /* center vertically */
        transform: translateY(-50%);
        right: 20px;            /* stays inside screen */
        position: absolute;
    }
}



/*Hero section*/
.a4-hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.a4-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.a4-slide.active {
  opacity: 1;
  z-index: 1;
}

.a4-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.a4-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 3;
  text-align: left;
  max-width: 90%;
  width: 600px;
  opacity: 0;
  transition: all 1s ease-in-out;
}

.a4-slide.active .a4-content {
  opacity: 1;
  transform: translateY(-50%);
}

.a4-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.a4-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.a4-content a {
  padding: 12px 28px;
  background-color: #ba892d;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.a4-content a:hover {
  background-color: #ba892d;
}

/* Responsive Text Scaling */
@media (max-width: 768px) {
  .a4-content {
    left: 5%;
    width: 90%;
  }

  .a4-content h1 {
    font-size: 2rem;
  }

  .a4-content p {
    font-size: 1.1rem;
  }

  .a4-content a {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}
@media (min-width: 769px) {
  .a4-overlay {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
  }
}


/*Floating logo*/

.a4-logo-section {
  padding: 60px 20px;
  position: relative;
  z-index: 5;
  margin-top: -350px; /* Adjust to overlap neatly */
  overflow-x: hidden; /* Prevent horizontal overflow */
}



.a4-logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.a4-logo-left {
  flex: 1 1 45%;
}

.a4-logo-right {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.a4-logo-img {
  width: 300px;
  height: auto;
}



@media  (max-width: 768px) {
  
.a4-logo-img {
  width: 250px;
  height: auto;
  margin-left:100px;
}

}
/* Stats Section */

.a4-stats-section {
  /*background-color: #fff;*/
  padding: 60px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20vh;
}

.a4-stats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.a4-stat {
  text-align: center;
  min-width: 100px;
  position: relative;
  padding: 0 10px;
}

.a4-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: #ccc;
}

.a4-stat h2 {
  margin: 0;
  font-size: 5rem;
  font-weight: bold;
  color: #304864;
}

.a4-stat h2 span {
  color: #ed945b;
}

.a4-stat p {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #333;
}

/* Desktop enhancements */
@media screen and (max-width: 767px) {
  .a4-stats-container {
    gap: 8px;
  }

  .a4-stat {
    min-width: 60px;
    padding: 0 4px;
  }

  .a4-stat h2 {
    font-size: 1rem;
  }

  .a4-stat p {
    font-size: 0.55rem;
  }
}


.a4-events-section { 
  padding: 60px 20px;
  background: url('../img/green-background.jpg') no-repeat center center;
  background-size: cover;
  background-color: #f5e2c2; 
}

.a4-events-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
}

.a4-event-card {
  background-color: #006637;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  width: calc(33.333% - 10px);
  min-width: 280px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.a4-event-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 10px;
  max-width: 90%;
  margin: auto;
}

.event-icon {
  width: 60px;
  height: 60px;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.card-content p {
  font-size: 0.9rem;
  color: #fff;
  margin: 0;
}

.event-btn {
  background-color: #fff;
  color: #006637;
  font-weight: bold;
  padding: 8px 16px;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 8px;
}

.a4-events-heading {
  text-align: center;
  margin-bottom: 40px;
  color: #304864;
 
}

.a4-events-heading h2 {
  font-size: 2rem;
  color: #006637;
  margin-bottom: 10px;
  font-weight: 700;
}

.a4-underline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.a4-underline .line {
  height: 4px;
  width: 40px;
  border-radius: 2px;
}

.a4-underline .blue-line {
  background-color: #006637;
}

.a4-underline .orange-line {
  background-color: #ed945b;
}

@media screen and (max-width: 768px) {
  .a4-events-section {
    margin-top: -50px;
  }

  .a4-event-card {
    width: 90%;
    height: auto;
  }

  .event-icon {
    width: 50px;
    height: 50px;
  }

  .card-content h3 {
    font-size: 1rem;
  }

  .card-content p {
    font-size: 0.85rem;
  }

  .event-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

.a4-event-card {
  position: relative;
  background: url('./img/a4-logo-icon.png') no-repeat center center;
  background-size: cover;
  color: #fff;
  overflow: hidden;
}

.a4-event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 102, 55, 0.85); /* Green overlay */
  z-index: 1;
}

.a4-event-card .card-content {
  position: relative;
  z-index: 2; /* Ensure content is above overlay */
}



/* Home about section */
.a4-summary-section {
  position: relative;
  background: url('../img/about-back-image.jpg') center center / cover no-repeat;
  color: #fff;
  padding: 60px 20px;
  overflow: hidden;
}

.a4-summary-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(24, 101, 62, 0.7); /* #18653e overlay */
  z-index: 1;
}

.a4-summary-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 40px;
}

.a4-summary-left {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
}

.a4-summary-left p {
  line-height: 1.5;
  font-size: 1rem;
  margin-bottom: 20px;
}

.a4-summary-left img {
 width: 150px;
}

.a4-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ba892d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.a4-btn:hover {
  background-color: #a77d2a;
}

.a4-summary-right {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.a4-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.a4-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.a4-box-header i {
  font-size: 1.5rem;
  color: #b78a30;
}

.a4-box p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #fff;
}

/* Title underline style */
.a4-heading {
  font-size: 1.5rem;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 8px;
  color:#b78a30;
}

.a4-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: #b78a30;
}

.a4-about-top-img {
  max-width: 100%;
  height: auto;
  margin-left: 130px;
  margin-bottom: 20px;
  border-radius: 8px;
}


/*Street to school*/

.street-school-section {
  background-color: #f8f9fa;
  padding: 0;
}

.street-school-container {
  display: flex;
  height: 100%;
  min-height: 400px;
}

.street-school-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 40px;
  background: url('../img/street-children-left.jpg') no-repeat center center;
  background-size: cover;
}

.street-school-text h2 {
  color: #000;
  font-size: 2rem;
  margin-bottom: 20px;
}

.street-school-text p {
  color: #000;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.street-school-btn {
  background: #ba892d;
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
  width: fit-content;
}

.street-school-btn:hover {
  background: #d87e42;
}

.street-school-image-side {
  flex: 1;
  background: url('../img/street-children.jpg') no-repeat center center;
  background-size: cover;
  min-height: 400px;
}

/*Scroll to top*/
/* Scroll-to-top button styles */
.scroll-to-top {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom)); /* Prevent overflow on mobile */
    right: calc(20px + env(safe-area-inset-right));   /* Keep inside screen */
    background-color: #ba892d;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
    z-index: 999999; /* keep it above everything */
}

.scroll-to-top:hover {
    background-color: #c0c0cb; /* Change color on hover */
}

/* Show button when scrolled down */
.scroll-to-top.show {
    display: block;
}

/* MOBILE FIX – keep scroll-to-top button inside screen */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 25px; /* move slightly up */
        right: 30px;  /* bring inside the screen */
        padding: 12px; /* reduce size slightly for mobile */
        font-size: 26px;
    }
}
/* MOBILE VERSION (max-width: 768px) */
@media (max-width: 768px) {

    .scroll-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom)); /* compatible with iPhone safe area */
        right: 70px;  /* fully inside the screen */
        padding: 12px; /* smaller touch size */
        font-size: 26px;
        border-radius: 50%;
        z-index: 999999;
    }
}

/*Page hero sections*/

.hero {
    background-color: #046434;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 16px;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #046434;
}

.category {
    margin-bottom: 60px;
}

.category h2 {
    font-size: 22px;
    color: #ba892d;
    margin-bottom: 20px;
    border-bottom: 2px solid #ba892d;
    padding-bottom: 5px;
}

.nominee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.nominee-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    width: 200px; /* Increased width */
    transition: transform 0.3s;
    position: relative;
}

.nominee-card:hover {
    transform: translateY(-5px);
}

.nominee-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.nominee-card p {
    padding: 10px;
    margin: 0;
    font-weight: bold;
    font-size: 14px;
}


.nominate-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 10px;
}

.nominate-btn {
    padding: 4px 8px;
    font-size: 12px;
    background-color: #046434; /* Brand green */
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nominate-btn:hover {
    background-color: #034d28;
}

.vote-count {
    font-size: 12px;
    background: #ba892d; /* Brand gold */
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
}
.nominate-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-top: 15px;
    background-color: #ba892d;
    border-radius: 5px;
}

.nominate {
    background-color: #046434;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.nominate:hover {
    background-color: #033a2a;
}

.counter {
    color: white;
    font-size: 14px;
    background-color: #046434;
    padding: 5px 10px;
    border-radius: 20px;
    margin-left: 10px;
}


/*Preloader*/

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Trajan Pro', serif, "Times New Roman", Times, serif;
}

.preloader-content {
  font-size: 2.5rem;  /* smaller font size */
  display: flex;
  align-items: center;
}

.static-letter {
  font-weight: 400;  /* thinner */
  font-size: 2.8rem;
  color: #006637;
  margin-right: 4px;
  user-select: none;
  /* If Trajan Pro is unavailable, fallback serif used */
}

.sliding-word {
  font-weight: 400; /* thin */
  font-size: 2.5rem;
  color: #ba892d;
  user-select: none;
  animation: slideUpFade 0.6s ease;
  opacity: 1;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.a4-projects-section {
  background: #fff;
  padding: 60px 20px;
  font-family: 'Montserrat', sans-serif;
  color: #333;
}

.container.split-layout {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px; 
  align-items: flex-start;
  justify-content: space-between;
  margin-right:200px;
  background-color: #f5e2c2; 
  padding-right: 100px;
}

.split-box {
  flex: 1 1 45%;
  min-width: 320px;
}

.project-title {
  font-size: 30px;
  color: #006637;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  width: 100%;
}

.project-heading {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.split-box p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.project-links {
  margin: 15px 0;
  padding-left: 20px;
}

.project-links li {
  margin-bottom: 6px;
  list-style:none;
}

.project-links a {
  color: #006637;
  text-decoration: none;
  font-weight: 500;
}

.project-links a:hover {
  text-decoration: underline;
}

.read-more-btn {
  display: inline-block;
  margin-top: 15px;
  background-color: #006637;
  color: #fff;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.read-more-btn:hover {
  background-color: #ba892d;
}

.divider-vertical {
  width: 2px;
  background: #ccc;
  height: auto;
  min-height: 100%;
}

.double-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inline-img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Style ONLY the left side (first .split-box) */
.container.split-layout .split-box:first-of-type {
  background-color: #006637;
  color: #fff;
  padding: 30px;
  border-radius: 8px;
}

/* Ensure text and links are white inside the left side */
.container.split-layout .split-box:first-of-type p,
.container.split-layout .split-box:first-of-type h2,
.container.split-layout .split-box:first-of-type h3,
.container.split-layout .split-box:first-of-type li {
  color: #fff;
}

/* Style links in white too */
.container.split-layout .split-box:first-of-type a {
  color: #fff;
}

/* Hover effect for contrast */
.container.split-layout .split-box:first-of-type a:hover {
  color: #ba892d;
  text-decoration: underline;
}

@media (min-width: 992px) {
  .container.split-layout {
    display: flex;
    flex-wrap: nowrap; /* Don't allow wrapping on desktop */
  }

  .split-box {
    flex: 0 0 48%; /* Force width */
  }

  .divider-vertical {
    display: block;
    height: auto;
  }
}

@media (max-width: 991px) {
  .container.split-layout {
    flex-direction: column;
  }

  .divider-vertical {
    display: none;
  }

  .split-box {
    flex: 1 1 100%;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 5px;
  position: relative;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #006637;
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.section-header h2::after {
  content: "";
  width: 80px;
  height: 3px;
  background-color: #ba892d;
  display: block;
  margin: 10px auto 0;
}

/* ===========================
   MOBILE VERSION (max-width: 768px)
   =========================== */
@media (max-width: 768px) {

  .a4-projects-section {
    padding: 40px 15px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  /* Main container fixes */
  .container.split-layout {
    max-width: 100%;
    margin: 0;
    padding: 15px;
    background-color: #f5e2c2;
    flex-direction: column;
    gap: 25px;
    margin-right: 0 !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    overflow-x: hidden;
  }

  /* Split items become full width */
  .split-box {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }

  /* Left green box */
  .container.split-layout .split-box:first-of-type {
    padding: 25px !important;
    border-radius: 8px;
  }

  /* Headings */
  .project-heading {
    font-size: 20px;
    margin-bottom: 10px;
  }

  /* Paragraphs */
  .split-box p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Links list */
  .project-links {
    margin: 15px 0;
    padding-left: 0;
  }

  .project-links li {
    margin-bottom: 10px;
    font-size: 14px;
  }

  /* Read more button */
  .read-more-btn {
    margin-top: 15px;
    padding: 10px 22px;
    font-size: 14px;
  }

  /* Remove divider */
  .divider-vertical {
    display: none;
  }

  /* Right side image */
  .inline-img {
    max-height: 200px;
    border-radius: 8px;
  }

  /* Double paragraph block fixes */
  .double-paragraphs {
    gap: 10px;
  }
}


/*Eductino lengends section */

.educational-legends-section {
  padding: 60px 20px;
  background-color: #f4f6f9;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 28px;
  color: #304864;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.4;
  position: relative;
  margin-top:-20px;
}

.section-title span {
  display: block;
  font-size: 20px;
  color: #666;
  font-weight: 500;
  margin-top: 5px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #ccc;
  display: block;
  margin: 15px auto 0;
}

.legend-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.legend-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  width: 100%;
  max-width: 260px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #ccc;
}

.legend-card:hover {
  transform: translateY(-5px);
}

.legend-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.legend-card h3 {
  font-size: 16px;
  color: #304864;
  margin-bottom: 10px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #ccc;
}

.legend-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .legend-card {
    max-width: 45%;
  }
}

@media (max-width: 768px) {
  .legend-card {
    max-width: 100%;
  }
}



/*Image gallery slider*/

.gallery-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.gallery-header h2 {
  font-size: 1.5rem;
  color: #006637;
}

.view-more {
  color: #bb8b2c;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.view-more:hover {
  color: #8b651a;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 15px;
  will-change: transform;
}

.carousel-track img {
  width: calc((100% - 30px) / 3);
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 2;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

@media screen and (max-width: 768px) {
  .carousel-track img {
    width: calc((100% - 15px) / 2);
  }
}

@media screen and (max-width: 500px) {
  .carousel-track img {
    width: 100%;
  }
}


/*Team Section*/

 .team-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 50px 20px;
    background-color: #ba892d;
    border-radius: 12px;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #fff;
    font-weight: 600;
  }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    justify-items: center;
  }

  .team-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px 15px 40px;
    max-width: 250px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  }

  .team-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .team-card h3 {
    font-size: 1rem;
    margin: 0;
    color: #333;
    font-weight: 600;
  }

  .card-line {
    width: 50%;
    height: 2px;
    background-color: #ba892d;
    border: none;
    margin: 10px auto;
  }

  .role {
    color: #888;
    font-size: 0.88rem;
    margin-bottom: 15px;
  }

  .learn-more {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 0.8rem;
    color: #ba892d;
    text-decoration: none;
    font-weight: 600;
  }

  .learn-more:hover {
    text-decoration: underline;
  }

  @media (max-width: 768px) {
    .team-card {
      max-width: 100%;
    }
  }

.partners-section {
  width: 100%;
  padding: 40px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.partners-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
  font-weight: 600;
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.partners-logos img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partners-logos img:hover {
  transform: scale(1.05);
}


/* Floating Donate Button */
#donateFloatingBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #e60023;
  color: #fff;
  padding: 12px 18px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  z-index: 99999;
  cursor: pointer;
  animation: blink 1.2s infinite;
}

#donateFloatingBtn i {
  font-size: 28px;       /* Bigger icon */
  color: #fff !important; /* White icon */
}

/* Blinking animation */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Popup overlay */
#donatePopupOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 999999;
  display: none;
  justify-content: center;
  align-items: center;
}

/* Popup box */
#donatePopupBox {
  width: 90%;
  height: 80%;
  background: #fff;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

#donatePopupBox iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Close button */
#closeDonatePopup {
  position: absolute;
  top: 5px;
  right: 10px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 30px;
  padding: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 99;
}


/*Footer section*/

.upcoming-events {
  padding: 60px 5%;
  background-color: #f9f9f9;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upcoming-events h2 {
  font-size: 28px;
  color: #304864;
  text-align: center;
  margin-bottom: 40px;
}

.event-card {
  max-width: 880px;
  width: 100%;
  display: flex;
  align-items: stretch;
  background-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  transform: scale(1.02);
}

.event-image {
  position: relative;
  width: 340px;
  flex-shrink: 0;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-details {
  padding: 20px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-details h3 {
  font-size: 20px;
  color: #ba892d;
  margin-bottom: 12px;
}

.event-details p {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 8px;
}

.event-actions,
.event-image .event-actions {
  display: none;
}

.event-actions-right {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.event-actions-right .share-btn,
.event-actions-right .register-btn {
  padding: 8px 18px;
  font-size: 14px;
  background-color: #006637;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.event-actions-right .share-btn:hover {
  background-color: #ba892d;
}

.event-actions-right .register-btn {
  background-color: #ba892d;
}

.event-actions-right .register-btn:hover {
  background-color: #006637;
}

@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
  }

  .event-image {
    width: 100%;
    height: 220px;
  }

  .event-details {
    padding: 20px;
  }

  .event-actions-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


.event-image .black-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.event-image img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* New button styles */
.event-actions-right .more-btn,
.event-actions-right .partner-btn {
  padding: 8px 18px;
  font-size: 14px;
  background-color: #006637;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.event-actions-right .more-btn:hover {
  background-color: #ba892d;
}

.event-actions-right .partner-btn {
  background-color: #ba892d;
}

.event-actions-right .partner-btn:hover {
  background-color: #006637;
}

/*Partner */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
  }
  .close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
  }
  .modal-content a {
    color: #304864;
    text-decoration: underline;
  }


/*event share popup*/

.share-modal {
  display: none; /* Initially hidden */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.share-modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  text-align: center;
}

.close-btn {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#copyBtn {
  background-color: #304864;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

#copyBtn:hover {
  background-color: #ed945b;
}

/*Page hero sections*/


.hero {
    background-color: #304864;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 16px;
    color: #ccc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #304864;
}

.category {
    margin-bottom: 60px;
}

.category h2 {
    font-size: 22px;
    color: #ed945b;
    margin-bottom: 20px;
    border-bottom: 2px solid #ed945b;
    padding-bottom: 5px;
}

.nominee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.nominee-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.nominee-card:hover {
    transform: translateY(-5px);
}

.nominee-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.nominee-card p {
    padding: 15px;
    margin: 0;
    font-weight: bold;
    font-size: 16px;
}


/*other page hero*/
.hero {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  padding: 60px 20px;
  text-align: center;
  height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 102, 55, 0.9); /* green overlay */
  z-index: -1;
}
.hero a{
    text-decoration: none;
    color: #ba892d
}

/*About details*/

.a4-about-section {
  width: 100%;
  background-color: #f9f9f9;
  padding: 60px 0;
  display: flex;
  position: relative;
  gap: 2rem;
  box-shadow: 10px 8px 30px rgba(50, 50, 50, 0.8);
}


.a4-about-wrapper {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem;
  box-sizing: border-box;
  box-shadow: 10px 8px 30px rgba(50, 50, 50, 0.2);
}

.a4-about-row {
  display: flex;
  align-items: stretch; /* Ensures equal height for both children */
  gap: 2rem;
  flex-wrap: wrap;
}

.a4-about-row.reverse {
  flex-direction: row-reverse;
}

.a4-about-image {
  flex: 1;
  display: flex;
}

.a4-about-image img {
  width: 100%;
  height: 100%;          /* Match the height of .a4-about-text */
  object-fit: cover;     /* Maintain aspect ratio and cover container */
  /*border-radius: 12px;*/
  /*border: 5px solid #ba892d;*/
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.a4-about-text { 
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.a4-about-text h2 {
  font-size: 36px;
  color: #006637;
  margin-bottom: 20px;
  border-bottom: 3px solid #ba892d;
  display: inline-block;
  padding-bottom: 5px;
}

/* Aside on the right */
.a4-about-aside {
  flex: 1;
  min-width: 150px;
  background-image: url('../img/boss-side.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}


.a4-about-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background-color: rgba(255, 255, 255, 0.4);*/
}

/* Responsive */
@media (max-width: 768px) {
  .a4-about-section {
    flex-direction: column;
  }
  .a4-about-wrapper,
  .a4-about-aside {
    flex: unset;
    min-width: 100%;
  }
  .a4-about-row,
  .a4-about-row.reverse {
    flex-direction: column;
  }
}


.a4-vm-section {
  width: 100vw;            /* full viewport width */
  padding: 40px 20px;
  background-color:#ba892d;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

.a4-vm-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}

.a4-vm-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.a4-vm-left-img {
  width: 220px;   /* small image */
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
}

.a4-vm-nominate-text {
  font-size: 14px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}

.a4-vm-card {
  background-color: white;
  border: 2px solid #ba892d;
  border-radius: 0;           /* no border radius */
  padding: 18px 15px;
  flex: 0 1 280px;            /* smaller width */
  box-sizing: border-box;
  text-align: center;
  color: #006637;
  cursor: default;
  transition: box-shadow 0.3s ease;
}

.a4-vm-card:hover {
  box-shadow: 0 8px 20px rgba(186, 137, 45, 0.5);
}

.a4-vm-icon {
  margin-bottom: 12px;
}

.a4-vm-title {
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: 2px;
  font-weight: 700;
}

.a4-vm-text {
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: #006637;
}


/*.a4-projects-section {*/
/*    padding: 40px 20px;*/
/*    background-color: #f4f6f8;*/
/*}*/

.a4-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.a4-image {
    flex: 1 1 40%;
    min-width: 280px;
}

.a4-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.a4-content {
    flex: 1 1 50%;
    min-width: 280px;
}

.a4-content h2 {
    font-size: 24px;
    color: #304864;
    margin-bottom: 15px;
}

.a4-content p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    background-color: #ed945b;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #c7733f;
}


/* ===========================
   2025 Awardees Flyers Section
=========================== */
.a4-awardees-section {
  padding: 70px 20px;
  background: #f8f8f8;
  text-align: center;
}

.awardees-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.awardees-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.awardee-card {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.awardee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.awardee-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.awardee-card h4 {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

/* ===== Responsive Grid ===== */
@media (max-width: 1024px) { /* Tablets */
  .awardees-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) { /* Small Tablets */
  .awardees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) { /* Phones */
  .awardee-card img {
    height: 170px;
  }
  .awardees-grid {
    gap: 15px;
  }
}



/*Footer*/

.a4-footer {
  background-color: #006637;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-about,
.footer-links,
.footer-projects,
.footer-contact {
  flex: 1 1 220px;
}

.footer-logo {
  width: 60px;
  margin-bottom: 10px;
}

.footer-about p {
  line-height: 1.6;
  font-size: 14px;
}

.footer-links h4,
.footer-projects h4,
.footer-contact h4 {
  color: #ba892d;
  margin-bottom: 10px;
}

.footer-links ul,
.footer-projects ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-projects ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-projects ul li a,
.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-projects ul li a:hover,
.footer-contact a:hover {
  color: #ba892d;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-socials a {
  display: inline-block;
  margin-right: 10px;
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #ba892d;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #ddd;
}
