/* ========== Global Variables & Reset ========== */
:root {
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    --container-width: 1200px;
    --container-padding: 30px;
    --primary-color: #ef4c48;
    --accent-teal: #19747a;
    --text-main: #333333;
    --text-muted: #666666;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #fff;
    transition: background 0.3s ease;
}

/* Bilingual Font Support */
body.en-mode {
    font-family: 'Montserrat', sans-serif;
}

body.ar-mode {
    font-family: 'Cairo', sans-serif;
}

/* ========== Page ========== */
.page {
    width: 100%;
    min-height: 100vh;
    background: #ef4c48;
    display: flex;
    flex-direction: column;
}

/* ========== /* ========== Navbar ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 40px;
    z-index: 100;
    direction: ltr; /* Logo Left, Menu Right */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(239, 76, 72, 0.75);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding: 14px 40px;
}

/* Language Switcher Button Styles */
.lang-switcher {
    margin-left: 20px;
}

.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-toggle-btn:hover {
    background: #fff;
    color: #ef4c48;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar.menu-open .nav-links {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    z-index: 1001 !important;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .navbar.scrolled {
        padding: 10px 20px;
    }

    .nav-links {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: column;
        background: rgba(239, 76, 72, 0.98);
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.logo img {
    height: 38px;
    width: auto;
}

.menu-btn {
    width: 40px;
    height: 24px;
    background-image: url('YS/M6.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    transition: background-image 0.2s ease;
    position: relative;
}

.menu-btn:hover {
    background-image: url('YS/M5.png');
}

.menu-btn.active {
    background-image: none !important;
}

.menu-btn.active::before,
.menu-btn.active::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 3px;
    background-color: #fff;
    right: 0;
    top: 50%;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.menu-btn.active::before {
    transform: translateY(-50%) rotate(45deg);
}

.menu-btn.active::after {
    transform: translateY(-50%) rotate(-45deg);
}

/* ========== /* ========== Hero ========== */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 86px 40px 20px 30px;
}

/* ========== Left: Visual ========== */
.hero-left {
    flex: 0 0 45%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* ========== Left: Visuals ========== */

.visual-wrapper {
    position: relative;
    width: 750px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-combined-bg {
    position: absolute;
    width: 100%;
    height: auto;
    top: 48%;
    left: 38%;
    transform: translate(-50%, -50%);
    opacity: 0.75;
    filter: brightness(0.85) saturate(0.3);
    mix-blend-mode: screen;
    animation: convergePulse 4s ease-in-out infinite;
}

@keyframes convergePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.75;
    }

    50% {
        transform: translate(-50%, -50%) scale(0.92) rotate(1deg);
        opacity: 0.9;
    }
}


.rocket-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.6s ease;
}

.img-rocket {
    width: 230px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* Flames */
.flames {
    display: flex;
    gap: 10px;
    margin-top: -3px;
}

.flame {
    width: 2px;
    background: #fff;
    opacity: 0.65;
    border-radius: 0 0 2px 2px;
    animation: flicker 0.7s ease-in-out infinite alternate;
}

.f1 {
    height: 35px;
    transform: rotate(-18deg);
    animation-delay: 0s;
}

.f2 {
    height: 50px;
    animation-delay: 0.15s;
}

.f3 {
    height: 35px;
    transform: rotate(18deg);
    animation-delay: 0.3s;
}

/* ========== Right: Text ========== */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center text block in right half */
    padding-right: 20px;
    padding-left: 20px;
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align inner items to the right side (RTL context) */
    gap: 18px;
}

h1 {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    letter-spacing: 1px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

[dir="ltr"] h1 {
    text-align: left;
}

.heading-row {
    display: flex;
    white-space: nowrap;
    animation: fadeInUp 0.8s ease-out backwards;
}

[dir="ltr"] .heading-row {
    gap: 12px;
}

.heading-row:nth-child(2) {
    animation-delay: 0.15s;
    margin-top: 5px;
}

.heading-row.justify {
    justify-content: space-between;
}

.desc {
    font-size: clamp(14px, 1.3vw, 18px);
    color: #fff;
    line-height: 1.9;
    text-align: right;
    opacity: 0.93;
    font-weight: 400;
    margin-top: 15px;
    animation: fadeInUp 0.8s ease-out backwards;
    animation-delay: 0.3s;
}

[dir="ltr"] .desc {
    text-align: left;
}

.tagline {
    font-size: clamp(14px, 1.3vw, 18px);
    color: #fff;
    font-weight: 700;
    text-align: right;
    margin-top: 2px;
    animation: fadeInUp 0.8s ease-out backwards;
    animation-delay: 0.45s;
}

[dir="ltr"] .tagline {
    text-align: left;
}

/* ========== CTA Button ========== */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 32px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    transition: all 0.35s ease;
    margin-top: 10px;
    cursor: pointer;
    animation: fadeInUp 0.8s ease-out backwards;
    animation-delay: 0.6s;
}

.cta-label {
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 700;
}

.cta-line {
    display: inline-flex;
    align-items: center;
    width: 50px;
    height: 2px;
    background: #fff;
    position: relative;
}

.cta-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

/* RTL Arrow (Arabic) - pointing left */
html[dir="rtl"] .cta-line::before {
    left: 0;
    right: auto;
    border-top: none;
    border-right: none;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

/* LTR Arrow (English) - pointing right */
html[dir="ltr"] .cta-line::before {
    right: 0;
    left: auto;
    border-bottom: none;
    border-left: none;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}

.cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: scale(1.03);
}

