:root {
  --maroon: #8B1E1E;
  --maroon-dark: #611313;
  --gold: #D4A017;
  --cream: #FFF8EE;
  --soft: #F8EFE3;
  --charcoal: #1F2933;
  --muted: #68717D;
  --white: #fff;
  --green: #5B8C3A;
  --shadow: 0 22px 60px rgba(31, 41, 51, .14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--charcoal);
  background: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* Updated global top bar gradient */
.topbar {
  background: linear-gradient(90deg, #701212 0%, #8b1e1e 50%, #b88416 100%) !important;
  color: #ffffff !important;
  font-size: 14px;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a,
.topbar span,
.topbar i {
  color: #ffffff !important;
}

.topbar a:hover {
  color: #fff3c4 !important;
}

.divider {
  height: 16px;
  width: 1px;
  background: rgba(255, 255, 255, .35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 248, 238, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
}

.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.18;
  color: var(--maroon);
  letter-spacing: .2px;
}

.brand em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav a {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 11px 12px;
  border-radius: 999px;
  color: #25303c;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--maroon);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--maroon);
  color: #fff;
  font-size: 24px;
  border-radius: 12px;
  padding: 8px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 670px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, .76), rgba(17, 24, 39, .30)), var(--bg);
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.slide h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  margin: 20px 0 18px;
  max-width: 850px;
}

.slide p {
  font-size: 20px;
  max-width: 680px;
  color: rgba(255, 255, 255, .9);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 25px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--gold);
  color: #211604;
}

.btn.primary:hover {
  background: #edbd32;
}

.btn.secondary {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.btn.full {
  width: 100%;
  color: #211604;
}

.slider-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}

.dot.active {
  width: 36px;
  background: var(--gold);
}

.quick-contact {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--maroon);
}

.quick-card.accent {
  border-top-color: var(--gold);
}

.quick-card span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .07em;
}

.quick-card strong {
  display: block;
  margin: 7px 0;
  font-size: 19px;
  color: var(--maroon);
}

.quick-card small {
  color: var(--muted);
}

.section-space {
  padding: 95px 0;
}

.soft-bg {
  background: var(--cream);
}

.two-col {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 70px;
  align-items: center;
}

.visual-card {
  background: linear-gradient(145deg, #fff, var(--soft));
  border-radius: 32px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-card:before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(139, 30, 30, .09);
  top: -90px;
  right: -80px;
}

.visual-card img {
  width: 280px;
  max-width: 70%;
  position: relative;
}

.badge {
  position: absolute;
  bottom: 26px;
  left: 26px;
  background: var(--maroon);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
}

.section-kicker {
  color: var(--maroon);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 13px;
}

.content-block h2,
.section-head h2,
.admission-content h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  margin: 10px 0 18px;
}

.content-block p,
.section-head p,
.admission-content p {
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--maroon);
  font-weight: 800;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 14px 40px rgba(31, 41, 51, .09);
  transition: transform .25s ease;
}

.program-card:hover {
  transform: translateY(-6px);
}

.icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.program-card h3 {
  font-size: 22px;
  margin: 22px 0 12px;
}

.program-card p {
  color: var(--muted);
  margin-bottom: 22px;
}

.program-card a {
  color: var(--maroon);
  font-weight: 800;
}

