/* Global Precision Design System - Unified Atmosphere & Slanted Path */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

:root {
    --bg-dark: #010A14;
    /* Darker teal-tinted background */
    --accent-teal: #1FB2A3;
    --accent-purple: #863EA1;
    --text-white: #FFFFFF;
    --text-gray: #B8C1EC;
    --nav-pill-bg: rgba(10, 15, 20, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* html {
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden !important;
    position: relative;
    max-width: 100vw;
    margin: 0;
    padding: 0;
} */

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: #010A14;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden !important;
    /* إجبار منع التمرير الجانبي */
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* إجبار الصفحة على عدم الاعتراف بأي بكسل خارج العرض */
body,
html {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
    max-width: 100vw !important;
}

/* هذا هو الحل السحري: أي قسم داخل الموقع يجب أن يقص أي محتوى خارج حدوده */
header,
footer {
    width: 100%;
    position: relative;
}

section,
main {
    width: 100%;
    overflow: hidden !important;
    position: relative;
}

section {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden;
    /* يمنع المكونات الداخلية من دفع حدود القسم */
}

section {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden;
    /* يمنع المكونات الداخلية من دفع حدود القسم */
}

.container {
    position: relative;
    /* الحل السحري لمنع الإزاحة الجانبية */
    flex-shrink: 0;
    width: 100% !important;
    padding: 0 20px !important;
    /* Global padding for mobile safety */
}

@media (min-width: 1200px) {
    .container {
        padding: 0 !important;
        /* Clear padding if we want it strictly for larger containers or handled elsewhere */
    }
}

/* FIXED GLOBAL BACKROUND GLOWS - Numbered for easy adjustment */
.bg-glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* عرض الشاشة بالكامل */
    height: 100%;
    overflow: hidden;
    /* أي وهج يخرج عن هذا الإطار سيختفي ولن يسبب ميلان */
    pointer-events: none;
    /* لضمان عدم إعاقة النقر على الأزرار */
    z-index: -1;
    background: #010A14;
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1FB2A3 0%, transparent 80%);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

/* Numbered Blobs - Precise Positions per Section */
/* 1- اعلى يسار زاوية قسم الرئيسية */
.blob-1 {
    top: -5%;
    left: -18%;
    width: 1000px;
    height: 1000px;
}

/* 2- اسفل يمين قسم الرئيسية ويمتد الى منتصف قسم كيف نفرق */
.blob-2 {
    top: 65vh;
    right: -30%;
    width: 1200px;
    height: 1200px;
}

.blob-2-5 {
    top: 135vh;
    right: 20%;
    width: 1200px;
    height: 1200px;
}

/* 3- اسفل يسار قسم كيف نفرق */
.blob-3 {
    top: 275vh;
    left: -15%;
    width: 1000px;
    height: 1000px;
}

/* 4- يسار قسم خدماتنا */
.blob-4 {
    top: 470vh;
    left: -10%;
    width: 900px;
    height: 900px;
}

/* 5- اسفل يمين قسم خدماتنا */
.blob-5 {
    top: 370vh;
    right: -10%;
    width: 1000px;
    height: 1000px;
}

/* 6- وهجين في الفوتر */
.blob-6 {
    /* bottom: 1930px;
    left: 40%;
    width: 1100px;
    height: 1100px; */
    top: 550vh;
    right: -10%;
    width: 1000px;
    height: 1000px;
}

.blob-7 {
    bottom: 300px;
    right: 65%;
    width: 900px;
    height: 900px;
    opacity: 0.4;
}

.blob-8 {
    bottom: -290px;
    right: -10%;
    width: 1100px;
    height: 900px;
    opacity: 0.5;
}

.blob-9 {
    bottom: -300px;
    right: 40%;
    width: 1200px;
    height: 800px;
    opacity: 0.5;
}

.blob-10 {
    bottom: 950px;
    right: -5%;
    width: 900px;
    height: 900px;
    opacity: 0.3;
}

.blob-11 {
    bottom: 2990px;
    right: 25%;
    width: 900px;
    height: 900px;
    opacity: 0.3;
}

.blob-12 {
    bottom: 1850px;
    right: 65%;
    width: 900px;
    height: 900px;
    opacity: 0.3;
}

.glow-purple {
    background: radial-gradient(circle, rgba(134, 62, 161, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
}

/* Header Config */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo-container {
    order: -1;
}

.logo img {
    height: 100px;
}

/* Fix transparency for Contact Button */
.header-cta .btn-svg {
    background: #010A14;
    border-radius: 50px;
    display: block;
}

.nav-pill {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 20, 0.3);
    /* Slightly more transparent */
    backdrop-filter: blur(40px) saturate(250%);
    -webkit-backdrop-filter: blur(40px) saturate(250%);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-pill a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    transition: 0.3s;
    opacity: 0.8;
}

.nav-pill a:hover,
.nav-pill a.active {
    opacity: 1;
    color: var(--accent-teal);
    background: rgba(255, 255, 255, 0.05);
}

.header-cta {
    order: 3;
}

/* Side Dots Refinement */
.side-dots {
    position: fixed;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    cursor: pointer;
    transition: 0.4s;
}

.dot.active {
    height: 30px;
    background: #FFFFFF;
}

.btn-svg {
    display: inline-block;
    transition: transform 0.3s;
}

.btn-svg:hover {
    transform: scale(1.05);
}

.btn-svg img {
    height: 50px;
    width: auto;
    display: block;
}

.btn-rounded {
    background: rgba(31, 178, 163, 0.15);
    border: 1px solid #2c9cc4;
    color: var(--text-white);
    padding: 11px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Unified Section Spacing - No Backgrounds */
section {
    position: relative;
    background: transparent !important;
    padding: -20px 0;
    margin: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    direction: rtl;
    position: relative;
}

.hero-content {
    max-width: 800px;
    text-align: right;
    z-index: 10;
}

.heading-main {
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.1;
}

.gradient-teal {
    color: var(--accent-teal);
}

.gradient-purple {
    color: var(--accent-purple);
}

.hero-main-svg {
    width: 550px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0px;
}

/* Removed here, defined below with refined styles */
.repeated-stack {
    display: none;
    /* Logic moved to new block at bottom for override if needed, or replace block */
}

.hero-body {
    margin-top: 2rem;
}

.hero p {
    font-size: 1.1rem;
    color: #e6e6e6;
    line-height: 1.8;
}

.custom-comma {
    display: inline-block;
    color: var(--accent-teal);
    font-size: 4.5rem;
    font-weight: bold;
    line-height: 0;
    vertical-align: middle;
    margin-top: -28px;


    /* margin-right: 1px; */
    /* text-shadow: 0 0 15px rgba(31, 178, 163, 0.4); */
}

.hero-footer {
    position: absolute;
    bottom: 50px;
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.stat-box {
    text-align: right;
}

.stat-box .number {
    font-size: 1.7rem;
    font-weight: 500;
}

.stat-box .label {
    margin-top: -10%;
    font-size: 1rem;
    color: #ebebebd4;
}

/* Timeline Wrapper - Slanted S-Curve Design */
.process {
    padding-top: 90px;
}

.section-header {
    text-align: center;
    margin-bottom: 120px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 400;
    margin-top: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-svg {
    height: 1em;
    vertical-align: middle;
    width: auto;
}

.section-subtext {
    color: rgba(235, 234, 234, 0.622);
}

.differ-question-mark {
    height: 1.5em;
    /* Adjusted for better alignment scale */
    width: auto;
    margin: 0 -10px;
    /* Standardized gap */
    display: inline-block;
    vertical-align: middle;
}

.differ-question-mark.inverted {
    filter: hue-rotate(110deg) brightness(1.5) drop-shadow(0 0 10px #bc13fe) !important;
    /* Ensure the purple neon effect is visible */
}

/* Adjusting the inverted one specifically since it might need more precise alignment */
.differ-question-mark.inverted {
    height: 1.4em;
    /* Slightly different scale to match visually if needed */
    margin-bottom: -5px;
    /* Manual vertical offset for perfect alignment */
    filter: hue-rotate(110deg) brightness(1.5) drop-shadow(0 0 8px #863EA1);
}


.timeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 1200px;
    /* Restored as per user request */
}

.svg-container {
    position: absolute;
    top: -50px;
    left: 50% !important;
    /* Fixed: Correctly centered */
    transform: translateX(-50%);
    /* Centered container */
    width: 600px;
    /* Increased back for better curve range */
    height: 100%;
    z-index: 1;
}

.svg-container svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
    /* Behind icons */
}

.path-fill {
    stroke-width: 4;
}

.steps-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 150px;
    /* Reduced gap slightly for better flow */
}

.step-item {
    display: flex;
    width: 100%;
    position: relative;
    align-items: center;
    /* Center lines with cards */
}

.step-1 .step-card {
    margin-top: -70px;
}

.step-3 .step-card {
    margin-top: 30px;
}

/* Staggered Cards based on irregular paths */
.step-item[data-side="right"] {
    justify-content: flex-start;
    padding-left: 65%;
}

.step-item[data-side="left"] {
    justify-content: flex-end;
    padding-right: 65%;
}

/* Connecting Lines - precision sync with irregular nodes */
.connecting-line {
    position: absolute;
    height: 1px;
    background: var(--accent-teal);
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.step-1 .connecting-line {
    left: 52%;
    margin-top: -75px;
    width: calc(65% - 50%);
    transform: translateX(0);
}

.step-2 .connecting-line {
    margin-top: -10px;
    right: 70%;
    width: calc(65% - 50%);
    transform: translateX(50%);
}

.step-3 .connecting-line {
    margin-top: 40px;
    left: 80%;
    width: calc(82% - 65%);
    transform: translateX(-100%);
}

.step-4 .connecting-line {
    margin-top: -35px;
    right: 70%;
    width: calc(65% - 40%);
    transform: translateX(100%);
}


.step-card {
    width: fit-content;
    min-width: 400px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform 0.1s ease-out, border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.step-card:hover {
    border-color: rgba(31, 178, 163, 0.6);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.step-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number-badge {
    width: 36px;
    height: 36px;
    background: var(--accent-teal);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    /* box-shadow: 0 0 15px rgba(31, 178, 163, 0.3); */
    flex-shrink: 0;
}

.step-card p {
    font-size: 1rem;
    color: rgba(235, 234, 234, 0.622);
    text-align: right;
    line-height: 1.7;
    margin-right: 51px;
    /* Align with text start (badge width + gap) */
}

/* Fingerprint Node Icons on Path (Matching new curve) */
.path-node {
    position: absolute;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* Above line */
    transform: translate(-50%, -50%);
    box-shadow: none;
}

.path-node img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.path-node i {
    color: #1FB2A3;
    /* Pure accent teal */
    font-size: 1.3rem;
    opacity: 1;
}

.node-1 {
    top: 45px;
    left: 52%;
}

.node-2 {
    top: 320px;
    left: 25%;
}

.node-3 {
    top: 640px;
    left: 75%;
}

.node-4 {
    top: 890px;
    left: 58%;
}

/* Heading style already defined above in .step-card h3 */

/* Paragraph style already defined above in .step-card p */

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

@media (max-width: 992px) {
    .nav-pill {
        display: none;
    }

    .step-item[data-side] {
        justify-content: center;
        padding: 0;
    }

    .step-card {
        max-width: 90%;
    }

    .svg-container {
        opacity: 0.7;
        /* Increased from 0.1 to make the animation visible */
        width: 100%;
        /* Ensure it spans the width */
    }

    .process {
        padding-bottom: 50px;
        /* Extra room */
    }

    .hero {
        padding: 0 20px;
        /* Mobile safe padding */
    }
}

/* -------------------------------------- */
/* Services Section - Auto Slider */
/* -------------------------------------- */

.services-section {
    padding: 1px 0;
    position: relative;
    overflow: hidden;
    /* Contain floats */
}

.services-layout {
    display: flex;
    align-items: center;
    /* Center Vertically */
    justify-content: space-between;
    gap: 80px;
    /* More gap to separate text from images */
    flex-wrap: wrap;
    /* Safety for mobile */
}

/* Right Side: Text Info */
.services-info {
    flex: 1;
    min-width: 300px;
    text-align: right;
    position: relative;
    /* No longer sticky, it stays static but content fades */
}

.service-text-container {
    position: relative;
    height: 200px;
    /* Fixed height to prevent jumps */
}

.service-text-item {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
    pointer-events: none;
}

.service-text-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    position: relative;
    /* Take up space */
}

/* Services Section Layout */
.services-layout {
    display: flex;
    align-items: flex-start;
    /* Align top for sticky to work */
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    padding-right: 5%;
    /* Spacing from edge */
}

/* Right Side: Info & Indicators */
.services-info {
    flex: 0 0 200px;
    /* Fixed width for sidebar */
    text-align: right;
    position: relative;
    z-index: 20;
    height: 100%;
    /* Full height of section */
}

.sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align elements to right */
    gap: 40px;
    /* Space between title and indicators */
}

.section-badge {
    display: inline-block;
    color: var(--text-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
}

.section-badge::after {
    content: "";
    display: block;
    width: 80px;
    height: 5px;
    background: var(--accent-teal);
    margin-top: 15px;
    border-radius: 4px;
    margin-left: auto;
    /* Align right */
}

/* Vertical Service Indicators */
.service-indicators {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 10px;
    /* Little buffer */
}

.indicator {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}

.indicator.active {
    background: var(--text-white);
    /* White active as per image? Or Teal? Image looks white-ish/bright */
    height: 30px;
    /* Elongated pill */
    border-radius: 10px;
}

/* Visuals Container - Left Side */
.services-visuals {
    flex: 1;
    min-width: 350px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
    margin-bottom: 70px;
    /* Reset margin */
}

.slider-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    margin-right: -110px;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1000px;
    /* For 3D feel if needed */
}

/* Refined Repetition Background to match huge outline style */
.repeated-stack {
    position: absolute;
    top: 50px;
    right: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    z-index: -1;
    gap: 0;
}

.repeated-svg {
    width: 200px;
    /* Much larger */
    max-width: none;
    height: auto;
    display: block;
    opacity: 0.1;
    /* Faint */
}

.repeated-svg.outline {
    margin-top: 200px;
    margin-right: 550px;
    /* Push off screen slightly */
    opacity: 0.8;
    /* Increased from 0.2 */
}

.repeated-svg.faded {
    /* background-color: #1FB2A3; */
    margin-right: 590px;
    margin-top: -25px;
    /* Tighter Overlap */
    opacity: 0.8;
    /* Increased from 0.05 */
}

/* Services Card Refinement - No Border, Pure Image */
.service-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%) scale(0.9) translateY(100px);
    /* Wait below stage */
    width: 900px;
    max-width: 90%;
    height: 450px;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

/* Active Card State */
.service-card.active {
    transform: translate(-50%, -47%) scale(1) translateY(0);
    opacity: 1;
    z-index: 10;
}

/* Stacked Cards (Upwards / Top) - The images behind current one */
.service-card.prev-1 {
    transform: translate(-50%, -54%) scale(0.95);
    /* Moves UP */
    opacity: 0.8;
    z-index: 9;
}

.service-card.prev-2 {
    transform: translate(-50%, -61%) scale(0.9);
    opacity: 0.5;
    z-index: 8;
}

.service-card.prev-3 {
    transform: translate(-50%, -68%) scale(0.85);
    opacity: 0.2;
    z-index: 7;
}

/* Previous Card (Exiting further up) */
.service-card.exit {
    transform: translate(-50%, -77%) scale(0.8);
    opacity: 0;
    transition: 0.6s ease;
}



.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .services-layout {
        flex-direction: column-reverse;
        /* Images on top on mobile? Or text? User had images left. Let's keep column standard: Text top, Images bottom */
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .services-info {
        text-align: center;
        padding-left: 0;
        width: 100%;
        padding-top: 0px;
    }

    .service-text-container {
        height: 150px;
        /* Smaller text area */
    }

    .service-description {
        margin-right: auto;
        margin-left: auto;
        font-size: 1rem;
    }

    .section-badge::after {
        margin-right: auto;
        margin-left: auto;
    }

    .brand-icon-floater {
        margin: 20px auto 0;
        margin-top: 180px;
        /* Adjust for stacked */
    }

    .services-visuals {
        height: 300px;
        /* Smaller viewport */
    }

    .service-card {
        height: 220px;
    }
}

/* -------------------------------------- */
/* Pixel-Perfect CSS Contact Card v5 */
/* -------------------------------------- */

.footer-section {
    padding: 100px 0 50px;
    position: relative;
    z-index: 10;
    /* background: #010A14; */
}

.contact-card-v5 {
    max-width: 950px;
    margin: 0 auto 100px;
    background: linear-gradient(135deg, #1fb2a3 0%, #4b1d7a 60%, #2a0e4a 100%);
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

.card-inner {
    padding: 60px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card-v5 .card-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 40px;
}

.contact-card-v5 .card-header .title {
    font-size: 2.8rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.contact-card-v5 .card-header .subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: #fff;
    opacity: 0.9;
    line-height: 1.4;
}

.contact-card-v5 .card-header .highlight {
    font-weight: 500;
    font-size: 3rem;
}

.contact-card-v5 .card-content {
    display: flex;
    width: 100%;
    padding: 0 60px;
    gap: 40px;
    align-items: center;
}

/* .contact-card-v5 .map-box {
    flex: 1;
    aspect-ratio: 1.6;
    max-width: 400px;
    height: 250px;
    background: #d6d6d6 ;
    border-radius: 20px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
} */

.contact-card-v5 .map-box {
    width: 100%;
    max-width: 400px;
    height: 180px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.contact-card-v5 .map-dummy {
    height: 100%;
    width: 100%;
}

/* لضمان استجابة الخريطة داخل المربع */
.contact-card-v5 .map-box iframe {
    width: 100%;
    height: 100%;
    border-radius: 0;
    /* Remove internal radius to fill perfectly */
    border: 0;
    display: block;
}

.contact-card-v5:hover {
    transform: translateY(-5px);
}

.contact-card-v5 .info-box {
    flex: 1.1;
    text-align: left;
}

.contact-card-v5 .details-list {
    list-style: none;
    margin-bottom: 30px;
}

.contact-card-v5 .details-list li {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligned left */
    gap: 15px;
    color: #fff;
    font-size: 1.15rem;
    text-align: left;
}

.contact-card-v5 .details-list .contact-icon-svg {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
    object-fit: contain;
    order: 1;
    /* Icon on the left */
}

.contact-card-v5 .details-list a,
.contact-card-v5 .details-list span {
    order: 2;
    /* Text on the right */
    text-decoration: none;
    color: inherit;
}

.contact-card-v5 .social-links {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    /* Aligned left */
    margin-top: 25px;
    padding-right: 0px;
}

.contact-card-v5 .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.contact-card-v5 .social-links .social-icon-svg {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.contact-card-v5 .social-links a:hover .social-icon-svg {
    opacity: 1;
}

.contact-card-v5 .card-footer-branding {
    width: 100%;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card-v5 .footer-logo {
    height: 120px;
    margin-bottom: 10px;
}

.contact-card-v5 .brand-ar {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
}

.contact-card-v5 .brand-en {
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.5;
    margin-bottom: 30px;
}

.contact-card-v5 .bottom-strip {
    width: 100%;
    /* background: rgba(0, 0, 0, 0.25); */
    text-align: center;
}

.contact-card-v5 .divider {
    height: 1.5px;
    background: #fff;
    width: 100%;
}

.contact-card-v5 .bottom-strip p {
    padding: 18px;
    font-size: 0.95rem;
    color: #fff;
    opacity: 0.75;
}

/* Main Footer Redesign */
.footer-divider-main {
    height: 1px;
    background: rgba(255, 255, 255, 0.162);
    width: 60%;
    /* margin-bottom: 60px; */
    margin: 90px auto;
    /* هذا السطر هو المسؤول عن التوسيط الأفقي */
    display: block;
    /* لضمان أنه يتعامل ككتلة */
}

.main-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-left .social-icons-bottom {
    display: flex;
    margin-right: 180px;
    margin-top: -50px;
    gap: 15px;
    justify-content: center;
    /* Aligned with right edge in RTL */
}

.social-icons-bottom a {
    display: inline-block;
    transition: transform 0.3s;
}

.social-icons-bottom a:hover {
    transform: translateY(-3px);
}

.social-icons-bottom img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

.social-icons-bottom a:hover img {
    opacity: 1;
}

/* Marquee Styles for Why Us Strips */
/* .marquee-container {
    background: #1fb2a3;
    padding: 20px 0;
    margin-top: 150px;
    position: relative;
    z-index: 5;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 100s linear infinite;
    align-items: center;
} */

/* .marquee-group {
    display: flex;
    align-items: center;
    gap: 80px;
    padding-right: 80px;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    white-space: nowrap;
}

.marquee-icon {
    height: 35px;
    width: auto;
} */

/* .marquee-container {
    background: #1fb2a3;
    overflow: hidden;
    padding: 15px 0;
    display: flex;
    white-space: nowrap;
    position: relative;
    direction: ltr;
} */

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    /* تحكم في السرعة من هنا */
}

/* .marquee-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
} */

/* .marquee-content span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
} */

/* .marquee-icon {
    width: 24px;
    height: 24px;
} */

/* .marquee-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    margin: 0 15px;

    object-fit: contain;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 30px;
} */

.marquee-container {
    background: #1fb2a3;
    overflow: hidden;
    margin-top: 100px;
    /* حدد ارتفاعاً ثابتاً ونحيفاً للشريط هنا (مثلاً 50px أو 60px) */
    height: 60px;
    display: flex;
    align-items: center;
    /* لتوسيط المحتوى عمودياً */
    white-space: nowrap;
    position: relative;
    direction: ltr;
}

.marquee-icon {
    /* كبّر الصورة كما تشاء، مثلاً 80px لتخرج قليلاً عن الإطار أو 50px لتملأه */
    width: 150px;
    height: 50px;

    flex-shrink: 0;
    /* margin: 0 10px; */
    object-fit: contain;

    /* إذا أردت أن تكون الصورة أكبر من الإطار الأخضر دون توسيعه */
    /* transform: scale(1.5); */
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.marquee-content span {
    color: #fff;
    font-size: 1rem;
    /* تصغير الخط قليلاً ليناسب نحافة الشريط */
    font-weight: 500;
}

/* الحركة السحرية */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* نتحرك لنصف العرض الإجمالي فقط ليحل التكرار محل الأصل بسلاسة */
    }
}

/* للتوقف عند تمرير الماوس (اختياري) */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.footer-center {
    flex: none;
    text-align: right;
    display: flex;
    justify-content: center;
}

.footer-center h4 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links-grid {
    display: flex;
    gap: 80px;
    direction: rtl;
}

.footer-links-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.footer-links-grid li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligned left */
    gap: 15px;
    direction: rtl;
    /* Ensure dot stays on left relative to text */
}

.footer-links-grid li::after {
    content: "";
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    order: 1;
    /* Bullet on the left */
}

.footer-links-grid li:not(.single-item)::after {
    /* Only show dot for primary links column */
    display: inline-block;
}

.footer-links-grid .additional-links {
    margin-top: 45px;
    /* Alignment with start of list on right */
}

.footer-links-grid a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
    white-space: nowrap;
    order: 2;
    /* Text on the right */
    direction: rtl;
    /* Ensure Arabic text is correct */
}

.footer-links-grid a:hover {
    color: #fff;
}

.links-column a:hover {
    color: #fff;
}

.footer-slogan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-slogan-large {
    width: 450px;
    max-width: 100%;
}

.slogan-text-ar {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.9;
}

.footer-right .footer-brand-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Logo on the left */
    gap: 5px;
}

.footer-logo-main {
    height: 150px;
    margin-bottom: 0px;
}

.footer-right .brand-ar {
    font-size: 1.1rem;
    color: #fff;
    margin: 5px 0 2px;
}

.footer-right .brand-en {
    font-size: 0.75rem;
    color: #fff;
    opacity: 0.5;
    margin-bottom: 25px;
}

.footer-slogan-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Slogan on the left */
    gap: 5px;
}

.footer-slogan-text {
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    text-align: left;
}

.slogan-text-ar {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 500;
}

/* Responsiveness */
@media (max-width: 900px) {
    .contact-card-v5 {
        max-width: 95%;
        border-radius: 25px;
    }

    .contact-card-v5 .card-header .title {
        font-size: 1.8rem;
    }

    .contact-card-v5 .card-content {
        flex-direction: column-reverse;
        padding: 0 25px;
        gap: 30px;
    }

    .contact-card-v5 .map-box {
        width: 100%;
        height: 180px;
    }

    .main-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 60px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .footer-right .footer-brand-vertical {
        text-align: center;
    }
}

/* -------------------------------------- */
/* Signature Page Specific Styles */
/* -------------------------------------- */

.signature-page {
    overflow-x: hidden;
}

.signature-page .container {
    max-width: 1280px;
    width: 100%;
    /* padding: 0 40px; */
    position: relative;
    z-index: 5;
}

/* Signature Hero Section */
.signature-hero {
    text-align: right;
}

.hero-header {
    display: flex;
    justify-content: flex-start;
}

.hero-logo-svg {
    width: 118.5%;
    /* max-width: 1800px; */
    padding: 150px 0 20px;
    margin-bottom: 40px;
    display: block;
}

.hero-intro {
    position: relative;
    margin-bottom: 60px;
    margin-top: 80px;
}

.hero-intro>img {
    position: absolute;
    top: 10%;
    right: 27%;
    transform: translate(-50%, -50%);
    width: 780px;
    height: auto;
    z-index: 0;
    /* pointer-events: none; */
}

.hero-intro .hero-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-white);
    margin-bottom: 30px;
    line-height: 1.2;
    margin-left: 70px;
    position: relative;
    z-index: 1;
}

.hero-intro .hero-title span {
    font-weight: 600;
}

.hero-meta-text {
    padding-top: 20px;
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 10px;
    opacity: 0.9;
    padding-left: 70px;
    position: relative;
    z-index: 1;
}

.hero-story-text {
    padding-top: 20px;
    font-size: 1.5rem;
    color: rgb(255, 255, 255);
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.hero-images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 100px;
    position: relative;
    padding-left: 20px;
    /* Offset for green boxes */
}

.hero-images .image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-images .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

/* Green rectangle backgrounds */
.hero-images .image-wrapper::before {
    content: "";
    position: absolute;
    background: #42C889;
    z-index: 1;
}

.hero-images .vertical-img {
    width: 400px;
    height: 555px;
    margin-top: -110px;
    left: -50px;
}

.hero-images .vertical-img::before {
    width: 102%;
    height: 88%;
    top: 70px;
    /* right: 20px; */
    background-color: transparent;
    border: 3px solid #42C889;
}

.hero-images .horizontal-img {
    width: 590px;
    height: 430px;
    margin-top: 15px;
    left: -55px;
}

.hero-images .horizontal-img::before {
    width: 70%;
    height: 65%;
    top: -5px;
    left: 185px;
}

.hero-footer-content {
    max-width: 980px;
    /* margin: 0 auto; */
}

.hero-footer-content h3 {
    padding-top: 20px;
    font-size: 2.2rem;
    color: var(--text-white);
    font-weight: 400;
    margin-bottom: 40px;
    text-align: left;
    width: 100%;
    padding-left: 59%;
    display: block;
}

.hero-footer-content p {
    font-size: 2.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    /* padding-left: 90px; */
    padding-right: 170px;
}

.highlight-word {
    position: relative;
    display: inline-block;
    color: var(--text-white);
    font-weight: 500;
}

.wavy-underline {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    pointer-events: none;
}

.btn-svg-small img {
    width: 150px;
}

/* Stories Section */
.stories-section {
    padding: 100px 0 150px;
    position: relative;
    margin-top: 150px;
    background: #000000 !important;
    background-image:
        /* Top Right Green Glow (Moved from Top Left) */
        radial-gradient(circle at 100% 0%, rgba(66, 200, 137, 0.3) 0%, transparent 20%),
        /* Left Middle Green Glow (Flipped from Right) */
        radial-gradient(circle at 0% 50%, rgba(66, 200, 137, 0.3) 0%, transparent 40%),
        /* Bottom Right Green Glow (Flipped from Left) */
        radial-gradient(circle at 100% 100%, rgba(66, 200, 137, 0.3) 0%, transparent 30%),
        /* Base Black Gradient */
        linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 1)) !important;
    overflow: hidden;
    /* Ensure glows don't spill if using pseudo-elements, but safer to have here anyway */
}

