/* barlow-condensed-300 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-300.woff2")
    format("woff2");
}

/* barlow-condensed-regular - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-regular.woff2")
    format("woff2");
}

/* barlow-condensed-500 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-500.woff2")
    format("woff2");
}

/* barlow-condensed-600 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-600.woff2")
    format("woff2");
}

/* barlow-condensed-700 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-700.woff2")
    format("woff2");
}

/* barlow-condensed-800 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-800.woff2")
    format("woff2");
}

/* barlow-condensed-900 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 900;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-900.woff2")
    format("woff2");
}

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
  --brand-primary: #ff02f3;
  --brand-primary-hover: #d600cc;
  --dark-bg: #000000;
  --dark-grey: #1a1a1a;
  --text-white: #ffffff;
  --text-dark: #000000;

  /* Neutral palette */
  --grey-100: #f8f8f8;
  --grey-200: #f7f7f7;
  --grey-300: #f5f5f5;
  --grey-400: #f0f0f0;
  --grey-500: #e5e5e5;
  --grey-600: #cccccc;
  --grey-700: #888888;
  --grey-800: #555555;
  --grey-900: #444444;

  --font-heading: "Barlow Condensed", sans-serif;
  --font-body: "Barlow Condensed", sans-serif;

  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.4s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 1.05rem;
  background-color: var(--dark-grey);
  color: var(--text-white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  /* Optional subtle radius */
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
  border: none;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--text-dark);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==========================================================================
   Top Marquee Bar
   ========================================================================== */
