:root {
  /* PRIMARY BRAND COLORS */
  --primary-blue-dark: #1e3c72;
  --primary-blue-medium: #2a5298;
  --secondary-blue-light: #667eea;
  --secondary-blue-purple: #764ba2;
  --brand-primary: #006c8a;
  --brand-primary-light: #009ec9;
  --brand-primary-dark: #004d61;
  --color-headings: #1b0760;

  /* ACTION COLORS */
  --primary-orange: #ff6b35;
  --primary-orange-hover: #e55a2b;
  --secondary-orange: #f7931e;
  --ai-purple: #8b5cf6;
  --gold-accent: #f59e0b;

  /* NEUTRAL COLORS */
  --white: #ffffff;
  --gray-lightest: #f8f9fa;
  --gray-light: #f0f0f0;
  --gray-medium: #666666;
  --gray-dark: #333333;
  --charcoal: #1a1a1a;
  --border-light: #dddddd;

  /* GRADIENT DEFINITIONS */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-blue-dark) 0%,
    var(--primary-blue-medium) 100%
  );
  --gradient-hero: linear-gradient(135deg, #006c8a 0%, #2a5298 100%);
  --gradient-orange: linear-gradient(
    135deg,
    var(--primary-orange) 0%,
    var(--secondary-orange) 100%
  );

  /* SHADOW COLORS */
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.3);

  /* SEMANTIC COLORS */
  --success-color: #27ca3f;
  --warning-color: #ffbd2e;
  --error-color: #ff5f56;
  --info-color: var(--secondary-blue-light);
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--gray-dark);
  line-height: 1.6;
  font-size: 2.4rem;
  padding-top: calc(60px + 2rem);
  margin: 0;
}

@media screen and (min-width: 768px) {
  body {
    padding-top: calc(60px + 2rem);
  }
}

/* Mobile menu open state - IMPROVED */
@media screen and (max-width: 767px) {
  body.nav-open {
    padding-top: 280px;
    overflow-x: hidden;
  }
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  color: var(--color-headings);
  line-height: 1.1;
}

h1 {
  font-size: clamp(4rem, 6vw, 7rem);
}
h2 {
  font-size: clamp(3rem, 4vw, 4rem);
}
h3 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 500;
}

.section-header h2,
.program-card h3 {
  color: var(--primary-blue-dark);
}

.hero h1,
.cta-section h2 {
  color: var(--white);
}

.footer-section h3 {
  color: #ff6b35;
}

p {
  margin-top: 0;
  font-size: 1.8rem;
  line-height: 1.6;
}

@media screen and (min-width: 1024px) {
  body {
    font-size: 1.8rem;
  }
  h1 {
    font-size: 8rem;
  }
  h2 {
    font-size: 4rem;
  }
  h3 {
    font-size: 2.4rem;
  }
}

/* Lists */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.list {
  list-style: none;
  padding-left: 0;
}

.list--tick {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
}

.list--tick .list__item {
  position: relative;
  padding: 0.8rem 0 0.8rem 3rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  line-height: 1.5;
}

.list--tick .list__item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.8rem;
  color: var(--primary-orange);
  font-weight: bold;
  font-size: 1.8rem;
}

@media screen and (min-width: 1024px) {
  .list--tick .list__item {
    padding-left: 3rem;
    font-size: 1.6rem;
  }
}

/* Buttons - ENHANCED */
.btn {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1.2rem 2.4rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  margin: 1rem 0;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 0.5px;
}

.btn--primary {
  background: var(--gradient-orange);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--white);
}

.btn--secondary:hover {
  background: white;
  color: var(--primary-blue-dark);
  transform: translateY(-2px);
}

.btn--stretched {
  padding-left: 3rem;
  padding-right: 3rem;
}

.btn--block {
  display: block;
  width: 100%;
}

.btn-inquire {
  background: var(--primary-orange);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.btn-inquire:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
}

@media screen and (max-width: 480px) {
  .btn--stretched {
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-buttons {
    width: 100%;
  }
}

/* Card - IMPROVED */
.card {
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow-light);
  overflow: hidden;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card__header,
.card__body {
  padding: 2rem 3rem;
}

.card__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card--primary .card__header {
  background: var(--gradient-primary);
  color: var(--white);
  position: relative;
}

.card--secondary .card__header {
  background: var(--secondary-blue-light);
  color: var(--white);
}

/* Plans - ENHANCED */
.plan {
  transition: transform 0.3s ease-out;
  height: 100%;
}

.plan__name {
  color: #fff;
  margin: 0 0 1rem 0;
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: 1px;
}

.plan__mode,
.plan__location,
.plan__time {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.8;
}

.skills {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: block;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray-medium);
}

.plan .list__item {
  margin-bottom: 1rem;
}

.plan__content {
  margin-top: 2rem;
}

.plan--popular {
  transform: scale(1.02);
  position: relative;
}

