/* Above-the-fold critical CSS — sized to prevent CLS when full CSS arrives */
:root {
  --upes-blue: #005291;
  --upes-navy: #0b1f3a;
  --upes-pink: #d9235c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Poppins, 'Segoe UI', Tahoma, sans-serif;
  color: #1c2430;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
}

button,
[role='button'],
input[type='submit'],
input[type='button'] {
  touch-action: manipulation;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

[class*='col-'] {
  padding: 0 12px;
  width: 100%;
}

@media (min-width: 576px) {
  .col-sm-4 {
    width: 33.333%;
  }
  .col-sm-6 {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-3 {
    width: 25%;
  }
  .col-md-4 {
    width: 33.333%;
  }
  .col-md-6 {
    width: 50%;
  }
  .col-md-8 {
    width: 66.666%;
  }
  .col-md-9 {
    width: 75%;
  }
  .col-md-12 {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    width: 25%;
  }
  .col-lg-4 {
    width: 33.333%;
  }
  .col-lg-8 {
    width: 66.666%;
  }
}

@media (min-width: 1200px) {
  .col-xl-4 {
    width: 33.333%;
  }
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.text-center {
  text-align: center;
}

.fw-bold {
  font-weight: 700;
}

.text-muted {
  color: #6b7280;
}

.bg-white {
  background: #fff;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.g-5 {
  --bs-gutter-x: 3rem;
  --bs-gutter-y: 3rem;
}

/* Header — reserve fixed heights to kill CLS */
.sticky_header {
  position: relative;
  z-index: 1000;
  background: #fff;
  min-height: 96px;
}

.top_header {
  background: linear-gradient(90deg, #1a1a2e, #16213e);
  min-height: 28px;
}

.top_header ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 28px;
  gap: 0;
}

.top_header ul li a {
  color: #e0e0ff;
  font-size: 12px;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.navbar {
  background: #fff;
  padding: 8px 0;
  min-height: 68px;
}

.navbar .container-fluid,
.navbar > .container-fluid {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.navbar-brand,
.logo {
  margin: 0;
  width: 120px;
  flex: 0 0 120px;
}

.navbar-brand img,
.logo img {
  width: 120px;
  height: 48px;
  object-fit: contain;
}

.my_header_link {
  margin-left: auto;
}

.my_header_link .navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.menu-link {
  font-size: 13px;
  font-weight: 600;
  color: #0b1f3a;
  padding: 8px 10px;
  white-space: nowrap;
}

.enquire-btn {
  background: var(--upes-blue);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.admission_btn a {
  background: var(--upes-pink);
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
}

.mobile_header,
.mobile-toggle,
.header_toggle {
  display: none;
}

/* LCP banner — fixed aspect ratio prevents CLS */
.my_banner,
.home-lcp-banner {
  background: #0b1f3a;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.home-lcp-banner img,
.home_banner_img,
.my_banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 700;
  object-fit: cover;
  background: #0b1f3a;
}

.explore_courses {
  padding: 40px 0 20px;
  min-height: 280px;
}

.explorepg {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 0 0 12px;
  color: #0b1f3a;
  line-height: 1.3;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

/* Hide dropdown chrome until header.css hover rules apply */
.mega-menu,
.dropdown-menu {
  display: none;
}

@media (max-width: 991px) {
  .sticky_header {
    min-height: 72px;
  }

  .top_header {
    display: none;
  }

  .my_header_link {
    display: none !important;
  }

  .mobile_header,
  .mobile-toggle,
  .header_toggle {
    display: block;
  }

  .navbar {
    min-height: 56px;
    padding: 6px 0;
  }

  .home-lcp-banner img,
  .home_banner_img,
  .my_banner img {
    aspect-ratio: 9 / 16;
  }
}