/* ========== Animations ========== */
@keyframes flicker {
    0% {
        opacity: 0.45;
        transform: scaleY(0.85);
    }

    100% {
        opacity: 0.85;
        transform: scaleY(1.15);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 80px 25px 30px;
        gap: 20px;
    }

    /* Images on TOP */
    .visual-wrapper {
        order: 1;
        width: 300px;
        height: 350px;
    }

    /* Text BELOW images */
    .hero-right {
        order: 2;
        align-items: center;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }

    .hero-left {
        flex: none;
        height: auto;
    }

    .img-arch {
        width: 260px;
    }

    .img-clouds {
        width: 130px;
    }

    .img-rocket {
        width: 120px;
    }

    .text-content {
        align-items: center;
        text-align: center;
    }

    h1 {
        text-align: center;
        align-items: center;
    }

    .heading-row {
        justify-content: center;
    }

    .heading-row.justify {
        justify-content: center;
    }

    .desc {
        text-align: center;
    }

    .tagline {
        text-align: center;
    }

    /* === LTR (English) mobile: left-align text but keep block centered === */
    [dir="ltr"] .hero-right {
        padding-left: 20px;
        padding-right: 20px;
    }

    [dir="ltr"] .text-content {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        max-width: 380px; /* Constrain width so left-aligned text stays visually centered overall */
        margin: 0 auto; /* Center the text block */
    }

    [dir="ltr"] h1 {
        text-align: left;
        align-items: flex-start;
    }

    [dir="ltr"] .heading-row,
    [dir="ltr"] .heading-row.justify {
        justify-content: flex-start;
    }

    [dir="ltr"] .desc {
        text-align: left;
    }

    [dir="ltr"] .tagline {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 12px 20px;
        background: rgba(239, 76, 72, 0.95);
    }

    .visual-wrapper {
        width: 220px;
        height: 200px;
    }

    .img-rocket {
        width: 90px;
    }

    h1 {
        font-size: 34px;
    }

    .desc {
        font-size: 13px;
    }

    .cta {
        padding: 12px 35px;
    }

    .cta-label {
        font-size: 18px;
    }

    /* About Section Mobile Adjustments */
    .about {
        padding: 60px 0;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: right;
    }

    .section-subtitle,
    .section-title {
        text-align: right;
        margin-inline-start: 0;
        margin-inline-end: auto;
    }

    .about-text p {
        text-align: right;
        font-size: 15px;
    }

    .highlight-box {
        text-align: right;
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
        border-right: 4px solid #ef4c48;
        border-top: none; /* Keep the side border for consistency with Right-Align */
    }

    [dir="ltr"] .about-container,
    [dir="ltr"] .section-subtitle,
    [dir="ltr"] .section-title,
    [dir="ltr"] .about-text p,
    [dir="ltr"] .highlight-box {
        text-align: left;
    }

    [dir="ltr"] .highlight-box {
        border-right: none;
        border-left: 4px solid #ef4c48;
        border-top: none;
    }

    .magnetic-system {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mag-card {
        text-align: right;
        align-items: flex-start;
    }

    [dir="ltr"] .mag-card {
        text-align: left;
    }

    .mag-icon {
        margin-inline-start: 0;
        margin-inline-end: auto;
    }
}


/* ========== About Section ========== */
.about {
    background-color: #ffffff;
    padding: 100px 0;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

.section-subtitle {
    display: block;
    color: #19747a;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.section-title {
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 900;
    color: #000;
    /* Forced black as requested */
    line-height: 1.15;
    margin-bottom: 35px;
    min-height: 2.3em;
    /* Stability during typing */
    display: inline-block;
}

#about-typewriter::after,
#purpose-typewriter::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: inherit;
    margin-right: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.about-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 25px;
}

/* Quote/Highlight Box */
.highlight-box {
    background-color: #f8f9fa;
    border-right: 4px solid #ef4c48;
    /* RTL */
    padding: 25px 25px 25px 15px;
    border-radius: 12px;
    margin-top: 35px;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.8;
}

/* Role Section Subtitle */
.role-subtitle-container {
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.role-subtitle {
    display: block;
    color: #19747a;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;

    /* Animation initial state */
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}



/* Triggered by the same in-view observer on the cards container */
.magnetic-system.in-view~* .role-subtitle,
.about-cards-wrap:has(.magnetic-system.in-view) .role-subtitle {
    opacity: 1;
    transform: translateY(0);
}



/* ========== Neumorphic Cards System ========== */
.magnetic-system {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin: 40px 0;
}

/* ---- Magnetic Cards (Neumorphic) ---- */
.mag-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    direction: rtl;
    text-align: right;

    /* Reveal: bouncy pop up */
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

/* Hover Elevation & Shake/Vibrate */
.mag-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.04);
    animation: cardShake 0.5s ease-in-out forwards;
}

@keyframes cardShake {
    0% {
        transform: translateY(var(--parallax-y, 0px)) rotate(0deg);
    }

    20% {
        transform: translateY(calc(var(--parallax-y, 0px) - 6px)) rotate(-1.5deg);
    }

    40% {
        transform: translateY(calc(var(--parallax-y, 0px) - 6px)) rotate(1.5deg);
    }

    60% {
        transform: translateY(calc(var(--parallax-y, 0px) - 6px)) rotate(-1deg);
    }

    80% {
        transform: translateY(calc(var(--parallax-y, 0px) - 6px)) rotate(1deg);
    }

    100% {
        transform: translateY(var(--parallax-y, 0px)) rotate(0deg);
    }
}

/* Entrance Delays */
.mag-card-1 {
    transition-delay: 0s;
}

.mag-card-2 {
    transition-delay: 0.1s;
}

.mag-card-3 {
    transition-delay: 0.2s;
}

.mag-card-4 {
    transition-delay: 0.3s;
}

/* Entrance Reveal */
.magnetic-system.in-view .mag-card {
    opacity: 1;
    transform: translateY(var(--parallax-y, 0px)) scale(1);
}

/* Remove transform transition after entrance to enable instant smooth parallax */
.magnetic-system.scroll-ready .mag-card {
    transition: opacity 0.6s ease, box-shadow 0.4s ease;
}

/* ---- Icon Styling and Colors ---- */
.mag-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
    background: #f8f9fa;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;

    opacity: 0;
    transform: scale(0.5);
}

.mag-icon svg {
    width: 24px;
    height: 24px;
}

/* Color Classes */
.color-green .mag-icon,
.color-blue .mag-icon,
.color-orange .mag-icon,
.color-lightgreen .mag-icon {
    color: #ef4c48;
    background: rgba(239, 76, 72, 0.1);
}

/* Card Hover glow on icons */
.color-green:hover .mag-icon,
.color-blue:hover .mag-icon,
.color-orange:hover .mag-icon,
.color-lightgreen:hover .mag-icon {
    box-shadow: 0 0 15px rgba(239, 76, 72, 0.4);
    transform: scale(1.1);
}

/* ---- Titles and Texts ---- */
.mag-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 12px;
    font-family: 'Cairo', sans-serif;
    transition: color 0.3s ease;

    opacity: 0;
    transform: translateY(10px);
}

.mag-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #6b7280;
    font-family: 'Cairo', sans-serif;
    margin: 0;

    opacity: 0;
    transform: translateY(10px);
}

