/* ===================================================================
   STYLESHEET: YouTube Ausbildung Page (yta-*)
   AUTHOR: Gemini AI
   VERSION: 3.0 (Interactive Scroller Update)
   DESCRIPTION: A fully refactored stylesheet featuring an automatic,
                interactive card scroller for a modern UX.
   =================================================================== */

/* -------------------------------------------------------------------
   1. GLOBAL SETUP & CSS VARIABLES
   ------------------------------------------------------------------- */



/* -------------------------------------------------------------------
   /* -------------------------------------------------------------------
   3. MINI COURSE SECTION (THE NEW SCROLLER)
   ------------------------------------------------------------------- */

.yta-scroller {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.yta-modules { /* This is now the .yta-scroller__inner */
  --gap: clamp(24px, 3vw, 40px);
  display: flex;
  gap: var(--gap);
  width: max-content; /* Allow it to be wider than the screen */
  animation: scroll 60s linear infinite;
}

/* Pause animation on hover/touch */
.yta-scroller:hover .yta-modules {
  animation-play-state: paused;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--gap) / 2))); }
}

/* --- The Card Itself --- */
.yta-module {
  flex: 0 0 auto; /* Prevent cards from shrinking */
  width: 360px; /* Consistent card width */
  position: relative;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(35, 35, 35, 0.8), rgba(20, 20, 20, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Glowing border - now appears only on hover */
.yta-module::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--youtube-red-light), var(--youtube-red));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.4s ease;
}

.yta-module:hover::before {
  opacity: 1; /* Show on hover */
  animation: rotateGradient 4s linear infinite;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Decorative lines */
.yta-module__deco-lines {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to top right, transparent 49.5%, rgba(255, 80, 80, 0.3) 50%, transparent 50.5%),
        linear-gradient(to top left, transparent 49.5%, rgba(255, 80, 80, 0.3) 50%, transparent 50.5%);
    background-size: 150% 150%;
    z-index: 2;
    pointer-events: none;
}

/* Card Content */
.yta-module__title, .yta-module__bullets, .yta-note {
  position: relative;
  z-index: 5;
}

/* Badge */
.yta-module__badge {
  position: absolute;
  top: -16px; left: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.yta-module:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 35px rgba(255, 80, 80, 0.4), 0 18px 45px rgba(0, 0, 0, 0.5);
}

/* Text styles inside the card */
.yta-module__title { margin: 1rem 0 0.8rem; font-weight: 900; letter-spacing: 0.3px; color: var(--text-primary); }
.yta-module__bullets { padding-left: 0; list-style: none; color: var(--text-secondary); }
.yta-module__bullets li { position: relative; padding-left: 1.4rem; margin: 0.65rem 0; line-height: 1.65; }
.yta-module__bullets li::before { content: "→"; position: absolute; left: 0; top: 0.1rem; font-weight: 900; color: var(--youtube-red-accent); }
.yta-note { background: rgba(255, 90, 99, 0.15); border-left: 4px solid var(--youtube-red-accent); border-radius: 12px; padding: 0.85rem 1rem; color: #ffd7dc; font-size: 0.95rem; margin-top: 1.2rem; }

/* -------------------------------------------------------------------
   4. UPSELL & CTA & BUTTONS (No changes needed)
   ------------------------------------------------------------------- */
.yta-upsell__card { max-width: 880px; margin: 0 auto; padding: clamp(32px, 4vw, 48px); border-radius: 28px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06)); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: var(--card-shadow); text-align: center; }
.yta-upsell__points { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.75rem; text-align: left; }
.yta-upsell__points li { position: relative; padding-left: 1.6rem; color: var(--text-secondary); line-height: 1.65; }
.yta-upsell__points li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; font-weight: 900; font-size: 1.05rem; color: #3ED17B; }

.yta-cta { padding: clamp(60px, 8vw, 96px) 0; text-align: center; background: radial-gradient(80% 120% at 50% 100%, rgba(255, 0, 0, 0.12), transparent 80%); }
.yta-cta .h1 { font-weight: 1000; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 0.6em; }
.yta-cta p { max-width: 680px; margin: 0 auto 2rem; font-size: 1.05rem; opacity: 0.88; }

