/* ============================================
   ELIMS College of Pharmacy — Design System v2
   Immersive Redesign
   ============================================ */

/* --- CSS Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary: #1B2A4A;
  --primary-light: #2C3E6B;
  --primary-dark: #111C33;
  --accent: #2E8B57;
  --accent-light: #3AAE6D;
  --accent-dark: #236B43;
  --gold: #C9A84C;
  --gold-light: #DCC06A;
  --gold-dark: #A68A3A;

  --bg: #F7F8FA;
  --bg-alt: #EEF0F4;
  --white: #FFFFFF;
  --text: #2D3142;
  --text-muted: #5C6378;
  --text-light: #8A90A2;
  --border: #E2E5EB;
  --shadow: rgba(27, 42, 74, 0.08);
  --shadow-md: rgba(27, 42, 74, 0.12);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.2rem;
  --space-sm: 0.375rem;
  --space-md: 0.75rem;
  --space-lg: 1.125rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 2.75rem;
  --space-4xl: 4rem;

  /* Sizing */
  --container: 1200px;
  --container-narrow: 900px;
  --nav-height: 90px;
  --top-bar-height: 36px;
  --border-radius: 6px;
  --border-radius-lg: 10px;
  --border-radius-xl: 14px;

  /* Transitions */
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background: var(--white);
}

.section--dark {
  background: var(--primary);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.section-header .subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.underline-accent {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--gold {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn--sm {
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
}

.btn--md {
  padding: 0.5rem 1.5rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 0.75rem 2rem;
  font-size: 0.9375rem;
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-md);
}

.card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-lg);
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  margin-top: var(--space-md);
}

.card__link:hover {
  color: var(--accent-dark);
  gap: 10px;
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Page Header (Inner Pages) --- */
.page-header {
  background: var(--primary);
  padding: var(--space-3xl) 0 var(--space-2xl);
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(46, 139, 87, 0.08);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.06);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}

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

.breadcrumb .separator {
  font-size: 0.75rem;
}

.breadcrumb .current {
  color: var(--gold);
}

/* ==============================
   TOP UTILITY BAR
   ============================== */
.top-bar {
  background: var(--primary-dark);
  padding: 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.top-bar__left a {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
}

.top-bar__left a:hover {
  color: var(--gold);
}

.top-bar__icon {
  font-size: 0.75rem;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.top-bar__right a {
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.top-bar__right a:hover {
  color: var(--gold);
}

/* ==============================
   HEADER / NAVIGATION (Transparent → Solid)
   ============================== */
.header {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-smooth);
  height: var(--nav-height);
}

.header--transparent {
  background: transparent;
  box-shadow: none;
}

.header--scrolled {
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  top: 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  height: var(--nav-height);
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo img {
  height: 76px;
  width: 76px;
  object-fit: cover;
  object-position: left center;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  min-width: 0;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 1.47rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.logo__tagline {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0;
  line-height: 1.35;
  margin-top: 3px;
  white-space: nowrap;
}

@media (max-width: 1440px) {
  .logo__tagline br { display: none; }
  .logo__tagline > span:nth-of-type(2)::before { content: '\00a0\00b7\00a0'; }
  .logo__tagline {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 1280px) {
  .logo__name { font-size: 1.235rem; }
  .logo__tagline { font-size: 0.7rem; }
  .logo img { height: 64px; width: 64px; }
}

@media (max-width: 720px) {
  .logo__name { font-size: 1.05rem; }
  .logo__tagline { font-size: 0.64rem; }
  .logo img { height: 50px; width: 50px; }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.375rem 0.625rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold);
}

.nav__link .arrow {
  font-size: 0.625rem;
  transition: transform var(--transition-fast);
}

.nav__item:hover .arrow {
  transform: rotate(180deg);
}

.nav__cta {
  margin-left: var(--space-md);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 12px 32px var(--shadow-md);
  border-top: 3px solid var(--accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
}

.nav__item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__link {
  display: block;
  padding: 0.6875rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.dropdown__link:hover {
  background: var(--bg);
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==============================
   HERO CAROUSEL (Full-Screen Immersive)
   ============================== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--primary-dark);
}

.carousel__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.carousel__slide--active {
  opacity: 1;
  z-index: 2;
}

.carousel__bg {
  position: absolute;
  inset: 0;
}

.carousel__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ken Burns zoom effect */
.carousel__slide--active .carousel__bg img {
  animation: kenburns 8s ease-out forwards;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(17, 28, 51, 0.85) 0%,
    rgba(17, 28, 51, 0.6) 50%,
    rgba(17, 28, 51, 0.4) 100%
  );
  z-index: 2;
}

.carousel__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 680px;
  padding-top: calc(var(--nav-height) + var(--top-bar-height));
}

.carousel__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold-light);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xl);
  width: fit-content;
  backdrop-filter: blur(8px);
}

