html {
  scroll-behavior: smooth;
}
.main-menu {
  display: flex;
  align-items: center;
}
.main-menu li {
  padding: 0 20px;
  font-weight: 700;
}
.front-page .main-nav-container:not(.is-scrolled) li {
  color: white;
}
.main-menu li.current-menu-item {
  color: var(--secondary);
}
.main-menu li.menu-item-has-children {
  position: relative;
}
.main-menu li.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: initial;
}
.main-menu .sub-menu {
  position: absolute;
  top: 130%;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  transition: 0.2s ease;
  opacity: 0;
  visibility: hidden;
  min-width: max-content;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.main-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 15%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid white;
}
.main-menu .sub-menu li {
  padding: 10px;
  color: var(--primary) !important;
}

.main-nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.main-nav-container svg {
  width: 120px;
  height: auto;
  fill: white;
}

.front-page .main-nav-container:not(.is-scrolled) svg * {
  fill: white;
}
.main-nav-container.is-scrolled {
  background-color: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Toggle */
.nav-toggle {
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  margin: 5px 0;
}

.main-nav-container:not(.is-scrolled) .nav-toggle span {
  background: white;
}

/* Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1001;
}

/* Active */
.mobile-drawer.is-open {
  transform: translateX(0);
}
.mobile-navigation {
  margin-bottom: 30px;
}

.mobile-navigation .sub-menu {
  margin-left: 20px;
  margin-top: 20px;
}
.mobile-navigation .mobile-drawer-cta {
  margin-top: 20px;
}

/* Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  z-index: 1000;
}

.drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin-bottom: 1.2rem;
}

.mobile-menu a {
  font-size: 1.1rem;
  color: #111;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .main-navigation,
  .desktop-only {
    display: none;
  }
}

/* Hide drawer on desktop */
@media (min-width: 1200px) {
  .nav-toggle,
  .mobile-drawer,
  .drawer-overlay {
    display: none;
  }
}

.page-subtitle {
  font-size: 2rem;
}

.page-intro-inner {
  text-align: center;
  width: 70%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.page-intro-subtitle {
  border: 1px solid var(--primary);
  border-radius: 20px;
  padding: 5px 20px;
  width: fit-content;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 1rem auto 4rem;
  max-width: 80%;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.card-text {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  margin-top: 0.75rem;
}

.card-icon {
  width: 48px;
  height: auto;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .cards-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
  }
}

.text-slider {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 1.5rem 0;
  background-color: var(--beige);
  color: var(--secondary);
  margin: 2rem 0;
}

.text-slider-track {
  display: inline-flex;
  min-width: 200%;
  animation: scrollText 20s linear infinite;
}

.text-slide {
  margin-right: 3rem;
  flex-shrink: 0;
  font-size: 1.8rem;
  white-space: nowrap;
  font-weight: 900;
  font-family: "Montserrat";
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Home Page Start */
/* .home-hero-container {
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 80vh;
  height: 80vh;
}
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 80%;
  text-align: center;
}
.home-hero h1 {
  font-size: 3.5rem;
  padding-bottom: 1.2rem;
}
.home-hero p {
  font-size: 1.2rem;
  font-weight: 500;
  padding-bottom: 2.5rem;
} */
.home-hero-container {
  position: relative;
  min-height: 80vh;
  height: 80vh;
  overflow: hidden;
}

/* Video layer */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Optional overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* tweak */
  z-index: 2;
}

.home-hero-subtitle{
    background: white;
    color: var(--secondary);
    font-weight: 800;
    padding: 5px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Content stays above video */
.home-hero {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 80%;
  text-align: center;
}

/* Typography (unchanged, just confirming) */
.home-hero h1 {
  font-size: 3.5rem;
  padding-bottom: 1.2rem;
  color: #fff;
}

.home-hero p {
  font-size: 1.2rem;
  font-weight: 500;
  padding-bottom: 2.5rem;
  color: #fff;
}

.about-home-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px;
  align-items: center;
}
.about-home-container__img img {
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}
/* Home Page END */

.hero-container {
  background-color: var(--beige);
  min-height: 65vh;
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: -1;
  justify-content: center;
  border-radius: 0 0 50px 50px;
  text-align: center;
}
.hero-content {
  max-width: 60%;
  margin: 8vh auto 0;
}

.hero-plane-svg {
  position: absolute;
  z-index: -1;
}
.hero-container h1 {
  font-size: 2.5rem;
}
.hero-container p {
  font-size: 1.2rem;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.program-card {
  background-color: var(--grey);
  padding: 20px;
  border-radius: 10px;
}
.program-card .title {
  font-size: 0.8rem;
  background-color: var(--primary);
  padding: 10px 20px;
  border-radius: 20px;
  color: white;
  width: fit-content;
}
.program-card .icon {
  background-color: white;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid var(--primary);
}
.program-card > .subtitle {
  font-size: 1rem;
}
.why-machspeed-home {
  background-color: var(--beige);
  padding: 4rem 0;
}
.why-machspeed-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.why-machspeed-home-grid .benefit-card {
  backdrop-filter: blur(2px);
  padding: 20px;
  border-radius: 10px;
}

.why-machspeed-home-grid .benefit-text {
  color: rgba(0, 36, 66, 0.8);
}
.why-machspeed-home-grid .benefit-count {
  font-size: 3rem;
  font-weight: 800;
  font-family: "Montserrat";
  background: linear-gradient(
    to bottom,
    rgba(0, 36, 66, 1) 0%,
    rgba(0, 36, 66, 0) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.team-section {
  margin-bottom: 4rem;
  background: #f8f8f8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: start;
}

.team-member {
  padding: 1.5rem;
  max-width: 80%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.team-member-position {
  position: relative;
  margin-bottom: 30px;
  color: var(--secondary);
}
.team-member-position:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  border-radius: 20px;
  background-color: var(--secondary);
  left: 50%;
  top: 160%;
  transform: translateX(-50%);
}

.team-member-image img {
  width: 350px;
  height: 350px;
  object-position: top;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.team-member-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-member-description {
  font-size: 1rem;
  color: #555;
}

.program-description {
  font-size: 1.5rem;
  width: 60%;
  margin: 7rem auto;
}
.program-description-image{
  font-size: 1.5rem;
  margin: 7rem auto;
  max-height: 80vh;
}

.program-description-image img{
  max-height: 80vh;
  object-fit: cover;
  object-position: center;
}

.program-learning {
  background-color: var(--beige);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.program-learning-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 6rem;
  padding-bottom: 6rem;
  align-items: center;
  gap: 70px;
}
.program-learning-inner img {
  max-width: 100%;
  border-radius: 20px;
}
.program-learning-list {
  display: grid;
  font-size: 1.1rem;
  gap: 30px;
}
.program-li-icon {
  background-color: var(--beige);
  border-radius: 10px;
  margin-right: 10px;
}
.program-learning-list li {
  display: flex;
  align-items: center;
}

.program-details {
  background-color: var(--beige);
  position: relative;
  padding: 2rem 0;
}
.flight-navbar {
  position: sticky;
  top: 113px;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  background-color: var(--beige);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.flight-navbar a {
  border: 1px solid var(--secondary);
  border-radius: 10px;
  padding: 5px 15px;
  transition: 0.2s ease all;
}
.flight-navbar a:hover {
  background-color: var(--secondary);
  color: var(--white);
}
.flight-sections .section {
  padding: 5rem 0;
  border-bottom: 1px solid white;
}
.flight-sections .section h2 {
  margin-bottom: 1rem;
}

.rates-section {
  padding: 5rem 0;
  background: #ffffff;
}

.rates-row img {
  max-width: 500px;
}

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.rates-table th {
  text-align: left;
  padding: 1rem;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.rates-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.rates-table tbody tr:hover {
  background: #f8fafc;
}

.rates-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .rates-inner {
    grid-template-columns: 1fr;
  }

  .rates-image {
    order: -1;
  }
}

.contact-us {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
.contact-us .wpcf7-form-control {
  width: 100%;
  height: 50px;
  border: 1px solid #ccc;
  padding: 0 5px;
  margin: 10px 0 30px 0;
  border-radius: 3px;
}
.contact-us .wpcf7-form-control:focus {
  outline: 1px solid var(--secondary);
}
.contact-us .wpcf7-submit {
  margin-top: 30px;
  background-color: var(--secondary);
  cursor: pointer;
  color: white;
  font-weight: 700;
  border-radius: 3px;
}
.contact-us-inner li {
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.program-grid-card {
  background-color: var(--grey);
  padding: 1.5rem 2rem;
  position: relative;
}
.program-grid-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px; /* border thickness */
  background-color: var(--secondary); /* inherits text color */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.program-grid-card:hover::after {
  transform: scaleX(1);
}

/* Footer start */
.footer-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 20px;
  margin-top: 3rem;
  margin-bottom: 3rem;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  background-blend-mode: soft-light;
}
.footer-cta-text {
  width: 50%;
  margin: auto;
}
.footer-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.footer-cta p {
  font-size: 1.4rem;
}
.footer-container {
  background-color: var(--primary);
  color: white;
  padding: 60px 0;
  min-height: 60vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.footer-container .site-logo img {
  width: 180px;
  height: auto;
}
.footer-container hr {
  margin-bottom: 3.5rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-menu li {
  padding-top: 25px;
}

.entry-content{
    line-height: 1.8;
    font-size: 1.2rem;
}

.entry-content a{
    color: var(--secondary);
    text-decoration: underline;
}
.pilot-resource-card {
    background-color: var(--grey);
    padding: 20px;
    border-radius: 10px;
    max-width: max-content;
    display: flex;
    align-items: center;
}