.yta .btn--accent { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 999px; background: var(--accent-gradient); color: #fff; font-weight: 800; box-shadow: 0 14px 34px rgba(255, 0, 0, 0.35); transition: transform 0.25s ease, box-shadow 0.25s ease; border: 0; }
.yta .btn--accent:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(255, 0, 0, 0.45); color: #fff; }

/* -------------------------------------------------------------------
   5. RESPONSIVE ADJUSTMENTS (No changes needed)
   ------------------------------------------------------------------- */


@media (max-width: 768px) {
  .yta-hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .yta .btn { width: 100%; justify-content: center; }
}

/* ===================================================================
   STYLESHEET: YouTube Ausbildung Page (yta-*)
   AUTHOR: Gemini AI
   VERSION: 3.1 (Hero Redesign)
   DESCRIPTION: A complete overhaul of the hero section for a modern,
                impactful, and professional first impression.
   =================================================================== */

/* ... (کدهای بخش 1. GLOBAL SETUP را دست نخورده باقی بگذارید) ... */
:root {
  --youtube-red: #FF0000;
  --youtube-red-light: #FF4444;
  --youtube-red-accent: #ff5a63;
  --text-primary: #E7ECF3;
  --text-secondary: rgba(255, 255, 255, 0.92);

  --card-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --glow-shadow: 0 0 40px rgba(255, 0, 0, 0.35);
}

.youtube-ausbildung .section {
  padding: clamp(52px, 6vw, 96px) 0;
  position: relative;
}


/* -------------------------------------------------------------------
   2. HERO SECTION (THE NEW MASTERPIECE)
   ------------------------------------------------------------------- */
.yta-hero {
  padding: clamp(60px, 8vw, 120px) 0;
  background: radial-gradient(ellipse 60% 70% at 85% 40%, rgba(255, 0, 0, 0.12), transparent 80%);
  overflow: hidden;
}

.yta-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.yta-hero__copy .content_title {
  font-size: clamp(2.8rem, 6vw, 4.2rem); /* Bigger and more impactful */
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 0.5em;
  background: linear-gradient(135deg, #ffffff 70%, #b8c1d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.yta-hero__copy .text--md {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 55ch; /* Better readability */
  font-size: 1.1rem;
  opacity: 0.9;
}

.yta-hero__actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap; /* For smaller screens */
}

/* Primary CTA button style is already good, we just add the secondary one */
.yta .btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.yta .btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.yta-hero__visual {
  justify-self: center;
  position: relative;
}

.yta-hero__visual .device-card {
  max-width: 550px; /* Slightly larger image */
  margin: 0 auto;
  /* Removing the old card styles */
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.yta-hero__visual .device-card img {
  display: block;
  width: 100%;
  transform: scale(1); /* No more shrinking */
  filter: drop-shadow(0 40px 50px rgba(255, 0, 0, 0.2));
  animation: float-animation 6s ease-in-out infinite;
}

@keyframes float-animation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}


/* ... (کدهای بخش 3. MINI COURSE را دست نخورده باقی بگذارید) ... */


/* -------------------------------------------------------------------

  .yta-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content in mobile */
  }
  .yta-hero__copy .text--md {
    max-width: 65ch;
  }
  .yta-hero__actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* This rule already exists, but ensure it applies to the new buttons */
  .yta-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .yta .btn {
    width: 100%;
    justify-content: center;
  }
}


/* Styling for the new Upsell Section with Image */
.yta-upsell__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(32px, 4vw, 48px);
  /* Other styles like background, border are already there from lux-card */
}

.yta-upsell__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.yta-upsell__points {
  margin-bottom: 2rem; /* More space before the button */
}

.yta-upsell__visual {
  border-radius: 16px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}

.yta-upsell__visual:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.yta-upsell__visual img {
  display: block;
  width: 100%;
}


/* Make it responsive */
@media (max-width: 992px) {
  .yta-upsell__card {
    grid-template-columns: 1fr; /* Stack on smaller screens */
    text-align: center;
  }
  
  .yta-upsell__content {
    order: 2; /* Text comes after the image on mobile */
  }

  .yta-upsell__visual {
    order: 1;
    transform: none; /* Reset 3D effect on mobile */
    margin-bottom: 2rem;
  }

  .yta-upsell__points {
    display: inline-grid;
    text-align: left;
  }
}