.color-green:hover .mag-title,
.color-blue:hover .mag-title,
.color-orange:hover .mag-title,
.color-lightgreen:hover .mag-title {
    color: #ef4c48;
}

/* ---- Inner Reveal Sequences ---- */
.magnetic-system.in-view .mag-icon {
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transform: scale(1);
}

.magnetic-system.in-view .mag-title,
.magnetic-system.in-view .mag-text {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}

.magnetic-system.in-view .mag-card-1 .mag-icon {
    transition-delay: 0.3s;
}

.magnetic-system.in-view .mag-card-1 .mag-title {
    transition-delay: 0.5s;
}

.magnetic-system.in-view .mag-card-1 .mag-text {
    transition-delay: 0.6s;
}

.magnetic-system.in-view .mag-card-2 .mag-icon {
    transition-delay: 0.4s;
}

.magnetic-system.in-view .mag-card-2 .mag-title {
    transition-delay: 0.6s;
}

.magnetic-system.in-view .mag-card-2 .mag-text {
    transition-delay: 0.7s;
}

.magnetic-system.in-view .mag-card-3 .mag-icon {
    transition-delay: 0.5s;
}

.magnetic-system.in-view .mag-card-3 .mag-title {
    transition-delay: 0.7s;
}

.magnetic-system.in-view .mag-card-3 .mag-text {
    transition-delay: 0.8s;
}

.magnetic-system.in-view .mag-card-4 .mag-icon {
    transition-delay: 0.6s;
}

.magnetic-system.in-view .mag-card-4 .mag-title {
    transition-delay: 0.8s;
}

.magnetic-system.in-view .mag-card-4 .mag-text {
    transition-delay: 0.9s;
}

/* ---- Responsive Fallbacks ---- */
@media (max-width: 992px) {
    .magnetic-system {
        gap: 20px;
    }

    .mag-card {
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    .magnetic-system {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }

    .mag-card {
        padding: 25px 20px;
    }
}

/* About Section Specifics */
.highlight-box {
    background: #f8f9fa;
    border-right: 4px solid #ef4c48;
    /* Red accent */
    padding: 25px 25px 25px 15px; /* RTL padding */
    border-radius: 4px 12px 12px 4px;
    margin-top: 30px;
}


/* Responsive Overrides */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* ========== Animations: Reveal on Scroll ========== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Slide from Right (for Arabic Content) */
.reveal-right {
    transform: translateX(40px);
}

/* Slide from Left (for Images/GIF) */
.reveal-left {
    transform: translateX(-40px);
}

/* Slide from Bottom (for Cards) */
.reveal-up {
    transform: translateY(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Staggered Delays (0.5s increments) */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.5s;
}

.delay-3 {
    transition-delay: 0.8s;
}

.delay-4 {
    transition-delay: 1.1s;
}

.delay-5 {
    transition-delay: 1.4s;
}

.about-cards-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* GIF Styling */
.gif-container {
    width: 100%;
    max-width: 280px;
    /* Reduced size */
    background: transparent;
    /* Removed background */
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    /* Removed shadow */
    overflow: hidden;
    margin: 0 auto;
}

/* ========== LTR Overrides for About Section ========== */
[dir="ltr"] .mag-card {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .highlight-box {
    border-right: none;
    border-left: 4px solid #ef4c48;
    padding: 25px 15px 25px 25px; /* LTR padding */
    text-align: left;
}

[dir="ltr"] .highlight-box p,
[dir="ltr"] .about-text p,
[dir="ltr"] .role-subtitle,
[dir="ltr"] .section-title,
[dir="ltr"] .section-subtitle,
[dir="ltr"] .about-cards-wrap {
    text-align: left;
    direction: ltr;
}

/* Fix responsive layout so that about-container properly goes left-to-right */
@media (max-width: 992px) {
    [dir="ltr"] .about-container,
    [dir="ltr"] .about-content {
        text-align: left;
        align-items: flex-start;
    }
    [dir="ltr"] .highlight-box {
        text-align: left;
    }
}

/* ========== Purpose Section (Vision & Mission) ========== */
.purpose {
    background-color: #19747a;
    /* Secondary Teal */
    padding: 100px 0;
    color: #fff;
    text-align: right;
}

.purpose .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.purpose .section-title {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 60px;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.purpose-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* Rotating white glow border */
.purpose-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: conic-gradient(from var(--border-angle, 0deg),
            transparent 0%,
            transparent 25%,
            rgba(255, 255, 255, 0.9) 30%,
            rgba(255, 255, 255, 1) 35%,
            rgba(255, 255, 255, 0.9) 40%,
            transparent 45%,
            transparent 100%);
    z-index: -2;
    animation: borderRotate 3s linear infinite;
}

/* Inner background to mask the center */
.purpose-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 18px;
    background: rgba(25, 116, 122, 0.95);
    z-index: -1;
}

@keyframes borderRotate {
    0% {
        --border-angle: 0deg;
    }

    100% {
        --border-angle: 360deg;
    }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.purpose-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.purpose-card:hover::before {
    animation-duration: 1.5s;
}

.card-icon {
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 70px;
    /* Fixed height container */
    display: flex;
    align-items: center;
}

.card-icon-gif {
    width: 65px;
    height: auto;
    display: block;
}

.card-icon {
    font-size: 3rem;
    /* Still relevant for emojis like the vision one */
}

/* Icon scaling removed as requested by user */

.purpose-card h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 900;
    color: #fff;
}

.purpose-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 400;
    color: #fff;
}

@media (max-width: 991px) {
    .purpose-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .purpose {
        padding: 60px 0;
    }
    .purpose-card {
        padding: 30px 20px;
        text-align: right;
    }
    [dir="ltr"] .purpose-card {
        text-align: left;
    }
    .card-icon {
        justify-content: flex-start;
        margin: 0 0 20px;
    }
    [dir="ltr"] .card-icon {
        justify-content: flex-start;
    }
}

/* ========== LTR Overrides for Purpose Section ========== */
[dir="ltr"] .purpose {
    text-align: left;
}

/* ========== Pillars Section ========== */
/* ========== Pillars Section ========== */
.pillars {
    background-color: #fcfcfc;
    padding: 100px 0;
    color: #333;
}

.pillars-header {
    margin-bottom: 50px;
    max-width: 900px;
    text-align: right;
}

[dir="ltr"] .pillars-header {
    text-align: left;
}

.pillars .section-subtitle {
    margin-bottom: 8px;
    /* Tighter gap to title */
}

.pillars .section-title {
    margin-bottom: 12px;
    /* Tighter gap to subtitle */
    min-height: auto;
    /* No typewriter here, so no need for fixed height */
}

.pillars-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
    /* Tighter line height like in the image */
    color: #555;
    margin-top: 0;
    /* Let the section-title handle the gap */
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    border-top: 8px solid #ef4c48;
    /* Primary red accent on top */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
    text-align: right;
}

