:root {
  --ihap-blue: #004d7c;
  --ihap-blue-dark: #063f65;
  --ihap-green: #2ba37a;
  --ihap-red: #e04b3f;
  --ihap-red-dark: #b7192b;
  --ihap-orange: #f2a93b;
  --ihap-navy: #0b1220;
  --ihap-light: #f4f7fb;
  --ihap-surface: #ffffff;
  --ihap-soft: #f7f9fc;
  --ihap-text: #141824;
  --ihap-muted: #5f6b7a;
  --ihap-border: rgba(15, 23, 42, .08);
  --ihap-shadow-sm: 0 .5rem 1.25rem rgba(15, 23, 42, .06);
  --ihap-shadow-md: 0 .75rem 2rem rgba(15, 23, 42, .06);
  --ihap-shadow-lg: 0 1rem 2.5rem rgba(15, 23, 42, .10);
}

/* ======================================
   Base
====================================== */

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ihap-text);
  background: #fff;
}

a {
  text-decoration: none;
}

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

.text-primary {
  color: var(--ihap-blue) !important;
}

.bg-light {
  background-color: var(--ihap-light) !important;
}

.py-lg-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* ======================================
   Bootstrap Button Overrides
====================================== */

.btn-primary {
  --bs-btn-bg: var(--ihap-blue);
  --bs-btn-border-color: var(--ihap-blue);
  --bs-btn-hover-bg: var(--ihap-blue-dark);
  --bs-btn-hover-border-color: var(--ihap-blue-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--ihap-blue);
  --bs-btn-border-color: var(--ihap-blue);
  --bs-btn-hover-bg: var(--ihap-blue);
  --bs-btn-hover-border-color: var(--ihap-blue);
}

.btn-danger {
  --bs-btn-bg: #d21f35;
  --bs-btn-border-color: #d21f35;
  --bs-btn-hover-bg: var(--ihap-red-dark);
  --bs-btn-hover-border-color: var(--ihap-red-dark);
}

/* ======================================
   Header
====================================== */

.ihap-header {
  background: #fff;
  border-bottom: 1px solid var(--ihap-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 .35rem 1.25rem rgba(15, 23, 42, .04);
}

.admin-bar .ihap-header {
  top: 32px;
}

.ihap-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ihap-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

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

.ihap-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ihap-section-nav .active {
    color: var(--ihap-blue);
    font-weight: 700;
    border-left: 3px solid var(--ihap-blue);
    padding-left: .75rem;
}

.ihap-section-active {
    color: var(--ihap-blue);
    font-weight: 700;
    border-left: 3px solid var(--ihap-blue);
    padding-left: .75rem;
}

.ihap-nav a,
.ihap-mobile-nav a {
  color: #172033;
  font-weight: 800;
  text-decoration: none;
  font-size: .95rem;
}

.ihap-nav a {
  position: relative;
  padding: .65rem .2rem;
  transition: color .2s ease;
}

.ihap-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .25rem;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--ihap-blue);
  transform: translateX(-50%);
  transition: width .2s ease;
}

.ihap-nav a:hover,
.ihap-nav a.active,
.ihap-mobile-nav a:hover,
.ihap-mobile-nav a.active {
  color: var(--ihap-blue);
}

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

.ihap-start-btn,
.ihap-mobile-start {
  background: #d21f35;
  color: #fff !important;
  border-radius: .6rem;
  padding: .75rem 1.25rem;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background .2s ease, transform .2s ease;
}

.ihap-start-btn:hover,
.ihap-mobile-start:hover {
  background: var(--ihap-red-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.ihap-menu-toggle {
  border: 1px solid rgba(15, 23, 42, .14);
  background: #fff;
  border-radius: .6rem;
  padding: .5rem .75rem;
  font-size: 1.25rem;
  line-height: 1;
}

.ihap-mobile-nav {
  border-top: 1px solid var(--ihap-border);
}

.ihap-mobile-nav nav {
  display: grid;
  gap: .85rem;
}

/* ======================================
   Shared Components
====================================== */

.ihap-eyebrow {
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihap-blue);
}

.ihap-page-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin-top: .75rem;
    margin-bottom: 1.5rem;
}

