/* ==========================================================================
   MODULUS INTELLIMIND MODERN DESIGN SYSTEM & MOBILE-FIRST APP STYLES
   Engineered for 99+ Lighthouse Scores (Performance, A11y, Best Practices, SEO)
   ========================================================================== */

:root {
  --im-navy-900: #0a1128;
  --im-navy-800: #101d42;
  --im-navy-700: #1c2e63;
  --im-blue-600: #1d4ed8;
  --im-blue-500: #2563eb;
  --im-blue-400: #3b82f6;
  --im-blue-50:  #eff6ff;
  --im-gold-600: #d97706;
  --im-gold-500: #f59e0b;
  --im-gold-400: #fbbf24;
  --im-gold-50:  #fffbeb;
  --im-emerald-600: #059669;
  --im-emerald-500: #10b981;
  --im-emerald-50:  #ecfdf5;
  --im-slate-900: #0f172a;
  --im-slate-800: #1e293b;
  --im-slate-700: #334155;
  --im-slate-600: #475569;
  --im-slate-500: #64748b;
  --im-slate-400: #94a3b8;
  --im-slate-200: #e2e8f0;
  --im-slate-100: #f1f5f9;
  --im-slate-50:  #f8fafc;
  --im-white:     #ffffff;

  --im-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --im-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --im-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --im-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --im-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --im-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --im-radius-sm: 6px;
  --im-radius-md: 10px;
  --im-radius-lg: 16px;
  --im-radius-xl: 24px;
  --im-radius-full: 9999px;
  --im-container: 1240px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--im-font-sans);
  background-color: var(--im-slate-50);
  color: var(--im-slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 72px; /* Space for mobile app bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--im-blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--im-blue-500);
}

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

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--im-gold-400);
  outline-offset: 2px;
}

/* Skip Link for Keyboard / Screen Readers */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--im-gold-500);
  color: var(--im-navy-900);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: var(--im-radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 15px;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
  color: var(--im-slate-900);
  font-family: var(--im-font-heading);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.35rem; }
  h3 { font-size: 1.65rem; }
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-blue-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.im-container {
  max-width: var(--im-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.im-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (min-width: 992px) {
  .im-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.im-section-sm {
  padding-top: 40px;
  padding-bottom: 40px;
}

.im-section-dark {
  background-color: var(--im-navy-900);
  color: var(--im-slate-200);
}

.im-section-slate {
  background-color: #f1f5f9;
}

.im-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.im-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--im-blue-50);
  color: var(--im-blue-600);
  padding: 6px 16px;
  border-radius: var(--im-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.im-section-badge.gold {
  background-color: var(--im-gold-50);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.25);
}

.im-section-badge.emerald {
  background-color: var(--im-emerald-50);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.25);
}

.im-section-title {
  margin-bottom: 12px;
}

.im-section-desc {
  font-size: 1.1rem;
  color: var(--im-slate-600);
  margin-bottom: 0;
}

.im-section-dark .im-section-desc {
  color: var(--im-slate-400);
}

/* Top Announcement Ticker Bar */
.im-announcement-bar {
  background: linear-gradient(90deg, #0a1128 0%, #1e293b 50%, #0a1128 100%);
  color: #fef08a;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.im-announcement-bar .badge {
  background: var(--im-gold-500);
  color: var(--im-navy-900);
  padding: 2px 8px;
  border-radius: var(--im-radius-full);
  font-weight: 800;
  font-size: 0.75rem;
  margin-right: 8px;
}

/* Header & Navbar */
.im-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--im-slate-200);
}

.im-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.im-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.im-brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.im-brand-text {
  display: flex;
  flex-direction: column;
}

.im-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--im-navy-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.im-brand-title span {
  color: var(--im-gold-500);
}

.im-brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--im-blue-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Desktop Navigation Menu */
.im-nav-menu {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .im-nav-menu {
    display: flex;
  }
}

.im-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--im-slate-700);
  border-radius: var(--im-radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.im-nav-link:hover, .im-nav-link.active {
  color: var(--im-blue-600);
  background-color: var(--im-blue-50);
}

.im-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.im-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--im-radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1;
  min-height: 48px;
  touch-action: manipulation;
}