[dir="ltr"] .pillar-card {
    text-align: left;
}

/* Hover effect only for computer (non-touch) screens */
@media (min-width: 769px) {
    .pillar-card:hover {
        transform: scale(1.03);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    }
}


.pillar-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(239, 76, 72, 0.08);
    /* Primary red low opacity */
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.pillar-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
}

.pillar-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.pillar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.pillar-list li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 12px;
    position: relative;
    padding-right: 25px;
    line-height: 1.4;
}

.pillar-list li::before {
    content: '\2190'; /* ← Pointing left for Arabic RTL flow */
    position: absolute;
    right: 0;
    color: #19747a;
    font-weight: bold;
    font-size: 1.1rem;
}

/* LTR: Flip arrows to point right (→) and move to left side */
[dir="ltr"] .pillar-list li {
    padding-right: 0;
    padding-left: 25px;
}

[dir="ltr"] .pillar-list li::before {
    content: '\2192'; /* → Pointing right for English LTR flow */
    right: auto;
    left: 0;
}

@media (max-width: 768px) {
    .pillars {
        padding: 60px 0 50px;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .pillar-card {
        padding: 35px 25px;
        text-align: right;
        align-items: flex-start;
    }
    [dir="ltr"] .pillar-card {
        text-align: left;
        align-items: flex-start;
    }
    .pillar-list li {
        padding-right: 30px;
    }
    [dir="ltr"] .pillar-list li {
        padding-right: 0;
        padding-left: 30px;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        pointer-events: auto !important;
    }
}

/* ========== Services Section (How We Deliver) ========== */
.services {
    background-color: #fff;
    padding: 100px 0;
    color: #333;
    direction: rtl;
    text-align: right;
}

[dir="ltr"] .services {
    direction: ltr;
    text-align: left;
}

.services-header {
    margin-bottom: 60px;
    max-width: 800px;
    margin-right: 0;
    margin-left: auto;
    text-align: right; /* Ensure Arabic is right-aligned */
}

[dir="ltr"] .services-header {
    margin-right: auto;
    margin-left: 0;
    text-align: left; /* Ensure English is left-aligned */
}

.services .section-subtitle {
    color: #19747a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.services .section-title {
    margin-bottom: 12px;
    min-height: auto;
}

.services-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #555;
    margin-top: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.service-column {
    padding-top: 40px; /* Increased padding-top per image */
    position: relative;
    border: none;
    background: transparent;
    will-change: transform;
}

/* Animated border-top line: starts 0% → expands to 100% */
.service-column::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 3px;
    background-color: #19747a;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[dir="ltr"] .service-column::before {
    right: auto;
    left: 0;
}

.service-column.active::before {
    width: 100%;
}

/* Simplified Focus effect: Only subtle opacity shift, no card shadow or lift */
.services-grid:hover .service-column {
    opacity: 0.7;
}

.services-grid:hover .service-column:hover {
    opacity: 1;
}

.service-column-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000; /* Darker more prominent title */
    margin-bottom: 30px; /* Increased margin for air */
    text-align: right;
}

[dir="ltr"] .service-column-title {
    text-align: left;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Bullet points slide-in from right */
.service-list li {
    font-size: 0.95rem;
    color: #555; /* Slightly softer gray per image */
    line-height: 1.8; /* More airy line height */
    margin-bottom: 18px;
    padding-right: 32px;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: right;
}

[dir="ltr"] .service-list li {
    padding-right: 0;
    padding-left: 32px;
    transform: translateX(-30px);
    text-align: left; /* Essential for correct LTR alignment */
}

.service-list li.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.service-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #19747a;
    transform: scale(0);
    transition: transform 0.3s ease;
}

[dir="ltr"] .service-list li::before {
    right: auto;
    left: 0;
}

.service-list li.slide-in::before {
    transform: scale(1);
}

@media (max-width: 768px) {
    .services {
        padding: 40px 0 60px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .service-column {
        padding-top: 25px;
        padding-bottom: 10px;
    }
    .services-grid:hover .service-column {
        opacity: 1;
    }
}

/* ========== Audience Section (Who We Serve) — Circular Orbit ========== */
.audience {
    background-color: #fde8e7;
    padding: var(--section-padding) 0;
    color: #333;

    text-align: start;
    overflow: hidden;
}

@media (max-width: 768px) {
    .audience {
        padding: var(--section-padding-mobile) 0;
    }
}

.audience-header {
    margin-bottom: 50px; /* Increased margin per image */
    max-width: 900px;
    text-align: right; /* Explicitly right-aligned for Arabic */
    margin-right: 0;
    margin-left: auto;
}

[dir="ltr"] .audience-header {
    text-align: left; /* Explicitly left-aligned for English */
    margin-right: auto;
    margin-left: 0;
}

.audience .section-subtitle {
    margin-bottom: 8px;
}

.audience .section-title {
    margin-bottom: 12px;
    min-height: auto;
    display: block;
}

.audience-subtitle {
    font-size: 1.1rem;
    line-height: 1.6; /* Increased line-height for airiness */
    color: #555;
    margin-top: 0;
}

/* ---- Orbit Container ---- */
.orbit-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 700px;
    margin: 0 auto;
}

/* Central Info Area */
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    width: 260px;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 1px dashed rgba(25, 116, 122, 0.25);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.orbit-active-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #19747a;
    margin-bottom: 10px;
    transition: opacity 0.4s ease, transform 0.4s ease;

}

.orbit-active-title.changing {
    opacity: 0;
    transform: translateY(10px);
}

.orbit-active-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    transition: opacity 0.4s ease, transform 0.4s ease;

}

.orbit-active-desc.changing {
    opacity: 0;
    transform: translateY(10px);
}

/* ---- Orbit Track (holds the cards) ---- */
.orbit-track {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Individual Orbit Card ---- */
.orbit-card {
    position: absolute;
    width: 110px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s ease,
        filter 0.5s ease;
    z-index: 2;
    /* Position cards on circle using nth-child */
    --angle: 0deg;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-250px) rotate(calc(-1 * var(--angle)));
}