.top-bar {
  background-color: var(--brand-primary);
  color: var(--text-dark);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  /* white-space: nowrap; */
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* Static Top Banner */
.top-bar.static-banner {
  background-color: var(--brand-primary);
  color: #000;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.8rem, 3vw, 1rem); /* smaller on narrow screens */
  padding: 8px 10px; /* fixed horizontal padding is safer on very narrow screens */
  letter-spacing: 0.5px;
  line-height: 1.3; /* ensures wrapped lines are readable */
  overflow-wrap: break-word; /* allows text to break if needed */
  word-break: break-word; /* safe fallback */
  white-space: normal; /* Overrides the nowrap so text can wrap */
  display: block;
  width: 100%;
  box-sizing: border-box; /* include padding in width */
}

.top-bar.static-banner p {
  margin: 0;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-content span {
  padding: 0 10px;
  font-style: normal;
  /* From image */
}

.marquee-content .divider {
  opacity: 0.6;
  font-style: normal;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Main Header
   ========================================================================== */
.main-header {
  background-color: var(--dark-bg);
  padding: 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1140px;
  /* Reduced to provide more visual side padding on large screens as requested */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Logo Area Placeholder */
.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo Image Styling */
.logo-img {
  height: 70px; /* adjust as needed */
  width: auto; /* maintains aspect ratio */
}

.logo-placeholder {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  border: 2px solid var(--text-white);
  padding: 5px 10px;
}

.logo-placeholder .small-text {
  font-size: 0.6rem;
  background-color: var(--brand-primary);
  color: var(--text-dark);
  padding: 2px 5px;
  margin-top: 2px;
  letter-spacing: 1px;
}

.filiale-selector {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.filiale-selector .small-label {
  font-size: 0.8rem;
  color: #e0e0e0;
  font-weight: 400;
  letter-spacing: 0.5px;
  font-style: normal;
}

.filiale-selector .main-label {
  font-size: 1.2rem;
  color: var(--brand-primary);
  font-weight: 700;
  font-style: normal;
  transition: color var(--transition-fast);
}

.filiale-selector:hover .main-label {
  color: var(--text-white);
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;

  transition: color var(--transition-fast);
  font-style: normal;
}

.main-nav a:hover {
  color: var(--brand-primary);
}

.btn-header-top {
  display: none;
  /* Hidden on desktop */
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-btn {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-btn:hover {
  color: var(--brand-primary);
}

/* ==========================================================================
   Mobile Menu Button & Container
   ========================================================================== */
.mobile-menu-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 10px;
  color: var(--text-white);
  /* Ensure high contrast for accessibility */
  z-index: 1001;
  /* Keep above menu */
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 4px;
  position: absolute;
  left: 0;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

/* middle bar */
.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

/* top bar */
.hamburger-inner::before {
  content: "";
  top: -8px;
}

/* bottom bar */
.hamburger-inner::after {
  content: "";
  top: 8px;
}

/* active state */
.mobile-menu-btn[aria-expanded="true"] .hamburger-inner {
  background-color: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 75vh;
  min-height: 600px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(100px, 15vh, 180px) 40px 40px;
}

.hero-content {
  max-width: 800px;
}

/* Hero Content Paragraphs */
.hero-content p {
  font-size: clamp(
    1.1rem,
    1.6vw,
    1.5rem
  ); /* grows with viewport but stays within limits */
  line-height: 1.5; /* more readable spacing */
  margin-bottom: 1rem; /* spacing between paragraphs */
  color: var(--text-white); /* ensures text is visible over video */
}

/* Hero Heading */
.hero-heading-group {
  margin-bottom: 30px;
}

.hero-heading-group h1 {
  margin: 0;
  color: var(--text-white);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Accent underline on key word */
.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 0.15em;
  background-color: var(--brand-primary);
  border-radius: 2px;
}

/* Benefits List */
.benefits-list {
  margin-bottom: clamp(30px, 5vh, 50px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefits-list li {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.benefits-list li i {
  color: var(--brand-primary);
  font-size: 1.2rem;
}

/* Specific Margin for CTA */
.hero-content .btn-large {
  margin-top: 10px;
  padding: 15px 30px;
}

/* Top Job Badge */
.top-job-badge {
  position: absolute;
  bottom: 20px;
  right: 40px;
  width: 120px;
  /* Reduced from 140px to prevent overflow on smaller tablets */
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.top-job-top {
  background: linear-gradient(135deg, #d4ba72 0%, #ecd79b 50%, #d4ba72 100%);
  /* roughly top job gold */
  padding: 20px 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

.top-job-top .top-text {
  font-size: 1.8rem;
  font-weight: 400;
}

.top-job-top .job-text {
  font-size: 2.8rem;
  font-weight: 700;
  color: #2a2a2a;
}

.top-job-bottom {
  background-color: #2a2b36;
  color: #fff;
  padding: 15px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

/* ==========================================================================
   Micro-Animations (Initial States)
   ========================================================================== */

/* Scroll animations removed for cleaner UX */

/* ==========================================================================
   Responsive & Mobile Best Practices (Final Cascade)
   ========================================================================== */

@media (max-width: 1200px) {
  .main-header {
    padding: 15px 20px;
  }

  .hero-container {
    padding: clamp(80px, 12vh, 140px) 20px 40px;
  }

  .hero-heading-group h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 1024px) {
  .btn-header-top {
    display: inline-flex !important;
    padding: 8px 15px;
    font-size: 0.85rem;
    margin-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 160px);
  }

  .header-top-actions {
    display: flex;
    align-items: center;
  }

  .mobile-menu-btn {
    display: block !important;
  }

  .main-nav {
    display: none !important;
  }

  .header-actions {
    display: flex !important;
    /* Change: Keep button visible on tablet as per image */
  }

  .header-actions .search-btn {
    display: none;
    /* Hide search to save space */
  }

  .main-header {
    padding: 10px 20px;
  }

  .mobile-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-grey);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      visibility 0.4s;
  }

  .desktop-only-actions {
    display: none !important;
    margin: 0;
    padding: 0;
  }

  .mobile-menu-container.is-open {
    max-height: 600px;
    opacity: 1;
    visibility: visible;
    padding: 20px;
  }

  .mobile-menu-container.is-open .main-nav {
    display: block !important; /* override previous display: none */
    width: 100%; /* full width for links */
  }

  .mobile-menu-container.is-open .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
  }

  .mobile-menu-container.is-open .main-nav a {
    display: block;
    padding: 12px 0;
    text-align: center;
    color: var(--text-white) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .filiale-selector {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    display: block;
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-white) !important;
  }

  .header-actions {
    margin-top: 20px;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    display: none;
  }

  .header-actions .btn {
    width: 100%;
  }

  /* Content & Footer Tablet State */
  .hero-heading-group h1 {
    font-size: 2.8rem;
  }

  .benefits-list li {
    font-size: 1.2rem;
  }

  .learning-container {
    flex-direction: column;
    gap: 30px;
  }

  .learning-digital {
    align-items: flex-start;
    text-align: left;
  }

  .learning-digital h2 .d-block {
    display: inline;
  }

  .phone-mockup-container {
    width: 70%;
    max-width: 280px;
    align-self: center;
  }

  .learning-cards {
    width: 100%;
    padding-top: 20px;
  }

  .hero-container > .top-job-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
    margin-bottom: -100px;
    margin-left: 0;
    margin-right: auto;
    left: 0;
    z-index: 10;
    width: 110px;
  }

  .team-scroller-wrapper {
    overflow: hidden;
    width: 100%;
  }
}

/* Close 1024px media query properly here or before next query */

@media (max-width: 768px) {
  .hero-section {
    height: 85vh;
  }
  .hero-container {
    padding: clamp(80px, 12vh, 120px) 15px 40px;
  }
  .hero-overlay {
    background: rgba(0, 0, 0, 0.25);
  }

  .hero-content .btn-large {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    font-size: 1.1rem;
    padding: 14px 20px;
    white-space: nowrap;
  }

  .hero-heading-group h1 {
    font-size: 2.8rem;
    letter-spacing: 0;
    line-height: 1;
  }

  .learning-licenses {
    padding: 80px 20px 60px;
  }

  .learning-digital h2 {
    font-size: 2.2rem;
  }

  .license-card {
    padding: 30px 20px;
  }

  .license-card h3 {
    font-size: 1.4rem;
  }

  .license-card .card-content {
    max-width: 100%;
    margin-bottom: 70px;
    /* Room for SVG */
  }

  /* Top Job badge flows within document instead of absolute on small screens */
  .top-job-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 40px;
    margin-bottom: -100px;
    /* Overlaps into the next section */
    margin-left: 0;
    margin-right: auto;
    left: 0;
    z-index: 10;
    /* Ensures it stays on top of the learning section */
    width: 100px;
  }
}

@media (max-width: 480px) {
  .marquee-content span {
    font-size: 0.8rem;
  }

  /* Fine-tuning for very small devices */
  .hero-heading-group h1 {
    font-size: 1.8rem;
  }

  .benefits-list li {
    font-size: 1.1rem;
    gap: 10px;
    margin-bottom: 5px;
  }

  .benefits-list li i {
    font-size: 1rem;
  }

  .hero-content .btn-large {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    font-size: 1rem;
    padding: 12px 16px;
  }

  .learning-digital h2 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Section 2: Digital Learning & Licenses
   ========================================================================== */
.learning-licenses {
  padding: 80px 40px;
  background-color: var(--text-white);
  color: var(--text-dark);
}

#klassen-section {
  scroll-margin-top: 120px;
}

.learning-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Left Column */
.learning-digital {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Removed text-transform: uppercase */
.learning-digital h2.faq-section-title.top-aligned {
  font-size: 2.8rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 30px;
}

.learning-digital .faq-section-description {
  margin-top: 0;
  margin-bottom: 40px;
  line-height: 1.7;
}

.learning-digital .btn-large {
  align-self: flex-start;
}

/* Right Column (Licenses & Dropdowns) */
.learning-cards {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

/* The 2-column Title Row */
.license-title-row.top-aligned {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 15px;
  margin-top: 0;
  margin-bottom: 25px;
}

/* Removed text-transform: uppercase */
.license-title-row h3 {
  font-size: 1.8rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.5px;
  margin: 0;
}

.license-title-row h3 .italic-bold {
  font-weight: 700;
}

/* Removed text-transform: uppercase */
.license-hours {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-800);
  letter-spacing: 0.5px;
}

/* FAQ classes defined once in the FAQ Section below */

/* Learning section responsiveness */
@media (max-width: 1024px) {
  .learning-container {
    flex-direction: column;
    gap: 50px;
  }

  .learning-digital,
  .learning-cards {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .learning-licenses {
    padding: 60px 20px;
  }

  .learning-digital h2.faq-section-title.top-aligned {
    font-size: 2.2rem;
  }

  .license-title-row.top-aligned {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .license-title-row h3 {
    font-size: 1.5rem;
  }

  .license-hours {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .learning-digital h2.faq-section-title.top-aligned {
    font-size: 1.8rem;
  }
}
/* ==========================================================================
   Section 4: Das Team (Optimized Portrait & Tag)
   ========================================================================== */
#team-section {
  padding: 100px 40px;
  background-color: var(--text-white);
}

.individual-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.individual-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 2, 243, 0.15);
  width: 100%;
  max-width: 450px;
  aspect-ratio: 9 / 11;
  max-height: 520px;
}

.rounded-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

/* --- Floating Name Tag Style --- */
.image-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.85); /* Dark premium glass */
  padding: 10px 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  z-index: 5; /* Stays above vibe layer */
  backdrop-filter: blur(5px);
  border-left: 3px solid var(--brand-primary);
}

.tag-role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.tag-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  font-style: normal;
}

/* The Pink Gradient Glow - corners only */
.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 70%,
    rgba(255, 2, 243, 0.1) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.image-wrapper:hover .rounded-image {
  transform: scale(1.03);
}

.individual-content {
  flex: 1;
  text-align: left;
}

#team-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--text-dark);
}

#team-section .section-title span {
  color: var(--brand-primary);
}

.section-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--grey-900);
  margin-bottom: 25px;
}

/* Tablet & Mobile Consistency */
@media (max-width: 1024px) {
  .individual-container {
    flex-direction: column;
    gap: 40px;
  }

  .image-wrapper {
    max-width: 380px;
    max-height: 420px;
  }
}

@media (max-width: 600px) {
  .image-tag {
    bottom: 10px;
    left: 10px;
    padding: 8px 15px;
  }
  .tag-name {
    font-size: 0.9rem;
  }
}
/* ==========================================================================
   Section 3: Custom License Diagram
   ========================================================================== */
#license-diagram {
  padding: 80px 40px;
  background-color: var(--text-white);
  color: var(--text-dark);
  text-align: center;
}

.diagram-container {
  max-width: 1140px;
  margin: 0 auto;
}

.diagram-title {
  font-size: 2.5rem;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 60px;
  text-transform: uppercase;
  line-height: 1.2;
}

.diagram-wrapper {
  position: relative;
  height: 650px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagram-center {
  background-color: var(--text-dark);
  color: var(--text-white);
  padding: 20px 40px;
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: normal;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.diagram-tags {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.tag {
  position: absolute;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  z-index: 5;
}

.tag-yellow {
  border: 2px solid var(--brand-primary);
  background-color: var(--text-white);
  color: var(--text-dark);
}

.tag-yellow i {
  color: var(--brand-primary);
  font-size: 1.1rem;
}

.tag-grey {
  background-color: var(--grey-400);
  color: var(--grey-700);
  font-weight: 500;
}

/* Precise positions for desktop spokes */
.tag-1 {
  top: 10%;
  left: 15%;
}

.tag-2 {
  top: 15%;
  right: 10%;
}

.tag-3 {
  top: 35%;
  right: 25%;
}

.tag-4 {
  bottom: 35%;
  left: 5%;
}

.tag-5 {
  top: 55%;
  right: 5%;
}

.tag-6 {
  bottom: 15%;
  right: 15%;
}

.tag-7 {
  top: 40%;
  left: 10%;
}

.tag-8 {
  top: 60%;
  left: 25%;
}

.tag-9 {
  bottom: 25%;
  left: 20%;
}

.tag-10 {
  bottom: 10%;
  left: 35%;
}

.diagram-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Responsiveness for Diagram & Approach */
@media (max-width: 1024px) {
  .individual-container {
    flex-direction: column;
    text-align: center;
  }

  .diagram-wrapper {
    height: auto;
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
  }

  .diagram-tags {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
  }

  .tag {
    position: static;
  }

  .diagram-svg {
    display: none;
  }
}

@media (max-width: 768px) {
  #individual-approach {
    padding: 60px 20px;
  }

  #individual-approach .section-title {
    font-size: 2.22rem;
  }

  .diagram-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Section 6: Services Section (High Contrast Dark Mode)
   ========================================================================== */
#services-section {
  padding: 100px 0;
  background-color: #000000; /* True black background for the section */
}

/* --- Services Section Typography (Dark Background Version) --- */

#services-section .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 20px;
  color: #ffffff; /* Forced white for the black section */

  padding: 0; /* Removing the 40px padding if it's already handled by the container */
}

#services-section .section-description {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 400;
  font-style: normal;
  color: #ffffff; /* White for readability on black */
  line-height: 1.7;
  margin-bottom: 50px;
  max-width: 800px;
  opacity: 0.9; /* Subtle softening so it doesn't vibrate against the black */
}