.ihap-hero,
.ihap-page-hero {
  background:
    radial-gradient(circle at top right, rgba(43, 163, 122, .14), transparent 35%),
    linear-gradient(180deg, #fff 0%, var(--ihap-light) 100%);
}

.ihap-page-hero {
  background:
    radial-gradient(circle at top right, rgba(0, 77, 124, .08), transparent 35%),
    linear-gradient(180deg, #fff 0%, var(--ihap-light) 100%);
}

.ihap-hero-card,
.ihap-info-card,
.ihap-content-card,
.ihap-sidebar-card {
  background: var(--ihap-surface);
  border: 1px solid var(--ihap-border);
  border-radius: 1.25rem;
  box-shadow: var(--ihap-shadow-md);
  padding: 2rem;
}

.ihap-page-hero .ihap-hero-card {
  border-top: 6px solid var(--ihap-orange);
}

.ihap-page-intro {
  max-width: 700px;
  font-size: 1.15rem;
  color: var(--ihap-muted);
  margin-top: 1rem;
}

.ihap-coming-soon {
  display: inline-flex;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihap-orange);
  margin-bottom: .75rem;
}

/* ======================================
   Homepage Hero
====================================== */

.ihap-home-hero {
  padding: 2rem 0 3rem;
  background:
    radial-gradient(circle at top right, rgba(43, 163, 122, .15), transparent 35%),
    linear-gradient(180deg, #fff 0%, #f4f7fb 100%);
}

.ihap-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  align-items: center;
  gap: 0;
  position: relative;
}

.ihap-home-image-wrap {
  min-height: 650px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(15, 23, 42, .09);
}

.ihap-home-image {
  width: 100%;
  height: 650px;
  object-fit: cover;
  display: block;
}

.ihap-home-panel {
  background: #075f8f;
  color: #fff;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .22);
  margin-left: -5rem;
  position: relative;
  z-index: 2;
}

.ihap-panel-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.ihap-pathways-logo {
  max-width: 360px;
  width: 100%;
  height: auto;
}

.ihap-home-title {
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.ihap-home-panel p {
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
  line-height: 1.65;
}

.ihap-plan-list {
  display: grid;
  gap: .55rem;
  margin-top: 1.25rem;
}

.ihap-plan-list div {
  color: rgba(255, 255, 255, .92);
  font-size: .95rem;
}

.ihap-plan-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45);
  margin-right: .5rem;
  font-weight: 900;
  color: #fff;
}

/* ======================================
   Homepage Journey / Step Cards
====================================== */

.ihap-steps-section {
  background: var(--ihap-light);
  padding-top: 3.5rem !important;
}

.ihap-journey-line {
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ihap-journey-item {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ihap-blue);
  border: 2px solid rgba(0, 77, 124, .18);
  font-weight: 900;
  box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .08);
}

.ihap-journey-item.active {
  background: var(--ihap-blue);
  color: #fff;
  border-color: var(--ihap-blue);
}

.ihap-journey-connector {
  height: 3px;
  flex: 1;
  background: rgba(0, 77, 124, .18);
}

.ihap-step-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  height: 100%;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--ihap-border);
  box-shadow: var(--ihap-shadow-md);
  color: var(--ihap-text);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.ihap-step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--ihap-blue);
}

.ihap-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ihap-shadow-lg);
  color: var(--ihap-text);
}

.ihap-step-card h3 {
  font-size: 1.65rem;
  font-weight: 900;
  margin-bottom: .75rem;
}

.ihap-step-card p {
  color: var(--ihap-muted);
  margin-bottom: 0;
}

