/* =========================================================
   index.aspx - hero
   Left: solid purple text panel. Right: campus video (full frame, not covered).
   Bottom: stats strip.
   ========================================================= */
.hx-hero {
  --hx-top: 116px;      /* fixed site header height */
  --hx-bottom: 88px;    /* stats strip height */
  --hx-left: 42%;       /* text panel width */
  background: #2E0F43;
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
}
.hx-hero .hero-overlay { display: none !important; }

/* video only on the right side, between header and stats strip */
.hx-hero .hero-video {
  position: absolute !important;
  top: var(--hx-top) !important;
  left: var(--hx-left) !important;
  right: 0 !important; bottom: auto !important;
  width: calc(100% - var(--hx-left)) !important;
  height: calc(100% - var(--hx-top) - var(--hx-bottom)) !important;
  object-fit: cover !important; object-position: center center !important;
  z-index: 1 !important;
}

/* text panel */
.hx-panel {
  position: absolute; z-index: 3;
  left: 0; top: 0; bottom: var(--hx-bottom);
  width: var(--hx-left);
  padding: calc(var(--hx-top) + 28px) clamp(28px, 3.4vw, 64px) 32px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background: #2E0F43;
  border-right: 4px solid #FDBC01;
  color: #fff;
  overflow: hidden;
}
/* subtle pattern so the panel is not flat */
.hx-panel::before {
  content: ""; position: absolute; right: -60px; top: 40%;
  width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(253, 188, 1, .06); pointer-events: none;
}
.hx-eyebrow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(253, 188, 1, .12); border: 1px solid rgba(253, 188, 1, .5);
  color: #FDBC01; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
