/* 
 * Zelinsky Financial Group Website
 * Professional Design System Implementation
 * 
 * Typography: Miller Display (Crimson Text) + Proxima Nova (Inter)
 * Primary Gold: #C9A16D
 * Deep Charcoal: #322222
 * Text Gray: #555565
 * Warm Cream: #F8F1EB
 * Muted Sage: #7A8A75 (icons only)
 */

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

:root {
    /* Design System Colors */
    --primary-gold: #C9A16D;
    --primary-gold-dark: #B8941F;
    --primary-gold-light: #E5D4B7;
    --deep-charcoal: #322222;
    --text-gray: #555565;
    --text-light: #8B8B9A;
    --warm-cream: #F8F1EB;
    --muted-sage: #7A8A75;
    --white: #FFFFFF;
    --light-gray: #F9F9F9;
    --border-light: #E8E8E8;
    --shadow-light: rgba(50, 34, 34, 0.06);
    --shadow-medium: rgba(50, 34, 34, 0.12);
    --shadow-heavy: rgba(50, 34, 34, 0.24);
    
     /* Typography */
    --font-display: 'Miller Display', 'Playfair Display', Georgia, serif;
    --font-body: 'Proxima Nova', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --section-padding-mobile: 80px 0;
    --container-max-width: 1200px;
    --container-padding: 0 24px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Animations */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ===== ACCESSIBILITY ===== */
/* Skip to main content link - hidden by default, shows on keyboard focus */
.skip-link {
    position: absolute !important;
    top: -100px !important;
    left: 16px !important;
    background: var(--primary-gold) !important;
    color: var(--white) !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    z-index: 100000 !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(201, 161, 109, 0.4) !important;
    border: 2px solid transparent !important;
}

.skip-link:focus {
    top: 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
}

.skip-link:hover:focus {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(201, 161, 109, 0.6) !important;
}

/* Mobile responsive skip link */
@media (max-width: 768px) {
    .skip-link {
        left: 12px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
    
    .skip-link:focus {
        top: 12px !important;
    }
}

/* Typography and Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    background-color: var(--white);
    direction: rtl;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Enhanced Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--deep-charcoal);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 0.3em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.4em;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h4 {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    font-weight: 600;
    margin-bottom: 0.5em;
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
}

/* Enhanced Body Text */
p {
    font-family: var(--font-body);
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.25em;
    font-size: 1.0625rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-gray);
    font-weight: 400;
}

/* Container with better spacing */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
}

/* Professional Section Styling */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    direction: rtl;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1875rem;
    color: var(--text-gray);
    margin-bottom: 4rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    direction: rtl;
}

.nav-links,
.cta-button {
    color: var(--white) !important;
}

.nav-links a.cta-button:hover,
.cta-button:hover {
    color: var(--primary-gold) !important;
    background: var(--white) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(201, 161, 109, 0.4);
    position: relative;
    z-index: 10;
}

/* Enhanced Button System - RTL Optimized */
.cta-primary,
.cta-button,
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gold);
    color: var(--white);
    padding: 18px 36px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(201, 161, 109, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    direction: rtl;
    text-align: center;
    isolation: isolate;
}

.cta-primary .material-icons-outlined,
.cta-button .material-icons-outlined,
.btn .material-icons-outlined {
    color: var(--white);
    font-size: 20px;
    order: -1; /* Move icon to the right in RTL */
    transition: var(--transition-smooth);
}

/* Specific override for CTA button icon in navbar to ensure it's white by default */
.nav-links a.cta-button .material-icons-outlined {
    color: var(--white) !important;
}

/* Icon color on hover - General buttons */
.cta-primary:hover .material-icons-outlined,
.btn:hover .material-icons-outlined {
    color: var(--deep-charcoal);
}

/* Icon color on hover - Header CTA button (more specific) */
.nav-links a.cta-button:hover .material-icons-outlined,
.header .cta-button:hover .material-icons-outlined {
    color: var(--primary-gold) !important;
}

.cta-primary::before,
.cta-button::before,
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%; /* Changed from left to right for RTL */
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: right 0.5s;
}

.cta-primary:hover::before,
.cta-button:hover::before,
.btn:hover::before {
    right: 100%;
}

.cta-primary:hover,
.cta-button:hover,
.btn:hover {
    background: var(--warm-cream);
    color: var(--deep-charcoal);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(50, 34, 34, 0.25);
    border: 2px solid var(--primary-gold);
    position: relative;
    z-index: 10;
}

.cta-primary:active,
.cta-button:active,
.btn:active {
    transform: translateY(-1px);
}

/* Secondary Button Style */
.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 161, 109, 0.3);
}

/* Professional Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 232, 232, 0.8);
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 24px rgba(50, 34, 34, 0.08);
}

.nav {
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.header.scrolled .nav {
    padding: 16px 0;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-image {
    height: 48px;
    width: auto;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-image {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    isolation: isolate;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--deep-charcoal);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    direction: rtl;
}

.nav-links a .material-icons-outlined {
    color: var(--muted-sage);
    font-size: 20px;
    transition: var(--transition-smooth);
    order: -1; /* Move icon to the right in RTL */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: var(--primary-gold);
    background: rgba(201, 161, 109, 0.08);
}

.nav-links a:hover .material-icons-outlined {
    color: var(--primary-gold);
    transform: scale(1.1);
}

/* ===== RESPONSIVE HEADER ===== */
/* Hide desktop header on mobile and tablet */
@media (max-width: 1024px) {
    .header {
        display: none;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, #2a1f1f 100%);
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 88px;
        height: 100vh;
        min-height: 700px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    object-position: center 10%;
    transition: var(--transition-slow);
    filter: brightness(0.8) contrast(1.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(50, 34, 34, 0.8) 0%, 
        rgba(201, 161, 109, 0.2) 30%,
        rgba(50, 34, 34, 0.7) 70%,
        rgba(50, 34, 34, 0.9) 100%
    );
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(50, 34, 34, 0.9) 0%,
        rgba(50, 34, 34, 0.4) 50%,
        transparent 100%
    );
    z-index: 3;
}

/* Add floating particles effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(50, 34, 34, 0.8) 0%, 
        rgba(201, 161, 109, 0.2) 30%,
        rgba(50, 34, 34, 0.7) 70%,
        rgba(50, 34, 34, 0.9) 100%
    );
    z-index: 2;
    animation: heroShimmer 8s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%, 100% {
        background: linear-gradient(
            135deg, 
            rgba(50, 34, 34, 0.8) 0%, 
            rgba(201, 161, 109, 0.2) 30%,
            rgba(50, 34, 34, 0.7) 70%,
            rgba(50, 34, 34, 0.9) 100%
        );
    }
    50% {
        background: linear-gradient(
            135deg, 
            rgba(50, 34, 34, 0.85) 0%, 
            rgba(201, 161, 109, 0.25) 35%,
            rgba(50, 34, 34, 0.65) 65%,
            rgba(50, 34, 34, 0.9) 100%
        );
    }
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 24px;
    animation: heroFadeIn 1.2s ease-out;
    direction: rtl;
}

.company-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    text-align: center;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: heroFadeIn 1.2s ease-out 0.3s both;
}

.hero-title {
    color: var(--white);
    margin-bottom: 32px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.hero-cta {
    margin-top: 48px;
    margin-bottom: 20px; /* Add bottom margin to accommodate hover effect */
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    isolation: isolate;
    /* Contain the transform effects */
    transform-style: preserve-3d;
}

.hero-cta .cta-primary {
    font-size: 1.125rem;
    padding: 20px 40px;
    box-shadow: 0 12px 40px rgba(201, 161, 109, 0.4);
    animation: ctaPulse 2s ease-in-out infinite;
    /* Isolate the button to prevent layout shifts */
    position: relative;
    isolation: isolate;
    transform-origin: center center;
}