.im-btn-primary {
  background: linear-gradient(135deg, var(--im-gold-500) 0%, #d97706 100%);
  color: var(--im-navy-900);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.im-btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, var(--im-gold-500) 100%);
  color: var(--im-navy-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.im-btn-blue {
  background: linear-gradient(135deg, var(--im-blue-500) 0%, var(--im-blue-600) 100%);
  color: var(--im-white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.im-btn-blue:hover {
  color: var(--im-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.im-btn-outline {
  background: transparent;
  color: var(--im-slate-800);
  border: 1.5px solid var(--im-slate-200);
}

.im-btn-outline:hover {
  background: var(--im-slate-100);
  color: var(--im-navy-900);
}

.im-btn-outline-white {
  background: transparent;
  color: var(--im-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.im-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--im-white);
  border-color: var(--im-white);
}

.im-btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.im-btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--im-radius-lg);
}

/* Mobile Bottom Navigation Bar (App Experience) */
.im-mobile-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--im-white);
  border-top: 1px solid var(--im-slate-200);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1050;
}

@media (min-width: 992px) {
  .im-mobile-tab-bar {
    display: none;
  }
}

.im-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--im-slate-600);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  gap: 3px;
  padding: 6px 10px;
  flex: 1;
  min-height: 48px;
  min-width: 48px;
  touch-action: manipulation;
  transition: color 0.2s ease;
}

.im-tab-item.active {
  color: var(--im-blue-600);
}

.im-tab-item.highlight {
  color: #b45309;
}

.im-tab-item svg {
  width: 22px;
  height: 22px;
}

/* Hero Section */
.im-hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
              var(--im-navy-900);
  color: var(--im-white);
  padding: 50px 0 70px 0;
  overflow: hidden;
}

.im-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--im-slate-50), transparent);
  pointer-events: none;
}

.im-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .im-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.im-hero-content h1 {
  color: var(--im-white);
  margin-bottom: 20px;
}

.im-hero-lead {
  font-size: 1.15rem;
  color: var(--im-slate-300);
  margin-bottom: 30px;
  line-height: 1.6;
}

.im-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.im-pill-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: var(--im-radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--im-slate-200);
}

.im-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Hero Quick Card */
.im-hero-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--im-radius-xl);
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.im-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.im-card-head h3 {
  color: var(--im-white);
  margin: 0;
  font-size: 1.25rem;
}

.im-stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.im-stat-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--im-radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.im-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--im-gold-400);
  line-height: 1.1;
  margin-bottom: 4px;
}

.im-stat-label {
  font-size: 0.78rem;
  color: var(--im-slate-300);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Metrics Banner Bar */
.im-metrics-strip {
  background: var(--im-white);
  border-bottom: 1px solid var(--im-slate-200);
  padding: 24px 0;
}

.im-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .im-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.im-metric-block h4 {
  font-size: 2rem;
  color: var(--im-navy-900);
  margin-bottom: 2px;
}

.im-metric-block p {
  font-size: 0.88rem;
  color: var(--im-slate-500);
  font-weight: 600;
  margin: 0;
}

/* Feature Grid Cards */
.im-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .im-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .im-card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .im-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.im-card {
  background: var(--im-white);
  border-radius: var(--im-radius-lg);
  padding: 30px;
  box-shadow: var(--im-shadow-sm);
  border: 1px solid var(--im-slate-200);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.im-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--im-shadow-lg);
  border-color: var(--im-blue-400);
}

.im-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--im-radius-md);
  background: var(--im-blue-50);
  color: var(--im-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.im-card-icon.gold {
  background: var(--im-gold-50);
  color: var(--im-gold-600);
}

.im-card-icon.emerald {
  background: var(--im-emerald-50);
  color: var(--im-emerald-600);
}

.im-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.im-card p {
  color: var(--im-slate-600);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Scholarship Slabs Matrix Table */
.im-table-wrapper {
  background: var(--im-white);
  border-radius: var(--im-radius-lg);
  overflow: hidden;
  box-shadow: var(--im-shadow-sm);
  border: 1px solid var(--im-slate-200);
}

.im-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.im-table th {
  background-color: var(--im-navy-900);
  color: var(--im-white);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.im-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--im-slate-200);
  font-size: 0.95rem;
}

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

.im-table tbody tr:hover {
  background-color: var(--im-slate-50);
}

.im-badge-scholarship {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--im-radius-full);
  font-weight: 800;
  font-size: 0.85rem;
}

.im-badge-100 {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.im-badge-90 {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.im-badge-75 {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

/* Tabs & Filter System */
.im-tabs-nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--im-slate-200);
  -webkit-overflow-scrolling: touch;
}

.im-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--im-slate-600);
  border-radius: var(--im-radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 48px;
  touch-action: manipulation;
}

.im-tab-btn:hover {
  color: var(--im-blue-600);
  background-color: var(--im-slate-100);
}