/* -------------------------------------------------------------------
   4. UPSELL & CTA & BUTTONS (REFINED & FINALIZED)
   ------------------------------------------------------------------- */

/* --- Upsell Section (from previous step) --- */
.yta-upsell__card {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(32px, 4vw, 48px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
}
.yta-upsell__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.yta-upsell__points { margin-bottom: 2rem; }
.yta-upsell__visual {
  border-radius: 16px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}
.yta-upsell__visual:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}
.yta-upsell__visual img {
  display: block;
  width: 100%;
}

/* --- Final CTA Section (NEW DESIGN) --- */
.yta-cta {
  padding: clamp(60px, 8vw, 96px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.yta-cta::before { /* Background glow effect */
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, rgba(255, 0, 0, 0) 60%);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.yta-cta .h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
}

.yta-cta p {
  max-width: 680px;
  margin: 0 auto 2.5rem; /* More space before button */
  font-size: 1.1rem;
  opacity: 0.88;
}

/* General Button Styles (already defined but kept for clarity) */
.yta .btn--accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px; /* Slightly larger button */
  font-size: 1.1rem; /* Larger text */
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(255, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 0;
}
.yta .btn--accent:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 48px rgba(255, 0, 0, 0.45);
  color: #fff;
}


/* -------------------------------------------------------------------
   5. RESPONSIVE ADJUSTMENTS
   ------------------------------------------------------------------- */
/* --- Hero Responsive (from before) --- */
@media (max-width: 992px) {
  .yta-hero { text-align: center; }
  .yta-hero__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .yta-hero__copy { display: flex; flex-direction: column; align-items: center; }
  .yta-hero__copy .text--md { max-width: 65ch; }
  .yta-hero__actions { justify-content: center; }
}
@media (max-width: 768px) {
  .yta-hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 350px; margin-left: auto; margin-right: auto; }
  .yta .btn { width: 100%; justify-content: center; }
}

/* --- Upsell Responsive (from before) --- */
@media (max-width: 992px) {
  .yta-upsell__card { grid-template-columns: 1fr; text-align: center; }
  .yta-upsell__content { order: 2; }
  .yta-upsell__visual { order: 1; transform: none; margin-bottom: 2rem; }
  .yta-upsell__points { display: inline-grid; text-align: left; }
}

/* Accent gradient only for page content (keeps header untouched) */
.youtube-ausbildung main,
.youtube-ausbildung .yta {
  --accent-gradient: linear-gradient(135deg, var(--youtube-red), var(--youtube-red-light));
}

/* === Apply BLUE/CYAN palette to old yta-* styles (content only) === */
.youtube-ausbildung main,
.youtube-ausbildung .yta {
  /* map old "youtube-red" tokens to new blue/cyan palette */
  --youtube-red: #3b82f6;          /* primary blue */
  --youtube-red-light: #22d3ee;    /* cyan accent */
  --youtube-red-accent: #60a5fa;   /* light blue for bullets/badges */

  --text-primary: #e2e8f0;
  --text-secondary: rgba(226,232,240,0.92);

  /* any place using --accent-gradient now becomes blue/cyan */
  --accent-gradient: linear-gradient(135deg, var(--youtube-red), var(--youtube-red-light));
}

/* Buttons (were red shadows) → blue shadows, only in content */
.youtube-ausbildung main .btn--accent,
.youtube-ausbildung .yta .btn--accent {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 14px 34px rgba(59,130,246,0.35);
}
.youtube-ausbildung main .btn--accent:hover,
.youtube-ausbildung .yta .btn--accent:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 48px rgba(59,130,246,0.45);
}

/* Decorative reds → blue tint (affects things like .yta-module__deco-lines etc.) */
.youtube-ausbildung main .yta-module__deco-lines {
  background-image:
    linear-gradient(to top right, transparent 49.5%, rgba(59,130,246,0.30) 50%, transparent 50.5%),
    linear-gradient(to top left,  transparent 49.5%, rgba(59,130,246,0.30) 50%, transparent 50.5%);
}