/* Hero CTA specific hover behavior - match header CTA style */
.hero-cta .cta-primary:hover {
    background: var(--primary-gold) !important;
    color: var(--white) !important;
    /* Use relative positioning to prevent affecting other elements */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 45px rgba(201, 161, 109, 0.5);
    border: 2px solid var(--warm-cream);
    /* Ensure z-index keeps it above without affecting layout */
    z-index: 10;
    position: relative;
}

.hero-cta .cta-primary:hover .material-icons-outlined {
    color: var(--white) !important;
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow: 0 12px 40px rgba(201, 161, 109, 0.4);
    }
    50% {
        box-shadow: 0 16px 50px rgba(201, 161, 109, 0.6);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    transition: var(--transition-smooth);
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.floating-cta button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(201, 161, 109, 0.5);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    direction: rtl;
}

.floating-cta button .material-icons-outlined {
    color: var(--white);
    font-size: 20px;
}

/* ===== SCROLL DOWN INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0;
    animation: scrollIndicatorFadeIn 2s ease-out 1s forwards;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    text-align: center;
    direction: rtl;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
    color: var(--primary-gold);
    transform: translateY(-2px);
}

.scroll-arrow {
    position: relative;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(201, 161, 109, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(201, 161, 109, 0.1) 100%);
    backdrop-filter: blur(10px);
    animation: scrollPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
    border-color: var(--primary-gold);
    background: linear-gradient(145deg, 
        rgba(201, 161, 109, 0.2) 0%, 
        rgba(201, 161, 109, 0.3) 100%);
    box-shadow: 0 8px 32px rgba(201, 161, 109, 0.3);
}

.scroll-arrow .material-icons-outlined {
    color: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow .material-icons-outlined {
    color: var(--primary-gold);
    transform: translateY(2px);
}

/* Scroll indicator animations */
@keyframes scrollIndicatorFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        border-color: rgba(201, 161, 109, 0.6);
        box-shadow: 0 0 0 0 rgba(201, 161, 109, 0.3);
    }
    50% {
        border-color: rgba(201, 161, 109, 0.8);
        box-shadow: 0 0 0 8px rgba(201, 161, 109, 0.1);
    }
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Hide scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--section-padding);
    background: linear-gradient(180deg, 
        var(--white) 0%, 
        rgba(248, 241, 235, 0.3) 50%, 
        var(--white) 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(201, 161, 109, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(248, 241, 235, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Desktop layout for 6 service cards - 3 per row */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 60px auto 0;
    }
}

/* Medium screens - 2 per row */
@media (min-width: 768px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Medium screens - 2 per row */
@media (min-width: 768px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(50, 34, 34, 0.08);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out-quart);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(50, 34, 34, 0.15);
    border-color: var(--primary-gold-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(201, 161, 109, 0.3);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 36px rgba(201, 161, 109, 0.4);
}

.service-icon .material-icons-outlined {
    color: var(--white);
    font-size: 36px;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 16px;
    text-align: center;
}

.service-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    text-align: center;
    flex-grow: 1;
    margin-bottom: 16px;
}

.service-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gold);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin-top: auto;
    box-shadow: 0 4px 16px rgba(201, 161, 109, 0.3);
}

.service-cta-btn:hover {
    background: var(--white);
    color: var(--deep-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 161, 109, 0.4);
    border: 1px solid var(--primary-gold);
}

.service-cta-btn .material-icons-outlined {
    font-size: 18px;
}

/* ===== TEAM SECTION ===== */
.team {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    margin-top: 60px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(50, 34, 34, 0.08);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    position: relative;
    direction: rtl;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(50, 34, 34, 0.15);
}

/* Enhanced team image styling for better photo display */
.team-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, var(--warm-cream) 0%, var(--white) 100%);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transition: var(--transition-smooth);
}

.team-card:hover .team-image img {
    transform: scale(1.02);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 60%,
        rgba(50, 34, 34, 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 32px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-cta {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
}

.team-cta:hover {
    background: var(--primary-gold-dark);
    transform: translateY(-2px);
}

.team-cta .material-icons-outlined {
    font-size: 18px;
    order: -1;
}

.team-info {
    padding: 32px;
    text-align: center;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 8px;
}

.team-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 16px;
}

.team-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    position: relative;
    overflow: hidden;
}

.team-description.truncated {
    max-height: 60px;
}

.team-description.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--white));
}

.team-read-more {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    margin-top: 8px;
    padding: 4px 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 4px;
    direction: rtl;
}

.team-read-more:hover {
    color: var(--primary-gold-dark);
}

.team-read-more .material-icons-outlined {
    font-size: 16px;
    order: -1;
    transition: var(--transition-smooth);
}

.team-read-more.expanded .material-icons-outlined {
    transform: rotate(180deg);
}

/* ===== DONUT CHART SECTION ===== */
.life-journey {
    padding: var(--section-padding);
    background: linear-gradient(135deg, 
        var(--warm-cream) 0%, 
        rgba(248, 241, 235, 0.6) 50%, 
        var(--white) 100%);
    position: relative;
}

.journey-header {
    text-align: center;
    margin-bottom: 60px;
}

.journey-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.age-selection {
    margin-bottom: 60px;
    text-align: center;
}

.age-selection h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    margin-bottom: 24px;
}

.age-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.age-btn {
    background: var(--white);
    color: var(--text-gray);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 80px;
}

.age-btn:hover,
.age-btn.active {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 161, 109, 0.3);
}

.journey-visualization {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

.life-events {
    position: relative;
    margin-bottom: 40px;
}

.event-label {
    position: absolute;
    background: var(--white);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    box-shadow: 0 4px 16px rgba(201, 161, 109, 0.2);
    white-space: nowrap;
    z-index: 2;
    transition: var(--transition-smooth);
}

.event-icon {
    position: absolute;
    background: var(--white);
    border: 2px solid var(--muted-sage);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(122, 138, 117, 0.2);
    z-index: 2;
    /* transition: var(--transition-smooth); */
    cursor: pointer;
}

.event-icon:hover {
    transform: none !important;
    box-shadow: 0 4px 16px rgba(122, 138, 117, 0.2) !important;
    border-color: var(--primary-gold) !important;
}

.event-icon:hover .material-icons-outlined {
    color: var(--primary-gold);
    transform: none !important;
}

.event-icon .material-icons-outlined {
    color: var(--muted-sage);
    font-size: 28px;
    /* transition: var(--transition-smooth); */
}

.event-left {
    left: 15%;
    top: 30px;
}

.event-center {
    left: 46%;
    /* transform: translateX(-50%); */
    top: 0px;
}

.event-right {
    right: 15%;
    top: 30px;
}

.donut-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.donut-chart {
    position: relative;
    width: 300px;
    height: 300px;
    min-width: 300px;
    min-height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-gold) 0deg 120deg,
        var(--primary-gold-light) 120deg 200deg,
        var(--warm-cream) 200deg 280deg,
        var(--border-light) 280deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(201, 161, 109, 0.3);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.donut-chart:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 50px rgba(201, 161, 109, 0.4);
}

.donut-hole {
    position: absolute;
    width: 180px;
    height: 180px;
    min-width: 180px;
    min-height: 180px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: inset 0 4px 16px rgba(50, 34, 34, 0.1);
    flex-shrink: 0;
}

.donut-data {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.age-display {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
    line-height: 1;
}

.stage-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    line-height: 1.2;
}

.navigation-arrows {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.nav-arrow {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    background: var(--white);
    color: var(--primary-gold);
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-arrow:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 161, 109, 0.3);
}

.legend {
    margin-top: 60px;
}

.legend-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.life-events-color {
    background: var(--primary-gold);
}

.personal-events-color {
    background: var(--primary-gold-light);
}

.unwanted-events-color {
    background: var(--warm-cream);
}

