@media (max-width: 767px) {
    .top-video-file {
        height: 100vh;
    }

    .main-content-section {
        width: 100%;
        height: 100vh;
        gap: 5vh;
        padding: 25px 0px;


    }

    .category {
        font-size: 8px;
    }

    .menu {
        display: flex;
        width: 15px;
        height: 10px;
    }

    .logo {
        height: auto;
        width: 130px;
        cursor: pointer;
    }


    /* top-sectiion */
    .top-sectiion {
        padding: 0px 20px;
        gap: 10px;

    }

    .institutional-grid-head {
        font-size: 12px;
    }

    .bottom-logo {
        height: 20px;
        width: 130px;
    }

    .category-section {
        gap: 9px;
        display: none;
    }

    .category-section.b {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;

  transition: opacity 1s ease, transform 1s ease, max-height 0.6s ease, visibility 1s ease;
}

.category-section.b.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 300px; /* adjust for your menu height */
  pointer-events: auto;
}


    .category-section.b .category {
        font-size: 12px;
        margin: 0;
    }


    /* third-section */
    .third-section {
        padding: 20px;
        gap: 25px;
    }

    .third-section {
        margin-top: 5vh;
        /* pushes it down */
        margin-bottom: auto;
        /* pushes it up */
    }

    .third-section-top {
        width: 100%;
    }

    .heading {
        font-size: 30px;
        width: 100%;
        line-height: 1.4em;
    }

    .second-head {
        width: auto;
    }

    .third-section-bottom {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .third-section-bottom-left {
        width: 100%;
    }

    .third-section-bottom-right {
        width: 100%;
        gap: 10px;
    }
    .egs-frame{
      display: none;
    }

    .length-arrow {
        height: 10px;
        width: auto;
    }

    .company-overview-text {
        font-size: 10px;
    }

    .company-line {
        width: 40%;
        height: 1px;
        background-color: #ffffff;
    }


    .overview-row {
        gap: 5px;
    }

    /* institutional-section */
    .institutional-section {
        height: auto;
        /* allow natural height */
        padding: 50px 20px;
        /* smaller padding */
    }

    .institutional-section .overlay {
        height: 100%;
        /* will still cover fully */
    }

    .heading.b {
        font-size: 16px;
        width: 100%;
    }

    .institutional-grid {
        width: 80%;
        padding-left: 10px;
    }

    .institutional-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        transform: translateX(10%);
    }

    .text {
        font-size: 10px;
        font-weight: 100;
        line-height: 1.4;
        word-spacing: -0.05rem;
    }

    .text.i {
        font-size: 9px;
        font-weight: 100;
        line-height: 1.4;
        word-spacing: -0.05rem;
    }

    .institutional-section .content {
        padding: 30px 0px;
        gap: 20px;
        width: 80%;
    }

    .body-content-grid {
        gap: 5vh;
        width: auto;
        height: auto;
        padding: 20px 20px;
    }

    .team-text {
        width: 100%;
        font-size: 14px;
        line-height: 1.4em;
    }

    .team-grid-section {
        width: 100%;
    }

    .team-text.b {
        font-size: 13px;
    }

    .text.b {
        width: 100%;
        font-size: 8px;
        word-spacing: -0.05rem;
    }

    .text.c {
        font-size: 8px;
        word-spacing: -0.05rem;
    }

    /* body-content */
    .body-content {
        padding: 8vh 0px;
        height: auto;
    }

    /* image-section */
    .image-section {
        height: 30vh;
    }

    /* bottom-section */
    .bottom-section {
        gap: 6vh;
    }

    .capital-section-top {
        display: flex;
        flex-direction: column;
        gap: 50px;
        padding: 5vh 0px;
        width: 100%;
    }

    .team-text.c {
        font-size: 14px;
        line-height: 1.3em;
        width: 100%;
    }

    .bottom-logo-section {
        padding-top: 8vh;
    }

    .bottom-logo-grid {
        width: 30%;
    }

    .bottom-logo-grid-head {
        font-size: 12px;
        text-align: center;
    }

    .capital-section {
        padding: 0px 20px;
    }

    .body-content-grid.d {
        gap: 40px;
        width: auto;
        padding: 20px;
        box-sizing: border-box;
        /* prevents overflow */
    }


    .team-text.d {
        width: 100%;
        text-align: center;
        font-size: 14px;
        line-height: 1.2em;
    }

    .footer {
        padding: 3vh 0px;
    }

    .footer-section {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    /* Logos */
    .footer-logos {
        width: 100%;
        justify-content: center;
        display: flex;
        gap: 20px;
    }

    .footer-logo {
        height: 40px;
        display: none;
    }

    .footer-logo.b {
        display: inline;
    }

    .footer-logo.small {
        height: 30px;
        padding-top: 0;
        display: inline;
    }

    /* Contact Info */
    .footer-contact {
        flex-direction: column;
        gap: 5px;
        align-items: center;
        width: 100%;
    }

    .address {
        width: 100%;
        font-size: 12px;
        line-height: 1.4em;
        text-align: center;
    }

    .footer-contact div {
        width: 100%;
        text-align: center;
    }

    .footer-contact .email,
    .footer-contact .phone {
        font-size: 12px;
        text-align: center;
    }

    /* Footer Links */
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        font-size: 12px;
    }

    /* Footer Note */
    .footer-note {
        font-size: 11px;
        text-align: center;
        margin-top: 10px;
    }
}