/* Ensure the container alignment matches the FAQ layout */
#services-section .container {
  padding: 0 40px;
}

.services-scroller-wrapper {
  position: relative;
  margin-top: 50px;
  overflow: visible; /* Prevents card hover scaling from being clipped */
}

.services-scroller {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 40px 40px 40px; /* Side padding so cards don't touch screen edges */
  scroll-snap-type: x mandatory; /* Forces snapping */
  scroll-padding: 40px; /* Aligns snap with your padding */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.services-scroller::-webkit-scrollbar {
  display: none;
}

/* Service Card Design */
.service-card {
  min-width: 300px;
  flex: 0 0 auto;
  background-color: #1a1a1a; /* Dark card background */
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  /* Updated: Transition only for colors and shadow, not transform */
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  /* Updated: Default border is now visible (Academy Yellow) */
  border: 2px solid var(--brand-primary);
  scroll-snap-align: start; /* Tells card where to stop */
}

.service-card:hover {
  /* Updated: No translateY here to remove the lifting effect */
  background-color: #222222; /* Subtle background shift instead of movement */
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.2); /* Soft yellow glow instead of lift shadow */
  border-color: #ffffff; /* Optional: border turns white on hover for feedback */
}

.service-visual {
  height: 200px;
  background-color: #252525;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  /* Matches the card's internal border color */
  border-bottom: 2px solid var(--brand-primary);
  transition: border-color 0.3s ease;
}

