/* ==========================================================================
   MITS INSTITUTE OF PROFESSIONAL STUDIES (MIPS RAYAGADA)
   Modernized Stylesheet - 2026/2027
   ========================================================================== */

:root {
  --primary: #0A2F5A;
  --primary-dark: #061d38;
  --primary-light: #134074;
  --primary-subtle: #e8f0fe;
  --accent: #E69500;
  --accent-hover: #cf8400;
  --accent-light: #fff8eb;
  --secondary: #0284c7;
  --success: #15803d;
  --success-light: #dcfce7;
  --danger: #dc2626;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -5px rgba(10, 47, 90, 0.08), 0 8px 10px -6px rgba(10, 47, 90, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(10, 47, 90, 0.12), 0 10px 15px -5px rgba(10, 47, 90, 0.06);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

.text-light-muted {
  color: #94a3b8 !important;
}

/* Top Notification / Utility Bar */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.84rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-bar a:hover {
  color: var(--accent);
}

.badge-tagline {
  background: rgba(230, 149, 0, 0.18);
  color: #ffbe4d;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(230, 149, 0, 0.4);
  letter-spacing: 0.02em;
}

/* Main Navigation Bar */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1040;
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  flex-shrink: 0;
  padding: 0;
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
}

.brand-text-block {
  line-height: 1.15;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.brand-text-block {
  line-height: 1.15;
}

.brand-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-subheading {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-affiliations {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(10, 47, 90, 0.1);
  white-space: nowrap;
}

.navbar-toggler {
  border: 1.5px solid rgba(10, 47, 90, 0.25) !important;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--light-bg);
  transition: var(--transition);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(10, 47, 90, 0.15) !important;
}

.navbar-toggler-icon {
  width: 1.3em;
  height: 1.3em;
}

.navbar-nav {
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark-light);
  padding: 8px 10px !important;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
  background: var(--primary-subtle);
}

/* Dropdown styling - works on both hover and click/touch */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  display: block;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.dropdown:focus-within > .dropdown-menu,
.dropdown-menu.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}

.dropdown-item {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--primary-subtle);
  color: var(--primary);
  transform: translateX(4px);
}