/* .unknown-events-color {
    background: var(--border-light);
} */

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--section-padding);
    background: linear-gradient(135deg, 
        var(--white) 0%, 
        rgba(248, 241, 235, 0.3) 50%, 
        var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(201, 161, 109, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(50, 34, 34, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px; /* Reduced from 1200px for more elegant proportions */
    margin: 60px auto 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 241, 235, 0.8) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 161, 109, 0.1);
    padding: 48px;
    box-shadow: 
        0 25px 50px rgba(50, 34, 34, 0.08),
        0 8px 16px rgba(50, 34, 34, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.testimonials-carousel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(201, 161, 109, 0.02) 45deg,
        transparent 90deg,
        rgba(201, 161, 109, 0.02) 135deg,
        transparent 180deg,
        rgba(201, 161, 109, 0.02) 225deg,
        transparent 270deg,
        rgba(201, 161, 109, 0.02) 315deg,
        transparent 360deg
    );
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

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

.testimonials-track {
    display: flex;
    gap: 40px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
}

.testimonial-card {
    min-width: 320px; /* Reduced from 400px for more elegant proportions */
    max-width: 320px;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 241, 235, 0.4) 100%);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid rgba(201, 161, 109, 0.15);
    position: relative;
    overflow: hidden;
    direction: rtl;
    flex-shrink: 0;
    box-shadow: 
        0 8px 32px rgba(50, 34, 34, 0.06),
        0 2px 8px rgba(50, 34, 34, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Add flexbox to ensure consistent card heights */
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-gold) 50%, 
        transparent 100%);
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, 
        rgba(201, 161, 109, 0.02) 0%, 
        transparent 50%,
        rgba(50, 34, 34, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(50, 34, 34, 0.12),
        0 8px 24px rgba(50, 34, 34, 0.08),
        0 0 0 1px rgba(201, 161, 109, 0.2);
    border-color: rgba(201, 161, 109, 0.3);
    backdrop-filter: blur(20px);
}

.testimonial-content {
    position: relative;
    z-index: 2;
    /* Make content grow to fill available space */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-content blockquote {
    font-family: var(--font-display);
    font-size: 1.125rem; /* Slightly smaller for more elegance */
    font-style: italic;
    line-height: 1.7;
    color: var(--deep-charcoal);
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px 0 0;
    font-weight: 400;
    /* Allow blockquote to grow and push cite to bottom */
    flex: 1;
}

.testimonial-content blockquote::before {
    content: '"';
    position: absolute;
    top: -16px;
    right: -4px;
    font-size: 3.5rem;
    color: var(--primary-gold);
    opacity: 0.15;
    font-family: var(--font-display);
    line-height: 1;
    font-weight: 700;
}

.testimonial-content cite {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-gold);
    font-style: normal;
    display: block;
    text-align: right;
    letter-spacing: 0.025em;
    /* Ensure cite stays at bottom */
    margin-top: auto;
    flex-shrink: 0;
}



.testimonials-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.testimonials-controls .carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(201, 161, 109, 0.2);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 241, 235, 0.6) 100%);
    backdrop-filter: blur(12px);
    color: var(--primary-gold);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 
        0 4px 16px rgba(201, 161, 109, 0.1),
        0 2px 8px rgba(50, 34, 34, 0.05);
    position: relative;
    overflow: hidden;
}

.testimonials-controls .carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.testimonials-controls .carousel-btn:hover::before {
    opacity: 1;
}

.testimonials-controls .carousel-btn:hover {
    color: var(--white);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(201, 161, 109, 0.25),
        0 4px 12px rgba(50, 34, 34, 0.1);
    border-color: rgba(201, 161, 109, 0.4);
}

.testimonials-controls .carousel-btn .material-icons-outlined {
    position: relative;
    z-index: 2;
}

/* Mobile Responsive for Testimonials Section */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-carousel {
        margin: 40px auto 0;
        padding: 20px 16px;
        border-radius: var(--radius-md);
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Disable the rotating background animation on mobile to prevent shaking */
    .testimonials-carousel::before {
        animation: none;
        opacity: 0.3;
    }
    
    .testimonials-track {
        gap: 20px;
        will-change: transform;
        backface-visibility: hidden;
        /* Additional stabilization for mobile */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        /* perspective: 1000px; */
    }
    
    .testimonial-card {
        min-width: 280px;
        max-width: 320px;
        padding: 28px 24px;
        border-radius: var(--radius-md);
        flex-shrink: 0;
        margin: 0 auto;
        will-change: transform;
        backface-visibility: hidden;
    }
    
    .testimonial-content {
        /* Maintain flexbox behavior on mobile */
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .testimonial-content blockquote {
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 0 16px;
        /* Maintain flex behavior on mobile */
        flex: 1;
    }
    
    .testimonial-content blockquote::before {
        font-size: 3rem;
        top: -15px;
        right: -4px;
    }
    
    .testimonial-content cite {
        font-size: 0.9rem;
        /* Ensure cite stays at bottom on mobile */
        margin-top: auto;
        flex-shrink: 0;
    }
    
    .testimonials-controls {
        gap: 16px;
        margin-top: 30px;
    }
    
    .testimonials-controls .carousel-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 18px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel {
        padding: 16px;
        margin: 30px auto 0;
    }
    
    /* Ensure no animation or movement on very small screens */
    .testimonials-carousel::before {
        animation: none;
        opacity: 0.2;
        transform: none;
    }
    
    .testimonial-card {
        min-width: calc(100vw - 64px);
        max-width: calc(100vw - 64px);
        padding: 20px;
        flex-shrink: 0;
        /* Additional stability for mobile */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .testimonial-content blockquote {
        font-size: 1rem;
        padding: 0 12px;
        /* Maintain flex behavior on small mobile */
        flex: 1;
    }
    
    .testimonial-content blockquote::before {
        font-size: 2.5rem;
        top: -12px;
        right: -2px;
    }
    
    .testimonial-content cite {
        font-size: 0.85rem;
        /* Ensure cite stays at bottom on small mobile */
        margin-top: auto;
        flex-shrink: 0;
    }
    
    .testimonials-controls .carousel-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .event-center {
    left: 39%;
    /* transform: translateX(-50%); */
    top: 0px;
}
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--section-padding);
    background: linear-gradient(135deg, 
        var(--warm-cream) 0%, 
        rgba(248, 241, 235, 0.6) 50%, 
        var(--white) 100%);
    position: relative;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1875rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 24px;
    direction: rtl;
}

.about-expandable {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s var(--ease-out-quart);
}

.about-expandable.expanded {
    max-height: 800px;
    opacity: 1;
    margin-top: 24px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 32px;
    direction: rtl;
    box-shadow: 0 4px 16px rgba(201, 161, 109, 0.3);
}

.read-more-btn:hover {
    background: var(--white);
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 161, 109, 0.4);
    border: 2px solid var(--primary-gold);
}

.read-more-btn .material-icons-outlined {
    font-size: 20px;
    transition: var(--transition-smooth);
    order: -1;
}

.read-more-btn.expanded .material-icons-outlined {
    transform: rotate(180deg);
}

/* ===== WHY US SECTION ===== */
.why-us {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
}

.why-us-content {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.advantage-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(50, 34, 34, 0.08);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    direction: rtl;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out-quart);
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(50, 34, 34, 0.15);
    border-color: var(--primary-gold-light);
}

.advantage-item:hover::before {
    transform: scaleX(1);
}

.advantage-item h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 16px;
    position: relative;
}

.advantage-item h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
    border-radius: 1px;
}

.advantage-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
}

/* Mobile Responsive for Why Us Section */
@media (max-width: 768px) {
    .why-us-content {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }
    
    .advantage-item {
        padding: 32px 24px;
        text-align: center;
    }
    
    .advantage-item h3 {
        font-size: 1.25rem;
    }
    
    .advantage-item p {
        font-size: 0.95rem;
    }
}

/* Tablet Responsive for Why Us Section */
@media (max-width: 1199px) and (min-width: 769px) {
    .why-us-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        margin-top: 50px;
    }
    
    .advantage-item {
        padding: 36px 28px;
    }
}

