@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #23304b;
  background: #ffffff;
  font-synthesis: none;
  font-weight: 400;
  --brand: #142878;
  --brand-dark: #0e1d5b;
  --brand-light: #24439b;
  --accent: #dbe7ff;
  --accent-light: #edf3ff;
  --border: #dfe5f0;
  --text-muted: #65718a;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border: 0;
  color: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #5277dc;
  outline-offset: 4px;
}

svg {
  flex-shrink: 0;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
}

/* ==========================================================================
   MOBILE-FIRST CONTAINER
   ========================================================================== */
.container {
  width: calc(100% - 32px);
  max-width: 1240px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .container {
    width: calc(100% - 48px);
  }
}

@media (min-width: 1024px) {
  .container {
    width: min(1240px, calc(100% - 80px));
  }
}

/* ==========================================================================
   GOVERNMENT TOP BAR (Mobile First)
   ========================================================================== */
.government-bar {
  background: var(--brand-dark);
  color: #e4eaff;
  font-size: 11px;
}

.bar-inner {
  min-height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  gap: 12px;
}

.bar-inner > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.bar-separator {
  opacity: 0.35;
  margin: 0 8px;
}

.bar-inner a {
  display: none;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
}

@media (min-width: 640px) {
  .government-bar {
    font-size: 12px;
  }
  .bar-inner a {
    display: flex;
  }
  .bar-separator {
    margin: 0 14px;
  }
}

/* ==========================================================================
   NAVIGATION & HEADER (Mobile First)
   ========================================================================== */
header {
  background: #ffffff;
  border-bottom: 1px solid #eef2f8;
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow 0.2s ease;
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 1024px) {
  .nav-inner {
    height: 88px;
    gap: 28px;
  }
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 168px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 480px) {
  .brand-logo {
    width: 195px;
  }
}

@media (min-width: 1024px) {
  .brand-logo {
    width: 228px;
  }
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: grid;
  place-items: center;
  background: #eff3fc;
  border-radius: 4px;
  padding: 8px;
  min-width: 42px;
  min-height: 42px;
  color: var(--brand);
}

/* Mobile Navigation Drawer (Default) */
.nav-inner nav {
  display: none;
  position: fixed;
  top: 104px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 20px 24px 48px;
  box-shadow: 0 16px 32px rgba(16, 32, 100, 0.12);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 950;
  flex-direction: column;
}

.nav-inner nav.open {
  display: flex;
}

.nav-inner nav a {
  padding: 14px 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: #23304b;
  border-bottom: 1px solid #f1f4f9;
  display: flex;
  align-items: center;
}

.nav-inner nav a.active {
  color: var(--brand);
  font-weight: 700;
}

.mobile-nav-auth {
  display: block;
  padding-top: 18px;
  margin-top: 8px;
}

.mobile-auth-btn {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--brand);
  color: #ffffff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.mobile-portal-btn {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0f4fa;
  color: #102064;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid #d5dfef;
  margin-bottom: 10px;
}

.mobile-auth-btn.logout {
  background: #fdf2f2;
  color: #b91c1c;
  margin-top: 6px;
  border: 1px solid #fecaca;
}

/* Desktop Navigation (>= 1024px) */
@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
  .nav-inner nav {
    display: flex;
    position: static;
    flex-direction: row;
    height: 100%;
    gap: 24px;
    padding: 0;
    box-shadow: none;
    overflow-y: visible;
    background: transparent;
    font-size: 13.5px;
    align-items: center;
  }
  .nav-inner nav a {
    padding: 0;
    height: 100%;
    font-size: 13.5px;
    border-bottom: none;
    position: relative;
  }
  .nav-inner nav a.active:after {
    content: '';
    position: absolute;
    bottom: 22px;
    height: 2.5px;
    background: var(--brand);
    left: 0;
    right: 0;
    border-radius: 2px;
  }
  .mobile-nav-auth {
    display: none;
  }
}

/* Desktop Action Buttons */
.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: var(--brand);
  color: #ffffff;
  border-radius: 4px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s, transform 0.15s;
}

