@charset "UTF-8";
/* Neo-Brutalist Variables */
.grecaptcha-badge {
  visibility: hidden;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, sans-serif;
  color: #361100;
}

body {
  margin: 0;
  line-height: 1.6;
  /* Updated from 200% for better readability with brutalist style */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex-grow: 1;
}
@media screen and (max-width: 767px) {
  main {
    display: flex;
    flex-direction: column;
    position: relative;
  }
}
@media screen and (min-width: 768px) {
  main {
    display: grid;
    grid-template-columns: 12.5% 12.5% 50% 12.5% 12.5%;
    position: relative;
  }
}

h1, h2, h3, h4, h5, h6 {
  color: #284B99;
  text-align: center;
  font-weight: 800;
  /* Neo-brutalist bold */
  text-transform: uppercase;
  /* Neo-brutalist uppercase */
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: #284B99;
  /* Updated to darkblue as base */
  font-weight: 700;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: #FF9869;
}

strong {
  font-weight: 800;
}

form small {
  display: block;
  margin-top: 2rem;
  line-height: 1.2;
}

button, input[type=button], input[type=submit], .btn-neo {
  background-color: #FF9869;
  /* Primary CTA Color */
  color: #284B99;
  border: 3px solid #361100;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 1rem;
  border-radius: 0;
  /* Brutalist - no radius */
  box-shadow: 4px 4px 0px #361100;
  transition: all 0.2s ease;
  cursor: pointer;
  text-transform: uppercase;
}

button:hover, input[type=button]:hover, input[type=submit]:hover, .btn-neo:hover {
  transform: translate(-2px, -2px);
  background-color: #ffaa83;
  box-shadow: 6px 6px 0px #361100;
}

button:active, input[type=button]:active, input[type=submit]:active, .btn-neo:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #361100;
}

.hidden {
  display: none !important;
}

/* Loader */
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid #FFF;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-bottom: 4px solid #FF9869;
  border-left: 4px solid transparent;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* End Loader */
.youtube-video {
  max-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.youtube-video iframe {
  width: 90%;
  aspect-ratio: 16/9;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
}

.orange-button {
  background-color: #FF9869;
  color: #284B99;
  border: 3px solid #361100;
}

.orange-button:hover {
  background-color: #ffbb9c;
}

.orange-button:active {
  background-color: #FF9869;
  color: #284B99;
}

.page-text-wrapper {
  padding-bottom: 4rem;
}
@media screen and (max-width: 767px) {
  .page-text-wrapper {
    padding: 2rem;
    max-width: 100%;
  }
}
@media screen and (min-width: 768px) {
  .page-text-wrapper {
    grid-column: 3;
  }
}

#hero {
  position: relative;
  max-width: 100vw;
  height: 90vh;
  background-size: cover;
  background-position: center;
  color: white;
  z-index: 5;
  line-height: initial;
  border-bottom: 3px solid #361100;
  /* Added border */
  display: flex;
}
@media screen and (max-width: 767px) {
  #hero {
    align-items: flex-end;
  }
}
@media screen and (min-width: 768px) {
  #hero {
    align-items: center;
  }
}
#hero #hero-text {
  text-shadow: 4px 4px 0px #361100;
  /* Updated shadow */
}
@media screen and (max-width: 767px) {
  #hero #hero-text {
    padding: 2rem;
    font-size: 1.6rem;
  }
}
@media screen and (min-width: 768px) {
  #hero #hero-text {
    margin-left: 25%;
    width: 50%;
    font-size: 1.1rem;
  }
}
@media screen and (min-width: 1024px) {
  #hero #hero-text {
    width: 30%;
  }
}
#hero #hero-text button {
  /* Removed specific shadow, using default button style */
}
@media screen and (max-width: 767px) {
  #hero #hero-text button {
    margin: 2rem 0;
  }
}
@media screen and (min-width: 768px) {
  #hero #hero-text button {
    margin: 0;
  }
}
@media screen and (min-width: 1024px) {
  #hero #hero-text button {
    margin: 2rem 0;
  }
}
@media screen and (max-width: 360px) {
  #hero #hero-text p {
    display: none;
  }
  #hero #hero-text .hero-headline {
    display: block;
  }
}
#hero .hero-headline {
  font-size: 3rem;
  font-weight: 800;
  color: #284B99;
  text-shadow: 2px 2px 0 white;
  /* Neo style */
}
@media screen and (min-width: 768px) {
  #hero .hero-headline {
    margin: 0;
  }
}
#hero .hero-headline .hero-callout {
  color: #FF9869;
  text-shadow: 2px 2px 0 #284B99;
}
#hero .hero-headline-white {
  color: white !important;
  text-shadow: 4px 4px 0 #284B99 !important;
}

.tile-wrapper {
  grid-column: 1/span 5;
  display: flex;
}
@media screen and (max-width: 767px) {
  .tile-wrapper {
    flex-direction: column;
  }
}
@media screen and (min-width: 768px) {
  .tile-wrapper {
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }
}

/* Updated .tile to .neo-card style mostly, but keeping .tile name for compat */
.tile {
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-color: white;
  max-height: 100%;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
  transition: all 0.2s ease;
}
.tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #361100;
}
.tile h2, .tile p {
  color: white;
  text-shadow: 2px 2px 0 black;
}

.tile-floating-text-box {
  position: absolute;
  margin: 0;
  height: 100%;
  width: 100%;
  text-align: center;
  z-index: 3;
  background-color: rgba(40, 75, 153, 0.85);
  /* Darker blue overlay */
  color: white;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  border: 0;
  /* Inner shouldn't have border */
}
.tile-floating-text-box h3 {
  font-size: 1.5rem;
  color: white;
}
.tile-floating-text-box h2, .tile-floating-text-box h3, .tile-floating-text-box p, .tile-floating-text-box a {
  color: white;
  max-width: 85%;
  text-shadow: none;
  /* Removed blur shadow for cleaner look or keep if needed */
}

.two-tile {
  flex-basis: 40%;
}
@media screen and (max-width: 767px) {
  .two-tile {
    flex-basis: 100%;
  }
}

.three-tile {
  flex-basis: 26%;
}
@media screen and (max-width: 767px) {
  .three-tile {
    flex-basis: 100%;
  }
}

.four-tile {
  flex-basis: 20%;
}
@media screen and (max-width: 767px) {
  .four-tile {
    flex-basis: 100%;
  }
}

@media screen and (max-width: 767px) {
  .tile-sm-1 {
    order: 1;
  }
}

@media screen and (max-width: 767px) {
  .tile-sm-2 {
    order: 2;
  }
}

@media screen and (max-width: 767px) {
  .tile-sm-3 {
    order: 3;
  }
}

@media screen and (max-width: 767px) {
  .tile-sm-4 {
    order: 4;
  }
}

.tile-text-box {
  height: 100%;
  /* Fill container */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background: white;
  /* Ensure text is readable */
  padding: 1rem;
}
.tile-text-box h3 {
  font-size: 1.5rem;
  margin: 0.5rem;
  color: #284B99;
}
.tile-text-box p {
  color: #361100 !important;
  text-shadow: none !important;
}
.tile-text-box button {
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 0.95rem;
}

#auth-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1rem;
}
#auth-overlay .auth-message-box {
  background-color: white;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
#auth-overlay .auth-message-box h2 {
  color: #284B99;
  margin: 0;
  font-size: 1.5rem;
}
#auth-overlay .auth-message-box p {
  color: #361100;
  margin: 0;
  font-size: 1.1rem;
}
#auth-overlay .auth-message-box #google-signin-btn-container {
  margin-top: 1rem;
}