.stories-main-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 120px;
    margin-left: -20%;
    line-height: 1.8;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.stories-bg-image {
    position: absolute;
    /* top: 50%; */
    /* Center vertically relative to container or section? The container might not have height. Let's try top 0 or positioning relative to title. */
    top: -105px;
    /* Aligned with top of section or container */
    left: 14%;
    /* Back to left */
    right: auto;
    /* Reset right */
    transform: translateX(-50%) scaleX(1);
    /* Back to original transform */
    /* Stretched horizontally as requested */
    width: 80%;
    /* Full width to be clearer? Or stick to 60? User said "not clear", maybe bigger is better? */
    max-width: none;
    /* opacity: 1; */
    /* High opacity */
    filter: brightness(2) drop-shadow(0 0 0 rgb(255, 255, 255));
    /* brighten it */
    z-index: 0;
}

.highlight-text {
    color: #42C889;
    font-weight: 500;
}

.story-item {
    margin-bottom: 150px;
    width: 100%;
    position: relative;
}

.story-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 150px;
    width: 100%;
    padding: 0 5%;
}

.story-item.reverse .story-content {
    flex-direction: row-reverse;
}

.story-text {
    flex: 0 0 auto;
    min-width: 300px;
}

.story-text h3 {
    font-size: 5.2rem;
    font-weight: 400;
    color: var(--text-white);
    opacity: 0.95;
    white-space: nowrap;
    letter-spacing: 2px;
}