.ihap-step-kicker {
  display: inline-flex;
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.ihap-card-action {
  display: inline-flex;
  margin-top: auto;
  font-weight: 900;
  color: var(--ihap-blue);
}

.ihap-step-card:hover .ihap-card-action {
  text-decoration: underline;
}

.ihap-step-green::before,
.ihap-step-green .ihap-step-kicker {
  color: var(--ihap-green);
  background: var(--ihap-green);
}

.ihap-step-red::before,
.ihap-step-red .ihap-step-kicker {
  color: var(--ihap-red);
  background: var(--ihap-red);
}

.ihap-step-orange::before,
.ihap-step-orange .ihap-step-kicker {
  color: var(--ihap-orange);
  background: var(--ihap-orange);
}

.ihap-step-blue::before,
.ihap-step-blue .ihap-step-kicker {
  color: var(--ihap-blue);
  background: var(--ihap-blue);
}

.ihap-step-green .ihap-step-kicker,
.ihap-step-red .ihap-step-kicker,
.ihap-step-orange .ihap-step-kicker,
.ihap-step-blue .ihap-step-kicker {
  background: transparent;
}

.ihap-info-card p {
  color: var(--ihap-muted);
}

/* ======================================
   Detail Page Content
====================================== */

.ihap-content-card {
    overflow: hidden;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
    border-top: 4px solid var(--ihap-blue);
}

.ihap-nav-buttons {
    display:flex;
    justify-content:space-between;
    margin-top:3rem;
}

.ihap-content-card::before {
  content: "";
  display: block;
  height: 7px;
  margin: -2rem -2rem 1.75rem;
  background: linear-gradient(
    90deg,
    var(--ihap-green),
    var(--ihap-red),
    var(--ihap-orange),
    var(--ihap-blue)
  );
}

.ihap-content-card .card {
  border: 0 !important;
  box-shadow: var(--ihap-shadow-sm);
}

.ihap-content-card .card.bg-light {
  background: var(--ihap-soft) !important;
}

.ihap-content-card .card-body {
  max-width: 850px;
}

.ihap-content-card h2,
.ihap-content-card h3,
.ihap-content-card h4 {
  font-weight: 900;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}

.ihap-content-card h2:first-child,
.ihap-content-card h3:first-child,
.ihap-content-card h4:first-child {
  margin-top: 0;
}

.ihap-content-card p,
.ihap-content-card li {
  color: var(--ihap-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.ihap-content-card .lead {
  font-size: 1.25rem;
  color: var(--ihap-text);
  font-weight: 500;
}

.ihap-content-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, .08);
  background: #fff;
}

/* ======================================
   Sidebar + Section Lists
====================================== */

.ihap-sidebar-card {
  position: sticky;
  top: 90px;
}

.ihap-sidebar-card:first-child {
  border-top: 6px solid var(--ihap-blue);
}

.ihap-sidebar-card:nth-child(2) {
  border-top: 6px solid var(--ihap-green);
}

.ihap-sidebar-card ul {
  padding-left: 1.15rem;
}

.ihap-sidebar-card li {
  color: var(--ihap-muted);
  margin-bottom: .5rem;
}

.ihap-sidebar-card li:last-child {
  margin-bottom: 0;
}

.list-group-item {
  color: var(--ihap-muted);
}

.list-group-item.text-primary {
  color: var(--ihap-blue) !important;
}

/* ======================================
   Progress
====================================== */

.ihap-progress-label {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ihap-blue);
    margin-bottom: .5rem;
}

.ihap-progress-label::after {
  content: " complete";
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  margin-left: .25rem;
  color: var(--ihap-muted);
}

.ihap-progress-track {
  width: 100%;
  max-width: 420px;
  height: .55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}

.ihap-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.ihap-progress-green { background: var(--ihap-green); }
.ihap-progress-red { background: var(--ihap-red); }
.ihap-progress-orange { background: var(--ihap-orange); }
.ihap-progress-blue { background: var(--ihap-blue); }

/* ======================================
   Landing Pages
====================================== */

.ihap-landing-hero {
  padding: 3rem 0 2rem;
  background:
    linear-gradient(
      180deg,
      #f7fafc 0%,
      #ffffff 100%
    );
}

.ihap-step-hero {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.ihap-progress-wrapper {
    margin-top: 1rem;
}

.ihap-step-hero {
	    padding-top: 3rem;
	        padding-bottom: 2rem;
	}

	.ihap-progress-wrapper {
		    margin-top: 1rem;
	    }

.ihap-landing-header {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.ihap-landing-header h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.ihap-step-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.ihap-meta-card {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  min-width: 140px;
}

.ihap-meta-card strong {
  display: block;
  font-size: 1.25rem;
}

.ihap-meta-card span {
  color: #64748b;
}

.ihap-step-grid-section {
    padding: 1rem 0 4rem;
}

.ihap-step-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: all .2s ease;
}

.ihap-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(0,0,0,.08);
}

.ihap-step-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.ihap-step-label {
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 800;
  color: var(--ihap-blue);
  letter-spacing: .08em;
}

