/* =========================================================
   IITDM Vizag - site header (top bar + main bar)
   Used by Site3.Master and index.aspx
   ========================================================= */
#siteHeader.ih-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: auto !important;
  padding: 0 !important;
  z-index: 9999;
  background: #4B1D69 !important;
  box-shadow: 0 6px 22px rgba(30, 6, 46, .28) !important;
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}
#siteHeader.ih-header * { box-sizing: border-box; }
.ih-wrap { width: min(1320px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; }

/* ---------- top bar ---------- */
.ih-top {
  background: #2E0F43;
  border-bottom: 1px solid rgba(255,255,255,.08);
  max-height: 40px;
  overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease;
}
.ih-top .ih-wrap { height: 40px; justify-content: space-between; gap: 16px; }
.ih-top-left, .ih-top-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ih-label { color: #FDBC01; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
#siteHeader .ih-top a { color: #f1e8f8; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s ease; }
#siteHeader .ih-top a:hover { color: #FDBC01; }
#siteHeader .ih-top a i { margin-right: 6px; color: #c9b3dd; }
.ih-sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); flex: 0 0 auto; }
.ih-follow { color: #a993bd; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ih-social { display: flex; align-items: center; gap: 4px; }
#siteHeader .ih-social a { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; }
#siteHeader .ih-social a i { margin: 0; color: inherit; }
#siteHeader .ih-social a:hover { background: rgba(253,188,1,.15); }
#siteHeader .ih-search-link { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
#siteHeader .ih-search-link i { margin: 0; }
#siteHeader .ih-apply {
  display: inline-flex; align-items: center; gap: 7px;
  background: #FDBC01; color: #1B1025 !important;
  font-size: 12.5px; font-weight: 800;
  padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(253,188,1,.25);
}
#siteHeader .ih-apply i { color: #1B1025 !important; margin: 0; }
#siteHeader .ih-apply:hover { background: #ffcd33; color: #1B1025 !important; transform: translateY(-1px); }

/* search box in top bar (home page) */
#siteHeader .ih-top .topbar-search { height: 28px; padding: 2px 3px 2px 12px; background: rgba(255,255,255,.1); border-radius: 999px; display: flex; align-items: center; position: relative; }
#siteHeader .ih-top .topbar-search input { width: 170px; background: transparent; border: 0; outline: 0; color: #fff; font-size: 12px; }
#siteHeader .ih-top .topbar-search input::placeholder { color: rgba(255,255,255,.7); }
#siteHeader .ih-top .topbar-search .search-btn { width: 22px; height: 22px; border-radius: 50%; border: 0; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
#siteHeader .ih-top .topbar-search .search-btn i { font-size: 11px; color: #4B1D69; margin: 0; }
#siteHeader .ih-top .search-suggestions { position: absolute; top: 34px; right: 0; z-index: 10001; }
.ih-top:has(.search-suggestions:not(:empty)) { overflow: visible; }

/* ---------- main bar ---------- */
.ih-main .ih-wrap { height: 76px; gap: 22px; transition: height .3s ease; }
.ih-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.ih-logo img { height: 62px; width: auto; display: block; transition: height .3s ease; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)) brightness(1.12) saturate(1.1); }
.ih-badges { display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); flex: 0 0 auto; }
.ih-badges a { display: inline-flex; opacity: .95; transition: opacity .2s ease, transform .2s ease; }
.ih-badges a:hover { opacity: 1; transform: translateY(-1px); }
.ih-badges img { height: 34px; width: auto; display: block; }
.ih-badges a:last-child img { height: 28px; }

.ih-nav { margin-left: auto; }
.ih-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.ih-menu > li { position: relative; }
#siteHeader .ih-menu > li > a {
  display: flex; align-items: center; gap: 6px;
  height: 76px; padding: 0 11px;
  color: #fff; font-size: 14.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  position: relative; transition: color .2s ease, height .3s ease;
}
#siteHeader .ih-menu > li > a::before {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 18px;
  height: 2px; background: #FDBC01; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
#siteHeader .ih-menu > li:hover > a,
#siteHeader .ih-menu > li:focus-within > a,
#siteHeader .ih-menu > li > a.ih-active { color: #FDBC01; }
#siteHeader .ih-menu > li:hover > a::before,
#siteHeader .ih-menu > li > a.ih-active::before { transform: scaleX(1); }
.ih-has-sub > a::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s ease; opacity: .85;
}
.ih-has-sub:hover > a::after { transform: rotate(225deg); margin-top: 3px; }

