/**
 * UKCoSA Global — PhD Mentorship Platform
 * Main Brand Stylesheet (assets/css/ukcosa.css)
 * Matching UKCoSA Global brand palette:
 * - UK Blue: #0072ce
 * - CoSA Navy: #1d4e89
 * - Global Green: #009444
 * - Highlight Orange: #f47920
 */

:root {
  --ukcosa-blue: #0072ce;
  --ukcosa-navy: #1d4e89;
  --ukcosa-green: #009444;
  --ukcosa-orange: #f47920;
  
  --ukcosa-blue-light: #e6f3fc;
  --ukcosa-navy-dark: #0f2747;
  --ukcosa-green-light: #eaf8f0;
  --ukcosa-orange-light: #fef3e9;
  
  --bg-slate-50: #f8fafc;
  --bg-slate-100: #f1f5f9;
  --border-slate-200: #e2e8f0;
  --text-slate-900: #0f172a;
  --text-slate-700: #334155;
  --text-slate-500: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-slate-900);
  background-color: var(--bg-slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--ukcosa-navy);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--ukcosa-navy-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-slate-700); }

/* Navigation Bar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-brand-title {
  display: flex;
  flex-direction: column;
}

.nav-brand-title strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ukcosa-navy);
  letter-spacing: -0.5px;
}

.nav-brand-title span {
  font-size: 0.72rem;
  color: var(--ukcosa-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-slate-700);
  transition: color 0.15s ease;
  padding: 8px 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--ukcosa-blue);
}

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

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  max-width: 360px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px -6px rgba(15, 23, 42, 0.22), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-slate-200);
  padding: 8px;
  margin-top: 6px;
  list-style: none;
  z-index: 99999;
}

/* Invisible bridge so mouse movement doesn't close menu */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-slate-700);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: normal;
  margin-bottom: 2px;
}

.nav-dropdown-item:last-child {
  margin-bottom: 0;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background: #f0f7ff;
}

.dropdown-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-text {
  flex: 1;
}

.dropdown-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ukcosa-navy);
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
}

.nav-dropdown-item:hover .dropdown-text strong {
  color: var(--ukcosa-blue);
}

.dropdown-text span {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
  font-weight: normal;
}

.nav-dropdown-item.active {
  background: #e0f2fe;
}

.nav-dropdown-item.active .dropdown-text strong {
  color: #0369a1;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--ukcosa-blue);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: #005ba8;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--ukcosa-navy) !important;
  border-color: var(--border-slate-200);
}

.btn-secondary:hover {
  background-color: var(--bg-slate-100);
  border-color: #cbd5e1;
}

.btn-green {
  background-color: var(--ukcosa-green);
  color: #ffffff !important;
}

.btn-green:hover {
  background-color: #007a37;
}

.btn-orange {
  background-color: var(--ukcosa-orange);
  color: #ffffff !important;
}

.btn-orange:hover {
  background-color: #d96312;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff !important;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-blue { background: var(--ukcosa-blue-light); color: var(--ukcosa-blue); }
.badge-green { background: var(--ukcosa-green-light); color: var(--ukcosa-green); }
.badge-orange { background: var(--ukcosa-orange-light); color: var(--ukcosa-orange); }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-red { background: #fee2e2; color: #dc2626; }

/* Verified Badge */
.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ukcosa-green);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  padding: 70px 0 60px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f6fcf8 100%);
  border-bottom: 1px solid var(--border-slate-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-slate-200);
}

.hero-stat-item h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ukcosa-navy);
  margin-bottom: 2px;
}

.hero-stat-item p {
  font-size: 0.82rem;
  color: var(--text-slate-500);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.hero-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-slate-200);
}

/* Section styling */
.section {
  padding: 70px 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-header .sub-tag {
  color: var(--ukcosa-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Cards */
.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-slate-200);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Mentor Card */
.mentor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 4px solid var(--ukcosa-blue);
}

.mentor-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.mentor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ukcosa-blue-light);
}

.mentor-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ukcosa-navy);
  margin-bottom: 2px;
}

