/* =====================================================
   WAFRA REDESIGN - Inspired by Catalystas
   Professional + Warm + Handcrafted
   ===================================================== */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary - Olive/Green family */
    --olive-dark: #4a5d4a;
    --olive: #5c7c5c;
    --olive-light: #7a9a7a;
    --sage: #a8b5a0;

    /* Accent - Warm terracotta/coral */
    --terracotta: #c17f59;
    --terracotta-light: #d4a484;
    --coral: #e8a87c;

    /* Secondary - Subtle purple (feminist nod) */
    --violet: #7d6b8a;
    --violet-light: #a99bb5;

    /* Neutrals */
    --cream: #faf8f5;
    --warm-white: #fffdf9;
    --warm-gray: #6b635a;
    --text-dark: #3d3a36;
    --text-light: #7a756d;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(74, 93, 74, 0.08);
    --shadow-medium: 0 8px 30px rgba(74, 93, 74, 0.12);

    /* Texture */
    --grain-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

body {
    font-family:
        "Source Sans 3",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--warm-white);
    overflow-x: hidden;
}

ul, ol, li {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
.service-link:focus-visible,
.nav-links a:focus-visible,
.language-selector button:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    line-height: 1.3;
}

/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--olive-dark);
    border-bottom: 1px solid rgba(255, 253, 249, 0.08);
    transition: background-color 180ms ease, border-color 180ms ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem clamp(1.5rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo picture {
    display: flex;
}

.logo img {
    height: 54px;
    width: auto;
}

.logo-text {
    color: var(--warm-white);
    font-family: "Fraunces", serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}

.nav-links a {
    color: var(--warm-white);
    font-weight: 500;
    font-size: 0.98rem;
    padding: 0.5rem 0;
    position: relative;
    opacity: 0.92;
    transition: opacity 180ms ease;
    text-decoration: none;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    opacity: 1;
}

@media (min-width: 1024px) {
    .nav-links a.active::after {
        height: 3px;
        background: var(--terracotta);
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--warm-white);
    transition: 0.3s;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--olive-dark);
    background-image:
        radial-gradient(
            900px circle at 18% 12%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0) 55%
        ),
        radial-gradient(
            1000px circle at 78% 70%,
            rgba(0, 0, 0, 0.22) 0%,
            rgba(0, 0, 0, 0) 58%
        ),
        linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 100%);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 Q60 30 50 50 Q40 70 50 90' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E")
        repeat;
    opacity: 0.18;
    transform: rotate(-15deg);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    width: clamp(420px, 62vw, 900px);
    aspect-ratio: 2330 / 1770;
    right: -350px;
    bottom: -150px;
    background: url("../assets/tree.png") no-repeat center / contain;
    opacity: 0.18;
    filter: invert(1) brightness(1.25) contrast(1.02);
    transform: rotate(-60deg);
    transform-origin: 60% 65%;
    will-change: transform;
    z-index: 1;
    pointer-events: none;
}


.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    color: var(--warm-white);
}

