/* Hero text alignment for Arabic (applies when dir set on html or body) */
html[dir="rtl"] .privet-section .hero-text,
body[dir="rtl"] .privet-section .hero-text {
    right: 40px !important;
    left: auto !important;
    text-align: right !important;
    position: absolute !important;
}

/* Quote Author Black Color */
.quote-author-black {
    color: #000 !important;
}

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

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f8f9fa;
    padding: 0;
    margin: 0;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent zooming on mobile devices */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent double-tap to zoom */
* {
    -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

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

/* Header Styles */
.header {
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgb(0 0 0);
    backdrop-filter: blur(15px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #666;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section */
.privet-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    color: #fff;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.privet-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.privet-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Hero Section */
.hero-section {
    position: relative;
    /* reduced height by 20% as requested */
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    color: white;
    padding: 60px 0;
    /* slightly less vertical padding for large title */
}

.hero-text {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2.2rem;
    /* larger to match attachment */
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    line-height: 1.05;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.55);
}

/* Remove any description styles because we only display two lines */
.hero-description {
    display: none !important;
}

/* hide actions/buttons entirely for the simplified hero */
.hero-actions {
    display: none !important;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 140px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {

    /* scale down the already-reduced height by 20% (80vh -> 64vh) */
    .hero-section {
        min-height: 64vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {

    /* scale down the smaller breakpoint height by 20% (70vh -> 56vh) */
    .hero-section {
        min-height: 56vh;
    }

    .hero-content {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .hero-text {
        padding: 0 15px;
    }
}

/* Scroll Indicator */
/* hide scroll indicator */
.scroll-indicator {
    display: none !important;
}

.scroll-arrow {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-arrow:hover {
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* RTL Support */
[dir="rtl"] .hero-text {
    text-align: center;
}

[dir="rtl"] .hero-actions {
    flex-direction: row;
    justify-content: center;
}

@media (max-width: 768px) {
    [dir="rtl"] .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

.hero-text {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 3;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    max-width: 60%;
    word-wrap: break-word;
    color: #ffffff;
    text-align: left;
}

/* Ensure hero text isn't clipped and small words remain visible */
.privet-section .hero-text {
    overflow: visible !important;
}

.privet-section .hero-text span {
    display: inline-block;
    white-space: nowrap;
    /* keep small words together */
    vertical-align: middle;
}

.privet-section .hero-text .in-your-text {
    font-weight: 400 !important;
    font-size: 0.95em !important;
    /* slightly smaller so it fits on small screens */
    color: #fff !important;
}

/* Vertical spacing between hero lines */
.privet-section .hero-text br {
    display: block;
    margin: 40px 0;
    /* increased vertical gap between the two lines */
}

/* Slightly smaller gap on narrow screens */
@media (max-width: 768px) {
    .privet-section .hero-text br {
        margin: 18px 0;
    }
}

@media (max-width: 768px) {
    .privet-section .hero-text {
        max-width: 90% !important;
        /* allow more horizontal space */
        right: 20px !important;
        left: 20px !important;
        font-size: 1.9rem !important;
        line-height: 1.25 !important;
    }

    .privet-section .hero-text .in-your-text {
        font-size: 0.9em !important;
    }
}

/* RTL mobile adjustments */
@media (max-width: 768px) {
    html[dir="rtl"] .privet-section .hero-text {
        right: 20px !important;
        left: 20px !important;
        text-align: right !important;
        line-height: 1.3 !important;
        font-size: 1.9rem !important;
        overflow: visible !important;
    }

    html[dir="rtl"] .privet-section .hero-text .in-your-text {
        font-size: 0.9em !important;
        white-space: nowrap !important;
    }
}

/* RTL-specific spacing to avoid overlapping Arabic lines */
html[dir="rtl"] .privet-section .hero-text {
    line-height: 1.45 !important;
    /* taller line-height for Arabic */
    bottom: 60px !important;
    /* move hero up a little to prevent clipping */
}

/* Ensure all hero text lines start from the right in Arabic across breakpoints */
html[dir="rtl"] .hero-text,
body[dir="rtl"] .hero-text,
html[dir="rtl"] .privet-section .hero-text,
body[dir="rtl"] .privet-section .hero-text {
    left: auto !important;
    right: 40px !important;
    text-align: right !important;
}

/* Make the hero small-word less visually heavy in Arabic as well */
html[dir="rtl"] .privet-section .hero-text .in-your-text {
    font-weight: 400 !important;
    font-size: 0.95em !important;
}

/* Tweak subtitle weight specifically for Arabic header display
   (this affects the '100%صنع في الامارات - هذا هدفنا' line) */
html[dir="rtl"] .services-subtitle {
    font-weight: 600;
    /* slightly less heavy */
    letter-spacing: 0.1px;
}

.hero-text .black-text {
    color: #000000;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    font-weight: 900;
}

/* Media Queries for Hero Text */
@media (max-width: 768px) {
    .hero-text {
        font-size: 1.8rem;
        letter-spacing: 1.5px;
        max-width: 70%;
        bottom: 30px;
        left: 30px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
        max-width: 80%;
        bottom: 20px;
        left: 20px;
        line-height: 1.4;
    }
}

@media (min-width: 1200px) {
    .hero-text {
        font-size: 3rem;
        letter-spacing: 3px;
        bottom: 50px;
        left: 103px;
        top: 196px;
    }
}

/* Quote Section */
.quote-section {
    padding: 0;
    background: linear-gradient(180deg, #e5e8ea 0%, #222 100%);
    margin: 0;
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}

.quote-section::before {
    display: none;
}

.quote-content {
    max-width: none;
    width: 100%;
    margin: 0;
    text-align: left;
    position: relative;
    z-index: 2;
    padding: 80px 60px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

.quote-text h2 {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: #222;
    margin-bottom: 40px;
    font-style: normal;
    position: relative;
    padding: 0;
    max-width: 1000px;
}

.quote-text h2::before,
.quote-text h2::after {
    display: none;
}

.highlight-text {
    color: #111;
    font-weight: 700;
    position: relative;
}

.highlight-text::after {
    display: none;
}

.quote-author {
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
    text-align: right;
}

.quote-author p {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin: 0;
    position: relative;
}

.quote-author p::before {
    display: none;
}

/* Quote Section Media Queries */
@media (max-width: 768px) {
    .quote-section {
        padding: 0;
        background: linear-gradient(180deg, #e5e8ea 0%, #222 100%);
    }

    .quote-content {
        padding: 60px 40px;
        margin: 0;
        background: transparent;
    }

    .quote-text h2 {
        font-size: 2.2rem;
        padding: 0;
        line-height: 1.3;
        color: #222;
    }

    .quote-author p {
        font-size: 1.3rem;
        color: #333;
    }
}

@media (max-width: 480px) {
    .quote-section {
        padding: 0;
        background: linear-gradient(180deg, #e5e8ea 0%, #222 100%);
    }

    .quote-content {
        padding: 40px 30px;
        margin: 0;
        border-radius: 0;
        background: transparent;
    }

    .quote-text h2 {
        font-size: 1.8rem;
        padding: 0;
        color: #222;
    }

    .quote-author {
        margin-top: 30px;
        padding-top: 0;
    }

    .quote-author p {
        font-size: 1.1rem;
        color: #333;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 48px;
    margin-right: -29px;
}

.nav-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu-hero {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link-hero {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nav-link-hero:hover {
    color: #666;
}

.nav-link-hero i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-link-hero:hover i {
    transform: rotate(180deg);
}

/* قائمة منسدلة */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.95);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    backdrop-filter: blur(10px);
}

.dropdown-content a {
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: rgba(102, 102, 102, 0.1);
    color: #666;
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-app-btn {
    margin-left: auto;
}

.btn-download {
    background: #fff;
    color: #333;
    padding: 5px 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 13px;
}

.btn-download:hover {
    background: #666;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 80px 40px 50px;
    gap: 20px;
}

.hero-main-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.spend-text,
.invest-text {
    color: #fff;
    display: inline-block;
    margin-right: 20px;
    font-weight: 900;
}

.in-your-text,
.in-your-kids {
    color: #fff;
    display: inline-block;
    margin-right: 20px;
    font-weight: 400;
}

.and-text {
    color: #000;
    display: inline-block;
    font-weight: 900;
}

.kids-text {
    color: #000;
    display: inline-block;
    font-weight: 900;
}

.hero-quote {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 20px 25px;
    border-radius: 12px;
    margin: 0;
    max-width: 750px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.hero-quote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 12px;
    color: #fff;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.hero-quote cite {
    display: block;
    text-align: left;
    font-size: 1rem;
    color: #000000;
    font-weight: 600;
    font-style: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Services Section */
.services {
    padding: 80px 0 120px 0;
    background: #f8f9fa;
    margin: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-header {
    --services-header-offset: 150px;
    /* default horizontal offset to align header with tiles (reduced) */
    text-align: left;
    /* LTR: align content from left */
    margin-bottom: 4px;
    /* tightened gap to the grid below */
    max-width: 900px;
    /* match services-slider-container width */
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--services-header-offset);
}

@media (max-width: 992px) {
    .services-header {
        --services-header-offset: 80px;
        padding-left: var(--services-header-offset);
    }
}

@media (max-width: 768px) {

    /* remove offsets on small screens to avoid cramped layout */
    .services-header {
        --services-header-offset: 0px;
        padding-left: 0;
        text-align: left;
        max-width: 100%;
    }

    .services-header h2 {
        font-size: 2.4rem;
    }

    .services-subtitle {
        font-size: 1.1rem;
    }

    .services-description {
        font-size: 1rem;
    }
}

.services-header h2 {
    font-size: 4rem;
    /* increased per user request */
    color: #000000;
    /* pure black */
    margin-bottom: 12px;
    /* increased gap after title */
    font-weight: 700;
    line-height: 1.15;
    /* more breathing between lines */
    letter-spacing: 0.5px;
    width: 100%;
    display: block;
    white-space: nowrap;
    /* keep single-line if possible */
    overflow: visible;
}

.services-subtitle {
    font-size: 2.4rem;
    /* reduced for a lighter, shorter subtitle */
    color: #000000;
    margin-bottom: 10px;
    /* increased space below subtitle */
    font-weight: 500;
    /* lighter weight */
    max-width: 100%;
    letter-spacing: 0px;
    white-space: nowrap;
    /* keep subtitle on a single line on desktop */
    overflow: visible;
    line-height: 1.25;
    /* better vertical rhythm */
}

/* Make subtitle stretch to the end of the header container while respecting the
   left offset used for the title. */
.services-subtitle {
    display: block;
    width: 100%;
}

@media (min-width: 1400px) {
    .services-subtitle {
        font-size: 2.6rem;
    }
}

@media (max-width: 992px) {
    .services-subtitle {
        font-size: 1.4rem;
        margin-left: var(--services-header-offset);
        width: calc(100% - var(--services-header-offset));
    }
}

@media (max-width: 768px) {
    .services-subtitle {
        font-size: 1.15rem;
        white-space: normal;
        /* allow wrapping on small screens */
        margin-left: 0;
        width: 100%;
    }
}

.services-description {
    font-size: 1.6rem;
    /* increased as requested */
    color: #111;
    max-width: 900px;
    margin: 6px auto 4px;
    /* small top gap to separate from subtitle */
    line-height: 1.35;
    font-weight: 500;
}

.services-description strong,
.services-description b {
    font-weight: 800;
    color: #000;
}

.services-slider-container {
    position: relative;
    max-width: 900px;
    margin: 8px auto 0;
    /* small top gap to snug the grid under the header */
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

/* RTL adjustments: mirror header offset and right-align all header lines for Arabic */
html[dir="rtl"] .services-header {
    padding-right: var(--services-header-offset);
    padding-left: 0;
    text-align: right;
    /* ensure header content starts from the right */
}

html[dir="rtl"] .services-header h2 {
    text-align: right;
    direction: rtl;
    white-space: nowrap;
}

/* Make the subtitle less massive for Arabic and ensure it starts from the same column as the tiles */
html[dir="rtl"] .services-subtitle {
    font-size: 1.5rem;
    /* reduced size for Arabic */
    margin-right: 0;
    margin-left: 0;
    display: block;
    width: 100%;
    text-align: right;
    line-height: 1.18;
}

/* Ensure the paragraph/description aligns with the title and subtitle in RTL */
html[dir="rtl"] .services-description {
    text-align: right;
    direction: rtl;
    /* Remove all offsets and margins to align with header container */
    padding-right: 0;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
    max-width: 900px;
}

@media (max-width: 992px) {
    html[dir="rtl"] .services-subtitle {
        font-size: 1.2rem;
        margin-right: 0;
        width: 100%;
    }

    /* On medium/narrow screens remove the offset so text uses full width */
    html[dir="rtl"] .services-description {
        margin-right: 0;
        width: 100%;
        padding-right: 0;
    }
}

.services-grid-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 560px;
}

.services-carousel {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.services-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    padding: 15px;
    align-items: stretch;
}

.services-slide.active {
    opacity: 1;
    transform: translateX(0%);
}

.services-slide.prev {
    transform: translateX(-100%);
}

.services-slide.next {
    transform: translateX(100%);
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
    min-height: 140px;
    position: relative;
    overflow: visible;
    margin: 0;
}

.service-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: visible;
    z-index: 2;
    flex-shrink: 0;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon img {
    transform: scale(1.15);
}

.service-item span {
    font-size: 10px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    z-index: 2;
    margin-top: auto;
    padding-top: 8px;
    text-align: center;
    width: 100%;
    display: block;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slider Arrow Custom Style: No background, no shadow, only black arrow */
.slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgb(248, 249, 250);
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    box-shadow: none;
    backdrop-filter: none;
    flex-shrink: 0;
    z-index: 100;
}

.slider-arrow:hover {
    background: rgb(248, 249, 250);
    color: #000;
    box-shadow: none;
    transform: none;
}

.slider-arrow:active {
    background: rgb(248, 249, 250);
    color: #000;
    box-shadow: none;
    transform: none;
}

.slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.slider-arrow-left {
    order: 1;
}

.services-grid-wrapper {
    order: 2;
}

.slider-arrow-right {
    order: 3;
}

/* Mobile Swipe Indicator */
.mobile-swipe-indicator {
    display: none;
    text-align: center;
    margin-top: 15px;
    opacity: 0.7;
}

/* Desktop-only services informational line (hidden on mobile) */
.services-info-desktop {
    display: none;
    color: #000;
    text-align: center;
    font-size: 1rem;
    margin: 12px auto 8px;
    max-width: 900px;
    font-weight: 500;
}

.swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    animation: swipePulse 2s infinite;
}

.swipe-hint i {
    font-size: 14px;
    color: #007bff;
}

@keyframes swipePulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(3px);
    }
}

/* Show swipe indicator only on mobile devices */
@media (max-width: 768px) {
    .mobile-swipe-indicator {
        display: block;
    }

    /* hide desktop info on small screens */
    .services-info-desktop {
        display: none !important;
    }
}

@media (min-width: 769px) {

    /* show desktop info on tablet/desktop */
    .services-info-desktop {
        display: block;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        word-break: keep-all;
    }

    /* hide swipe hint on larger screens */
    .mobile-swipe-indicator {
        display: none !important;
    }
}

/* App Features Section */
.app-features {
    padding: 60px 0;
    background: #000;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
}

.app-features .container {
    max-width: none;
    padding: 0;
}

.app-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #fff;
}

.features-content {
    display: grid;
    grid-template-columns: 350px 1fr 350px;
    gap: 0;
    align-items: flex-start;
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}


.features-left {
    display: flex;
    flex-direction: column;
    gap: 35px;
    height: fit-content;
    position: relative;
    z-index: 3;
}

.features-right {
    display: flex;
    flex-direction: column;
    gap: 55px;
    height: fit-content;
    position: relative;
    z-index: 2;
}

.features-left {
    padding: 20px 30px 20px 20px;
    margin-left: 0;
    justify-self: start;
}

.features-right {
    padding: 20px 20px 20px 30px;
    margin-right: 1px;
    justify-self: end;
}

/* إزاحة الكروت العلوية إلى الأعلى */
.features-left .feature-item:first-child,
.features-right .feature-item:first-child {
    transform: translateY(-15%);
}

/* إزاحة الكروت السفلية إلى الأسفل */
.features-left .feature-item:last-child,
.features-right .feature-item:last-child {
    transform: translateY(15%);
}

.features-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: fit-content;
    position: relative;
    z-index: 1;
}

.phone-mockups img {
    max-width: 150%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(255, 255, 255, 0.15));
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: left;
    padding: 20px;
    border-radius: 12px;
    /* Removed glass effect and semi-transparent white background per request */
    background: transparent;
    backdrop-filter: none;
    transition: all 0.2s ease;
    border: none;
    /* remove translucent border */
    height: fit-content;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 300px;
}

.feature-item:hover {
    /* subtle lift without adding a white glow */
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    z-index: 4;
}

/* تأثير hover للكروت العلوية */
.features-left .feature-item:first-child:hover,
.features-right .feature-item:first-child:hover {
    transform: translateY(-15%) translateY(-5px) scale(1.02);
}

/* تأثير hover للكروت السفلية */
.features-left .feature-item:last-child:hover,
.features-right .feature-item:last-child:hover {
    transform: translateY(15%) translateY(-5px) scale(1.02);
}

.feature-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* make icon background transparent to remove glass */
    background: transparent;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 5px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
    text-align: left;
    width: 100%;
    line-height: 1.3;
    height: 50px;
    display: flex;
    align-items: center;
}

.feature-text p {
    color: #e6e6e6;
    /* keep good contrast on black background */
    line-height: 1.4;
    font-size: 0.8rem;
    text-align: left;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

/* How It Works Section */
.how-it-works {
    padding: 60px 0;
    background: #f8f9fa;
    margin: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.works-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    /* vertically center the phone image */
}

.works-phone img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 509px;
    /* increased 5% */
    object-fit: contain;
    border-radius: 20px;
    box-shadow: none !important;
    /* ensure no shadow looks like a background */
}

/* Responsive adjustments: reduce image max-height on smaller viewports */
@media (max-width: 992px) {
    .works-phone img {
        max-height: 437px;
    }
}

@media (max-width: 768px) {
    .works-phone img {
        max-height: 364px;
        width: 81%;
    }
}

@media (max-width: 480px) {
    .works-phone img {
        max-height: 267px;
        width: 81%;
    }
}


.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-item.active {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-item.active .step-number {
    background: #000000;
    color: #fff;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    padding: 0;
    background: #333;
    color: #fff;
    margin: 40px 30px;
    position: relative;
    z-index: 2;
    border-radius: 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px 0 20px;
    height: 200px;
}

.download-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.download-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.download-text p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #ccc;
}

.download-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 0;
}

.footer-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 0;
}

.download-btn {
    display: inline-block;
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.download-btn img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.download-btn:hover img {
    transform: scale(1.05);
}

.download-phones {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 45%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.download-phones img {
    width: 60%;
    height: auto;
    max-height: 280px;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
    object-fit: contain;
    object-position: bottom center;
}

/* News Section */
.news-section {
    padding: 60px 0;
    background: #fff;
    margin: 0;
    position: relative;
    z-index: 2;

}

.news-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

.news-content {
    padding: 25px;
}

.news-date {
    background: #000000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.news-content h3 {
    font-size: 1.2rem;
    margin: 30px 0 10px;
    color: #333;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background: #f8f9fa;
    margin: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.contact-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    background: #fff;
}

/* تنسيق خاص للقائمة المنسدلة */
.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.form-group select option {
    padding: 10px;
    background: #fff;
    color: #333;
    font-size: 1rem;
}

.form-group select option:hover {
    background: #f8f9fa;
}

.form-group select option[disabled] {
    color: #6c757d;
    font-style: italic;
}

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

.submit-btn {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #666;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-info i {
    color: #666;
    width: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #666;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #666;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu-hero {
        display: none;
    }

    .hero-main-text h1 {
        font-size: 3rem;
        line-height: 1.2;
        letter-spacing: 1px;
    }

    .hero-background .nav-container {
        justify-content: center;
    }

    .btn-download {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Mobile responsive adjustments for better consistency */
    @media (max-width: 768px) {
        .services {
            padding: 90px 0 110px 0;
        }

        .services-slider-container {
            gap: 0;
            max-width: 100%;
            padding: 0 15px;
            justify-content: center;
        }

        .services-grid-wrapper {
            padding: 15px 5px;
            min-height: 520px;
            width: 100%;
        }

        .services-carousel {
            height: 480px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .services-carousel::-webkit-scrollbar {
            display: none;
        }

        .services-slide {
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 10px;
            padding: 10px;
            align-items: stretch;
            scroll-snap-align: start;
            min-height: 460px;
        }

        .service-item {
            padding: 12px 6px;
            min-height: 140px;
            margin: 0;
            height: 100%;
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .service-icon {
            width: 55px;
            height: 55px;
            margin-bottom: 8px;
            flex-shrink: 0;
        }

        .service-item span {
            font-size: 8px;
            letter-spacing: 0.3px;
            line-height: 1.1;
            min-height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin-top: auto;
            padding-top: 5px;
        }

        /* Hide arrows on mobile */
        .slider-arrow {
            display: none;
        }
    }

    .features-content,
    .works-content,
    .download-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .download-content {
        padding: 20px 15px 0 15px;
        height: auto;
        text-align: center;
    }

    .download-text {
        order: 1;
        margin-bottom: 20px;
    }

    .download-text h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .download-text p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .download-phones {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 200px;
        order: 2;
        right: auto;
        bottom: auto;
        margin-top: 20px;
    }

    .download-phones img {
        width: 70%;
        max-width: 300px;
    }

    .features-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
        transform: none;
        position: relative;
        left: auto;
        width: 100%;
        max-width: 100%;
    }

    .features-center {
        order: 1;
        padding: 10px;
        margin: 0 auto;
        max-width: 300px;
    }

    .phone-mockups img {
        max-width: 100%;
        height: auto;
        max-height: 350px;
    }

    .features-left,
    .features-right {
        order: 2;
        padding: 15px;
        margin: 0;
        justify-self: center;
        width: 100%;
        max-width: 500px;
    }

    .features-left {
        margin-bottom: 20px;
    }

    .features-right {
        margin-top: 20px;
    }

    .feature-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
        padding: 15px;
        margin-bottom: 15px;
        max-width: 100%;
        width: 100%;
        gap: 15px;
        transform: none !important;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .feature-icon img {
        width: 80%;
        height: 80%;
    }

    .feature-text {
        flex: 1;
    }

    .feature-text h3 {
        font-size: 1rem;
        height: auto;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .feature-text p {
        font-size: 0.85rem;
        line-height: 1.3;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .download-buttons {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
        justify-content: center;
    }

    .download-btn {
        width: auto;
        max-width: 150px;
        display: flex;
        justify-content: center;
        flex: 1;
    }

    .download-btn img {
        height: 55px;
    }

    .download-section {
        height: auto;
        min-height: 400px;
        margin: 30px 20px;
        padding: 20px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Ensure text aligns exactly with the image width and uses the same horizontal padding */
    .news-card {
        box-sizing: border-box !important;
        padding: 0 15px !important;
        /* create consistent horizontal inset inside each card */
        background: transparent !important;
        /* keep visual appearance controlled by inner elements */
        border-radius: 0 !important;
    }

    .news-card .image-wrap {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Image fills the padded card area while maintaining aspect and minimal cropping */
    .news-card .image-wrap img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
        border-radius: 12px !important;
    }

    /* Make the text container match the image width exactly */
    .news-content {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px 18px 15px !important;
        /* same horizontal padding as the card */
        margin: 6px 0 0 0 !important;
        background: transparent !important;
    }

    /* Ensure date/divider aligns with image edges */
    .news-date-wrap,
    .news-content h3,
    .news-content p {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Ensure on mobile the image is stacked above the text and text is not overlaying the image */
    .news-card {
        display: block !important;
        position: relative !important;
        overflow: visible !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        background: #fff;
        /* keep readable background for text */
    }

    .news-card .image-wrap {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 10px 10px 0 0 !important;
        overflow: hidden !important;
    }

    .news-card .image-wrap img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .news-content {
        position: static !important;
        /* cancel any absolute/floating positioning */
        margin-top: 12px !important;
        padding: 16px !important;
        background: transparent !important;
    }

    .news-card img {
        height: 250px;
        object-fit: cover;
        object-position: center;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* تحسين القائمة المنسدلة على الأجهزة المحمولة */
    .form-group select {
        padding: 12px;
        font-size: 16px;
        /* يمنع التكبير التلقائي على iOS */
        background-size: 18px;
        background-position: right 12px center;
        padding-right: 40px;
    }

    .form-group select option {
        padding: 12px 8px;
        font-size: 16px;
    }

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

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

/* Strong mobile overrides to prevent heavy cropping and ensure text sits below the image.
   These rules are intentionally specific and use !important to override earlier fixed heights. */
@media (max-width: 768px) {

    .news-card,
    .news-card .image-wrap,
    .news-card .image-wrap img {
        width: 100% !important;
    }

    /* Show full image proportionally (reduce cropping). Use contain so the whole image is visible.
       max-height uses viewport width to approximate "80% of visible image" on narrow screens. */
    .news-card .image-wrap img {
        height: auto !important;
        max-height: 80vw !important;
        /* allow image to grow with viewport width */
        object-fit: contain !important;
        /* avoid cropping */
        display: block !important;
    }

    /* Ensure card doesn't clip the image and text flows under the image */
    .news-card {
        overflow: visible !important;
        background: #fff !important;
        border-radius: 12px !important;
    }

    .news-card .image-wrap {
        border-radius: 10px 10px 0 0 !important;
        overflow: hidden !important;
        display: block !important;
    }

    .news-content {
        position: static !important;
        margin-top: 10px !important;
        padding: 16px !important;
    }
}

@media (max-width: 480px) {

    /* even stronger constraints for very small devices */
    .news-card .image-wrap img {
        max-height: 80vw !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

@media (max-width: 320px) {
    .news-card .image-wrap img {
        max-height: 85vw !important;
        /* slightly taller proportion on very narrow screens */
        height: auto !important;
        object-fit: contain !important;
    }
}

@media (max-width: 480px) {
    .hero-main-text h1 {
        font-size: 2.2rem;
        letter-spacing: 0.5px;
    }

    .hero-content {
        padding: 80px 15px 30px;
    }

    .services-slider-container {
        gap: 0;
        padding: 0 10px;
        justify-content: center;
    }

    .services-grid-wrapper {
        padding: 10px 3px;
        min-height: 450px;
        width: 100%;
    }

    .services-carousel {
        height: 400px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-carousel::-webkit-scrollbar {
        display: none;
    }

    .services-slide {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 6px;
        padding: 8px;
        align-items: stretch;
        scroll-snap-align: start;
        min-height: 370px;
    }

    .service-item {
        padding: 10px 4px;
        min-height: 100px;
        margin: 0;
        height: 80%;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
        flex-shrink: 0;
    }

    .service-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .service-item span {
        font-size: 7px;
        letter-spacing: 0.2px;
        line-height: 1.0;
        min-height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-top: auto;
        padding-top: 3px;
        width: 100%;
    }

    /* Hide arrows on mobile */
    .slider-arrow {
        display: none;
    }

    .services-header h2,
    .app-features h2,
    .how-it-works h2,
    .download-text h2,
    .news-section h2 {
        font-size: 2rem;
    }

    .news-card img {
        height: 220px;
        object-fit: cover;
        object-position: center;
    }
}

/* Extra small mobile devices (320px and below) */
@media (max-width: 320px) {
    .services {
        padding: 60px 0 80px 0;
    }

    .services-grid-wrapper {
        padding: 8px 2px;
        min-height: 380px;
    }

    .services-carousel {
        height: 340px;
    }

    .services-slide {
        gap: 4px;
        padding: 6px;
        min-height: 320px;
    }

    .service-item {
        padding: 8px 3px;
        min-height: 95px;
        aspect-ratio: 1;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 4px;
    }

    .service-item span {
        font-size: 6px;
        line-height: 0.9;
        min-height: 14px;
        padding-top: 2px;
    }

    .news-card img {
        height: 200px;
        object-fit: cover;
        object-position: center;
    }
}

/* App Features responsive styles */
@media (max-width: 768px) {
    .app-features h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .features-content {
        padding: 15px 10px;
        gap: 15px;
    }

    .features-center {
        max-width: 250px;
        padding: 5px;
    }

    .phone-mockups img {
        max-height: 300px;
    }

    .features-left,
    .features-right {
        padding: 10px;
        max-width: 100%;
    }

    .feature-item {
        padding: 12px;
        margin-bottom: 12px;
        gap: 12px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-text h3 {
        font-size: 0.9rem;
    }

    .feature-text p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .download-text h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .download-text p {
        font-size: 0.85rem;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .download-phones {
        min-height: 180px;
        margin-top: 15px;
    }

    .download-phones img {
        width: 65%;
        max-width: 250px;
    }

    .download-section {
        margin: 25px 15px;
        min-height: 350px;
    }

    .download-content {
        padding: 15px 10px 0 10px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-quote {
        margin: 15px auto 0;
        padding: 15px 18px;
        max-width: calc(100% - 30px);
        border-radius: 10px;
    }

    .hero-quote p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .hero-quote cite {
        font-size: 0.85rem;
        text-align: center;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        align-self: center;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects */
.service-item:hover .service-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon img {
    transition: transform 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

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

/* Fixed Icon */
.fixed-icon {
    position: fixed;
    right: 20px;
    top: 92%;
    transform: translateY(-50%);
    z-index: 9990;
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fixed-icon:hover {
    transform: translateY(-50%) scale(1.1);
}

.fixed-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .fixed-icon {
        width: 50px;
        height: 50px;
        right: 15px;
    }

    .fixed-icon img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .fixed-icon {
        width: 45px;
        height: 45px;
        right: 10px;
    }

    .fixed-icon img {
        width: 25px;
        height: 25px;
    }
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
}

/* Fixed navigation for mobile */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
}

.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(128, 128, 128, 0.2);
    border-color: rgba(128, 128, 128, 0.4);
    color: #666;
    transform: scale(1.05);
}

.mobile-side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-side-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo img {
    height: 35px;
    width: auto;
}

.close-mobile-menu {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
}

.mobile-menu-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    max-height: calc(100vh - 100px);
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for mobile menu */
.mobile-menu-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-dropdown {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.mobile-dropdown-toggle {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(128, 128, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-dropdown-toggle:hover::before {
    left: 100%;
}

.mobile-dropdown-toggle:hover {
    background: rgba(128, 128, 128, 0.1);
    color: #666;
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 500px;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-dropdown-content a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-dropdown-content a:last-child {
    border-bottom: none;
}

.mobile-dropdown-content a:hover {
    color: #666;
    background: rgba(128, 128, 128, 0.1);
    padding-left: 35px;
}

.mobile-dropdown-content a::before {
    content: '▸';
    position: absolute;
    left: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-dropdown-content a:hover::before {
    opacity: 1;
}

.mobile-download-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.mobile-btn-download:hover {
    background: #666;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Animations */
.mobile-side-menu.active .mobile-dropdown {
    animation: slideInFromRight 0.5s ease forwards;
    opacity: 0;
    transform: translateX(50px);
}

.mobile-side-menu.active .mobile-dropdown:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-side-menu.active .mobile-dropdown:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-side-menu.active .mobile-dropdown:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-side-menu.active .mobile-dropdown:nth-child(4) {
    animation-delay: 0.4s;
}

.mobile-side-menu.active .mobile-btn-download {
    animation: slideInFromRight 0.5s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: translateX(50px);
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .services {
        margin-top: 0;
    }

    .privet-section {
        height: 100vh;
        font-size: 2.5rem;
        padding: 80px 20px 20px;
        letter-spacing: 2px;
    }

    .privet-section img {
        object-position: center;
    }

    .hero {
        position: relative;
        height: 70vh;
        min-height: 70vh;
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        background-repeat: no-repeat;
        overflow: hidden;
    }

    .hero-background {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(0.5px);
        z-index: 1;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 20px 40px;
        min-height: calc(70vh - 80px);
        text-align: left;
    }

    .hero-main-text {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-main-text h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        letter-spacing: 1px;
        text-align: left;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
        margin-bottom: 0;
    }

    .hero-quote {
        margin: 0 auto;
        padding: 20px 25px;
        max-width: 90%;
        background: rgba(0, 0, 0, 0.75);
        border-radius: 15px;
        color: #fff;
        z-index: 2;
        position: relative;
    }

    .hero-quote p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .hero-quote cite {
        display: block;
        font-size: 1rem;
        text-align: right;
        color: #000000;
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
        box-sizing: border-box;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(15px);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-logo img {
        height: 40px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }

    .spend-text {
        display: block;
        margin-bottom: 0;
    }

    .spend-text::after {
        content: " IN YOUR LAND";
        color: #000000;
    }

    .invest-text {
        display: block;
    }

    .invest-text::after {
        content: " IN YOUR KIDS";
        color: #000000;
    }

    .in-your-text,
    .and-text,
    .in-your-kids,
    .kids-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .privet-section {
        height: 100vh;
        font-size: 1.8rem;
        padding: 120px 15px 20px;
        letter-spacing: 1px;
        line-height: 1.1;
    }

    .privet-section::before {
        background: rgba(0, 0, 0, 0.4);
    }

    .hero-quote {
        padding: 12px 15px;
        max-width: 95%;
        border-radius: 8px;
    }

    .hero-quote p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .hero-quote cite {
        font-size: 0.7rem;
        text-align: center;
    }

    .nav-logo img {
        height: 35px;
    }

    .nav-container {
        padding: 12px 15px;
        border-radius: 0 0 15px 15px;
    }

    .mobile-menu-btn {
        font-size: 16px;
        padding: 10px;
    }
}

/* Chat Modal Styles */
.chat-modal {
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    width: 350px !important;
    height: 500px !important;
    background: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid #000000 !important;
    z-index: 10005 !important;
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: slideInFromBottom 0.3s ease-out;
    transform-origin: bottom right;
}

.chat-modal.active {
    display: flex !important;
}

.chat-modal-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
}

.chat-header {
    background: #000000;
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}

.chat-close:hover {
    transform: scale(1.2);
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease-out;
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    align-items: flex-end;
    align-self: flex-end;
}

.message-content {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: #f0f0f0;
    color: #000000;
    border: 1px solid #cccccc;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background: #000000;
    color: #ffffff;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 5px;
    padding: 0 5px;
}

.chat-input-container {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #000000;
    display: flex;
    gap: 10px;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #000000;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    background: #ffffff;
    color: #000000;
    transition: border-color 0.2s ease;
}

#chatInput:focus {
    border-color: #000000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.send-btn {
    width: 45px;
    height: 45px;
    background: #000000;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.1);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Chat Modal Animations */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes messageSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Chat Modal Mobile Responsive */
@media (max-width: 768px) {
    .chat-modal {
        width: calc(100vw - 20px);
        height: 70vh;
        right: 10px;
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .chat-modal {
        width: calc(100vw - 10px);
        height: 75vh;
        right: 5px;
        bottom: 80px;
    }
}

/* Force transparent background for .works-phone across all included styles to avoid white backgrounds */
.works-phone,
.works-phone * {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.works-phone img {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* News section styles matching the provided design (adjusted per request) */
.news-section {
    padding: 60px 0;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    align-items: start;
}

.news-card {
    background: transparent;
    /* fully transparent card */
    border: none;
    padding: 0;
    /* remove card padding so there is no visible background */
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Slightly smaller images and do NOT crop them: use natural proportions */
.news-card .image-wrap {
    width: 100%;
    overflow: visible;
    border-radius: 12px;
    /* keep image rounded if desired */
    text-align: center;
    padding: 0;
    margin-bottom: 6px;
}

.news-card img {
    width: 100%;
    height: auto;
    /* keep full image visible */
    display: block;
    border-radius: 10px;
}

.news-content {
    padding: 0 6px;
}

/* New content structure without date wrapper */
.news-content-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: -36px;
}

/* Card title (bold as requested) */
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222222;
    margin: 0;
    line-height: 1.3;
}

/* Card description */
.card-description {
    font-size: 0.95rem;
    color: #5f5f5f;
    line-height: 1.6;
    margin: 0;
    white-space: normal;
    overflow: visible;
}

/* Keep cards fully transparent on hover/focus/active and remove any shadow/transform */
.news-card:hover,
.news-card:focus,
.news-card:active {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card .image-wrap {
        max-height: 200px;
    }
}

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

    .news-card .image-wrap {
        aspect-ratio: 16 / 9;
        max-height: 220px;
        border-radius: 10px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.9rem;
    }
}

/* RTL Support for Product Cards */
[dir="rtl"] .news-content-text {
    text-align: right;
}

[dir="rtl"] .card-title,
[dir="rtl"] .card-description {
    text-align: right;
}

/* Download section gradient background: white at top to stronger gray at bottom */
.download-section {
    /* fallback color: stronger gray at bottom */
    background-color: #bfbfbf;
    /* vertical gradient: white top -> darker gray bottom for stronger bottom contrast */
    background-image: linear-gradient(180deg, #4e4e4e 0%, #232323 100%);
    background-repeat: no-repeat;
    background-size: cover;
}

/* Ensure headings, paragraphs and links are readable over the gradient (use white) */
.download-section .download-text h2,
.download-section .download-text p,
.download-section .download-text a,
.download-section .download-text .download-buttons,
.download-section .download-text .download-buttons a {
    color: #ffffff !important;
}

/* If buttons use icons with transparent backgrounds, keep images as-is; for any textual buttons ensure white text */
.download-section .download-app-btn a,
.download-section .mobile-btn-download,
.download-section .download-btn {
    color: #ffffff !important;
}

/* About Us Section - Black & White Theme */
.about-us-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #000000;
}

.about-us-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    align-items: start;
}

/* Left Side - Content */
.about-us-left {
    padding-right: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-line {
    width: 40px;
    height: 3px;
    background-color: #007bff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin: 20px 0;
    line-height: 1.4;
}

.about-description {
    margin: 25px 0 40px 0;
}

.about-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    /* Ensure consistent spacing and alignment */
    place-items: center;
}

.stat-card {
    background-color: #ffffff;
    padding: 25px 15px;
    text-align: center;
    border-radius: 13px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Make all cards perfect squares with equal dimensions */
    aspect-ratio: 1;
    min-height: 135px;
    max-height: 120px;
    min-width: 135px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    /* Text color for white background */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Colored stat cards - override to white with shadow */
.stat-card.stat-dark {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.stat-card.stat-orange {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.stat-card.stat-red {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.stat-card.stat-green {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.stat-card.stat-orange-red {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

/* remove hover effects on stat cards but keep shadow */
.stat-card:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #333333;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
    margin: 0;
    display: block;
}

/* Right Side - Stats Bars */
.about-us-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 30px;
    padding-top: 117px;
}

.stat-bar-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-bar-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.stat-bar-number {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
}

.stat-bar-text {
    font-size: 0.95rem;
    color: #666666;
    font-weight: 500;
}

.stat-bar-line {
    height: 8px;
    position: relative;
    /* شفافية كاملة للخلفية */
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0px;
    transition: none;
    width: 100%;
    /* إطار أسود شفاف */
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
    transform: scale(1.2);
    transform-origin: left center;
}

.stat-bar-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 90%;
    /* الجزء الملون 90% */
    background: linear-gradient(90deg, #000000 0%, #515151 100%);
    border-radius: 0px;
    z-index: 1;
}

.stat-bar-line-full {
    width: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
    border-radius: 0px;
    transform: scale(1.2);
    transform-origin: left center;
}

.stat-bar-line-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /* الجزء الملون 100% */
    background: linear-gradient(90deg, #000000 0%, #515151 100%);
    border-radius: 0px;
    z-index: 1;
}

.stat-bar-line-medium {
    width: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
    border-radius: 0px;
    transform: scale(1.2);
    transform-origin: left center;
}

.stat-bar-line-medium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 75%;
    /* الجزء الملون 75% */
    background: linear-gradient(90deg, #000000 0%, #515151 100%);
    border-radius: 0px;
    z-index: 1;
}

.stat-bar-line-small {
    width: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
    border-radius: 0px;
    transform: scale(1.2);
    transform-origin: left center;
}

.stat-bar-line-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    /* الجزء الملون 60% */
    background: linear-gradient(90deg, #000000 0%, #515151 100%);
    border-radius: 0px;
    z-index: 1;
}

/* disable hover scaling on stat bars */
.stat-bar-item:hover .stat-bar-line {
    transform: none !important;
}

/* Responsive Design for Stat Bars */
/* Large screens (above 1400px) - Keep bars within page boundaries */
@media (min-width: 1400px) {

    .stat-bar-line,
    .stat-bar-line-full,
    .stat-bar-line-medium,
    .stat-bar-line-small {
        height: 8px;
        transform: scale(1.0);
        /* إزالة التكبير للشاشات الكبيرة */
        border: 2px solid rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
        /* تقليل الشفافية الخارجية */
        max-width: 100%;
        /* ضمان عدم تجاوز عرض الحاوي */
        overflow: hidden;
        /* إخفاء أي جزء يتجاوز الحدود */
    }

    .about-us-right {
        padding-left: 30px;
        padding-top: 117px;
        max-width: 100%;
        /* ضمان عدم تجاوز عرض الحاوي */
    }

    .stat-bar-item {
        max-width: 100%;
        /* ضمان عدم تجاوز عرض الحاوي */
        overflow: hidden;
    }
}

@media (max-width: 1200px) {

    .stat-bar-line,
    .stat-bar-line-full,
    .stat-bar-line-medium,
    .stat-bar-line-small {
        height: 7px;
        transform: scale(1.15);
        border: 1px solid rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 992px) {

    .stat-bar-line,
    .stat-bar-line-full,
    .stat-bar-line-medium,
    .stat-bar-line-small {
        height: 6px;
        transform: scale(1.1);
        border: 1px solid rgba(0, 0, 0, 0.25);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
    }

    .about-us-right {
        gap: 25px;
        padding-top: 20px;
    }
}

@media (max-width: 768px) {

    .stat-bar-line,
    .stat-bar-line-full,
    .stat-bar-line-medium,
    .stat-bar-line-small {
        height: 5px;
        transform: scale(1.05);
        border: 1px solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    }

    .about-us-right {
        gap: 20px;
        padding-top: 15px;
    }

    .stat-bar-number {
        font-size: 1.2rem;
    }

    .stat-bar-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    .stat-bar-line,
    .stat-bar-line-full,
    .stat-bar-line-medium,
    .stat-bar-line-small {
        height: 4px;
        transform: scale(1.0);
        border: 1px solid rgba(0, 0, 0, 0.15);
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    }

    .about-us-right {
        gap: 15px;
        padding-top: 10px;
    }

    .stat-bar-number {
        font-size: 1rem;
    }

    .stat-bar-text {
        font-size: 0.8rem;
    }

    .stat-bar-item {
        gap: 8px;
    }
}



@media (max-width: 992px) {
    .about-us-section {
        padding: 60px 0;
    }

    .about-us-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-us-left,
    .about-us-right {
        padding-left: 0;
        padding-right: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        place-items: center;
    }
}

@media (max-width: 768px) {
    .about-us-section {
        padding: 50px 0;
    }

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

    .about-subtitle {
        font-size: 1.2rem;
    }

    .about-description p {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        place-items: center;
    }

    .stat-card {
        padding: 20px 15px;
        min-height: 120px;
        max-height: 110px;
        min-width: 120px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-bar-number {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        place-items: center;
    }

    .stat-bar-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .about-us-section {
        padding: 40px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-line {
        width: 30px;
        height: 2px;
    }

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

    .about-subtitle {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 20px;
    }

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

    .stat-card {
        padding: 15px 10px;
        min-height: 100px;
        max-height: 95px;
        min-width: 100px;
    }
}

/* RTL Support for About Us */
[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-us-left {
    padding-right: 0;
    padding-left: 30px;
}

[dir="rtl"] .about-us-right {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .stat-bar-header {
    flex-direction: row-reverse;
}

@media (max-width: 992px) {

    [dir="rtl"] .about-us-left,
    [dir="rtl"] .about-us-right {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Global Presence Section - Based on SIASUN's Global Presence Design */
.global-presence-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #000000;
}

.global-presence-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Side - Content */
.global-presence-left {
    padding-right: 30px;
}

.global-description {
    margin: 25px 0 40px 0;
}

.global-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 15px;
}

.global-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.global-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    text-align: center;
}

.global-stat-icon {
    width: 60px;
    height: 60px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Subtle semi-transparent black ring (30% opacity) around the circle */
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.3) !important;
    /* Keep other effects disabled */
    transition: none !important;
    -webkit-transition: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    animation: none !important;
}

.global-stat-icon svg,
.global-stat-icon svg path,
.global-stat-icon svg * {
    color: white !important;
    fill: white !important;
    stroke: none !important;
    stroke-width: 0 !important;
    transition: none !important;
    -webkit-transition: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

.global-stat-icon img {
    /* Remove any filter-based effects (no invert/brightness) */
    filter: none !important;
    -webkit-filter: none !important;
    width: 32px;
    height: 32px;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
}

/* Prevent parent hover/focus/active from applying any visual change */
.global-stat-item:hover,
.global-stat-item:focus,
.global-stat-item:active,
.global-stat-item:focus-visible {
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

.global-stat-text h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
    margin: 0;
    line-height: 1.4;
}

/* Right Side - Map */
.global-presence-right {
    padding-left: 30px;
}

.global-map-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.global-map {
    width: 125%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    margin-left: -74px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .global-presence-wrapper {
        gap: 40px;
    }

    .global-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .global-presence-section {
        padding: 60px 0;
    }

    .global-presence-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .global-presence-left,
    .global-presence-right {
        padding-left: 0;
        padding-right: 0;
    }

    .global-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .global-presence-section {
        padding: 50px 0;
    }

    .global-stat-item {
        padding: 15px 0;
        gap: 12px;
    }

    .global-stat-icon {
        width: 50px;
        height: 50px;
        /* Slightly thinner ring on smaller screens */
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3) !important;
        transition: none !important;
        -webkit-transition: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        animation: none !important;
    }

    .global-stat-icon svg,
    .global-stat-icon svg *,
    .global-stat-icon svg path {
        width: 30px;
        height: 30px;
        transition: none !important;
        -webkit-transition: none !important;
        transform: none !important;
        -webkit-transform: none !important;
        box-shadow: none !important;
        filter: none !important;
        animation: none !important;
        stroke: none !important;
        fill: white !important;
    }

    .global-stat-icon img {
        width: 24px;
        height: 24px;
        filter: none !important;
        -webkit-filter: none !important;
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
        animation: none !important;
    }

    .global-stat-text h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .global-presence-section {
        padding: 40px 0;
    }

    .global-stat-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .global-stat-text h4 {
        font-size: 0.85rem;
    }
}

/* RTL Support for Global Presence */
[dir="rtl"] .global-presence-left {
    padding-right: 0;
    padding-left: 30px;
}

[dir="rtl"] .global-presence-right {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .global-stat-item {
    flex-direction: column;
}

@media (max-width: 992px) {

    [dir="rtl"] .global-presence-left,
    [dir="rtl"] .global-presence-right {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    [dir="rtl"] .global-stat-item {
        flex-direction: column;
    }
}

/* Brands Container */
.brands-logos-container {
    margin: 40px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    cursor: grab;
    padding: 10px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.brands-logos-container:active {
    cursor: grabbing;
}

/* تحسين التمرير الناعم */
.brands-logos-container:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* تلميح السحب */
.drag-hint {
    text-align: center;
    margin: 20px 0 10px 0;
    color: #666;
    font-size: 0.9rem;
    opacity: 0.8;
}

.drag-hint i {
    margin-right: 8px;
    color: #007bff;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Draggable Grid - 3 columns horizontal scrolling */
.brands-logos-grid-draggable {
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease-out;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x;
    width: max-content;
    min-width: 100%;
    /* نظام flex لترتيب الأعمدة أفقياً */
}

/* كل عمود يحتوي على 3 شعارات عمودياً */
.brand-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 150px;
}

.brands-logos-grid-draggable.dragging {
    transition: none;
}

/* Brand Logo Styling */
.brand-logo {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.2s ease;
    position: relative;
    margin: 2px;
    overflow: hidden;
}

.brand-logo:hover {
    transform: translateY(-2px) scale(1.05);
    background: transparent;
}

/* SVG Object Styling */
.brand-svg,
.brand-logo object {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: none;
    /* إزالة التأثيرات */
    pointer-events: none;
    border: none;
    outline: none;
    background: transparent;
    /* خلفية شفافة */
}

/* Iframe as fallback for SVG */
.brand-iframe {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    pointer-events: none;
    background: transparent;
    transition: none;
    /* إزالة التأثيرات */
}

/* Fallback Image Styling */
.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    /* إزالة الفلاتر */
    transition: none;
    /* إزالة التأثيرات */
}

.brand-logo:hover img,
.brand-logo:hover .brand-svg,
.brand-logo:hover .brand-iframe {
    filter: none;
    /* إزالة فلاتر الـ hover */
    transform: none;
    /* إزالة تأثير التكبير */
}

/* إضافة styles خاصة لمعالجة SVG */
.brand-logo object[type="image/svg+xml"] {
    display: block;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

/* في حالة عدم تحميل الـ object، استخدم الـ iframe كـ fallback */
.brand-logo object iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
}

/* خاص بـ SVG التي تحتوي على external images */
.brand-logo svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    background: transparent !important;
    border: none !important;
}

.brand-logo svg image {
    width: 100% !important;
    height: 100% !important;
}

/* إزالة أي تأثيرات إضافية */
.brand-logo *,
.brand-logo *:hover,
.brand-logo *:focus,
.brand-logo *:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .brands-logos-grid-draggable {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
        width: 140%;
    }

    .brand-logo {
        height: 70px;
        padding: 12px;
    }
}

@media (max-width: 992px) {
    .brands-logos-grid-draggable {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        width: 130%;
    }

    .brand-logo {
        height: 65px;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .brands-logos-grid-draggable {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        width: 120%;
    }

    .brand-logo {
        height: 60px;
        padding: 8px;
    }

    .brands-logos-container {
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .brands-logos-grid-draggable {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 110%;
    }

    .brand-logo {
        height: 55px;
        padding: 6px;
    }
}

/* Scrollbar Hide */
.brands-logos-container::-webkit-scrollbar {
    display: none;
}

.brands-logos-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth momentum scrolling for mobile */
.brands-logos-container {
    -webkit-overflow-scrolling: touch;
}

/* Error handling for failed SVG loads */
.brand-logo object:not([data]) {
    display: none;
}

.brand-logo object[data]:not([data=""]) {
    display: block;
}

/* Sustainable Development Section */
.sustainable-development-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.sustainable-development-background {
    position: absolute;
    top: 0;
    left: -324px;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 169px;
}

.sustainable-development-bg {
    width: 80%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: none;
}

.sustainable-development-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

.sustainable-white-panel {
    background: white;
    margin-left: 5%;
    max-width: 600px;
    padding: 60px 40px;
    border-radius: none;
    max-width: 767px;
    height: 328px;
    margin-left: 672px;
}

.sustainable-development-section .sustainable-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.sustainable-development-section .sustainable-section-line {
    width: 50px;
    height: 4px;
    background-color: #007bff;
    flex-shrink: 0;
}

.sustainable-development-section .sustainable-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.2;
}

.sustainable-description {
    margin: 25px 0 40px 0;
}

.sustainable-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666666;
    text-align: left;
    margin: 0;
}

/* Responsive Design for Sustainable Development */
@media (max-width: 1200px) {
    .sustainable-white-panel {
        max-width: 550px;
        padding: 50px 35px;
    }

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

@media (max-width: 992px) {
    .sustainable-white-panel {
        margin-left: 3%;
        max-width: 500px;
        padding: 40px 30px;
    }

    .sustainable-development-section .sustainable-section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .sustainable-development-section {
        min-height: auto;
        padding: 60px 0;
    }

    .sustainable-white-panel {
        margin-left: 2%;
        margin-right: 2%;
        max-width: none;
        padding: 30px 25px;
        border-radius: none;
    }

    .sustainable-development-section .sustainable-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sustainable-development-section .sustainable-section-title {
        font-size: 1.6rem;
    }

    .sustainable-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .sustainable-white-panel {
        padding: 25px 20px;
    }

    .sustainable-development-section .sustainable-section-title {
        font-size: 1.4rem;
    }

    .sustainable-description p {
        font-size: 0.9rem;
    }
}

/* RTL Support for Sustainable Development */
[dir="rtl"] .sustainable-white-panel {
    margin-left: auto;
    margin-right: 5%;
}

[dir="rtl"] .sustainable-development-section .sustainable-section-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .sustainable-description p {
    text-align: right;
}

@media (max-width: 992px) {
    [dir="rtl"] .sustainable-white-panel {
        margin-right: 3%;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .sustainable-white-panel {
        margin-left: 2%;
        margin-right: 2%;
    }

    [dir="rtl"] .sustainable-development-section .sustainable-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Completely remove all visual effects from icons site-wide */
svg,
svg *,
img,
i.fas,
i.far,
i.fab,
i.fa,
.fa,
.fas,
.far,
.fab {
    transition: none !important;
    -webkit-transition: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    animation: none !important;
    opacity: 1 !important;
}

/* Prevent hover/focus/active states from applying visual changes to icons */
svg:hover,
svg:focus,
svg:active,
img:hover,
img:focus,
img:active,
i.fas:hover,
i.fas:focus,
i.fas:active,
.fa:hover,
.fa:focus,
.fa:active {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    animation: none !important;
    opacity: 1 !important;
}

/* Ensure icon containers do not apply effects on child icons */
.global-stat-item,
.nav-link-hero i,
.mobile-nav-link i,
.download-btn img,
.fixed-icon img {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

/* Global Customers Section */
.global-customers-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.global-customers-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 169px;
}

.global-customers-bg {
    width: 80%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: none;
}

.global-customers-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
}

.customers-white-panel {
    background: white;
    margin-left: 5%;
    max-width: 600px;
    padding: 60px 40px;
    border-radius: none;
    max-width: 767px;
    height: 624px;
    margin-left: 117px;
}

.global-customers-section .section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.global-customers-section .section-line {
    width: 50px;
    height: 4px;
    background-color: #007bff;
    flex-shrink: 0;
}

.global-customers-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.2;
}

.customers-description {
    margin: 25px 0 40px 0;
}

.customers-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666666;
    text-align: left;
    margin: 0;
}

/* Brand Logos Grid */
.brands-logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.brand-logo {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 8px;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.brand-logo:hover img {
    opacity: 1;
}

/* Responsive Design */
@media (min-width: 1200px) and (max-width:1350) {
    .customers-white-panel {
        max-width: 550px;
        padding: 50px 35px;
    }

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

    .brands-logos-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .nav-link-hero {
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }
}

@media (max-width: 992px) {
    .customers-white-panel {
        margin-left: 3%;
        max-width: 500px;
        padding: 40px 30px;
    }

    .global-customers-section .section-title {
        font-size: 1.8rem;
    }

    .brands-logos-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .brand-logo {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .global-customers-section {
        min-height: auto;
        padding: 60px 0;
    }

    .customers-white-panel {
        margin-left: 2%;
        margin-right: 2%;
        max-width: none;
        padding: 30px 25px;
        border-radius: none;
    }

    .global-customers-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .global-customers-section .section-title {
        font-size: 1.6rem;
    }

    .customers-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .brands-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 30px;
    }

    .brand-logo {
        height: 45px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .customers-white-panel {
        padding: 25px 20px;
    }

    .global-customers-section .section-title {
        font-size: 1.4rem;
    }

    .customers-description p {
        font-size: 0.9rem;
    }

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

    .brand-logo {
        height: 40px;
    }
}

/* RTL Support */
[dir="rtl"] .customers-white-panel {
    margin-left: auto;
    margin-right: 5%;
}

[dir="rtl"] .global-customers-section .section-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .customers-description p {
    text-align: right;
}

@media (max-width: 992px) {
    [dir="rtl"] .customers-white-panel {
        margin-right: 3%;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .customers-white-panel {
        margin-left: 2%;
        margin-right: 2%;
    }

    [dir="rtl"] .global-customers-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Make step items keyboard-focusable and ensure clear contrast when selected */
.works-steps .step-item {
    transition: background-color 150ms ease, color 150ms ease;
    outline: none;
}

/* When a step is active or focused, use black background and white text */
.works-steps .step-item.active,
.works-steps .step-item:focus,
.works-steps .step-item:focus-visible {
    background-color: #000 !important;
    color: #fff !important;
}

/* Ensure inner elements inherit the white color */
.works-steps .step-item.active .step-number,
.works-steps .step-item:focus .step-number,
.works-steps .step-item:focus-visible .step-number {
    background-color: #fff0;
    /* keep number background transparent if styled elsewhere */
    color: #fff !important;
    border-color: #fff !important;
}

.works-steps .step-item.active .step-content h3,
.works-steps .step-item:focus .step-content h3,
.works-steps .step-item:focus-visible .step-content h3,
.works-steps .step-item.active .step-content p,
.works-steps .step-item:focus .step-content p,
.works-steps .step-item:focus-visible .step-content p {
    color: #fff !important;
}

/* Improve keyboard focus visibility */
.works-steps .step-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 0 6px rgba(0, 0, 0, 0.6) inset;
}

/* Responsive Design */
@media (min-width:1200px) and (max-width: 1400px) {
    .about-us-wrapper {
        gap: 40px;
    }

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

    .about-subtitle {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        place-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
        font-weight: 800;
        margin-bottom: 0.6rem;
        color: #ffffff;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
        line-height: 1.05;
        letter-spacing: 0.5px;
        margin-top: 60px;
    }

    .nav-link-hero {
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 500;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
    }

    .customers-white-panel {
        background: white;
        margin-left: 5%;
        max-width: 600px;
        padding: 60px 40px;
        border-radius: none;
        max-width: 660px;
        height: 575px;
        margin-left: -4px;
    }

    .customers-description p {
        font-size: 14px;
        line-height: 1.7;
        color: #666666;
        text-align: left;
        margin: 0;
    }

    .global-customers-section .section-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #333333;
        margin: 0;
        line-height: 1.2;
    }

    .brand-logo {
        width: 97%;
        height: 73px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        padding: 0px;
    }

    .sustainable-white-panel {
        background: white;
        margin-left: 5%;
        max-width: 600px;
        padding: 60px 40px;
        border-radius: none;
        max-width: 767px;
        height: 371px;
        margin-left: 672px;
    }

    .sustainable-development-bg {
        width: 80%;
        max-width: 1000px;
        height: auto;
        object-fit: contain;
        object-position: center;
        margin-left: 201px;
        border-radius: none;
    }

    .global-customers-bg {
        width: 80%;
        max-width: 1000px;
        height: auto;
        object-fit: contain;
        object-position: center;
        border-radius: none;
        margin-right: 454px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-top: 40px;

        place-items: center;
    }

    .stat-bar-number {
        font-size: 1rem;
    }

}

/* Mobile Layout for SIASUN's Global Customers Section */
@media (max-width: 768px) {
    .global-customers-section {
        min-height: auto;
        display: block;
        padding: 0;
    }

    .global-customers-background {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 300px;
        margin-left: 0;
        margin-bottom: 20px;
        z-index: 1;
    }

    .global-customers-bg {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
        margin-right: 0;
    }

    .global-customers-content {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 20px 0;
    }

    .customers-white-panel {
        background: white;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        height: auto;
        padding: 30px 20px;
        border-radius: 0;
    }

    .global-customers-section .section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .global-customers-section .section-header {
        justify-content: center;
        margin-bottom: 20px;
    }

    .customers-description p {
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .brands-logos-grid-draggable {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px 15px;
        margin-top: 20px;
        grid-auto-flow: column;
        width: 200%;
        /* عرض أوسع للسماح بالتمرير */
    }

    .brand-logo {
        height: 50px;
        min-width: 60px;
    }
}

/* Mobile Layout for Sustainable Development Section */
@media (max-width: 768px) {
    .sustainable-development-section {
        min-height: auto;
        display: block;
        padding: 0;
    }

    .sustainable-development-background {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 300px;
        margin-left: 0;
        margin-bottom: 20px;
        z-index: 1;
    }

    .sustainable-development-bg {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
        margin-left: 0;
    }

    .sustainable-development-content {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 20px 0;
    }

    .sustainable-white-panel {
        background: white;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        height: auto;
        padding: 30px 20px;
        border-radius: 0;
    }

    .sustainable-development-section .sustainable-section-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .sustainable-development-section .sustainable-section-header {
        justify-content: center;
        margin-bottom: 20px;
    }

    .sustainable-description p {
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {

    .global-customers-background,
    .sustainable-development-background {
        height: 250px;
    }

    .customers-white-panel,
    .sustainable-white-panel {
        padding: 20px 15px;
    }

    .global-customers-section .section-title,
    .sustainable-development-section .sustainable-section-title {
        font-size: 1.5rem;
    }

    .customers-description p,
    .sustainable-description p {
        font-size: 0.85rem;
    }

    .brands-logos-grid-draggable {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
        width: 250%;
        /* عرض أوسع للأجهزة الصغيرة */
    }

    .brand-logo {
        height: 40px;
        min-width: 50px;
    }
}

@media(min-width:1500px) {
    [dir="rtl"] .global-customers-background {
        position: absolute !important;
        top: 0 !important;
        left: -382px !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-left: 169px !important;
    }

    [dir="rtl"] .customers-white-panel {
        margin-left: auto !important;
        margin-right: 10% !important;
    }
}

@media(min-width:1400px) and (max-width:1500px) {
    [dir="rtl"] .global-customers-background {
        position: absolute !important;
        top: 0 !important;
        left: -257px !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-left: 169px !important;
    }

    [dir="rtl"] .customers-white-panel {
        margin-left: auto !important;
        margin-right: 10% !important;
    }
}

@media(min-width:1300px) and (max-width:1399px) {
    [dir="rtl"] .global-customers-background {
        position: absolute !important;
        top: 0 !important;
        left: 72px !important;
        width: 87% !important;
        height: 100% !important;
        z-index: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-left: 169px !important;
    }

    [dir="rtl"] .customers-white-panel {
        margin-left: auto !important;
        margin-right: 10% !important;
    }
}