/* When the CARD is hovered, change the VISUAL'S bottom border to white */
.service-card:hover .service-visual {
  border-bottom-color: #ffffff;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

/* Card Text Content - Fixed Spacing and Contrast */
.service-info {
  padding: 30px; /* Professional, breathable padding */
}

.service-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff; /* High contrast white text */
  margin-bottom: 10px;
  line-height: 1.2;
}

.service-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: var(--brand-primary); /* Bright yellow tag */
  text-transform: uppercase;
}

.btn-link {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

/* Scroller Navigation Arrows */
.scroll-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #000000; /* Black arrow on yellow button */
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 10;
  opacity: 1;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.services-scroller-wrapper:hover .scroll-arrow:not(.hidden) {
  opacity: 1;
}

.scroll-arrow.scroll-left {
  left: 20px;
}

.scroll-arrow.scroll-right {
  right: 20px;
}

.scroll-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Side Fades - Dark Mode Optimized */
.services-scroller-wrapper::before,
.services-scroller-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.services-scroller-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #000000 0%, transparent 100%);
  opacity: 0;
}

.services-scroller-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #000000 0%, transparent 100%);
}

.services-scroller-wrapper.can-scroll-left::before {
  opacity: 1;
}

.services-scroller-wrapper.can-scroll-right::after {
  opacity: 1;
}

/* Utility Classes */
.yellow-text {
  color: var(--brand-primary);
}
.italic {
  font-style: normal;
}

@media (min-width: 1025px) {
  .scroll-arrow {
    opacity: 0.7; /* Slightly dimmed on desktop until hover */
  }
  .services-scroller-wrapper:hover .scroll-arrow:not(.hidden) {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  /* Targets iPad Air and smaller */
  .services-scroller-wrapper::before,
  .services-scroller-wrapper::after {
    width: 30px; /* Slimmer fades on tablet/mobile */
  }

  .scroll-arrow.scroll-left {
    left: 5px; /* Move closer to edge on smaller screens */
  }

  .scroll-arrow.scroll-right {
    right: 5px;
  }
  .scroll-arrow:not(.hidden) {
    opacity: 1; /* Always show arrows on mobile */
  }
}

@media (max-width: 768px) {
  .services-scroller-wrapper::before,
  .services-scroller-wrapper::after {
    width: 30px; /* Shrink to prevent covering cards */
  }
  .services-scroller {
    padding: 20px 20px 40px 20px;
    gap: 20px;
  }
  .service-card {
    min-width: 260px;
  }
  .scroll-arrow:not(.hidden) {
    opacity: 1; /* Always show arrows on mobile */
  }
}

/* Only apply hover effects on devices that actually support hovering */
@media (hover: hover) {
  .scroll-arrow:hover {
    background-color: #ffffff;
  }
}

.scroll-arrow:active {
  background-color: #ffffff;
  transform: translateY(-50%) scale(0.9);
  transition: none;
}

/* Remove focus ring for mouse users, keep for keyboard */
.scroll-arrow:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.scroll-arrow:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center; /* Centered vertically for a better look */
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 20px; /* Provides a safety gap around the modal */
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--text-white);
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  position: relative;
  padding: 40px;

  /* Precision Scrolling Logic */
  max-height: 90vh; /* Keeps it within the viewport */
  overflow-y: auto; /* Internal scrollbar only when needed */
  flex-shrink: 0;
}

/* --- Thin Professional Scrollbar --- */
.modal-content::-webkit-scrollbar {
  width: 4px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 10; /* Ensures it stays above content */
}