.plan--popular .card__header::after {
  content: "Most Popular";
  position: absolute;
  top: -7px;
  right: 2rem;
  background: var(--primary-orange);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan:hover {
  transform: translateY(-5px);
}

.plan--popular:hover {
  transform: scale(1.05) translateY(-5px);
}

@media screen and (min-width: 1024px) {
  .plan__name {
    font-size: 2.2rem;
  }
  .plan__mode,
  .plan__location,
  .plan__time {
    font-size: 1.5rem;
  }
  .skills {
    font-size: 1.6rem;
  }
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
}

.icon-container {
  background: #f3f9fa;
  width: 64px;
  height: 64px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon--primary {
  fill: var(--primary-orange);
}

.icon--white {
  fill: white;
}

.icon--small {
  width: 30px;
  height: 30px;
}

.icon-container--accent {
  background: var(--color-accent);
}

/* Grids - ENHANCED */
.grid {
  display: grid;
  gap: 2rem;
}

/* Grids */
.grid {
  display: grid;
}

@media screen and (min-width: 768px) {
  .grid--1x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
  }
  .grid--1x4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid--1x5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .grid--1x3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* Collapsibles - IMPROVED */
.collapsible__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 2rem;
  /* background: white; */
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.collapsible__header:hover {
  background-color: var(--gray-lightest);
}

.collapsible__heading {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.collapsible__chevron {
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
  font-size: 1.4rem;
  color: var(--primary-orange);
}

.collapsible__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 0 2rem;
}

.collapsible--expanded .collapsible__chevron {
  transform: rotate(0);
}

.collapsible--expanded .collapsible__content {
  max-height: 100vh;
  opacity: 1;
  padding: 0 2rem 2rem;
}

@media screen and (min-width: 768px) {
  body.nav-open {
    padding-top: 350px; /* Increase from 280px to account for the button */
    overflow-x: hidden;
  }
  .nav .collapsible__content {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transition: none;
  }

  .nav__list {
    width: auto;
    display: flex;
    opacity: 1;
    max-height: 100vh;
    font-size: clamp(1.6rem, 1vw + 0.8rem, 2rem);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Callouts */
.callout {
  padding: 4rem;
  border-radius: 16px;
  margin: 4rem 0;
}

.callout--primary {
  background: var(--gradient-primary);
  color: #fff;
}

.callout__heading {
  color: var(--white);
  margin-top: 0;
  font-size: 3rem;
}

.callout .btn {
  justify-self: center;
  align-self: center;
  margin: 1rem;
}

.callout__content {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .callout .grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .callout__content {
    text-align: left;
  }
}

/* Update the callout section styles for better mobile responsiveness */
.callout-signup .grid {
  gap: 2rem;
}

@media screen and (max-width: 768px) {
  .callout-signup .grid {
    grid-template-columns: 1fr; /* Stack items vertically on mobile */
  }

  .callout-signup .btn {
    width: 100%; /* Full width buttons on mobile */
    margin: 1rem 0; /* Add vertical spacing between buttons */
  }

  .callout__content {
    text-align: center; /* Center content on mobile */
  }
}

/* Navigation Bar - IMPROVED */
.nav {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  padding: 1rem;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav__brand {
  flex-shrink: 0;
}
.nav__brand img {
  max-width: 250px;
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav__list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(34, 34, 34, 0.1);
}

.nav__item > a {
  color: var(--color-headings);
  transition: color 0.3s ease;
  font-weight: 500;
  position: relative;
}

.nav__item > a:hover {
  color: var(--primary-orange);
}

.nav__item > a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: width 0.3s ease;
}

.nav__item > a:hover::after {
  width: 100%;
}

/* Mobile: hide dropdown by default */
.dropdown {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 150px;
  padding: 0;
  z-index: 10;
}

/* Desktop: hover dropdown (optional) */
@media screen and (min-width: 768px) {
  .nav__item:hover > .dropdown {
    display: block;
  }
}

.dropdown li a {
  display: block;
  padding: 10px 15px;
  color: #000;
}

.nav__item:hover .dropdown {
  display: block; /* Show dropdown on hover */
}

.nav__toggler {
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-dark);
}

.nav.collapsible--expanded .nav__toggler {
  opacity: 1;
  transform: rotate(90deg);
  box-shadow: 0 0 0 3px #666;
  border-radius: 5px;
}

.cta-buttons {
  display: none;
}

/* Mobile: Show CTA in menu, hide desktop version */
.nav__cta-desktop {
  display: none;
}

@media screen and (min-width: 768px) {
  .nav__list {
    flex: 1;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    margin: 0;
    width: auto;
    display: flex;
    opacity: 1;
  }

  .nav__item {
    border: 0;
    padding: 1rem 0;
  }

  .nav__toggler {
    display: none;
  }

  .btn-inquire {
    background: var(--primary-orange);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
  }

  .nav__item--cta-mobile {
    display: none;
  }

  .nav__cta-desktop {
    display: block;
    margin-left: auto;
  }

  /* Increase specificity to override collapsible states */
  .nav .collapsible__content {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transition: none;
  }
  .nav__brand {
    width: 250px;
    margin-right: 2rem;
  }
  .nav__brand img {
    height: auto; /* Larger size for desktop */
  }
}

/* Blocks */
.block {
  --padding-vertical: clamp(4rem, 8vw, 8rem);
  padding: var(--padding-vertical) 2rem;
}

.block__header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 2rem;
}

.block__header h2 {
  margin-bottom: 1.5rem;
}

.block__header p {
  max-width: 600px;
  margin: 0 auto;

  font-size: 1.8rem;
  line-height: 1.6;
}

.block__heading {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5rem);
}

.block--dark {
  background: #000;
  color: #7b858b;
}

.block--dark .block__heading {
  color: #fff;
}

.block--skewed-right {
  padding-bottom: calc(var(--padding-vertical) + 4rem);
  clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 0% 100%);
}