.hero-tagline {
    display: inline-block;
    background: var(--terracotta);
    color: var(--warm-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.hero-content h1 span.highlight,
.hero-content h1 .highlight {
    color: var(--coral);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.highlight {
    color: var(--terracotta);
}

.hero-description {
    font-size: 1.125rem;
    opacity: 1;
    color: rgba(255, 253, 249, 0.92);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
    cursor: pointer;
    border: none;
    box-shadow: none;
    text-decoration: none;
}

.btn-primary {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(0, 0, 0, 0.08) 100%
        ),
        var(--terracotta);
    color: var(--warm-white);
}

.btn-primary:hover {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(0, 0, 0, 0.12) 100%
        ),
        var(--terracotta);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.btn-secondary {
    background: transparent;
    color: var(--warm-white);
    border: 2px solid var(--warm-white);
}

.btn-secondary:hover {
    background: rgba(255, 253, 249, 0.96);
    color: var(--olive-dark);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.hero-visual {
    position: relative;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--warm-white);
}

.stat-number {
    font-family: "Fraunces", serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--coral);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.mel-hero-stats .stat-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services-section {
    padding: 5.5rem 2rem;
    background: linear-gradient(
        180deg,
        rgba(168, 181, 160, 0.14) 0%,
        var(--cream) 55%,
        rgba(168, 181, 160, 0.08) 100%
    );
}

.services-section .section-header {
    margin-bottom: 2.75rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Services layout */

.section-label {
    display: inline-block;
    color: var(--terracotta);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--olive-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.55rem;
    grid-auto-rows: 1fr;
    width: 100%;
    max-width: 1120px;
}

.services-section .services-grid {
    margin: 0 auto;
    padding-left: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Make service cards more institutional here */
.services-section .service-card {
    box-shadow: none;
    background: var(--warm-white);
    border: 1px solid rgba(168, 181, 160, 0.4);
    transition: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 256.36px;
    padding: 1.45rem 1.55rem 1.4rem;
    border-radius: 14px;
}

.services-section .service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.2rem;
}

.services-section .service-card h3 {
    font-size: 1.07rem;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

.services-section .service-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.services-section .service-card::before {
    display: none;
}

.services-section .service-card:hover {
    transform: none;
    box-shadow: none;
}

.services-section .service-link {
    margin-top: auto;
}

.services-section .service-link svg {
    transition: none;
}

.services-section .service-card:hover .service-link svg {
    transform: none;
}

.service-card {
    background: var(--warm-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--olive) 0%, var(--terracotta) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--olive-light) 0%,
        var(--olive) 100%
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--warm-white);
    stroke-width: 2;
    fill: none;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--olive-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-card ul,
.service-card ol,
.service-card li {
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--terracotta);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-link svg {
    transform: translateX(4px);
}

/* =====================================================
   APPROACH SECTION
   ===================================================== */
.approach-section {
    padding: 6rem 2rem;
    background: var(--olive-dark);
    color: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.approach-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E")
        repeat;
    opacity: 0.5;
    z-index: 0;
}

.approach-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/tree.png") no-repeat;
    background-position: left -60px top -20px;
    background-size: min(720px, 80vw) auto;
    opacity: 0.22;
    filter: invert(1) brightness(1.25) contrast(1.05);
    z-index: 1;
    pointer-events: none;
}

.approach-tree-fixed {
    position: fixed;
    left: -90px;
    bottom: -20px;
    width: clamp(320px, 75vw, 520px);
    height: clamp(320px, 75vw, 520px);
    background: url("../assets/tree.png") no-repeat left bottom / contain;
    opacity: 0;
    filter: invert(1) brightness(1.25) contrast(1.05);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: none;
}

.approach-tree-fixed.is-visible {
    opacity: 0.22;
}

@media (max-width: 1200px) {
    .approach-section::after {
        display: none;
    }

    .approach-tree-fixed {
        display: block;
    }
}


.approach-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.approach-header {
    text-align: center;
    margin-bottom: 4rem;
}

.approach-header .section-label {
    color: var(--coral);
}

.approach-header .section-title {
    color: var(--warm-white);
}

.approach-header .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.approach-steps::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--terracotta),
        var(--coral),
        var(--terracotta)
    );
    opacity: 0.3;
}

.approach-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--terracotta);
    color: var(--warm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: "Fraunces", serif;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.approach-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.approach-step p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* =====================================================
   EXPERIENCE SECTION (100+ years)
   ===================================================== */
.experience-section {
    padding: 6rem 2rem;
    background: var(--warm-white);
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.experience-content h2 {
    font-size: 2.5rem;
    color: var(--olive-dark);
    margin-bottom: 1.5rem;
}

.experience-content h2 span,
.experience-content h2 .highlight {
    color: var(--terracotta);
}

.experience-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.experience-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--cream);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--olive);
    stroke-width: 2;
    fill: none;
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--olive-dark);
    margin-bottom: 0.25rem;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.team-visual {
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.team-member {
    background: var(--cream);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.team-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--sage);
    transition: all 0.3s ease;
}