.auth-locked {
  overflow: hidden;
}

/* Neo-Brutalist Component Styles */
/* Tab Interface Styles */
.neo-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: -3px;
  /* Pull tabs down to overlap the card border */
  position: relative;
  z-index: 10;
}
.neo-tabs .neo-tab {
  background-color: #f0f0f0;
  border: 3px solid #361100;
  border-bottom: none;
  /* Open at the bottom */
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  color: #361100;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background-color 0.2s ease, margin-top 0.2s ease;
  text-transform: uppercase;
  margin-top: 4px;
  /* Unselected tabs sit slightly lower */
}
.neo-tabs .neo-tab:hover {
  background-color: #e0e0e0;
  transform: none;
  box-shadow: none;
}
.neo-tabs .neo-tab:active {
  transform: none;
  box-shadow: none;
}
.neo-tabs .neo-tab.active {
  background-color: white;
  margin-top: 0;
  /* Selected tab is taller */
  padding-bottom: calc(0.75rem + 3px);
  /* Overlap border */
  border-bottom: 3px solid white;
  /* Hide the card border beneath */
}

.neo-tab-content {
  display: none;
}
.neo-tab-content.active {
  display: block;
}

.neo-sub-card {
  background: white;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.neo-sub-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #361100;
  background-color: #f9f9f9;
}
.neo-sub-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #361100;
}
.neo-sub-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #284B99;
}
.neo-sub-card p {
  margin-bottom: 0;
  color: #666;
}

/* Base Styles for Student-Facing Apps */
.neo-student-app {
  font-family: Inter, sans-serif;
  background-color: #fffaf0;
  /* Off-white */
  color: #111;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Ensure links are visible */
  /* Spinner for loading state */
}
.neo-student-app h1, .neo-student-app h2, .neo-student-app h3, .neo-student-app h4, .neo-student-app h5, .neo-student-app h6 {
  font-family: "Courier Prime", monospace;
  font-weight: 700;
}
.neo-student-app a {
  color: #284B99;
  text-decoration: underline;
}
.neo-student-app a:hover {
  color: #FF9869;
}
.neo-student-app .btn-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 3px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Form Styles */
.lead-form-section {
  padding: 4rem 2rem;
  background-color: #71A9F7;
  color: white;
  border-top: 3px solid #361100;
  grid-column: 1/-1;
  width: 100%;
}
.lead-form-section .form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  color: #361100;
  padding: 2rem;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
}
.lead-form-section .form-container h2 {
  margin-top: 0;
  color: #284B99;
}
.lead-form-section .assessment-card {
  max-width: 70ch;
  margin: 0 auto;
}

.required-mark {
  color: #FF9869;
}

.index-sample-assignment {
  box-shadow: 4px 4px 0px #361100;
  transition: all 0.2s ease;
  cursor: pointer;
}
.index-sample-assignment:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #361100;
}
.index-sample-assignment:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #361100;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.form-group input:not([type=radio], [type=checkbox]), .form-group select, .form-group textarea {
  width: 100%;
  box-sizing: border-box;
  /* Ensure padding/border is included in width */
  max-width: 100%;
  /* Prevent overflow */
  padding: 0.75rem;
  border: 2px solid #361100;
  border-radius: 0;
  /* Brutalist */
  font-family: Inter, sans-serif;
  font-size: 1rem;
  appearance: none;
  background-color: white;
  /* Force consistent height for date inputs on mobile */
  min-height: 3rem;
}
.form-group input:not([type=radio], [type=checkbox]):focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #FF9869;
  box-shadow: 4px 4px 0 #FF9869;
  color: #284B99;
}
.form-group .error-msg:not(:empty) {
  background-color: #FF9869;
  color: #284B99;
  border: 2px solid #284B99;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
  font-weight: 800;
  box-shadow: 4px 4px 0 #284B99;
  width: fit-content;
}
.form-group.has-error input:not([type=radio], [type=checkbox]), .form-group.has-error select, .form-group.has-error textarea {
  border-color: #284B99;
  background-color: #FFF0F0;
}
.form-group.has-error .error-msg:not(:empty) {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media screen and (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.checkbox-group.has-error input[type=checkbox] {
  outline: 2px solid #FF9869;
  outline-offset: 2px;
}
.checkbox-group.has-error .error-msg:not(:empty) {
  display: block;
}
.checkbox-group label {
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0;
}

.btn-primary {
  width: 100%;
  cursor: pointer;
  background-color: #FF9869;
  /* Primary CTA Color */
  color: #284B99;
  border-color: #284B99;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1rem;
}
.btn-primary:hover {
  background-color: #ffaa83;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #361100;
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #361100;
}
.btn-primary:focus-visible {
  outline: 3px solid #284B99;
  outline-offset: 2px;
}
.btn-primary:disabled, .btn-primary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #ccc;
  box-shadow: none;
  transform: none;
}

/* Trust Signals */
.trust-signals {
  padding: 3rem 2rem;
  background: #FF9869;
  border-bottom: 3px solid #361100;
  grid-column: 1/-1;
  width: 100%;
}
.trust-signals .trust-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  margin: 0 auto;
  gap: 1rem;
  /* Course Page Variant (Safari Fix) */
  /* Trust Column for Courses Page */
}
@media screen and (min-width: 768px) {
  .trust-signals .trust-grid {
    flex-flow: row wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    align-items: center;
  }
}
.trust-signals .trust-grid.trust-grid--courses {
  /* Mobile - Standard Block Layout */
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .trust-signals .trust-grid.trust-grid--courses {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1000px;
    /* Match courses page constraint */
    justify-content: space-between;
  }
}
.trust-signals .trust-grid.trust-grid--courses h2 {
  margin-top: 0;
}
.trust-signals .trust-grid .signal {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #284B99;
}
.trust-signals .trust-grid .signal::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #284B99;
  color: white;
  border: 2px solid #284B99;
  font-weight: 900;
}
.trust-signals .trust-grid .trust-col {
  text-align: center;
  flex: 1;
  width: 100%;
}
@media screen and (min-width: 768px) {
  .trust-signals .trust-grid .trust-col {
    width: auto;
  }
}
.trust-signals .trust-grid .trust-col-separator {
  /* Mobile - Horizontal Separator */
  border-top: 3px solid #361100;
  padding-top: 3rem;
  margin-top: 2rem;
  /* Increased to 2rem + 1rem gap = 3rem total */
  border-left: none;
  padding-left: 0;
}
@media screen and (min-width: 768px) {
  .trust-signals .trust-grid .trust-col-separator {
    /* Desktop - Vertical Separator */
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    border-left: 3px solid #361100;
    padding-left: 2rem;
  }
}