.orbit-card:nth-child(1) {
    --angle: 0deg;
}

.orbit-card:nth-child(2) {
    --angle: 72deg;
}

.orbit-card:nth-child(3) {
    --angle: 144deg;
}

.orbit-card:nth-child(4) {
    --angle: 216deg;
}

.orbit-card:nth-child(5) {
    --angle: 288deg;
}

/* Non-active cards dim */
.orbit-card:not(.active) {
    opacity: 0.5;
    filter: grayscale(30%);
}

.orbit-card:not(.active):hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

/* ---- Glassmorphism Icon Container ---- */
.orbit-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
}

.orbit-icon-wrap svg {
    width: 38px;
    height: 38px;
}

/* Active card: Pulse + Scale + Glow */
.orbit-card.active .orbit-icon-wrap {
    width: 100px;
    height: 100px;
    background: rgba(239, 76, 72, 0.1);
    border: 2px solid rgba(239, 76, 72, 0.4);
    box-shadow: 0 0 0 0 rgba(239, 76, 72, 0.3),
        0 12px 40px rgba(239, 76, 72, 0.15);
    color: #ef4c48;
    animation: orbitPulse 2s ease-in-out infinite;
}

.orbit-card.active .orbit-icon-wrap svg {
    width: 46px;
    height: 46px;
}

@keyframes orbitPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 76, 72, 0.35),
            0 12px 40px rgba(239, 76, 72, 0.15);
    }

    50% {
        box-shadow: 0 0 0 18px rgba(239, 76, 72, 0),
            0 12px 40px rgba(239, 76, 72, 0.25);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 76, 72, 0),
            0 12px 40px rgba(239, 76, 72, 0.15);
    }
}

/* Card label */
.orbit-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    white-space: nowrap;
    transition: color 0.4s ease;
}

.orbit-card.active .orbit-card-label {
    color: #ef4c48;
    font-weight: 800;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .orbit-container {
        max-width: 380px;
        height: 380px;
        margin-inline: auto;
    }

    .orbit-ring, .orbit-track {
        width: 280px;
        height: 280px;
    }

    .orbit-card {
        width: 70px;
        height: 70px;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-140px) rotate(calc(-1 * var(--angle)));
    }

    .orbit-center {
        width: 160px;
    }

    .orbit-active-title {
        font-size: 1.1rem;
    }

    .orbit-active-desc {
        font-size: 0.8rem;
    }

    .orbit-card-label {
        font-size: 0.55rem;
    }

    /* Audience header alignment */
    .audience-header {
        text-align: right;
    }

    [dir="ltr"] .audience-header {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .orbit-container {
        max-width: 300px;
        height: 300px;
    }

    .orbit-ring, .orbit-track {
        width: 220px;
        height: 220px;
    }

    .orbit-card {
        width: 60px;
        height: 60px;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-110px) rotate(calc(-1 * var(--angle)));
    }

    .orbit-center {
        width: 130px;
    }

    .orbit-active-title {
        font-size: 1rem;
    }

    .orbit-active-desc {
        font-size: 0.75rem;
    }
}

/* ========== Values Section (What We Stand For) ========== */
.values {
    background-color: rgba(147, 192, 196, 0.25);
    padding: var(--section-padding) 0;
    color: #333;

    text-align: start;
}

@media (max-width: 768px) {
    .values {
        padding: var(--section-padding-mobile) 0;
    }
}

.values-header {
    margin-bottom: 50px;
    max-width: 900px;
    text-align: right; /* Explicit right-alignment for Arabic */
    margin-right: 0;
    margin-left: auto;
}

[dir="ltr"] .values-header {
    text-align: left; /* Explicit left-alignment for English */
    margin-right: auto;
    margin-left: 0;
}

.values .section-subtitle {
    margin-bottom: 8px;
}

.values .section-title {
    margin-bottom: 12px;
    min-height: auto;
    display: block;
}

.values-subtitle {
    font-size: 1.1rem;
    line-height: 1.6; /* Increased line-height for better spacing */
    color: #555;
    margin-top: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-card {
    /* We handle the background via ::after now to mask the center */
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Spacing between icon and text */

    /* For rotating border */
    position: relative;
    z-index: 1;
}

/* Rotating glow border */
.value-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: conic-gradient(from var(--border-angle, 0deg),
            transparent 0%,
            transparent 45%,
            rgba(25, 116, 122, 0.4) 48%,
            rgba(25, 116, 122, 1) 50%,
            rgba(25, 116, 122, 0.4) 52%,
            transparent 55%,
            transparent 100%);
    z-index: -2;
    animation: borderRotate 4s linear infinite;
}

/* Inner background to mask the center */
.value-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 14px;
    background: #f9f9f9;
    z-index: -1;
    transition: background 0.3s ease;
}

/* Card Hover */
.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* Speed up border rotation on hover */
.value-card:hover::before {
    animation-duration: 2s;
}

/* SVG Icon Container */
.value-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #19747a;
    /* Teal accent color */
    background-color: transparent;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease;
    cursor: default;
}

.value-icon-box svg {
    width: 34px;
    height: 34px;
}

/* 2, 3, 4: Hover Effect - Icon Lift, Subtle Glow, Scale */
.value-card:hover .value-icon-box {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(25, 116, 122, 0.2);
}

/* 5: Text Fade-in Container */
.value-text-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.value-card.active .value-text-content {
    opacity: 1;
}

/* 1: Fade-in + Slide Up Staggered Delays (0.1s steps) */
.reveal.d-1 {
    transition-delay: 0.1s;
}

.reveal.d-2 {
    transition-delay: 0.2s;
}

.reveal.d-3 {
    transition-delay: 0.3s;
}

.reveal.d-4 {
    transition-delay: 0.4s;
}

/* 5: Text fading in 0.2s AFTER the card appears */
.value-card.active.d-1 .value-text-content {
    transition-delay: 0.3s;
}

.value-card.active.d-2 .value-text-content {
    transition-delay: 0.4s;
}

.value-card.active.d-3 .value-text-content {
    transition-delay: 0.5s;
}

.value-card.active.d-4 .value-text-content {
    transition-delay: 0.6s;
}

.value-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #19747a;
    margin-bottom: 12px;
}

.value-card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== CTA Banner Section ========== */
.cta-banner {
    background-color: #ef4c48;
    padding: var(--section-padding) 0;
    text-align: center;

}

@media (max-width: 768px) {
    .cta-banner {
        padding: var(--section-padding-mobile) 0;
    }
}

