/* =========================
   SCROLL ANIMATIONS
   ========================= */
/* Elements fade in and slide up when they enter viewport */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add scroll offset for fixed header */
section {
  scroll-margin-top: 100px;
}

/* =========================
   ACCESSIBILITY FEATURES
   ========================= */
/* Focus states for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-accent-red);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-accent-red);
  outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--color-accent-red);
  color: var(--color-text-primary);
  padding: 12px 20px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-to-content:focus {
  left: 8px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Import Fredoka font from Google Fonts (weights: 300-700 variable) */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

/* CSS Custom Properties - Design System */
:root {
  --color-bg-primary: #0f0f0f;
  --color-bg-secondary: #1c1c24;
  --color-accent-red: #d94452;
  --color-accent-red-hover: #e05560;
  --color-text-primary: #ffffff;
  --color-text-secondary: #f5f5f5;
  --color-border: #4a4a4a;
  --color-border-red: #5a3a3a;
  
  --font-primary: 'Fredoka', sans-serif;
  
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-xxl: 80px;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-full: 50px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.4);
  --shadow-red: 0 4px 12px rgba(217, 68, 82, 0.3);
}

body {
  margin: 0;
  font-family: 'Fredoka', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; /* default body weight */
  font-size: 18px; /* spec body size */
  line-height: 1.7;
  direction: rtl;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility: visually hidden (for screen readers) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Reusable muted text */
.muted {
  color: #bbbbc7;
  font-size: 0.95rem;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text-primary);
  transition: opacity 0.3s ease;
  margin-left: 40px;
}

.brand:hover {
  opacity: 0.8;
  text-decoration: none;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0 40px 0 0;
  padding: 0;
  align-items: center;
}

.nav a {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--color-accent-red);
  text-decoration: none;
}

.nav a.btn-primary {
  color: var(--color-text-primary);
}

/* Active page indicator */
.nav a.active {
  color: var(--color-accent-red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 20px;
}

.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  display: block;
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }
  
  .brand {
    margin-left: 20px;
  }
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 18px; /* spec button text size */
  font-weight: 600; /* SemiBold for buttons per spec */
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: inherit;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-accent-red);
  border-color: var(--color-accent-red);
  color: var(--color-text-primary);
  font-weight: 600; /* spec: SemiBold for buttons */
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--color-accent-red-hover);
  border-color: var(--color-accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 68, 82, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: #ffffff33;
  color: #fdfdfd;
}

.btn-ghost:hover {
  background: #ffffff10;
}

/* =========================
   HOMEPAGE HERO SECTION (NEW)
   ========================= */
.hero-section {
  min-height: 600px;
  background: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  position: relative;
}

/* Optional background image overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(217, 68, 82, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0 0 24px 0;
}

.hero-subheadline {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.btn-hero {
  padding: 16px 48px;
  min-height: 56px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
    padding: 60px 20px;
  }
  
  .hero-headline {
    font-size: 36px;
  }
  
  .hero-subheadline {
    font-size: 18px;
  }
}

/* =========================
   CAROUSEL SECTION (HOMEPAGE)
   ========================= */
.carousel-section {
  padding: 2rem 0 4rem;
  background: var(--color-bg-primary);
}

.carousel-section .container {
  max-width: 75%;
  margin: 0 auto;
}

.carousel-section .hero-slider {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.25);
}

.carousel-section .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.carousel-section .hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-section .hero-slide.is-exiting {
  opacity: 0;
  transform: translateX(-100%);
}

.carousel-section .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .carousel-section .container {
    max-width: 95%;
  }
}

/* =========================
   SERVICES HOME SECTION (NEW)
   ========================= */
.services-home-section {
  background: var(--color-bg-primary);
  padding: var(--spacing-xxl) var(--spacing-lg);
}

.services-home-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* =========================
   HERO SECTION + SLIDER (OLD - KEEP FOR OTHER PAGES)
   ========================= */
.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-copy {
  flex: 1 1 300px;
  max-width: 500px;
  text-align: center;
}

.hero-copy-centered {
  flex: 1 1 100%;
  max-width: 100%;
  order: 1;
}

.hero-copy-centered h1 {
  margin: 0 0 1rem;
  font-size: 2.8rem;
  line-height: 1.2;
  text-align: center;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #bbbbc7;
}

/* CTA buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Final CTA section */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 1rem;
}

.final-cta p {
  margin-bottom: 1.5rem;
}

/* Right side visual slider */
.hero-visual {
  flex: 1 1 100%;
  width: 100%;
  max-width: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  order: 2;
  margin: 0 auto;
}

.hero-slider {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.25);
}

/* Hero slider controls */
.hero-controls {
  position: absolute;
  inset: auto 0 12px 0;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  z-index: 10;
}
.hero-controls button {
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 0;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}
.hero-controls button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.hero-prev { margin-right: 0.5rem; }
.hero-next { margin-left: 0.5rem; }