/* ===== INSIGHTS SECTION ===== */
.insights {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.insight-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px var(--shadow-medium);
    border-color: var(--primary-gold-light);
}

.insight-card.featured {
    grid-column: span 2;
    flex-direction: row;
    min-height: 280px;
    height: 100%;
}

@media (max-width: 1000px) {
    .insight-card.featured {
        grid-column: span 1;
        flex-direction: column;
        min-height: auto;
    }
}

.insight-image {
    background: linear-gradient(135deg, 
        var(--warm-cream) 0%,
        var(--primary-gold-light) 30%,
        var(--primary-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.insight-card.featured .insight-image {
    min-width: 280px;
    height: auto;
}

.insight-image .material-icons-outlined {
    font-size: 48px;
    color: var(--white);
    z-index: 2;
    position: relative;
}

.insight-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.insight-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    direction: rtl;
    text-align: right;
}

/* 
.insight-card.featured .insight-content {
    padding: 40px;
    justify-content: center;
} */

.insight-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    margin-bottom: 16px;
    line-height: 1.3;
}

/* .insight-card.featured .insight-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
} */

.insight-preview {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

/* .insight-card.featured .insight-preview {
    font-size: 1.125rem;
    margin-bottom: 32px;
} */

.insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.insight-category {
    background: var(--primary-gold-light);
    color: var(--primary-gold-dark);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.insight-time {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Mobile Responsive for Insights */
@media (max-width: 768px) {
    .insights {
        padding: var(--section-padding-mobile);
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }
    
    .insight-card.featured {
        grid-column: span 1;
        flex-direction: column;
        min-height: auto;
    }
    
    .insight-card.featured .insight-image {
        min-width: auto;
        height: 200px;
    }
       
    .insights .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .insights .form-row input {
        min-width: auto;
        width: 100%;
    }
    
    .insights .form-row button {
        width: 100%;
        justify-content: center;
    }
}


/* ===== NEWSLETTER SIGNUP SECTION ===== */
.newsletter-signup {
    background: linear-gradient(135deg, 
        var(--warm-cream) 0%,
        var(--primary-gold-light) 30%,
        var(--primary-gold) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(139, 111, 71, 0.2);
    isolation: isolate;
}

.newsletter-signup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(201, 161, 109, 0.05) 30px,
        rgba(201, 161, 109, 0.05) 32px
    );
    animation: shimmer 15s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translate3d(-100%, -100%, 0) rotate(45deg);
    }
    100% {
        transform: translate3d(100%, 100%, 0) rotate(45deg);
    }
}

.newsletter-content {
    position: relative;
    z-index: 10;
    transform: translateZ(0);
}

.newsletter-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    z-index: 10;
    transform: translateZ(0);
}

.newsletter-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    position: relative;
    z-index: 10;
    transform: translateZ(0);
}

.newsletter-form {
    position: relative;
    z-index: 10;
    transform: translateZ(0);
}

