/* =====================================================
   Reference-style header / navigation
   Keeps the existing WordPress menu markup and adds the
   two-level navigation structure from the supplied design.
===================================================== */

.vs-header.header-layout1.style2 {
  --reference-maroon: #b87579;
  --reference-cream: #fffaf3;
  --reference-yellow: #ffe49a;
  --reference-ink: #1d1a18;
  background: var(--reference-cream);
}

.vs-header.header-layout1.style2 .header-utility-nav {
  display: flex !important;
  background: var(--reference-maroon);
  min-height: 60px;
  padding: 20px 0;
}

.vs-header.header-layout1.style2 .header-utility-nav > .container,
.vs-header.header-layout1.style2 .header-bottom .container,
.vs-header.header-layout1.style2 .header-news-ticker > .container {
  width: min(calc(100% - 56px), 1540px);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.vs-header.header-layout1.style2 .header-utility-nav > .container {
  display: flex;
  justify-content: center;
}

.vs-header.header-layout1.style2 .utility-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 12px 22px;
  margin: 0 auto;
  padding: 0;
}

.vs-header.header-layout1.style2 .utility-menu li {
  margin: 0;
  line-height: 1;
}

.vs-header.header-layout1.style2 .utility-menu a {
  display: inline-block;
  padding: 7px 8px 5px;
  background: #fffdfb;
  color: var(--reference-ink);
  font-family: var(--title-font);
  font-size: clamp(16px, 1.5vw, 28px);
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.vs-header.header-layout1.style2 .utility-menu a::before {
  display: none;
}

.vs-header.header-layout1.style2 .utility-menu a:hover,
.vs-header.header-layout1.style2 .utility-menu .current-menu-item > a {
  background: var(--reference-yellow);
  color: var(--reference-ink);
  transform: translateY(-1px);
}

.vs-header.header-layout1.style2 .header-middle {
  background: var(--reference-cream);
  border-top: 12px solid var(--reference-yellow);
  border-bottom: 12px solid var(--reference-yellow);
  /* padding: 10px 0; */
}

.vs-header.header-layout1.style2 .header-middle > .container {
  max-width: 1480px;
}

.vs-header.header-layout1.style2 .header-middle .row {
  flex-wrap: nowrap;
  gap: 28px;
}

.vs-header.header-layout1.style2 .header-middle .header-logo img {
  width: 255px;
  height: auto !important;
  max-height: 74px;
  object-fit: contain;
}

.vs-header.header-layout1.style2 .header-middle .col-auto:nth-child(2) {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.vs-header.header-layout1.style2 .header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 64px);
  width: 100%;
}

.vs-header.header-layout1.style2 .header-search {
  width: min(100%, 700px);
  height: 58px;
  max-height: none;
  margin-right: 0;
  padding: 12px 82px 12px 30px;
  border: 1px solid #ca9c9d;
  border-radius: 30px;
  background: #f8ece7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.vs-header.header-layout1.style2 .header-search > div {
  width: 100%;
  min-width: 0;
}

.vs-header.header-layout1.style2 .header-search .dropdown {
  flex: 0 0 auto;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid #ca9c9d;
}

.vs-header.header-layout1.style2 .header-search .dropdown .dropdown-toggle {
  color: #4c4846;
  font-size: 15px;
  white-space: nowrap;
}

.vs-header.header-layout1.style2 .header-search input {
  height: 32px;
  color: var(--reference-ink);
  background: transparent;
}

.vs-header.header-layout1.style2 .header-search input::placeholder {
  color: #817672;
}

.vs-header.header-layout1.style2 .header-search button {
  width: 82px;
  height: 50px;
  background: var(--reference-maroon);
  color: #fff;
}

.vs-header.header-layout1.style2 .header-search button:hover {
  background: #9e5d63;
}

.vs-header.header-layout1.style2 .header-buttons {
  flex: 0 0 auto;
}

.vs-header.header-layout1.style2 .header-info_icon {
  width: 60px;
  height: 60px;
  margin-right: 14px;
  line-height: 60px;
  background: #d86b55;
  color: #fff;
  border: 0;
}

.vs-header.header-layout1.style2 .header-info_label {
  color: #504846;
  font-size: 14px;
}