.team-member:hover .team-photo {
    border-color: var(--terracotta);
    transform: scale(1.05);
}

.team-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--olive-light), var(--sage));
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fraunces", serif;
    font-size: 1.1rem;
    color: var(--warm-white);
    border: 3px solid var(--sage);
}

.team-member h4 {
    font-size: 0.9rem;
    color: var(--olive-dark);
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
}

.team-member p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}

/* =====================================================
   NAME ORIGIN SECTION
   ===================================================== */
.name-origin-section {
    padding: 5rem 2rem;
    background: var(--warm-white);
    border-top: 1px solid var(--sage);
    border-bottom: 1px solid var(--sage);
}

.name-origin-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.arabic-display {
    text-align: center;
}

.arabic-word {
    font-size: 5rem;
    color: var(--olive);
    font-family: "Noto Sans Arabic", "Arial", sans-serif;
    line-height: 1;
    opacity: 0.8;
}

.name-explanation .section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.name-explanation .section-title span,
.name-explanation .section-title .highlight {
    color: var(--terracotta);
}

.name-explanation p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.name-explanation p em {
    color: var(--olive);
    font-style: normal;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .name-origin-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .arabic-word {
        font-size: 4rem;
    }
}

@media (max-width: 420px) {
    .services-section,
    .approach-section,
    .experience-section,
    .name-origin-section,
    .values-section,
    .cta-section {
        padding: 3.5rem 1.25rem;
    }

    .nav-container {
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo img {
        height: 46px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle span {
        width: 22px;
    }

    .language-selector {
        margin-left: 0.5rem;
        gap: 0.35rem;
    }

    .language-selector button {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-cta .btn {
        width: auto;
        min-width: 0;
        justify-content: center;
    }

    .hero-tagline {
        text-align: center;
        white-space: nowrap;
        font-size: 0.72rem;
        letter-spacing: 0.06em;
        padding: 0.4rem 0.75rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.78rem;
        line-height: 1.45;
    }

}

/* =====================================================
   VALUES SECTION
   ===================================================== */
.values-section {
    padding: 6rem 2rem;
    background: linear-gradient(
        135deg,
        var(--cream) 0%,
        var(--warm-white) 100%
    );
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--warm-white);
    border: 2px solid var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: var(--olive);
    border-color: var(--olive);
}

.value-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--olive);
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease;
}

.value-card:hover .value-icon svg {
    stroke: var(--warm-white);
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--olive-dark);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(
        135deg,
        var(--terracotta) 0%,
        var(--coral) 100%
    );
    text-align: center;
    color: var(--warm-white);
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(0, 0, 0, 0.1) 100%
        ),
        var(--olive-dark);
}

.cta-section .btn-primary:hover {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(0, 0, 0, 0.12) 100%
        ),
        var(--olive);
}

/* Partners Section */
.partners-section {
    padding: 4rem 2rem;
    background: var(--cream);
    border-top: 1px solid var(--sage);
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.partners-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-logo {
    width: 120px;
    height: 80px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-4px);
}

.partner-initials {
    font-family: "Fraunces", serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--olive-dark);
}

/* RTL Support for Partners */
body.rtl .partners-logos {
    direction: rtl;
}

body.rtl .partners-label {
    text-align: right;
}

/* Responsive Partners Section */
@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 1.5rem;
    }

    .partners-logos {
        gap: 1.5rem;
    }

    .partner-logo {
        width: 100px;
        height: 70px;
    }

    .partner-initials {
        font-size: 0.9rem;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--olive-dark);
    color: var(--warm-white);
    padding: 4rem 2rem 2rem;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    opacity: 0.8;
    margin: 1rem 0;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--terracotta);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: var(--warm-white);
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Newsletter Section */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--warm-white);
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.9rem;
    width: 100%;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--terracotta);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--terracotta);
    color: var(--warm-white);
    border: none;
    border-radius: 6px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--olive);
}