.mentor-institution {
  font-size: 0.88rem;
  color: var(--ukcosa-blue);
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

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

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--border-slate-200);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-slate-900);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--ukcosa-blue);
  box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.15);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Portal Layout */
.portal-layout {
  display: flex;
  min-height: calc(100vh - 76px);
}

.portal-sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--border-slate-200);
  padding: 24px 0;
  flex-shrink: 0;
}

.portal-nav {
  list-style: none;
}

.portal-nav-item {
  margin-bottom: 4px;
}

.portal-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-slate-700);
  transition: all 0.2s;
}

.portal-nav-link:hover, .portal-nav-link.active {
  color: var(--ukcosa-blue);
  background-color: var(--ukcosa-blue-light);
  border-left: 4px solid var(--ukcosa-blue);
}

.portal-content {
  flex: 1;
  padding: 30px;
  background-color: var(--bg-slate-50);
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-slate-200);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.table th {
  background-color: var(--bg-slate-100);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-slate-500);
  border-bottom: 1px solid var(--border-slate-200);
}

.table td {
  padding: 14px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-slate-200);
  color: var(--text-slate-700);
}

.table tr:hover td {
  background-color: #fafbfc;
}

/* Footer */
.footer {
  background-color: var(--ukcosa-navy-dark);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid #1e3a5f;
}

.footer h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer a {
  color: #94a3b8;
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #1e3a5f;
  text-align: center;
  font-size: 0.85rem;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: 30px;
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* Hero Video & Media Enhancements */
.hero-video-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.25), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 18px;
}

.hero-video-container video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
  object-fit: cover;
  background: #000;
}

.video-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.video-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Comparison Table Styling */
.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-slate-200);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th {
  padding: 16px 20px;
  font-weight: 700;
  border-bottom: 2px solid var(--border-slate-200);
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-slate-200);
  vertical-align: top;
  line-height: 1.6;
}

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

.comparison-table .highlight-col {
  background: #f0f7ff;
  border-left: 2px solid var(--ukcosa-blue);
  border-right: 2px solid var(--ukcosa-blue);
}

.comparison-table th.highlight-col {
  background: var(--ukcosa-blue);
  color: #ffffff;
  border-left: 2px solid var(--ukcosa-blue);
  border-right: 2px solid var(--ukcosa-blue);
}

/* =============================================================================
   Comprehensive Mobile & Tablet Responsiveness Engine
   ============================================================================= */

/* Top Info Bar */
.top-info-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-info-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-info-address {
  display: flex;
  align-items: center;
}
.top-info-contact {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.top-info-contact a {
  color: #cbd5e1;
  text-decoration: none;
}
.top-info-contact a:hover {
  color: #ffffff;
}

/* 1. Breakpoint: Small Laptops / Tablets Landscape (max-width: 1200px) */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
  .nav-menu { gap: 12px; }
  .nav-link { font-size: 0.85rem; padding: 6px 2px; }
  .nav-brand-title span { display: none; }
  .hero-grid { gap: 32px; }
}