/* Base styles for standalone cards */
.neo-card {
  background: white;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
  padding: 1.5rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.neo-card:hover {
  box-shadow: 6px 6px 0px #361100;
}

/* Who This Is For / Card Grid */
.who-for, .neo-grid-section {
  padding: 4rem 2rem;
  background: white;
  border-bottom: 3px solid #361100;
  grid-column: 1/-1;
  width: 100%;
  /* Base styles for standalone cards */
}
.who-for h2, .neo-grid-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  line-height: 1.3;
}
@media screen and (min-width: 768px) {
  .who-for h2, .neo-grid-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
}
.who-for .neo-card, .neo-grid-section .neo-card {
  background: white;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
  padding: 1.5rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.who-for .neo-card:hover, .neo-grid-section .neo-card:hover {
  box-shadow: 6px 6px 0px #361100;
}
.who-for .card-grid, .neo-grid-section .card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  /* Responsive variations */
}
@media screen and (min-width: 768px) {
  .who-for .card-grid.cols-2 .card, .who-for .card-grid.cols-2 .neo-card, .neo-grid-section .card-grid.cols-2 .card, .neo-grid-section .card-grid.cols-2 .neo-card {
    width: calc((100% - 2rem) / 2);
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}
@media screen and (min-width: 768px) {
  .who-for .card-grid.cols-3 .card, .who-for .card-grid.cols-3 .neo-card, .neo-grid-section .card-grid.cols-3 .card, .neo-grid-section .card-grid.cols-3 .neo-card {
    width: calc((100% - 4rem) / 3);
    flex: 0 0 calc((100% - 4rem) / 3);
  }
}
@media screen and (min-width: 768px) {
  .who-for .card-grid.cols-4 .card, .who-for .card-grid.cols-4 .neo-card, .neo-grid-section .card-grid.cols-4 .card, .neo-grid-section .card-grid.cols-4 .neo-card {
    width: calc((100% - 2rem) / 2);
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}
@media screen and (min-width: 1024px) {
  .who-for .card-grid.cols-4 .card, .who-for .card-grid.cols-4 .neo-card, .neo-grid-section .card-grid.cols-4 .card, .neo-grid-section .card-grid.cols-4 .neo-card {
    width: calc((100% - 6rem) / 4);
    flex: 0 0 calc((100% - 6rem) / 4);
  }
}
.who-for .card-grid .card, .who-for .card-grid .neo-card, .neo-grid-section .card-grid .card, .neo-grid-section .card-grid .neo-card {
  width: 100%;
  height: auto;
  background: white;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
  padding: 1.5rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
@media screen and (min-width: 768px) {
  .who-for .card-grid .card, .who-for .card-grid .neo-card, .neo-grid-section .card-grid .card, .neo-grid-section .card-grid .neo-card {
    width: calc((100% - 2rem) / 2);
    flex: 0 0 calc((100% - 2rem) / 2);
  }
}
@media screen and (min-width: 1024px) {
  .who-for .card-grid .card, .who-for .card-grid .neo-card, .neo-grid-section .card-grid .card, .neo-grid-section .card-grid .neo-card {
    width: calc((100% - 6rem) / 4);
    flex: 0 0 calc((100% - 6rem) / 4);
  }
}
.who-for .card-grid .card:hover, .who-for .card-grid .neo-card:hover, .neo-grid-section .card-grid .card:hover, .neo-grid-section .card-grid .neo-card:hover {
  box-shadow: 6px 6px 0px #361100;
}
.who-for .card-grid .card h3, .who-for .card-grid .neo-card h3, .neo-grid-section .card-grid .card h3, .neo-grid-section .card-grid .neo-card h3 {
  color: #00A7E1;
  margin-bottom: 0.5rem;
  text-align: center;
}
.who-for .card-grid .card p, .who-for .card-grid .neo-card p, .neo-grid-section .card-grid .card p, .neo-grid-section .card-grid .neo-card p {
  text-align: center;
}
.who-for .card-grid .card img, .who-for .card-grid .neo-card img, .neo-grid-section .card-grid .card img, .neo-grid-section .card-grid .neo-card img {
  max-width: 100%;
  border: 2px solid #284B99;
  margin-bottom: 1rem;
}
.who-for .card-grid .card a.btn-card, .who-for .card-grid .neo-card a.btn-card, .neo-grid-section .card-grid .card a.btn-card, .neo-grid-section .card-grid .neo-card a.btn-card {
  margin-top: auto;
  display: block;
  text-align: center;
  background: #284B99;
  color: white;
  padding: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid #284B99;
}
.who-for .card-grid .card a.btn-card:hover, .who-for .card-grid .neo-card a.btn-card:hover, .neo-grid-section .card-grid .card a.btn-card:hover, .neo-grid-section .card-grid .neo-card a.btn-card:hover {
  background: #335fc1;
  text-decoration: none;
}
.who-for .card-grid .card a.btn-card:focus-visible, .who-for .card-grid .neo-card a.btn-card:focus-visible, .neo-grid-section .card-grid .card a.btn-card:focus-visible, .neo-grid-section .card-grid .neo-card a.btn-card:focus-visible {
  outline: none;
  border-color: #FF9869;
  box-shadow: 4px 4px 0 #FF9869, 0 0 0 4px rgba(255, 152, 105, 0.4);
  position: relative;
  z-index: 10;
}
.who-for .card-grid .card a.btn-card.btn-app, .who-for .card-grid .neo-card a.btn-card.btn-app, .neo-grid-section .card-grid .card a.btn-card.btn-app, .neo-grid-section .card-grid .neo-card a.btn-card.btn-app {
  background: #FF9869;
  color: #284B99;
}
.who-for .card-grid .card a.btn-card.btn-app:hover, .who-for .card-grid .neo-card a.btn-card.btn-app:hover, .neo-grid-section .card-grid .card a.btn-card.btn-app:hover, .neo-grid-section .card-grid .neo-card a.btn-card.btn-app:hover {
  background: #ffbb9c;
}

/* Specific override for course-enroll-banner to be stacked on tablet (md) */
#course-enroll-banner .card-grid .neo-card {
  /* At md (768px+), the generic rule sets it to 25%. We want to keep it 100% (stacked). */
  /* At lg (1024px+), we switch to the grid layout. */
}
@media screen and (min-width: 768px) {
  #course-enroll-banner .card-grid .neo-card {
    width: 100%;
    flex: 0 0 100%;
  }
}
@media screen and (min-width: 1024px) {
  #course-enroll-banner .card-grid .neo-card {
    width: calc((100% - 6rem) / 4);
    flex: 0 0 calc((100% - 6rem) / 4);
  }
}

/* Checklist Style */
.checklist, .checklist-square {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
}
.checklist li, .checklist-square li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
}
.checklist li::before, .checklist-square li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 0;
}

.checklist-square li::before {
  content: "☐";
  /* Ballot box */
  /* Ensure it is visible */
  font-size: 1.2em;
  line-height: 1;
  top: 2px;
}

.assessment-section {
  grid-column: 1/-1;
  width: 100%;
  margin-top: 2rem;
}
.assessment-section h2 {
  text-transform: uppercase;
  border-bottom: 4px solid #284B99;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}
.assessment-section .assessment-block {
  margin-bottom: 2rem;
}
.assessment-section .assessment-block h3 {
  color: #284B99;
  margin-bottom: 1rem;
}
.assessment-section .nested-checklist {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}
.assessment-section .nested-checklist li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.assessment-section .nested-checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
}