.modal-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  align-items: center;
}

.modal-photo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0; /* Prevents image squishing */
}

/* Targeted icon styling inside the modal header */
.modal-photo i {
  font-size: 4rem; /* Makes the icon large enough to fill the 120px area */
  color: var(--brand-primary);
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.modal-titles h2 {
  font-size: 2rem;
  font-weight: 700;
  font-style: normal;
  color: var(--text-dark);
  line-height: 1.1;
}

.modal-grid {
  display: grid;
  gap: 20px;
}

.modal-info-block h4 {
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.modal-info-block p {
  color: var(--text-dark);
  font-weight: 500;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
    width: 95%; /* More space on mobile */
  }

  .modal-header {
    flex-direction: column;
    text-align: center;
    gap: 15px; /* Tighter gap for small screens */
  }

  /* Alignment fix: Center the titles when stacked */
  .modal-titles h2 {
    font-size: 1.6rem;
    text-align: center;
  }
}

/* ==========================================================================
   Section 7: TOPJOB (Refined & Responsive Bento)
   ========================================================================== */
#topjob-section {
  padding: 100px 40px;
  background-color: var(--text-white);
  color: var(--text-dark);
  overflow: hidden;
}

.topjob-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Natural Bento Grid */
.topjob-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 15px;
  min-width: 0; /* Prevents grid blowout */
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--grey-300);
  box-shadow: 0 10px 30px rgba(255, 2, 243, 0.12);
}

/* Makes the first image span both rows */
.gallery-item.main {
  grid-row: 1 / 3;
}

.topjob-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* Brand Vibe Corner Glow */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 60%,
    rgba(255, 2, 243, 0.08) 100%
  );
  pointer-events: none;
}

.gallery-item:hover .topjob-img {
  transform: scale(1.05);
}

.topjob-content {
  flex: 1;
  text-align: left;
}

#topjob-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--text-dark);
}

#topjob-section .section-title span {
  color: var(--brand-primary);
}

.topjob-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--grey-900);
  margin-bottom: 20px;
}

.topjob-text strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* --- TABLET & MOBILE REFINEMENT --- */

@media (max-width: 1024px) {
  .topjob-container {
    flex-direction: column; /* Prevents side-by-side squashing */
    gap: 50px;
  }

  .topjob-gallery {
    width: 100%;
    max-width: 550px; /* Keeps the grid from becoming a giant tower */
    grid-template-rows: repeat(2, 200px); /* Slightly shorter for tablet */
    margin: 0 auto;
  }

  .topjob-content {
    /* text-align: center; */
    max-width: 800px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  #topjob-section {
    padding: 60px 20px;
  }

  .topjob-gallery {
    grid-template-rows: repeat(2, 150px); /* Compact for phones */
    gap: 10px;
  }

  #topjob-section .section-title {
    font-size: 2.2rem;
  }

  .topjob-text {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Section 8: CTA / AYNO Academy (Full-Width Pattern Interrupt)
   ========================================================================== */
#cta-section {
  position: relative;
  width: 100%;
  background-color: #0c0c0c; /* Deep matte black spanning full width */
  overflow: hidden;
  /* Glowing shadow to separate from white sections */
  box-shadow:
    inset 0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 -20px 40px rgba(0, 0, 0, 0.5);
}

/* Subtle pattern texture spanning full width */
#cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.15;
  pointer-events: none;
}

.cta-full-container {
  padding: 100px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  /* The pink 'TopJob' brand glow appearing in the corner */
  background: radial-gradient(
    circle at bottom right,
    rgba(255, 2, 243, 0.1) 0%,
    transparent 50%
  );
}

.cta-content {
  max-width: 1140px; /* Aligns with your other containers */
  width: 100%;
  text-align: left;
}

.cta-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  font-style: normal;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.cta-title span {
  color: var(--brand-primary);
}

.cta-subtext {
  font-size: 1.15rem;
  color: #d4d4d4;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
}

/* Specific logic for the button in this section */
#cta-section .btn-large {
  min-width: 240px;
  box-shadow: 0 10px 20px rgba(255, 2, 243, 0.2);
}

#cta-section .btn-large:hover {
  box-shadow: 0 15px 30px rgba(255, 2, 243, 0.4);
}

/* Tablet & Mobile */
@media (max-width: 1024px) {
  .cta-full-container {
    padding: 80px 30px;
  }
  .cta-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cta-subtext {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 2.2rem;
  }
  .cta-full-container {
    padding: 60px 20px;
  }
}
/* ==========================================================================
   Section 9: Steps
   ========================================================================== */
#steps-section {
  padding: 80px 40px;
  background-color: var(--text-white);
  color: var(--text-dark);
}

.steps-container {
  max-width: 1140px;
  margin: 0 auto;
}

#steps-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  margin-bottom: 50px;
}

#steps-section .d-block {
  display: block;
}

.steps-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.2rem); /* responsive, not too big */
  font-weight: 500;
  background-color: #ffffff;
  color: var(--grey-800); /* subtle dark gray for readability */
  margin-bottom: 0;
  max-width: 800px; /* keeps line lengths readable */
}

.steps-progress {
  display: flex;
  position: relative;
  margin-top: 60px;
  gap: 24px;
}

.progress-bar-line {
  position: absolute;
  top: 30px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 4px;
  background: var(--grey-200);
  border-radius: 2px;
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.progress-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(255, 2, 243, 0.3);
}

.progress-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.2;
}

.progress-step p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--grey-800);
  max-width: 300px;
}

