:root {
    --bg-primary: #191d24;
    --bg-secondary: #2a2f36;
    --accent: #ffd300;
    --header-height: 80px;
    --header-height-scrolled: 64px;
}

/* Prefer Kashida expansion for Persian/Arabic when justified */
html[dir="rtl"] :where(
  p,
  .post-content p,
  .entry-content p,
  .service-text p,
  .about-text p,
  .about-feature p,
  .about-subtitle,
  .section-subtitle,
  blockquote,
  .testimonial-text,
  .educational-excerpt,
  .comment-text,
  .faq-answer p,
  .contact-info p,
  .contact-details p,
  .footer-bottom-text,
  .widget-area p,
  .widget-area li,
  .entry-content li,
  .post-content li
) {
  text-justify: inter-character !important; /* Enable kashida-based justification where supported and enforce justification with higher priority */
  text-justify: inter-character; /* Enable kashida-based justification where supported */
}

/* Header - Completely rebuilt to match frontend exactly */
.header-background { 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    background: rgba(25,29,36,0.95); 
    backdrop-filter: blur(15px); 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    height: var(--header-height);
    width: 100%;
    display: flex;
    align-items: center;
    transform: translateY(0);
    transition: transform .25s ease, height .25s ease, background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
    will-change: transform, height;
}

.header-background.is-scrolled {
    height: var(--header-height-scrolled);
    background: rgba(25,29,36,0.98);
    border-bottom-color: rgba(255,255,255,0.18);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Auto-hide on scroll down; revealed on scroll up */
.header-background.is-hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 0;
}

/* Header Left Section */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.consultation-btn {
    background: linear-gradient(135deg, #ffd300 0%, #ffed4e 100%);
    color: #191d24;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'iranyekan', sans-serif;
    font-weight: 900;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 211, 0, 0.3);
    text-align: center;
    line-height: 1;
}

.consultation-btn:hover {
    background: linear-gradient(135deg, #e6c200 0%, #ffd300 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 0, 0.4);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffd300;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    background: #ffd300;
    color: #191d24;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 211, 0, 0.4);
}

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

.separator {
    width: 1px;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'iranyekan', sans-serif;
    font-weight: 900;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: 0;
    white-space: nowrap;
    position: relative;
    line-height: 1;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd300;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #ffd300;
}

.nav-menu a:hover::after {
    width: 100%;
}

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

/* Language Switcher */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.lang-btn {
    position: relative;
    z-index: 10;
    padding: 0.5rem 1.25rem;
    font-family: 'iranyekan', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.3s;
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

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

.lang-btn.active {
    color: #191d24;
}

.language-slider {
    position: absolute;
    background: #ffd300;
    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);
}

/* Site Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'iranyekan', sans-serif;
    font-weight: 900;
    line-height: 1;
}

.logo-kash {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    white-space: nowrap;
}

.logo-beauty {
    color: #ffd300;
    font-size: 1.5rem;
    font-weight: 900;
    white-space: nowrap;
}

/* Prevent underline/background artifacts on the logo link in all states */
.logo,
.logo * {
    text-decoration: none !important;
    background-image: none !important;
    text-decoration-color: transparent !important;
}
.logo:hover,
.logo:focus {
    text-decoration: none !important;
    background-image: none !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .header-content {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-left,
    .header-right {
        order: 1;
    }
    
    .main-navigation {
        order: 3;
        margin: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .consultation-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Adjust main top spacing if needed */
.site-main { padding-top: 0; }

/* ===================================
   Kasht Beauty Theme - Main Styles
   =================================== */

/* Import IRANYekan Fonts */
@import url('WebFonts/css/fontiran.css');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'iranyekan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* Direction handling across the entire site based on html[dir] */
[dir="rtl"] body { direction: rtl; }
[dir="ltr"] body { direction: ltr; }

/* Logical text alignment for common text elements (respects direction) */
/* Uses text-align: start so RTL = right, LTR = left. Component classes with center/other alignment will still override. */
body, p, li, a, label, input, textarea, .service-description, .testimonial-text, .contact-info p, .contact-details p, .faq-answer p, .faq-question > span {
  text-align: start;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'iranyekan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 800; }
h3 { font-size: 1.75rem; font-weight: 700; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1.1rem; font-weight: 500; }

p {
    font-family: 'iranyekan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ccc;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Bar */
.top-bar {
    background: #2a2a2a;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    color: #ccc;
    font-size: 0.875rem;
}

.top-bar-right {
    display: flex;
    gap: 0.5rem;
}

.refresh-btn, .fullscreen-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

/* Old header styles removed - replaced with new header above */

/* Hero Section - Completely rebuilt to match frontend exactly */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height));
    background: #191d24;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: #191d24;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
}

.hero-title {
    font-family: 'iranyekan', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-title .accent {
    color: #ffd300;
}

.hero-subtitle {
    font-family: 'iranyekan', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Before/After Carousel - Completely rebuilt to match frontend exactly */
.before-after-carousel {
    position: absolute;
    inset: 0;
    z-index: 10;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: ew-resize;
    overflow: hidden;
}

/* After Image (Background) */
.after-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.after-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 211, 0, 0.9);
    color: #191d24;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: 'iranyekan', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 15;
}

/* Before Image Container (Clipped) */
.before-image-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    transition: clip-path 0.1s ease;
}

.before-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.before-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: 'iranyekan', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 15;
}

/* Interactive Divider */
.divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(-1px);
    z-index: 20;
    pointer-events: none;
}

.divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    pointer-events: auto;
    cursor: ew-resize;
    transition: all 0.2s ease;
}

.divider-handle:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translate(-50%, -50%) scale(1.05);
}

.divider-handle svg {
    width: 24px;
    height: 24px;
    color: #191d24;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-prev {
    left: 1rem;
}

.carousel-arrow-next {
    right: 1rem;
}

.arrow-icon {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .arrow-icon {
        width: 20px;
        height: 20px;
    }
    
    .carousel-arrow-prev {
        left: 0.5rem;
    }
    
    .carousel-arrow-next {
        right: 0.5rem;
    }
    
    /* Label styles handled in main carousel styles above */
    
    .divider-handle {
        width: 36px;
        height: 36px;
    }
    
    .divider-handle svg {
        width: 20px;
        height: 20px;
    }
}

/* Features Section */
.features-section {
    background: #2a2a2a;
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    color: #ffd300;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center !important;
    color: #ccc;
    margin-bottom: 3rem;
    display: block;
    margin-inline: auto;
    max-width: 72ch;
    font-size: 1.125rem;
    text-align-last: center;
}

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

/* Testimonial form alignment tweaks */
.testimonial-form-wrapper .form-helper {
    text-align: center;
    margin-top: 0.75rem;
    color: #9ca3af;
}

.feature-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #ffd300;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #ffd300;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Services Section */
.services-section {
    background: #1a1a1a;
    padding: 4rem 0;
}

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

.service-card {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #ffd300;
}

.service-icon {
    font-size: 3rem;
    color: #ffd300;
    margin-bottom: 1rem;
}

.service-title {
    color: #ffd300;
    margin-bottom: 1rem;
}

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

/* Old Before/After styles removed - replaced with new carousel styles above */

/* Label positioning handled in main carousel styles above */

.case-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.case-info h3 {
    color: #ffd300;
    margin-bottom: 0.5rem;
}

.case-info p {
    color: #ccc;
    font-size: 0.875rem;
}

/* About Section */
.about-section {
    background: #1a1a1a;
    padding: 4rem 0;
}

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

.about-text h2 {
    color: #ffd300;
    margin-bottom: 1.5rem;
}

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

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

.about-placeholder {
    font-size: 8rem;
    color: #ffd300;
}

/* Educational Section */
.educational-section {
    background: #2a2a2a;
    padding: 4rem 0;
}

.educational-carousel { 
  width: 100vw; 
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: 0; /* full-bleed, no side padding */
}

.educational-swiper {
    position: relative;
}

.educational-card {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 15px;
    text-align: start;
    height: 380px; /* consistent card height to match design */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-image-placeholder {
    font-size: 4rem;
    color: #ffd300;
    margin-bottom: 1rem;
}

.educational-card h3 {
    color: #ffd300;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.educational-card p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Educational card media and content layout */
.educational-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
}

.educational-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.educational-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0 0;
    flex: 1;
}

.educational-link {
    margin-top: auto;
    color: #191d24;
    background: #ffd300;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    width: fit-content;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.educational-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 211, 0, 0.35);
}

/* Responsive tweaks for cards */
@media (max-width: 768px) {
    .educational-card { height: 340px; }
    .educational-card p { -webkit-line-clamp: 2; line-clamp: 2; }
}

/* Testimonials Section */
.testimonials-section {
    background: #1a1a1a;
    padding: 4rem 0;
}

.testimonials-carousel {
    /* Full-bleed across viewport like educational carousel */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
}

.testimonials-swiper {
    position: relative;
    overflow: visible; /* allow slide shadows/scale to overflow */
    padding-block: 0.5rem 2.5rem; /* room for arrows/pagination */
}