/* FAQ */
.faq-section {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  grid-column: 1/-1;
  width: 100%;
}
.faq-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.faq-section details {
  margin-bottom: 1rem;
  background: white;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
}
.faq-section details summary {
  padding: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  /* Hide default triangle */
  position: relative;
  transition: background-color 0.2s ease;
}
.faq-section details summary:hover {
  background-color: white;
}
.faq-section details summary:focus-visible {
  outline: none;
  background-color: white;
  box-shadow: inset 0 0 0 3px #FF9869;
}
.faq-section details summary::-webkit-details-marker {
  display: none;
}
.faq-section details summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  font-weight: 900;
}
.faq-section details[open] summary::after {
  content: "-";
}
.faq-section details p {
  padding: 0 1rem 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Button Loading State */
.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 3px solid rgba(40, 75, 153, 0.3);
  border-radius: 50%;
  border-top-color: #284B99;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* Generic Content Section */
.generic-content {
  grid-column: 1/-1;
  width: 100%;
  padding: 4rem 2rem;
  /* If no background color is set inline, default to white or transparent?
     Usually these sections might alternate. But if section_style is missing, it will be transparent.
  */
}

.generic-content-default {
  grid-column: 3;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media screen and (max-width: 767px) {
  .generic-content-default {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.generic-content-inner {
  max-width: 800px;
  /* Standard reading width */
  margin: 0 auto;
  /* Ensure images in markdown stay within bounds */
}
.generic-content-inner img {
  max-width: 100%;
  height: auto;
}

/* Prose Table Styles */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 4px 4px 0px #361100;
  border: 3px solid #361100;
  background: white;
  /* Optional: alternate row colors for better readability */
  /* Add spacing to <br> tags to simulate paragraph breaks in lists */
}
.prose table th, .prose table td {
  border: 3px solid #361100;
  padding: 1rem;
  text-align: left;
}
.prose table th {
  background-color: #FF9869;
  color: #284B99;
  font-weight: 800;
  text-transform: uppercase;
}
.prose table tr:nth-child(even) {
  background-color: white;
}
.prose table td br {
  display: block;
  margin-bottom: 0.5em;
  content: "";
}

/* Course Material Specific Styles */
.course-material-section {
  padding-top: 0;
}
.course-material-section .prose {
  max-width: 75ch;
  margin: 0 auto;
  /* Fix for long code blocks not wrapping */
  /* Inline code styling */
}
.course-material-section .prose h1, .course-material-section .prose h2, .course-material-section .prose h3, .course-material-section .prose h4, .course-material-section .prose h5, .course-material-section .prose h6 {
  text-align: left;
}
.course-material-section .prose pre {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow-x: auto;
  max-width: 100%;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 4px;
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
}
.course-material-section .prose code {
  word-break: break-all;
}
.course-material-section .prose :not(pre) > code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  word-break: break-word;
  /* Less aggressive break for inline */
}

/* Expectations Table (Custom) */
.expectations-table-wrapper {
  width: 100%;
  overflow-x: auto;
  /* Allow horizontal scroll on small screens */
  margin: 2rem 0;
  padding-bottom: 1rem;
  /* Space for scrollbar */
  /* Breakout of the prose width */
}
@media screen and (min-width: 1024px) {
  .expectations-table-wrapper {
    width: 120%;
    margin-left: -10%;
  }
}
.expectations-table-wrapper table {
  min-width: 600px;
  /* Force minimum width to ensure readability */
  font-size: 0.9rem;
  /* Slightly smaller text for data density */
  /* Highlight row on hover */
}
.expectations-table-wrapper table th {
  white-space: nowrap;
  background-color: #284B99;
  color: white;
  font-size: 0.85rem;
}
.expectations-table-wrapper table td {
  padding: 0.5rem;
  text-align: center;
  vertical-align: middle;
}
.expectations-table-wrapper table td:first-child {
  text-align: left;
  /* Expectation code/text left aligned */
  font-weight: 700;
  width: 20%;
}
.expectations-table-wrapper table tr:hover td {
  background-color: #ffdecf;
}

/* Course Metadata Box */
.course-metadata {
  background: white;
  border: 3px solid #361100;
  padding: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  width: 100%;
}
.course-metadata dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .course-metadata dl {
    grid-template-columns: auto 1fr;
    column-gap: 2rem;
  }
}
.course-metadata dt {
  font-weight: 800;
  color: #284B99;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.course-metadata dd {
  margin: 0;
  margin-bottom: 0.5rem;
}
@media screen and (min-width: 768px) {
  .course-metadata dd {
    margin-bottom: 0;
  }
}

/* Print Styles */
@media print {
  /* Hide non-essential elements */
  header, footer, #auth-overlay, .skip-link, .btn-primary, .btn-card {
    display: none !important;
  }

  body {
    background-color: white !important;
    color: black !important;
    font-size: 10pt;
    /* Optimized for print */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Reset container constraints */
  .neo-grid-section, .course-material-section, .prose {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-column: 1/-1 !important;
  }

  .neo-card {
    box-shadow: none !important;
    border: none !important;
    min-height: auto !important;
    /* Add some padding so the text isn't flush against the physical page edge */
    padding: 0.5in !important;
    margin: 0 auto !important;
  }

  /* Ensure tables print well */
  .expectations-table-wrapper, .prose {
    width: 100% !important;
    margin: 1rem 0 !important;
    overflow: visible !important;
    /* No scrollbars on print */
  }
  .expectations-table-wrapper table, .prose table {
    page-break-inside: avoid;
    break-inside: avoid;
    width: 100% !important;
    font-size: 8pt !important;
    /* Smaller for print to fit columns */
  }
  .expectations-table-wrapper table tr, .prose table tr {
    page-break-inside: avoid;
    break-inside: avoid;
    break-after: auto;
  }
  .expectations-table-wrapper table th, .expectations-table-wrapper table td, .prose table th, .prose table td {
    border: 1px solid black !important;
    padding: 4px !important;
  }
  .expectations-table-wrapper table th, .prose table th {
    background-color: #eee !important;
    /* Greyscale for print */
    color: black !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Ensure title is visible */
  h1 {
    font-size: 20pt !important;
    margin-bottom: 1rem !important;
    text-align: left !important;
  }

  /* Hide URL tails usually added by browsers */
  a[href]::after {
    content: none !important;
  }

  .course-metadata {
    border: 1px solid black !important;
    background: none !important;
  }
}
/* Auth Modal Tabs */
.auth-tabs-container {
  display: flex;
  /* Overlap trick: pull the pane up by the border width so the active tab can mask its top border */
  margin-bottom: -3px;
  position: relative;
  z-index: 2;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: #f4f4f4;
  /* Light grey for inactive */
  color: #361100;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  cursor: pointer;
  border: 3px solid #361100;
  /* Inactive tabs KEEP their bottom border */
  transition: all 0.2s ease;
  margin-right: 4px;
  /* Space between tabs */
  box-shadow: none;
}
.auth-tab:last-child {
  margin-right: 0;
}
.auth-tab:hover {
  background: #dbdbdb;
  transform: none;
  box-shadow: none;
}
.auth-tab:active {
  transform: none;
  box-shadow: none;
}
.auth-tab.active {
  background: white;
  color: #284B99;
  /* The active tab removes its bottom border to blend with the pane */
  border-bottom: none;
  /* Add padding-bottom to replace the border height so it remains the same total height */
  padding-bottom: calc(0.75rem + 3px);
}

.auth-tab-pane {
  border: 3px solid #361100;
  padding: 1.5rem;
  background: white;
  /* Add the Neo-shadow to the pane for consistency */
  box-shadow: 4px 4px 0px #361100;
  position: relative;
  z-index: 1;
}

#payment-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
#payment-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.neo-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 2rem;
  border: 3px solid #361100;
  box-shadow: 6px 6px 0 #361100;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.neo-modal-content h2 {
  font-weight: 900;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-transform: uppercase;
  border-bottom: 3px solid #361100;
  padding-bottom: 0.5rem;
}

.neo-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  line-height: 1;
}
.neo-close-btn:hover, .neo-close-btn:focus {
  color: #361100;
  text-decoration: none;
  transform: none;
  box-shadow: none;
  background: none;
}

#payment-element {
  margin-bottom: 1.5rem;
  min-height: 200px;
}