@media (max-width: 768px) {
  #steps-section {
    padding: 60px 20px;
  }

  #steps-section .section-title {
    font-size: 2.22rem;
  }

  .steps-progress {
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
  }

  .progress-bar-line {
    top: 30px;
    bottom: 30px;
    left: 30px;
    right: auto;
    width: 4px;
    height: auto;
  }

  .progress-step {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    align-items: center;
    gap: 0 20px;
    padding: 20px 0;
  }

  .progress-step h3 {
    flex: 1;
    margin-bottom: 0;
  }

  .progress-step p {
    flex-basis: 100%;
    padding-left: 80px;
    margin-top: 8px;
    max-width: none;
  }

  .progress-circle {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Section 10: Traffic Rules
   ========================================================================== */
#traffic-rules-section {
  padding: 80px 40px;
  background-color: var(--text-white);
  /* Section background is white */
}

.rules-container {
  max-width: 1140px;
  margin: 0 auto;
  background-color: var(--text-dark);
  /* The box itself is black */
  border-radius: 20px;
  padding: 60px 80px;
  position: relative;
  overflow: visible;
  /* To allow badge to pop out if needed */
}

.rules-header {
  margin-bottom: 60px;
}

.rules-title {
  font-size: 2.8rem;
  font-weight: 700;
  font-style: normal;
  color: var(--brand-primary);
  line-height: 1.1;
  margin-bottom: 10px;
}

.rules-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  font-style: normal;
  color: var(--text-white);
  letter-spacing: 1px;
}

.rules-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  contain: paint;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.rules-marquee-track {
  display: flex;
  width: fit-content;
  animation: marquee 20s linear infinite;
  gap: 30px;
  align-items: flex-start;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Only allow pausing on devices that actually have a hover state (Desktop) */
@media (hover: hover) {
  .rules-marquee-track:hover {
    animation-play-state: paused;
  }
}

/* Ensure that on touch devices, it keeps moving even if tapped */
@media (hover: none) {
  .rules-marquee-track:hover {
    animation-play-state: running;
  }
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    /* -50% works perfectly as long as the set is duplicated in HTML */
    transform: translate3d(-50%, 0, 0);
  }
}

.rule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Desktop width */
  max-width: 180px;
  /* Optional cap */
  flex-shrink: 0;
  flex: 0 0 200px;
  width: 200px;
  min-width: 150px;
  min-height: 150px;
}

.rule-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

.svg-rule {
  width: 100%;
  height: 100%;
}

.rule-name {
  font-size: 0.95rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Quality Badge positioning */
.quality-badge {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  z-index: 10;
}

.quality-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@media (max-width: 1200px) {
  .rules-container {
    padding: 60px 40px;
  }

  .quality-badge {
    right: 0;
    top: -60px;
  }
}

@media (max-width: 1024px) {
  .rule-item {
    width: 25vw;
    max-width: 200px;
  }

  .rules-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  #traffic-rules-section {
    padding: 60px 20px;
    overflow-x: hidden;
  }

  .rules-container {
    padding: 50px 30px;
  }

  .rules-marquee-track {
    /* SLOWED DOWN: Increased from 15s to 25s for a calmer crawl */
    animation-duration: 25s;
    /* TIGHTER GAP: Reduced from 40px to 20px to show more items */
    gap: 20px;
    pointer-events: none;
  }

  .rule-item {
    /* SMALLER WIDTH: Reduced from 70vw to 45vw so the user sees ~2 items at once */
    /* This signals "there is more" without being dizzying */
    width: 45vw;
    max-width: 200px;
    transition: transform 0.3s ease;
  }

  .rules-title {
    font-size: 1.8rem;
  }

  .quality-badge {
    width: 100px;
    height: 100px;
    top: -50px;
    right: 0px;
  }
}

@media (max-width: 480px) {
  .rules-container {
    padding: 40px 15px;
  }

  .rules-marquee-track {
    /* Even slower for the narrowest screens to prevent blur */
    animation-duration: 30s;
  }

  .rule-item {
    /* On tiny phones, 55vw ensures the second item is clearly visible on the edge */
    width: 55vw;
  }

  .rules-header {
    padding-right: 40px;
  }
}

/* ==========================================================================
   Section 11: Locations
   ========================================================================== */
.locations-grid {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center; /* Centers items if they don't fill the row */
  align-items: stretch; /* Makes map and info same height on desktop */
}

.map-embed {
  flex: 2 1 500px; /* Grows faster than info box, stays at least 500px if possible */
  max-width: 100%;
  min-width: 300px;
}

.location-info {
  flex: 1 1 300px;
  padding: 0 25px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* This creates uniform space between Address, Hours, and Contact */
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border-radius: 8px;
  display: block;
}

.location-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 15px;
  margin-top: 0;
  padding-top: 0;
}

.location-info p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.location-info a.btn {
  margin-top: 15px;
}

.contact-list {
  margin-bottom: 15px;
}