.cta-banner-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 20px;
}

.cta-banner-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.cta-banner-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.cta-btn-filled {
    background: #fff;
    color: #ef4c48;
    border: 2px solid #fff;
}

.cta-btn-filled:hover {
    background: transparent;
    color: #fff;
}

.cta-btn-outlined {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-btn-outlined:hover {
    background: #fff;
    color: #ef4c48;
}

@media (max-width: 480px) {
    .cta-banner-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================================================
   COMPREHENSIVE RESPONSIVE ADJUSTMENTS
   ======================================================================== */

/* ---------- TABLET (max-width: 1024px) ---------- */
@media (max-width: 1024px) {

    /* Global section padding */
    .about,
    .purpose,
    .pillars,
    .services,
    .audience,
    .values {
        padding: 75px 0;
    }

    /* Hero */
    .hero {
        padding: 100px 0 30px;
    }

    .visual-wrapper {
        width: 400px;
        height: 380px;
    }

    h1 {
        font-size: clamp(28px, 6vw, 42px);
    }

    .desc {
        font-size: 15px;
        line-height: 1.7;
    }

    .tagline {
        font-size: 15px;
    }

    .cta {
        padding: 12px 30px;
        gap: 14px;
    }

    .cta-label {
        font-size: 18px;
    }

    /* About section */
    .about-container {
        gap: 40px;
    }

    .about-text p {
        font-size: 16px;
        text-align: right;
    }

    .highlight-box {
        text-align: right;
        padding: 25px;
    }

    [dir="ltr"] .about-text p,
    [dir="ltr"] .highlight-box {
        text-align: left;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .role-card {
        padding: 30px 25px;
    }

    .about-cards-wrap {
        text-align: right;
    }

    [dir="ltr"] .about-cards-wrap {
        text-align: left;
    }

    /* Purpose */
    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .purpose-card {
        padding: 35px 25px;
        text-align: right;
    }

    [dir="ltr"] .purpose-card {
        text-align: left;
    }

    .purpose-card h3 {
        font-size: 1.1rem;
    }

    .purpose-card p {
        font-size: 1.05rem;
    }

    /* Pillars / Services */
    .pillars-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 50px; /* Increased from 30px for better separation on tablet/mobile */
    }

    .pillar-card {
        padding: 35px 25px;
    }

    .pillar-number {
        font-size: 3.5rem;
    }

    .pillar-title {
        font-size: 1.4rem;
    }

    /* Services / Pillars / Audience / Values subtitles: follow section alignment */
    .services-subtitle,
    .pillars-subtitle {
        font-size: 1rem;
    }

    .audience-subtitle,
    .values-subtitle {
        font-size: 1rem;
    }

    .service-column {
        padding: 30px 20px;
        text-align: right;
    }

    [dir="ltr"] .service-column {
        text-align: left;
    }

    .service-column-title {
        text-align: right;
    }

    [dir="ltr"] .service-column-title {
        text-align: left;
    }

    /* Audience / Orbit */
    .audience {
        padding: 80px 0 100px;
    }

    .audience-header {
        text-align: right;
    }

    [dir="ltr"] .audience-header {
        text-align: left;
    }

    /* Values */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .value-card {
        padding: 30px 25px;
    }

    .value-icon-box {
        width: 48px;
        height: 48px;
    }

    .value-icon-box svg {
        width: 32px;
        height: 32px;
    }

    .value-card-title {
        font-size: 1rem;
    }

    .value-card-desc {
        font-size: 0.95rem;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 80px 20px;
    }

    .cta-banner-title {
        font-size: clamp(26px, 6vw, 36px);
    }

    .cta-banner-desc {
        font-size: 1rem;
    }
}

/* ---------- SMALL PHONES (max-width: 480px) ---------- */
@media (max-width: 480px) {

    /* Global section padding for small phones */
    .about,
    .audience,
    .values,
    .purpose,
    .pillars,
    .services {
        padding: 45px 0;
    }
    .pillars { padding: 45px 0 35px; }
    .services { padding: 35px 0 50px; }

    .container {
        width: 92%;
    }

    /* Navbar */
    .navbar {
        direction: ltr !important;
        padding: 12px 16px;
    }

    .logo img {
        height: 30px;
    }

    /* Hero */
    .hero {
        padding: 90px 0 25px;
    }

    .visual-wrapper {
        width: 200px;
        height: 180px;
    }

    .img-rocket {
        width: 80px;
    }

    h1 {
        font-size: clamp(24px, 7vw, 34px);
    }

    .desc {
        font-size: 13px;
    }

    .cta {
        padding: 12px 35px;
    }

    .cta-label {
        font-size: 18px;
    }

    /* About */
    .about-text p {
        font-size: 14px;
    }

    .highlight-box {
        padding: 16px;
    }

    .highlight-box p {
        font-size: 14px;
    }

    .role-card {
        padding: 20px 16px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-text {
        font-size: 13px;
    }

    /* Purpose */
    .purpose .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }

    .purpose-card {
        padding: 20px 16px;
    }

    /* Cards: proper spacing on mobile */
    .pillar-card {
        padding: 25px 20px;
    }

    .pillars-grid {
        gap: 40px; /* Increased from 20px for clear card separation on small phones */
    }

    .pillar-number {
        font-size: 2.5rem;
    }

    .pillar-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .pillar-desc {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }

    /* Services: spacing between cards on mobile */
    .services-grid {
        gap: 25px;
    }

    .service-column {
        padding: 20px 15px;
    }

    /* Audience section text alignment on small phones */
    .audience-header {
        text-align: right;
    }

    [dir="ltr"] .audience-header {
        text-align: left;
    }

    /* Audience / Orbit */
    .audience {
        padding: 45px 0 60px;
    }

    .orbit-center {
        width: 130px;
    }

    .orbit-active-title {
        font-size: 0.9rem;
    }

    .orbit-active-desc {
        font-size: 0.68rem;
        line-height: 1.4;
    }

    .orbit-card-label {
        font-size: 0.5rem;
    }

    /* Values: horizontal card layout on mobile (icon + text side by side) */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .value-card {
        flex-direction: row;
        text-align: right;
        padding: 20px 18px;
        gap: 15px;
        align-items: flex-start;
    }

    [dir="ltr"] .value-card {
        text-align: left;
    }

    .value-icon-box {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    .value-icon-box svg {
        width: 26px;
        height: 26px;
    }

    .value-card-title {
        font-size: 0.9rem;
    }

    .value-card-desc {
        font-size: 0.82rem;
    }

    /* Values header alignment on phone */
    .values-header {
        text-align: right;
    }

    [dir="ltr"] .values-header {
        text-align: left;
    }

    /* Services header alignment on phone */
    .services-header {
        text-align: right;
    }

    [dir="ltr"] .services-header {
        text-align: left;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 45px 0;
    }

    .cta-banner-title {
        font-size: clamp(20px, 5vw, 28px);
    }

    .cta-banner-desc {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }

    .cta-btn {
        padding: 12px 28px;
        font-size: 0.88rem;
    }
}

/* ========== Footer ========== */
.site-footer {
    background-color: #19747a;
    padding: 30px 0;
    width: 100%;
    margin-top: 0;
    direction: ltr;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 35px;
    width: auto;
}

.footer-logo .footer-brand {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;

}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
    text-align: center;
}

.footer-links a:hover {
    opacity: 0.8;
}

@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 20px;
    }
}