.form-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.form-row input {
    flex: 1;
    min-width: 200px;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    color: var(--deep-charcoal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    direction: rtl;
}

.form-row input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.form-row input::placeholder {
    color: var(--text-light);
}

.form-row button {
    background: var(--white);
    color: var(--primary-gold);
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
       box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    direction: rtl;
}

.form-row button:hover {
    background: var(--warm-cream);
    color: var(--deep-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.form-row button .material-icons-outlined {
    font-size: 20px;
    order: -1;
}

/* Form validation and states */
.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input.success,
.form-group textarea.success {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 4px;
    font-family: var(--font-body);
    text-align: right;
}

.submit-button:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-button.loading {
    position: relative;
    color: transparent;
}

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

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

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid #c3e6cb;
    margin-top: 16px;
    text-align: center;
    font-family: var(--font-body);
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid #f5c6cb;
    margin-top: 16px;
    text-align: center;
    font-family: var(--font-body);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(135deg, 
        var(--warm-cream) 0%, 
        rgba(248, 241, 235, 0.6) 50%, 
        var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 20%, rgba(201, 161, 109, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(201, 161, 109, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 45% 60%, rgba(248, 241, 235, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse 800px 40px at 25% 30%, rgba(139, 111, 71, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 600px 25px at 70% 15%, rgba(139, 111, 71, 0.06) 0%, transparent 80%),
        radial-gradient(ellipse 900px 35px at 15% 70%, rgba(139, 111, 71, 0.1) 0%, transparent 75%),
        radial-gradient(ellipse 500px 20px at 85% 45%, rgba(139, 111, 71, 0.05) 0%, transparent 85%),
        radial-gradient(ellipse 700px 30px at 45% 85%, rgba(139, 111, 71, 0.07) 0%, transparent 80%),
        radial-gradient(ellipse 400px 15px at 60% 60%, rgba(139, 111, 71, 0.04) 0%, transparent 90%),
        radial-gradient(ellipse 1000px 45px at 5% 50%, rgba(139, 111, 71, 0.09) 0%, transparent 70%),
        radial-gradient(ellipse 300px 18px at 90% 25%, rgba(139, 111, 71, 0.05) 0%, transparent 85%),
        radial-gradient(ellipse 650px 28px at 35% 10%, rgba(139, 111, 71, 0.06) 0%, transparent 80%),
        radial-gradient(ellipse 550px 22px at 75% 90%, rgba(139, 111, 71, 0.08) 0%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 48px rgba(139, 111, 71, 0.15);
    border: 1px solid rgba(201, 161, 109, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.contact-form {
    background: transparent;
    padding: 48px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-right: 1px solid rgba(201, 161, 109, 0.1);
    position: relative;
    z-index: 3;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--deep-charcoal);
    margin-bottom: 8px;
    text-align: right;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--deep-charcoal);
    background: var(--white);
    transition: var(--transition-smooth);
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

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

/* Products Grid Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
    background: #F8F1EB;
    border-radius: 12px;
    border: 1px solid #E8E0D5;
    position: relative;
}

.product-checkbox {
    position: relative;
    background: white;
    border-radius: 8px;
    border: 2px solid #E8E0D5;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-checkbox:hover {
    border-color: #C9A16D;
    box-shadow: 0 2px 12px rgba(201, 161, 109, 0.15);
    transform: translateY(-1px);
}

.product-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.product-checkbox label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin: 0;
    cursor: pointer;
    color: #322222;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    min-height: 24px;
}

.product-checkbox input[type="checkbox"]:checked + label {
    background: linear-gradient(135deg, #C9A16D 0%, #B8946A 100%);
    color: white;
    font-weight: 600;
    padding-right: 50px; /* Add space for checkmark */
}

.product-checkbox input[type="checkbox"]:checked + label::before {
    content: "✓";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.product-checkbox input[type="checkbox"]:focus + label {
    outline: 2px solid #C9A16D;
    outline-offset: 2px;
}

/* Collapsible Products */
.products-extra {
    display: none;
    grid-column: 1 / -1;
    display: none;
}

.products-extra.expanded {
    display: contents;
}

.show-more-products {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #C9A16D 0%, #B8946A 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.show-more-products:hover {
    background: linear-gradient(135deg, #B8946A 0%, #A8845A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 161, 109, 0.3);
}

.show-more-products .material-icons-outlined {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.show-more-products.expanded .material-icons-outlined {
    transform: rotate(180deg);
}

.show-more-products.expanded .show-more-text::after {
    content: "";
}

.show-more-products:not(.expanded) .show-more-text::after {
    content: "";
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .product-checkbox label {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .product-checkbox input[type="checkbox"]:checked + label {
        padding-right: 45px; /* Adjusted for mobile */
    }
    
    .product-checkbox input[type="checkbox"]:checked + label::before {
        right: 12px;
        font-size: 14px;
    }
    
    .show-more-products {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .products-grid {
        margin: 8px 0;
        padding: 8px;
    }
    
    .product-checkbox label {
        padding: 12px 14px;
    }
    
    .product-checkbox input[type="checkbox"]:checked + label {
        padding-right: 40px; /* Adjusted for small mobile */
    }
    
    .product-checkbox input[type="checkbox"]:checked + label::before {
        right: 10px;
    }
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, 
        var(--primary-gold-light) 0%, 
        var(--primary-gold) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 18px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(139, 111, 71, 0.3);
    margin-top: 16px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 111, 71, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 48px;
    background: transparent;
    position: relative;
    z-index: 3;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 24px;
    text-align: right;
}

.contact-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(139, 111, 71, 0.1);
    border-left: 4px solid var(--primary-gold);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    border-left-width: 6px;
}

.contact-item strong {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-gold);
    margin-bottom: 8px;
    text-align: right;
}

.contact-item p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    text-align: right;
}

/* Mobile Responsive for Contact */
@media (max-width: 768px) {
    .contact {
        background: linear-gradient(135deg, 
            var(--warm-cream) 0%, 
            rgba(248, 241, 235, 0.9) 20%,
            var(--white) 40%,
            rgba(248, 241, 235, 0.6) 70%,
            var(--warm-cream) 100%);
        position: relative;
        overflow: hidden;
        padding: 60px 0;
    }
    
    .contact::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(circle at 15% 20%, rgba(201, 161, 109, 0.08) 0%, transparent 35%),
            radial-gradient(circle at 85% 80%, rgba(201, 161, 109, 0.06) 0%, transparent 40%),
            radial-gradient(circle at 45% 60%, rgba(248, 241, 235, 0.15) 0%, transparent 50%);
        pointer-events: none;
        z-index: 1;
    }
    
    .contact::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            radial-gradient(ellipse 800px 40px at 25% 30%, rgba(139, 111, 71, 0.08) 0%, transparent 70%),
            radial-gradient(ellipse 600px 25px at 70% 15%, rgba(139, 111, 71, 0.06) 0%, transparent 80%),
            radial-gradient(ellipse 900px 35px at 15% 70%, rgba(139, 111, 71, 0.1) 0%, transparent 75%),
            radial-gradient(ellipse 500px 20px at 85% 45%, rgba(139, 111, 71, 0.05) 0%, transparent 85%),
            radial-gradient(ellipse 700px 30px at 45% 85%, rgba(139, 111, 71, 0.07) 0%, transparent 80%),
            radial-gradient(ellipse 400px 15px at 60% 60%, rgba(139, 111, 71, 0.04) 0%, transparent 90%),
            radial-gradient(ellipse 1000px 45px at 5% 50%, rgba(139, 111, 71, 0.09) 0%, transparent 70%),
            radial-gradient(ellipse 300px 18px at 90% 25%, rgba(139, 111, 71, 0.05) 0%, transparent 85%),
            radial-gradient(ellipse 650px 28px at 35% 10%, rgba(139, 111, 71, 0.06) 0%, transparent 80%),
            radial-gradient(ellipse 550px 22px at 75% 90%, rgba(139, 111, 71, 0.08) 0%, transparent 75%);
        pointer-events: none;
        z-index: 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 0 16px;
        margin-top: 40px;
        position: relative;
        z-index: 3;
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--radius-lg);
        padding: 0;
        box-shadow: 0 8px 32px rgba(139, 111, 71, 0.15);
        backdrop-filter: blur(10px);
    }
    
    .contact-form {
        padding: 32px 24px;
        position: relative;
        z-index: 3;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(201, 161, 109, 0.1);
    }
    
    .contact-info {
        padding: 32px 24px;
        position: relative;
        z-index: 3;
        background: transparent;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
        position: relative;
        z-index: 3;
        margin-bottom: 24px;
    }
    
    .contact-item {
        background: rgba(255, 255, 255, 0.7);
        margin-bottom: 16px;
        backdrop-filter: blur(5px);
    }
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: var(--section-padding);
    background: linear-gradient(135deg, 
        var(--warm-cream) 0%, 
        rgba(248, 241, 235, 0.4) 50%, 
        var(--white) 100%);
    position: relative;
}

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

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(50, 34, 34, 0.06);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(50, 34, 34, 0.1);
    border-color: var(--primary-gold-light);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 32px;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    text-align: right;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}

.faq-question:hover {
    background: rgba(201, 161, 109, 0.05);
    color: var(--primary-gold);
}

.faq-question span:first-child {
    flex: 1;
    text-align: right;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-gold);
    transition: var(--transition-smooth);
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.6s var(--ease-out-quart);
    background: rgba(248, 241, 235, 0.3);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 32px 24px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    direction: rtl;
}

/* ===== PARTNERS CTA SECTION ===== */
.partners-cta {
    background: linear-gradient(135deg, 
        var(--deep-charcoal) 0%, 
        rgba(50, 34, 34, 0.95) 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.partners-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(201, 161, 109, 0.03) 50px,
        rgba(201, 161, 109, 0.03) 52px
    );
    pointer-events: none;
}

.partners-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.partners-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    text-align: right;
}

.partners-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: right;
}

.partners-button {
    background: linear-gradient(135deg, var(--primary-gold-light) 0%, var(--primary-gold) 100%);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(201, 161, 109, 0.2);
    direction: rtl;
    white-space: nowrap;
}

.partners-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 161, 109, 0.3);
    text-decoration: none;
    color: var(--white);
}

.partners-button .material-icons-outlined {
    font-size: 20px;
    order: -1;
}