.button:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
}

.nav-button {
  padding: 11px 16px;
  font-size: 12.5px;
  gap: 10px;
}

.auth-nav-btn {
  background: #ffffff;
  border: 1px solid #c9d5ec;
  color: var(--brand);
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  transition: all 0.15s ease;
}

.auth-nav-btn:hover {
  background: var(--accent-light);
  border-color: var(--brand);
}

/* User Menu & Dropdown */
.user-menu-wrapper {
  position: relative;
}

.user-profile-btn {
  background: #f0f4fa;
  border: 1px solid #d5dfef;
  color: #102064;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  transition: all 0.15s ease;
}

.user-profile-btn:hover {
  background: #e4ecf9;
  border-color: var(--brand);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #dfe5f0;
  box-shadow: 0 12px 28px rgba(16, 32, 100, 0.15);
  border-radius: 6px;
  min-width: 220px;
  z-index: 1000;
  overflow: hidden;
  padding: 6px 0;
}

.user-dropdown-header {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-header strong {
  font-size: 13px;
  color: #102064;
}

.user-dropdown-header span {
  font-size: 11.5px;
  color: #65748c;
}

.user-dropdown-divider {
  height: 1px;
  background: #edf2fc;
  margin: 4px 0;
}

.user-dropdown-item {
  width: 100%;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #2b3954;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.user-dropdown-item:hover {
  background: #f4f7fc;
  color: var(--brand);
}

.user-dropdown-item.logout {
  color: #b91c1c;
}

.user-dropdown-item.logout:hover {
  background: #fdf2f2;
}

/* ==========================================================================
   HERO SECTION (Mobile First)
   ========================================================================== */
.hero {
  min-height: 480px;
  position: relative;
  background: var(--brand-dark);
  color: white;
  overflow: hidden;
}

.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url('https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?auto=format&fit=crop&w=2000&q=85') center 50%/cover;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(14, 29, 91, 0.94) 0%, rgba(14, 29, 91, 0.88) 100%);
}

@media (min-width: 768px) {
  .hero-shade {
    background: linear-gradient(90deg, rgba(14, 29, 91, 0.97) 0%, rgba(14, 29, 91, 0.88) 45%, rgba(14, 29, 91, 0.45) 75%, rgba(14, 29, 91, 0.2) 100%),
                linear-gradient(0deg, rgba(14, 29, 91, 0.4), transparent);
  }
}

.hero-content {
  position: relative;
  padding-top: 40px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .hero-content {
    padding-top: 64px;
    padding-bottom: 40px;
  }
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #4963a0;
  margin-bottom: 14px;
}

.eyebrow.light {
  color: #c4d6ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow.light > span {
  width: 18px;
  height: 1px;
  background: #c4d6ff;
}

h1 {
  font-size: clamp(26px, 6.8vw, 54px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: normal;
  color: #bbd1ff;
}

.hero-content > p {
  font-size: 14px;
  color: #e1e8f7;
  line-height: 1.7;
  margin-top: 18px;
  max-width: 640px;
}

@media (min-width: 768px) {
  .hero-content > p {
    font-size: 15.5px;
    line-height: 1.8;
    margin-top: 22px;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 26px;
}

@media (min-width: 540px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
}

.accent {
  background: var(--accent);
  color: #102064;
}

.accent:hover {
  background: #ffffff;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  justify-content: center;
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 11px;
  color: #c3cde3;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero-bottom {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
  }
}

.hero-bottom span:first-child {
  font-size: 9.5px;
  letter-spacing: 1.4px;
  color: #c4d6ff;
  font-weight: 700;
}

.image-caption {
  display: none;
}

@media (min-width: 1200px) {
  .image-caption {
    display: block;
    position: absolute;
    bottom: 30px;
    right: 50px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
  }
}

/* ==========================================================================
   QUICK LINKS SECTION (Mobile First)
   ========================================================================== */
.quick-section {
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px 0;
  border-bottom: 1px solid #e3e8f1;
}

.quick-link-btn {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e8eef6;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}

.quick-link-btn:last-child {
  border-bottom: 0;
}

.quick-icon {
  background: #eef3ff;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  color: #3f5ea5;
}

.quick-icon svg {
  width: 22px;
}

.quick-link-btn h2 {
  font-size: 14.5px;
  font-weight: 700;
}

.quick-link-btn p {
  font-size: 12px;
  color: #6c778d;
  margin-top: 4px;
}

.quick-link-btn > svg {
  margin-left: auto;
  width: 18px;
  color: #52699e;
}

@media (min-width: 768px) {
  .quick-section {
    grid-template-columns: repeat(3, 1fr);
    padding: 24px 0;
  }
  .quick-link-btn {
    padding: 6px 20px;
    border-right: 1px solid #e1e7f2;
    border-bottom: 0;
  }
  .quick-link-btn:first-child {
    padding-left: 0;
  }
  .quick-link-btn:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

/* ==========================================================================
   SECTIONS & HEADINGS (Mobile First)
   ========================================================================== */
.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .section {
    padding-top: 72px;
    padding-bottom: 68px;
  }
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .section-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 32px;
  }
}

