:root {
  /* PRIMARY BRAND COLORS */
  /* #008FB7 */
  --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,
    var(--secondary-blue-light) 0%,
    var(--secondary-blue-purple) 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 {
  /* 62.5% of 16px = 10px */
  font-size: 62.5%;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--gray-dark);
  line-height: 1.6;
  /* background: var(--gray-dark); */
  font-size: 2.4rem;
  padding-top: calc(20px + 2rem); /* logo height + padding */
}

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

h1 {
  font-size: 7rem;
}
h2 {
  font-size: 4rem;
}
h3 {
  font-size: 3rem;
  font-weight: 500;
}

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

/* Group headings with white */
.hero h1,
.cta-section h2 {
  color: var(--white);
}

/* Group footer headings with orange */
.footer-section h3 {
  color: #ff6b35;
}
p {
  margin-top: 0;
}

@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;
}

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

.list--tick {
  list-style-image: url("../images/tick.svg");
  padding-left: 8rem;
}

.list--tick .list__item {
  padding-left: 0.5rem;
}

@media screen and (min-width: 1024px) {
  .list--tick .list__item {
    padding-left: 0;
  }
}

/* Buttons */

/* buttons */
.btn {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  margin: 1rem 0;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary-orange);
  color: #fff;
}
.btn--secondary {
  background: transparent;
  color: #fff;
  border: solid var(--white);
}
.btn--primary:hover,
.btn--secondary:hover {
  transform: translateY(-2px);
}

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

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

@media screen and (max-width: 480px) {
  .btn--stretched {
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%; /* make buttons adapt instead of overflowing */
    box-sizing: border-box;
  }

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

/* Card */
.card {
  border-radius: 7px;
  box-shadow: 0 0 20px 10px var(--shadow-light);
  overflow: hidden;
}
.card__header,
card__body {
  padding: 2rem 3rem;
}

.card--primary .card__header {
  background: var(--gradient-primary);
  /* background-image: url('../images/frontend.jpg'); */
  color: var(--white);
}

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

/* Current offering styles */
.block-offering {
  padding: 2rem 1rem;
  background: var(--gray-lightest);
}

.plan {
  margin-bottom: 2rem;
}

/* plans */

/* --- GENERAL FIXES --- */

/* Allow content to render fully inside cards */
.plan,
.plan--popular,
.card,
.card__header,
.card__body {
  overflow: visible;
}

/* Improve readability of text */
.plan__content,
.skills,
.list__item {
  line-height: 1.5; /* fixes cut-off characters like "T" */
  word-break: break-word; /* avoid horizontal overflow on long words */
}

.plan__name {
  color: #fff;
  margin: 1rem 0;
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: 1px;
  line-height: 1.3;
}
.plan__mode,
.plan__location,
.plan__time {
  font-size: 1.4rem;
  font-weight: 300;
  opacity: 0.8;
}
.skills {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  /* Fixes */
  display: block;
  margin-left: 4rem;
}

.plan .list__item {
  margin-bottom: 2rem;
}
.plan__content {
  margin: 1rem;
  font-size: 1.8rem;
}

.plan--popular .card__header {
  position: relative;
}

.plan--popular .card__header::before {
  content: url("../images/popular.svg");
  width: 40px;
  display: inline-block;
  position: absolute;
  top: -6px;
  right: 5%;
}

/* .plan:hover{
    transform: scale(1.05);
}
.plan--popular:hover{
    transform: scale(1.15);
} */

.plan:hover {
  box-shadow: 0 4px 10px var(--shadow-medium);
  transition: box-shadow 0.3s ease;
}

/* Desktop styles after */
@media screen and (min-width: 768px) {
  .block-offering {
    padding: 4rem 2rem;
  }

  .plan {
    margin-bottom: 0;
  }

  .plan__name {
    font-size: 3rem;
    margin: 1.5rem 0;
  }

  .plan__content {
    margin: 2rem;
  }

  .skills {
    font-size: 2rem;
    margin-left: 4rem;
  }
}

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

  .skills {
    font-size: 1.7rem;
  }
}

/* icon */
.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);
}

/* Quotes */
.quote {
  font-size: 3rem;
  font-size: italic;
  color: #5c5577;
  line-height: 1.3;
}

.quote__text::before {
  content: open-quote;
}