/* Any red glows in CTA/hero → blue glow (safe generic override) */
.youtube-ausbildung main .yta-hero__visual img,
.youtube-ausbildung main .yta-cta::before {
  filter: drop-shadow(0 40px 50px rgba(59,130,246,0.20));
}
.youtube-ausbildung main .yta-cta::before {
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(59,130,246,0) 60%);
}

/* Notes/alerts that used --youtube-red-accent → cool-blue accent */
.youtube-ausbildung main .yta-note {
  background: rgba(96,165,250,0.15);
  border-left-color: var(--youtube-red-accent);
  color: #dbeafe; /* light blue text */
}
/* ===== FIX 1: Hero Device Card - Styled & Professional ===== */

.yta-hero__visual .device-card {
  max-width: 550px;
  margin: 0 auto;
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.05));
  border-radius: 32px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25),
              0 0 100px rgba(34, 211, 238, 0.15);
  backdrop-filter: blur(10px);
  animation: float-animation 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Glow effect زیر کارت */
.yta-hero__visual .device-card::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* تصویر داخل کارت */
.yta-hero__visual .device-card picture {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.yta-hero__visual .device-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  filter: brightness(1.05) contrast(1.1);
  transform: scale(1);
}

/* Shine Effect */
.yta-hero__visual .device-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shine 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

/* Hover Effect */
.yta-hero__visual .device-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(59, 130, 246, 0.35),
              0 0 120px rgba(34, 211, 238, 0.25);
}

/* ===== FIX 2: Module Badge Position (بالای کارت) ===== */

.yta-module {
  position: relative;
  flex: 0 0 auto;
  width: 360px;
  padding: 32px 24px 22px; /* فضای بالا برای badge */
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(35, 35, 35, 0.8), rgba(20, 20, 20, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  overflow: visible; /* مهم - اجازه بیرون اومدن badge */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Badge - بالای کارت */
.yta-module__badge {
  position: absolute;
  top: -22px; /* بالاتر از کارت */
  left: 50%; /* وسط کارت */
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  color: #fff;
  font-weight: 900;
  font-size: 1.75rem;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.45),
              0 0 0 6px rgba(59, 130, 246, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.9);
  z-index: 20; /* بالای همه چیز */
  animation: badgeBounce 3s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* Hover - Badge بزرگتر میشه */
.yta-module:hover .yta-module__badge {
  transform: translateX(-50%) scale(1.15) rotate(10deg);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6),
              0 0 0 8px rgba(59, 130, 246, 0.3);
}

/* کارت Hover */
.yta-module:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.4),
              0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Glowing border - فقط hover */
.yta-module::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.yta-module:hover::before {
  opacity: 1;
  animation: rotateGradient 4s linear infinite;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Decorative Lines - آبی */
.yta-module__deco-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.5), 
    transparent
  );
  border-radius: 24px 24px 0 0;
}

/* Title & Content */
.yta-module__title {
  margin: 0.5rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  text-align: center;
}

/* Bullets */
.yta-module__bullets {
  padding-left: 0;
  list-style: none;
  color: var(--text-secondary);
}

.yta-module__bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
  line-height: 1.7;
}

.yta-module__bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-weight: 900;
  color: #60a5fa; /* آبی روشن */
}

/* Note */
.yta-note {
  background: rgba(96, 165, 250, 0.15);
  border-left: 4px solid #60a5fa;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #dbeafe;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .yta-module {
    width: 320px; /* کمی کوچک‌تر برای موبایل */
    padding: 28px 20px 20px;
  }

  .yta-module__badge {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    top: -20px;
  }

  .yta-hero__visual .device-card {
    max-width: 100%;
    padding: 1rem;
  }
}
/* ===== MINI COURSE SCROLLER - FINAL FIX ===== */

.yta-scroller {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  padding: 60px 0 80px 0; /* بالا 60px، پایین 80px */


.yta-modules {
  --gap: clamp(24px, 3vw, 40px);
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: scroll 60s linear infinite;
}

.yta-scroller:hover .yta-modules {
  animation-play-state: paused;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (var(--gap) / 2))); }
}