/* Newsletter Section - Integrated Design */
.newsletter-section-integrated {
    padding: 2.5rem 2rem;
    background: var(--cream);
    border-top: 1px solid var(--sage);
    text-align: center;
}

.newsletter-section-integrated,
.newsletter-section {
    display: none;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-heading {
    font-family: "Fraunces", serif;
    font-size: 1.25rem;
    color: var(--olive-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.newsletter-subtext {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.newsletter-inline-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-inline-input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: 1px solid var(--sage);
    border-radius: 6px;
    background: var(--warm-white);
    color: var(--text-dark);
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.9rem;
    min-width: 200px;
}

.newsletter-inline-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.newsletter-inline-input:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 2px rgba(92, 124, 92, 0.1);
}

.newsletter-inline-btn {
    padding: 0.65rem 1.5rem;
    background: var(--olive);
    color: var(--warm-white);
    border: none;
    border-radius: 6px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-inline-btn:hover {
    background: var(--terracotta);
}

/* RTL Support for Newsletter */
body.rtl .newsletter-inline-form {
    direction: rtl;
}

body.rtl .newsletter-heading,
body.rtl .newsletter-subtext {
    text-align: right;
}

/* Responsive Newsletter */
@media (max-width: 640px) {
    .newsletter-section-integrated {
        padding: 2rem 1.5rem;
    }

    .newsletter-heading {
        font-size: 1.1rem;
    }

    .newsletter-inline-form {
        flex-direction: column;
    }

    .newsletter-inline-input {
        min-width: unset;
        width: 100%;
    }
}

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

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    opacity: 0.7;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-legal a:hover {
    opacity: 1;
}

@media (min-width: 1024px) {
    .services-section,
    .approach-section,
    .experience-section,
    .name-origin-section,
    .cta-section,
    .partners-section,
    .newsletter-section-integrated {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }

    .section-header,
    .approach-header,
    .experience-content h2,
    .name-explanation .section-title,
    .cta-section h2 {
        margin-bottom: 2.5rem;
    }

    .hero::after {
        width: clamp(480px, 62vw, 900px);
        right: -380px;
        bottom: -110px;
        opacity: 0.32;
        filter: invert(1) brightness(1.95) contrast(1.05);
    }

    .hero {
        background-color: var(--olive-dark);
        background-image: linear-gradient(
                135deg,
                var(--olive-dark) 0%,
                var(--olive) 100%
            ),
            var(--grain-texture);
        background-size: auto, 220px 220px;
        background-blend-mode: normal, soft-light;
    }

    .services-section {
        background-color: var(--cream);
        background-image: var(--grain-texture);
        background-size: 240px 240px;
        background-blend-mode: soft-light;
    }

    .approach-section {
        background-color: var(--olive-dark);
        background-image: var(--grain-texture);
        background-size: 220px 220px;
        background-blend-mode: soft-light;
    }

    .values-section {
        background-color: var(--cream);
        background-image: linear-gradient(
                135deg,
                var(--cream) 0%,
                var(--warm-white) 100%
            ),
            var(--grain-texture);
        background-size: auto, 240px 240px;
        background-blend-mode: normal, soft-light;
    }

    .cta-section {
        background-color: var(--terracotta);
        background-image: linear-gradient(
                135deg,
                var(--terracotta) 0%,
                var(--coral) 100%
            ),
            var(--grain-texture);
        background-size: auto, 220px 220px;
        background-blend-mode: normal, soft-light;
    }

    .footer {
        background-color: var(--olive-dark);
        background-image: var(--grain-texture);
        background-size: 220px 220px;
        background-blend-mode: soft-light;
    }

    .footer {
        padding: 5rem 2rem 2.5rem;
    }

    .footer-content {
        gap: 5rem;
        margin-bottom: 3.5rem;
    }

    .footer-brand p {
        font-size: 1.05rem;
        max-width: 360px;
    }

    .footer h4 {
        font-size: 1.1rem;
        letter-spacing: 0.05em;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
    }

    .footer-bottom p,
    .footer-legal a {
        font-size: 0.95rem;
    }
}

@media (min-width: 1201px) {
    .approach-section::after {
        background-position: left -140px bottom -180px;
        background-size: min(760px, 65vw) auto;
    }
}

/* =====================================================
   LANGUAGE SELECTOR
   ===================================================== */

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1.5rem;
}

.language-selector button {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--warm-white);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector button:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.language-selector button.active {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--warm-white);
}

/* =====================================================
   RTL (Right-to-Left) Support for Arabic
   ===================================================== */

/* Base RTL styles */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-container {
    flex-direction: row-reverse;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .hero-container {
    direction: rtl;
}

body.rtl .hero-content {
    text-align: right;
}

body.rtl .hero-cta {
    flex-direction: row-reverse;
}

body.rtl .section-header {
    text-align: right;
}

body.rtl .section-label,
body.rtl .section-title,
body.rtl .section-subtitle {
    text-align: right;
}

body.rtl .services-grid {
    direction: rtl;
}

body.rtl .services-section .section-header,
body.rtl .services-section .section-label,
body.rtl .services-section .section-title,
body.rtl .services-section .section-subtitle {
    text-align: center;
}

body.rtl .service-card {
    text-align: right;
}

body.rtl .service-link {
    flex-direction: row-reverse;
}

body.rtl .service-link svg {
    transform: scaleX(-1);
}

body.rtl .approach-steps {
    direction: rtl;
}

body.rtl .approach-step {
    text-align: right;
}

body.rtl .experience-container {
    direction: rtl;
}

body.rtl .experience-content {
    text-align: right;
}

body.rtl .experience-features {
    direction: rtl;
}

body.rtl .feature-item {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .team-grid {
    direction: rtl;
}

body.rtl .name-origin-content {
    direction: rtl;
}

body.rtl .name-explanation {
    text-align: right;
}

body.rtl .values-grid {
    direction: rtl;
}

body.rtl .value-card {
    text-align: right;
}

body.rtl .cta-container {
    text-align: right;
}

body.rtl .cta-container h2,
body.rtl .cta-container p {
    text-align: right;
}

body.rtl .footer-content {
    direction: rtl;
}

body.rtl .footer-brand,
body.rtl .footer-nav {
    text-align: right;
}

body.rtl .footer-bottom {
    flex-direction: row-reverse;
}

body.rtl .footer-legal {
    flex-direction: row-reverse;
}

/* Language selector in RTL */
body.rtl .language-selector {
    margin-left: 0;
    margin-right: 1.5rem;
}

/* Hero button icons in RTL */
body.rtl .btn svg {
    transform: scaleX(-1);
}

/* Navigation underline animation for RTL */
body.rtl .nav-links a::after {
    left: auto;
    right: 0;
    transform-origin: right;
}

/* Footer social icons in RTL */
body.rtl .footer-social {
    flex-direction: row-reverse;
}

/* Service card gradient line for RTL */
body.rtl .service-card::before {
    transform-origin: right;
}

body.rtl .service-card:hover::before {
    transform-origin: right;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .approach-steps::before {
        display: none;
    }

    .experience-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 360px;
    }

    .services-section .services-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--olive-dark);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 0;
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero::after {
        width: clamp(380px, 92vw, 760px);
        right: -260px;
        bottom: -260px;
        opacity: 0.2;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-section .section-title {
        font-size: 1.75rem;
    }

    .services-section,
    .approach-section,
    .experience-section,
    .name-origin-section,
    .values-section,
    .cta-section {
        padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-label {
        font-size: 0.9rem;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.15rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .approach-steps {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .experience-features {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    #contact .experience-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #contact .experience-content {
        text-align: left !important;
    }

    #contact .experience-content h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem !important;
    }

    #contact .service-card {
        padding: 2rem !important;
    }

    #contact .service-card h2 {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem !important;
    }

    #contact .feature-item {
        gap: 0.75rem;
    }

    #contact .feature-item h4 {
        font-size: 1rem;
    }

    #contact .feature-item p {
        font-size: 1rem;
        line-height: 1.6;
    }

    #contact .form-group {
        margin-bottom: 1.25rem;
    }

    #contact .form-group label {
        font-size: 1rem;
    }

    #contact .form-group input,
    #contact .form-group textarea {
        font-size: 1rem;
        padding: 0.95rem 1rem;
    }

    #contact .btn {
        font-size: 1rem;
        padding: 0.95rem 1.5rem;
    }

    .nav-links a {
        font-size: 1.05rem;
    }

    .section-subtitle,
    .service-card p,
    .service-card ul,
    .service-card ol,
    .service-card li,
    .approach-step p,
    .experience-content p,
    .feature-item p,
    .name-explanation p,
    .value-card p,
    .cta-section p,
    .newsletter-subtext,
    .footer-brand p,
    .footer-links a,
    .footer-links li,
    .footer-bottom p,
    .footer-legal a,
    .modal-body p,
    .modal-list li {
        font-size: 1rem;
        line-height: 1.7;
    }

    .service-link {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .feature-item h4 {
        font-size: 1rem;
    }

    .team-member h4 {
        font-size: 1rem;
    }

    .team-member p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .newsletter-inline-input,
    .newsletter-inline-btn {
        font-size: 1rem;
    }

    .partners-label {
        font-size: 0.95rem;
    }
}