.ihap-step-card h3 {
  margin-top: .75rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.ihap-step-card p {
  color: #64748b;
}

.ihap-card-action {
  margin-top: auto;
  font-weight: 700;
}

.ihap-next-step {
  margin-top: 4rem;
}

.ihap-next-card {
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
  padding: 2.5rem;
}

.ihap-next-card small {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--ihap-blue);
}

.ihap-next-card h3 {
  margin: 1rem 0;
}


.ihap-feature-card,
.ihap-resource-card,
.ihap-pd-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 2rem;
    height: 100%;
    transition: all .25s ease;
}

.ihap-feature-card:hover,
.ihap-resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.ihap-cta-section {
    background: #f8fafc;
    padding: 5rem 0;
}

.ihap-educator-hero {
    /*padding: 6rem 0 5rem;*/
}

.ihap-educator-hero .lead {
    max-width: 700px;
    margin: 0 auto;
}


.ihap-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 77, 124, .08);
  color: var(--ihap-blue);
  font-weight: 900;
  margin-bottom: 1rem;
}

.ihap-resource-card {
  display: flex;
  flex-direction: column;
}

.ihap-resource-action {
  margin-top: auto;
  color: var(--ihap-blue);
  font-weight: 800;
}

.ihap-pd-card {
  border-top: 5px solid var(--ihap-blue);
}

.ihap-stat-card {
  text-align: center;
}

.ihap-stat-card h3 {
  font-weight: 900;
  margin-bottom: .25rem;
}

.ihap-stat-card span {
  color: var(--ihap-muted);
  font-weight: 600;
}

.ihap-resource-type {
  display: inline-flex;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ihap-blue);
  margin-bottom: .85rem;
}



/* ======================================
   Footer
====================================== */

.ihap-footer {
  background:
    radial-gradient(circle at top right, rgba(0, 77, 124, .22), transparent 30%),
    var(--ihap-navy);
  color: #fff;
  padding: 4.5rem 0 2rem;
}

.ihap-footer-main {
  display: grid;
  grid-template-columns: 1.4fr .65fr .8fr 1fr;
  gap: 3rem;
  align-items: start;
}

.ihap-footer-logo {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.ihap-footer-logo img {
  max-width: 240px;
  height: auto;
}

.ihap-footer-brand p,
.ihap-footer-card p,
.ihap-footer-bottom p {
  color: rgba(255, 255, 255, .68);
  margin-bottom: 0;
  line-height: 1.7;
}

.ihap-footer-links h2 {
  color: #fff;
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.ihap-footer-links a {
  display: block;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  margin-bottom: .65rem;
  font-weight: 600;
}

.ihap-footer-links a:hover {
  color: #fff;
}

.ihap-footer-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.ihap-footer-card img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 1rem;
}

.ihap-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ihap-footer-bottom a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.ihap-footer-bottom a:hover {
  color: #fff;
}

/* ======================================
   Responsive
====================================== */

@media (max-width: 991.98px) {
  .admin-bar .ihap-header {
    top: 0;
  }

  .py-lg-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .ihap-home-hero-grid {
    grid-template-columns: 1fr;
  }

  .ihap-home-image-wrap,
  .ihap-home-image {
    min-height: 340px;
    height: 340px;
  }

  .ihap-home-panel {
    margin-left: 0;
    margin-top: -3rem;
    padding: 2rem;
  }

  .ihap-hero-card,
  .ihap-info-card,
  .ihap-step-card {
    padding: 1.5rem;
  }

  .ihap-sidebar-card {
    position: static;
  }

  .ihap-content-card::before {
    margin: -1.5rem -1.5rem 1.5rem;
  }

  .ihap-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .ihap-footer-card {
    grid-column: span 2;
  }
}

@media (max-width: 575.98px) {
  .ihap-logo img {
    height: 34px;
  }

  .ihap-home-panel {
    padding: 1.5rem;
  }

  .ihap-footer {
    padding: 3.5rem 0 1.5rem;
  }

  .ihap-footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ihap-footer-card {
    grid-column: auto;
  }

  .ihap-footer-bottom {
    display: block;
  }

  .ihap-footer-bottom p + p {
    margin-top: .75rem;
  }
}
