  /* ================= BASE STYLES ================= */
  :root {
    --primary-color: #006400;
    --primary-dark: #004d00;
    --accent-color: #ff4d4d;
    --text-light: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}
  /* NAVBAR, CAROUSEL, NEWS SECTION BACKGROUND */
  .top-sections {
    background: url('../background/bgtop.png') no-repeat center top/cover;
    width: 100%;
    height: 100vh;
    max-height: 800px;
    padding-top: 50px;
    position: relative;
    overflow: visible;
}

.main-content {
    display: flex;
    flex-direction: column;
    position: relative;
}
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    z-index: 1000;
  }
  .logo img {
    width: 110px !important;
    border-radius: 50%;
  }
  
  .title {
    color: white;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .title h1 {
    font-size: 30px;
    font-weight: bold;
  }
  
  .title p {
    font-size: 15px;
  }
  
  nav {
    flex-grow: 1;
    text-align: center;
  }
  
  .nav-links {
    margin-left: 60px;
  }
  
  .nav-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 50px !important;
    margin: 0;
    padding: 0;
  }
  

  .nav-links ul,
  .dropdown-toggle {
    color: white;
    text-decoration: none;
    font-size: 1.0rem !important;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.2s, background 0.2s;
  } 
  .nav-links li,
  .dropdown-toggle {
    color: white;
    text-decoration: none;
    font-size: 1.0rem !important;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.2s, background 0.2s;
  }
  .nav-links a,
  .dropdown-toggle {
    color: white;
    text-decoration: none;
    font-size: 1.3rem !important;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: color 0.2s, background 0.2s;
  }
  .nav-links li a:hover,
  .dropdown-toggle:hover,
  .dropdown:hover > .dropdown-toggle {
    color: #000 !important;
  }
  
  .dropdown {
    position: relative;
  }
  
  .dropdown-menu {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    background: #4BFF96;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    margin-top: 2px;
  }
  
  .dropdown.open .dropdown-menu {
    opacity: 1;
    max-height: 500px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    display: block !important;
  }
  
  .dropdown-menu a {
    display: block;
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 12px 24px;
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s, color 0.2s;
  }
  
  .dropdown-menu a:last-child {
    border-bottom: none;
  }
  
  .dropdown-menu a:hover, .dropdown-menu a:focus {
    background: #4BFF96;

  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  .nav-links ul li a,
.dropdown-toggle {
  transition: color 0.2s, background 0.2s;
}

.nav-links ul li a:hover,
.dropdown-toggle:hover,
.dropdown:hover > .dropdown-toggle {
  color: #000;
}

/* Dropdown menu background and item hover */
.dropdown-menu {
  background: white !important;
  left: 0;
  right: auto;
  min-width: 180px;
  text-align: left;
  padding: 0;
}

.dropdown-menu a {
  color: #000 !important;
  background: none !important;
  text-align: left;
  width: 100%;
  display: block;
  white-space: nowrap;
  padding: 12px 24px;
  transition: background 0.2s, color 0.2s;
  font-size: 1.1rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #4BFF96 !important;
  color: #000 !important;
}

/* Ensure navbar menu items have the same font, size, and alignment */
.nav-links ul li a,
.dropdown-toggle {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5;
  display: flex;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

/* Ensure nav links and logout button are vertically aligned */
.nav-links ul {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* Dropdown menu appears directly below parent */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 1000;
}

/* Home, About, FAQ hover color */
.nav-links > ul > li > a:hover,
.nav-links > ul > li > .dropdown-toggle:hover,
.nav-links > ul > li.dropdown:hover > .dropdown-toggle {
  color: #4BFF96 !important;
}

/* Dropdown menu link hover: black text, #4BFF96 background */
.dropdown-menu a:hover,
.dropdown-menu a:focus {
  color: #000 !important;
  background: #4BFF96 !important;
}
  .sign-up .btn {
    background-color: white;
    color: #004d26;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 7px 10px;
    text-decoration: none;
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .sign-up .btn:hover {
    background-color: #4BFF96 !important;
    color: #000 !important;
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(22, 16, 16, 0.25);
  }
  .hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .nav-links {
    display: flex;
    flex: 1;
    justify-content: flex-end;
  }
  
  .nav-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  
  .nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
  }
  
  .nav-links a:hover {
    opacity: 0.8;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--primary-dark);
    padding: 12px 0;
    border-radius: 6px;
    box-shadow: var(--shadow);
    min-width: 180px;
  }
  
  .dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
  }
  
  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .btn {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
  }
  
  .btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }
      /* Carousel Container */
    .carousel-container {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      width: 90%;
      margin: auto;
      margin-top: 120px;
      margin-bottom: 10px;
    }
  
    /* Carousel */
    .carousel {
      width: 100%;
      height: 70vh;
      overflow: hidden;
      position: relative;
      margin-bottom: 40px;
    }
  
    .carousel-images img {
      width: 100%;
      height: 100%;
      border: 2pt solid black;
      object-fit: cover;
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
    }
  
    .carousel-images img.active {
      opacity: 1;
    }
  
    /* Read More Button */
    .carousel-text {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
    }
  
    .read-more {
      display: inline-block;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 10px 20px;
      border-radius: 5px;
      text-decoration: none;
      font-size: 18px;
      font-weight: bold;
      transition: background 0.3s;
    }
  
    .read-more:hover {
      background: black;
    }
  
    /* Carousel Buttons */
    .carousel-btn {
      width: 50px;
      height: 50px;
      background: #002917;
      color: white;
      font-size: 24px;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s;
      position: relative;
      z-index: 10;
    }
  
    .carousel-btn:hover {
      background: black;
    }
  
    .prev {
      margin-right: 10px;
    }
  
    .next {
      margin-left: 10px;
    }
  
    /* Modal Styles */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0,0,0,0.7);
      justify-content: center;
      align-items: center;
    }
  
    .modal-content {
      background-color: #fff;
      width: 90vw;
      height: 90vh;
      padding: 40px;
      border-radius: 10px;
      overflow-y: auto;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-sizing: border-box;
      text-align: center;
    }
  
  
    .modal-content img {
      width: auto;
      max-width: 100%;
      max-height: 60vh;
      object-fit: cover;
      border-radius: 10px;
      margin: 20px 0;
    }
  
    #modal-title {
      font-size: 2.5rem;
      color: green;
      margin-bottom: 10px;
    }
  
    #modal-description {
      font-size: 1.4rem;
      margin-bottom: 15px;
      max-width: 600px; /* or whatever fixed width you prefer */
      width: 100%;
      word-wrap: break-word;
    }
  
  
    #modal-date,
    #modal-location {
      font-size: 1.2rem;
      margin-bottom: 5px;
    }
  
  
    .modal-content {
      transition: transform 0.3s ease;
      transform: scale(1);
    }
  
    .modal[style*="display: flex"] .modal-content {
      transform: scale(1);
    }
  
    .close {
      position: absolute;
      top: 15px;
      right: 20px;
      color: #aaa;
      font-size: 30px;
      font-weight: bold;
      cursor: pointer;
      transition: color 0.3s;
    }
  
    .close:hover {
      color: black;
    }
  
  
    #modal-date::before,
    #modal-location::before {
      content: '';
      display: block;
    }
    .latest-news {
      position: relative;
      border-bottom: 3px solid #004225;
      font-size: 1.6rem;
      text-align: center;
      padding: 15px 0;
      margin-top: 50px;
      font-weight: bold;
    }
    .news-announcement {
      border-bottom: none !important;
    }
    

  /* Base Styles - unchanged for desktop */
  .news-announcement {
    border-bottom: 3px solid #004225;
  }