.quote__text::after {
  content: close-quote;
}

.quote__author {
  font-size: 3rem;
  font-weight: 500;
  font-style: normal;
  margin-bottom: 0;
}

.quote__company {
  color: var(--color-headings);
  opacity: 0.4;
  font-size: 2rem;
  font-style: normal;
}

.quote__line {
  position: relative;
  bottom: 10px;
}

@media screen and (min-width: 1024px) {
  .quote {
    font-size: 2rem;
  }
  .quote__author {
    font-size: 2.4rem;
  }
  .quote__company {
    font-size: 1.6rem;
  }
}

/* Media */
.media {
  display: flex;
}
.media__title {
  margin-top: 0;
}
.media__body {
  margin: 0 2rem;
}
.media__image {
  margin-top: 1rem;
}

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

@media screen and (min-width: 768px) {
  .grid--1x2 {
    grid-template-columns: repeat(2, 1fr);
    /* gap: 4rem; */
  }
  .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: 4rem; */
  }
}

/* testimonial */
.testimonial {
  padding: 3rem;
}

.testimonial__image {
  position: relative;
}

.testimonial__image > img {
  width: 100%;
}

.testimonial__image > .icon-container {
  position: absolute;
  top: 3rem;
  right: -32px;
}

@media screen and (min-width: 768px) {
  .testimonial .quote,
  .testimonial .quote__author {
    font-size: 2.4rem;
  }

  .testimonial .quote {
    margin-left: 6rem;
  }
}

/* Collapsibles */
.collapsible__header {
  display: flex;
  justify-content: space-between;
}

.collapsible__heading {
  margin-top: 0;
  font-size: 3rem;
}

.collapsible__chevron {
  transform: rotate(-90deg);
  transition: transform 0.3s;
}

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

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

.collapsible--expanded .collapsible__content {
  max-height: 100vh;
  opacity: 1;
}

/* Callouts */
.callout {
  padding: 4rem;
  border-radius: 5px;
}
.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;
}
.callout__content {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .callout {
    grid-template-columns: 1fr auto;
  }
  .callout__content {
    text-align: left;
  }
  .callout .btn {
    justify-self: start;
    margin: 0 2rem;
  }
}

/* Navigation Bar */

.nav {
  display: flex;
  justify-content: space-between;
  background: var(--gray-lightest);
  flex-wrap: wrap;
  align-items: center;
  position: fixed; /* Add this to fix the navbar */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow-light);
  padding: 1rem 2rem; /* Add consistent padding */
  margin: 0 auto; /* Center the navbar */
  width: 100%; /* Ensure full width */
}
.nav__brand {
  flex-shrink: 0;
}

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

.nav__list {
  width: 100%;
  margin: 0;
}

.nav__item {
  padding: 0.5rem 2rem;
  border-bottom: 1px solid #222;
  position: relative;
}

.nav__item > a {
  color: var(--primary-blue-medium);
  font-weight: 600;
  font-size: 1.6rem;
  transition: color 0.2s ease;
}

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

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

.nav__toggler {
  opacity: 0.5;
  transition: box-shadow 0.15s;
  cursor: pointer;
}

.nav.collapsible--expanded .nav__toggler {
  opacity: 1;
  box-shadow: 0 0 0 3px var(--shadow-medium);
  border-radius: 5px;
}

/* Mobile: hide dropdown by default */
.dropdown {
  display: none;
  background: var(--color-white);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

/* Desktop styles */
@media screen and (min-width: 768px) {
  body {
    padding-top: 80px; /* Adjust for desktop nav height */
  }
  .nav {
    padding: 1rem 4rem;
  }

  .nav__brand img {
    height: auto; /* Larger size for desktop */
  }

  .collapsible__content {
    display: flex !important;
    align-items: center;
    width: auto;
    opacity: 1;
    max-height: none;
  }

  .nav__list {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 0;
    gap: 4rem;
    border: none;
    position: static;
    transform: none;
    flex: 1;
  }

  .nav__item {
    border: none;
    padding: 0.5rem 0;
  }

  .nav__brand {
    width: 250px;
    margin-right: 2rem;
  }

  .nav__toggler {
    display: none;
  }

  .cta-buttons--desktop {
    display: block;
    margin-left: 4rem;
  }

  /* Remove any mobile-specific styles */
  .nav__item {
    border-bottom: none;
  }
}

.dropdown li {
  margin: 0.5rem 0;
}
.dropdown a {
  color: var(--color-headings);
  padding: 0.5rem;
  display: block;
  text-decoration: none;
}

/* .nav__item:hover .dropdown {
  display: block; /* Show dropdown on hover */
/* } */
*/ .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.dropdown-toggle::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

/* When dropdown is open, rotate the chevron */
.dropdown-toggle.active::after {
  transform: rotate(180deg);
}

.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;
}