/* 2. Breakpoint: Tablets Portrait & Small Landscape (max-width: 992px) */
@media (max-width: 992px) {
  .container { max-width: 720px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  
  /* Portal Responsive Layout */
  .portal-layout { flex-direction: column; }
  .portal-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-slate-200);
    padding: 12px 0;
  }
  .portal-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 8px;
    gap: 8px;
    scrollbar-width: thin;
  }
  .portal-nav::-webkit-scrollbar {
    height: 4px;
  }
  .portal-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
  .portal-nav-item {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .portal-nav-link {
    padding: 8px 14px;
    font-size: 0.84rem;
    white-space: nowrap;
    border-radius: 20px;
    border-left: none !important;
    border: 1px solid var(--border-slate-200);
    background: #ffffff;
  }
  .portal-nav-link:hover, .portal-nav-link.active {
    background: var(--ukcosa-blue);
    color: #ffffff;
    border-color: var(--ukcosa-blue);
  }
  .portal-content {
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* 3. Breakpoint: Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  
  /* Top info bar compact for mobile */
  .top-info-address { display: none !important; }
  .top-info-contact {
    width: 100%;
    justify-content: center;
    gap: 12px;
    font-size: 0.74rem;
  }

  /* Typography Scaling */
  h1, [style*="font-size:2.8rem"], [style*="font-size: 2.8rem"],
  [style*="font-size:2.75rem"], [style*="font-size: 2.75rem"] {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  [style*="font-size:2.1rem"], [style*="font-size: 2.1rem"] {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }
  h2 { font-size: 1.45rem !important; }
  h3 { font-size: 1.2rem !important; }
  p { font-size: 0.95rem; line-height: 1.6; }

  /* Sections & Spacing */
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 28px; }
  .hero-section { padding: 32px 0 24px; }
  .hero-grid { gap: 20px; }
  .hero-card { padding: 18px 14px; border-radius: 12px; }

  /* All Grids collapse to single column on phones */
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Hero stats responsive */
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
  }
  .hero-stat-item h3 {
    font-size: 1.3rem;
  }
  .hero-stat-item p {
    font-size: 0.72rem;
  }

  /* Buttons & CTAs */
  .btn-lg {
    padding: 12px 18px;
    font-size: 0.92rem;
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 8px;
  }
  .hero-actions-wrapper {
    flex-direction: column;
    width: 100%;
  }

  /* Form Elements prevent iOS auto-zoom */
  .form-control, select.form-control, textarea.form-control, input[type="text"], input[type="email"], input[type="password"] {
    font-size: 16px !important;
  }

  /* Modals */
  .modal-box {
    width: 94%;
    max-width: 94%;
    padding: 20px 16px;
    margin: 10px auto;
  }

  /* Tables */
  .table-responsive {
    border-radius: 8px;
    border: 1px solid var(--border-slate-200);
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .table th, .table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* 4. Breakpoint: Compact Smartphones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-brand-title strong {
    font-size: 1.05rem;
  }
  .nav-logo {
    height: 38px;
  }
  .top-info-contact {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}



/* ==========================================================================
   UKCoSA Modern Floating & Dynamic Elevation Engine (Global)
   ========================================================================== */

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(0.4deg); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(7px) rotate(-0.4deg); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes uniMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.floating-slow { animation: floatSlow 6s ease-in-out infinite; }
.floating-reverse { animation: floatReverse 7s ease-in-out infinite; }
.floating-gentle { animation: floatGentle 5s ease-in-out infinite; }

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 2s infinite;
}

.gradient-headline {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 60%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-subheadline {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism & Elevation */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
}

/* Floating Action Buttons */
.btn-floating-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-floating-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.45);
  color: #ffffff !important;
}

.btn-floating-secondary {
  background: #ffffff;
  color: #1e293b !important;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-floating-secondary:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* University Marquee Ribbon */
.uni-marquee-section {
  background: #ffffff;
  padding: 30px 0 34px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.uni-marquee-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  font-weight: 800;
  margin-bottom: 0;
}

.uni-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  padding: 12px 0;
}

.uni-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: uniMarqueeScroll 95s linear infinite;
  will-change: transform;
}

.uni-marquee-track:hover {
  animation-play-state: paused;
}

.uni-pill-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 220px;
}

.uni-pill-card:hover {
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.uni-pill-img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.uni-pill-content {
  display: flex;
  flex-direction: column;
}

.uni-pill-name {
  color: #0f2b46;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.uni-pill-sub {
  font-size: 0.70rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* Step Cards & Timeline */
.timeline-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.step-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
  border-color: #60a5fa;
}

.step-number-bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

/* Mentor Profile Cards */
.mentor-glass-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mentor-glass-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 25px 45px -12px rgba(37, 99, 235, 0.18);
  border-color: #60a5fa;
}

/* Floating Bottom Dock */
.floating-bottom-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45);
  animation: floatGentle 5s ease-in-out infinite;
}

@media (max-width: 640px) {
  .floating-bottom-dock {
    bottom: 16px;
    right: 14px;
    left: 14px;
    justify-content: space-between;
    padding: 8px 14px;
  }
}