#payment-submit {
  width: 100%;
  padding: 1rem;
  background-color: #284B99;
  color: #fff;
  font-weight: 800;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0 #361100;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.1s;
}
#payment-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #361100;
}
#payment-submit:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #361100;
}
#payment-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#payment-message {
  color: #FF9869;
  margin-top: 1rem;
  font-weight: 700;
  text-align: center;
  display: none;
}
#payment-message.success {
  color: green;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #00A7E1;
  animation: spin 1s ease infinite;
  margin: 0 auto;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.neo-loader {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  padding: 1rem 2rem;
  margin: 3rem auto;
  width: fit-content;
  background-color: #FF9869;
  border: 3px solid #361100;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 2px 2px 0 #361100;
  display: none;
  animation: neo-bounce 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@keyframes neo-bounce {
  0%, 100% {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #361100;
  }
  50% {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #361100;
  }
}
.neo-stripe-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.neo-stripe-input {
  width: 100%;
  padding: 12px;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0 #361100;
  margin-bottom: 1rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  border-radius: 0;
  background: white;
  appearance: none;
}
.neo-stripe-input:focus {
  outline: none;
  box-shadow: 6px 6px 0 #361100;
}

.neo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

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

.neo-modal-content {
  background: white;
  border: 3px solid black;
  box-shadow: 8px 8px 0 black;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modal-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.neo-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #FF9869;
  border: 2px solid #284B99;
  color: #284B99;
  font-weight: bold;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  z-index: 10;
  box-shadow: 2px 2px 0 #284B99;
}

.neo-close-btn:hover {
  background: #FFA57B;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #284B99;
}

/* Neo-Brutalist Header */
.neo-header {
  background: white;
  border-bottom: 3px solid #361100;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  /* Mobile Menu */
}
.neo-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.neo-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.neo-header .logo img {
  height: 40px;
}
.neo-header .logo .logo-text {
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #284B99;
}
.neo-header .desktop-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}
@media screen and (min-width: 1024px) {
  .neo-header .desktop-nav {
    display: flex;
    gap: 2rem;
  }
}
.neo-header .desktop-nav a {
  color: #284B99;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 3px solid transparent;
  /* Reserve space for hover border */
}
@media screen and (min-width: 1024px) {
  .neo-header .desktop-nav a {
    padding: 0.5rem 1rem;
  }
}
.neo-header .desktop-nav a:hover {
  background: #FF9869;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
  transform: translate(-2px, -2px);
  text-decoration: none;
}
.neo-header .desktop-nav a:active {
  transform: translate(0, 0);
  box-shadow: none;
}
.neo-header .mobile-menu-toggle {
  display: block;
  position: relative;
  z-index: 1001;
  /* Hamburger Button Style */
  /* Checkbox Logic */
  /* Dropdown/Overlay Menu */
}
@media screen and (min-width: 1024px) {
  .neo-header .mobile-menu-toggle {
    display: none;
  }
}
.neo-header .mobile-menu-toggle .menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 3px solid #361100;
  background: white;
  box-shadow: 4px 4px 0px #361100;
  transition: all 0.2s;
}
.neo-header .mobile-menu-toggle .menu-btn span {
  display: block;
  width: 20px;
  height: 3px;
  background: #284B99;
  position: relative;
}
.neo-header .mobile-menu-toggle .menu-btn span::before, .neo-header .mobile-menu-toggle .menu-btn span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #284B99;
  left: 0;
  transition: all 0.2s;
}
.neo-header .mobile-menu-toggle .menu-btn span::before {
  top: -7px;
}
.neo-header .mobile-menu-toggle .menu-btn span::after {
  bottom: -7px;
}
.neo-header .mobile-menu-toggle #menu-toggle {
  /* Visually hidden but accessible */
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
  pointer-events: none;
  /* Show focus ring on the label when checkbox is focused */
}
.neo-header .mobile-menu-toggle #menu-toggle:focus + .menu-btn {
  outline: 3px solid #284B99;
  outline-offset: 2px;
}
.neo-header .mobile-menu-toggle #menu-toggle:checked ~ .menu-btn {
  background: #FF9869;
}
.neo-header .mobile-menu-toggle #menu-toggle:checked ~ .menu-btn span {
  background: transparent;
}
.neo-header .mobile-menu-toggle #menu-toggle:checked ~ .menu-btn span::before {
  transform: rotate(45deg);
  top: 0;
}
.neo-header .mobile-menu-toggle #menu-toggle:checked ~ .menu-btn span::after {
  transform: rotate(-45deg);
  bottom: 0;
}
.neo-header .mobile-menu-toggle #menu-toggle:checked ~ .mobile-menu {
  display: flex;
}
.neo-header .mobile-menu-toggle .mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0;
  width: 250px;
  background: white;
  border: 3px solid #361100;
  box-shadow: 4px 4px 0px #361100;
  padding: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}
.neo-header .mobile-menu-toggle .mobile-menu a {
  text-align: center;
  padding: 0.75rem;
  border: 3px solid #361100;
  font-weight: 800;
  color: #284B99;
  text-transform: uppercase;
}
.neo-header .mobile-menu-toggle .mobile-menu a:hover {
  background: #FF9869;
}

/* Neo-Brutalist Footer */
footer {
  background: #284B99;
  color: white;
  border-top: 3px solid #361100;
  padding: 4rem 2rem;
  display: grid;
  gap: 3rem;
  /* Section 1: Logos & Social */
  /* Section 2: Description */
  /* Section 3: Links */
}
@media screen and (min-width: 768px) {
  footer {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    text-align: left;
  }
}
footer h2 {
  font-family: Inter, sans-serif !important;
  color: #FF9869;
  text-shadow: 2px 2px 0 black;
  margin-bottom: 1.5rem;
  text-align: center;
}
@media screen and (min-width: 768px) {
  footer h2 {
    text-align: inherit;
  }
}
footer p, footer a, footer a:visited {
  color: white !important;
  font-weight: 500;
  text-decoration: none !important;
}
footer a:hover {
  color: white !important;
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  text-decoration-color: #FF9869 !important;
}
footer #footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media screen and (min-width: 768px) {
  footer #footer-left {
    align-items: flex-start;
  }
}
footer #footer-left #footer-logos {
  margin-bottom: 2rem;
  text-align: center;
}
@media screen and (min-width: 768px) {
  footer #footer-left #footer-logos {
    text-align: left;
  }
}
footer #footer-left #footer-logos #footer-logo-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
@media screen and (min-width: 768px) {
  footer #footer-left #footer-logos #footer-logo-images {
    justify-content: flex-start;
    align-items: flex-start;
  }
}
@media screen and (min-width: 1024px) {
  footer #footer-left #footer-logos #footer-logo-images {
    flex-direction: row;
    align-items: center;
  }
}
footer #footer-left #footer-logos #footer-logo-images img {
  height: 40px;
  /* Removed box styling as requested */
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}
footer #footer-left #footer-social-links {
  display: flex;
  gap: 1.5rem;
}
footer #footer-left #footer-social-links img {
  width: 32px;
  transition: transform 0.2s;
}
footer #footer-left #footer-social-links img:hover {
  transform: scale(1.1);
}
footer #footer-center {
  text-align: center;
}
@media screen and (min-width: 768px) {
  footer #footer-center {
    text-align: left;
  }
}
footer #footer-center .footer-description {
  margin-bottom: 1rem;
  line-height: 1.5;
}
footer #footer-right {
  text-align: center;
}
@media screen and (min-width: 768px) {
  footer #footer-right {
    text-align: right;
  }
}
footer #footer-right ul {
  list-style: none;
  padding: 0;
}
footer #footer-right ul li {
  margin-bottom: 0.75rem;
}

.skip-link {
  background: #FF9869;
  color: #284B99;
  font-weight: 700;
  left: 50%;
  padding: 4px;
  position: absolute;
  transform: translateX(-50%) translateY(-120%);
  transition: transform 0.3s;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateX(-50%) translateY(0%);
}