/* ========== Accessibility: Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    .pillar-card,
    .pillar-item {
        animation: none !important;
        opacity: 1 !important;
        transition: none !important;
        transform: none !important;
    }

    .pillar-card:hover {
        transform: none !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03) !important;
    }
}

html[dir="rtl"] .nav-links,
html[dir="rtl"] .startup-nav-links,
html[dir="rtl"] .growth-nav-links {
    direction: rtl !important;
}

/* ==========================================
   CONTACT US MODAL STYLES
========================================== */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-body {
    background: #f8f9fa;
    width: 100%;
    max-width: 650px;
    height: 100vh; 
    border-radius: 0;
    position: absolute;
    top: 0;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* LTR (English): Pinned to the Right */
    right: 0;
    left: auto;
    transform: translateX(100%);
}

.contact-modal-overlay.active .contact-modal-body {
    transform: translateX(0);
}

/* RTL (Arabic): Pinned to the Left */
html[dir="rtl"] .contact-modal-body {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}
html[dir="rtl"] .contact-modal-overlay.active .contact-modal-body {
    transform: translateX(0);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

html[dir="ltr"] .modal-close-btn {
    right: auto;
    left: 20px;
}

.modal-close-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #ef4c48;
}

.modal-accent-line {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #ef4c48, #19747a);
    flex-shrink: 0;
}

.modal-content-wrap {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 6px);
}

@media (max-width: 600px) {
    .modal-content-wrap {
        padding: 25px 20px;
    }
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    text-align: center;
}

.modal-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.6;
    text-align: center;
}

html[dir="ltr"] .modal-title,
html[dir="ltr"] .modal-subtitle {
    text-align: center;
}

/* Modal Form Custom Scroll Area */
.form-scrollable-area {
    flex: 1; /* take remaining height */
    overflow-y: auto;
    padding-right: 15px;
    /* Custom Scrollbar */
}
html[dir="ltr"] .form-scrollable-area {
    padding-right: 0;
    padding-left: 15px;
}

.form-scrollable-area::-webkit-scrollbar {
    width: 6px;
}
.form-scrollable-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.form-scrollable-area::-webkit-scrollbar-thumb {
    background: #ef4c48;
    border-radius: 4px;
}
.form-scrollable-area::-webkit-scrollbar-thumb:hover {
    background: #d83d38;
}

/* Form Fields */
.contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.form-group-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
@media (max-width: 500px) {
    .form-group-row {
        flex-direction: column;
    }
}

.form-input-box {
    position: relative;
    width: 100%;
    margin-bottom: 22px;
}

.form-input {
    width: 100%;
    padding: 16px 45px 16px 16px; /* Right padding for icon in RTL */
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #ffffff;
    font-family: inherit;
    transition: all 0.3s ease;
}

html[dir="ltr"] .form-input {
    padding: 16px 16px 16px 45px; /* Left padding for icon in LTR */
}

.form-input::placeholder {
    color: #aaa;
}

.form-input:focus {
    outline: none;
    border-color: #ef4c48;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(239, 76, 72, 0.1);
}

/* Input Icons */
.input-icon {
    position: absolute;
    top: 50%;
    right: 15px; /* RTL - icon on right */
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #19747a;
    pointer-events: none;
    transition: color 0.3s;
}

html[dir="ltr"] .input-icon {
    right: auto;
    left: 15px;
}

.form-input:focus + .input-icon {
    color: #ef4c48;
}

.textarea-box .input-icon {
    top: 15px;
    transform: none;
}

.textarea-box textarea {
    resize: vertical;
    min-height: 100px;
}

/* Select Wrappers */
.form-select-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 22px;
}

.form-select {
    width: 100%;
    appearance: none;
    padding: 16px 16px 16px 45px; /* Left space for dropdown arrow in RTL */
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #555;
    background: #ffffff;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

html[dir="ltr"] .form-select {
    padding: 16px 45px 16px 16px; /* Right space for dropdown arrow in LTR */
}

.form-select:focus {
    outline: none;
    border-color: #ef4c48;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(239, 76, 72, 0.1);
}

.select-arrow {
    position: absolute;
    top: 50%;
    left: 15px; /* RTL arrow on left */
    transform: translateY(-50%);
    width: 0; 
    height: 0; 
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #19747a;
    pointer-events: none;
}

html[dir="ltr"] .select-arrow {
    left: auto;
    right: 15px;
}

.mandatory-note {
    font-size: 13px;
    color: #ef4c48;
    margin-bottom: 20px;
    text-align: right;
}

html[dir="ltr"] .mandatory-note {
    text-align: left;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    text-align: right;
    direction: rtl; /* enforce RTL aligning */
}

html[dir="ltr"] .custom-checkbox {
    text-align: left;
    direction: ltr;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    margin-top: 2px;
}

.custom-checkbox input:checked ~ .checkmark {
    background: #ef4c48;
    border-color: #ef4c48;
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Submit Button Override */
.cta-submit-btn {
    width: 100%;
    margin-top: 15px;
    background: #ef4c48;
    border: none;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-submit-btn:hover {
    background: #d83d38;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 76, 72, 0.3);
}

.cta-submit-btn:active {
    transform: translateY(0);
}

/* ==========================================
   JOIN US WIZARD PAGE
========================================== */
.join-page {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.join-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 10;
}

.join-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #444;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s;
}
.join-back-btn:hover {
    color: #ef4c48;
}
.join-back-btn svg {
    width: 18px;
    height: 18px;
}

.join-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 100px 60px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 900px) {
    .join-container {
        grid-template-columns: 1fr;
        padding: 20px 30px 40px;
    }
}

/* Intro Panel (Right in RTL, Left in LTR) */
.join-intro-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
}