.contact-list strong {
  display: block;
  margin-bottom: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.contact-item .icon {
  width: 20px;
  display: inline-block;
  text-align: center;
  flex-shrink: 0;
}

.contact-item a {
  text-decoration: none;
  color: inherit;
}

/* Group Headers */
.info-group strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

/* Group Content Alignment */
.info-content {
  font-size: 1rem;
  line-height: 1.5;
}

/* Contact Specifics (merged with rules above) */

/* TABLET & MOBILE REFINEMENT */
@media (max-width: 1024px) {
  .locations-grid {
    gap: 30px; /* Tighter gap for smaller screens */
  }
}

@media (max-width: 900px) {
  .locations-grid {
    flex-direction: column; /* Stacks earlier so elements don't get 'squished' */
    align-items: center;
  }

  .map-embed,
  .location-info {
    width: 100%; /* Maximizes width on tablet/mobile once stacked */
  }

  .location-info {
    text-align: center;
    padding: 0;
  }

  .contact-item {
    justify-content: center; /* Centers icons when stacked */
  }
}

@media (max-width: 768px) {
  .locations-grid {
    flex-direction: column;
    gap: 20px;
  }
  .map-embed iframe {
    height: 300px;
  }

  .location-info {
    padding: 0;
    align-items: center; /* Center the whole block on mobile */
    text-align: center;
  }

  .contact-item {
    justify-content: center; /* Center the icon rows on mobile */
  }

  .info-group {
    width: 100%;
  }
}

#locations-section {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 80px 20px;
}

.locations-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.locations-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  font-style: normal;

  /* margin-bottom: 5px; */
  margin-bottom: 30px;
}

.locations-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.2rem); /* responsive, not too big */
  font-weight: 500;
  background-color: #ffffff;
  color: var(--grey-800); /* subtle dark gray for readability */
  margin-bottom: 0;
}

.location-card {
  background-color: var(--grey-300);
  /* Light grey block */
  border-radius: 8px;
  overflow: hidden;
  max-width: 380px;
}

.map-container {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: #e0e0e0;
}

.map-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  /* to match the light map style */
  filter: grayscale(100%) contrast(1.2) brightness(1.2);
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  z-index: 2;
}

.svg-pin {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.set-standard-badge {
  background-color: #ffffff;
  color: #a0a0a0;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: normal;
  padding: 4px 8px;
  border-radius: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.city-name {
  font-size: 1.8rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--text-dark);
  line-height: 1.1;
}

.city-address {
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  color: var(--brand-primary);
  line-height: 1.3;
  margin-bottom: 20px;
}

.more-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

.more-link:hover {
  color: var(--brand-primary);
}

@media (max-width: 768px) {
  .locations-header h2 {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Section 12: Advantages & Photo (Top-Aligned + Brand Glow Version)
   ========================================================================== */
#license-classes-section {
  padding: 100px 40px;
  background-color: var(--text-white);
  color: var(--text-dark);
  overflow: hidden;
}

.classes-container {
  max-width: 1140px;
  margin: 0 auto;
}

.advantages-split-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start; /* Aligns top edges */
}

/* Image Column with Brand Glow Shadow */
.advantage-image-side {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  /* Updated to brand-colored shadow */
  box-shadow: 0 10px 30px rgba(255, 2, 243, 0.12);
}

.class-card {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  background-size: cover;
  background-position: center;
  background-image: url("assets/ayno24_car_min.webp");
  transition: transform 0.6s ease; /* Match TopJob speed */
}

/* Brand Vibe Corner Glow Overlay */
.advantage-image-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 60%,
    rgba(255, 2, 243, 0.08) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.class-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  z-index: 1;
}

.class-card-title {
  position: relative;
  z-index: 3;
  color: var(--text-white);
  font-size: 1.6rem;
  font-style: normal;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
}

.class-card-title .italic-bold {
  font-weight: 700;
}

/* Hover Effect */
.advantage-image-side:hover .class-card {
  transform: scale(1.05);
}

/* Text Column */
.advantage-text-side {
  flex: 1.2;
}

.classes-title {
  font-size: 2.5rem;
  font-weight: 700;
  font-style: normal;
  margin-top: 0; /* Align top edge */
  margin-bottom: 40px;
  line-height: 1.1;
  color: var(--text-dark);
}

.advantages-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.advantage-item {
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
  padding-left: 35px;
  color: var(--grey-900);
}

.advantage-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-primary);
  font-weight: 900;
  font-size: 1.1rem;
}

.advantage-item strong {
  color: var(--text-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--brand-primary);
  padding-bottom: 1px;
  display: inline-block;
  margin-right: 4px;
}

/* --- RESPONSIVENESS --- */

@media (max-width: 1024px) {
  .advantages-split-layout {
    flex-direction: column;
    gap: 50px;
    align-items: center;
  }

  .advantage-image-side,
  .advantage-text-side {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .class-card {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  #license-classes-section {
    padding: 60px 20px;
  }

  .classes-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
#faq-section {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 80px 40px;
}

.faq-container {
  max-width: 1140px;
  margin: 0 auto;
}

.faq-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 40px;
}

.faq-section-description {
  font-size: clamp(1rem, 1.2vw, 1.2rem); /* responsive, not too big */
  font-weight: 400; /* lighter than title for hierarchy */
  font-style: normal; /* remove italic if it looks heavy */
  color: var(--grey-800); /* subtle dark gray for readability */
  line-height: 1.7; /* airy spacing for smooth flow */
  margin-bottom: 40px; /* space between description and grid */
  max-width: 800px; /* keeps line lengths readable */
}

.faq-grid {
  display: flex;
  gap: 30px;
}

.faq-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background-color: var(--grey-200);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.05rem;
  font-weight: 700;
  font-style: normal;
  cursor: pointer;
  list-style: none;
  /* Hide default arrow */
  user-select: none;
  margin: 0;
  color: var(--text-dark);
}

/* Webkit hide marker */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question {
  color: var(--brand-primary);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--grey-900);
}

@media (max-width: 1024px) {
  .faq-section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  #faq-section {
    padding: 60px 20px;
  }

  .faq-section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .faq-grid {
    flex-direction: column;
    gap: 15px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
}