.block--skewed-left {
  padding-bottom: calc(var(--padding-vertical) + 4rem);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 90%);
}

/* Desktop spacing adjustments */
@media screen and (min-width: 768px) {
  .block__header {
    margin-bottom: 6rem;
  }

  .block__header h2 {
    margin-bottom: 2rem;
  }

  .block__header p {
    font-size: 2rem;
  }
}

/* Hero - ENHANCED */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: calc(60px + 2rem) 2rem 4rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__content .highlight {
  background: linear-gradient(135deg, var(--ai-purple), var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  margin: 1rem 0;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 3rem;
}

.microcopy {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.microcopy span {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.hero__image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 2rem auto 0;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-2deg);
  transition: transform 0.3s ease;
}

.hero__image:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

@media screen and (min-width: 768px) {
  .hero {
    text-align: left;
    padding: calc(60px + 2rem) 2rem 4rem;
  }
  .hero .block__header {
    margin-bottom: 12rem;
    margin-top: -9rem;
  }

  .hero__tagline {
    text-align: left;
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 3rem;
  }

  .hero__image {
    margin: 0;
    max-width: 100%;
  }

  .hero .grid--1x2 {
    align-items: center;
    gap: 3rem;
  }
  .hero-buttons {
    /* Reduce top margin */
    margin-top: 2rem;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Values Section - NEW */
.values {
  background: var(--gray-lightest);
  padding: var(--padding-vertical, 6rem) 2rem;
}

.values__content {
  max-width: 1200px;
  margin: 0 auto;
}

.values__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.values__item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.values__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.values__item strong {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-blue-medium);
  margin-bottom: 1.5rem;
}

.values__icon {
  font-size: 3.5rem;
  color: var(--primary-orange);
  margin-bottom: 2rem;
  display: block;
}

/* Block Plans - ENHANCED */
.block-plans {
  padding: var(--padding-vertical, 6rem) 2rem;
}

.block .grid {
  gap: 4rem;
}

.block-plans .card {
  max-width: 500px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .block-plans .grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

/* Footer */
.footer {
  background: #232323;
}

.footer a {
  color: #fff;
  transition: color 0.3s;
}

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

.footer__section {
  padding: 2rem;
  border-bottom: 1px solid #393939;
}

.footer__section list {
  margin: 0;
}

.footer__heading {
  color: var(--primary-orange);
  text-transform: uppercase;
  font-weight: 600;
}

.footer__brand {
  margin-top: 5rem;
  text-align: center;
}

.footer__brand img {
  /* TODO: Consider refactoring this and applying it to all images */
  width: 100%;
  max-width: 230px;
}

.footer__copyright {
  font-size: 2.1rem;
  color: #fff;
  opacity: 0.3;
}

@media screen and (min-width: 768px) {
  .footer__sections {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
  .footer .collapsible__chevron {
    display: none;
  }
  .footer .collapsible__content {
    opacity: 1;
    max-height: 100%;
  }

  .footer__brand {
    order: -1;
    margin-top: 1rem;
  }

  .footer__copyright {
    font-size: 1rem;
  }

  .footer__section {
    border: 0;
  }

  .footer__heading {
    font-size: 1.6rem;
  }
  .footer__brand img {
    max-height: 100px;
  }
}

/* Features */

.feature__heading {
  margin: 1rem 0;
}
.feature {
  gap: 4rem 2rem;
}

.feature:first-of-type {
  margin-top: 6rem;
}
.feature__image {
  width: auto;
}

@media screen and (min-width: 768px) {
  .feature:nth-of-type(even) .feature__content {
    order: 2;
  }
}

/* Features */
.feature__heading {
  margin: 1rem 0;
  font-size: 2.2rem;
  text-align: center;
}

.feature {
  gap: 4rem 2rem;
}

.feature:first-of-type {
  margin-top: 6rem;
}

.feature__image {
  width: 100%;
  max-width: 30px;
  height: auto;
  margin: 0 auto;
  display: block;
}

@media screen and (min-width: 768px) {
  .feature:nth-of-type(even) .feature__content {
    order: 2;
  }
}

/* Tools Section */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  text-align: center;
}

.tool-item {
  padding: 2rem 1rem;
  background: white;
  border-radius: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tool-item:hover {
  transform: translateY(-5px);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