/* ===== کارت (بدون overflow hidden) ===== */
.yta-module {
  flex: 0 0 auto;
  width: 360px;
  position: relative;
  padding: 40px 24px 22px; /* فضای بالا برای badge */
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(15px);
  overflow: visible; /* مهم - اجازه بیرون اومدن badge */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== شماره badge - بالای کارت و بیرون ===== */
.yta-module__badge {
  position: absolute;
  top: -25px; /* بالای کارت - بیرون */
  left: 50%; /* وسط */
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  color: #fff;
  font-weight: 900;
  font-size: 1.9rem;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5),
              0 0 0 6px rgba(59, 130, 246, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.95);
  z-index: 30; /* بالاترین z-index */
  animation: badgeBounce 3s ease-in-out infinite;
}

@keyframes badgeBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* Hover - Badge */
.yta-module:hover .yta-module__badge {
  transform: translateX(-50%) scale(1.15) rotate(8deg);
  box-shadow: 0 16px 42px rgba(59, 130, 246, 0.65),
              0 0 0 8px rgba(59, 130, 246, 0.35);
}

/* ===== Glowing Border - فقط Hover ===== */
.yta-module::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.yta-module:hover::before {
  opacity: 1;
  animation: rotateGradient 4s linear infinite;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== خط تزیینی بالا ===== */
.yta-module__deco-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(59, 130, 246, 0.5), 
    transparent
  );
  border-radius: 24px 24px 0 0;
  z-index: 2;
}

/* ===== Hover کارت ===== */
.yta-module:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 45px rgba(59, 130, 246, 0.4),
              0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ===== محتوای کارت ===== */
.yta-module__title, 
.yta-module__bullets, 
.yta-note {
  position: relative;
  z-index: 5;
}

.yta-module__title {
  margin: 0.5rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #e2e8f0;
  text-align: center;
}

.yta-module__bullets {
  padding-left: 0;
  list-style: none;
  color: rgba(226, 232, 240, 0.9);
}

.yta-module__bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
  line-height: 1.7;
}

.yta-module__bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-weight: 900;
  color: #60a5fa;
}

.yta-note {
  background: rgba(96, 165, 250, 0.15);
  border-left: 4px solid #60a5fa;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #dbeafe;
  font-size: 0.95rem;
  margin-top: 1.2rem;
  line-height: 1.65;
}
/* ===== Glowing Border - داخل کارت بمونه ===== */
.yta-module::before {
  content: "";
  position: absolute;
  inset: 0; /* دقیقاً اندازه کارت */
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* نباید با mouse تداخل داشته باشه */
  clip-path: inset(0 0 0 0 round 24px); /* بریده بشه به اندازه کارت */
}

.yta-module:hover::before {
  opacity: 1;
  animation: rotateGradient 4s linear infinite;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* ===== بدون ::before - فقط box-shadow آبی ===== */
.yta-module::before {
  display: none; /* خط آبی رو کلاً خاموش کن */
}

.yta-module:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 0 2px #3b82f6, /* border جعلی با box-shadow */
              0 0 45px rgba(59, 130, 246, 0.4),
              0 20px 50px rgba(0, 0, 0, 0.4);
}
/* ===== BENEFITS SECTION ===== */
.yta-benefits {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59, 130, 246, 0.08), transparent 70%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}

.benefit-desc {
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.7;
  font-size: 1rem;
}

/* ===== AUDIENCE SECTION ===== */
.yta-audience {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(59, 130, 246, 0.08));
}

.audience-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

.audience-title {
  font-size: 2rem;
  font-weight: 900;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.audience-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.25rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
  font-size: 1.05rem;
}

.audience-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: 900;
  font-size: 1.3rem;
}

.audience-note {
  background: rgba(59, 130, 246, 0.12);
  border-left: 4px solid #60a5fa;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.7;
}

.audience-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(34, 211, 238, 0.1));
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #60a5fa;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(226, 232, 240, 0.85);
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .audience-wrapper {
    grid-template-columns: 1fr;
  }
  
  .audience-visual {
    flex-direction: row;
    overflow-x: auto;
  }
  
  .stat-box {
    min-width: 200px;
  }
}
/* ===== SECTION HEADER (برای همه سکشن‌ها) ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #e2e8f0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.7;
}
/* ===== دکمه Hero - فیکس شکستن متن ===== */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: normal; /* اجازه wrap بدیم */
}