/* Each slide */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* Visible slide - swipe from right */
.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

/* Exiting slide - swipe to left */
.hero-slide.is-exiting {
  opacity: 0;
  transform: translateX(-100%);
}

/* 4:3 images, nicely filling the frame */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

@media (max-width: 768px) {
  .hero-visual {
    max-width: 95%;
  }
}

/* =========================
   CONTACT PAGE (REDESIGNED)
   ========================= */
.contact-page {
  background: var(--color-bg-primary);
  min-height: calc(100vh - 80px);
}

.contact-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 40px 60px;
}

.contact-head {
  text-align: center;
  margin-bottom: 48px;
}

.contact-head h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
}

.contact-head p {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Form Container */
.contact-form {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 20px;
}

.contact-form label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-primary);
  min-height: 50px;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #7a7a7a;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-accent-red);
  box-shadow: 0 0 0 3px rgba(217, 68, 82, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
  max-height: 400px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 12px;
}

.form-ok {
  color: #00b359;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

/* Contact info display */
.contact-info {
  text-align: center;
  margin-top: 32px;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Social media icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-primary);
  border-radius: 50%;
  color: var(--color-text-secondary);
  font-size: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: var(--color-accent-red);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-wrap {
    padding: 60px 20px;
  }
  
  .contact-form {
    padding: 32px;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .contact-head h1 {
    font-size: 32px;
  }
}

/* =========================
   SUBPAGES: MEDIA / ABOUT / ETC
   ========================= */
.page-media {
  background: #05060a;
  color: #fdfdfd;
}

/* Simple “back” link + page title */
.subpage-header {
  padding: 2.5rem 0 1.5rem;
  text-align: right;
}

.subpage-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.back-home {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.back-home:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================
   MEDIA GRID (NEWS)
   ========================= */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.video-card {
  background: #11121a;
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  background: #181927;
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: #b01f3b;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
}

.video-card h3 {
  margin: 0.75rem 0 0.25rem;
  padding: 0 0.75rem;
  font-size: 1rem;
}

.video-card p {
  margin: 0;
  padding: 0 0.75rem;
}

/* =========================
   FEATURES GRID
   ========================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.feature-card {
  background: #11121a;
  border-radius: 12px;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feat-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.feat-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feat-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.feat-body p {
  margin: 0;
  line-height: 1.6;
  color: #bbbbc7;
}

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

/* =========================
   PODCAST PAGE
   ========================= */
.podcast-section {
  padding-bottom: 3rem;
}

.podcast-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.podcast-cover {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
}

.podcast-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.episode-card {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #11121a;
  border-radius: 12px;
}

.episode-card h3 {
  margin: 0 0 0.5rem;
}

.episode-card audio {
  width: 100%;
  margin: 0.5rem 0 0.5rem;
}

/* =========================
   ABOUT SECTION (REDESIGNED)
   ========================= */
.about-section {
  background: var(--color-bg-secondary);
  padding: var(--spacing-xxl) var(--spacing-lg);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-layout {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
}

.about-image-container {
  width: 400px;
  flex-shrink: 0;
}

.about-image {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.about-text-content {
  flex: 1;
  max-width: 600px;
}

.about-text-content h2 {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

.about-text-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

.about-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.about-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.about-head h1 {
  margin-bottom: 0.5rem;
}

.about-grid {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: flex-start;
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.about-grid h2 {
  margin-top: 0;
}

.about-grid p {
  line-height: 1.8;
  margin-top: 0;
}

.about-card {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-pic {
  border-radius: 24px;
  max-width: 320px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.about-photo-wrap {
  flex: 0 0 35%;
  display: flex;
  justify-content: flex-start;
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  object-fit: cover;
}

.about-text {
  flex: 1;
  padding-right: 2rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-cta {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .about-layout {
    flex-direction: column;
  }
  
  .about-image-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .about-section {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
  
  .about-grid {
    position: relative;
    display: block;
    padding: 0;
  }
  
  .about-photo-wrap {
    position: relative;
    max-width: 100%;
    flex: none;
  }
  
  .about-photo {
    opacity: 0.7;
    border-radius: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }
  
  .about-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
  }
  
  .about-text p {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
    font-size: 1rem;
  }
  
  .about-head h1,
  .about-head p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
  }
}

/* =========================
   FEATURED SERVICES (HOME)
   ========================= */
.featured-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 0;
}

.service-card {
  background: #1a1d2e;
  border: 1.5px solid #4a4a4a;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-height: 320px;
  justify-content: center;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #5a3a3a;
  box-shadow: 0 8px 24px rgba(176, 31, 59, 0.15);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.8rem 1.6rem;
  background: #d94452;
  color: #ffffff;
  border-radius: 999px;
  aspect-ratio: 1 / 0.6;
  font-weight: 700; /* bold badge text */
  font-size: 1rem;
  text-align: center;
  word-wrap: break-word;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(217, 68, 82, 0.2);
  transition: all 0.3s ease;
}

/* Headings use Fredoka Bold per spec */
h1 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
}

h2 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600; /* SemiBold for H2 */
  font-size: 36px;
  line-height: 1.3;
}

h3 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600; /* SemiBold for H3 */
  font-size: 28px;
  line-height: 1.4;
}

h4, h5, h6 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

/* Larger descriptive blocks can use a lighter weight when appropriate */
.hero-subtitle,
.final-cta p,
.muted {
  font-weight: 300;
}

/* Small text per spec */
small, .small-text {
  font-size: 16px;
  line-height: 1.6;
}

.service-card:hover .service-badge {
  background: #e85563;
  box-shadow: 0 4px 12px rgba(217, 68, 82, 0.35);
}

.service-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

/* =========================
   COLLAPSIBLE MEDIA SECTIONS
   ========================= */
.media-section {
  margin-bottom: 1.5rem;
}

.media-section-toggle {
  width: 100%;
  background: #11121a;
  border: 1px solid #ffffff22;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  text-align: right;
  color: #fdfdfd;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.media-section-toggle:hover {
  background: #181927;
  border-color: #ffffff33;
}

.toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.media-section-toggle h3 {
  margin: 0;
  flex: 1;
  font-size: 1.2rem;
}

.media-section-content {
  padding: 2rem 0;
}

.media-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.media-preview {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.media-preview:hover {
  transform: scale(1.02);
}

.media-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  border: 1px solid #ffffff22;
}

.media-badge {
  font-size: 2rem;
}

.media-preview p {
  font-size: 0.9rem;
  text-align: center;
  color: #bbbbc7;
}

.media-expand {
  text-align: center;
}
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 48px 40px 32px;
  width: 100%;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 48px;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
}

.footer-column h3 {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
}

.footer-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  display: block;
}

.footer-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 300px;
  margin: 0;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-grid ul li a {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-grid ul li a:hover {
  color: var(--color-accent-red);
}

.footer-contact-item {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-icon {
  color: var(--color-accent-red);
  font-size: 16px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 20px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social-icon:hover {
  color: var(--color-accent-red);
}

.copyright-bar {
  border-top: 1px solid var(--color-border);
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
}

.copyright-bar p {
  font-size: 14px;
  color: #7a7a7a;
  margin: 0;
}

.legal {
  text-align: center;
}

.legal p {
  font-size: 14px;
  color: #7a7a7a;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }
  
  .site-footer {
    padding: 40px 20px 24px;
  }
}

/* =========================
   VIDEO MODAL
   ========================= */
.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 60;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.video-modal-inner {
  width: 100%;
  max-width: 1100px;
  background: #000;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.video-modal-close {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  z-index: 61;
}

.video-modal-close:hover {
  color: #b01f3b;
}

.video-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  flex-shrink: 0;
}

.video-player-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-info {
  padding: 1.5rem;
  overflow-y: auto;
}

.video-info h2 { 
  margin: 0 0 0.5rem; 
  font-size: 1.5rem;
}

.video-info p { 
  margin: 0; 
  line-height: 1.6;
}

@media (max-width: 768px) {
  .video-modal {
    padding: 1rem;
  }
  
  .video-modal-inner {
    max-height: 85vh;
  }
  
  .video-player-wrap {
    aspect-ratio: 16 / 9;
  }
  
  .video-info {
    padding: 1rem;
  }
  
  .video-info h2 {
    font-size: 1.2rem;
  }
}

/* =========================
   SERVICES PAGE (moved from inline)
   ========================= */
.services-hero { 
  padding: 3.5rem 1.5rem 1.5rem; 
  text-align: center; 
}

.services-hero h1 { 
  margin: 0 0 .5rem; 
}

.services-hero p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.1rem;
}

.services-section { padding: 2.5rem 1.5rem; }

/* LECTURES AND TOURS SWIPER STYLING */
.lectures-swiper,
.tours-swiper {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 60px;
}

.lectures-swiper .swiper-slide,
.tours-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 5 / 4;
  height: auto;
  background: var(--color-bg-primary);
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(217, 68, 82, 0.8);
}

/* Swiper pagination */
.swiper-pagination-bullet {
  background: var(--color-text-secondary);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--color-accent-red);
  opacity: 1;
}

/* shrink the overall services box to 60% (≈40% smaller) so it doesn't span full width */
.services-swiper { max-width: 660px; margin: 0 auto; }
.services-swiper .swiper-slide { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 5 / 4; height: auto; background: var(--color-bg-primary); }

/* image fills the slide */
.slide-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* fill the frame completely */
  opacity: 0.8;
}

