.header-grid {
  display: grid;
  width: 100%;
  align-items: center;
}
  /* Horizontal line from your existing <hr> */
  .main-head hr,
  .main-head hr.horizontal-line,
  .horizontal-line {
    background: white;
  }

@media (min-width: 769px) {
  .header-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo buttons"
      "logo affiliation";
    column-gap: 20px;
    row-gap: 6px;
  }

  .header-logo {
    grid-area: logo;
    text-align: left;
  }

  .header-logo img {
    max-height: 75px;
    width: auto;
  }

  .header-hamburger {
    display: none !important;
  }

  .header-buttons {
    grid-area: buttons;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }

  .header-affiliation {
    grid-area: affiliation;
    display: flex;
    justify-content: flex-end;
  }
}

@media (min-width: 576px) and (max-width: 768px) {
  .header-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo hamburger"
      "buttons buttons"
      "affiliation affiliation";
    row-gap: 10px;
  }

  .header-logo {
    grid-area: logo;
    text-align: left;
  }

  .header-logo img {
    max-height: 60px;
    width: auto;
  }

  .header-hamburger {
    grid-area: hamburger;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
  }

  .header-buttons {
    grid-area: buttons;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }

  .header-affiliation {
    grid-area: affiliation;
    width: 100%;
  }
}

/* MOBILE (Below 576px) */
@media (max-width: 575.98px) {
  .header-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo logo"
      "buttons hamburger"
      "affiliation affiliation";
    row-gap: 8px;
  }

  .header-logo {
    grid-area: logo;
    text-align: center;
    padding-bottom: 2px;
  }

  .header-logo img {
    max-width: 100%;
    height: auto;
    max-height: 48px;
  }

  .header-buttons {
    grid-area: buttons;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .header-hamburger {
    grid-area: hamburger;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
  }

  .header-hamburger .header-toggler-btn {
    padding: 4px 8px !important;
  }

  .header-affiliation {
    grid-area: affiliation;
    width: 100%;
  }
}

.header-toggler-btn {
  color: rgba(255, 255, 255, .55) !important;
  border-color: rgba(255, 255, 255, .1) !important;
}

/* Desktop */
@media (min-width: 769px) {



  .school-title {
    font-size: 2.2rem;
  }

  .main-head .navbar-toggler {
    display: none !important;
  }

  .main-nav .navbar-toggler {
    display: none !important;
  }

  .mobile-menu-close {
    display: none !important;
  }

  .heading-subheading {
    text-align: center;

  }

  .heading-subheading p {
    font-size: 15px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .heading-subheading {
    text-align: center;
  }

  .header-toggler-btn {
    color: rgba(255, 255, 255, .55) !important;
    border-color: rgba(255, 255, 255, .1) !important;

  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .main-nav {
    border-bottom: none !important;
  }

  .main-head .navbar-toggler {
    display: block !important;
  }

  .school-title {
    font-size: 1.2rem;
  }

  .heading-subheading p {
    font-size: 0.4rem;
  }

  .main-head {
    padding-bottom: 14px !important;
  }

  .header-affiliation {
    margin-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .main-head .affiliation {
    /* padding-top: 10px !important; */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    overflow: hidden !important;
    gap: 7px;
    padding-bottom: 2px !important;
  }

  .main-head .affiliation p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
  }

  .main-head .affiliation p i {
    margin-right: 5px !important;
    font-size: 12px !important;
  }

  .main-head .affiliation .coordinate-link {
    display: inline-flex !important;
    align-items: center !important;

    /* vertical separator */
    border-left: 1px solid #ffffff !important;

    /* space between | and icon */
    padding-left: 5px !important;

    margin: 0 !important;

    font-size: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .main-head .affiliation .coordinate-link i {
    font-size: 12px !important;
    margin-left: 0 !important;
    margin-right: 4px !important;
  }


  .mobile-menu-close {
    display: block !important;
    position: absolute !important;

    top: 20px !important;
    right: 20px !important;

    width: 40px !important;
    height: 40px !important;

    border: none !important;
    background: transparent !important;

    font-size: 32px !important;
    line-height: 1 !important;

    color: #333 !important;

    cursor: pointer !important;

    z-index: 100000 !important;
  }

  .mobile-menu-close:hover {
    color: #000 !important;
  }


  /* ==============================
       RIGHT SIDE MOBILE MENU
       ============================== */

  #navbarNavDropdown {
    position: fixed !important;

    top: 0 !important;
    right: 0 !important;
    left: auto !important;

    width: 300px !important;
    max-width: 85vw !important;
    height: 100vh !important;

    background: #ffffff !important;

    z-index: 99999 !important;

    padding: 25px 25px 25px 25px !important;

    overflow-y: auto !important;

    display: block !important;

    transform: translateX(100%) !important;

    transition: transform 0.3s ease-in-out !important;
  }


  /* MENU OPEN */
  #navbarNavDropdown.show {
    transform: translateX(0) !important;
  }


  /* MENU ITEMS */
  #navbarNavDropdown .navbar-nav {
    display: flex !important;

    flex-direction: column !important;

    width: 100% !important;

    gap: 0 !important;
  }


  #navbarNavDropdown .nav-item {
    width: 100% !important;
  }


  #navbarNavDropdown .nav-link {
    width: 100% !important;

    padding: 12px 5px !important;

    color: #333 !important;

    font-size: 16px !important;
  }


  /* DROPDOWN */
  #navbarNavDropdown .dropdown-menu {
    position: static !important;

    width: 100% !important;

    border: 0 !important;

    box-shadow: none !important;
  }

}

/* Arbaaz css end here  */