.ih-sub {
  position: absolute; top: calc(100% - 10px); left: 0;
  min-width: 260px; padding: 10px;
  background: #fff; border-radius: 12px;
  border-top: 3px solid #FDBC01;
  box-shadow: 0 22px 50px rgba(30, 6, 46, .25);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 10000;
}
.ih-has-sub:hover > .ih-sub, .ih-has-sub:focus-within > .ih-sub { opacity: 1; visibility: visible; transform: translateY(0); }
#siteHeader .ih-sub a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: #2d2335; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.35;
  transition: background .2s ease, color .2s ease, padding .2s ease;
}
#siteHeader .ih-sub a:hover { background: #F3ECFA; color: #4B1D69; padding-left: 18px; }
.ih-menu > li:nth-last-child(-n+4) .ih-sub { left: auto; right: 0; }
.ih-sub-wide { min-width: 360px; }

/* mobile controls */
.ih-mobile { display: none; align-items: center; gap: 10px; margin-left: auto; }
#siteHeader .ih-mobile .ih-apply { padding: 7px 14px; }
#siteHeader .ih-burger {
  position: static !important; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; cursor: pointer;
}
#siteHeader .ih-burger .hamburger { font-size: 20px; line-height: 1; color: #fff; }
#siteHeader .ih-burger .menu-text { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #fff; }

/* ---------- scrolled state ---------- */
#siteHeader.ih-header.ih-scrolled .ih-top { max-height: 0; opacity: 0; border-bottom: 0; }
#siteHeader.ih-header.ih-scrolled .ih-main .ih-wrap { height: 64px; }
#siteHeader.ih-header.ih-scrolled .ih-logo img { height: 52px; }
#siteHeader.ih-header.ih-scrolled .ih-menu > li > a { height: 64px; }
#siteHeader.ih-header.ih-scrolled .ih-menu > li > a::before { bottom: 14px; }

/* page offset for pages using Site3.Master */
body.ih-pad { padding-top: 116px !important; }

/* drawer contact block (mobile) */
.ih-drawer-contact { margin: 6px 16px 14px; padding: 12px 14px; border-radius: 12px; background: #F3ECFA; display: grid; gap: 8px; }
.ih-drawer-contact a { color: #4B1D69 !important; font-weight: 700; font-size: 14px; text-decoration: none; }
.ih-drawer-contact a i { width: 18px; color: #4B1D69; }
.ih-drawer-contact .ih-apply-block { display: block; text-align: center; background: #FDBC01; color: #1B1025 !important; border-radius: 8px; padding: 10px; }
.ih-drawer-social { display: flex; gap: 8px; }
.ih-drawer-social a { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: inline-flex !important; align-items: center; justify-content: center; }
.ih-drawer-social a i { width: auto !important; }

/* ---------- responsive ---------- */
@media (max-width: 1440px) {
  #siteHeader .ih-menu > li > a { padding: 0 8px; font-size: 13.5px; gap: 5px; }
  .ih-main .ih-wrap { gap: 16px; }
  #siteHeader .ih-menu > li > a::before { left: 8px; right: 8px; }
  .ih-badges { gap: 8px; padding-left: 14px; }
  .ih-badges img { height: 30px; }
  .ih-badges a:last-child img { height: 24px; }
}
@media (max-width: 1320px) {
  .ih-badges { display: none; }
}
@media (max-width: 1100px) {
  .ih-nav { display: none; }
  .ih-mobile { display: flex; }
  .ih-badges { display: flex; margin-right: auto; }
  .ih-main .ih-wrap { height: 68px; }
  .ih-logo img { height: 52px; }
  .ih-follow, .ih-top .ih-social, .ih-top-right .ih-sep, .ih-top .ih-apply { display: none !important; }
  body.ih-pad { padding-top: 108px !important; }
}
@media (max-width: 767px) {
  .ih-top { display: none; }
  .ih-wrap { width: calc(100% - 24px); }
  .ih-main .ih-wrap { height: 64px; gap: 10px; }
  .ih-logo img { height: 48px; }
  .ih-badges { display: none; }
  body.ih-pad { padding-top: 72px !important; }
}
@media (max-width: 400px) {
  #siteHeader .ih-mobile .ih-apply { padding: 6px 10px; font-size: 11.5px; }
  #siteHeader .ih-burger { padding: 0 10px; }
  #siteHeader .ih-burger .menu-text { display: none; }
}
@media (max-width: 340px) {
  #siteHeader .ih-mobile .ih-apply { display: none; }
}
#siteHeader a, #siteHeader a:hover, .ih-drawer-contact a { text-decoration: none !important; }