.carousel__content h1 {
  font-size: 3.25rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.carousel__content h1 .highlight {
  color: var(--gold);
}

.carousel__content p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 560px;
}

.carousel__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Slide text transitions */
.carousel__slide .carousel__content > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel__slide--active .carousel__content > * {
  opacity: 1;
  transform: translateY(0);
}

.carousel__slide--active .carousel__content > *:nth-child(1) { transition-delay: 0.2s; }
.carousel__slide--active .carousel__content > *:nth-child(2) { transition-delay: 0.4s; }
.carousel__slide--active .carousel__content > *:nth-child(3) { transition-delay: 0.6s; }
.carousel__slide--active .carousel__content > *:nth-child(4) { transition-delay: 0.8s; }

/* Carousel Arrows */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}

.carousel__arrow:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
}

.carousel__arrow--prev { left: 2rem; }
.carousel__arrow--next { right: 2rem; }

/* Carousel Dots */
.carousel__dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: var(--space-sm);
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel__dot--active,
.carousel__dot:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
}

/* ==============================
   STATS BAR (Animated Counters)
   ============================== */
.stats-bar {
  background: var(--primary);
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 4;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat-item__number {
  display: inline;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-item__plus {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-item__label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-sm);
  letter-spacing: 0.5px;
}

.highlight-item__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==============================
   ABOUT PREVIEW
   ============================== */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-preview__image {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
}

.about-preview__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-preview__badge {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--accent);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  text-align: center;
}

.about-preview__badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-preview__badge-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-preview__content h2 {
  margin-bottom: var(--space-lg);
}

.about-preview__content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.about-preview__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.about-preview__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
  font-size: 0.9375rem;
}

.about-preview__feature .check {
  color: var(--accent);
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ==============================
   COURSES SECTION (Image-based cards)
   ============================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.course-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition-smooth);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-md);
}

.course-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.course-card:hover .course-card__image img {
  transform: scale(1.08);
}

.course-card__image .course-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,28,51,0.6), transparent);
}

.course-card__image .course-card__duration {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  background: rgba(201, 168, 76, 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.course-card__body {
  padding: var(--space-xl);
}

.course-card__body h3 {
  margin-bottom: var(--space-sm);
}

.course-card__body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.course-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  transition: all var(--transition-fast);
}

.course-card__link:hover {
  color: var(--accent-dark);
  gap: 10px;
}

/* ==============================
   NIRF SECTION
   ============================== */
.nirf-section {
  background: var(--bg);
}

.nirf-viewer {
  max-width: 900px;
  margin: 0 auto;
}

.nirf-viewer__embed {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.nirf-viewer__embed iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.nirf-viewer__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.nirf-viewer__actions .btn svg {
  flex-shrink: 0;
}

/* ==============================
   IQAC SECTION
   ============================== */
.iqac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.iqac-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.iqac-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.iqac-card:hover::before {
  transform: scaleX(1);
}

.iqac-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow-md);
}

.iqac-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.iqac-card h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}

.iqac-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

/* ==============================
   NEWS SECTION (Enhanced with date badges)
   ============================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.news-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow-md);
}

.news-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Listing page (pages/news.html) uses .news-card__img-wrap.
   Enforce the same contract so any uploaded image renders at a fixed,
   uniform aspect ratio (16:10) regardless of source dimensions. */
.news-card__img-wrap {
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.news-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card__image img,
.news-card:hover .news-card__img-wrap img {
  transform: scale(1.08);
}

.news-card__date-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--accent);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  text-align: center;
  line-height: 1.1;
}

.news-card__day {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
}

.news-card__month {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-card__body {
  padding: var(--space-xl);
}

.news-card__title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.news-card__excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  transition: all var(--transition-fast);
}