.vs-header.header-layout1.style2 .header-info_link,
.vs-header.header-layout1.style2 .header-info_link a {
  color: var(--reference-ink);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.vs-header.header-layout1.style2 .header-cart {
  display: none;
}

/* Show the WooCommerce cart control in the desktop header. */
@media (min-width: 992px) {
  .vs-header.header-layout1.style2 .header-cart {
    display: inline-block;
  }
}

.vs-header.header-layout1.style2 .header-bottom {
  background: var(--reference-maroon);
  min-height: 75px;
}

/* Top utility menu dropdowns: keep children hidden until their parent is
   hovered or focused, matching the behavior of the primary Home-row menu. */
.vs-header.header-layout1.style2 .header-utility-nav {
  position: relative;
  z-index: 50;
  overflow: visible;
}

.vs-header.header-layout1.style2 .utility-menu > li {
  position: relative;
}

.vs-header.header-layout1.style2
  .utility-menu
  > li.menu-item-has-children
  > a::after {
  content: "\f107";
  display: inline-block;
  margin-left: 0.45em;
  font-family: var(--icon-font);
  font-size: 0.65em;
  font-weight: 900;
  vertical-align: 0.12em;
}

.vs-header.header-layout1.style2 .utility-menu ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  display: block;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  background: #fffdfb;
  border-bottom: 3px solid var(--reference-maroon);
  box-shadow: 0 10px 30px rgba(34, 59, 90, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.vs-header.header-layout1.style2 .utility-menu li:hover > ul.sub-menu,
.vs-header.header-layout1.style2 .utility-menu li:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vs-header.header-layout1.style2 .utility-menu ul.sub-menu li {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}

.vs-header.header-layout1.style2 .utility-menu ul.sub-menu li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: #fffdfb;
  color: var(--reference-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.vs-header.header-layout1.style2 .utility-menu ul.sub-menu li > a:hover {
  background: var(--reference-yellow);
  color: var(--reference-ink);
}

.vs-header.header-layout1.style2
  .utility-menu
  ul.sub-menu
  li.menu-item-has-children
  > a::after {
  content: "\f105";
  display: inline-block;
  margin-left: 0.75em;
  font-family: var(--icon-font);
  font-size: 0.9em;
  font-weight: 900;
}

.vs-header.header-layout1.style2 .utility-menu ul.sub-menu ul.sub-menu {
  top: -8px;
  left: 100%;
  transform: translateX(8px);
}

.vs-header.header-layout1.style2
  .utility-menu
  ul.sub-menu
  li:hover
  > ul.sub-menu,
.vs-header.header-layout1.style2
  .utility-menu
  ul.sub-menu
  li:focus-within
  > ul.sub-menu {
  transform: translateX(0);
}

.vs-header.header-layout1.style2 .header-bottom .sticky-active,
.vs-header.header-layout1.style2 .header-bottom .menu-top,
.vs-header.header-layout1.style2 .header-bottom .menu-top > .row,
.vs-header.header-layout1.style2 .header-bottom .menu-inner,
.vs-header.header-layout1.style2 .header-bottom .menu-area {
  min-height: 75px;
}

.vs-header.header-layout1.style2 .header-bottom .menu-top > .row {
  justify-content: center;
}

.vs-header.header-layout1.style2 .header-bottom .col-xl-auto:first-child,
.vs-header.header-layout1.style2 .header-bottom .menu-inner,
.vs-header.header-layout1.style2 .header-bottom .menu-area {
  width: 100%;
  margin-left: 0;
  flex: 1 1 100%;
}

.vs-header.header-layout1.style2 .main-menu {
  width: 100%;
  text-align: center;
}

.vs-header.header-layout1.style2 .main-menu > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 75px;
  margin: 0 auto;
}

.vs-header.header-layout1.style2
  .sticky-wrapper.will-sticky
  .sticky-active.active
  .menu-area {
  justify-content: center;
}

.vs-header.header-layout1.style2
  .sticky-wrapper.will-sticky
  .sticky-active.active
  .main-menu
  > ul {
  justify-content: center;
}

.vs-header.header-layout1.style2 .main-menu > ul > li {
  margin: 0;
}

.vs-header.header-layout1.style2 .main-menu > ul > li > a {
  padding: 10px 10px 7px;
  background: #fffdfb;
  color: var(--reference-ink);
  font-family: var(--title-font);
  font-size: clamp(17px, 1.5vw, 30px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.vs-header.header-layout1.style2 .main-menu > ul > li > a::before {
  display: none;
}

/* Make parent menu items visibly different from direct links. */
.vs-header.header-layout1.style2
  .main-menu
  > ul
  > li.menu-item-has-children
  > a::after,
.vs-header.header-layout1.style2 .main-menu > ul > li.has-dropdown > a::after {
  content: "\f107";
  display: inline-block;
  margin-left: 0.45em;
  font-family: var(--icon-font);
  font-size: 0.6em;
  font-weight: 900;
  vertical-align: 0.12em;
  transition: transform 0.25s ease;
}

.vs-header.header-layout1.style2
  .main-menu
  > ul
  > li.menu-item-has-children:hover
  > a::after,
.vs-header.header-layout1.style2
  .main-menu
  > ul
  > li.has-dropdown:hover
  > a::after {
  transform: translateY(2px);
}

/* Show the chevron for nested parents as well, such as
   Admission > Diploma Courses > Performing Arts. */
.vs-header.header-layout1.style2
  .main-menu
  ul.sub-menu
  li.menu-item-has-children
  > a::after,
.vs-header.header-layout1.style2
  .main-menu
  ul.sub-menu
  li.has-dropdown
  > a::after {
  content: "\f105";
  display: inline-block;
  float: right;
  margin-left: 0.75em;
  font-family: var(--icon-font);
  font-size: 0.9em;
  font-weight: 900;
  line-height: inherit;
}

.vs-header.header-layout1.style2 .main-menu > ul > li > a:hover,
.vs-header.header-layout1.style2 .main-menu > ul > li.current-menu-item > a,
.vs-header.header-layout1.style2 .main-menu > ul > li.active > a {
  background: var(--reference-yellow);
  color: var(--reference-ink);
}

.vs-header.header-layout1.style2 .header-news-ticker {
  display: block;
  min-height: 64px;
  padding: 8px 0;
  overflow: hidden;
  background: #fff7d9;
  color: var(--reference-ink);
}

.vs-header.header-layout1.style2 .header-news-ticker__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.vs-header.header-layout1.style2 .header-news-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 9px 14px;
  background: var(--reference-maroon);
  color: #fff;
  font-family: var(--title-font);
  font-size: clamp(16px, 1.35vw, 23px);
  line-height: 1;
  white-space: nowrap;
}

.vs-header.header-layout1.style2 .header-news-ticker__label i {
  color: var(--reference-yellow);
  font-size: 0.85em;
}

.vs-header.header-layout1.style2 .header-news-ticker__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.vs-header.header-layout1.style2 .header-news-ticker__track {
  display: flex;
  width: max-content;
  animation: aksharbritta-notice-marquee 36s linear infinite;
  will-change: transform;
}

.vs-header.header-layout1.style2 .header-news-ticker__group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
}

.vs-header.header-layout1.style2 .header-news-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid rgba(184, 117, 121, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--reference-ink);
  font-family: var(--title-font);
  line-height: 1.25;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.vs-header.header-layout1.style2 .header-news-ticker__item:hover,
.vs-header.header-layout1.style2 .header-news-ticker__viewport:focus-within {
  border-color: var(--reference-maroon);
  background: #fff;
  color: var(--reference-ink);
  transform: translateX(3px);
}

.vs-header.header-layout1.style2
  .header-news-ticker__viewport:hover
  .header-news-ticker__track,
.vs-header.header-layout1.style2 .header-news-ticker__track:focus-within {
  animation-play-state: paused;
}

.vs-header.header-layout1.style2 .header-news-ticker__title {
  overflow: hidden;
  font-size: clamp(16px, 1.35vw, 23px);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-header.header-layout1.style2 .header-news-ticker__item > i {
  color: var(--reference-maroon);
  font-size: 12px;
}

/* Mobile drawer: use the brand mark proportionally and make it readable
   on the coloured drawer header. */
.vs-menu-wrapper .mobile-logo {
  padding: 15px 30px 15px;
  background: var(--theme-color);
}

.vs-menu-wrapper .mobile-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vs-menu-wrapper .mobile-logo img.logo {
  width: 525px !important;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.vs-menu-wrapper .vs-mobile-menu {
  padding: 0 15px;
  margin-top: 18px;
  max-height: calc(100vh - 172px);
}

.vs-menu-wrapper .mobile-menu-section + .mobile-menu-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1dfe3;
}

.vs-menu-wrapper .mobile-menu-section-label {
  padding: 0 40px 6px;
  color: var(--secondary-color);
  font-family: var(--title-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes aksharbritta-notice-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vs-header.header-layout1.style2 .header-news-ticker__track {
    animation: none;
  }
}

@media (max-width: 1199px) {
  .vs-header.header-layout1.style2 .header-middle .row {
    gap: 18px;
  }

  .vs-header.header-layout1.style2 .header-middle .header-logo img {
    width: 215px;
  }

  .vs-header.header-layout1.style2 .header-info {
    display: none;
  }
}

@media (max-width: 991px) {
  .vs-header.header-layout1.style2 .header-utility-nav {
    display: none !important;
  }

  .vs-header.header-layout1.style2 .header-utility-nav > .container,
  .vs-header.header-layout1.style2 .header-bottom .container,
  .vs-header.header-layout1.style2 .header-news-ticker > .container {
    width: min(calc(100% - 28px), 720px);
  }

  .vs-header.header-layout1.style2 .utility-menu {
    gap: 8px 10px;
  }

  .vs-header.header-layout1.style2 .header-middle {
    border-top: 10px solid var(--reference-yellow);
    border-bottom: 10px solid var(--reference-yellow);
    padding-top: 0;
    padding-bottom: 0;
  }

  .vs-header.header-layout1.style2 .header-middle .row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 !important;
    row-gap: 0 !important;
    padding-top: 106px;
  }

  .vs-header.header-layout1.style2 .header-brand-col {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto !important;
    max-width: none;
    flex: 0 0 auto !important;
    height: 116px;
    min-height: 116px;
    margin: 0;
    padding: 12px 12px 0;
    border-top: 10px solid var(--reference-yellow);
    box-sizing: border-box;
    background: var(--reference-maroon);
    box-shadow: 0 2px 8px rgba(55, 36, 29, 0.12);
  }

  .vs-header.header-layout1.style2 .header-brand-col .header-logo img {
    width: 220px;
    max-width: calc(100vw - 142px);
    height: auto !important;
    filter: brightness(0) invert(1);
  }

  .vs-header.header-layout1.style2 .header-mobile-cart {
    margin-right: 12px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: #2f4c5c;
    color: #fff;
    font-size: 19px;
  }

  .vs-header.header-layout1.style2 .header-mobile-cart i {
    color: #fff;
  }

  .vs-header.header-layout1.style2 .header-mobile-cart .badge {
    position: absolute;
    top: -5px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 50%;
    background: #fff;
    color: var(--reference-maroon);
    font-size: 10px;
    line-height: 1;
  }

  .vs-header.header-layout1.style2 .header-mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    border: 1px solid rgba(184, 117, 121, 0.4);
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff !important;
    font-size: 22px;
  }

  .vs-header.header-layout1.style2 .header-mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff;
  }

  .vs-header.header-layout1.style2 .header-middle .col-auto:nth-child(2) {
    flex-basis: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .vs-header.header-layout1.style2 .header-inner {
    flex-wrap: wrap;
  }

  .vs-header.header-layout1.style2 .header-search {
    width: 100%;
  }

  .vs-header.header-layout1.style2 .header-bottom,
  .vs-header.header-layout1.style2 .header-bottom .sticky-active,
  .vs-header.header-layout1.style2 .header-bottom .menu-top,
  .vs-header.header-layout1.style2 .header-bottom .menu-top > .row,
  .vs-header.header-layout1.style2 .header-bottom .menu-inner,
  .vs-header.header-layout1.style2 .header-bottom .menu-area {
    min-height: 64px;
  }

  .vs-header.header-layout1.style2 .header-bottom {
    display: none !important;
  }

  .vs-header.header-layout1.style2 .main-menu {
    display: none !important;
  }

  .vs-header.header-layout1.style2 .vs-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    /* margin: 10px auto; */
    width: 44px;
    height: 44px;
    background: #fffdfb;
    color: var(--reference-maroon);
  }

  .vs-header.header-layout1.style2 .header-news-ticker {
    min-height: auto;
    padding: 12px 0;
  }

  .vs-header.header-layout1.style2 .header-news-ticker__label {
    padding: 11px 12px;
  }

  .vs-header.header-layout1.style2 .header-news-ticker__track {
    animation-duration: 30s;
  }
}

@media (max-width: 575px) {
  .vs-header.header-layout1.style2 .header-middle .header-logo img {
    width: 220px;
    max-width: calc(100vw - 82px);
  }

  .vs-header.header-layout1.style2 .header-search {
    height: 52px;
    padding-left: 18px;
    padding-right: 66px;
  }

  .vs-header.header-layout1.style2 .header-search button {
    width: 58px;
    height: 44px;
  }

  .vs-header.header-layout1.style2 .header-news-ticker__inner {
    font-size: 16px;
  }
}