.im-tab-btn.active {
  color: var(--im-white);
  background-color: var(--im-blue-600);
}

/* FAQ Accordion */
.im-faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.im-faq-item {
  background: var(--im-white);
  border: 1px solid var(--im-slate-200);
  border-radius: var(--im-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.im-faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--im-slate-900);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  min-height: 48px;
  touch-action: manipulation;
}

.im-faq-question:hover {
  color: var(--im-blue-600);
}

.im-faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.im-faq-item.open .im-faq-icon {
  transform: rotate(180deg);
}

.im-faq-answer {
  display: none;
  padding: 0 24px 20px 24px;
  font-size: 0.95rem;
  color: var(--im-slate-600);
  line-height: 1.65;
}

.im-faq-item.open .im-faq-answer {
  display: block;
}

/* Test Centers Grid */
.im-center-card {
  background: var(--im-white);
  border-radius: var(--im-radius-lg);
  padding: 24px;
  border: 1px solid var(--im-slate-200);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--im-shadow-sm);
}

.im-center-code {
  display: inline-block;
  background: var(--im-blue-50);
  color: var(--im-blue-600);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--im-radius-sm);
  margin-bottom: 12px;
}

.im-center-card h4 {
  margin-bottom: 8px;
}

.im-center-card p {
  color: var(--im-slate-600);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Registration Form Card */
.im-form-card {
  background: var(--im-white);
  border-radius: var(--im-radius-xl);
  padding: 36px 30px;
  box-shadow: var(--im-shadow-lg);
  border: 1px solid var(--im-slate-200);
}

@media (min-width: 768px) {
  .im-form-card {
    padding: 48px;
  }
}

.im-form-group {
  margin-bottom: 20px;
}

.im-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--im-slate-800);
  margin-bottom: 6px;
}

.im-form-label .required {
  color: #dc2626;
}

.im-form-control {
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--im-slate-900);
  background-color: var(--im-white);
  border: 1.5px solid var(--im-slate-300);
  border-radius: var(--im-radius-md);
  transition: all 0.2s ease;
}

.im-form-control:focus {
  border-color: var(--im-blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

.im-form-control::placeholder {
  color: var(--im-slate-400);
}

.im-otp-group {
  display: flex;
  gap: 12px;
}

.im-otp-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Toppers & Hall of Fame */
.im-topper-card {
  background: var(--im-white);
  border-radius: var(--im-radius-lg);
  overflow: hidden;
  border: 1px solid var(--im-slate-200);
  box-shadow: var(--im-shadow-sm);
  text-align: center;
  padding: 24px 20px;
}

.im-topper-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px auto;
  border: 3px solid var(--im-gold-400);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.im-topper-rank {
  display: inline-block;
  background: var(--im-navy-900);
  color: var(--im-gold-400);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--im-radius-full);
  margin-bottom: 8px;
}

.im-topper-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.im-topper-college {
  font-size: 0.85rem;
  color: var(--im-slate-500);
  font-weight: 600;
}

/* Footer */
.im-footer {
  background-color: var(--im-navy-900);
  color: var(--im-slate-300);
  padding-top: 60px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.im-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .im-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.im-footer-brand p {
  color: var(--im-slate-400);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 16px;
}

.im-footer h4 {
  color: var(--im-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.im-footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background-color: var(--im-gold-500);
  border-radius: 2px;
}

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

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

.im-footer-links a {
  color: var(--im-slate-300);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.im-footer-links a:hover {
  color: var(--im-gold-400);
  padding-left: 4px;
}

.im-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--im-slate-500);
}

@media (min-width: 768px) {
  .im-footer-bottom {
    flex-direction: row;
  }
}

/* Official Admit Card Printable Styles */
.im-admit-card {
  max-width: 820px;
  margin: 40px auto;
  background: #ffffff;
  border: 2px solid var(--im-navy-900);
  border-radius: var(--im-radius-md);
  padding: 32px;
  box-shadow: var(--im-shadow-md);
}

.im-admit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--im-navy-900);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.im-admit-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.im-admit-table td, .im-admit-table th {
  border: 1px solid var(--im-slate-300);
  padding: 10px 14px;
  font-size: 0.92rem;
}

.im-admit-table th {
  background-color: var(--im-slate-100);
  width: 25%;
  font-weight: 700;
  color: var(--im-slate-800);
}

@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .no-print, .im-header, .im-footer, .im-mobile-tab-bar, .im-announcement-bar {
    display: none !important;
  }
  .im-admit-card {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