/* Mobile Responsive for Partners */
@media (max-width: 768px) {
    .partners-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .partners-text h3 {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .partners-text p {
        text-align: center;
    }
    
    .partners-button {
        align-self: center;
    }
}

/* ===== FOOTER SECTION ===== */
.footer {
    background: linear-gradient(135deg, 
        var(--deep-charcoal) 0%, 
        #2a1f1f 50%,
        var(--deep-charcoal) 100%);
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(201, 161, 109, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 161, 109, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(201, 161, 109, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
    direction: rtl;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
    border-radius: 1px;
}

.footer-logo h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-logo p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 32px;
}

.footer-social {
    display: flex;
    gap: 16px;
    direction: ltr;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 24px rgba(201, 161, 109, 0.4);
}

.social-link .material-icons-outlined {
    font-size: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: var(--transition-smooth);
    display: block;
    padding: 4px 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 20px;
}

.footer-links a:hover::before {
    width: 12px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    direction: rtl;
}

.footer-contact .material-icons-outlined {
    color: var(--primary-gold);
    font-size: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    direction: rtl;
}

.footer-legal {
    display: flex;
    gap: 32px;
    direction: ltr;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.legal-link:hover {
    color: var(--primary-gold);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
    text-align: center;
    direction: rtl;
}

/* ===== RESPONSIVE DESIGN FOR PARTNERS BANNER ===== */

/* iPad - 768px to 1199px */
@media (max-width: 1199px) and (min-width: 768px) {
    .partners-banner {
        padding: 60px 0;
    }
    
    .partners-banner-title {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }
    
    .partners-slider {
        gap: 32px;
    }
    
    .partner-logo-item {
        width: 140px;
        height: 90px;
    }
    
    .partner-logo {
        max-width: 100px;
        max-height: 50px;
    }
}

/* Mobile - 414px to 767px */
@media (max-width: 767px) {
    .partners-banner {
        padding: 50px 0;
    }
    
    .partners-banner-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
        padding: 0 16px;
    }
    
    .partners-slider-wrapper {
        margin: 0 -24px;
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%
        );
    }
    
    .partners-slider {
        gap: 40px;
        animation-duration: 30s;
    }
    
    .partner-logo-item {
        width: 180px;
        height: 110px;
    }
    
    .partner-logo {
        max-width: 120px;
        max-height: 70px;
    }
}

/* iPhone - 414px and below */
@media (max-width: 414px) {
    .partners-banner {
        padding: 40px 0;
    }
    
    .partners-banner-title {
        font-size: 1.375rem;
        margin-bottom: 24px;
    }
    
    .partners-slider {
        gap: 32px;
        animation-duration: 25s;
    }
    
    .partner-logo-item {
        width: 160px;
        height: 100px;
    }
    
    .partner-logo {
        max-width: 100px;
        max-height: 60px;
    }
}

/* ===== RESPONSIVE DESIGN FOR FOOTER ===== */

/* iPad - 768px to 1199px */
@media (max-width: 1199px) and (min-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* Mobile - 414px to 767px */
@media (max-width: 767px) {
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .footer-logo h3 {
        font-size: 1.375rem;
    }
    
    .footer-logo p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding-top: 32px;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 24px;
    }
}

/* iPhone - 414px and below */
@media (max-width: 414px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 24px;
        margin-bottom: 24px;
        padding: 0 16px;
    }
    
    .footer-section h4 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .footer-logo h3 {
        font-size: 1.25rem;
    }
    
    .footer-logo p {
        font-size: 0.9375rem;
        margin-bottom: 20px;
    }
    
    .footer-links a {
        font-size: 0.9375rem;
    }
    
    .footer-contact p {
        font-size: 0.9375rem;
        margin-bottom: 12px;
    }
    
    .footer-contact .material-icons-outlined {
        font-size: 18px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .social-link .material-icons-outlined {
        font-size: 18px;
    }
    
    .footer-bottom {
        padding: 0 16px;
        padding-top: 24px;
    }
    
    .footer-legal {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }
    
    .legal-link,
    .footer-copyright {
        font-size: 0.8125rem;
    }
}

/* ===== ENHANCED PARTNERS BANNER - LUXURIOUS & COLORFUL ===== */
/* Override the previous gray/small banner styling */
.partners-banner {
    padding: 100px 0 120px;
    background: linear-gradient(135deg, 
        var(--white) 0%, 
        rgba(248, 241, 235, 0.8) 25%,
        var(--warm-cream) 50%,
        rgba(248, 241, 235, 0.8) 75%,
        var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.partners-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 75%, rgba(201, 161, 109, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 75% 25%, rgba(201, 161, 109, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(248, 241, 235, 0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: shimmerBackground 15s ease-in-out infinite;
}

@keyframes shimmerBackground {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.partners-banner .container {
    position: relative;
    z-index: 3;
}

.partners-banner-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    text-align: center;
    margin-bottom: 60px;
    direction: rtl;
    position: relative;
}

.partners-banner-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
    border-radius: 2px;
}

.partners-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.partners-slider {
    display: flex;
    align-items: center;
    animation: slideInfiniteLuxury 20s linear infinite;
    width: 200%;
    gap: 60px;
    padding: 20px 0;
}

.partner-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 140px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 
         
        0 8px 32px rgba(50, 34, 34, 0.12),
        0 4px 16px rgba(201, 161, 109, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(201, 161, 109, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.partner-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(201, 161, 109, 0.08) 0%, 
        transparent 50%);
    pointer-events: none;
}

.partner-logo-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-light), var(--primary-gold));
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.partner-logo-item:hover::before {
    opacity: 1;
}

.partner-logo-item:hover::after {
    opacity: 1;
}

.partner-logo-item:hover {
    box-shadow: 
        0 20px 60px rgba(50, 34, 34, 0.2),
        0 12px 40px rgba(201, 161, 109, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: var(--primary-gold-light);
}

.partner-logo {
    max-width: 160px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Remove gray filter - show full color */
    filter: brightness(1) contrast(1.1) saturate(1.2);
    transition: var(--transition-smooth);
    z-index: 2;
    position: relative;
}

.partner-logo-item:hover .partner-logo {
    /* Enhanced on hover */
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
    transform: scale(1.1);
}

@keyframes slideInfiniteLuxury {
    0% {
        transform: translateX(220%);
    }
    100% {
        transform: translateX(-5%);
    }
}

/* Pause animation on hover */
.partners-slider:hover {
    animation-play-state: paused;
}

/* ===== PARTNERS NETWORK CAROUSEL SECTION ===== */
.partners-network {
    padding: 120px 0;
    background: linear-gradient(135deg, 
        var(--white) 0%, 
        rgba(248, 241, 235, 0.6) 50%, 
        var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.partners-network::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(201, 161, 109, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(248, 241, 235, 0.5) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.partners-network .container {
    position: relative;
    z-index: 2;
}

.partners-network .section-title {
    text-align: center;
    margin-bottom: 24px;
    color: var(--deep-charcoal);
}

.partners-network-subtitle {
    text-align: center;
    font-size: 1.1875rem;
    color: #7A8A75;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    direction: rtl;
}

.partners-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 241, 235, 0.8) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 16px 48px rgba(50, 34, 34, 0.12);
    border: 1px solid rgba(201, 161, 109, 0.1);
    backdrop-filter: blur(20px);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.partner-specialty-card {
    flex: 0 0 100%;
    padding: 60px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    background: transparent;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.partner-specialty-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.partner-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 32px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(50, 34, 34, 0.15);
    border: 4px solid var(--white);
    background: linear-gradient(135deg, var(--primary-gold-light), var(--primary-gold));
    padding: 4px;
}

.partner-image-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--primary-gold), var(--primary-gold-light), var(--primary-gold));
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
    animation: rotateGlow 8s linear infinite;
}

.partner-specialty-card.active .partner-image-container::before {
    animation-play-state: paused;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.partner-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: var(--transition-smooth);
    backface-visibility: hidden;
    transform: translateZ(0);
}

.partner-specialty-card.active .partner-image {
    transform: scale(1.05) translateZ(0);
    object-position: center center;
}

.partner-specialty-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 12px;
    direction: rtl;
    text-align: center;
}

.partner-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: 24px;
    direction: rtl;
    text-align: center;
}

.partner-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 600px;
    direction: rtl;
    text-align: center;
}

.specialty-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-light));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(201, 161, 109, 0.3);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 161, 109, 0.4);
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: transparent;
    border-top: 1px solid rgba(201, 161, 109, 0.15);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.carousel-btn {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    background: var(--white);
    color: var(--primary-gold);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(201, 161, 109, 0.15);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gold);
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    z-index: 1;
}

.carousel-btn:hover::before {
    transform: scale(1);
}

.carousel-btn:hover {
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(201, 161, 109, 0.3);
    border-color: var(--primary-gold-dark);
}

.carousel-btn .material-icons-outlined {
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-btn:active {
    transform: translateY(-2px);
}

/* Enhanced Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(201, 161, 109, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot:hover {
    background: rgba(201, 161, 109, 0.4);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-gold);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(201, 161, 109, 0.2);
    border-color: var(--white);
}

.dot.active::before {
    width: 6px;
    height: 6px;
    background: var(--white);
}

.dot:hover:not(.active) {
    background: rgba(201, 161, 109, 0.6);
    transform: scale(1.2);
}

/* Partners Network Responsive Design */

/* iPad - 768px to 1199px */
@media (max-width: 1199px) and (min-width: 768px) {
    .partners-network {
        padding: 100px 0;
    }
    
    .partners-network-subtitle {
        font-size: 1.125rem;
        margin-bottom: 50px;
    }
    
    .partner-specialty-card {
        padding: 50px 40px;
        min-height: 550px;
    }
    
    .partner-image-container {
        width: 160px;
        height: 160px;
        margin-bottom: 28px;
    }
    
    .partner-specialty-card h3 {
        font-size: 1.75rem;
    }
    
    .partner-title {
        font-size: 1.125rem;
    }
    
    .partner-description {
        font-size: 1rem;
    }
    
    .carousel-controls {
        padding: 24px 28px;
        gap: 32px;
        background: transparent;
        margin: 0 20px;
        border-radius: var(--radius-lg);
        border-top: 1px solid rgba(201, 161, 109, 0.15);
    }
    
    .carousel-btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 20px;
        border-width: 1.5px;
        flex-shrink: 0;
    }
}