.index-hero {
  background-position: 66% top !important;
}
@media screen and (min-width: 768px) {
  .index-hero #hero-text {
    margin-left: 2rem !important;
  }
}
@media screen and (min-width: 1024px) {
  .index-hero #hero-text {
    margin-left: 25% !important;
    width: 30%;
  }
}
@media screen and (max-width: 767px) {
  .index-hero {
    background-position: 60% top !important;
    align-items: flex-start !important;
    padding-top: 2rem;
  }
  .index-hero #hero-text {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.index-hero-text {
  text-shadow: 2px 2px 0 #361100;
}
@media screen and (max-width: 767px) {
  .index-hero-text {
    max-width: 50%;
  }
  .index-hero-text .hero-headline {
    margin: 0 0 1rem;
  }
  .index-hero-text p:not(.hero-headline) {
    display: none;
  }
  .index-hero-text a, .index-hero-text button {
    margin: 1rem 0 !important;
  }
}
@media screen and (max-width: 767px) {
  .index-hero-text .hero-headline {
    font-size: 1.6rem;
    line-height: 1.1;
  }
}
@media screen and (width <= 360px) {
  .index-hero-text .hero-headline {
    font-size: 1.6rem;
  }
}

/* Course Page Hero Overrides */
.amu-hero .hero-headline, .eng-hero .hero-headline, .chc-hero .hero-headline, .ppl-hero .hero-headline {
  margin-bottom: 1rem !important;
}
.amu-hero .hero-text, .eng-hero .hero-text, .chc-hero .hero-text, .ppl-hero .hero-text {
  display: flex;
  flex-direction: column;
  background-color: #284B99;
  color: white;
  padding: 1rem;
  box-shadow: 4px 4px 0px #361100;
  border: 3px solid #361100;
}
@media screen and (min-width: 1400px) {
  .amu-hero .hero-text, .eng-hero .hero-text, .chc-hero .hero-text, .ppl-hero .hero-text {
    width: 50%;
  }
}

.courses-hero {
  background-position: center right 35% !important;
}
@media screen and (min-width: 768px) {
  .courses-hero #hero-text {
    max-width: 25%;
  }
}
@media screen and (max-width: 767px) {
  .courses-hero {
    align-items: flex-start !important;
  }
  .courses-hero #hero-text {
    max-width: 70%;
    height: 90%;
    display: flex;
    flex-direction: column;
  }
  .courses-hero .hero-headline {
    margin-bottom: 0;
  }
}

.amu-hero {
  background-position: center right 35% !important;
}
@media screen and (max-width: 767px) {
  .amu-hero #hero-text {
    max-width: 70%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}
@media screen and (min-width: 768px) {
  .amu-hero #hero-text {
    max-width: 30%;
    height: 90%;
    display: flex;
    flex-direction: column;
  }
}
@media screen and (min-width: 1024px) {
  .amu-hero #hero-text {
    max-width: 30%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .amu-hero .hero-text {
    width: 50%;
  }
}
@media screen and (min-width: 1400px) {
  .amu-hero #hero-text {
    max-width: 30%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .amu-hero .hero-text {
    width: 50%;
  }
}

.chc-hero {
  background-position: center right 45% !important;
}
@media screen and (max-width: 767px) {
  .chc-hero #hero-text {
    max-width: 70%;
  }
}
@media screen and (min-width: 768px) {
  .chc-hero #hero-text {
    max-width: 30%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
@media screen and (min-width: 1024px) {
  .chc-hero #hero-text {
    max-width: 30%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .chc-hero .hero-text {
    max-width: 50%;
  }
}
@media screen and (min-width: 1400px) {
  .chc-hero #hero-text {
    max-width: 30%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .chc-hero .hero-text {
    max-width: 50%;
  }
}

.eng-hero {
  background-position: center right 60% !important;
}
@media screen and (min-width: 768px) {
  .eng-hero #hero-text {
    max-width: 20%;
  }
}
@media screen and (max-width: 767px) {
  .eng-hero {
    align-items: center !important;
  }
  .eng-hero #hero-text {
    max-width: 60%;
  }
}

.ppl-hero {
  background-position: top left 55% !important;
}
@media screen and (max-width: 767px) {
  .ppl-hero #hero-text {
    max-width: 70%;
  }
}
@media screen and (min-width: 768px) {
  .ppl-hero {
    padding-top: 3rem;
    align-items: flex-end !important;
  }
  .ppl-hero #hero-text {
    max-width: 25%;
    margin-bottom: 10%;
  }
}
@media screen and (min-width: 1024px) {
  .ppl-hero {
    align-items: flex-start !important;
  }
  .ppl-hero #hero-text {
    max-width: 20%;
  }
  .ppl-hero .hero-text {
    width: 70%;
  }
}
@media screen and (min-width: 1400px) {
  .ppl-hero {
    align-items: flex-start !important;
  }
  .ppl-hero #hero-text {
    max-width: 20%;
  }
  .ppl-hero .hero-text {
    width: 70%;
  }
}

.contact-hero {
  background-position: center right 35% !important;
}

@media screen and (min-width: 768px) {
  .about-hero #hero-text {
    max-width: 25%;
  }
}
@media screen and (max-width: 767px) {
  .about-hero {
    align-items: center !important;
  }
  .about-hero #hero-text {
    max-width: 80%;
  }
}

@media screen and (min-width: 768px) {
  .contact-hero #hero-text {
    max-width: 25%;
  }
}
@media screen and (max-width: 767px) {
  .contact-hero {
    align-items: flex-start !important;
  }
  .contact-hero #hero-text {
    max-width: 80%;
  }
}

.policy {
  grid-column: 2/span 3;
  background-color: white;
  padding: 0 3rem;
}
.policy ul {
  list-style: initial;
}
.policy ul, .policy ol {
  padding: 0 2rem;
}
.policy li {
  padding: 0 1rem;
}
.policy p {
  padding: 0 0.5rem;
}
.policy .policy-item {
  font-size: 2rem;
  margin: 1rem 0;
}

.course-calendar h2, .course-calendar h3, .course-calendar h4, .course-calendar h5, .course-calendar h6 {
  text-align: left;
}
@media screen and (max-width: 767px) {
  .course-calendar {
    padding: 2rem;
  }
}
@media screen and (min-width: 768px) {
  .course-calendar {
    grid-column: 2/span 3;
  }
}

.form-return {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8rem;
  text-align: center;
}

#landing-main {
  padding-top: 2rem;
}
@media screen and (max-width: 767px) {
  #landing-main .landing-text {
    grid-column: 2/span 3;
  }
}
@media screen and (min-width: 768px) {
  #landing-main .landing-text {
    grid-column: 3;
  }
}
#landing-main h2 {
  margin-top: 4rem;
}
#landing-main ul li {
  list-style: circle;
}
#landing-main #callback-form-wrapper {
  grid-column: 1/span 5;
  background-color: #71A9F7;
}
#landing-main #callback-form-wrapper h2 {
  margin-top: 1rem;
}
#landing-main #course-enroll-banner {
  margin-top: 3rem;
  padding: 2rem 0;
}

.graduate-early-hero .hero-text {
  text-shadow: #361100 0 0 5px;
}

/* History Dashboard Styles */
@property --progress {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  font-family: "Courier New", Courier, monospace;
}

/* Neo-Brutalist Card */
.neo-card {
  background: white;
  border: 3px solid black;
  box-shadow: 6px 6px 0 black;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: transform 0.1s ease;
}

.neo-card:hover {
  box-shadow: 8px 8px 0 black;
}

.bg-light-gray {
  background: #e9ecef;
}

/* Header Section */
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdfd96;
  border: 3px solid black;
  box-shadow: 4px 4px 0 black;
  padding: 1rem;
  margin-bottom: 2rem;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Chapter Image */
