/* ==========================================================================
   SIGNATURE INSTITUTE OF COMMERCE & MANAGEMENT - MODERN STYLESHEET
   Design System: Deep Navy Blue (#0A2540) + Vibrant Amber Gold (#F59E0B / #D97706)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

/* --- Root Color Palette & CSS Variables --- */
:root {
  /* Brand Primary Colors */
  --primary-dark: #07192c;
  --primary: #0a2540;
  --primary-light: #163c66;
  --primary-accent: #0056b3;

  /* Brand Secondary / Accent Colors (Gradient Amber-Gold) */
  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
  --accent-orange: #ea580c;
  --accent-yellow: #fbbf24;

  --accent-gradient: linear-gradient(
    135deg,
    #fbbf24 0%,
    #f59e0b 40%,
    #ea580c 100%
  );
  --blue-gradient: linear-gradient(135deg, #0a2540 0%, #1e40af 100%);
  --dark-gradient: linear-gradient(135deg, #07192c 0%, #0f294a 100%);
  --glass-gradient: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.45) 100%
  );

  /* Neutral Shades */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f1f5f9;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Elevations & Shadows */
  --shadow-sm: 0 2px 4px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 36px rgba(10, 37, 64, 0.12);
  --shadow-xl: 0 24px 48px rgba(10, 37, 64, 0.16);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.35);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --font-main: "Plus Jakarta Sans", sans-serif;
  --font-heading: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* --- Container & Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5.5rem 0;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(10, 37, 64, 0.08);
  color: var(--primary);
  border: 1px solid rgba(10, 37, 64, 0.15);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.8rem 0 1rem 0;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
}

.btn-navy {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
}

.btn-navy:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

.btn-outline-navy {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-navy:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-call {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-call:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.5);
  color: #ffffff !important;
}

.top-call-badge {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold) !important;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.top-call-badge:hover {
  background: var(--accent-gold);
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* --- Top Utility Bar --- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.83rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-info-item i {
  color: var(--accent-gold);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-brochure {
  position: relative;
}

.header-brochure-button {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold) !important;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.header-brochure-button:hover {
  background: var(--accent-gold);
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.brochure-arrow {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.header-brochure-button[aria-expanded="true"] .brochure-arrow {
  transform: rotate(180deg);
}

.header-brochure-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  min-width: 330px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.16);
  padding: 0.7rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1200;
}

.header-brochure-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-brochure-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 0.85rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--primary-dark);
  text-align: left;
  text-decoration: none;
  cursor: default;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-brochure-item span {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  align-items: center;
  background: rgba(98, 71, 216, 0.08);
  color: #1f2a59;
  border-radius: 10px;
  padding: 0.42rem 0.5rem;
  font-weight: 800;
  font-size: 0.92rem;
}

.header-brochure-item small {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 600;
}

.header-brochure-item:hover {
  background: rgba(98, 71, 216, 0.06);
  transform: translateX(2px);
}

.top-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

/* --- Main Navbar Header (STRICT ALIGNMENT FIX) --- */
.header-main {
  position: fixed;
  top: 42px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

#header-placeholder + * {
  margin-top: 118px;
}

.header-main.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.1rem 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0;
  min-height: 78px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  max-width: 240px;
}

.logo-brand img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--accent-gradient);
  transition: var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-item.dropdown > .dropdown-toggle.active {
  color: var(--accent-amber);
}

/* --- Navigation Dropdowns --- */
.nav-item.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-arrow {
  font-size: 0.68rem;
  color: var(--text-muted);
  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
}

.nav-item.dropdown:hover .nav-arrow,
.nav-item.dropdown.active .nav-arrow,
.nav-item.dropdown:focus-within .nav-arrow {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.dropdown-menu,
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 210px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow:
    0 12px 32px rgba(10, 37, 64, 0.12),
    0 2px 6px rgba(10, 37, 64, 0.04);
  border: 1px solid rgba(10, 37, 64, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.25s;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

/* Bridge hover gap */
.dropdown-menu::before,
.dropdown-content::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:hover .dropdown-content,
.nav-item.dropdown:focus-within .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-content,
.nav-item.dropdown.open .dropdown-menu,
.nav-item.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item,
.dropdown-menu a,
.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary-dark);
  text-decoration: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    padding-left var(--transition-fast);
  white-space: nowrap;
}