/* Mobile - 414px to 767px */
@media (max-width: 767px) {
    .partners-network {
        padding: 80px 0;
    }
    
    .partners-network-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 0 16px;
    }
    
    .partners-carousel-container {
        margin: 0 16px;
    }
    
    .partner-specialty-card {
        padding: 40px 24px;
        min-height: 500px;
    }
    
    .partner-image-container {
        width: 140px;
        height: 140px;
        margin-bottom: 24px;
    }
    
    .partner-specialty-card h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .partner-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .partner-description {
        font-size: 0.9375rem;
        margin-bottom: 24px;
    }
    
    .specialty-features {
        gap: 8px;
        margin-top: 24px;
    }
    
    .feature-tag {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
    
    .carousel-controls {
        padding: 18px 16px;
        justify-content: center;
        gap: 44px;
        background: transparent;
        margin: 0 16px;
        border-radius: var(--radius-md);
        border-top: 1px solid rgba(201, 161, 109, 0.12);
    }
    
    .carousel-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        font-size: 18px;
        border-width: 1.5px;
        box-shadow: 0 2px 8px rgba(201, 161, 109, 0.15);
        flex-shrink: 0;
    }
    
    .carousel-dots {
        gap: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* iPhone - 414px and below */
@media (max-width: 414px) {
    .partners-network {
        padding: 60px 0;
    }
    
    .partners-carousel-container {
        margin: 0 8px;
    }
    
    .partner-specialty-card {
        padding: 32px 20px;
        min-height: 450px;
    }
    
    .partner-image-container {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .partner-specialty-card h3 {
        font-size: 1.375rem;
    }
    
    .partner-title {
        font-size: 0.9375rem;
    }
    
    .partner-description {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }
    
    .specialty-features {
        margin-top: 20px;
    }
    
    .feature-tag {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .carousel-controls {
        padding: 16px 20px;
        justify-content: center;
        gap: 48px;
        background: transparent;
        margin: 0 12px;
        border-radius: var(--radius-md);
        border-top: 1px solid rgba(201, 161, 109, 0.1);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 16px;
        border-width: 1.5px;
        box-shadow: 0 2px 8px rgba(201, 161, 109, 0.2);
        flex-shrink: 0;
    }
}

/* Accessibility and Performance for Partners Network */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none !important;
    }
    
    .partner-specialty-card {
        transition: none !important;
    }
    
    .partner-image-container::before {
        animation: none !important;
    }
    
    .carousel-btn,
    .dot,
    .feature-tag {
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    .partners-carousel {
        border: 3px solid var(--deep-charcoal);
        background: var(--white);
    }
    
    .partner-image-container {
        border: 3px solid var(--deep-charcoal);
    }
    
    .carousel-btn {
        border: 3px solid var(--deep-charcoal);
        background: var(--white);
        color: var(--deep-charcoal);
    }
    
    .feature-tag {
        background: var(--deep-charcoal);
        color: var(--white);
    }
    
    .dot {
        background: var(--deep-charcoal);
    }
}

/* Print styles for Partners Network */
@media print {
    .partners-network {
        background: none !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .carousel-controls {
        display: none !important;
    }
    
    .partner-specialty-card {
        opacity: 1 !important;
        transform: none !important;
        page-break-inside: avoid;
    }
    
    .specialty-features {
        display: none !important;
    }
}

/* ===== REFERRAL PROGRAM PAGE STYLES ===== */

/* Referral Hero Section */
.referral-hero {
    background: linear-gradient(135deg, 
        var(--deep-charcoal) 0%, 
        rgba(50, 34, 34, 0.95) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.referral-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(201, 161, 109, 0.05) 30px,
        rgba(201, 161, 109, 0.05) 32px
    );
    pointer-events: none;
}

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

.referral-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-align: center;
}

.referral-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Program Details Section */
.program-details {
    padding: var(--section-padding);
    background: var(--white);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.detail-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    direction: rtl;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--shadow-medium);
    border-color: var(--primary-gold-light);
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, 
        var(--primary-gold-light) 0%, 
        var(--primary-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.detail-icon .material-icons-outlined {
    font-size: 36px;
    color: var(--white);
}

.detail-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    margin-bottom: 16px;
}

.detail-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* How It Works Section */
.how-it-works {
    padding: var(--section-padding);
    background: linear-gradient(135deg, 
        var(--warm-cream) 0%, 
        rgba(248, 241, 235, 0.6) 50%, 
        var(--white) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-item {
    text-align: center;
    position: relative;
    direction: rtl;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        var(--warm-cream) 0%, 
        var(--primary-gold-light) 30%, 
        var(--primary-gold) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-item h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    margin-bottom: 12px;
}

.step-item p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Target Audience Section */
.target-audience {
    padding: var(--section-padding);
    background: var(--white);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.audience-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px var(--shadow-light);
    border: 1px solid var(--border-light);
    border-right: 4px solid var(--primary-gold);
    transition: var(--transition-smooth);
    direction: rtl;
}

.audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    border-right-width: 6px;
}

.audience-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    margin-bottom: 12px;
    text-align: right;
}

.audience-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
    text-align: right;
}

/* Referral CTA Section */
.referral-cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, 
        var(--warm-cream) 0%, 
        rgba(248, 241, 235, 0.8) 100%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 20px;
}

.cta-content > p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 50px;
}

.referral-form {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-light);
    text-align: right;
    direction: rtl;
}

.referral-form h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    margin-bottom: 32px;
    text-align: center;
}

.referral-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.referral-form .form-group {
    margin-bottom: 24px;
}

.referral-form .form-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--deep-charcoal);
    margin-bottom: 8px;
    text-align: right;
}

.referral-form .form-group input,
.referral-form .form-group select,
.referral-form .form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--deep-charcoal);
    background: var(--white);
    transition: var(--transition-smooth);
    direction: rtl;
}

.referral-form .form-group input:focus,
.referral-form .form-group select:focus,
.referral-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.referral-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.referral-form .submit-button {
    width: 100%;
    background: linear-gradient(135deg, 
        var(--primary-gold-light) 0%, 
        var(--primary-gold) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 18px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(201, 161, 109, 0.3);
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
}

.referral-form .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 161, 109, 0.4);
}

.referral-form .submit-button .material-icons-outlined {
    font-size: 20px;
    order: -1;
}

/* ===== DONUT CHART TOOLTIP & MODAL ===== */
#donut-tooltip {
    position: absolute;
    min-width: 220px;
    max-width: 320px;
    background: #fff;
    color: var(--deep-charcoal);
    border: 2px solid var(--primary-gold);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(201,161,109,0.25);
    padding: 18px 22px;
    font-size: 1rem;
    font-family: var(--font-body);
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0.98;
    direction: rtl;
    line-height: 1.7;
    text-align: right;
}
#donut-tooltip b {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.08em;
}
#donut-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(50,34,34,0.18);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
#donut-modal #donut-modal-content {
    background: #fff;
    border-radius: 18px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 8px 32px rgba(201,161,109,0.25);
    padding: 32px 28px 24px 28px;
    font-size: 1.08rem;
    font-family: var(--font-body);
    color: var(--deep-charcoal);
    max-width: 340px;
    min-width: 220px;
    line-height: 1.8;
    text-align: right;
    position: relative;
}
#donut-modal #donut-modal-content b {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.12em;
}
#donut-modal #donut-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    z-index: 1100;
}
@media (max-width: 600px) {
    #donut-tooltip {
        display: none !important;
    }
    #donut-modal #donut-modal-content {
        max-width: 90vw;
        min-width: 0;
        padding: 24px 10px 18px 10px;
    }
}

/* Remove icon movement on hover */
.event-icon:hover {
    transform: none !important;
    box-shadow: 0 4px 16px rgba(122, 138, 117, 0.2) !important;
    border-color: var(--primary-gold) !important;
}
.event-icon:hover .material-icons-outlined {
    color: var(--primary-gold);
    transform: none !important;
}