.wizard-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #19747a;
    border: 1px solid #19747a;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    align-self: flex-start;
}
html[dir="ltr"] .wizard-badge {
    align-self: flex-start;
}

.wizard-title {
    font-size: clamp(26px, 3.5vw, 40px); /* Smaller font */
    font-weight: 900;
    color: #222;
    line-height: 1.5; /* Better line spacing for Arabic */
    margin-bottom: 25px; /* Reduced margin */
}

.highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #19747a;
    border: 1px solid #19747a;
    padding: 4px 20px;
    border-radius: 100px;
    margin-top: 10px;
    white-space: nowrap;
}
.highlight-tag .arrow-icon {
    width: 20px;
    height: 20px;
}

/* Stepper */
.wizard-stepper {
    display: flex;
    flex-direction: column;
    gap: 4px; /* lines take up the rest of the flow */
    margin-top: 10px; /* Reduced margin */
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced gap between circle and label */
    opacity: 0.6;
    transition: opacity 0.3s;
}

.step-item.active {
    opacity: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    background: #fff;
    flex-shrink: 0;
}

.step-item.active .step-circle {
    background: #19747a;
    border-color: #19747a;
    color: #fff;
}

.step-label {
    font-size: 16px;
    font-weight: 700;
    color: #666;
}
.step-item.active .step-label {
    color: #19747a;
}

.step-line {
    width: 1px;
    height: 25px; /* Reduced line height */
    background: #e0e0e0;
    margin: 2px 15px; /* Reduced vertical spacing */
}

/* Make sure line aligns correctly based on direction */
html[dir="rtl"] .step-line {
    margin-right: 15px;
    margin-left: 0;
}
html[dir="ltr"] .step-line {
    margin-left: 15px;
    margin-right: 0;
}


/* Options Panel (Left in RTL, Right in LTR) */
.join-options-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.join-card {
    background: #ef4c48; /* Brand Identity Primary */
    width: 100%;
    max-width: 500px;
    border-radius: 35px;
    padding: 60px 40px;
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 60px -15px rgba(239, 76, 72, 0.4);
}

.card-main-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.select-option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.05); /* Slight tint to differentiate from red bg */
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    padding: 10px 10px 10px 30px; /* LTR padding */
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

html[dir="rtl"] .select-option-btn {
    padding: 10px 30px 10px 10px; /* Big padding on right (text side), small padding on left (icon side) */
}

.select-option-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.option-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    font-family: inherit;
}

.option-illus {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.option-illus svg {
    width: 100%;
    height: 100%;
}

/* ============================
   JOIN US - STEP 2 CONTENT
============================ */
.step-content {
    width: 100%;
    transition: opacity 0.4s ease;
}

.step-2-inner {
    background: #f8f9fa; /* Standard light theme container matching index forms */
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
}

.step2-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.step2-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.5;
}

.sector-scroll-wrap {
    max-height: 420px;
    overflow-y: auto;
    padding-left: 15px; /* RTL padding for default form scroll */
    margin: 0 -15px 0 0;
}

html[dir="ltr"] .sector-scroll-wrap {
    padding-left: 0;
    padding-right: 15px;
    margin: 0 0 0 -15px;
}

.sector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-bottom: 20px;
}

.sector-grid.single-col {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 500px) {
    .sector-grid {
        grid-template-columns: 1fr;
    }
}

.sector-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 700;
    font-family: inherit;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sector-btn:hover {
    border-color: rgba(25, 116, 122, 0.4);
    background: #fcfcfc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Active / Selected Sector */
.sector-btn.selected {
    border: 2px solid #19747a; /* Brand Identity Teal */
    background: #ffffff;
    color: #19747a;
    box-shadow: 0 4px 15px rgba(25, 116, 122, 0.15);
}

.sector-icon-box {
    color: #888;
    display: flex;
    transition: color 0.3s ease;
    opacity: 0.7;
}

/* Make sure line aligns correctly based on direction */
html[dir="rtl"] .step-line {
    margin-right: 15px;
    margin-left: 0;
}
html[dir="ltr"] .step-line {
    margin-left: 15px;
    margin-right: 0;
}


/* Options Panel (Left in RTL, Right in LTR) */
.join-options-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.join-card {
    background: #ef4c48; /* Brand Identity Primary */
    width: 100%;
    max-width: 500px;
    border-radius: 35px;
    padding: 60px 40px;
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 60px -15px rgba(239, 76, 72, 0.4);
}

.card-main-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.select-option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.05); /* Slight tint to differentiate from red bg */
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    padding: 10px 10px 10px 30px; /* LTR padding */
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Cleaned up redundant Navbar blocks */

.option-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    font-family: inherit;
}

.option-illus {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.option-illus svg {
    width: 100%;
    height: 100%;
}

/* ============================
   JOIN US - STEP 2 CONTENT
============================ */
.step-content {
    width: 100%;
    transition: opacity 0.4s ease;
}

.step-2-inner {
    background: #f8f9fa; /* Standard light theme container matching index forms */
    width: 100%;
    max-width: 600px;
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
}

.step2-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.step2-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.5;
}

.sector-scroll-wrap {
    max-height: 420px;
    overflow-y: auto;
    padding-left: 15px; /* RTL padding for default form scroll */
    margin: 0 -15px 0 0;
}

html[dir="ltr"] .sector-scroll-wrap {
    padding-left: 0;
    padding-right: 15px;
    margin: 0 0 0 -15px;
}

.sector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-bottom: 20px;
}

.sector-grid.single-col {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

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

.sector-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 20px;
    font-weight: 700;
    font-family: inherit;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sector-btn:hover {
    border-color: rgba(25, 116, 122, 0.4);
    background: #fcfcfc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Active / Selected Sector */
.sector-btn.selected {
    border: 2px solid #19747a; /* Brand Identity Teal */
    background: #ffffff;
    color: #19747a;
    box-shadow: 0 4px 15px rgba(25, 116, 122, 0.15);
}

.sector-icon-box {
    color: #888;
    display: flex;
    transition: color 0.3s ease;
    opacity: 0.7;
}

.sector-btn.selected .sector-icon-box {
    color: #19747a;
    opacity: 1;
}
