  /* Mobile Styles */
  @media (max-width: 768px) {
    .navbar {
      padding: 12px 16px;
      position: sticky;
      top: 0;
      z-index: 1000;
    }
  
    .hamburger {
      display: block !important;
      position: relative;
      top: auto;
      right: auto;
      z-index: 1100;
      background: none !important;
      border: none !important;
      font-size: 1.5rem !important;
      color: white !important;
      cursor: pointer !important;
      padding: 8px !important;
      border-radius: 4px !important;
      transition: background-color 0.2s !important;
      width: 40px !important;
      height: 40px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    .hamburger:hover {
      background-color: rgba(255, 255, 255, 0.1) !important;
    }

    .hamburger i {
      font-size: 1.5rem !important;
      color: white !important;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: #004d00 !important;
      position: fixed;
      top: 74px;
      left: 0;
      right: 0;
      max-height: 60vh; /* Initial height */
      overflow-y: auto;
      z-index: 999;
      padding: 0;
      transform: translateX(100%);
      transition: transform 0.3s ease-out;
      box-shadow: var(--shadow);
    }
  
    .nav-links.active {
      display: flex !important;
      transform: translateX(0) !important;
    }
  
    .nav-links.expanded {
      max-height: 100vh; /* Expanded height when dropdown is open */
    }
  
    .nav-links ul {
      flex-direction: column;
      width: 100%;
      gap: 0;
    }
    .dropdown:hover .dropdown-menu {
      display: block;
    }
    .nav-links ul li {
      width: 100%;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
  
    .nav-links ul li a {
      font-size: 1rem;
      padding: 14px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .dropdown > a::after {
      content: '\f078';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      font-size: 0.8rem;
      transition: transform 0.2s;
    }
    
    .dropdown.open > a::after {
      transform: rotate(180deg);
    }
  
    .dropdown-menu {
      position: static;
      background: rgba(0, 0, 0, 0.1);
      box-shadow: none;
      padding: 0;
      display: none;
      width: 100%;
      border-radius: 0;
    }
  
    .dropdown.open .dropdown-menu {
      display: block;
    }
  
    .dropdown-menu a {
      padding-left: 32px;
      font-size: 0.95rem;
    }
  
    .sign-up {
      padding: 16px 20px;
      margin-top: 8px;
    }
    
    .sign-up .btn {
      width: 100%;
      padding: 12px;
      text-align: center;
    }

    /* Fix infrastructure centering on mobile */
    .form-dropdown-infra {
      left: auto !important;
      position: relative !important;
    }
  }
    
    @media (max-width: 1300px) {
      .news-cards-track {
        width: 95vw;
        max-width: 95vw;
      }
    }
  /* ===== Responsive Fixes ===== */

  /* Tablets (≤ 992px) */
  @media (max-width: 992px) {
    .announcement-carousel {
      flex-direction: column;
      padding: 20px;
      height: auto;
    }

    .announcement-item.active {
      flex-direction: column;
    }

    .announcement-image img {
      width: 100%;
      height: auto;
      max-height: 400px;
    }

    .announcement-details {
      padding-left: 0;
      margin-top: 20px;
      text-align: center;
    }

    .announcement-details h3 {
      font-size: 26px;
    }

    .announcement-details p,
    .announcement-info {
      font-size: 18px;
    }

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

  /* Fix infrastructure centering on tablets */
  .form-dropdown-infra {
    left: auto !important;
    position: relative !important;
  }
}

  /* Mobile Phones (≤ 600px) */
  @media (max-width: 800px) {
    .announcement-carousel {
      padding: 15px;
    }

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

    .announcement-details p,
    .announcement-info {
      font-size: 14px;
    }

    .announcement-image img {
      max-width: 800%;
      height: auto;
    }

    .announcement-controls {
      font-size: 20px;
      width: 40px;
      height: 40px;
    }

    .announcement-controls.left,
    .announcement-controls.right {
      top: 200px;
      bottom: 15px;
      transform: none;
    }

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

  }    
    @media (max-width: 768px) {
      .announcement-container { flex-direction: column; }
      .announcement-details { padding-left: 0; padding-top: 20px; }
    }


      @media (min-width: 100px) and (max-width: 700px) {

          .form-container {
            display: flex;             /* Ensure flexbox layout is applied */
            flex-wrap: wrap;           /* Allow items to wrap to next line */
            gap: 20px;                 /* Space between items */
            justify-content: center;  /* Center the items horizontally */
            padding: 20px;             /* Add internal padding */
        }
      
        .form-container > * {
            flex: 1 1 45%;             /* Each child takes ~45% width */
            max-width: 100%;           /* Prevent overflow */
            min-width: 250px;          /* Prevent too-small items */
        }

        /* Fix infrastructure centering on small screens */
        .form-dropdown-infra {
            left: auto !important;
            position: relative !important;
        }
        .form-title{
            font-size:12px;
        }
        .form-title img{
            width: 70px;
            height: auto;
        }
        .form-dropdown-content{
            font-size:10px;
        }
        .description{
            font-size:11px;
        }
        .announcement-details{
            font-size: 5x;
        }
        .announcement-image{
            height: 10px;
            width:auto;
        }
        .announcement-info{
            font-size: 5px;
        }
  }


    /* Media Queries for Larger Screens */
    @media (min-width: 768px) and (max-width: 1023px) {
      .navbar {
          padding: 10px 50px;
      }
      
      .logo img {
          width: 80px;
      }
      
      .title h1 {
          font-size: 22px;
      }
      
      .title p {
          font-size: 14px;
      }
      
      nav {
          position: static;
          width: auto;
          height: auto;
          background: transparent;
          padding-top: 0;
      }
      
      nav ul {
          flex-direction: row;
          padding: 0;
          gap: 30px;
      }
      
      nav ul li a {
          font-size: 18px;
      }
      
      .dropdown-menu {
          position: absolute;
          background: rgba(0, 0, 0, 0.9);
          min-width: 180px;
          border-radius: 5px;
          padding-left: 0;
      }
      
      .menu-toggle {
          display: none;
      }
      
      .carousel {
          height: 60vh;
      }
      
      .announcement-carousel {
          height: 400px;
      }
      
      .announcement-item.active {
          flex-direction: row;
      }
      
      .announcement-container {
          flex-direction: row;
      }
      
      .announcement-image img {
          max-width: 500px;
          max-height: 350px;
      }
      
      .announcement-details {
          padding-left: 20px;
          text-align: left;
      }
      
      .news-carousel-track {
          justify-content: center;
          overflow-x: hidden;
      }
      
      .news-controls {
          display: block;
      }
      
      .form-container {
        display: flex;             /* Ensure flexbox layout is applied */
        flex-wrap: wrap;           /* Allow items to wrap to next line */
        gap: 20px;                 /* Space between items */
        justify-content: center;  /* Center the items horizontally */
        padding: 20px;             /* Add internal padding */
    }

    .form-container > * {
        flex: 1 1 45%;             /* Each child takes ~45% width */
        max-width: 100%;           /* Prevent overflow */
        min-width: 250px;          /* Prevent too-small items */
    }

    /* Fix infrastructure centering on tablets */
    .form-dropdown-infra {
        left: auto !important;
        position: relative !important;
    }
    .form-title{
        font-size:medium;
    }
    .form-title img{
        width: 70px;
        height: auto;
    }
    .form-dropdown-content{
        font-size:medium;
    }
    .description{
        font-size:medium;
    }

      .footer-content {
          flex-direction: row;
      }
      
      .footer-left {
          align-items: flex-start;
      }
      
      .footer-right {
          align-items: flex-end;
          text-align: right;
          margin-top: 0;
      }
  }

  @media (min-width: 992px) {
      .logo img {
          width: 100px;
      }
      
      .title h1 {
          font-size: 24px;
      }
      
      .title p {
          font-size: 16px;
      }
      
      nav ul {
          gap: 40px;
      }
      
      nav ul li a {
          font-size: 20px;
      }
      
      .carousel {
          height: 70vh;
      }
      
      .announcement-carousel {
          height: 450px;
      }
      
      .announcement-image img {
          max-width: 600px;
          max-height: 400px;
      }
      
      .form-container {
          grid-template-columns: 1fr 1fr 1fr;
          flex-direction:wrap;
      }

      /* Fix infrastructure centering on large screens */
      .form-dropdown-infra {
          left: auto !important;
          position: relative !important;
      }
  }

  @media (min-width: 1200px) {
      .carousel {
          height: 80vh;
      }
      
      .form-container {
          grid-template-columns: 1fr 1fr;
          flex-direction:wrap;
      }

      /* Fix infrastructure centering on extra large screens */
      .form-dropdown-infra {
          left: auto !important;
          position: relative !important;
      }
  }
  @media (max-width: 768px) {
    .announcement-carousel {
      padding: 15px;
      height: auto;
    }
  
    .announcement-item {
      flex-direction: column;
    }
  
    .announcement-image img {
      width: 100%;
      height: auto;
      max-height: 200px;
    }
  
    .announcement-details {
      padding-left: 0;
      margin-top: 15px;
      text-align: center;
    }
  
    .announcement-details h3 {
      font-size: 20px;
    }
  
    .announcement-details p,
    .announcement-info {
      font-size: 14px;
    }
  
.announcement-controls {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }

  .announcement-controls.left { left: 10px !important; right: auto !important; }
  .announcement-controls.right { right: 10px !important; left: auto !important; }
  }

@media (max-width: 900px) {
  .navbar {
    flex-direction: row;
    padding: 10px 15px;
  }
  .logo img {
    width: 90px !important;
  }
  .title h1 {
    font-size: 22px;
  }
  .title p {
    font-size: 14px;
  }
  .nav-links {
    margin-left: 0;
  }
  .nav-links ul {
    gap: 20px !important;
  }
    .news-cards-track {
        width: 98vw;
        max-width: 98vw;
      }
      .news-card-item {
        width: 320px;
        height: 450px;
      }
      .news-arrow {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
  }
    .news-arrow.left {
    left: 10px;
    right: auto;
  }
  .news-arrow.right {
    right: 10px;
    left: auto;
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: row;
    align-items: flex-start;
    padding: 0 10px;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: linear-gradient(135deg, #006400 0%, #00b86b 100%) !important;
    z-index: 1000;
    height: auto;
    padding-top: 12px !important;
  }
  .top-sections {
    background: none !important;
  }
  .logo-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
  }
  .logo img {
    width: 100px !important;
    margin: 0 !important;
  }
  .title {
    margin-left: 10px !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 !important;
  }
  .hamburger {
    display: block !important;
    position: absolute;
    right: 20px;
    top: 25px;
    z-index: 2000;
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: white !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 4px !important;
    transition: background-color 0.2s !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  .hamburger i {
    font-size: 1.5rem !important;
    color: white !important;
  }
  .nav-links {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100vw;
    background: #004d00 !important;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    z-index: 999;
    margin-left: 0;
    padding: 0 0 20px 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links ul {
    flex-direction: column;
    gap: 0 !important;
    width: 100%;
    padding: 0;
  }
  .nav-links ul li {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0 12px 24px;
  }
  .nav-links ul li a {
    font-size: 1.2rem;
    width: 100%;
    display: block;
    background: none !important;
    color: white !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: bold;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  .nav-links ul li.dropdown > a {
    cursor: pointer;
    font-weight: bold;
    background: none !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    text-align: left;
  }
  .dropdown-menu {
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    padding-left: 24px !important;
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block !important;
  }
  .dropdown-menu a {
    color: #e0e0e0 !important;
    font-size: 1rem !important;
    padding: 8px 0 !important;
    background: none !important;
    text-align: left !important;
    border: none !important;
    box-shadow: none !important;
  }
  .sign-up .btn {
    background: none !important;
    color: white !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    width: 100%;
    text-align: left;
    padding: 12px 0 12px 24px !important;
    margin: 0 !important;
    display: block;
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
    height: auto;
  }
  .certificates-header{
    font-size: larger;
  }
  .latest-news{
    font-size: x-large;
  }
}

@media (max-width: 500px) {
  .logo img {
    width: 50px !important;
  }
  .title h1 {
    font-size: 12px;
  }
  .title p {
    font-size: 8px;
  }
}
@media (max-width: 700px) {
  .logo-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
  }
  .logo img {
    width: 100px !important;
    margin: 0 !important;
  }
  .title {
    margin-left: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 0 !important;
  }
  .dropdown-menu {
    display: none;
    position: static !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    padding-left: 24px !important;
  }
  .dropdown.open .dropdown-menu {
    display: block !important;
  }
  .dropdown-menu a {
    color: #e0e0e0 !important;
    font-size: 1rem !important;
    padding: 8px 0 !important;
    background: none !important;
    text-align: left !important;
    border: none !important;
    box-shadow: none !important;
  }
  .nav-links ul li.dropdown > a {
    cursor: pointer;
    font-weight: bold;
    background: none !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    text-align: left;
  }
    .news-cards-track {
        width: 100vw;
        max-width: 100vw;
        gap: 10px;
      }
      .news-card-item {
        width: 70vw ;
        min-width: 160px;
        height: 400px !important;
        padding: 10px 5px 20px 5px;
      }
      .news-card-item img {
        height: 200px !important;
        width: 300px !important;
      }
      .view-btn {
        font-size: 0.9rem;
        padding: 8px 0;
        margin-top: 15px;
      }
        .news-arrow {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 18px;
    z-index: 20;
  }
  .news-arrow.left {
    left: 10px;
    right: auto;
  }
  .news-arrow.right {
    right: 10px;
    left: auto;
  }
      .news-section h2 {
      font-size: larger;
      }
        .logo img {
    width: 100px !important;
  }
    /* ANNOUNCEMENT SECTION MOBILE FIX */
  .announcement-carousel {
    width: 98vw;
    margin: 10px auto;
    padding: 0;
    height: auto;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    position: relative;
  }

  /* NEWS SECTION MOBILE FIX */
  .news-section {
    padding: 20px 10px;
  }

  .news-section h2 {
    font-size: 1.5rem !important;
    text-align: center;
    margin-bottom: 20px;
  }

  .news-cards-track {
    gap: 15px;
  }

  .news-card-item {
    margin: 0 5px;
  }
  .announcement-container {
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1px solid #ccc;
    padding: 10px;
    position: relative;
  }
  .announcement-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    width: 36px;
    height: 36px;
    font-size: 18px;
    z-index: 20;
    background: #004225;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
  }
  .announcement-controls.left {
    left: -18px;
    right: auto;
  }
  .announcement-controls.right {
    right: -18px;
    left: auto;
  }
  .announcement-item {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    display: flex;
    gap: 10px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .announcement-image {
    flex: 0 0 40vw;
    max-width: 40vw;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
  }
  .announcement-image img {
    width: 100%;
    max-width: 100%;
    height: 100px;
    min-height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: none;
    margin: 0;
    padding: 0;
    display: block;
  }
  .announcement-details {
    flex: 1 1 0;
    padding-left: 0;
    margin-top: 0;
    text-align: left;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
  .announcement-details h3 {
    font-size: 1.1rem !important;
    margin-bottom: 4px !important;
    color: #004d00 !important;
    font-weight: bold !important;
  }
  .announcement-details p,
  .announcement-info {
    font-size: 0.9rem !important;
    color: #333 !important;
  }
  .announcement-info li {
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
    color: #555 !important;
  }
  .announcement-controls {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }

  .announcement-controls.left { left: 10px !important; right: auto !important; }
  .announcement-controls.right { right: 10px !important; left: auto !important; }
}



@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    display: block !important;
    opacity: 1;
    max-height: 500px;
  }
}
@media (max-width: 700px) {
  .footer-content {
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0 !important;
  }
  .footer {
    font-size: 15px !important;
  }
  .footer-left p, .footer-right p, .footer-right .contact-heading {
    font-size: 13px !important;
  }
  .footer-left .logo-container img, .footer-right .contact-icon {
    width: 32px !important;
    height: 32px !important;
  }
  .copyright {
    font-size: 11px !important;
  }
}
@media (max-width: 500px) {
  .footer-content {
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 0 !important;
  }
  .footer {
    font-size: 12px !important;
  }
  .footer-left p, .footer-right p, .footer-right .contact-heading {
    font-size: 10px !important;
  }
  .footer-left .logo-container img, .footer-right .contact-icon {
    width: 20px !important;
    height: 20px !important;
  }
  .copyright {
    font-size: 9px !important;
  }
}
