:root {
  --south-navy: #061a3d;
  --south-navy-deep: #002f86;
  --south-orange: #f38a00;
  --south-orange-hover: #c97000;
  --south-dark: #12243d;
  --south-gray: #f4f7fa;
  --south-light-bg: #f4f7fa;
  --south-border: #dfe8f1;
  --south-text: #1c3558;
  --south-white: #ffffff;
  --south-danger: #d92d20;
  --south-success: #1fcb65;
  --south-teal: #17a4b5;
  --field-shadow: 0 0.1rem 0.5rem rgba(6, 26, 61, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--south-dark);
  background: var(--south-white);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(243, 138, 0, 0.7);
  outline-offset: 2px;
}

.navbar {
  background-color: var(--south-white);
  border-bottom: 1px solid rgba(13, 53, 83, 0.1);
}

.navbar > .container-fluid {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 88px;
  line-height: 0;
  max-width: 100%;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.navbar-brand img {
  display: block;
  height: auto;
  width: auto;
  object-fit: contain;
  line-height: 0;
  vertical-align: middle;
}

.navbar-brand .south-university-logo {
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 64px;
  display: block;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
  margin: 0;
  position: static;
  left: auto;
}

.navbar-brand .publisher-logo {
  height: auto;
  max-height: 52px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-divider {
  height: 32px;
  width: 1px;
  background: rgba(6, 26, 61, 0.25);
  margin: 0;
  flex-shrink: 0;
}
.hero-tagline {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.footnote-link {
  color: var(--south-orange);
  text-decoration: underline;
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
}
.footnote-link:hover,
.footnote-link:focus-visible {
  color: var(--south-orange-hover);
}

.hero-shell {
  background-color: var(--south-navy);
  background-image: linear-gradient(90deg, rgba(6, 26, 61, 0.96), rgba(0, 47, 134, 0.78)), url('/images/south-university-hero-flipped.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 2.5rem 1rem;
}

.hero-copy {
  color: #f7f8f9;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 3vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-copy h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.7rem);
  line-height: 1.4;
  font-weight: 300;
}

.container { width: 100%; margin-right: auto; margin-left: auto; padding-right: 12px; padding-left: 12px; }
.row { display: flex; flex-wrap: wrap; margin-right: -12px; margin-left: -12px; }
.row > * { width: 100%; max-width: 100%; padding-right: 12px; padding-left: 12px; }
.col-12 { flex: 0 0 auto; width: 100%; }
.col-md-2, .col-md-4, .col-md-5, .col-md-6, .col-md-7 { flex: 0 0 auto; }
.text-center { text-align: center !important; }
.text-md-end { text-align: left; }
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.gap-3 { gap: 1rem !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.p-0 { padding: 0 !important; }
.text-decoration-none { text-decoration: none !important; }
.btn-link { color: var(--south-navy-deep); background: transparent; border: 0; }
.fw-bold { font-weight: 700 !important; }
.fs-5 { font-size: 1.25rem !important; }
.h4 { font-size: 1.5rem; }

.form-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(13, 53, 83, 0.08);
  border-radius: 1rem;
  box-shadow: var(--field-shadow);
  padding: 2rem 1.5rem;
}

.form-card .badge-row {
  text-align: center;
  margin-bottom: 1rem;
  color: #69696a;
  font-size: 0.95rem;
}

.form-card .badge-row svg {
  color: var(--south-success);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--south-dark);
  margin-bottom: 0.45rem;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(13, 53, 83, 0.2);
  border-radius: 0.5rem;
  background-color: var(--south-white);
  color: var(--south-dark);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(243, 138, 0, 0.9);
  box-shadow: 0 0 0 0.2rem rgba(243, 138, 0, 0.18);
}

.btn-primary {
  background-color: var(--south-orange);
  color: var(--south-white);
  border: 1px solid var(--south-orange);
  border-radius: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  min-height: 48px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--south-orange-hover);
  border-color: var(--south-orange-hover);
  color: var(--south-white);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-button-row {
  text-align: center;
  margin-top: 1.5rem;
}

.form-step {
  display: none;
}

.form-step.is-visible {
  display: block;
}

.form-step-label {
  text-align: center;
  margin: 0 0 1rem;
  color: rgb(112, 112, 112);
  font-size: 0.9rem;
}

.error-message,
.field-status,
.status-message {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  min-height: 1.2rem;
}

.error-message,
.field-status.is-error,
.status-message.is-error {
  color: var(--south-danger);
}

.status-message.is-success {
  color: var(--south-success);
}

.input-group {
  display: flex;
  align-items: center;
}

.input-group .input-group-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  background: #f3f5f7;
  border: 1px solid rgba(13, 53, 83, 0.2);
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  color: var(--south-dark);
}

.input-group .form-control {
  border-radius: 0 0.5rem 0.5rem 0;
}

h2.section-title {
  margin: 0;
  color: var(--south-dark);
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.2;
  font-weight: 700;
}

.healthcare-programs {
  background-color: #f5f5f5;
  padding: 4rem 0;
}

.programs-heading {
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--south-navy);
  margin-bottom: 1.5rem;
  width: 100%;
}

.text-accent {
  color: var(--south-navy-deep);
}

.healthcare-programs .row.justify-content-center .col-lg-10,
.healthcare-programs .row.justify-content-center .col-xl-9 {
  flex: 0 0 100%;
  max-width: 100%;
}

.program-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  row-gap: 1.5rem;
  column-gap: 1.25rem;
}