/* ANNOUNCEMENT Carousel */
.announcement-carousel {
  width: 90%;
  margin: 40px auto;
  background: white;
  border: 1px solid #ccc;
  padding: 30px;
  position: relative;
  border-radius: 12px;
  height: 600px;
  display: flex;
  align-items: center;
}

.announcement-item.active {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.announcement-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.announcement-item {
  display: none;
}

.announcement-image img {
  width: 650px;
  height: 430px;
  border-radius: 12px;
  object-fit: cover;
}

.announcement-details {
  flex: 1;
  padding-left: 30px;
}

.announcement-details h3 {
  color: #004225;
  font: size 1.6rem;;
  margin-bottom: 10px;
}

.announcement-details p {
  font-size: 20px;
}

.announcement-info {
  list-style: none;
  padding: 0;
  font-size: 20px;
}

.announcement-info li {
  margin-bottom: 10px;
}

.announcement-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #004225;
  color: white;
  border: none;
  font-size: 24px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.announcement-controls.left { left: -25px; }
.announcement-controls.right { right: -25px; }
    

    .news-section {
      width:90vw;
      margin: 0 auto 50px;
      background: linear-gradient(135deg, #006644 60%, #009150 100%);
      background-size: 100% 50%;
      background-repeat: no-repeat;
      background-position: top;
      border-radius: 0 0 20px 20px;
      padding: 40px 0 60px 0;
      position: relative;
      overflow-x: hidden;
      overflow-y: visible;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .news-section h2 {
      color: #fff;
      text-align: center;
      font-size: 1.6rem;
      font-weight: bold;
      margin-bottom: 30px;
      letter-spacing: 2px;
      text-shadow: 0 2px 2px rgba(0,0,0,0.6);
    }
    
    .news-carousel-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 100px;
      position: relative;
    }
    
.news-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #004225;
  color: white;
  border: none;
  font-size: 24px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.news-controls.left { right: 600px; }
.news-controls.right { left: 600px; }
    
    
    
    .news-cards-track {
      display: flex;
      gap: 40px;
      overflow: visible;
      scroll-behavior: smooth;
      width: 1200px;
      max-width: 90vw;
      padding: 10px 0;
      position: relative;
      cursor: grab;
      user-select: none;
      z-index: 1;
      justify-content: center;
    }
    
    .news-card-item {
      background: #fff;
      border-radius: 20px;
      width: 350px;
      height: 450px;
      flex-shrink: 0;
      text-align: center;
      padding: 0 0 30px 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 10;
      transition: box-shadow 0.4s, transform 0.4s;
    }
    
    .news-card-item:hover {
      transform: translateY(-24px) scale(1.07);
      z-index: 9999;
    }
    
    .news-card-item img {
      width: 200px;
      height: 200px;
      object-fit: contain;
      border-radius: 12px 12px 0 0;
      margin: 24px auto 0 auto;
      display: block;
    }
    
    .news-card-item h3 {
      font-size: 1.6rem;
      font-weight: bold;
      color: #222;
      margin: 40px 0 0 0;
    }
    
    .news-card-item p {
      font-size: 0.8rem;
      color: #888;
      margin: 8px 0 0 0;
    }
    
    .view-btn {
      background-color: #188a4b;
      color: #fff;
      width: 130px;
      margin: 32px auto 0 auto;
      padding: 10px 0;
      border: none;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s;
      display: block;
    }

        /* News Modal */
    .news-modal {
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      position: fixed;
      inset: 0;
      z-index: 999;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      display: flex;
      justify-content: center;
      align-items: center;
      transition: opacity 0.3s ease;
    }

    .news-modal.active {
      visibility: visible;
      opacity: 1;
      pointer-events: all;
    }

    .news-modal-content {
      background-color: #fff;
      padding: 40px 30px;
      border-radius: 20px;
      width: 90%;
      max-width: 800px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
      animation: slideUp 0.3s ease;
    }

    .news-modal-content img {
      width: 100%;
      max-height: 400px;
      object-fit: cover;
      border-radius: 12px;
      margin-top: 15px;
    }

    .news-modal-content h2 {
      font-size: 28px;
      color: #004d33;
      margin-bottom: 20px;
    }

    .news-modal-content p {
      font-size: 17px;
      color: #444;
      line-height: 1.7;
      margin-top: 15px;
      text-align: center;
    }

    .news-modal-close {
      position: absolute;
      top: 12px;
      right: 20px;
      font-size: 28px;
      color: #999;
      cursor: pointer;
      transition: color 0.2s ease;
    }

    .news-modal-close:hover {
      color: #000;
    }

    @keyframes slideUp {
      from { transform: translateY(30px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
      .middle{
  background: url('../background/bgmain.png') no-repeat center top/cover;
  }
  /* Forms Section */
  .form-container {
  width: 90%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columns instead of 2 */
  gap: 40px;
  margin: auto;
  margin-top: 100px;
  margin-bottom: 200px;
  justify-items: center;
  align-items: start;
      }
      .form-dropdown {
          position: relative;
          background: white;
          border-radius: 10px;
          box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
          padding: 30px;
          cursor: pointer;
          border: 2px solid #4CAF50;
          font-size: 24px;
      }
      .form-title {
          font-weight: bold;
          color: #007B3D;
          display: flex;
          align-items: center;
          font-size: 1.4rem;
          text-decoration: none;  
      }
      .form-title img {
          width: 70px;
          height: 70px;
          margin-right: 20px;
      }
      .description {
          font-size: 18px;
          color: #333;
          margin-top: 10px;
          border-top: 2px solid #4CAF50;
          padding-top: 10px;
          text-align: center;
      }
      .form-dropdown-content {
          display: none;
          position: absolute;
          top: 100%;
          left: 0;
          width: 100%;
          background: white;
          box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
          border-radius: 10px;
          z-index: 100;
          padding-top: 10px;
          display: none;
          max-height: 200px;
          overflow-y: auto;
      }
        .form-dropdown-infra {
          grid-column: 1 / -1; /* Make it span all columns */
          justify-self: center;
          background: white;
          border-radius: 10px;
          box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
          padding: 30px;
          cursor: pointer;
          border: 2px solid #4CAF50;
          font-size: 24px;
          width: 60%;
          margin-top: 20px;
      }
      .form-dropdown:hover .form-dropdown-content,
      .form-dropdown-infra:hover .form-dropdown-content,
      .form-dropdown-content:hover {
          display: block;
      }
      .form-dropdown-content button {
          display: block;
          width: 100%;
          padding: 20px;
          margin: 0;
          border: none;
          background: #007B3D;
          color: white;
          cursor: pointer;
          text-align: left;
          border-radius: 0;
          font-size: 20px;
      }
      .form-dropdown-content button:hover {
          background: #005F2D;
      }
      .form-container, .news-section {
          min-height: 400px;
      }

    iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    /* Centralized Location Name */
    .location-name {
        position: absolute;
        top: 20px; /* Position the name near the top */
        left: 50%;
        transform: translateX(-50%); /* Center horizontally */
        font-size: 24px;
        font-weight: bold;
        color: black;
        background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
        padding: 10px 20px;
        border-radius: 5px;
    }
    .modalForm {
    display: none ; 
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
  }

  .form-modal-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
  }

  .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }

  .form-modal-heading {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .form-modal-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
  }

  .form-modal-body {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .form-modal-footer {
    font-size: 14px;
    color: #666;
  }

  /* Certificates Section Header Design */
  .certificates-header-wrapper {
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0;
    position: relative;
    padding: 0;
  }
  .certificates-header {
    background: linear-gradient(90deg, #003c25 0%, #00b86b 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.6rem;
    padding: 10px 48px;
    border-radius: 22px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: none;
    text-align: center;
  }
  .certificates-header-wrapper::before,
  .certificates-header-wrapper::after {
    content: '';
    flex: 1;
    height: 5px;
    background: #009150;
    border-radius: 2px;
    margin: 0;
    z-index: 1;
  }


  .announcements {
    font-size: 1.5rem;
    background-color: #ffffff;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    font-weight: bold;
  }
  .news-announcement {
    border-bottom: none !important;
  }