.chapter-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border: 3px solid black;
  margin-bottom: 1rem;
}

/* Chapter Text */
.chapter-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Inset Chapter Image */
.chapter-image-inset {
  float: left;
  width: 33%;
  margin-right: 1.5rem;
  border: 3px solid black;
  box-shadow: 4px 4px 0 black;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .chapter-image-inset {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
    display: block;
  }
}
/* Buttons */
.neo-btn {
  display: inline-block;
  background: #FF9869;
  color: #284B99;
  border: 3px solid #284B99;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 4px 4px 0 #284B99;
  margin-right: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.1s;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.neo-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #284B99;
  background: #ffaa83;
  color: #284B99;
}

.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #284B99;
}

.neo-btn.secondary {
  background: white;
}

.neo-btn.tertiary {
  background: #284B99;
  color: white;
}

.neo-btn.tertiary:hover {
  color: white;
  background: #1d3771;
}

.neo-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 4px 4px 0 #284B99;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 3rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.neo-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.neo-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid black;
  border-radius: 50%;
  background: conic-gradient(#FF9869 var(--progress, 0%), white 0deg);
  box-shadow: 6px 6px 0 black;
  transition: --progress 0.5s ease;
  margin-bottom: 1.5rem;
  position: relative;
}

.neo-spinner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 3px solid black;
  border-radius: 50%;
}

.loading-text {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  background: white;
  border: 3px solid black;
  padding: 0.5rem 1rem;
  box-shadow: 4px 4px 0 black;
}

.d-none {
  display: none !important;
}

/* JS Toggled Hidden State (No !important) */
.js-hidden {
  display: none;
}

.error-msg:not(:empty) {
  color: #d90429;
  background: #ffccd5;
  border: 2px solid #800f2f;
  padding: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Modal Styles */
.neo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

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

.neo-modal-content {
  background: white;
  border: 3px solid black;
  box-shadow: 8px 8px 0 black;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.neo-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #FF9869;
  border: 2px solid #284B99;
  color: #284B99;
  font-weight: bold;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  z-index: 10;
  box-shadow: 2px 2px 0 #284B99;
}

.neo-close-btn:hover {
  background: #ffaa83;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #284B99;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

.form-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #000;
  border-radius: 0;
  font-family: inherit;
}

.framework-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #000;
  color: #fff;
  font-weight: bold;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* Review Pagination */
.review-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  border-top: 2px solid #eee;
  padding-top: 1rem;
}

/* Custom Neo-Brutalist Radio Buttons */
.rating-group {
  display: flex;
  justify-content: space-between;
  max-width: 300px;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.rating-option {
  display: block;
  margin: 0;
  cursor: pointer;
  position: relative;
  flex: 1;
}

.rating-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.rating-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1/1;
  border: 2px solid black;
  background: white;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 4px 4px 0 black;
  transition: all 0.2s ease;
  user-select: none;
}

.rating-option input:checked + .rating-box {
  background: #FF9869;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 black;
}

.rating-option:hover .rating-box {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 black;
  background: #f0f0f0;
}

.rating-option:hover input:checked + .rating-box {
  background: #FF9869;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 black;
}

@media (max-width: 400px) {
  .rating-group {
    max-width: 100%;
  }
}
/* Accessibility Focus State */
.rating-option:focus-within .rating-box {
  border: 2px solid #FF9869;
  box-shadow: 6px 6px 0 black;
  background: #fff5f0;
}

/* Utilities (Missing from Global) */
.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-baseline {
  align-items: baseline;
}

.gap-2 {
  gap: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.text-end {
  text-align: right;
}

/* Quiz Styles */
.list-group {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-group-item {
  border: 2px solid black;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background: white;
  box-shadow: 2px 2px 0 black;
}

.bg-success {
  background-color: #198754 !important;
}

.text-white {
  color: white !important;
}

/* Responsive Button Group */
.button-group-responsive {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .button-group-responsive {
    flex-direction: column;
  }
}
/* Progress Bar */
.neo-progress-container {
  width: 100%;
  height: 1.5rem;
  border: 3px solid black;
  background: white;
  box-shadow: 4px 4px 0 black;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.neo-progress-bar {
  height: 100%;
  background: #FF9869;
  width: 0%;
  transition: width 0.5s ease;
  border-right: 3px solid black;
}

/* Toast Notification */
.neo-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3001;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.neo-toast {
  background: white;
  border: 3px solid black;
  box-shadow: 6px 6px 0 black;
  padding: 1rem 1.5rem;
  min-width: 300px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn 0.3s ease-out;
}

.neo-toast.error {
  border-color: #800f2f;
  background: #ffccd5;
  color: #800f2f;
}

.neo-toast.success {
  border-color: #0f5132;
  background: #d1e7dd;
  color: #0f5132;
}

.neo-toast.warning {
  border-color: #856404;
  background: #fff3cd;
  color: #856404;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Extracted Inline Styles */
#guest-banner {
  background: #fdfd96;
  border: 3px solid black;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 4px 4px 0 black;
}
#guest-banner h3 {
  margin: 0 0 0.5rem;
}
#guest-banner p {
  margin: 0;
}
#guest-banner .neo-btn {
  margin-top: 1rem;
}

.chapter-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid black;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.chapter-title-wrapper h2 {
  margin: 0;
  border: none;
}

#btn-copy-chapter {
  margin: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  box-shadow: 2px 2px 0 black;
}

#chapter-counter, #quiz-review-counter, #review-counter {
  font-weight: bold;
}

.description-link {
  text-decoration: underline;
  font-weight: bold;
  color: black;
  font-size: 0.9rem;
}

.unit-link {
  text-decoration: underline;
  font-weight: bold;
  color: black;
}

.stats-container {
  font-family: monospace;
  font-size: 1.1rem;
}

#remaining-categories {
  font-size: 0.9em;
  color: #d90429;
  font-weight: bold;
  /* Display handled by .js-hidden or JS */
}

.action-buttons {
  gap: 1rem;
}

.float-end {
  float: right;
}

.modal-header-line {
  border-bottom: 3px solid black;
  padding-bottom: 0.5rem;
}

.review-text-block {
  white-space: pre-wrap;
}

.char-year-highlight {
  font-weight: 800;
  color: #284B99;
}

.text-decoration-none {
  text-decoration: none;
}

.ml-2 {
  margin-left: 0.5rem;
}

.card-header-title {
  margin: 0;
}

.end-unit-list-item {
  font-size: 1.1rem;
}

.check-box-square {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid black;
  margin-right: 10px;
  background: white;
}

.modal-header-line {
  border-bottom: 3px solid black;
  padding-bottom: 0.5rem;
}

.modal-divider {
  border-top: 2px solid #eee;
  margin: 2rem 0;
}

.review-text-block {
  white-space: pre-wrap;
}

.char-year-highlight {
  font-weight: 800;
  color: #284B99;
}

.text-decoration-none {
  text-decoration: none;
}

.float-end {
  float: right;
}