.news-card__link:hover {
  color: var(--accent-dark);
  gap: 10px;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ==============================
   GALLERY PREVIEW
   ============================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

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

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item__overlay span {
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-item__overlay {
  background: rgba(27, 42, 74, 0.5);
}

.gallery-item:hover .gallery-item__overlay span {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

/* ==============================
   CTA BANNER (Immersive with background image)
   ============================== */
.cta-banner {
  position: relative;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  align-items: center;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
}

.cta-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.9) 0%, rgba(44, 62, 107, 0.85) 100%);
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  margin-bottom: var(--space-xl);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

.footer__main {
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-lg);
}

.footer__logo img {
  height: 58px;
  width: 58px;
  object-fit: cover;
  object-position: left center;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer__logo-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.footer__about-text {
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--accent);
  color: var(--white);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 2px 0;
}

.footer__links a::before {
  content: '›';
  color: var(--gold);
  font-weight: 700;
}

.footer__contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer__contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.footer__contact-text {
  line-height: 1.5;
}

.footer__contact-text strong {
  display: block;
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-lg) 0;
}

.footer__bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bar-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==============================
   INNER PAGE — CONTENT STYLES
   ============================== */
.page-content {
  padding: var(--space-4xl) 0;
}

.page-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.page-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.page-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.page-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.page-content ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-xl) 0;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.styled-table thead {
  background: var(--primary);
}

.styled-table th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
}

.styled-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

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

.styled-table tbody tr:hover {
  background: var(--bg);
}

/* Content with sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-3xl);
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
  align-self: start;
}

.sidebar__widget {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}

.sidebar__widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
}

/* ==============================
   CONTACT FORM
   ============================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

/* ==============================
   GALLERY PAGE
   ============================== */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.gallery-filter__btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.gallery-filter__btn:hover,
.gallery-filter__btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.gallery-page-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-page-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-page-item:hover img {
  transform: scale(1.05);
}

.gallery-page-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-page-item:hover .gallery-page-item__overlay {
  background: rgba(27, 42, 74, 0.4);
}

.gallery-page-item__overlay svg {
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition);
}

.gallery-page-item:hover .gallery-page-item__overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* ==============================
   LIGHTBOX
   ============================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.lightbox__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev { left: var(--space-xl); }
.lightbox__nav--next { right: var(--space-xl); }

/* ==============================
   FACILITIES CARDS
   ============================== */
.facility-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-md);
}

.facility-card__image {
  height: 200px;
  overflow: hidden;
}

.facility-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.facility-card__body {
  padding: var(--space-lg);
}

.facility-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 139, 87, 0.08);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.facility-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.facility-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ==============================
   AOS / Scroll Animations
   ============================== */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.6s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.95);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }

/* ==============================
   ONLINE ADMISSION FORM
   ============================== */

/* Application number banner */
.appform-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  background: var(--primary);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-xl);
}
.appform-banner__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  display: block;
}
.appform-banner__number {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.appform-banner__note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

/* Step indicator */
.appform-steps {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
}
.appform-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: default;
}
.appform-step__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.appform-step__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition);
}
.appform-step--active .appform-step__dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(46,139,87,0.15);
}
.appform-step--active .appform-step__label {
  color: var(--accent);
}
.appform-step--done .appform-step__dot {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.appform-step--done .appform-step__dot::before {
  content: '✓';
}
.appform-step--done .appform-step__dot { font-size: 0; }
.appform-step--done .appform-step__dot::before { font-size: 0.875rem; }
.appform-step__connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 20px;
  min-width: 16px;
}

/* Form panels */
.appform-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
}
.appform-panel--active {
  display: block;
}
.appform-panel__header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.appform-panel__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}
.appform-panel__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Fields layout */
.appform-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.appform-row {
  display: grid;
  gap: var(--space-lg);
}
.appform-row--2 { grid-template-columns: repeat(2, 1fr); }
.appform-row--3 { grid-template-columns: repeat(3, 1fr); }
.appform-field--span2 { grid-column: span 2; }

.appform-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}
.req {
  color: var(--accent);
}
.appform-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 2px 0 6px;
}
.appform-opt {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Inputs */
.appform-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.appform-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,139,87,0.12);
}
.appform-input--error {
  border-color: #e74c3c;
}
.appform-input--error:focus {
  box-shadow: 0 0 0 3px rgba(231,76,60,0.12);
}
.appform-textarea {
  resize: vertical;
  min-height: 80px;
}
.appform-input--sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
}
.appform-signature-input {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
}
select.appform-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C6378' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