/* Article page improvements */
.article-main.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 120px 12px 48px 12px; /* Add top padding for header */
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
@media (max-width: 700px) {
  .article-main.container {
    padding: 90px 2vw 32px 2vw; /* More top padding for mobile header */
    border-radius: 0;
    box-shadow: none;
  }
}
.article-title {
  font-size: 1.7rem;
  font-family: 'Miller Display', 'Playfair Display', serif;
  color: #C9A16D;
  margin-bottom: 8px;
  margin-top: 0;
  text-align: right;
}
.article-subtitle {
  font-size: 1.18rem;
  color: #7A8A75;
  margin: 28px 0 10px 0;
  font-weight: 600;
  border-right: 4px solid #C9A16D;
  padding-right: 10px;
  background: linear-gradient(90deg, #F8F1EB 60%, #fff 100%);
  border-radius: 6px;
}
.article-section-title {
  font-size: 1.08rem;
  color: #C9A16D;
  margin: 18px 0 8px 0;
  font-weight: 600;
}
.insight-article, .article-main {
  border: none !important;
  box-shadow: none !important;
  background: #fff !important;
}
.insight-article ul, .insight-article ol {
  margin: 0 0 18px 0;
  padding-right: 24px;
}
.insight-article li {
  margin-bottom: 8px;
}

.insight-link {
    text-decoration: none !important;
    color: inherit !important;
}
.insight-link:visited {
    color: inherit !important;
}
.insight-link .insight-card h3,
.insight-link .insight-card p,
.insight-link .insight-card .insight-meta {
    text-decoration: none !important;
    color: inherit !important;
}


@media (min-width: 768px) and (max-width: 1024px) {
  .insight-card.featured {
    grid-column: span 1 !important;
    flex-direction: column !important;
  }

  .insight-card.featured .insight-image {
    height: 200px !important;
    width: 100% !important;
  }

  
}

@media (max-width: 700px) {
  .pricing-table {
    font-size: 1em;
  }
  .pricing-table th, .pricing-table td {
    padding: 1.2em 0.7em;
    font-size: 1em;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-bottom: none;
    border-right: none;
  }
  .pricing-table tr {
    display: block;
    margin-bottom: 1.5em;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    background: #fff;
    border: 1px solid #ececec;
    padding: 0.5em 0.7em;
  }
  .pricing-table thead {
    display: none;
  }
  .pricing-table td:before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 0.3em;
    font-size: 0.98em;
  }
}

/* --- PRICING FORM & TABLE ENHANCED STYLES --- */
.pricing-form {
  margin-top: 2.5rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 16px var(--shadow-light);
  padding: 2.2rem 2.5rem 2.2rem 2.5rem;
  max-width: 650px;
  margin-right: auto;
  margin-left: auto;
}
.pricing-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1em;
  margin-bottom: 1.2em;
}
.pricing-form input,
.pricing-form select {
  flex: 1 1 180px;
  min-width: 160px;
  font-size: 1.08em;
  padding: 0.85em 1em;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fafbfc;
  color: var(--deep-charcoal);
  margin-top: 0.2em;
  transition: border 0.2s;
  box-shadow: none;
}
.pricing-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23C9A16D" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 0.8em center;
  background-size: 1.2em;
  padding-left: 2.2em;
}
.pricing-form input:focus,
.pricing-form select:focus {
  border-color: var(--primary-gold);
  outline: none;
  background: #fff;
}
.pricing-form .submit-button {
  background: var(--primary-gold);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.9em 2.2em;
  font-size: 1.13em;
  font-family: var(--font-body);
   font-weight: 600;
  cursor: pointer;
  margin-top: 0.7em;
  box-shadow: 0 2px 8px var(--shadow-light);
  transition: background 0.2s;
}
.pricing-form .submit-button:hover,
.pricing-form .submit-button:focus {
  background: var(--primary-gold-dark);
}

@media (max-width: 700px) {
  .pricing-form {
    padding: 1.2rem 0.7rem 1.5rem 0.7rem;
    max-width: 100%;
    box-shadow: 0 1px 8px var(--shadow-light);
  }
  .pricing-form .form-row {
    flex-direction: column;
    gap: 0.6em;
    margin-bottom: 0.7em;
  }
  .pricing-form input,
  .pricing-form select {
    min-width: 0;
    width: 100%;
    font-size: 1em;
    padding: 0.7em 0.9em;
    margin-top: 0.1em;
    max-height: 70px;
  }
  .pricing-form .submit-button {
    width: 100%;
    font-size: 1.08em;
    padding: 0.85em 0;
    margin-top: 0.5em;
  }
}

/* --- PRICING TABLE MOBILE ENHANCEMENT --- */
.pricing-table-wrapper {
  margin: 2rem 0;
}
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  box-shadow: 0 2px 12px var(--shadow-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 1.1rem;
}
.pricing-table th, .pricing-table td {
  padding: 1.1em 1em;
  text-align: right;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}
.pricing-table th {
  background: #f7f7f7;
  font-weight: 700;
  font-size: 1.15em;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 700px) {
  .pricing-table {
    font-size: 1em;
  }
  .pricing-table th, .pricing-table td {
    padding: 1.2em 0.7em;
    font-size: 1em;
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-bottom: none;
    border-right: none;
  }
  .pricing-table tr {
    display: block;
    margin-bottom: 1.5em;
    border-radius: 10px;
    box-shadow: 0 1px 6px var(--shadow-light);
    background: #fff;
    border: 1px solid #ececec;
    padding: 0.5em 0.7em;
  }
  .pricing-table thead {
    display: none;
  }
  .pricing-table td:before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 0.3em;
    font-size: 0.98em;
  }
}

/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* Deep blue gradient */
    color: #fff;
    z-index: 1000;
    display: none;
    flex-direction: column;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 8px 32px 0 rgba(30,60,114,0.25);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-content {
    padding: 40px 24px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-links li a {
    display: block;
    padding: 18px 0;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s;
}

.mobile-menu-links li a:hover,
.mobile-menu-links li a.active {
    background: rgba(255,255,255,0.08);
    color: #ffe082;
}

.mobile-menu-cta .cta-primary {
    background: #ffe082;
    color: #1e3c72;
    border-radius: 24px;
    padding: 14px 0;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 32px;
    box-shadow: 0 2px 8px 0 rgba(30,60,114,0.10);
    transition: background 0.2s, color 0.2s;
    display: block;
    text-align: center;
    text-decoration: none;
}

.mobile-menu-cta .cta-primary:hover {
    background: #ffd54f;
    color: #1e3c72;
}

.mobile-menu-close {
    position: absolute;
    top: 18px;
    left: 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    z-index: 1100;
}

@media (max-width: 900px) {
    .mobile-menu {
        display: none;
    }
    .mobile-menu.open {
        display: flex;
    }
}

/* ===== CONTACT SUCCESS OVERLAY ===== */
.contact-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
    direction: rtl;
}

.success-icon-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--primary-gold);
    stroke-miterlimit: 10;
    margin: 0 auto;
    animation: checkmark-fill 0.4s ease-in-out 0.4s forwards, checkmark-scale 0.3s ease-in-out 0.9s both;
    transform: scale(0);
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--primary-gold);
    fill: none;
    animation: checkmark-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--primary-gold);
    stroke-width: 3;
    animation: checkmark-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes checkmark-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

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

@keyframes checkmark-fill {
    100% {
        transform: scale(1);
    }
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 16px;
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.success-message {
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 32px;
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.success-back-btn {
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(201, 161, 109, 0.3);
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
    direction: rtl;
}

.success-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 161, 109, 0.4);
    background: var(--primary-gold);
    opacity: 0.9;
}

.success-back-btn .material-icons-outlined {
    font-size: 20px;
    order: -1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive for Success Overlay */
@media (max-width: 768px) {
    .success-content {
        padding: 24px;
    }
    
    .success-checkmark {
        width: 60px;
        height: 60px;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .success-message {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .success-back-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}