/* overlay gradient to keep text readable */
.slide-overlay { position:absolute; inset:0; background: rgba(5,6,10,0.3); }

/* content sits on the right (RTL) and centered vertically */
.slide-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* center horizontally */
  padding: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  z-index: 3;
  text-align: center; /* center text to align with header */
  color: #fff;
  overflow: hidden;
}

.slide-content h3 { margin:0 0 .5rem; font-size:1.6rem; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6); }
.slide-content p { margin:0 0 1.25rem; color:#ddd; line-height:1.6; text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5); }
.slide-content .btn { padding: .6rem 1.25rem; }

/* 1on1 single feature — use same overlay but center content */
.oneonone .slide-content { width:100%; align-items:center; text-align:center; right:0; left:0; }

/* responsive tweaks for services slides */
@media (max-width: 900px) {
  .services-swiper,
  .lectures-swiper,
  .tours-swiper { max-width: 92%; }
  .slide-content { width: 100%; max-width: 100%; padding: 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; overflow: hidden; }
}
@media (max-width: 640px) {
  .services-swiper,
  .lectures-swiper,
  .tours-swiper { max-width: 100%; }
  .slide-content { position: absolute; right: 0; left: 0; width: 100%; max-width: 100%; padding: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; align-items: center; text-align: center; overflow: hidden; }
  .slide-content h3 { font-size: 1.3rem; }
  .slide-content p { font-size: 0.9rem; line-height: 1.5; }
}

/* JAPAN 1on1: present the photo as a 16:9 hero box */
.oneonone .services-swiper { max-width: 780px; }
.oneonone .services-swiper .swiper-slide { aspect-ratio: 16 / 9; border-radius: 14px; }
.oneonone .slide-img { object-fit: cover; width:100%; height:100%; }
.oneonone .slide-overlay { background: linear-gradient(to left, rgba(5,6,10,0.5), rgba(5,6,10,0.12)); }

@media (max-width: 900px) {
  .oneonone .services-swiper { max-width: 92%; }
  .oneonone .services-swiper .swiper-slide { aspect-ratio: 16 / 9; }
}


/* =========================
   MEDIA HUB - PROFESSIONAL PACKAGES
   ========================= */
.media-packages-section {
  padding: 4rem 0;
}

.media-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  padding: 2rem 0;
}

