  /* Prevent horizontal overflow/width jump */
html { scrollbar-gutter: stable both-edges; }
html, body { max-width: 100%; overflow-x: hidden; }
.mobile-menu.is-open { overscroll-behavior: contain; }

/* IRANYekan font integration */
@font-face {
  font-family: 'IRANYekan';
  src: url('Fonts/IRANYekanWebRegular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('Fonts/IRANYekanWebBold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('Fonts/IRANYekanWebBlack.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('Fonts/IRANYekanWebExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('Fonts/IRANYekanWebExtraBlack.woff2') format('woff2');
  font-weight: 950; font-style: normal; font-display: swap;
}

/* Global font application */
body, button, input, select, textarea { 
  font-family: 'IRANYekan', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji'; 
}
body { background-color: var(--bg-primary); color: #E5E7EB; overflow-x: hidden; line-height: 1.6; }

/*
Theme Name: Kasht Beauty
Description: A luxurious, high-quality, and minimal website for a premier hair implant clinic, designed with a sophisticated Persian aesthetic.
Version: 1.0.0
Author: Kasht Beauty Team
Requires PHP: 7.4
*/

/* Remove unused external font CSS import (not needed) */

:root {
  --bg-primary: #0f1217;
  --bg-secondary: #191d24;
  --accent: #ffd300;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --header-height: 4rem; /* 64px */
  --cursor-size: 8px;
  --cursor-outline-size: 30px;
}

/* Responsive defaults */
.mobile-only { display: none; }
.desktop-only { display: block; }

/* Scroll lock when overlays open */
html.is-menu-open { overflow: hidden; }

/* Ensure mobile overlay is hidden by default on desktop */
.mobile-menu { display: none; }

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

body {
  background-color: var(--bg-primary);
  color: #E5E7EB;
  font-family: 'iranyekan', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Aurora Background */
.aurora-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  background-image: 
      radial-gradient(ellipse at 5% 10%, rgba(255, 211, 0, 0.15), transparent 40%),
      radial-gradient(ellipse at 95% 20%, rgba(57, 62, 70, 0.4), transparent 50%),
      radial-gradient(circle at 20% 85%, rgba(25, 29, 36, 0.6), transparent 60%),
      radial-gradient(circle at 80% 90%, rgba(255, 211, 0, 0.1), transparent 40%),
      radial-gradient(ellipse at 50% 50%, rgba(57, 62, 70, 0.2), transparent 70%);
  background-size: 300% 300%;
  animation: aurora 30s ease infinite;
  z-index: -1;
}

@keyframes aurora {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* Header Background */
.header-background {
  background: linear-gradient(90deg, var(--bg-primary), #2a2e35, var(--bg-primary));
  background-size: 200% 100%;
  animation: pan-background 15s linear infinite;
}

@keyframes pan-background {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Sections */
.animated-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.animated-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
  height: var(--header-height);
}

/* Full-width header container and edge-aligned logo */
header .container {
  max-width: 100%;
  padding: 0; /* remove inline padding so logo touches start edge */
}

.header-content { padding-inline-end: 1.5rem; }

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Strong overrides to avoid conflicts from assets/css/main.css */
header .header-content {
  /* Keep full-width and no inline-start padding so logo hugs viewport edge */
  max-width: 100% !important;
  padding: 0 !important;
  padding-inline-start: 0 !important;
  padding-inline-end: 1.5rem !important;
  gap: 0 !important;
}

/* Ensure header direction follows html[dir] reliably (override any global direction) */
html[dir="ltr"] header, html[dir="ltr"] header * { direction: ltr !important; }
html[dir="rtl"] header, html[dir="rtl"] header * { direction: rtl !important; }

/* Header should span full width and align from inline-start */
header .header-content { width: 100%; }

/* Prevent header content from overflowing container */
.header-start { flex: 1 1 auto; min-width: 0; }
.main-navigation { flex: 1 1 auto; min-width: 0; }
.header-end { flex: 0 0 auto; }

/* Keep nav compact to avoid overflow */
.nav-menu { flex-wrap: nowrap; gap: 1.5rem !important; }
.nav-menu a { white-space: nowrap; font-weight: 500 !important; }

/* Ensure underline animation starts from the correct edge per direction */
html[dir="ltr"] .nav-menu a::after { left: 0 !important; right: auto !important; }
html[dir="rtl"] .nav-menu a::after { right: 0 !important; left: auto !important; }

.logo {
  font-size: 1.5rem;
  font-weight: 700; /* IRANYekan Bold */
  font-family: 'iranyekan', sans-serif;
}

/* Force logo to remain bold and other header text medium despite other styles */
.logo, .logo .logo-kash, .logo .logo-beauty { font-weight: 700 !important; }
.language-switcher .lang-btn,
.nav-menu a,
.consultation-btn { font-weight: 500 !important; }

.logo .logo-kash {
  color: #fff;
}

.logo .logo-beauty {
  color: var(--accent);
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Remove intrusive yellow focus rectangle on header items, keep accessible focus-visible */
header a,
header button {
  -webkit-tap-highlight-color: transparent; /* mobile */
  outline: none; /* base */
}
header a:focus,
header button:focus {
  outline: none !important;
  box-shadow: none !important;
}
/* Keyboard-only visible focus */
header a:focus-visible,
header button:focus-visible {
  outline: 2px solid rgba(255, 211, 0, 0.35); /* subtle accent */
  outline-offset: 2px;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem; /* slightly tighter */
  flex: 1 1 auto;
  min-width: 0;
}

.nav-menu a {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500; /* Medium */
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--accent);
}

/* Remove unwanted blue underlines/highlights on titles and cards */
/* Ensure educational cards and their titles never show default link underlines */
.educational-card,
.educational-card:link,
.educational-card:visited,
.educational-card:hover,
.educational-card:focus {
  text-decoration: none !important;
  background-image: none !important;
  text-decoration-color: transparent !important;
}
.educational-title,
.educational-title a {
  text-decoration: none !important;
  background-image: none !important;
  text-decoration-color: transparent !important;
}

/* Language Switcher */
.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(57, 62, 70, 0.6);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(75, 85, 99, 0.5);
}

.lang-btn {
  position: relative;
  z-index: 10;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500; /* Medium */
  border-radius: 9999px;
  transition: color 0.3s;
  border: none;
  background: none;
  cursor: pointer;
  color: #9ca3af;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  color: var(--bg-primary);
}

.language-slider {
  position: absolute;
  background: var(--accent);
  height: calc(100% - 8px);
  margin: 0.125rem;
  border-radius: 9999px;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 15px rgba(255, 211, 0, 0.5);
  transform: scale(1.05);
}

/* Header groups */
.header-start,
.header-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.consultation-btn {
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 500; /* Medium */
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.consultation-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.consultation-btn:hover::before {
  width: 200%;
  height: 200%;
}

.consultation-btn:hover {
  box-shadow: 0 0 20px rgba(255, 211, 0, 0.6);
  transform: scale(1.05);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.social-icons a {
  color: #9ca3af;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--accent);
}

.social-icons svg {
  width: 1.5rem;
  height: 1.5rem;
}

.separator {
  width: 1px;
  height: 1.5rem;
  background: rgba(75, 85, 99, 0.5);
}

/* Header Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Header structural helpers to match reference */
.lang-divider {
  width: 1px;
  height: 1.5rem;
  background: rgba(75, 85, 99, 0.5);
}

.icon-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border-inline-start: 1px solid rgba(75, 85, 99, 0.5);
  padding-inline-start: 1.5rem;
  margin-inline-start: 1.5rem;
}

.icon-group a {
  color: #9ca3af;
  transition: color 0.3s;
}

.icon-group a:hover { color: var(--accent); }

.icon-group svg { width: 1.5rem; height: 1.5rem; }

/* Responsive */
@media (max-width: 1024px) {
  /* Tablet and below: collapse header to logo + mobile controls */
  header .language-switcher,
  header .lang-divider,
  header .main-navigation,
  header .header-end { display: none !important; }

  /* Controls at the opposite edge */
  header .mobile-controls { display: flex !important; align-items: center; gap: .875rem; margin-inline-start: auto; margin-inline-end: 0; position: relative; }
  header .mobile-controls .icon { width: 24px; height: 24px; }
  /* Keep icons visually at the edge */
  header .mobile-controls button { background: transparent; border: 0; padding: 0; color: inherit; }
  /* Touch target via icon size instead of padding */
  header .mobile-controls .icon { width: 28px; height: 28px; }
  /* Ensure the group itself has a tiny inset from the edge; no positioning so panel can anchor to header row */
  header .mobile-controls { padding-inline-end: 2px; position: static; }
  header .mobile-controls button:focus { outline: none; }
  header .mobile-controls button:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: .5rem; }

  /* Globe animation when language panel opens */
  .mobile-lang-toggle { transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .25s ease; transform-origin: 50% 50%; }
  /* 3-spin bowling animation (LTR/RTL) — roll AWAY from hamburger */
  @keyframes globe-bowl-ltr {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
    20%  { transform: translate(-10px, -6px) rotate(-360deg) scale(1); }
    60%  { transform: translate(-28px, -8px) rotate(-720deg) scale(.92); }
    100% { transform: translate(-44px, 0) rotate(-1080deg) scale(.85); opacity: 0; }
  }
  @keyframes globe-bowl-rtl {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
    20%  { transform: translate(10px, -6px) rotate(360deg) scale(1); }
    60%  { transform: translate(28px, -8px) rotate(720deg) scale(.92); }
    100% { transform: translate(44px, 0) rotate(1080deg) scale(.85); opacity: 0; }
  }
  html[dir="ltr"] .mobile-controls.is-lang-anim .mobile-lang-toggle { animation: globe-bowl-ltr .75s cubic-bezier(.22,.61,.36,1) forwards; }
  html[dir="rtl"] .mobile-controls.is-lang-anim .mobile-lang-toggle { animation: globe-bowl-rtl .75s cubic-bezier(.22,.61,.36,1) forwards; }
  /* Keep globe hidden while panel is open */
  /* Fallback state while open (keep globe away from hamburger) */
  html[dir="ltr"] .mobile-controls.is-lang-open .mobile-lang-toggle { opacity: 0; transform: translateX(-36px) rotate(-300deg) scale(0); }
  html[dir="rtl"] .mobile-controls.is-lang-open .mobile-lang-toggle { opacity: 0; transform: translateX(36px) rotate(300deg) scale(0); }

  /* Panel appears immediately (no delay), morph-friendly origin */
  .mobile-lang-panel { transition-delay: 0s; transform-origin: center; }

  /* Keep header height tight */
  :root { --header-height: 64px; }
  /* Make container full-bleed on mobile */
  header .container { padding-inline: 0 !important; max-width: none !important; width: 100% !important; margin: 0 !important; }
  /* Slight inset from screen edges and push groups apart */
  header .header-content { padding-inline: 12px !important; overflow: visible; display: flex; align-items: center; justify-content: space-between; height: var(--header-height); position: relative; }
  /* Logo container */
  header .header-start { display: flex; align-items: center; gap: 0; flex: 0 0 auto; min-width: 0; margin-inline-start: 0; }
  header .header-start .logo { display: block; margin: 0; }
  /* Prevent unintended padding pushing logo in */
  header .header-start, header .header-start .logo { padding: 0 !important; }

  /* Mobile menu overlay base */
  .mobile-menu { 
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(25,29,36,0.9); backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
  }
  /* Floating language panel anchored to mobile-controls to avoid logo overlap */
  header .mobile-controls { position: relative; }
  header .mobile-controls .mobile-lang-panel {
      position: absolute; top: 50%;
      inset-inline-end: calc(28px + 10px); /* away from hamburger */
      background: rgba(17, 20, 25, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      padding: .4rem;
      transform: translate(0, -50%) scale(0.94);
      box-shadow: 0 12px 30px rgba(0,0,0,.35);
      opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
      z-index: 10000; max-width: min(86vw, 360px);
  }
  html[dir="rtl"] header .mobile-controls .mobile-lang-panel { inset-inline-start: calc(28px + 10px); inset-inline-end: auto; transform: translate(0, -50%) scale(0.94); }
  header .mobile-controls .mobile-lang-panel.open { opacity: 1; pointer-events: auto; transform: translate(0, -50%) scale(1); }

  /* During globe spin, gently hint the panel appearing */
  header .mobile-controls.is-lang-anim .mobile-lang-panel { opacity: .06; transform: translate(0, -50%) scale(0.97); }

    /* Language switcher inside floating panel */
    /* IMPORTANT: override global hide for header .language-switcher */
  .mobile-lang-panel .language-switcher { position: relative; display: inline-flex !important; gap: .25rem; background: rgba(255,255,255,0.04); border-radius: .75rem; padding: .25rem; }
  .mobile-lang-panel .language-switcher .language-slider { position: absolute; inset-block: .25rem; width: 33%; border-radius: .5rem; background: rgba(255,211,0,0.15); transition: inset-inline-start .25s ease, transform .25s ease; }
    /* Slider positions for 3 buttons (fa,en,ar) using nth-child */
  .mobile-lang-panel .language-switcher .lang-btn { position: relative; z-index: 1; background: transparent; border: 0; color: #e5e7eb; font-family: 'iranyekan', sans-serif; font-weight: 600; font-size: .875rem; padding: .5rem .75rem; border-radius: .5rem; }
  .mobile-lang-panel .language-switcher .lang-btn:hover { color: var(--accent); }

  /* We rely on JS setActiveLangButton to move slider via inline style; fallback: center slider */
  .mobile-lang-panel .language-switcher .language-slider { left: .25rem; right: auto; }

  /* Ensure flex alignment on mobile header row */
  header .header-content { display: flex; align-items: center; position: relative; z-index: 2; }
  .mobile-menu.is-open { opacity: 1; pointer-events: auto; }

  .mobile-nav { position: absolute; inset: 0; overflow-y: auto; }
  .mobile-menu-inner {
    min-height: 100%; display: flex; flex-direction: column; align-items: center;
    padding: 6rem 1.25rem 4rem; gap: 1.5rem;
  }

  /* Enforce IRANYekan in mobile overlay */
  .mobile-menu, .mobile-links a, .mobile-cta { font-family: 'iranyekan', sans-serif; }

  /* Language switcher area at top of overlay */
  .mobile-lang .language-switcher { 
    display: inline-flex; position: relative; isolation: isolate;
  }

  /* Links stacked and centered */
  .mobile-links { 
    list-style: none; margin: 0; padding: 0; width: min(520px, 100%);
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
  }
  .mobile-links a { 
    color: #d1d5db; text-decoration: none; font-weight: 500;
    font-size: 1.25rem; line-height: 1.8; transition: color .2s ease;
  }
  .mobile-links a:hover { color: var(--accent); }

  /* CTA button (tripled visually, with clamps to avoid overflow) */
  .mobile-cta { 
    display: inline-block; margin-top: .75rem; 
    background: var(--accent); color: #191d24; font-weight: 800;
    padding: clamp(1.75rem, 5.5vw, 3.25rem) clamp(3.5rem, 10.5vw, 6.5rem);
    border-radius: clamp(1.75rem, 5vw, 3rem);
    transition: transform .2s ease;
    font-size: clamp(1.75rem, 6vw, 3rem);
    line-height: 1;
    max-width: 90vw; white-space: nowrap;
  }
  .mobile-cta:hover { transform: scale(1.03); }

  /* Icons row */
  .mobile-icons { display: flex; align-items: center; gap: 2rem; padding-top: .5rem; }
  .mobile-icons a { color: #d1d5db; }
  .mobile-icons a:hover { color: var(--accent); }
}

@media (max-width: 640px) {
  /* Phone: slightly larger tap targets */
  .mobile-links a { font-size: 1.375rem; }
  .mobile-cta { padding: .875rem 1.75rem; }
}

/* Hero Section */
.hero-section {
  position: relative;
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 20;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #9ca3af;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: #fff;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #9ca3af;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(57, 62, 70, 0.5);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-0.5rem);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--accent);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.feature-description {
  color: #9ca3af;
  line-height: 1.6;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(57, 62, 70, 0.5);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(75, 85, 99, 0.3);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.service-description {
  color: #9ca3af;
  line-height: 1.6;
}

/* Before After Section */
.before-after-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.before-after-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.before-after-slider img {
  width: 100%;
  height: auto;
  display: block;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.about-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.about-text p {
  color: #9ca3af;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

/* Educational Section */
.educational-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.educational-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.educational-card {
  background: rgba(57, 62, 70, 0.5);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
}

.educational-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.educational-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.educational-content {
  padding: 1.5rem;
}

.educational-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.educational-excerpt {
  color: #9ca3af;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: rgba(57, 62, 70, 0.5);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(75, 85, 99, 0.3);
  text-align: center;
  transition: all 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  color: var(--accent);
  width: 1.25rem;
  height: 1.25rem;
}

.testimonial-quote {
  font-style: italic;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: #fff;
}

.testimonial-date {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* FAQ Section (unified across all viewports to match front-end) */
body .faq-section {
  padding: 6rem 0;
  background: rgba(25, 29, 36, 0.35);
}

body .faq-section > .container {
  max-width: 62rem;
  margin: 0 auto;
}

body .faq-section .section-title {
  text-align: center;
  color: #e5e7eb;
  font-weight: 900;
  margin-bottom: .5rem;
}

body .faq-section .section-subtitle {
  text-align: center;
  color: #9ca3af;
  margin-top: 0;
  margin-bottom: 2rem;
}

/* List wrapper centered and narrow for readability */
body .faq-section .faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

/* Items with subtle dividers like the reference */
body .faq-section .faq-item {
  border-bottom: 1px solid rgba(75, 85, 99, 0.45);
  margin: 0;
  padding: 0;
}
/* Explicitly keep background transparent even on hover (override legacy rules) */
body .faq-section .faq-item,
body .faq-section .faq-item:hover,
body .faq-section .faq-question,
body .faq-section .faq-question:hover { background: transparent !important; }

body .faq-section .faq-item:first-child {
  border-top: 1px solid rgba(75, 85, 99, 0.45);
}

/* Question row */
body .faq-section .faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 1rem 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: start;
  color: #e5e7eb;
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  transition: color .25s ease, padding-inline .25s ease;
}

body .faq-section .faq-question:hover {
  color: var(--accent);
}

/* Chevron */
body .faq-section .faq-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s ease;
}

body .faq-section .faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

/* Answer panel with smooth height and fade; JS sets max-height dynamically */
body .faq-section .faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  will-change: max-height, opacity;
  transition: max-height .3s ease, opacity .3s ease;
  background: transparent;
  padding-top: 0.5rem;
}

body .faq-section .faq-answer p {
  color: #b7bdc6;
  line-height: 1.9;
  padding: 0.25rem 0 1.25rem;
  margin: 0;
}

[dir="rtl"] body .faq-section .faq-question {
  text-align: end;
  direction: rtl;
}

[dir="rtl"] body .faq-section .faq-answer {
  text-align: end;
  direction: rtl;
}

[dir="ltr"] body .faq-section .faq-question {
  text-align: start;
  direction: ltr;
}

[dir="ltr"] body .faq-section .faq-answer {
  text-align: start;
  direction: ltr;
}

/* Ensure question text inherits alignment and wraps nicely on two lines */
body .faq-section .faq-question span {
  display: block; /* stable multi-line block */
  text-align: inherit; /* follow container alignment per dir */
  white-space: normal; /* allow wrap */
}

@media (max-width: 640px) {
  body .faq-section .faq-question {
    padding: 0.9rem 0;
    gap: 0.6rem;
  }
  body .faq-section .faq-question span {
    line-height: 1.7;
  }
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.contact-info p {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 24rem;
}

.contact-details {
  color: #9ca3af;
  line-height: 1.8;
}

.contact-details p {
  margin-bottom: 1rem;
}

.contact-details strong {
  color: #fff;
}

.contact-form {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--bg-secondary);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #fff;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #9ca3af;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 211, 0, 0.2);
}

.submit-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.submit-btn:hover::before {
  width: 200%;
  height: 200%;
}

.submit-btn:hover {
  box-shadow: 0 0 20px rgba(255, 211, 0, 0.6);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.875rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.footer-logo .logo-kash {
  color: #fff;
}

.footer-logo .logo-beauty {
  color: var(--accent);
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: #9ca3af;
  transition: color 0.3s;
}

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

.footer-social svg {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-copyright {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  width: 3.125rem;
  height: 3.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem);
  z-index: 1000;
}

.scroll-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==== WP Comments form: match front-end design ==== */
.kasht-comments { margin: 3rem 0; }
.kasht-comment-form {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.kasht-comments .kf-title { 
  text-align: center; color: #e5e7eb; font-weight: 900; margin: 0 0 1.25rem; 
}
.kasht-comment-form .kf-row { margin-bottom: 1rem; }
.kasht-comment-form .kf-row label { 
  display: inline-block; color: #d1d5db; margin-inline-start: .5rem; margin-bottom: .35rem; 
}
html[dir="rtl"] .kasht-comment-form .kf-row label { float: inline-end; }
.kasht-comment-form .kf-two { 
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; 
}
.kasht-comment-form input[type="text"],
.kasht-comment-form input[type="email"],
.kasht-comment-form textarea {
  width: 100%; background: #2a2e35; border: 1px solid #2a2e35; color: #fff;
  border-radius: 10px; padding: .9rem 1rem; font-family: inherit; transition: border-color .2s ease;
}
.kasht-comment-form textarea { min-height: 160px; }
.kasht-comment-form input:focus,
.kasht-comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,211,0,.18); }
.kasht-comment-form .kf-actions { 
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; 
}
.kasht-comment-form .kf-submit {
  background: var(--accent); color: #191d24; font-weight: 800; border: 0; cursor: pointer;
  padding: .75rem 1.25rem; border-radius: 10px; transition: transform .15s ease, box-shadow .15s ease;
}
.kasht-comment-form .kf-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255,211,0,.28); }
.kasht-comment-form .kf-rating-display { color: #9aa0a9; display: inline-flex; align-items: center; gap: .5rem; }
.kasht-comment-form .kf-rating-display .stars { letter-spacing: .15rem; opacity: .85; }
.kasht-comment-form .kf-helper { color: #9ca3af; font-size: .9rem; margin-top: .75rem; }
@media (max-width: 640px) {
  .kasht-comment-form { padding: 1.25rem; }
  .kasht-comment-form .kf-two { grid-template-columns: 1fr; }
  .kasht-comment-form .kf-actions { flex-direction: column; align-items: stretch; }
  html[dir="rtl"] .kasht-comment-form .kf-actions { flex-direction: column-reverse; }
}

.scroll-to-top-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Desktop pieces off on mobile */
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }

  .mobile-controls { align-items: center; }
  .mobile-controls .icon { width: 1.5rem; height: 1.5rem; color: #e5e7eb; }

  /* Keep header one row on mobile */
  .header-content { gap: 1rem; padding: .75rem 0; }
  .header-start { gap: .75rem; }
  .lang-divider, .main-navigation { display: none; }

  /* Full-screen mobile menu overlay */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(25,29,36,0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    display: block; /* override desktop default */
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; }
  .mobile-nav { position: absolute; inset: 0; overflow-y: auto; }
  .mobile-menu-inner {
    display: flex; flex-direction: column; align-items: center;
    gap: 1.25rem; padding: 5rem 1.25rem 3rem;
  }
  .mobile-lang { margin-bottom: .5rem; }
  .mobile-links { list-style: none; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
  .mobile-links a { color: #e5e7eb; text-decoration: none; font-weight: 600; }
  .mobile-cta { margin-top: .75rem; padding: .75rem 1.25rem; font-weight: 700; }
  .mobile-icons { border: none; padding: 0; margin: .75rem 0 0; }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .features-grid,
  .services-grid,
  .educational-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .scroll-to-top-btn {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
}