/* =====================================================
   CONTACT PAGE FORM STYLES
   ===================================================== */
.contact-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--olive-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--sage);
    border-radius: 8px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--warm-white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(92, 124, 92, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

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

.form-status {
    display: none;
    margin-bottom: 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    background: var(--cream);
    color: var(--text-dark);
    border: 1px solid var(--sage);
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    background: #e7f4ea;
    color: #2f6b3c;
    border-color: #bfe3c8;
}

.form-status.is-error {
    background: #fde9e7;
    color: #8a2d2a;
    border-color: #f5c3bd;
}

/* RTL Support for Contact Form */
body.rtl .form-group label {
    text-align: right;
}

body.rtl .form-group input,
body.rtl .form-group textarea {
    text-align: right;
}

/* =====================================================
   SERVICE MODALS
   ===================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--warm-white);
    border-radius: 16px;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    z-index: 2001;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--cream);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--olive-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
}

.modal-close:hover {
    background: var(--terracotta);
    color: var(--warm-white);
}

.modal-header {
    padding: 2.5rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 100%);
    color: var(--warm-white);
    position: relative;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.modal-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--warm-white);
    stroke-width: 2;
    fill: none;
}

.modal-header h2 {
    font-size: 1.75rem;
    margin: 0;
}

.modal-body {
    padding: 2rem 2.5rem;
}

.modal-body h3 {
    color: var(--olive-dark);
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.modal-list li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.6;
    border-bottom: 1px solid var(--cream);
}

.modal-list li:last-child {
    border-bottom: none;
}

.modal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
}

.modal-list li strong {
    color: var(--olive-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.modal-footer {
    padding: 1.5rem 2.5rem 2.5rem;
    display: flex;
    justify-content: center;
}

/* RTL Support for Modals */
body.rtl .modal-close {
    right: auto;
    left: 1rem;
}

body.rtl .modal-list li {
    padding: 0.75rem 1.5rem 0.75rem 0;
    text-align: right;
}

body.rtl .modal-list li::before {
    left: auto;
    right: 0;
}

body.rtl .modal-body h3,
body.rtl .modal-body p {
    text-align: right;
}

/* Responsive Modals */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 2rem 1.5rem 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}