.media-package {
  position: relative;
  background: var(--color-bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.media-package:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(217, 68, 82, 0.2);
}

.media-package-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.media-package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-package:hover .media-package-image img {
  transform: scale(1.05);
}

.media-package-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.8) 0%, rgba(15, 15, 15, 0.3) 50%, rgba(15, 15, 15, 0) 100%);
  pointer-events: none;
}

.media-package-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.media-package-content h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.media-package-content p {
  margin: 0;
  color: #bbbbc7;
  line-height: 1.7;
  font-size: 1rem;
  flex: 1;
}

.media-package-content .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Secondary button style for packages */
.btn-secondary {
  background: transparent;
  color: var(--color-accent-red);
  border: 2px solid var(--color-accent-red);
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-accent-red);
  color: var(--color-text-primary);
  border-color: var(--color-accent-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 68, 82, 0.3);
}

@media (max-width: 768px) {
  .media-packages-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .media-package-content {
    padding: 1.5rem;
  }
  
  .media-package-content h2 {
    font-size: 1.5rem;
  }
}

/* Old media hub styles - keeping for backwards compatibility */
.media-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.media-hub-card {
  background: #11121a;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.media-card-visual {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.media-hub-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.media-hub-card p {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  color: #bbbbc7;
}

.media-hub-card .btn {
  width: 100%;
  justify-content: center;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .featured-services {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .podcast-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .feat-img {
    flex: 1 1 100%;
    max-width: none;
  }

  .feature-card {
    flex-direction: column;
  }

  .videos-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .media-hub-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  /* Show burger button */
  .nav-toggle {
    display: block;
  }

  /* Full-screen mobile menu overlay */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(15, 15, 15, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 999;
  }

  /* When menu is open */
  .nav.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Stack links vertically with larger spacing */
  .nav ul {
    flex-direction: column;
    gap: 60px;
    margin: 0;
    text-align: center;
  }
  
  .nav a {
    font-size: 32px;
  }

  .videos-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .video-card h3 {
    font-size: 0.9rem;
  }

  .video-card p {
    font-size: 0.85rem;
  }

  .featured-services {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    min-height: 280px;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
  }

  .service-badge {
    min-width: 110px;
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
  }

  .service-card p {
    font-size: 1rem;
  }

  .media-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-section-toggle {
    padding: 1rem 1.25rem;
  }
}