/* Course Material Styles */
.course-index-section,
.course-material-section {
  /* Override global neo-card sizing for vertical lists */
}
.course-index-section .vertical-list-card,
.course-material-section .vertical-list-card {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: none !important;
}
.course-index-section .departments-grid,
.course-material-section .departments-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1.5rem;
}
.course-index-section .grid-container,
.course-material-section .grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1.5rem;
}
.course-index-section .grid-container .vertical-list-card,
.course-material-section .grid-container .vertical-list-card {
  width: 100% !important;
  flex: 0 0 100% !important;
}
@media screen and (min-width: 768px) {
  .course-index-section .grid-container .vertical-list-card,
.course-material-section .grid-container .vertical-list-card {
    width: calc((100% - 1.5rem) / 2) !important;
    flex: 0 0 calc((100% - 1.5rem) / 2) !important;
  }
}
@media screen and (min-width: 1024px) {
  .course-index-section .grid-container .vertical-list-card,
.course-material-section .grid-container .vertical-list-card {
    width: calc((100% - 4.5rem) / 4) !important;
    flex: 0 0 calc((100% - 4.5rem) / 4) !important;
  }
}
.course-index-section .flex-col,
.course-material-section .flex-col {
  display: flex;
  flex-direction: column;
}
.course-index-section .flex-grow,
.course-material-section .flex-grow {
  flex-grow: 1;
}
.course-index-section .h-full,
.course-material-section .h-full {
  height: 100%;
}
.course-index-section .w-full,
.course-material-section .w-full {
  width: 100%;
}
.course-index-section .mt-auto,
.course-material-section .mt-auto {
  margin-top: auto;
}
.course-index-section .pt-4,
.course-material-section .pt-4 {
  padding-top: 1rem;
}
.course-index-section .mb-2,
.course-material-section .mb-2 {
  margin-bottom: 0.5rem;
}
.course-index-section .mb-4,
.course-material-section .mb-4 {
  margin-bottom: 1rem;
}
.course-index-section .grid-item-card,
.course-material-section .grid-item-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: #f9fafb;
  transition: all 0.2s;
  text-decoration: none;
  padding: 1.5rem;
  display: block;
  margin-bottom: 0;
}
.course-index-section .grid-item-card:hover,
.course-material-section .grid-item-card:hover {
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}
.course-index-section .grid-item-card h3,
.course-material-section .grid-item-card h3 {
  color: #111827;
  text-align: left;
}
.course-index-section .grid-item-card p,
.course-material-section .grid-item-card p {
  color: #1f2937;
}
.course-index-section .grid-item-card .view-link,
.course-material-section .grid-item-card .view-link {
  color: #1e40af;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.2s;
}
.course-index-section .grid-item-card:hover h3,
.course-material-section .grid-item-card:hover h3 {
  color: #1d4ed8;
}
.course-index-section .grid-item-card:hover .view-link,
.course-material-section .grid-item-card:hover .view-link {
  opacity: 1;
  transform: translateY(0);
}
.course-index-section .font-bold,
.course-material-section .font-bold {
  font-weight: bold;
}
.course-index-section .text-xl,
.course-material-section .text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.course-index-section .text-base,
.course-material-section .text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.course-index-section .text-sm,
.course-material-section .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.course-material-section .course-material-card {
  margin: 0 auto;
  max-width: calc(70ch + 20rem);
  width: 100%;
  box-sizing: border-box;
}
.course-material-section .tab-btn.active {
  background-color: white;
  border-color: #e5e7eb;
  /* gray-200 */
  border-bottom-color: white;
  color: #2563eb;
  /* blue-600 */
  position: relative;
  top: 1px;
  z-index: 10;
}
.course-material-section .tab-panel.hidden {
  display: none;
}
.course-material-section .tab-nav {
  margin-bottom: -1px;
  /* Overlap border */
}
.course-material-section .tab-btn:focus-visible {
  outline: 2px solid #2563eb;
  /* blue-600 */
  outline-offset: -2px;
  z-index: 20;
}

.assessment-section {
  background-color: #71A9F7;
  padding: 3rem 1rem;
}
.assessment-section .course-material-card {
  margin: 0 auto;
  max-width: calc(70ch + 20rem);
  width: 100%;
  box-sizing: border-box;
}

/* English Assignments Grid */
.english-assignments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1.5rem;
}
.english-assignments-grid .neo-card {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}
@media screen and (min-width: 768px) {
  .english-assignments-grid .neo-card {
    /* 3 columns minus 2 gaps of 1.5rem each (3rem total) */
    width: calc((100% - 3rem) / 3);
  }
}

/* Index Assignment & Course Cards Grid */
.course-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1.5rem;
}
.course-cards-grid .index-assignment-card {
  flex-direction: column;
  width: 100%;
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .course-cards-grid .index-assignment-card {
    width: calc((100% - 1.5rem) / 2);
  }
}
@media screen and (min-width: 1024px) {
  .course-cards-grid .index-assignment-card {
    width: calc((100% - 4.5rem) / 4);
  }
}
.course-cards-grid .index-assignment-card .card-action {
  width: auto;
  border-top: 1px solid #e5e7eb;
  border-left: none;
}

/* Index Assignment & Course Cards */
.index-assignment-card {
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  z-index: 1;
  /* Pricing card top border motifs based on assessment type */
  /* Fallback for card-assessment if pseudo-class :has is not supported or matching */
  /* Keep it in column for both mobile and desktop (pricing cards style) */
}
.index-assignment-card:hover, .index-assignment-card:focus {
  text-decoration: none !important;
}
.index-assignment-card:hover *, .index-assignment-card:focus * {
  text-decoration: none !important;
}
.index-assignment-card.card-free {
  border-top: 8px solid #e5e7eb;
  /* gray-200 */
}
.index-assignment-card.card-assessment:has(.bg-green-100) {
  border-top: 8px solid #10b981;
  /* green */
}
.index-assignment-card.card-assessment:has(.bg-blue-100) {
  border-top: 8px solid #3b82f6;
  /* blue */
}
.index-assignment-card.card-assessment:has(.bg-orange-100) {
  border-top: 8px solid #f97316;
  /* orange */
}
.index-assignment-card.card-assessment {
  border-top: 8px solid #71A9F7;
  /* medblue */
}
.index-assignment-card.card-course {
  border-top: 8px solid #FF8C00;
  /* orange */
}
.index-assignment-card .card-content {
  flex-grow: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.index-assignment-card .card-content p {
  font-weight: 300;
}
.index-assignment-card .card-content .learning-goals-container {
  border-left: 1px solid #e0e0e0;
  padding-left: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.index-assignment-card .card-content .learning-goals-container h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4b5563;
  /* gray-600 */
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.index-assignment-card .card-content .learning-goals-container ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.index-assignment-card .card-content .learning-goals-container ul li {
  font-weight: 400;
  /* Lighten the text */
  font-size: 0.9rem;
  color: #4b5563;
  /* gray-600 */
  margin-bottom: 0.25rem;
  font-style: italic;
  /* Match pricing card detail style slightly */
}
.index-assignment-card .card-action {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border-top: 2px dashed #000;
  /* dashed style from pricing card */
  text-decoration: none;
  transition: background-color 0.2s ease;
  text-align: center;
  margin-top: auto;
}
.index-assignment-card .card-action:hover {
  text-decoration: none;
  background-color: #f8fafc;
  /* very light gray to indicate hover without overriding too much */
}
.index-assignment-card .card-action:hover .action-link {
  opacity: 1;
  transform: translateY(0);
}
.index-assignment-card .card-action .status-badge {
  font-size: 3rem;
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #1a202c;
  /* default dark */
}
.index-assignment-card .card-action .status-badge.green-badge {
  color: #10b981;
  /* Keep standard green for "Free" */
}
.index-assignment-card .card-action .status-badge.orange-badge {
  color: #1a202c;
  /* standard dark, or we could use an orange/blue if preferred */
  background: none;
  padding: 0;
  border-radius: 0;
}
.index-assignment-card .card-action .status-desc {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
  color: #4a5568;
}
.index-assignment-card .card-action .action-link {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  /* sm */
  font-weight: 700;
  color: #1e40af;
  /* blue-800 */
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}
.index-assignment-card .card-action .action-link svg {
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
}

main {
  display: block;
}