.dropdown-item i,
.dropdown-menu a i,
.dropdown-content a i {
  font-size: 0.85rem;
  color: var(--accent-gold);
  width: 18px;
  text-align: center;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-menu a:hover,
.dropdown-content a:hover {
  background: var(--bg-alt);
  color: var(--accent-amber);
  padding-left: 1.35rem;
}

.dropdown-item.active,
.dropdown-menu a.active,
.dropdown-content a.active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  font-weight: 700;
  padding-left: 1.35rem;
  border-left: 3px solid var(--accent-gold);
}

.dropdown-item:hover i,
.dropdown-menu a:hover i,
.dropdown-content a:hover i {
  transform: scale(1.15);
  color: var(--accent-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
}

/* --- Page Header Banner (For Separate Pages) --- */
.page-header-banner {
  background: var(--dark-gradient);
  color: #ffffff;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.page-header-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  max-width: 650px;
  margin: 0 auto;
}

.breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--accent-gold);
  margin-top: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
}

.breadcrumb a {
  color: #ffffff;
}

/* --- Features & Legacy Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  top: 0;
}

.feature-card:hover {
  top: -8px;
  box-shadow: var(--shadow-xl);
  border-color: rgba(245, 158, 11, 0.4);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(10, 37, 64, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--accent-gradient);
  color: #ffffff;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

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

/* --- Programs & Courses Section --- */
.course-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 37, 64, 0.2);
}

.course-thumb {
  height: 200px;
  background: var(--blue-gradient);
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.course-tag {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.course-level {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
}

.course-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.course-meta i {
  color: var(--accent-gold);
}

.course-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.course-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
}

.course-fee span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.course-fee strong {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 800;
}

/* --- Articleship Portal Section --- */
.articleship-section {
  background: var(--bg-alt);
  position: relative;
}

.articleship-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition-fast);
  margin-bottom: 1.2rem;
}

.articleship-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}

.articleship-info h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.articleship-firm {
  color: var(--accent-amber);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.2rem 0 0.5rem 0;
}