/* Apply Now Navbar CTA */
.btn-nav-apply {
  background: linear-gradient(135deg, var(--accent), #ffaa17);
  color: var(--dark) !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(230, 149, 0, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  white-space: nowrap;
}

.btn-nav-apply:hover {
  background: linear-gradient(135deg, #d88900, #f5a000);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 149, 0, 0.45);
}

/* Offcanvas Mobile Navigation */
.offcanvas {
  max-width: 320px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.mobile-sub-menu {
  list-style: none;
  padding-left: 28px;
  margin: 4px 0 8px 0;
}

.mobile-sub-menu a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.mobile-sub-menu a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* Modern Hero Carousel */
.hero-carousel-section {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-slider-item {
  min-height: 580px;
  position: relative;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  padding: 90px 0 130px 0;
}

.hero-slider-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 29, 56, 0.95) 0%, rgba(6, 29, 56, 0.84) 55%, rgba(6, 29, 56, 0.45) 100%);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  color: var(--white);
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 149, 0, 0.2);
  border: 1px solid var(--accent);
  color: #ffc466;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.08rem;
  color: #e2e8f0;
  margin-bottom: 26px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero Carousel Controls & Indicators */
.hero-carousel-section .carousel-indicators {
  bottom: 75px;
  margin-bottom: 0;
  z-index: 5;
}

.hero-carousel-section .carousel-indicators button {
  width: 32px;
  height: 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  transition: var(--transition);
}

.hero-carousel-section .carousel-indicators button.active {
  width: 48px;
  background-color: var(--accent);
}

.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
  width: 48px;
  height: 48px;
  background: rgba(10, 47, 90, 0.65);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  opacity: 0.8;
  z-index: 6;
}

.hero-carousel-section .carousel-control-prev:hover,
.hero-carousel-section .carousel-control-next:hover {
  background: var(--primary);
  opacity: 1;
}

/* Custom Buttons */
.btn-primary-custom {
  background: var(--accent);
  color: #111827;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 15px rgba(230, 149, 0, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 149, 0, 0.5);
}

.btn-outline-custom {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Quick Stats Bar */
.stats-banner {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  margin-top: -50px;
  position: relative;
  z-index: 10;
  padding: 24px 18px;
  border: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
  padding: 10px 8px;
  border-right: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .stats-banner .row > div:last-child .stat-item {
    border-right: none;
  }
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.stat-number .plus {
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

/* Section Header */
.section-header {
  margin-bottom: 40px;
}

.section-subtitle {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin-top: 10px;
}

/* Live Announcements Hub */
.announcement-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 100%;
}

.announcement-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.announcement-tabs {
  display: flex;
  gap: 6px;
  background: var(--light-bg);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.announcement-tab-btn {
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.announcement-tab-btn.active,
.announcement-tab-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.announcement-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px 18px;
}

.announcement-body::-webkit-scrollbar {
  width: 5px;
}
.announcement-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.notice-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item:hover {
  transform: translateX(3px);
}

.notice-date-badge {
  background: var(--primary-subtle);
  border: 1px solid rgba(10, 47, 90, 0.15);
  color: var(--primary);
  padding: 5px 8px;
  border-radius: 8px;
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.notice-date-day {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.notice-date-month {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.notice-content h6 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
}

.notice-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  line-height: 1.45;
}

.notice-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notice-link:hover {
  color: var(--accent);
}

/* Course / Program Cards */
.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 47, 90, 0.2);
}

.program-card-header {
  padding: 20px 20px 12px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.program-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.icon-box-agri { background: #dcfce7; color: #166534; }
.icon-box-biotech { background: #e0f2fe; color: #0369a1; }
.icon-box-cs { background: #ede9fe; color: #6d28d9; }
.icon-box-mgt { background: #fef3c7; color: #b45309; }

.program-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-ug { background: #e0f2fe; color: #0284c7; }
.badge-pg { background: #fef3c7; color: #d97706; }
.badge-flagship { background: #fef08a; color: #854d0e; border: 1px solid #facc15; }

.program-card-body {
  padding: 0 20px 18px 20px;
  flex-grow: 1;
}

.program-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.program-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.program-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.program-card-footer {
  padding: 12px 20px;
  background: var(--light-bg);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Feature Grid Cards */
.feature-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.feature-box:hover .feature-icon-circle {
  background: var(--primary);
  color: var(--white);
}

.feature-box h5 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Leadership Quote Cards */
.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 100%;
  transition: var(--transition);
}

.leader-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.leader-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
}

.leader-img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.leader-details h5 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--primary-dark);
}

.leader-details .designation {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.leader-body {
  padding: 22px;
  position: relative;
}

.leader-quote-icon {
  font-size: 2rem;
  color: rgba(10, 47, 90, 0.1);
  position: absolute;
  top: 10px;
  right: 18px;
}

.leader-body p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 12px;
}

/* Recruiters & Placement Highlights */
.placement-highlight-banner {
  background: linear-gradient(135deg, #061d38 0%, #0A2F5A 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.placement-badge-glow {
  background: rgba(230, 149, 0, 0.25);
  border: 1px solid var(--accent);
  color: #fbd38d;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.recruiter-slider-track {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  padding: 12px 0;
}

.recruiter-slider-track::-webkit-scrollbar {
  display: none;
}

.recruiter-logo-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.recruiter-logo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.recruiter-logo-card img {
  max-height: 42px;
  max-width: 100%;
  object-fit: contain;
}

/* 27 Industry Partners Grid (3x9 layout on desktop, fully responsive) */
.partners-grid-27 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 576px) {
  .partners-grid-27 {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}
@media (min-width: 768px) {
  .partners-grid-27 {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1200px) {
  .partners-grid-27 {
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
  }
}

.partner-logo-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 6px 8px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.12);
  border-color: var(--primary);
}

.partner-logo-item img {
  max-height: 38px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Facilities Grid */
.facility-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.facility-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--dark-light);
}

.facility-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.facility-card:hover .facility-img-wrap img {
  transform: scale(1.05);
}

.facility-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 47, 90, 0.85);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.facility-card-body {
  padding: 18px;
}

.facility-card-body h5 {
  font-size: 1.12rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.facility-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Gallery Grid */
.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 29, 56, 0.9) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Interactive Tabs */
.custom-nav-pills {
  background: var(--white);
  padding: 6px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  display: inline-flex;
  gap: 6px;
}

.custom-nav-pills .nav-link {
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 7px 18px;
  transition: var(--transition);
}

.custom-nav-pills .nav-link.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Modern Tables */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.custom-table th {
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 13px 16px;
  text-align: left;
  border-bottom: 2px solid var(--accent);
}

.custom-table td {
  padding: 13px 16px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background-color: var(--primary-subtle);
}

/* Application Form Styling */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  padding: 34px;
}

/* NoPaperForms ERP Admission Widget */
.npf_wgts {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 520px;
}

.npf_wgts iframe {
  width: 100% !important;
  min-height: 520px !important;
  border: none !important;
  display: block;
}

@media (max-width: 575.98px) {
  .npf_wgts iframe {
    min-height: 540px !important;
  }
}

.form-label {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--dark-light);
  margin-bottom: 5px;
}

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 47, 90, 0.15);
}

/* Modern Footer */
.main-footer {
  background: #061930;
  color: #94a3b8;
  padding-top: 55px;
  font-size: 0.88rem;
  border-top: 4px solid var(--accent);
}

.footer-brand-logo {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.main-footer a {
  color: #94a3b8;
}

.main-footer a:hover {
  color: var(--white);
}

.footer-widget h5 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-widget h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-contact-item i {
  color: var(--accent);
  font-size: 1.05rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  background: #041020;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: #cbd5e1;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.btn-floating-apply {
  background: linear-gradient(135deg, var(--accent), #ffaa17);
  color: var(--dark) !important;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 18px rgba(230, 149, 0, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.btn-floating-apply:hover {
  background: linear-gradient(135deg, #d88900, #f5a000);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 22px rgba(230, 149, 0, 0.6);
  color: var(--dark) !important;
}

.floating-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  transition: var(--transition);
  color: var(--white);
  border: none;
  cursor: pointer;
}

.btn-whatsapp-float {
  background: #25D366;
}

.btn-call-float {
  background: var(--primary);
}

.btn-top-float {
  background: var(--dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.btn-top-float.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn:hover {
  transform: scale(1.08);
  color: var(--white);
}

/* Page Hero Breadcrumbs */
.page-hero-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 48px 0 42px 0;
  position: relative;
  overflow: hidden;
}

.page-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: radial-gradient(circle, rgba(230,149,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.custom-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  list-style: none;
  padding: 0;
}

.custom-breadcrumb a {
  color: #cbd5e1;
}

.custom-breadcrumb a:hover {
  color: var(--accent);
}

/* RESPONSIVE BREAKPOINTS */

/* Screens below XL (< 1200px) use Offcanvas Mobile Drawer */
@media (max-width: 1199.98px) {
  .navbar-brand {
    max-width: calc(100% - 95px);
    margin-right: 0;
  }
  .brand-logo-img {
    height: 44px;
  }
  .brand-heading {
    font-size: 1.05rem;
  }
  .brand-subheading {
    font-size: 0.7rem;
  }
}

/* Medium & Small Desktops (1200px to 1399.98px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-brand {
    margin-right: 0.75rem;
  }
  .brand-logo-img {
    height: 46px;
  }
  .brand-heading {
    font-size: 1.05rem;
  }
  .brand-subheading {
    font-size: 0.68rem;
  }
  .navbar-nav .nav-link {
    font-size: 0.82rem;
    padding: 7px 7px !important;
  }
  .btn-nav-apply {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Mobile & Tablet (< 992px) */
@media (max-width: 991.98px) {
  .hero-slider-item {
    min-height: 480px;
    padding: 60px 0 70px 0;
  }
  .hero-slider-item::before {
    background: linear-gradient(180deg, rgba(6, 29, 56, 0.95) 0%, rgba(6, 29, 56, 0.85) 100%);
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-carousel-section .carousel-indicators {
    bottom: 25px;
  }
  .hero-carousel-section .carousel-control-prev,
  .hero-carousel-section .carousel-control-next {
    display: none;
  }
  .stats-banner {
    margin-top: 25px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 6px;
  }
  .stats-banner .row > div:nth-last-child(-n+2) .stat-item {
    border-bottom: none;
  }
  .dropdown-menu {
    box-shadow: none;
    padding-left: 15px;
  }
}

/* Tablets & Mobile Landscape (< 768px) */
@media (max-width: 767.98px) {
  .footer-widget {
    margin-bottom: 28px;
  }
  .footer-bottom .container > div {
    text-align: center;
  }
  .footer-bottom .d-flex.gap-3 {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Small Mobile (< 576px) */
@media (max-width: 575.98px) {
  .brand-logo-img {
    height: 38px;
  }
  .brand-heading {
    font-size: 0.96rem;
  }
  .hero-slider-item {
    min-height: 440px;
    padding: 45px 0 60px 0;
  }
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-btns .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .form-card {
    padding: 20px 16px;
  }
  .floating-actions {
    bottom: 16px;
    right: 14px;
    gap: 8px;
  }
  .btn-floating-apply {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
}
