/* --- RESET & VARIABLES --- */
:root {
  /* Palette: Airy Pastel */
  --color-bg: #f8fafc; /* Very light cool gray */
  --color-white: #ffffff;
  --color-primary: #6366f1; /* Soft Indigo */
  --color-primary-hover: #4f46e5;
  --color-secondary: #a5b4fc; /* Pastel Purple/Blue */
  --color-text-main: #1e293b; /* Slate 800 */
  --color-text-muted: #64748b; /* Slate 500 */
  --color-accent-soft: #e0e7ff; /* Very light indigo for backgrounds */

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  /* Geometry: Hyper-Rounded */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px; /* Key element */
  --radius-full: 9999px;

  /* Effects */
  --shadow-soft: 0 10px 40px -10px rgba(99, 102, 241, 0.1);
  --shadow-hover: 0 20px 50px -12px rgba(99, 102, 241, 0.2);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: --font-body, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 20px;
}

.header__container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 32px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__list {
  display: flex;
  gap: 40px;
}

.header__link {
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
  padding: 5px 0;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.header__link:hover {
  color: var(--color-primary);
}

.header__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-main);
}

/* Mobile Menu Logic */
.header__mobile-action {
  display: none;
}

@media (max-width: 992px) {
  .header__container {
    padding: 15px 20px;
    border-radius: var(--radius-md);
  }

  .desktop-only {
    display: none;
  }

  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }

  .header__nav.active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
  }

  .header__link {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .header__mobile-action {
    display: block;
  }
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-white);
  padding: 80px 0 30px;
  margin-top: 80px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-text-main);
}

.footer__desc {
  margin-top: 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer__note {
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-accent-soft);
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--color-text-main);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer__link:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer__list--contacts {
  gap: 20px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer__cta-text {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}

.footer__bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 30px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

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

@media (max-width: 576px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    text-align: center;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__desc {
    margin: 20px auto;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Offset for fixed header */
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Background Blobs */
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.hero__bg-shape--1 {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--color-secondary) 0%,
    rgba(255, 255, 255, 0) 70%
  );
}

.hero__bg-shape--2 {
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    #fde68a 0%,
    rgba(255, 255, 255, 0) 70%
  ); /* Soft yellow accent */
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Typography & Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.hero__title {
  font-size: 3.5rem; /* Big typography */
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

/* Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.hero__btn {
  padding: 18px 42px;
  font-size: 1.1rem;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__avatars {
  display: flex;
}

.hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  margin-left: -12px;
}

.hero__avatar:first-child {
  margin-left: 0;
}

.hero__info-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  max-width: 150px;
  line-height: 1.2;
}

/* Visual Side */
.hero__visual {
  position: relative;
  padding: 20px;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg); /* Hyper-rounded */
  overflow: visible; /* To let floating cards show */
}

.hero__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  transform: rotate(2deg); /* Slight asymmetry */
  transition: var(--transition);
}

.hero__visual:hover .hero__img {
  transform: rotate(0deg) scale(1.01);
}

/* Floating Cards (Breaking the grid) */
.hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #f1f5f9;
  z-index: 2;
  min-width: 220px;
}

.hero__card--1 {
  top: 40px;
  left: -40px;
}

.hero__card--2 {
  bottom: 60px;
  right: -20px;
}

.hero__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcfce7; /* Light Green */
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__card-icon--blue {
  background: #dbeafe;
  color: #2563eb;
}

.hero__card-text {
  display: flex;
  flex-direction: column;
}

.hero__card-text strong {
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.hero__card-text span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* CSS Animation for floating */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-anim {
  animation: float 4s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .hero__desc {
    margin: 0 auto 40px;
  }

  .hero__visual {
    margin-top: 40px;
    width: 100%;
    max-width: 500px;
    margin: 40px auto 0;
  }

  .hero__card--1 {
    left: 0;
    top: 20px;
  }

  .hero__card--2 {
    right: 0;
    bottom: 20px;
  }
}

/* --- SECTIONS GLOBAL --- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

/* Декоративне підкреслення */
.highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--color-secondary);
  opacity: 0.3;
  z-index: -1;
  border-radius: 4px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* --- BENTO GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 24px;
}

