/* ==========================================================================
   CAREER MASTERY HUB - TAILWIND STYLESHEET & UTILITIES
   ========================================================================== */

/* Custom Color Tokens & Utilities for Tailwind fallback */
:root {
  --green: #0B3B24;
  --green-hover: #047857;
  --green-light: #10B981;
  --green-bg-soft: #EBF3EE;
  --ink-1: #101412;
  --ink-2: #2E3A33;
  --muted: #627267;
  --line: #DFE6E1;
  --gold: #EDCC68;
}

html,
body {
  overflow-x: clip;
}

/* Custom Navigation Drawer Mobile Override */
.site-nav[data-open="true"] .nav-links {
  display: flex !important;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background-color: #ffffff;
  flex-direction: column;
  padding: 2rem;
  gap: 1.25rem;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 40;
}

.site-nav {
  background-color: transparent !important;
  background: transparent !important;
  backdrop-filter: blur(3px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(3px) saturate(140%) !important;
  border-bottom: 1px solid rgba(223, 230, 225, 0.3) !important;
}

.site-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(6px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(6px) saturate(150%) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  height: 68px;
}

/* Status message feedback */
.form-status.success {
  display: block !important;
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-status.error {
  display: block !important;
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.cookie-banner.hidden {
  display: none !important;
}

/* FAQ Details animation */
.cmh-faq-item[open] .cmh-faq-icon {
  transform: rotate(45deg);
}

/* ==========================================================================
   HERO AEROPLANE & MOVING SKY BACKGROUND ANIMATION
   ========================================================================== */
.home-hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 112px);
  min-height: calc(100svh - 112px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.aeroplane-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Panning Cloud Background Layer */
.aeroplane-cloud-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/cloud-1.png');
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: auto 100%;
  z-index: 1;
  animation: cloudMove 35s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}

/* Secondary Cloud Overlay */
.aeroplane-cloud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/main-slider-3-1.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}

/* Floating Airplane Wrapper & Image (Fully flexible with screen) */
.aeroplane-wrapper {
  position: absolute;
  right: -2%;
  top: 4%;
  z-index: 25;
  width: clamp(320px, 46vw, 680px);
  max-width: 680px;
  pointer-events: none;
  animation: aeroplaneFlyAcrossAndSettle 4.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.aeroplane-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0px 20px 30px rgba(11, 59, 36, 0.25));
  animation: floatBobY 2.8s ease-in-out infinite alternate;
  animation-delay: 4.6s;
  transform-origin: center center;
}

/* Keyframe Animations */
@keyframes cloudMove {
  0% {
    background-position: 0 100%;
  }

  100% {
    background-position: -1920px 100%;
  }
}

@keyframes aeroplaneFlyAcrossAndSettle {
  0% {
    opacity: 0;
    z-index: 35;
    transform: translateX(115vw) translateY(50px) rotate(-5deg) scale(0.95);
  }

  8% {
    opacity: 1;
    z-index: 35;
  }

  44% {
    opacity: 1;
    z-index: 35;
    transform: translateX(-115vw) translateY(-45px) rotate(-11deg) scale(1.08);
  }

  48% {
    opacity: 0;
    z-index: 35;
    transform: translateX(-120vw) translateY(-45px) scale(0.85);
  }

  52% {
    z-index: 5;
  }

  56% {
    opacity: 0;
    z-index: 5;
    transform: translateX(100vw) translateY(20px) rotate(0deg) scale(0.88);
  }

  78% {
    opacity: 1;
    z-index: 5;
    transform: translateX(-15px) translateY(-6px) scale(1.02);
  }

  100% {
    opacity: 1;
    z-index: 5;
    transform: translateX(0) translateY(0) scale(1);
  }
}