.articleship-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.articleship-tag {
  background: var(--bg-alt);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Admission Wizard Modal / Interactive Form --- */
.admission-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.wizard-header {
  background: var(--dark-gradient);
  color: #ffffff;
  padding: 2.5rem 2rem;
  text-align: center;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-medium);
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.wizard-step.active .step-num {
  background: var(--accent-gradient);
  border-color: var(--accent-gold);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.wizard-step.completed .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wizard-step.active .step-label {
  color: var(--primary);
}

.wizard-body {
  padding: 2.5rem 2rem;
}

.application-review {
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.application-review-intro {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.application-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.5rem;
  margin: 0;
}

.application-review-list div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.application-review-list dt {
  margin-bottom: 0.2rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.application-review-list dd {
  margin: 0;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.application-review-note {
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.application-review-note i {
  color: var(--accent-gold);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.4s ease forwards;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.4;
}

.form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  transition: var(--transition-fast);
}

select.form-control {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310243b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  appearance: none;
}

.form-control:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

#admission-feedback {
  min-height: 1.25rem;
  margin: 1rem 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

#admission-feedback.admission-feedback-success { color: #047857; }
#admission-feedback.admission-feedback-error { color: #b42318; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(10, 37, 64, 0.2);
}

.faq-question {
  padding: 1.4rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question i {
  color: var(--accent-gold);
  transition: var(--transition-normal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  padding: 0 1.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.8rem 1.4rem 1.8rem;
}

/* --- Modal Popup --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 44, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--bg-surface);
  width: 90%;
  max-width: 650px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  background: var(--primary);
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.modal-close {
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 2rem 0;
  border-top: 4px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: start;
}

.footer-popular-programs {
  justify-self: end;
  width: 100%;
  max-width: 360px;
}

.footer-about img {
  height: 44px;
  width: auto;
}

.footer-about p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

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

.social-icon:hover {
  background: var(--accent-gradient);
  transform: translateY(-3px);
}

.footer-title {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links-column {
  min-width: 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.8rem 1.6rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

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

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background: var(--primary);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.35s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Breakpoints */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }
  .nav-menu {
    gap: 1.5rem;
  }
  .nav-link {
    font-size: 0.96rem;
  }
  .courses-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1.35fr 1.5fr;
  }
}

@media (max-width: 1200px) {
  .nav-menu {
    gap: 0.8rem;
  }
  .nav-link {
    font-size: 0.83rem;
  }
  .logo-brand {
    max-width: 200px;
  }
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .navbar {
    gap: 0.8rem;
  }
  .nav-menu {
    gap: 0.45rem;
    flex: 1 1 auto;
  }
  .nav-link {
    font-size: 0.73rem;
  }
  .nav-actions {
    gap: 0.45rem;
  }
  .nav-actions .btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
  }
  .logo-brand {
    max-width: 170px;
  }
}

@media (max-width: 1024px) {
  .features-grid,
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-popular-programs {
    justify-self: stretch;
    max-width: none;
  }
  .nav-actions {
    gap: 0.55rem;
  }
  .nav-actions .btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 900px) {
  .top-bar {
    display: none;
  }

  .header-main {
    top: 0;
  }

  #header-placeholder + * {
    margin-top: 70px;
  }

  .navbar {
    min-height: 70px;
  }
  .nav-actions .btn-outline-navy {
    display: none;
  }
  .logo-brand img {
    height: 36px;
  }
  .mobile-toggle {
    display: block;
  }
  .admission-card {
    margin: 0 0.75rem;
  }
  .wizard-header {
    padding: 1.5rem 1.25rem;
  }
  .wizard-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 0.75rem;
    padding: 1.25rem 1rem;
  }
  .wizard-step {
    flex: 1 1 auto;
  }
  .wizard-body {
    padding: 1.5rem 1.25rem;
  }
  .application-review-list {
    grid-template-columns: 1fr;
  }
  .wizard-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }
  .wizard-footer .btn {
    flex: 1 1 100%;
  }
  .nav-menu {
    display: none !important;
    position: fixed;
    top: 64px;
    left: -100%;
    width: min(100%, 480px);
    height: calc(100vh - 64px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem 1.2rem;
    overflow-y: auto;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }
  .nav-menu.active {
    display: flex !important;
    left: 0;
  }
  .nav-item.dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-item.dropdown .dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }
  .dropdown-menu,
  .dropdown-content {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 1px solid var(--border-light) !important;
    background: var(--bg-alt) !important;
    border-radius: var(--radius-sm) !important;
    margin-top: 0.3rem !important;
    padding: 0.3rem 0 !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    /* Keep dropdown hidden initially */
    display: none !important;
  }
  .nav-item.dropdown.active .dropdown-menu,
  .nav-item.dropdown.active .dropdown-content,
  .nav-item.dropdown.open .dropdown-menu,
  .nav-item.dropdown.open .dropdown-content {
    display: block !important;
  }
  .features-grid,
  .courses-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .wizard-steps {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 1rem;
  }
  .navbar {
    gap: 0.75rem;
  }
  .logo-brand {
    max-width: 160px;
  }
  .nav-actions {
    gap: 0.4rem;
    margin-left: auto;
  }
  .nav-actions .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.7rem;
  }
  .nav-actions .btn-outline-navy {
    display: none;
  }
  .mobile-toggle {
    font-size: 1.3rem;
  }
  .admission-card {
    margin: 0 0.35rem;
    border-radius: 14px;
  }
  .wizard-header {
    padding: 1.25rem 1rem;
  }
  .wizard-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0.75rem 0.5rem;
    gap: 0.35rem;
  }
  .wizard-step {
    display: none;
    min-width: 0;
  }
  .wizard-step.active {
    display: flex;
    width: auto;
  }
  .wizard-step.active .step-label {
    display: none;
  }
  .step-label {
    font-size: 0.74rem;
  }
  .wizard-body {
    padding: 1rem;
  }
  .application-review {
    padding: 1rem;
  }
  .wizard-footer {
    padding: 0.75rem 1rem 1rem;
  }
  .course-thumb {
    height: 170px;
  }
  .course-level {
    font-size: 1.2rem;
  }
  .course-body {
    padding: 1.2rem;
  }
  .course-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer {
    padding-top: 4rem;
  }
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    text-align: left;
  }
  .footer-legal-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .logo-brand {
    max-width: 140px;
  }
  .nav-actions .btn-primary {
    padding: 0.45rem 0.7rem;
    font-size: 0.68rem;
  }
  .nav-menu {
    width: 100%;
    padding: 1.2rem 1rem;
  }
  .nav-link {
    font-size: 0.92rem;
  }
}