.btn-inquire:hover {
  background: var(--primary-orange-hover);
}

.cta-buttons {
  display: none;
}

@media screen and (min-width: 768px) {
  .cta-buttons {
    display: block;
    margin-left: 2rem;
  }

  .btn--accent {
    background: var(--color-accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    text-decoration: none;
  }

  .btn--accent:hover {
    background: #ff4d1c;
  }
}

/* blocks */
.block {
  --padding-vertical: 6rem;
  padding: var(--padding-vertical) 2rem;
}

.block__header {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 4rem;
}
.block__heading {
  margin: 0;
  font-size: clamp(4rem, 5vw, 7rem);
}
.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% 109%, 0% 80%);
}
.block--skewed-left {
  padding-bottom: calc(var(--padding-vertical) + 4rem);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Hero */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 5rem 1rem;
  /* margin-top: 0; */
  text-align: center;
}

.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: #fff;
  letter-spacing: 1px;
  margin: 2rem 0 5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  gap: 2rem;
  justify-content: center;
  padding: 0 1rem; /* Add padding */
  margin: 0; /* Remove margin on mobile */
}

@media screen and (min-width: 768px) {
  .hero {
    margin-top: 0;
  }
  .hero__tagline {
    text-align: left;
  }
  .hero-buttons {
    flex-direction: row; /* Horizontal layout on desktop */
    margin: 0 30rem;
    gap: 4rem;
  }
}
/* Courses Block */

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.block-course__types {
  display: grid;
  grid-template-columns: 1fr;
  /* grid-template-rows: repeat(2, 6rem);  */
  gap: 2rem;
  font-size: 2rem;
  font-weight: 600;
  justify-items: center;
  /* max-width: 700px;  */
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem; /* small padding for breathing room */
}

@media screen and (min-width: 768px) {
  .block-course__types {
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
  }
}

/* Badges */
.badge {
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 2rem;
  border-radius: 20px;
  font-size: 2rem;
  border: 2px solid #000;
}

.badge--primary {
  background: #fff;
  color: var(--primary-orange);
}
.badge--secondary {
  background: #fff;
  color: #000;
}
.badge--small {
  font-size: 1.6rem;
  padding: 0.5rem 1.5rem;
}

@media screen and (min-width: 1024px) {
  .badge {
    font-size: 1.5rem;
  }
  .badge--small {
    font-size: 1.2rem;
  }
}
@media screen and (max-width: 480px) {
  .badge {
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    font-size: 1.6rem; /* shrink font */
    padding: 0.4rem 1.2rem; /* smaller padding */
    text-align: center; /* center wrapped text */
  }
}

/* Plans Block */

.block .grid {
  gap: 8rem 4rem;
}

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

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

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

.footer a:hover {
  color: var(--primary-blue-medium);
}

.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__section a {
    display: inline-flex;
    align-items: center;
  
    gap: 0.5rem; /* Optional: adds small space between icon and text */
  }



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

/* Features */
.feature__heading {
  margin: 0 0 1rem 0; /* Reduce margin, keep bottom margin for spacing */
  font-size: 2.4rem;
}
.feature {
  gap: 2rem;
  margin-bottom: 4rem; /* Add bottom margin instead of top */
}

.feature:first-of-type {
  margin-top: 2rem;
}
.feature__image {
  width: 100%;
}
.feature__content {
  padding: 1rem; /* Reduce padding */
}

.feature__content p {
  margin-top: 0;
  line-height: 1.5;
}

@media screen and (min-width: 768px) {
  .feature:nth-of-type(even) .feature__content {
    order: 2;
  }
  .feature {
    gap: 3rem; /* Slightly larger gap on desktop */
  }

  .feature__content p {
    /* your styles here */
    padding: 6rem 0;
  }

  .feature__heading {
    font-size: 2.8rem;
  }
}