@keyframes floatBobY {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-16px) rotate(1.5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@media (min-width: 1280px) {
  .aeroplane-wrapper {
    right: -4%;
    top: 0%;
    width: 640px;
    max-width: 640px;
  }
}

@media (max-width: 1279px) and (min-width: 1024px) {
  .aeroplane-wrapper {
    right: -3%;
    top: 3%;
    width: clamp(440px, 44vw, 540px);
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .aeroplane-wrapper {
    right: -2%;
    top: 5%;
    width: clamp(340px, 48vw, 460px);
    opacity: 0.85;
  }
}

@media (max-width: 767px) {
  .aeroplane-wrapper {
    right: -5%;
    top: 2%;
    width: clamp(260px, 72vw, 360px);
    opacity: 0.55;
  }
}

/* ==========================================================================
   PATHWAY EXPANDED DETAIL POPUP MODAL
   ========================================================================== */
.pathway-modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.pathway-modal-overlay.active .pathway-modal-card {
  transform: scale(1) !important;
}

body.modal-open {
  overflow: hidden !important;
}

/* ==========================================================================
   ANIMATED ROADMAP JOURNEY COMPONENT
   ========================================================================== */
.roadmap-step-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px -10px rgba(16, 185, 129, 0.35);
}

.roadmap-node-circle {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   STACKED CARDS & 3D FLIP ANIMATION (404 CHRONICLES SPEC FOR CMH)
   ========================================================================== */
.scroll-section {
  padding-bottom: 12vh;
}

.stacked-cards-container {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.card,
.stack-card {
  position: -webkit-sticky;
  position: sticky;
  top: 96px;
  height: 380px;
  margin-bottom: 50px;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  width: 100%;
  border-radius: 22px;
}

.card-inner,
.stack-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
  border-radius: 22px;
}

.card.flipped .card-inner,
.stack-card.flipped .stack-card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.card-face,
.stack-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #DFE6E1;
  border-radius: 22px;
  padding: 38px 45px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(11, 59, 36, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-front,
.stack-card-face.card-front {
  background: linear-gradient(135deg, #ffffff 0%, #fbfdfc 100%);
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  z-index: 2;
  pointer-events: auto;
}

.card-face::after,
.stack-card-face::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -90px;
  top: -110px;
  background: #10B981;
  filter: blur(130px);
  opacity: 0.14;
  pointer-events: none;
}

.card-back,
.stack-card-face.card-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  background: linear-gradient(135deg, #0B3B24 0%, #072919 60%, #03170e 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.42);
  z-index: 1;
  pointer-events: none;
}

.card-back::after,
.stack-card-face.card-back::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  bottom: -90px;
  background: #EDCC68;
  filter: blur(140px);
  opacity: 0.20;
  pointer-events: none;
}

/* Swapped z-index & interaction on flip */
.card.flipped .card-front,
.stack-card.flipped .stack-card-face.card-front {
  z-index: 1;
  pointer-events: none;
}

.card.flipped .card-back,
.stack-card.flipped .stack-card-face.card-back {
  z-index: 2;
  pointer-events: auto;
}

.card-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.number,
.stack-card-number {
  font-size: clamp(65px, 8vw, 110px);
  font-weight: 800;
  color: #0B3B24;
  letter-spacing: -6px;
  line-height: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.card-back .number,
.card-back .stack-card-number {
  color: #10B981;
}

.details {
  max-width: 600px;
  flex: 1;
}

.details small {
  color: #059669;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.card-back .details small {
  color: #6EE7B7;
}

.details h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: #101412;
  margin: 10px 0 12px;
  line-height: 1.25;
}

.card-back .details h2 {
  color: #ffffff;
}

.details p {
  color: #3f4e46;
  font-size: 14px;
  line-height: 1.7;
}

.card-back .details p {
  color: rgba(255, 255, 255, 0.85);
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tags span {
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #DFE6E1;
  background: rgba(243, 244, 246, 0.85);
  padding: 6px 12px;
  border-radius: 8px;
  color: #2E3A33;
}

.card-back .tags span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.flip-hint {
  position: absolute;
  bottom: 20px;
  right: 26px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  letter-spacing: 1px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.card-back .flip-hint {
  color: #6EE7B7;
}

.card:hover .flip-hint {
  transform: translateX(3px);
}

.card-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 22px;
  background: #EDCC68;
  color: #0B3B24;
  font-weight: 700;
  font-size: 13px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(237, 204, 104, 0.35);
  transition: all 0.25s ease;
}

.card-cta-btn:hover {
  background: #dfbd54;
  transform: translateY(-2px);
}

@media (max-width: 768px) {

  .card,
  .stack-card {
    top: 85px;
    height: 285px;
    margin-bottom: 20px;
  }

  .card-face,
  .stack-card-face {
    padding: 14px 15px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .card-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }

  .number,
  .stack-card-number {
    font-size: 48px;
    min-width: auto;
    letter-spacing: -3px;
  }

  .details h2 {
    font-size: 21px;
    margin: 6px 0;
  }

  .details p {
    font-size: 12px;
    line-height: 1.5;
  }

  .tags span {
    font-size: 10px;
    padding: 4px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .card-inner,
  .stack-card-inner {
    transition: none;
  }
}

/* ==========================================================================
   DESTINATION CARDS CONTINUOUS HORIZONTAL SCROLL (JETLY STANDALONE)
   ========================================================================== */
.destination-showcase-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #06140e 0%, #091c13 50%, #0e241b 100%);
  padding: 75px 0 70px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.destination-showcase-section .destination-bg-shape {
  position: absolute;
  left: 20px;
  bottom: 30px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
  max-width: 380px;
}

.destination-header-center {
  text-align: center;
  margin-bottom: 45px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.destination-header-center .section-title__tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #EDCC68;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(237, 204, 104, 0.12);
  border: 1px solid rgba(237, 204, 104, 0.28);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.destination-header-center .section-title__title {
  color: #ffffff;
  font-size: clamp(24px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 auto 12px;
  max-width: 900px;
}

.destination-header-center .section-title__title span {
  color: #EDCC68;
  background: linear-gradient(135deg, #EDCC68 0%, #f6de8d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.destination-header-center .section-subtitle {
  color: #94a3b8;
  font-size: 15px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==============================================================
   CONTINUOUS HORIZONTAL SCROLL SYSTEM (INFINITE MARQUEE)
   ============================================================== */
.destination-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  padding: 15px 0 20px;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.destination-scroll-track {
  display: flex;
  width: max-content;
  animation: continuousMarquee var(--marquee-speed, 34s) linear infinite;
  will-change: transform;
}

/* Smooth Pause on Hover */
.destination-scroll-container:hover .destination-scroll-track {
  animation-play-state: paused;
}

.destination-scroll-group {
  display: flex;
  gap: 28px;
  padding-right: 28px;
  /* Exact match to gap for seamless loop */
  flex-shrink: 0;
}

/* Card Sizing in Horizontal Track */
.destination-scroll-group .destination-one__single {
  flex: 0 0 350px;
  width: 350px;
  margin-bottom: 0;
  cursor: pointer;
}

/* Card Box */
.destination-one__single {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  text-decoration: none;
}

.destination-one__single:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.destination-one__img-box {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.destination-one__img {
  position: relative;
  display: block;
  overflow: hidden;
  height: 250px;
  background: linear-gradient(135deg, #091a13 0%, #12281e 50%, #0d2017 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.destination-one__img img:not([src]),
.destination-one__img img[src=""] {
  display: none;
}

/* Curtain Wipe / Sweep Effect (Jetly Signature) */
.destination-one__img:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background: rgba(11, 59, 36, 0.45);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(0, 1);
  transform-origin: right center;
  z-index: 1;
}

.destination-one__single:hover .destination-one__img:before {
  transform: scale(1, 1);
  transform-origin: left center;
}

/* Image Scale Zoom */
.destination-one__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  transform: scale(1);
  display: block;
}

.destination-one__single:hover .destination-one__img img {
  transform: scale(1.08);
}

/* Country Flag Pill Badge */
.destination-one__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(10, 25, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

/* Floating Content Card (overlapping bottom) */
.destination-one__content {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: #ffffff;
  border: 1px solid #eef2ef;
  border-radius: 16px;
  padding: 16px 18px;
  z-index: 2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.destination-one__title {
  font-size: 18px;
  font-weight: 800;
  color: #101412;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.3;
}

.destination-one__title a {
  color: #0b3b24;
  text-decoration: none;
  transition: color 0.2s ease;
}

.destination-one__single:hover .destination-one__title a {
  color: #047857;
}

.destination-one__time {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
  font-size: 12px;
}

.destination-one__paris-time p,
.destination-one__barcelona-time p {
  margin: 0;
  color: #64748b;
  font-weight: 500;
}

.destination-one__paris-time p span {
  font-weight: 700;
  color: #0b3b24;
}

.destination-one__barcelona-time p span {
  font-weight: 800;
  color: #EDCC68;
  /* Luxury Gold Accent for flight duration */
}

.destination-one__flight-divider {
  color: #059669;
  font-size: 14px;
  font-weight: 800;
  padding: 0 4px;
}

@keyframes continuousMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.destination-scroll-track.reverse-scroll {
  animation-direction: reverse;
}

@media (max-width: 1024px) {
  .destination-showcase-section {
    padding: 60px 0 55px;
  }

  .destination-scroll-group .destination-one__single {
    flex: 0 0 320px;
    width: 320px;
  }
}

@media (max-width: 768px) {
  .destination-showcase-section {
    padding: 48px 0 42px;
  }

  .destination-header-center .section-title__title {
    font-size: 26px;
  }

  .destination-scroll-group .destination-one__single {
    flex: 0 0 290px;
    width: 290px;
  }

  .destination-one__img {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .destination-scroll-track {
    animation: none;
  }
}