/* ==========================================================================
   Section 14: Contact Form
   ========================================================================== */
#contact-section {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 80px 40px;
}

.contact-container {
  max-width: 1140px;
  margin: 0 auto;
  overflow: hidden;
}

.contact-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 25px;

  color: var(--text-dark);
}

.contact-box {
  background-color: var(--grey-200);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
}

.contact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 25px;
  margin-top: 0;
  padding-top: 0;
  text-transform: uppercase;
  color: var(--text-dark);
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 30px;
  font-weight: 500;
}

.contact-details {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-details i {
  color: var(--text-dark);
  font-size: 1.2rem;
  width: 25px;
  text-align: left;
}

.yellow-link {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.yellow-link:hover {
  color: var(--brand-primary-hover);
}

.contact-form {
  flex: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* New: Styling for "Wie können wir Ihnen helfen?" */
.form-intro {
  margin-top: 10px;
  margin-bottom: -5px;
}

.form-subheading {
  font-size: 1.4rem;
  font-weight: 700;
  font-style: normal;

  margin-bottom: 5px;
  color: var(--text-dark);
}

.form-subtext {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
  min-width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 1.1rem;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label .required {
  color: var(--brand-primary);
  font-size: 0.9rem;
  font-weight: 800;
  font-style: normal;
}

/* Shared styles for both Inputs and Textarea */
.form-group input,
.form-group textarea {
  padding: 16px;
  border: 1px solid var(--grey-500);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: normal;
  color: #333;
  background-color: #fff;
  width: 100%;
  max-width: 100%;
  transition:
    border-color 0.2s,
    outline-color 0.2s;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--grey-600);
  font-weight: 500;
  font-style: normal;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-color: var(--brand-primary);
}

.form-privacy {
  margin-top: 10px;
  border-top: 1px solid var(--grey-500);
  padding-top: 15px;
}

.form-privacy p {
  font-size: 0.9rem !important;
  line-height: 1.4;
  color: var(--grey-600);
  font-weight: 500;
  margin-bottom: 0;
}

.privacy-link {
  text-decoration: underline;
  font-weight: 800;
  transition: color var(--transition-fast);
}

.privacy-link:hover {
  color: var(--brand-primary);
}

.form-success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1rem;
  text-align: center;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

/* Active Button Style */
.btn-submit {
  background-color: var(--brand-primary);
  color: var(--text-dark);
  cursor: pointer;
  font-style: normal;
  border-radius: 6px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--brand-primary-hover);
}

/* Media Queries */
@media (max-width: 1024px) {
  .contact-box {
    flex-direction: column;
    padding: 30px;
  }
  .contact-section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  #contact-section {
    padding: 60px 20px;
  }
  .contact-box {
    padding: 25px;
    gap: 30px;
  }
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
  .contact-section-title {
    font-size: 1.8rem;
  }
  .form-submit {
    justify-content: stretch;
  }
  .form-submit .btn-submit {
    width: 100%;
  }
}

/* ==========================================================================
   Global Utilities
   ========================================================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Section 15: Site Footer
   ========================================================================== */
.site-footer {
  background-color: var(--text-white);
  color: var(--text-dark);
}

/* Footer CTA Banner - Dark Pattern Interrupt */
.footer-cta {
  background-color: #0c0c0c; /* Deep black background only here */
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  border: none;
}

/* Subtle texture matching Section 8 */
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.1;
  pointer-events: none;
}

.footer-cta-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-cta-title {
  font-size: 2.22rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
}

/* Main Footer Content */
.footer-main {
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.2fr 1fr;
  gap: 40px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--grey-900);
}

.footer-social {
  margin-top: 10px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  font-size: 1.25rem;
  color: var(--text-dark);
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.social-icons a:hover {
  color: var(--brand-primary);
  transform: translateY(-3px);
}

.footer-links-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.footer-links-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-column ul li a,
.footer-contact-item p,
.contact-list li a {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.footer-links-column ul li a:hover,
.contact-list li a:hover {
  color: var(--brand-primary);
}

.route-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--brand-primary);
  transition: opacity var(--transition-fast);
}

.route-link:hover {
  opacity: 0.8;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 12px;
}

.contact-list i {
  width: 20px;
  color: var(--brand-primary);
  margin-right: 8px;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid #eee;
  padding: 30px 0;
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.copyright {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--grey-700);
}

.footer-legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-nav ul li a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--grey-700);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-legal-nav ul li a:hover {
  color: var(--text-dark);
}

/* --- BRANDING SECTION (New Line) --- */
.pala-brand-wrapper {
  display: block; /* Forces it to its own row */
  margin-top: 5px; /* Slight tweak to the vertical spacing */
}

.pala-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--grey-700);
}

.pala-logo {
  height: 14px;
  width: auto;
  display: block;
}

@media (max-width: 1024px) {
  .footer-bottom-container {
    align-items: flex-start;
  }

  .footer-legal-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* Switch to 2 columns */
    gap: 40px 30px;
  }

  .footer-cta-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* Mobile (Up to 768px) */
@media (max-width: 768px) {
  .footer-main {
    padding: 60px 0 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr; /* Stack everything in 1 column */
    gap: 40px;
    text-align: center; /* Optional: centers text for a cleaner mobile look */
  }

  /* Center social icons and lists if text-align is centered */
  .social-icons {
    justify-content: center;
  }

  .footer-links-column ul {
    align-items: center; /* Only if using text-align: center */
  }

  .footer-cta-title {
    font-size: 1.75rem; /* Scale down heading for small screens */
  }
}