h2 {
  font-size: clamp(24px, 5.5vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section-heading > p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   FILTERS & SEARCH (Mobile First)
   ========================================================================== */
.filter-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .filter-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters button {
  background: transparent;
  border: 1px solid #dfe5f0;
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 40px;
}

.filters button.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

.filter-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 600px) {
  .filter-tools {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

.country-select-wrapper {
  position: relative;
  width: 100%;
}

@media (min-width: 600px) {
  .country-select-wrapper {
    width: auto;
  }
}

.country-select {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff 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='%234963a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid #dfe5f0;
  border-radius: 5px;
  padding: 9px 34px 9px 13px;
  font-size: 13px;
  color: #233455;
  cursor: pointer;
  outline: 0;
  height: 42px;
  width: 100%;
}

@media (min-width: 600px) {
  .country-select {
    width: auto;
    min-width: 180px;
  }
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #77849b;
  border: 1px solid #dce3ef;
  border-radius: 5px;
  padding: 0 12px;
  height: 42px;
  background: #ffffff;
  width: 100%;
}

.search input {
  border: 0;
  outline: 0;
  padding: 9px 0;
  width: 100%;
  font-size: 13.5px;
  background: transparent;
  color: #233455;
}

@media (min-width: 600px) {
  .search {
    width: auto;
  }
  .search input {
    width: 220px;
  }
}

/* ==========================================================================
   SCHOLARSHIP GRID (True Mobile First: 1 col -> 2 cols -> 3 cols)
   ========================================================================== */
.scholarship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .scholarship-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .scholarship-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.scholarship {
  border: 1px solid #dfe5f0;
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.scholarship:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 40, 120, 0.08);
}

.card-top {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-top.blue { background: #edf2fc; }
.card-top.sand { background: #f2f4fa; }
.card-top.sky  { background: #eaf2fc; }

.country {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  font-weight: 700;
}

.emoji {
  font-size: 24px;
  letter-spacing: 0;
}

.card-body {
  padding: 20px 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.level {
  font-size: 10px;
  color: #466295;
  display: inline-block;
  background: #f0f4fc;
  padding: 5px 8px;
  border-radius: 3px;
  font-weight: 600;
  align-self: flex-start;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 12px 0 10px;
}

@media (min-width: 640px) {
  .card-body h3 {
    font-size: 20px;
  }
}

.card-body > p {
  font-size: 13px;
  color: #68748a;
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  margin-top: 18px;
  min-height: 56px;
  border-top: 1px solid #e4e9f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-footer > span {
  font-size: 11px;
  color: #727f96;
}

.view-edital-link {
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.view-edital-link:hover {
  background: #edf3ff;
  color: #24439b;
}

.all-scholarships {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .all-scholarships {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.all-scholarships p {
  font-size: 11.5px;
  color: #707b91;
}

.all-link-btn {
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--brand);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #d5dfef;
  transition: all 0.15s ease;
}

.all-link-btn:hover {
  background: #edf3ff;
  border-color: var(--brand);
}

/* ==========================================================================
   PAGINATION BAR (Mobile First)
   ========================================================================== */
.pagination-bar {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e4e9f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (min-width: 768px) {
  .pagination-bar {
    flex-direction: row;
    justify-content: space-between;
  }
}

.pagination-info {
  font-size: 12px;
  color: #6c7890;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-nav-btn {
  background: #ffffff;
  border: 1px solid #dfe5f0;
  color: #23304b;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-height: 38px;
}

.page-nav-btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
  background: #f4f7fc;
}

.page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 3px;
}

.page-num-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #4b5d7e;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.page-num-btn:hover {
  background: #edf2fc;
  color: var(--brand);
}

.page-num-btn.active {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.page-ellipsis {
  padding: 0 4px;
  color: #8c9cb8;
  font-size: 12px;
}

/* ==========================================================================
   ABOUT & GUIDANCE SECTIONS (Mobile First)
   ========================================================================== */
.about-section {
  background: #f4f6fc;
  padding: 48px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-section {
    padding: 72px 0;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

@media (min-width: 768px) {
  .about-visual img {
    height: 380px;
  }
}

.photo-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  border-left: 3px solid #3c60b9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

@media (min-width: 640px) {
  .photo-label {
    right: auto;
    max-width: 320px;
  }
}

.photo-label svg {
  color: #5d79b6;
}

.about-copy > p {
  font-size: 14px;
  line-height: 1.75;
  color: #63718a;
  margin-top: 16px;
}

.tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #dce3f0;
  margin-top: 20px;
  overflow-x: auto;
  white-space: nowrap;
}

.tabs button {
  background: transparent;
  font-size: 13px;
  padding: 0 0 10px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tabs button[aria-selected="true"] {
  border-color: #2649ad;
  font-weight: 700;
  color: var(--brand);
}

.about-copy p.tab-content {
  margin-top: 14px;
  font-size: 13.5px;
  min-height: 60px;
  line-height: 1.6;
}

.underlined {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  border-bottom: 1px solid #4c68a7;
  padding-bottom: 6px;
  margin-top: 16px;
  font-weight: 600;
}

/* Steps (Timeline) */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 40px;
  }
}

.steps article {
  border-top: 1px solid #dce3ef;
  padding-top: 18px;
}

.steps article > span {
  color: #7e97c5;
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 600;
}

.steps h3 {
  font-size: 17px;
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}

.steps p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #65748c;
}

/* Contact Banner */
.contact-banner {
  background: var(--brand);
  border-radius: 6px;
  color: white;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 48px;
  text-align: left;
}

@media (min-width: 768px) {
  .contact-banner {
    padding: 40px 48px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 68px;
  }
}

.contact-banner h2 {
  font-size: clamp(22px, 4.5vw, 32px);
}

.contact-banner .button {
  align-self: flex-start;
}

@media (max-width: 767px) {
  .contact-banner .button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   FOOTER (Mobile First)
   ========================================================================== */
footer {
  border-top: 1px solid #e3e8f2;
  padding-top: 40px;
  background: #ffffff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

@media (min-width: 640px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 36px;
  }
}

.footer-main p {
  font-size: 12.5px;
  color: #6c7890;
  line-height: 1.7;
  margin-top: 14px;
}

.footer-main h3 {
  font-size: 13.5px;
  margin: 0 0 16px;
  color: #102064;
}

.footer-main > div > a:not(.brand),
.footer-main > div > span {
  font-size: 12.5px;
  color: #66748c;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #e2e8f2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  font-size: 11px;
  color: #728099;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Toast Notification */
.user-toast-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #102064;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

@media (min-width: 540px) {
  .user-toast-banner {
    left: auto;
    right: 24px;
    max-width: 380px;
  }
}

/* Accessibility */
.skip-link {
  position: fixed;
  left: 15px;
  top: -100px;
  z-index: 1000;
  background: white;
  padding: 12px 18px;
  border: 2px solid var(--brand);
}

.skip-link:focus {
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