/* Error messages */
.appform-error {
  display: block;
  font-size: 0.8125rem;
  color: #e74c3c;
  margin-top: 3px;
  min-height: 1em;
}

/* Section dividers and titles */
.appform-section-title {
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: var(--space-sm);
}
.appform-section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-sm) 0;
}

/* Checkbox labels */
.appform-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}
.appform-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Same address toggle */
.appform-same-address {
  background: var(--bg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  border: 1px dashed var(--border);
}

/* File upload */
.appform-file-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.appform-file {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  max-width: 260px;
}
.appform-file:focus {
  outline: none;
  border-color: var(--accent);
}
.appform-file-preview {
  display: flex;
  align-items: center;
}
.appform-file-placeholder {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.appform-photo-preview {
  width: 80px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 2px solid var(--border);
}

/* Documents grid */
.appform-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.appform-doc-item {
  background: var(--bg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
}
.appform-doc-item .appform-label {
  margin-bottom: var(--space-sm);
}

/* Academic table */
.appform-table-wrap {
  overflow-x: auto;
}
.appform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.appform-table th {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 0.625rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.appform-table td {
  padding: 0.5rem 0.375rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.appform-table tr:last-child td {
  border-bottom: none;
}
.appform-table tr:nth-child(even) td {
  background: var(--bg);
}
.appform-exam-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  white-space: nowrap;
}

/* Summary (Step 8) */
.appform-summary {
  background: var(--bg);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}
.appform-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-xl);
}
.appform-summary__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.appform-summary__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-muted);
}
.appform-summary__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

/* Declaration box */
.appform-declaration-box {
  background: #fff8e6;
  border: 1px solid var(--gold);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}
.appform-declaration-box h3 {
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}
.appform-declaration-box p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
}

.appform-submit-note {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Navigation buttons row */
.appform-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

/* Success message */
.appform-success {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4xl) var(--space-2xl);
}
.appform-success__icon {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-weight: 700;
}
.appform-success h2 {
  margin-bottom: var(--space-md);
}
.appform-success p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

/* Responsive */
@media (max-width: 768px) {
  .appform-row--2,
  .appform-row--3 { grid-template-columns: 1fr; }
  .appform-field--span2 { grid-column: span 1; }
  .appform-docs-grid { grid-template-columns: 1fr; }
  .appform-summary__grid { grid-template-columns: 1fr; }
  .appform-panel { padding: var(--space-lg); }
  .appform-step__label { display: none; }
  .appform-banner { flex-direction: column; align-items: flex-start; }
}

/* Admission popup */
.admission-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.admission-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 21, 39, 0.72);
}
.admission-popup__dialog {
  position: relative;
  width: fit-content;
  max-width: min(92vw, 780px);
  margin: 4vh auto 0;
  background: transparent;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.admission-popup__link {
  display: block;
  line-height: 0;
}
.admission-popup__link img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
}
.admission-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(27, 42, 74, 0.9);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .admission-popup__dialog {
    width: fit-content;
    max-width: min(94vw, 520px);
    margin: 7vh auto 0;
    border-radius: 14px;
  }

  .admission-popup__link img {
    max-height: calc(100vh - 150px);
  }

  .admission-popup__close {
    width: 42px;
    height: 42px;
    top: 8px;
    right: 8px;
  }
}

/* WhatsApp widget */
.wa-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
}

.wa-widget__fab {
  border: none;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.wa-widget__panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(90vw, 320px);
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-widget__panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wa-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #1b2a4a;
}

.wa-widget__close {
  border: none;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.wa-widget__text {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.55rem 0 0.65rem;
}

.wa-widget__select {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  font-size: 0.84rem;
  margin-bottom: 0.65rem;
  background: #fff;
}

.wa-widget__actions {
  display: grid;
  gap: 0.45rem;
}

.wa-widget__btn {
  border: none;
  border-radius: 8px;
  background: #1b2a4a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.52rem 0.6rem;
  cursor: pointer;
}

.wa-widget__btn--muted {
  background: #475569;
}

@media (max-width: 768px) {
  .wa-widget {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .wa-widget__fab {
    font-size: 0.85rem;
    padding: 0.8rem 0.95rem;
    min-height: 44px;
  }

  .wa-widget__panel {
    width: min(94vw, 340px);
    bottom: 60px;
  }

  .wa-widget__btn,
  .wa-widget__close {
    min-height: 40px;
  }
}