/* headline: fixed space for 3 lines so typing never pushes into the text below */
.hx-title {
  margin: 0; color: #fff;
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: clamp(26px, 2.35vw, 42px); font-weight: 800; line-height: 1.18;
  text-align: left !important;
  height: 3.54em; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; letter-spacing: -.3px;
}
.hx-title span { display: block; min-height: 1.18em; }
.hx-title em { font-style: italic; color: #FDBC01; font-weight: 700; }
.hx-sub { margin: 0; font-size: clamp(14px, 1.05vw, 17px); font-weight: 600; color: #eadcf6; }
.hx-sub span { color: #FDBC01; margin: 0 6px; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 800; text-decoration: none !important; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hx-btn:hover { transform: translateY(-2px); }
.hx-gold { background: #FDBC01; color: #1B1025 !important; box-shadow: 0 12px 26px rgba(253, 188, 1, .28); }
.hx-gold:hover { background: #ffcd33; }
.hx-line { border: 2px solid rgba(255,255,255,.65); color: #fff !important; }
.hx-line:hover { background: rgba(255,255,255,.1); }
.hx-chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: #eadcf6;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px;
}
.hx-chip i { color: #FDBC01; }
.hx-chip b { color: #fff; }

/* stats strip */
.hx-stats {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: var(--hx-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 96px;
  background: #4B1D69; border-top: 3px solid #FDBC01;
}
.hx-stats > div { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid rgba(255,255,255,.12); }
.hx-stats > div:last-child { border-right: 0; }
.hx-stats b { color: #FDBC01; font-size: 24px; font-weight: 900; line-height: 1.1; }
.hx-stats span { color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* calmer floating buttons */
#whatsappWidget .wa-status { opacity: 0 !important; visibility: hidden; transition: opacity .25s ease; }
#whatsappWidget:hover .wa-status { opacity: 1 !important; visibility: visible; }
#chatStatus { transition: opacity .4s ease; }
#chatStatus.hx-hide { opacity: 0 !important; pointer-events: none; }
#chatWidget:hover #chatStatus.hx-hide { opacity: 1 !important; }
.enquire-floating { transition: opacity .3s ease, visibility .3s ease; }
body.hx-hero-visible .enquire-floating { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- laptops ---------- */
@media (max-width: 1280px) {
  .hx-hero { --hx-left: 46%; }
  .hx-stats { padding: 0 80px; }
  .hx-stats b { font-size: 21px; }
}
/* ---------- tablets (header 108px) ---------- */
@media (max-width: 1100px) {
  .hx-hero { --hx-top: 108px; --hx-left: 50%; }
  .hx-eyebrow { font-size: 11px; white-space: normal; }
  .hx-btn { padding: 12px 18px; font-size: 14px; }
}
/* ---------- phones: stacked (video, text, stats) ---------- */
@media (max-width: 900px) {
  .hx-hero { height: auto !important; min-height: 0 !important; padding-top: 64px; --hx-top: 64px; }
  @supports (height: 1px) { .hx-hero { padding-top: var(--hx-top); } }
  .hx-hero .hero-video {
    position: relative !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 46vw !important; min-height: 220px; display: block;
  }
  .hx-panel {
    position: relative; width: 100%; top: auto; bottom: auto;
    padding: 26px 22px 28px; border-right: 0; border-top: 4px solid #FDBC01; gap: 14px;
  }
  .hx-panel::before { display: none; }
  .hx-title { font-size: 26px; height: 3.54em; }
  .hx-sub { font-size: 14px; }
  .hx-stats { position: relative; height: auto; padding: 0; grid-template-columns: repeat(3, 1fr); }
  .hx-stats > div { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hx-stats b { font-size: 18px; }
  .hx-stats span { font-size: 10px; letter-spacing: .08em; }
}
@media (max-width: 1100px) and (min-width: 768px) {
  .hx-hero { --hx-top: 108px; }
}
@media (max-width: 480px) {
  .hx-title { font-size: 23px; }
  .hx-actions .hx-btn { flex: 1 1 auto; }
  .hx-chip { font-size: 12.5px; }
  .hx-eyebrow { font-size: 10px; letter-spacing: .06em; padding: 6px 12px; }
}

/* "IITDM Vizag Business School" card below the hero: grow with its text (was fixed height and clipped) */
.smart-hero { height: auto !important; min-height: 0 !important; padding: 44px 40px 46px !important; }
.smart-hero-content { max-width: 980px; padding: 0 !important; }
.smart-title { margin-bottom: 10px !important; line-height: 1.15; }
.smart-subtitle { margin-bottom: 14px !important; line-height: 1.35; }
.smart-desc { line-height: 1.7 !important; max-width: 900px; margin: 0 auto 24px !important; }
.smart-btn { margin-top: 0; }
@media (max-width: 480px) {
  .smart-hero { padding: 28px 18px 30px !important; }
  .smart-btn { white-space: normal !important; text-align: center; line-height: 1.35; max-width: 100%; }
}

/* ===== polish (round 2) ===== */
/* 1. zoom the video a little so white borders inside some frames are cut off */
.hx-hero .hero-video { transform: scale(1.16) !important; transform-origin: center center !important; }

/* 2. headline height is set exactly by script (longest message on this screen size) */
.hx-title.hx-measured { height: auto; }

/* 3. wide screens: slightly narrower panel, larger headline */
@media (min-width: 1600px) {
  .hx-hero { --hx-left: 40%; }
  .hx-title { font-size: clamp(36px, 2.5vw, 50px); }
  .hx-sub { font-size: 18px; }
  .hx-btn { padding: 15px 28px; font-size: 16px; }
  .hx-panel { gap: 22px; }
}

/* 4. keep WhatsApp and Mr. Das above the stats strip while the hero is on screen */
@media (min-width: 901px) {
  #whatsappWidget, #chatWidget { transition: transform .35s ease; }
  body.hx-hero-visible #whatsappWidget,
  body.hx-hero-visible #chatWidget { transform: translateY(-92px); }
}

/* programme cards: MP4 videos use the same box as the old GIF images */
.programme-image video { width: 100% !important; height: 250px !important; object-fit: cover !important; display: block !important; background: #2E0F43; }
@media (max-width: 992px) { .programme-image video { height: 210px !important; } }
@media (max-width: 600px) { .programme-image video { height: 190px !important; } }

/* ---------- Admissions & Financial Aid section heading: sticks just under the header until the section ends ---------- */
#career-guidance .cg-header-sticky {
  position: sticky !important; top: var(--cg-top, 104px) !important; z-index: 20 !important;
  height: auto !important; margin: 0 0 32px !important; padding: 18px 0 16px !important;
  background: #FAFAFA !important;
  box-shadow: 0 0 0 100vmax #FAFAFA, 0 10px 14px -10px rgba(75,29,105,.18) !important;
  clip-path: inset(0 -100vmax -24px);
  transition: top .3s ease;
}
#career-guidance .cg-header { background: transparent !important; text-align: left; }
#career-guidance .cg-header h2 {
  font-family: 'Montserrat', sans-serif !important; font-weight: 800 !important;
  font-size: clamp(24px, 2.6vw, 38px) !important; line-height: 1.2 !important;
  color: #4B1D69 !important; text-transform: none !important; margin: 0 0 8px !important;
}
#career-guidance .cg-header h4 {
  font-family: 'Montserrat', sans-serif !important; font-size: clamp(14px, 1.2vw, 17px) !important;
  font-weight: 500 !important; line-height: 1.5 !important; color: #444 !important; margin: 0 !important;
}
#career-guidance .cg-header h4.gb-left { display: none; }
#career-guidance .cg-header .gb-highlight { color: #C98F00; font-weight: 700; }
#career-guidance .cg-menu-wrapper { top: var(--cg-menu-top, 280px) !important; transition: top .3s ease; }
@media (max-width: 991px) {
  #career-guidance .cg-header-sticky { position: static !important; box-shadow: none !important; clip-path: none; padding: 0 !important; margin-bottom: 24px !important; }
}