.admission-wrap {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 42px;
  align-items: center;
  background: linear-gradient(135deg, var(--maroon), #371010);
  border-radius: 36px;
  padding: 58px;
  color: #fff;
  box-shadow: var(--shadow);
}

.admission-content p {
  color: rgba(255, 255, 255, .82);
}

.admission-content .section-kicker {
  color: var(--gold);
}

.admission-content ul {
  padding-left: 20px;
  margin-top: 22px;
}

.admission-content li {
  margin: 9px 0;
}

.enquiry-form {
  background: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.enquiry-form h3 {
  color: var(--maroon);
  margin: 0 0 18px;
  font-size: 25px;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid #e4dacd;
  border-radius: 14px;
  padding: 14px 15px;
  margin-bottom: 12px;
  font: inherit;
}

.enquiry-form textarea {
  height: 105px;
  resize: vertical;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-grid div {
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 32px rgba(31, 41, 51, .08);
}

.why-grid strong {
  color: var(--maroon);
  font-size: 18px;
}

.why-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.footer {
  background: #241313;
  color: #fff;
  padding-top: 65px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr 1fr 1.25fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
}

.footer h4 {
  color: var(--gold);
  margin: 0 0 15px;
}

.footer a {
  display: block;
  color: rgba(255, 255, 255, .82);
  margin: 8px 0;
}

.footer p {
  color: rgba(255, 255, 255, .78);
  margin: 8px 0;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .13);
  padding: 18px;
  margin-top: 45px;
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 1050px) {
  .main-nav {
    position: absolute;
    top: 90px;
    left: 4%;
    right: 4%;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 16px;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    min-height: 84px;
  }

  .topbar-right {
    display: none;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 800px) {
  .hero-slider {
    height: 620px;
  }

  .quick-grid,
  .program-grid,
  .two-col,
  .admission-wrap,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-contact {
    margin-top: 20px;
  }

  .section-space {
    padding: 70px 0;
  }

  .admission-wrap {
    padding: 34px 22px;
    border-radius: 26px;
  }

  .slide h1 {
    font-size: 42px;
  }

  .slide p {
    font-size: 17px;
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-left {
    justify-content: center;
  }

  .divider {
    display: none;
  }

  .footer-grid {
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 10px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand em {
    font-size: 12px;
  }

  .hero-slider {
    height: 580px;
  }

  .slide h1 {
    font-size: 35px;
  }

  .quick-card strong {
    font-size: 17px;
  }
}


/* Improved global header style */
.site-header {
  background: linear-gradient(90deg, #fff8ee 0%, #fff2dc 45%, #f7dfad 100%) !important;
  box-shadow: 0 10px 32px rgba(97, 19, 19, 0.12);
  border-bottom: 1px solid rgba(139, 30, 30, 0.08);
}

.header-inner {
  min-height: 104px;
  padding: 10px 0;
  gap: 32px;
}

/* Logo + institute name spacing */
.brand {
  gap: 18px;
  max-width: 610px;
  animation: brandFadeUp 0.7s ease both;
}

.brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(139, 30, 30, 0.10);
}

.brand strong {
  font-size: 22px;
  line-height: 1.14;
  color: #8B1E1E;
  letter-spacing: 0.2px;
}

.brand em {
  font-size: 15px;
  color: #68717D;
  margin-top: 6px;
}

/* Menu improvement */
.main-nav {
  gap: 12px;
}

.main-nav a {
  position: relative;
  padding: 13px 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #25303c;
  transition: all 0.28s ease;
}

.main-nav a:hover {
  background: rgba(139, 30, 30, 0.10);
  color: #8B1E1E;
  transform: translateY(-2px);
}

.main-nav a.active {
  background: linear-gradient(135deg, #8B1E1E 0%, #611313 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(139, 30, 30, 0.24);
}

.main-nav a.active:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Mild animation */
@keyframes brandFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-nav a {
  animation: menuFadeIn 0.5s ease both;
}

.main-nav a:nth-child(1) { animation-delay: 0.04s; }
.main-nav a:nth-child(2) { animation-delay: 0.08s; }
.main-nav a:nth-child(3) { animation-delay: 0.12s; }
.main-nav a:nth-child(4) { animation-delay: 0.16s; }
.main-nav a:nth-child(5) { animation-delay: 0.20s; }
.main-nav a:nth-child(6) { animation-delay: 0.24s; }
.main-nav a:nth-child(7) { animation-delay: 0.28s; }

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile header adjustment */
@media (max-width: 1050px) {
  .header-inner {
    min-height: 92px;
    padding: 8px 0;
  }

  .brand img {
    width: 66px;
    height: 66px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand em {
    font-size: 13px;
  }

  .main-nav {
    top: 96px;
    gap: 6px;
  }

  .main-nav a {
    padding: 13px 16px;
  }
}

@media (max-width: 520px) {
  .brand {
    gap: 12px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand strong {
    font-size: 13px;
    line-height: 1.16;
  }

  .brand em {
    font-size: 12px;
  }
}