.bento-card {
  background: var(--color-white);
  border-radius: var(--radius-lg); /* 40px+ as requested */
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover Effects: Scale & Shadow */
.bento-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--color-secondary);
}

/* Specific Sizes */
.bento-card--large {
  grid-column: span 2;
}

.bento-card--tall {
  grid-row: span 2;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Background Variations */
.bg-primary-soft {
  background-color: #eef2ff; /* Very light indigo */
}

.bg-secondary-soft {
  background-color: #f5f3ff; /* Very light violet */
}

/* Card Content Styling */
.bento-content {
  position: relative;
  z-index: 2;
}

.bento-icon-wrapper {
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  color: var(--color-primary);
}

.bento-icon-wrapper--blue {
  color: #2563eb;
  background: #eff6ff;
}

.bento-icon-wrapper--purple {
  color: #7c3aed;
  background: #ede9fe;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Large Card Special Image */
.bento-img-decor {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: auto;
  border-radius: 20px;
  opacity: 0.8;
  transform: rotate(-10deg);
  transition: var(--transition);
}

.bento-card:hover .bento-img-decor {
  transform: rotate(0deg) scale(1.05);
  opacity: 1;
}

/* Stat Styling */
.stat-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.stat-desc {
  font-weight: 600;
  color: var(--color-text-main) !important;
}

/* Mentor Badge */
.mentor-badge {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
  width: fit-content;
}

.mentor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #cbd5e1; /* Placeholder color */
}

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

  .bento-card--large {
    grid-column: span 2;
  }

  .bento-card--tall {
    grid-row: auto;
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--large,
  .bento-card--tall {
    grid-column: span 1;
  }
}

/* --- COURSES (SCROLL SNAP) --- */
.courses-wrapper {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 5px 60px; /* Extra bottom padding for shadows */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* Hide scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.courses-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.course-card {
  flex: 0 0 400px; /* Fixed width for desktop cards */
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 10px; /* Inner padding for layout wrapper */
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent-soft);
}

.course-card__image-box {
  height: 180px;
  border-radius: 30px; /* Matches hyper-rounded style */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.course-card__icon {
  width: 64px;
  height: 64px;
  stroke-width: 1.5;
}

.course-card__content {
  padding: 0 20px 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card__title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.course-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-card__features {
  margin-bottom: 25px;
}

.course-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 8px;
  font-weight: 500;
}

.course-card__features li i {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.course-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.course-btn {
  padding: 12px 24px;
  font-size: 0.9rem;
}

.course-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

.course-card__tag {
  position: absolute;
  top: 25px;
  right: 25px;
  background: var(--color-white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

/* Responsive Courses */
@media (max-width: 768px) {
  .course-card {
    flex: 0 0 300px; /* Smaller cards on mobile */
  }

  .courses-wrapper {
    padding-left: 20px; /* Align first card with container padding */
  }
}

/* --- CONTACT SECTION --- */
.contact-section {
  background-color: var(--color-bg);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: #eef2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* --- FORM STYLING --- */
.contact-form-wrapper {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.form-title {
  margin-bottom: 30px;
  font-size: 1.8rem;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 10px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 16px 20px 16px 50px; /* Space for icon */
  border: 2px solid #f1f5f9;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  background: #f8fafc;
}

.form-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

/* Validation Styles */
.form-input.invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-input.valid {
  border-color: #10b981;
}

.error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-left: 20px;
  margin-top: 5px;
  display: none; /* Hidden by default */
}

.form-input.invalid + .error-msg {
  display: block;
}

/* --- CUSTOM CAPTCHA --- */
.captcha-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px; /* Not full rounded for captcha look */
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  max-width: 300px;
}

.captcha-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}

.captcha-label input {
  display: none;
}

.captcha-custom {
  width: 24px;
  height: 24px;
  border: 2px solid #c4c4c4;
  border-radius: 4px;
  background: #fff;
  position: relative;
  transition: 0.2s;
}

/* Checkmark logic */
.captcha-label input:checked + .captcha-custom {
  background: #10b981;
  border-color: #10b981;
}

.captcha-label input:checked + .captcha-custom::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-weight: 500;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.captcha-logo {
  color: #9ca3af;
  transform: scale(1.2);
}

/* --- AGREEMENT & BUTTON --- */
.agreement-box {
  margin-bottom: 25px;
}

.agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.agreement-label input {
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.agreement-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-btn {
  width: 100%;
  font-size: 1.1rem;
}

.form-btn:disabled {
  background-color: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* --- SUCCESS MESSAGE --- */
.success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.success-message.active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-icon i {
  width: 40px;
  height: 40px;
}

.contact-form.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .contact-info {
    text-align: center;
  }

  .contact-feature-item {
    justify-content: flex-start;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Hidden by default */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 2000;
  width: 90%;
  max-width: 600px;
  border: 1px solid #e2e8f0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookie-icon {
  color: var(--color-primary);
  display: flex; /* Fix for icon alignment */
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--color-text-main);
  line-height: 1.4;
}

.cookie-text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Responsive Cookie */
@media (max-width: 576px) {
  .cookie-popup {
    flex-direction: column;
    border-radius: var(--radius-md);
    bottom: 20px;
    align-items: stretch;
    gap: 15px;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* --- POLICY PAGES STYLING (privacy.html etc) --- */
/* Structure: main > section.pages > .container > content */

.pages {
  padding: 140px 0 80px; /* Offset for fixed header */
}

.pages .container {
  max-width: 800px; /* Readability focus */
  background: var(--color-white);
  padding: 60px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--color-primary);
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 20px;
}

.pages h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
}

.pages p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.pages ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.pages li {
  list-style-type: disc;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  padding-left: 10px;
}

.pages li::marker {
  color: var(--color-primary);
}

.pages a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pages strong {
  color: var(--color-text-main);
}

@media (max-width: 768px) {
  .pages .container {
    padding: 30px 20px;
  }

  .pages h1 {
    font-size: 2rem;
  }
}

html {
  scroll-behavior: smooth;
}

/* --- CAREER ROADMAP --- */
.roadmap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Vertical Line */
.roadmap::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 24px;
  width: 2px;
  height: calc(100% - 40px);
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-secondary)
  );
  z-index: 0;
  opacity: 0.3;
}

.roadmap-item {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.roadmap-marker {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--color-primary);
  font-size: 1.2rem;
  box-shadow: 0 0 0 8px var(--color-bg); /* Mask the line behind */
}

.roadmap-content {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  flex-grow: 1;
  border: 1px solid #f1f5f9;
  transition: var(--transition);
}

.roadmap-content:hover {
  transform: translateX(10px);
  border-color: var(--color-accent-soft);
}

.roadmap-content--final {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border-color: #e9d5ff;
}

.roadmap-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.roadmap-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.roadmap-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- FAQ SECTION --- */
.faq-section {
  background-color: #f8fafc; /* slightly darker/different shade if needed, or keep base */
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.faq-left {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.faq-decor-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid #e2e8f0;
}

.faq-icon-large {
  color: var(--color-secondary);
  margin-bottom: 15px;
}

.faq-icon-large i {
  width: 48px;
  height: 48px;
}

/* Accordion Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  border: 1px solid transparent;
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--color-accent-soft);
  box-shadow: var(--shadow-hover);
}

.accordion-header {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text-main);
  text-align: left;
  transition: color 0.3s;
}

.accordion-header:hover {
  color: var(--color-primary);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-content {
  padding: 0 24px 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

  .faq-left {
    position: static;
    text-align: center;
    margin-bottom: 40px;
  }

  .faq-decor-card {
    display: none; /* Hide illustrative card on mobile to save space */
  }
}

@media (max-width: 576px) {
  .roadmap::before {
    left: 19px; /* Adjust for smaller marker */
  }

  .roadmap-marker {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .roadmap-item {
    gap: 15px;
  }

  .roadmap-content {
    padding: 20px;
  }
}