/* ========== Responsive Styles for Tablets (768px – 991.98px) ========== */
@media (min-width: 768px) and (max-width: 991.98px) {

  /* Main layout */
  .main-content-section {
    width: 100%;
    height: auto;
    padding: 10vh 0;
    gap: 15vh;
  }

  /* Top navigation */
  .top-sectiion {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
  }

  .logo {
    height: 50px;
    width: auto;
  }

  .category-section {
    gap: 25px;
  }

  .category {
    font-size: 11px;
  }

  .menu {
    display: none; /* still hide burger at this size */
  }

  /* Hero / third-section */
  .third-section {
    gap: 20px;
    width: 90%;
    margin: 0 auto;
  }

  .heading {
    font-size: 28px;
    width: 80%;
  }

  .second-head {
    font-size: 16px;
    width: 75%;
  }

  .third-section-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .third-section-bottom-left {
    width: 100%;
  }

  .third-section-bottom-right {
    width: 100%;
    align-items: flex-start;
  }

  .company-overview-text {
    font-size: 12px;
  }

  .company-line {
    width: 40%;
  }

  /* Institutional section */
  .institutional-section {
    height: 70vh;
    padding: 10vh 30px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .institutional-section .content {
    width: 100%;
    gap: 25px;
  }

  .institutional-head-section {
    text-align: left;
  }

  .institutional-grid {
    width: 80%;
    padding-left: 20px;
    gap: 10px;
  }

  .institutional-grid-head {
    font-size: 13px;
  }

  .text.i {
    font-size: 12px;
  }

  /* Body content section */
  .body-content {
    height: auto;
    padding: 10vh 0;
  }

  .team-text {
    font-size: 24px;
    width: 80%;
  }

  .team-text.c {
    font-size: 16px;
    width: 80%;
  }

  .arrow-section {
    align-items: flex-end;
  }

  .bottom-logo {
    width: 140px;
  }

  /* Image section */
  .image-section {
    height: 70vh;
  }

  /* Bottom section */
  .bottom-section {
    gap: 10vh;
  }

  .body-content-grid {
    width: 90%;
    gap: 10vh;
    height: auto;
  }

  .body-content-grid.d {
    width: 90%;
    gap: 40px;
  }

  .main-img {
    height: auto;
  }
  .capital-section-top{
    padding: 0;
  }

  /* Footer */
  .footer {
    width: 95%;
    padding: 10vh 10px;
    padding-top: 0;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .footer-logos {
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
  }

  .footer-logo {
    height: 50px;
  }

  .footer-logo.small {
    height: 35px;
  }

  .footer-contact {
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
  }
  .footer-contact div {
    width: 25%;
    text-align: left;
  }

  .address {
    width: 100%;
    font-size: 9px;
  }

  .email, .phone {
    text-align: left;
    font-size: 11px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px;
    font-size: 10px;
  }

  .footer-link-section {
    width: 100%;
  }

  .footer-note {
    font-size: 10px;
    margin-top: 0px;
  }
  /* top-video-file */
.top-video-file {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  z-index: 1;
}
}


@media (min-width: 992px) and (max-width: 1200px) {
  /* Hero / third-section */
  .third-section {
    width: 80%;
    margin: 0 auto;
  }
/* Main layout */
  .main-content-section {
    width: 100%;
  }
   .top-sectiion {
    width: 80%;
    margin: 0 auto;
  }
  .footer-section {
        width: 100%;
    }
    .footer-top {
        gap: 15px;
    }
}

@media (min-width: 1201px) and (max-width: 1400px) {}