.nowrap {
  white-space: nowrap; /* (9,99 €) نشکنه */
  display: inline-block;
}

/* موبایل - دکمه تمام عرض */
@media (max-width: 768px) {
  .yta-hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-text {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* خیلی کوچک - دکمه یه خط */
@media (max-width: 480px) {
  .yta-hero__actions .btn {
    font-size: 0.95rem;
    padding: 0.9rem 1.25rem;
  }
  
  .btn-text {
    display: block; /* یه خط */
    text-align: center;
  }
}
<!-- ===== INLINE CSS OVERRIDE - YTA-WHY ===== -->

/* Force Override با !important */
body .section.yta-why {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59, 130, 246, 0.08), transparent 70%) !important;
  padding: 80px 0 !important;
}

body .yta-why__header {
  text-align: center !important;
  max-width: 900px !important;
  margin: 0 auto 4rem !important;
}

body .yta-why__subtitle {
  font-size: 1rem !important;
  color: #60a5fa !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  margin-bottom: 1rem !important;
}

body .yta-why__title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important;
  font-weight: 400 !important;
  color: rgba(226, 232, 240, 0.95) !important;
  line-height: 1.5 !important;
  letter-spacing: -0.01em !important;
}

body .yta-why__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 2rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

body .yta-why__card {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.05)) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 24px !important;
  padding: 2.5rem 2rem !important;
  text-align: center !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

body .yta-why__card:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}

body .yta-why__icon {
  font-size: 3.5rem !important;
  margin-bottom: 1.5rem !important;
  filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.3)) !important;
}

body .yta-why__card-title {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  color: #e2e8f0 !important;
  margin-bottom: 1rem !important;
  letter-spacing: 0.08em !important;
}

body .yta-why__card-desc {
  color: rgba(226, 232, 240, 0.85) !important;
  line-height: 1.8 !important;
  font-size: 1rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  body .yta-why {
    padding: 50px 0 !important;
  }
  
  body .yta-why__grid {
    grid-template-columns: 1fr !important;
  }
}
body .yta-why__title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important;
  font-weight: 300 !important; /* سبک‌تر */
  color: rgba(226, 232, 240, 0.95) !important;
  line-height: 1.5 !important;
  letter-spacing: 0.02em !important; /* بیشتر */
}

body .yta-why__title strong {
  font-weight: 600 !important; /* بولد خوشگل */
  color: #ffffff !important;
}
/* ===== FIX: Branding-Cases ansehen link style ===== */

/* استایل پایه لینک */
a[href*="projekte.php"],
.btn--secondary[href*="projekte.php"] {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  
  /* رنگ و پس‌زمینه */
  background: var(--color-surface);
  color: var(--color-text) !important;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-base);
  
  /* تایپوگرافی */
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  
  /* جلوه‌ها */
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* ترنزیشن */
  transition: all var(--duration-normal) var(--ease-standard);
}

/* حالت hover */
a[href*="projekte.php"]:hover,
.btn--secondary[href*="projekte.php"]:hover {
  background: var(--color-secondary-hover);
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(var(--color-teal-500-rgb), 0.3);
}

/* حالت active/فشردن */
a[href*="projekte.php"]:active,
.btn--secondary[href*="projekte.php"]:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* برای دارک مود */
.section--dark a[href*="projekte.php"],
.section--dark .btn--secondary[href*="projekte.php"] {
  background: rgba(var(--color-gray-400-rgb), 0.15);
  color: var(--color-gray-200) !important;
  border-color: rgba(var(--color-gray-400-rgb), 0.3);
}

.section--dark a[href*="projekte.php"]:hover,
.section--dark .btn--secondary[href*="projekte.php"]:hover {
  background: rgba(var(--color-gray-400-rgb), 0.25);
  border-color: var(--color-teal-300);
  color: var(--color-teal-300) !important;
}

/* اگه دکمه با فلش باشه */
a[href*="projekte.php"]::after,
.btn--secondary[href*="projekte.php"]::after {
  content: "→";
  margin-left: var(--space-4);
  transition: transform var(--duration-fast) var(--ease-standard);
}

a[href*="projekte.php"]:hover::after,
.btn--secondary[href*="projekte.php"]:hover::after {
  transform: translateX(4px);
}