/* SVG Heading Style */
.story-title-svg {
    max-width: 350px;
    /* Adjust size to match existing headers which are ~3.5rem - 5.2rem */
    height: auto;
    display: block;
}

/* Image Wrapper with Border Effect */
.story-image-wrapper {
    position: relative;
    flex: 0 0 auto;
    margin-left: -8%;
}

.story-image {
    position: relative;
    width: 450px;
    height: 450px;
    /* overflow: hidden; Removed to allow ::before to show outside */
    z-index: 2;
}

/* Green Gradient Box Background */
.story-image::before {
    content: "";
    position: absolute;
    top: -13px;
    right: -20px;
    width: 80%;
    height: 103%;
    background: linear-gradient(150deg, #4eda99 0%, #1f8b59a2 100%);
    z-index: -1;
    pointer-events: none;
    border: none;
    /* border-radius: 12px; */
}

/* Reverse Stories (2 & 4): Transparent Box with Green Border, Flipped */
.story-item.reverse .story-image::before {
    background: transparent;
    border: 3px solid transparent;
    /* Required for border-image */
    border-image: linear-gradient(150deg, #41c386 0%, #1f8b59a2 100%);
    border-image-slice: 1;
    right: auto;
    left: -10px;
    width: 80%;
    /* Full box for border style usually looks better, or keep 80% if desired? Image shows full frame usually. Let's try 100% width/height for the frame. */
    height: 101%;
    top: -10px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* moved here */
    /* Optional: adds depth */

}

/* Story Item Reveal Animations */
.reveal-right,
.reveal-left {
    opacity: 0 !important;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    will-change: transform, opacity;
}

.reveal-right {
    transform: translateX(100px) !important;
}

.reveal-left {
    transform: translateX(-100px) !important;
}

.reveal-right.reveal-active,
.reveal-left.reveal-active {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Specific positioning for each story */
.story-1 .story-content {
    justify-content: space-between;
    padding: 0 15% 0 25%;
}

.story-2 .story-content {
    justify-content: space-between;
    padding: 0 25% 0 8%;
}

.story-3 .story-content {
    justify-content: space-between;
    padding: 0 15% 0 25%;
}

.story-4 .story-content {
    justify-content: space-between;
    padding: 0 25% 0 8%;
}

/* Decorative Icon in the middle */
.story-divider-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px 0;
}

.story-divider-icon img {
    width: 80px;
    height: auto;
    opacity: 0.8;
}

/* Footer Logo */
.story-footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 120px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.story-footer-logo img {
    width: 200px;
    height: auto;
    left: 35%;
    position: absolute;
}

/* Participation Categories Section */
.participation-section {
    padding: 100px 0;
    position: relative;
    background: #000000;
    overflow: hidden;
}

/* Green Glow Background */
.participation-section::before {
    content: '';
    position: absolute;
    left: -200px;
    /* Position glow on the left as requested/implied */
    top: 20%;
    width: 600px;
    height: 600px;
    /* background: radial-gradient(circle, rgba(66, 200, 137, 0.15) 0%, transparent 70%); */
    pointer-events: none;
    z-index: 0;
}

.section-header-right {
    text-align: right;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-header-right .section-title {
    font-size: 2.5rem;
    color: #fff;
    margin-right: 10%;
    /* Adjust alignment */
}

.participation-grid {
    display: flex;
    justify-content: center;
    gap: 120px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
    max-width: 350px;
}

.col-right {
    /* Right column (1 & 3) starts higher */
    padding-top: 0;
}

.col-left {
    /* Left column (2 & 4) starts lower for staggered look */
    padding-top: 80px;
    margin-left: -20px;
}

.cat-card {
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 20px;
    /* Small padding between border and image */
    text-align: center;
    background: transparent;
    transition: transform 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: #42C889;
}

.cat-img-placeholder {
    width: 100%;
    /* aspect-ratio removed here, controlled by card specific classes now */
    background: #d9d9d9;
    margin-bottom: 15px;
    height: 200px;
    /* Default */
}

/* Card 1: Small Rectangle */
.cat-1 .cat-img-placeholder {
    height: 160px;
    width: 100%;
    /* Reset to fit frame */
    /* Ensure it fills card width */
}

.cat-1 {
    width: 120%;
    /* Expanded to match previous image size (140% * 90% approx) */
    margin-left: auto;
    /* align right */
}

/* Card 2: Larger than 1 */
.cat-2 .cat-img-placeholder {
    height: 220px;
    width: 100%;
    /* Reset to fit frame */
}

.cat-2 {
    width: 120%;
    /* Expanded to match previous image size */
}

.col-left .cat-2 {
    margin-right: 90px;
}

.col-left .cat-4 {
    margin-right: 60px;
    margin-top: 20px;
}

/* Card 3: Square */
.cat-3 .cat-img-placeholder {
    aspect-ratio: 1/1;
    height: 250px;
}

.cat-3 {
    width: 120%;
}

/* Card 4: Larger than Square */
.cat-4 .cat-img-placeholder {
    height: 240px;
    /* Tall rectangle */
}

.cat-4 {
    width: 130%;
}

.cat-card h4 {
    font-size: 2.2rem;
    color: #fff;
    font-weight: 400;
    text-align: start;
}

.highlight-green {
    color: #42C889;
    font-weight: 600;
}

/* Achievements Portfolio */
/* Achievements Portfolio */
.achievements-portfolio {
    padding: 100px 0;
    position: relative;
    background: url('../assets/Rectangle 20.svg') no-repeat center center !important;
    background-size: cover !important;
    overflow: hidden;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-title {
    color: #fff;
    text-align: center;
    margin-bottom: 80px;
    left: -9%;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

/* New Gallery Structure */
.gallery-viewport {
    position: relative;
    width: 150%;
    /* Reset to full width */
    height: 600px;
    overflow: hidden;
    margin: 50px auto;
    background: transparent;
    direction: ltr;
}

.static-h-lines {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 550px;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
}

.static-h-lines .line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    /* Match vertical border thickness */
    background: #ffffff;
}

.static-h-lines .line.top {
    top: 0;
}

.static-h-lines .line.bottom {
    bottom: 0;
}

/* Container for the slider */
.portfolio-slider {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    justify-content: flex-start;
    align-items: center;
    position: relative;
    width: max-content;
    /* Allow it to be as wide as content */
    height: 100%;
    z-index: 10;
    padding: 0 50px;
    will-change: transform;
}

.portfolio-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Removed old lines from slider element */

.slider-item {
    width: 550px;
    height: 550px;
    margin-left: -1px !important;
    /* Forces overlap in LTR track */
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Individual Side Borders (Vertical) */
    border-left: 1px solid #ffffff !important;
    border-right: 1px solid #ffffff !important;

    /* Create the "gap" showing background */
    padding: 25px 35px;
    background: transparent !important;
    direction: rtl;
}

/* Mobile Adjustments for Gallery */
@media screen and (max-width: 768px) {
    .gallery-viewport {
        height: 480px;
        /* Adjusted for better phone aspect ratios */
        margin: 20px auto;
    }

    .static-h-lines {
        height: 420px;
        /* Precise height for the "window" */
    }

    .portfolio-slider {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* CRITICAL: Prevent stacking */
        padding: 0 10vw;
        /* Start with offset so first frame is visible */
        align-items: center;
        justify-content: flex-start;
    }

    .slider-item {
        width: 80vw !important;
        /* Wide enough to fill but show sequence */
        height: 420px;
        padding: 15px 20px;
        flex-shrink: 0 !important;
        /* Prevent squashing */
        margin-left: -1px !important;
        /* Overlap on mobile too */
    }

    .slider-item img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .portfolio-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
        left: 0;
    }
}

/* Image inside the frame */
.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent !important;
    /* Force no grey color */
    border: none !important;
}

/* Contact Form Section */
.contact-form-section {
    padding: 100px 100px;
    direction: rtl;
    left: -7%;
    /* Ensure RTL */
}

.form-header {
    text-align: right;
    margin-bottom: 50px;
}

.form-header h2 {
    font-size: 3rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 5px;
    margin-right: 5%;
}

.form-header h3 {
    font-size: 2.2rem;
    color: #fff;
    /* White title based on image */
    margin-bottom: 20px;
    font-weight: 400;
    margin-right: 5%;
}

.form-header p {
    font-size: 1.8rem;
    color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    margin-right: 5%;
}

/* The Green Card */
.form-card {
    max-width: 1150px;
    margin: 0 auto;
    /* Rich Green Gradient with decorative image */
    background: url('../assets/image 12_clear.svg') no-repeat 10px top,
        /* Decorative image on Left Top */
        linear-gradient(150deg, #2E8B57 0%, #115e45 100%);
    /* Green Gradient */
    background-size: 38% auto, cover;
    /* Adjust size of decoration */
    /* Note: URL encoding for spaces */
    border: none;
    border-radius: 70px;
    padding: 60px 80px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Internal Title "املأ البيانات" */
.form-card-title {
    color: #fff;
    text-align: right;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.form-row {
    display: flex;
    gap: 1px;
    margin-bottom: 10px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hide labels visually but keep accessible if needed. Image shows pure placeholders inside inputs. */
.form-group label {
    display: none;
}

.form-group input {
    width: 95%;
    height: 70px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.87);
    border-radius: 20px;
    /* Slight rounding or Pill? Image looks rounded rect ~15px */
    padding: 15px 20px;
    color: #fff;
    font-size: 1.3rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    /* Match site font */
    outline: none;
    transition: 0.3s;
    text-align: right;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.form-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 40px;
}

.submit-btn {
    width: 200px;
    background: #1FB2A3;
    /* Lighter teal pop */
    border: none;
    color: white;
    padding: 8px 0;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #23c4b3;
    transform: translateY(-2px);
}

/* Terms Footer */
.form-footer-terms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.0);
    /* No border in image? Looks clean. */
    padding-top: 10px;
    color: #fff;
    font-size: 0.95rem;
}

.terms-link a {
    color: #fff;
    font-size: 1rem;
    text-decoration: underline;
    opacity: 0.9;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    user-select: none;
    /* flex-direction: row-reverse; Removed to swap Text and Box positions */
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    margin-left: 10px;
    /* Space between box and text */
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked~.checkmark {
    background-color: transparent;
    /* Transparent background as requested */
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked~.checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    left: 6px;
    /* top: 2px; */
    width: 4px;
    height: 10px;
    border: solid #fff;
    /* White tick */
    /* Green check */
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .form-card {
        padding: 40px 20px;
        border-radius: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-footer-terms {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .timeline-wrapper {
        padding: 0 10px;
    }

    .services-section {
        margin-top: -10%;
    }

    .sticky-wrapper {
        margin-left: 65%;
    }

    .slider-viewport {
        margin-top: -50%;
        margin-left: 5%;
    }

    .why-us-section {
        margin-top: -20%;
    }

    .marquee-container {
        margin-top: 10%;
    }

    .footer-section {
        margin-top: -20%;
    }

    .hero-header {
        margin: 0 -20px;
    }

    .hero-meta-text {
        font-size: 1.5rem;
    }

    .hero-story-text {
        font-size: 1.5rem;
        text-align: start;
    }

    .wavy-underline {
        margin-top: -10px;
    }

    .stories-section {
        margin-top: 10%;
    }

    .section-header-right {
        margin-right: -100%;
    }

    .section-titleh3 {
        padding-left: 30%;
        font-size: 1.8rem;
        /* تصغير الخط قليلاً ليناسب عرض الشاشة */
        white-space: nowrap !important;
        /* إجبار العنوان على سطر واحد */
        /* text-align: center !important; */
        overflow: hidden;
        /* لإخفاء أي جزء زائد عن الشاشة */
    }

    .portfolio-title {
        margin-right: -20%;
    }

    .form-header h2 {
        font-size: 2.8rem;
    }

    .form-header h3 {
        font-size: 2.4rem;
    }

    .form-header p {
        font-size: 1.5rem;
    }

    .links-column h4 {
        text-align: center;
    }

    .links-column ul {
        list-style: disc;
        padding-right: 40px !important;
    }

    .links-column li {
        display: list-item !important;
        /* ضروري لظهور الرقم */
        margin-bottom: 10px;
        margin-left: 20px;
        text-align: right;
    }

    .terms-header h1 {
        margin-right: -18%;
    }
}

/* Footer (Simplified for Signature Page) */
.footer-main {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    text-align: right;
}

.footer-brand img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    text-align: left;
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .signature-hero {
        padding-top: 120px;
    }

    .hero-images {
        flex-direction: column;
        align-items: center;
    }

    .hero-images .main-img,
    .hero-images .secondary-img {
        width: 100%;
        max-width: 400px;
        height: auto;
        transform: none;
    }

    .hero-images .secondary-img {
        margin-top: 20px;
    }

    .story-content {
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
        padding: 0 20px !important;
        justify-content: center !important;
    }

    .story-1 .story-content,
    .story-2 .story-content,
    .story-3 .story-content,
    .story-4 .story-content {
        padding: 0 20px !important;
    }

    .story-image-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .story-image {
        width: 90%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 1.25;
    }

    .story-text {
        min-width: auto;
    }

    .story-text h3 {
        font-size: 2rem;
        white-space: normal;
    }

    .form-card {
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand,
    .footer-info p {
        text-align: center;
    }

    .footer-links ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    /* Participation Grid Responsive */
    .participation-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .col-left {
        padding-top: 0;
    }

    .grid-col {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .section-header-right .section-title {
        margin-right: 0;
        text-align: center;
    }

    .section-header-right {
        text-align: center;
    }
}

/* -------------------------------------- */
/* Success Stories Section (Redesign)     */
/* -------------------------------------- */

.stories-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    /* Ensure it merges with global dark theme */
    position: relative;
    overflow: hidden;
}

.stories-container {
    display: flex;
    flex-direction: column;
    gap: 120px;
    /* Space between rows */
    margin-top: 60px;
}

.success-story-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

/* Reverse layout for even rows */
.success-story-row.reverse {
    flex-direction: row-reverse;
}

/* Text Side */
.success-story-content {
    flex: 1;
    max-width: 450px;
    text-align: right;
}

.success-story-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-white);
    position: relative;
    display: inline-block;
}

.success-story-content h3::after {
    content: "";
    display: block;
    width: 50%;
    height: 3px;
    background: var(--accent-teal);
    margin-top: 10px;
    border-radius: 2px;
}

.success-story-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    /* Using the lighter gray var */
    line-height: 1.9;
    margin-bottom: 30px;
}

/* Reuse btn-text or specific */
.success-story-content .btn-text {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: 0.3s;
}

.success-story-content .btn-text:hover {
    color: #fff;
    padding-right: 10px;
}

/* Image Side */
.success-story-image {
    flex: 1.3;
    /* Image is slightly larger/more dominant */
    position: relative;
}

.success-story-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.success-story-image:hover img {
    transform: scale(1.02);
    filter: brightness(1) contrast(1.1);
    box-shadow: 0 30px 80px rgba(31, 178, 163, 0.15);
    /* Slight teal glow */
}

/* Responsive */
@media (max-width: 992px) {

    .success-story-row,
    .success-story-row.reverse {
        flex-direction: column;
        /* Stack: text below image */
        gap: 40px;
        text-align: center;
    }

    .success-story-content {
        max-width: 100%;
        text-align: center;
    }

    .success-story-content h3::after {
        margin: 10px auto 0;
        /* Center underline */
    }

    .success-story-image {
        width: 100%;
        margin-bottom: 20px;
        /* Space between img and text */
    }
}

/* -------------------------------------- */
/* Terms and Conditions Page              */
/* -------------------------------------- */

.terms-section {
    padding: 150px 0 1px 100px;
    /* Extra top padding for fixed header */
    direction: rtl;
    text-align: right;
    color: #fff;
    background-color: var(--bg-dark);
    /* Ensure background is consistent */
    min-height: 80vh;
}

.terms-header {
    text-align: right;
    margin-bottom: 70px;
    margin-top: 100px;
    margin-right: 15%;
}

.terms-header h1 {
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.term-block {
    margin-bottom: 40px;
}

.term-block h3 {
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
    /* White headings as per image */
    margin-bottom: 15px;
}

/* First Main Title within content (Condition intro) */
.term-block:first-child h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.term-block p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(234, 234, 234, 0.6);
    /* Slightly muted white for text */
    margin-bottom: 10px;
}

.term-block ul {
    list-style-type: disc;
    padding-right: 20px;
    /* RTL indentation */
    margin-bottom: 10px;
}

.term-block ul li {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(234, 234, 234, 0.6);
    margin-bottom: 5px;
}

/* Responsive Terms */
@media (max-width: 768px) {
    .terms-header h1 {
        font-size: 2rem;
    }

    .terms-section {
        padding-top: 120px;
    }

    .term-block h3 {
        font-size: 1.2rem;
    }
}

/* Terms Badge Image */
.terms-bg-decoration {
    position: absolute;
    top: -80px;
    left: -18%;
    width: 48%;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.terms-section {
    position: relative;
    overflow: hidden;
}

/* Ensure content sits above the image */
.terms-header,
.terms-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .terms-bg-decoration {
        width: 60%;
        top: 80px;
        left: -10%;
    }
}

/* Glassy Button CSS */
.btn-glass {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 15, 20, 0.3);
    backdrop-filter: blur(40px) saturate(250%);
    -webkit-backdrop-filter: blur(40px) saturate(250%);
    border: 1px solid rgba(22, 169, 155, 0.5);
    /* Teal border as seen in image */
    color: #fff;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 1rem;
    padding: 10px 40px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-glass:hover {
    background: rgba(22, 169, 155, 0.15);
    border-color: #16A99B;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 169, 155, 0.2);
    color: #fff;
}

/* ============================================================
   RESPONSIVE DESIGN OVERRIDES (Mobile & Tablet)
   ============================================================ */

/* Tablet Viewport (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .header {
        padding: 0 4%;
        top: 20px;
    }

    .logo img {
        height: 70px;
    }

    .heading-main {
        font-size: 3rem;
    }

    .hero-main-svg {
        width: 400px;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .timeline-wrapper {
        min-height: auto;
    }

    .step-card {
        min-width: 350px;
    }

    .portfolio-slider {
        flex-direction: column;
        gap: 30px;
    }

    .slider-item {
        width: 100%;
        max-width: 500px;
        height: 400px;
    }

    .contact-card-v5 .card-header .title {
        font-size: 2.2rem;
    }

    .contact-card-v5 .card-header .subtitle {
        font-size: 1.4rem;
    }
}

/* Mobile Viewport (768px and below) */
@media (max-width: 768px) {
    section {
        padding: 80px 0 !important;
    }

    body {
        overflow-x: hidden !important;
    }

    .header {
        padding: 0 20px;
        height: 80px;
        background: rgba(1, 10, 20, 0.9);
        backdrop-filter: blur(15px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 2000;
        /* High z-index */
    }

    .nav-pill {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(1, 10, 20, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: none;
        text-align: center;
        z-index: 1001;
    }

    .header.nav-open .nav-pill {
        display: flex;
    }

    .nav-pill a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
        padding: 12px;
    }

    .mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1002;
    }

    .mobile-toggle span {
        width: 30px;
        height: 2px;
        background: #fff;
        transition: 0.3s;
    }

    .header.nav-open .mobile-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .header.nav-open .mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    .header.nav-open .mobile-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-cta {
        display: none;
    }

    .logo img {
        height: 60px;
    }

    .side-dots {
        display: none !important;
    }

    .hero {
        padding: 0 20px;
        text-align: center;
        justify-content: center;
        height: auto;
        padding-top: 250px !important;
        /* Force more padding */
        padding-bottom: 80px;
        overflow: visible !important;
        /* Prevent clipping */
    }

    .hero-content {
        text-align: center;
    }

    .heading-main {
        font-size: 2.5rem;
    }

    .hero-main-svg {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .repeated-stack {
        display: flex !important;
        position: absolute !important;
        top: 150px;
        right: -20px;
        opacity: 0.8 !important;
        /* Much more visible */
        transform: scale(0.6);
        z-index: -1;
        pointer-events: none;
    }

    .repeated-svg.outline {
        margin-top: 30px;
        margin-right: 0;
    }

    .repeated-svg.faded {
        margin-right: -40px;
    }

    .hero-body p {
        font-size: 1.3rem;
        line-height: 1.6;
        text-align: start;
    }

    .hero-footer {
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 320px;
    }

    .stat-box {
        text-align: center;
    }

    /* Process Section Mobile */
    .section-header {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .svg-container {
        display: block !important;
        opacity: 1 !important;
        /* Full opacity */
        width: 300px;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        top: 50px;
        /* Lower it so it doesn't hit the title */
        pointer-events: none;
    }

    .path-fill {
        stroke: #16A99B !important;
        /* Force green color */
        stroke-width: 5px !important;
        /* Thicker */
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
        opacity: 1 !important;
        fill: none;
    }

    .path-node {
        display: none;
        /* Hide nodes on mobile path to keep it clean */
    }

    .steps-container {
        gap: 40px;
    }

    .step-item[data-side="right"],
    .step-item[data-side="left"] {
        padding: 0;
        justify-content: center;
    }

    .step-card {
        min-width: 100%;
        margin: 0 !important;
        /* Reset staggered margins */
        padding: 20px;
    }

    .step-card h3 {
        font-size: 1.2rem;
    }

    .step-card p {
        margin-right: 0;
        font-size: 0.95rem;
        text-align: right;
    }

    .connecting-line {
        display: none;
    }

    /* Services Section Mobile */
    .services-section {
        padding: 60px 0;
    }

    .services-visuals {
        height: 420px;
        /* Increased to prevent overlap */
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .slider-viewport {
        margin-right: 0;
        /* Center it */
    }

    .services-info {
        text-align: left !important;
        padding-left: 10px;
    }

    .services-section .section-title {
        text-align: left !important;
        font-size: 2rem;
    }

    .container {
        padding: 0 20px !important;
    }

    .service-indicators {
        justify-content: flex-start !important;
        margin-right: 0 !important;
        margin-left: 10px;
    }

    .service-card {
        width: 100%;
        height: 200px;
    }

    /* Contact Card Mobile */
    .contact-card-v5 {
        border-radius: 25px;
        padding: 30px 15px;
    }

    .card-inner {
        padding: 0;
    }

    .contact-card-v5 .card-header {
        padding: 0;
    }

    .contact-card-v5 .card-header .title {
        font-size: 1.6rem;
    }

    .contact-card-v5 .card-header .subtitle {
        font-size: 1rem;
    }

    .contact-card-v5 .card-content {
        flex-direction: column;
        padding: 0 10px;
        gap: 30px;
    }

    .contact-card-v5 .info-box {
        text-align: center;
    }

    .contact-card-v5 .details-list li {
        justify-content: center;
        font-size: 1rem;
    }

    .contact-card-v5 .social-links {
        justify-content: center;
    }

    .contact-card-v5 .map-box {
        max-width: 100%;
        height: 200px;
        margin-top: 0 !important;
    }

    .contact-card-v5 .footer-logo {
        height: 80px;
    }

    /* Main Footer Mobile */
    .main-footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding-bottom: 20px;
    }

    .footer-divider-main {
        margin: 40px auto;
    }

    .footer-right .footer-brand-vertical {
        align-items: center;
    }

    .footer-logo-main {
        height: 80px;
    }

    .footer-slogan-text {
        font-size: 1.2rem;
    }

    .footer-links-grid {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .footer-links-grid ul {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        width: 100%;
        /* Full width to center items */
    }

    .footer-links-grid li {
        justify-content: center;
        font-size: 0.85rem;
    }

    .footer-links-grid li::after {
        display: none !important;
    }

    .footer-links-grid .additional-links {
        margin-top: 0;
        width: 100%;
        /* Force it to own row if needed, but flex-wrap handles it */
    }

    .footer-left .social-icons-bottom {
        margin: 10px 0 0;
        justify-content: center;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .heading-main {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-main-svg {
        max-width: 280px;
    }

    .btn-glass {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .hero-body .btn-glass {
        margin-left: 50% !important;
        margin-top: 10px !important;
    }

    /* Signature Page Specific Mobile Fixes */
    .signature-page .hero-meta-text,
    .signature-page .hero-story-text {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
    }

    .signature-page .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
    }
}

/* -------------------------------------- */
/* Signature Page Mobile Overrides */
/* -------------------------------------- */
@media (max-width: 768px) {

    /* Hero Section Fixes */
    .hero-logo-svg {
        width: 100%;
        padding: 120px 0 20px;
    }

    .hero-intro .hero-title {
        margin-left: 0 !important;
        text-align: center !important;
        font-size: 1.8rem !important;
        padding: 0 15px;
    }

    .hero-meta-text,
    .hero-story-text {
        margin: 0 !important;
        padding: 10px 20px !important;
        text-align: center !important;
        font-size: 1.1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 20px !important;
        /* Ensure override */
    }

    .hero-images {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-left: 0;
        margin-bottom: 50px;
    }

    .hero-images .vertical-img,
    .hero-images .horizontal-img {
        width: 100%;
        height: auto;
        margin: 0;
        left: 0;
        top: 0;
    }

    .hero-images .vertical-img {
        margin-top: 0;
    }

    .hero-images .image-wrapper img {
        height: 300px;
        /* Fixed height for consistency */
    }

    .hero-footer-content h3 {
        padding-left: 0;
        text-align: center;
        font-size: 1.8rem;
        width: 100%;
    }

    .hero-footer-content p {
        padding-right: 0;
        text-align: center;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    /* Stories Section Fixes */
    .stories-main-title {
        margin-left: 0;
        font-size: 1.8rem;
        padding: 0 15px;
    }

    .story-content {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 20px !important;
    }

    .story-item.reverse .story-content {
        flex-direction: column !important;
        /* Keep column even for reverse */
    }

    .story-image-wrapper {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .story-image {
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .story-text {
        min-width: auto;
        text-align: center;
    }

    .story-text h3 {
        font-size: 2.5rem;
        text-align: center;
        white-space: normal;
    }

    .story-title-svg {
        margin: 0 auto;
        max-width: 250px;
    }

    /* Participation Section Fixes */
    .section-header-right {
        text-align: center;
    }

    .section-header-right .section-title {
        padding-right: 50%;
        font-size: 2rem;
    }

    .participation-grid {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .grid-col {
        max-width: 100%;
        gap: 40px;
    }

    .col-left {
        padding-top: 0;
        margin-left: 0;
    }

    .cat-card {
        width: 100% !important;
        margin: 0 !important;
    }

    .col-left .cat-2,
    .col-left .cat-4 {
        margin-right: 0;
    }

    .cat-img-placeholder {
        height: 200px !important;
        aspect-ratio: auto !important;
    }
}

/* --- Global Reveal Animations --- */
[class*="reveal-"] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-down {
    transform: translateY(-40px);
}

.reveal-left {
    transform: translateX(-80px);
    /* Slides FROM the left */
}

.reveal-right {
    transform: translateX(80px);
    /* Slides FROM the right */
}

/* Simple Opacity Fade (No Scale) */
.reveal-fade {
    opacity: 0;
}

.reveal-active {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}