#program-card-list > [class*='col-'] {
  display: flex;
  padding-bottom: 0.5rem;
}

.program-card {
  background: var(--south-white);
  border: 1px solid var(--south-border);
  border-radius: 14px;
  padding: 32px 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  height: 250px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.healthcare-programs .container {
  max-width: 1200px;
}

.healthcare-programs .row {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.program-card .program-icon {
  font-size: 2.6rem;
  line-height: 1;
  color: var(--south-orange);
}

.program-title {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--south-navy);
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  width: 100%;
}

.program-card .program-link,
.program-card .get-more-info,
.program-card .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 210px;
  min-height: 52px;
  margin: auto auto 0;
  padding: 12px 18px;
  box-sizing: border-box;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.why-choose {
  padding: 3rem 0 4rem;
  background: #f6f9fb;
}

.value-title {
  margin-bottom: 1.5rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--south-white);
  border: 1px solid var(--south-border);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(6, 26, 61, 0.05);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.value-card-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(23, 164, 181, 0.12);
  color: var(--south-navy-deep);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.value-card-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.value-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--south-dark);
}

.why-choose .feature {
  padding: 1.5rem 1rem;
}

.why-choose .feature img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.why-choose .feature h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  line-height: 1.3;
  color: var(--south-dark);
  margin-bottom: 0.8rem;
}

.why-choose .feature hr {
  margin: 0 auto 0.25rem;
  width: 50%;
  border: none;
  height: 4px;
  background: var(--south-teal);
  opacity: 1;
}

.accreditation-band {
  background-color: var(--south-navy);
  color: #f5f5f5;
  padding: 3rem 0 3.5rem;
}

.accreditation-band .step-card {
  padding: 1.25rem 1rem;
  border-top: 3px solid var(--south-orange);
  text-align: left;
}

.accreditation-band .step-number {
  color: var(--south-orange);
  font-weight: 700;
  font-size: 0.9rem;
}

.accreditation-band .step-card h3 {
  margin: 0.6rem 0;
  font-size: 1.15rem;
}

.accreditation-band .step-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.accreditation-band .statement {
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.5;
  font-weight: 700;
  color: var(--south-orange);
  text-align: center;
}

.accreditation-band .feature-copy {
  font-size: 1.1rem;
  line-height: 1.6;
}

.accreditation-band .feature-copy strong {
  font-weight: 700;
}

.site-footer {
  background-color: var(--south-light-bg);
  padding: 3rem 0;
}

.legal-info {
  background-color: var(--south-white);
  border-top: 1px solid var(--south-border);
  padding: 2.5rem 0 1rem;
}

.legal-content {
  color: var(--south-text);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-content p {
  margin: 0 0 0.9rem;
}

.legal-content a {
  color: var(--south-navy-deep);
  text-decoration: underline;
}

.footer-text,
.footer-copy,
.footer-powered {
  color: var(--south-text);
  font-size: 1rem;
  line-height: 1.55;
}

.footer-copy {
  font-weight: 700;
  color: var(--south-navy);
}

.footer-link,
.footer-brand {
  color: var(--south-text);
  text-decoration: underline;
}

.footer-brand {
  font-weight: 700;
  color: var(--south-navy);
}

.footer-divider {
  height: 5px;
  width: 100%;
  background-image: linear-gradient(to right, #061a3d, #002f86, #f38a00);
}

.meta-note {
  color: #959595;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

.pac-container {
  z-index: 2147483647 !important;
  max-height: 40vh;
  overflow-y: auto;
}

.south-places-selection-complete .pac-container {
  display: none !important;
}

@media (max-width: 767px) {
  .navbar > .container-fluid {
    padding-inline: 16px;
  }

  .navbar-brand {
    gap: 0.75rem;
    min-height: 72px;
  }

  .navbar-brand .south-university-logo {
    max-width: 150px;
    max-height: 48px;
    width: auto;
  }

  .navbar-brand .publisher-logo {
    max-height: 34px;
    max-width: 150px;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-shell { background-position: 66% center; }

  .form-card {
    padding: 1.25rem 1rem;
  }

  .program-card {
    padding: 32px 24px;
    height: auto;
    min-height: 210px;
  }

  .program-title { min-height: 0; }

  .program-card .program-link,
  .program-card .get-more-info,
  .program-card .btn-primary {
    max-width: 100%;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .accreditation-band .row > div {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 991px) {
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
  .navbar-brand { min-height: 68px; }
  .navbar-brand .south-university-logo { max-height: 62px; }
  .col-md-2 { width: 16.66666667%; }
  .col-md-4 { width: 33.33333333%; }
  .col-md-5 { width: 41.66666667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.33333333%; }
  .text-md-end { text-align: right; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
  .navbar-brand { min-height: 72px; }
  .navbar-brand .south-university-logo { max-height: 64px; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.33333333%; }
  .col-lg-7 { width: 58.33333333%; }
  .col-lg-10 { width: 83.33333333%; }
  .col-xl-9 { width: 75%; }
  .col-lg-11 { width: 91.66666667%; }
  .col-xl-10 { width: 83.33333333%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