/* Slide paddings similar to posts swiper for consistent gutters */
.testimonials-swiper .swiper-slide {
    padding: 0.5rem 0.75rem 2rem;
    height: auto;
}

.testimonial-card {
    background: #2a2a2a;
    padding: 1rem 1.1rem;
    border-radius: 15px;
    text-align: start; /* respect dir via logical alignment */
    height: auto;
    min-height: 180px; /* shorter, horizontal feel */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.12);
    /* Match posts card interaction model */
    position: relative;
    transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease, border-color 300ms ease;
    transform-origin: center;
    will-change: transform, box-shadow;
}

/* Glow ring like posts card */
.testimonial-card::before {
  content: "";
  position: absolute; inset: -2px; border-radius: inherit;
  box-shadow: 0 0 0 rgba(255,211,0,0);
  opacity: 0; transition: opacity 300ms ease, box-shadow 300ms ease;
  pointer-events: none;
}

/* Hover behavior identical to .educational-card */
.testimonial-card:hover {
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  z-index: 5;
}
.testimonial-card:hover::before { opacity: 1; box-shadow: 0 0 34px rgba(255,211,0,0.55); }

/* Child color transitions to match posts */
.testimonial-text { transition: color 300ms ease; }
.testimonial-name { transition: color 300ms ease; }
.testimonial-stars .star { transition: color 300ms ease; }
.testimonial-card:hover .testimonial-text { color: #fff; }
.testimonial-card:hover .testimonial-name { color: #ffd300; }
.testimonial-card:hover .testimonial-stars .star { color: #ffd300; }

.testimonial-rating {
    color: #ffd300;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #ccc;
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    flex: 1;
    /* Clamp to 3 lines for compact, short cards */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-author {
    color: #ffd300;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonial-date {
    color: #999;
    font-size: 0.875rem;
}

/* Testimonial star display (carousel cards) */
.testimonial-stars { display: flex; justify-content: center; align-items: center; width: 100%; gap: 0.25rem; }
.testimonial-stars .star { color: rgba(255,211,0,0.35); font-size: 1.1rem; transition: color 200ms ease; }
.testimonial-stars .star.filled { color: #ffd300; }

/* Testimonials swiper arrow offsets */
/* Unified Navigation arrows: posts + testimonials */
.posts-swiper .swiper-button-prev,
.posts-swiper .swiper-button-next,
.testimonials-section .swiper-button-prev,
.testimonials-section .swiper-button-next {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.posts-swiper .swiper-button-prev:hover,
.posts-swiper .swiper-button-next:hover,
.testimonials-section .swiper-button-prev:hover,
.testimonials-section .swiper-button-next:hover {
  background: rgba(0,0,0,0.55);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  transform: scale(1.06);
}
/* Use Swiper's ::after arrow and resize */
.posts-swiper .swiper-button-prev::after,
.posts-swiper .swiper-button-next::after,
.testimonials-section .swiper-button-prev::after,
.testimonials-section .swiper-button-next::after {
  font-size: 18px;
  color: #fff;
}
/* Positions: add a subtle gap from edges */
.posts-swiper .swiper-button-prev { left: 28px; }
.posts-swiper .swiper-button-next { right: 28px; }
.testimonials-swiper .swiper-button-prev { left: 28px; }
.testimonials-swiper .swiper-button-next { right: 28px; }
@media (max-width: 768px) {
  .posts-swiper .swiper-button-prev,
  .posts-swiper .swiper-button-next,
  .testimonials-section .swiper-button-prev,
  .testimonials-section .swiper-button-next { width: 42px; height: 42px; }
  .posts-swiper .swiper-button-prev::after,
  .posts-swiper .swiper-button-next::after,
  .testimonials-section .swiper-button-prev::after,
  .testimonials-section .swiper-button-next::after { font-size: 16px; }
  .posts-swiper .swiper-button-prev { left: 18px; }
  .posts-swiper .swiper-button-next { right: 18px; }
  .testimonials-swiper .swiper-button-prev { left: 18px; }
  .testimonials-swiper .swiper-button-next { right: 18px; }
}

/* Testimonial submission form */
.testimonial-form-wrapper { max-width: 760px; margin: 1.5rem auto 0; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 1rem; backdrop-filter: blur(8px); }
.testimonial-form { display: flex; flex-direction: column; gap: 0.75rem; }
.testimonial-form .form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .testimonial-form .form-row { grid-template-columns: 1fr 1fr; } }
.testimonial-form .form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.testimonial-form label { color: #eee; font-weight: 700; font-size: 0.95rem; }
.testimonial-form input[type="text"],
.testimonial-form input[type="email"],
.testimonial-form textarea {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.testimonial-form textarea { background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.14); }
.testimonial-form input:focus,
.testimonial-form textarea:focus { border-color: rgba(255,211,0,0.6); box-shadow: 0 0 0 3px rgba(255,211,0,0.18); }

/* Rating input stars */
.rating-input { display: inline-flex; gap: 0.5rem; align-items: center; justify-content: center; user-select: none; margin-inline: auto; }
.rating-input .rating-star {
  background: transparent; border: none; cursor: pointer;
  /* outlined star default */
  color: transparent; /* fill invisible */
  -webkit-text-stroke: 1.2px #ffd300; /* outline */
  text-stroke: 1.2px #ffd300; /* non-webkit fallback (ignored by most) */
  font-size: 1.8rem; line-height: 1; padding: 0;
  transition: transform 140ms ease, color 160ms ease, -webkit-text-stroke-color 160ms ease;
  border-radius: 6px;
}
/* fill on hover/active */
.rating-input .rating-star.hover,
.rating-input .rating-star.active,
.rating-input .rating-star:hover {
  color: #ffd300; /* filled */
  -webkit-text-stroke-color: transparent;
  transform: translateY(-1px) scale(1.06);
}
.rating-input .rating-star:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,211,0,0.18); }

.testimonial-form .submit-btn {
  align-self: flex-start; background: linear-gradient(135deg, #ffd300 0%, #ffed4e 100%);
  color: #191d24; font-weight: 900; border: none; border-radius: 8px; padding: 0.6rem 1rem; cursor: pointer; font-size: 0.95rem;
  transition: transform 160ms ease, box-shadow 160ms ease; box-shadow: 0 6px 18px rgba(255,211,0,0.26);
}
.testimonial-form .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,211,0,0.35); }
.testimonial-form .submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.testimonial-form .form-helper { color: #9aa1a9; font-size: 0.85rem; margin: 0.15rem 0 0; }

/* Icon Styles */
/* Contact icon keeps boxed look */
.contact-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 12px;
    background: rgba(255, 211, 0, 0.08);
    color: #ffd300;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 2px rgba(255, 211, 0, 0.15);
}

.contact-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

/* About feature cards (match reference) */
.about-features { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .about-features { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.about-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.8rem;
    row-gap: 0.45rem;
    align-items: start; /* start-align first row cells for exact top alignment */
    background: rgba(57, 62, 70, 0.5);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #2b2f36;
    box-shadow: 0 2px 0 rgba(0,0,0,0.1), 0 0 25px -12px rgba(255,211,0,0.15);
    min-height: 120px;
}
/* RTL: icon on the right, title to its left */
[dir="rtl"] .about-feature { grid-template-columns: 1fr auto; text-align: end; }
.about-feature .feature-icon { grid-column: 1; grid-row: 1; align-self: start; }
.about-feature h4 { grid-column: 2; grid-row: 1; margin: 0; align-self: start; }
.about-feature p { grid-column: 1 / -1; grid-row: 2; margin: 0; align-self: start; }
[dir="rtl"] .about-feature .feature-icon { grid-column: 2; }
[dir="rtl"] .about-feature h4 { grid-column: 1; }
.about-feature:hover { transform: translateY(-1px); transition: transform 200ms ease; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; height: 28px; }
.feature-icon svg { width: 28px; height: 28px; stroke: #ffd300; color: #ffd300; }
/* About feature texts */
.about-feature h4 { color: #fff; font-weight: 900; font-size: 1.3rem; line-height: 1.1; margin-top: 2px; }
.about-feature p { color: #a0a6ad; line-height: 1.9; font-weight: 400; }

/* Services two-column layout */
.services-columns { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .services-columns { gap: 2.5rem; } }
@media (min-width: 1024px) { .services-columns { flex-direction: row; gap: 3rem; } }
.services-col { width: 100%; }
@media (min-width: 1024px) { .services-col { width: 35%; } }
.services-center { display: none; }
@media (min-width: 1024px) { .services-center { display: flex; width: 30%; height: 16rem; align-items: center; justify-content: center; } }

.service-item { display: flex; align-items: flex-start; gap: 1.25rem; }
[dir="rtl"] .service-icon { margin-left: 0; }
[dir="ltr"] .service-icon { margin-right: 0; }
.service-icon { flex-shrink: 0; }
.service-text { flex: 1 1 auto; }
[dir="rtl"] .service-item { text-align: end; }
[dir="ltr"] .service-item { text-align: start; }
.service-list { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .service-item { gap: 1.5rem; } }
.service-icon svg { width: 64px; height: 64px; stroke: #ffd300; transition: transform 300ms ease, filter 300ms ease; }
.service-text h3 { font-weight: 700; margin: 2px 0 0.5rem; line-height: 1.1; font-size: 1.25rem; color: #fff; }
/* Underline bar: starts short then expands on hover like reference */
.service-sep { width: 4rem; height: 2px; background: #ffd300; margin-bottom: 0.75rem; transition: width 300ms ease; }
.service-text p { color: #b0b5bd; font-size: 0.875rem; line-height: 1.6; }

/* Service item hover interactions to match frontend */
.service-item { position: relative; transition: transform 200ms ease; }
.service-item:hover { transform: translateY(-2px); }
.service-item:hover .service-sep { width: 100%; }
.service-item:hover .service-icon svg { transform: translateY(-2px) scale(1.03); filter: drop-shadow(0 6px 16px rgba(255,211,0,0.25)); }

/* Alignments when the column is reversed on large screens (imitate tailwind utilities already present in markup) */
@media (min-width: 1024px) {
  .service-item.lg\:flex-row-reverse { flex-direction: row-reverse; }
  .service-item.lg\:text-end { text-align: end; }
  .service-item.lg\:text-start { text-align: start; }
}

/* Per-item nuanced hover motions to mirror React reference */
/* Left column items (Hair, Stem, NonInvasive): typically first list */
.services-col:first-child .service-list .service-item:nth-child(1):hover .service-icon svg {
  transform: translateY(-3px) scale(1.04);
}
.services-col:first-child .service-list .service-item:nth-child(2):hover .service-icon svg {
  transform: rotate(6deg) scale(1.03);
}
.services-col:first-child .service-list .service-item:nth-child(3):hover .service-icon svg {
  transform: translateY(-1px) scaleX(1.06);
}

/* Right column items (Consultation, EyebrowBeard, Fillers): second list */
.services-col:last-child .service-list .service-item:nth-child(1):hover .service-icon svg {
  transform: rotate(4deg) scale(1.06);
}
.services-col:last-child .service-list .service-item:nth-child(2):hover .service-icon svg {
  transform: translateY(-2px) scale(1.05);
}
.services-col:last-child .service-list .service-item:nth-child(3):hover .service-icon svg {
  transform: translateY(2px) scale(1.03);
}

/* Emphasis inside titles (from translations that include <strong> or <b>) */
.service-text h3 strong, .service-text h3 b { color: #ffd300; font-weight: 900; }

.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }

/* Minimal utility equivalents for reference classnames */
@media (min-width: 1024px) {
  .lg\:flex-row-reverse { flex-direction: row-reverse; }
  .lg\:text-end { text-align: end; }
  .lg\:text-start { text-align: start; }
  .lg\:ms-auto { margin-inline-start: auto; }
}

/* Educational Content (Recent Posts) */
.educational-section { padding: 4rem 0; background: #191d24; }
.posts-swiper { overflow: visible; }
.posts-swiper .swiper-slide { padding: 0.75rem 0.75rem 2rem; height: auto; will-change: transform; }
.posts-swiper .swiper-slide[data-slide-position='edge-right'] {
  -webkit-mask-image: linear-gradient(to right, white 70%, rgba(255,255,255,0.5) 100%);
          mask-image: linear-gradient(to right, white 70%, rgba(255,255,255,0.5) 100%);
}
.posts-swiper .swiper-slide[data-slide-position='edge-left'] {
  -webkit-mask-image: linear-gradient(to left, white 70%, rgba(255,255,255,0.5) 100%);
          mask-image: linear-gradient(to left, white 70%, rgba(255,255,255,0.5) 100%);
}

.educational-card { 
  display: flex; flex-direction: column; 
  background: rgba(255,255,255,0.05); 
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1); 
  border-radius: 0.75rem; 
  overflow: hidden; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease, border-color 300ms ease;
  will-change: transform, box-shadow;
  position: relative;
}
.educational-card::before {
  content: "";
  position: absolute; inset: -2px; border-radius: inherit;
  box-shadow: 0 0 0 rgba(255,211,0,0); opacity: 0; transition: opacity 300ms ease, box-shadow 300ms ease;
  pointer-events: none;
}
.educational-card:hover { 
  transform: translateY(-10px) scale(1.06); 
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  z-index: 5;
}
.educational-card:hover::before { opacity: 1; box-shadow: 0 0 34px rgba(255,211,0,0.55); }
.educational-image { position: relative; width: 100%; }
.educational-image::before { content: ""; display: block; padding-top: 56.25%; }
.educational-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.educational-card:hover .educational-image img { transform: scale(1.08); }

.educational-content { padding: 0.75rem 1rem; text-align: start; display: flex; flex-direction: column; }
.educational-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.2rem; 
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.educational-excerpt { font-size: 0.9rem; color: #b0b5bd; line-height: 1.55; margin-top: 0.2rem; 
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.educational-card:hover .educational-title { color: #ffd300; }
.educational-card:hover .educational-excerpt { color: #fff; }

/* Ensure whole-card hover effect wins over older base rules */
.educational-section .educational-card { display: flex; flex-direction: column; transform-origin: center; padding: 0; }
.educational-section .educational-card:hover { transform: translateY(-8px) scale(1.03); }

/* Posts carousel arrow offsets from screen edges (unified) */
.posts-swiper .swiper-button-prev { left: 28px; }
.posts-swiper .swiper-button-next { right: 28px; }

/* Read more link */
.educational-link {
  margin-top: 1rem;
  color: #ffd300;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: color 200ms ease, transform 200ms ease;
}
.educational-link:hover { color: #ffffff; transform: translateX(4px); }

/* Comments Section */
.comments-section {
    background: #1a1a1a;
    padding: 4rem 0;
}

.comments-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.comments-swiper { position: relative; }

.comment-card {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 15px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.comment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #ffd300;
}

.comment-text {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    color: #aaa;
    font-size: 0.9rem;
}

.comment-author { color: #ffd300; font-weight: 700; }
.comment-post { color: #fff; text-decoration: none !important; border-bottom: none !important; background-image: none !important; }
.comment-post:hover { color: #ffd300; }

@media (max-width: 768px) {
    .comment-card { height: 200px; }
    .comment-text { -webkit-line-clamp: 3; line-clamp: 3; }
}

/* FAQ Section */
.faq-section {
    background: #2a2a2a;
    padding: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #1a1a1a;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #ffd300;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #2a2a2a;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
}

.faq-arrow {
    color: #ffd300;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    background: #1a1a1a;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: #1a1a1a;
    padding: 4rem 0;
}

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

.contact-info h3 {
    color: #ffd300;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-details p {
    color: #fff;
    margin-bottom: 0.5rem;
}

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

.contact-form {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #ffd300;
}

.contact-form h3 {
    color: #ffd300;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    font-family: 'iranyekan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    display: block;
    color: #ffd300;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    font-family: 'iranyekan', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #333;
    border-radius: 5px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd300;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #ffd300;
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #e6c200;
    transform: translateY(-2px);
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: #ffd300;
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top-btn:hover {
    background: #e6c200;
    transform: scale(1.1);
}

/* Swiper Styles */
.swiper-button-next,
.swiper-button-prev {
    color: #ffd300 !important;
}

.swiper-pagination-bullet {
    background: #666 !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #ffd300 !important;
    opacity: 1;
}

/* Fallback for no cases */
.carousel-fallback {
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 2px dashed #ffd300;
}

.carousel-fallback h3 {
    color: #ffd300;
    margin-bottom: 1rem;
}

.carousel-fallback p {
    color: #ccc;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .before-after-container {
        margin: 0 0.5rem;
    }
    
    .scroll-to-top-btn {
        bottom: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Additional styles for Before/After Slider */
.before-after-container {
    position: relative;
    width: 100%;
    height: 600px;
    cursor: ew-resize;
    border-radius: 1rem;
    overflow: hidden;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-image {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 11;
}

.divider-handle svg {
    width: 20px;
    height: 20px;
    color: #333;
}

/* About Features Grid */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-feature {
    text-align: center;
    padding: 1rem;
    background: rgba(57, 62, 70, 0.3);
    border-radius: 0.5rem;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.about-feature .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-feature h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.about-feature p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Enhanced Button Styles */
.cta-button {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-button::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;
}

.cta-button:hover::before {
    width: 200%;
    height: 200%;
}

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

/* Enhanced Form Styles */
.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: all 0.3s;
    font-size: 1rem;
}

.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);
    background: rgba(57, 62, 70, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

/* Ensure testimonial form inputs and textarea share the same look, overriding generic rules above */
.testimonial-form .form-group input,
.testimonial-form .form-group textarea {
    background: rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #fff;
    border-radius: 8px;
}

/* Enhanced Card Hover Effects (exclude testimonials which have custom behavior) */
.feature-card,
.service-card,
.educational-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover,
.service-card:hover,
.educational-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Enhanced Navigation styles removed - replaced with new header styles above */

/* Enhanced styles removed - replaced with new header styles above */

/* Enhanced FAQ */
.faq-item {
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
    margin-bottom: 0;
    transition: all 0.3s;
}

.faq-item:hover {
    background: rgba(57, 62, 70, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align multi-line text with arrow nicely */
    text-align: start;
    padding: 1.25rem 0.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* Ensure long question text wraps nicely and arrow stays at edge */
.faq-question > span {
    flex: 1 1 auto;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    display: block;
}
.faq-question { column-gap: .75rem; }

.faq-question:hover {
    color: var(--accent);
    padding-left: 1rem;
}

.faq-arrow {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    align-self: flex-start; /* Align arrow with first line of question */
    margin-top: 0.125rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    background: rgba(57, 62, 70, 0.1);
    border-radius: 0 0 0.5rem 0.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Prevent clipping on longer answers */
    opacity: 1;
}

.faq-answer p {
    color: #9ca3af;
    line-height: 1.6;
    padding: 1rem 1.5rem;
    margin: 0;
}

/* Direction-aware FAQ alignment (inherits from html[dir]) */
[dir="rtl"] .faq-question { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .faq-question > span { text-align: right; }
[dir="rtl"] .faq-answer, [dir="rtl"] .faq-answer p { direction: rtl; text-align: right; }

[dir="ltr"] .faq-question { flex-direction: row; text-align: left; }
[dir="ltr"] .faq-question > span { text-align: left; }
[dir="ltr"] .faq-answer, [dir="ltr"] .faq-answer p { direction: ltr; text-align: left; }

/* Tweak hover padding for both directions to avoid layout jumps with two-line questions */
[dir="ltr"] .faq-question:hover { padding-left: 1rem; padding-right: 0.5rem; }
[dir="rtl"] .faq-question:hover { padding-right: 1rem; padding-left: 0.5rem; }

/* Mobile-specific spacing to avoid bad two-line wraps on smaller screens */
@media (max-width: 480px) {
  .faq-question { padding: 1rem 0.25rem; column-gap: .5rem; }
  .faq-question > span { line-height: 1.6; }
}

/* ===== Mobile Globe + Language Panel (visuals only; layout handled in style.css) ===== */
.mobile-controls { position: relative; align-items: center; gap: .75rem; }
.mobile-lang-toggle { background: none; border: 0; color: #fff; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; position: relative; z-index: 5; }
.mobile-lang-toggle .icon { width: 24px; height: 24px; transition: transform .3s ease, opacity .3s ease; }

@keyframes globeSpinMoveRTL {
  0% { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(72px) rotate(1080deg); opacity: 0; }
}
@keyframes globeSpinMoveLTR {
  0% { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(-72px) rotate(1080deg); opacity: 0; }
}

.mobile-lang-panel { background: rgba(25,29,36,0.98); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: .5rem; box-shadow: 0 12px 30px rgba(0,0,0,.4); opacity: 0; transform: translateY(-6px) scale(.96); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }

.mobile-lang-panel .language-switcher { background: transparent; border: none; backdrop-filter: blur(8px); }
.mobile-lang-panel .language-slider { box-shadow: 0 0 12px rgba(255,211,0,.35); }
.mobile-lang-panel .lang-btn { color: #fff; }
.mobile-lang-panel .lang-btn.active { color: #191d24; }

.mobile-lang-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Trigger globe spin + move away from hamburger, based on direction */
[dir="rtl"] .mobile-controls.is-lang-anim .mobile-lang-toggle .icon { animation: globeSpinMoveRTL .75s ease-in-out both; }
[dir="ltr"] .mobile-controls.is-lang-anim .mobile-lang-toggle .icon { animation: globeSpinMoveLTR .75s ease-in-out both; }

/* Cross-fade: during anim, hint the panel appearing */
.mobile-controls.is-lang-anim .mobile-lang-panel { opacity: .01; transform: translateY(-4px) scale(.98); }
.mobile-controls.is-lang-open .mobile-lang-panel { opacity: 1; transform: translateY(0) scale(1); }

/* Tablet/mobile ensure proper stacking */
@media (max-width: 1024px) {
  .mobile-lang-panel { top: 44px; }
}
/* Enhanced 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;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.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 8px 20px rgba(0, 0, 0, 0.4);
    background: #ffed4e;
}

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

/* RTL Support */
[dir="rtl"] .scroll-to-top-btn {
    right: auto;
    left: 1.5rem;
}

[dir="rtl"] .faq-question:hover {
    padding-left: 0.5rem;
    padding-right: 1rem;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    
    .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;
    }
    
    .before-after-container {
        height: 400px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Language switcher responsive styles removed - handled in main header styles above */
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Enhanced Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Focus States */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Enhanced Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}

/* Enhanced Print Styles */
@media print {
    .header,
    .footer,
    .scroll-to-top-btn,
    .aurora-background {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}

/* Before/After carousel styles handled in main carousel section above */

/* Swiper arrows — unified pill style for posts and testimonials */
.posts-swiper .swiper-button-next,
.posts-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
  color: #fff;
  background-color: rgba(25,29,36,0.4);
  width: 48px; height: 48px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.posts-swiper .swiper-button-next:hover,
.posts-swiper .swiper-button-prev:hover,
.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
  background-color: rgba(25,29,36,0.7);
  transform: scale(1.06);
}
/* Normalize icon size */
.posts-swiper .swiper-button-next::after,
.posts-swiper .swiper-button-prev::after,
.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after { font-size: 18px; }

/* Ensure one row layout */
.testimonials-carousel .swiper-wrapper, .educational-carousel .swiper-wrapper { align-items: stretch; }
.testimonials-carousel .swiper-slide, .educational-carousel .swiper-slide { height: auto; display:flex; }

/* Refine icons to match style */
.feature-icon, .service-icon { color: var(--accent); width: 2rem; height: 2rem; }

/* Header typography adjustments */
.nav-menu a, .lang-btn, .consultation-btn { font-family: 'iranyekan', sans-serif; font-weight: 500; }
.logo-kash, .logo-beauty { font-family: 'iranyekan', sans-serif; font-weight: 700; }

/* Footer bottom text */
.footer-bottom { margin-top: 1.25rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.12); text-align: center; }
.footer-bottom-text { font-family: 'iranyekan', sans-serif; color: #9aa0a9; font-size: 0.9rem; line-height: 1.8; }

/* Header layout per direction: exact placement for logo, language switcher, consultation */
/* LTR (English): [Logo][Language] | [Nav centered] | [Social+Consultation] */
html[dir="ltr"] .header-content { flex-direction: row; }
html[dir="ltr"] .header-right { order: 1; display:flex; align-items:center; gap: 1rem; flex-direction: row; }
html[dir="ltr"] .main-navigation { order: 2; }
html[dir="ltr"] .header-left { order: 3; display:flex; align-items:center; gap:1.5rem; }
/* Ensure logo sits at the outer-most left and language switcher next to it */
html[dir="ltr"] .header-right .logo { order: 1; }
html[dir="ltr"] .header-right .language-switcher { order: 2; }

/* RTL (Persian/Arabic): [Social+Consultation] | [Nav centered] | [Language][Logo] */
html[dir="rtl"] .header-content { flex-direction: row; }
html[dir="rtl"] .header-left { order: 1; display:flex; align-items:center; gap:1.5rem; }
html[dir="rtl"] .main-navigation { order: 2; }
html[dir="rtl"] .header-right { order: 3; display:flex; align-items:center; gap: 1rem; flex-direction: row-reverse; }
/* Ensure logo sits at the outer-most right and language switcher next to it */
html[dir="rtl"] .header-right .logo { order: 1; }
html[dir="rtl"] .header-right .language-switcher { order: 2; }

/* ===== Global Text Justification for multi-line content ===== */
/* Apply to paragraphs and body-like text blocks across sections. Excludes headings, buttons, nav, labels. */
:where(
  p,
  .post-content p,
  .entry-content p,
  .service-text p,
  .about-text p,
  .about-feature p,
  .about-subtitle,
  blockquote,
  .testimonial-text,
  .educational-excerpt,
  .comment-text,
  .faq-answer p,
  .contact-info p,
  .contact-details p,
  .footer-bottom-text,
  .widget-area p,
  .widget-area li,
  .entry-content li,
  .post-content li
) {
  text-align: justify !important; /* Enforce over utility classes */
  text-justify: inter-word; /* Best available in modern browsers (LTR/RTL) */
  text-align-last: start; /* Avoid stretched last line in both LTR/RTL */
}

/* Improve English hyphenation to avoid rivers when justified */
html[dir="ltr"] :where(
  p,
  .post-content p,
  .entry-content p,
  .service-text p,
  .about-text p,
  .about-feature p,
  blockquote,
  .testimonial-text,
  .educational-excerpt,
  .comment-text,
  .faq-answer p,
  .contact-info p,
  .contact-details p,
  .footer-bottom-text,
  .widget-area p,
  .widget-area li,
  .entry-content li,
  .post-content li
) {
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Fine-tune line height for better readability when justified */
:where(p, .section-subtitle, .testimonial-text, .educational-excerpt, .comment-text) {
  line-height: 1.9;
}

/* Comment form spacing tweaks */
.kasht-comments { padding-top: 1rem; }
.kasht-comments .kf-title { margin-top: 0.5rem; margin-bottom: 1.25rem; text-align: center; }
