.gdlr-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-toggle,
.menu-toggle,
.gdlr-menu-search-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-toggle:hover,
.menu-toggle:hover,
.gdlr-menu-search-button:hover {
    color: #0073e6;
}

/* RTL Support */
html[lang="ar"] .gdlr-navigation {
    direction: rtl;
}

html[lang="ar"] .nav-actions {
    flex-direction: row-reverse;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1;
    visibility: visible;
}
.stock-left-top img, .stock-right-top img, .stock-left-bottom img, .stock-right-bottom img {display: inline-block !important;}
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.loading-logo-small {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
    animation: logoFadeIn 0.6s ease-in-out;
}

.loading-logo {
    height: 80px;
    width: auto;
    animation: logoFadeIn 0.6s ease-in-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #00A3AD;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #001a45;
    font-size: 17.6px;       /* 1.1 × 16 */
    font-weight: 500;
    letter-spacing: 1px;     /* already px */
    animation: pulse 1.5s ease-in-out infinite;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Stock Ticker: full width and thinner height */
.stock-ticker {
    padding: 6px 0;
    background: var(--section-bg, #f8fafc);
}

.stock-ticker .container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.stock-ticker .ticker-viewport {
    height: 28px; /* slim viewport */
    overflow: hidden; /* hide scrolling overflow */
    position: relative;
}

@media (max-width: 772px) {
    .stock-ticker .ticker-viewport {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .stock-ticker .ticker-viewport {
        height: 20px;
    }
}
.ticker-link .ticker-logo {
    height: 26px;
    width: auto;
    display: block;
}

@media (max-width: 772px) {
    .ticker-link .ticker-logo {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .ticker-link .ticker-logo {
        height: 18px;
    }
}

.stock-ticker .ticker-track .ticker-item {
    font-size: 14.4px;           /* already px */
    padding: 0 16px;             /* 1 × 16 */
    display: flex;
    gap: 12px;                    /* 0.75 × 16 */
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .stock-ticker .ticker-track .ticker-item {
        font-size: 12.8px;        /* 0.8 × 16 */
        padding: 0 12px;          /* 0.75 × 16 */
        gap: 8px;                 /* 0.5 × 16 */
    }
}

@media (max-width: 480px) {
    .stock-ticker .ticker-track .ticker-item {
        font-size: 11.2px;        /* 0.7 × 16 */
        padding: 0 8px;           /* 0.5 × 16 */
        gap: 6.4px;               /* 0.4 × 16 */
    }
}


/* Make ticker-track itself smaller and align text vertically */
.stock-ticker .ticker-track {
    height: 24px;
    min-width: 100%;
    white-space: nowrap; /* keep items on one line */
     will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    direction: ltr; /* ensure left-to-right scrolling even in RTL */
}

.stock-ticker .ticker-track .ticker-item {
    font-size: 13.6px;   /* 0.85 × 16 */
    line-height: 24px;   /* already px */
}

/* Footer WhatsApp icon: remove underline and set brand color */
.social-links .social-icon.whatsapp-icon {
    text-decoration: none;
    color: #fff;
}
.social-links .social-icon.whatsapp-icon svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.social-links .social-icon.whatsapp-icon:hover {
    opacity: 0.85;
}
/* Floating WhatsApp contact button */
.whatsapp-floating {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    background: #008c95;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.whatsapp-floating svg {
    width: 24px;
    height: 24px;
}

.whatsapp-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .whatsapp-floating {
        right: 12px;
        bottom: 12px;
        width: 46px;
        height: 46px;
    }
    .whatsapp-floating svg {
        width: 22px;
        height: 22px;
    }
}
/* About stats: increase card height and center content */
.about .stat-item {
    min-height: 140px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (min-width: 992px) {
    .about .stat-item {
        min-height: 160px;
        padding: 20px 14px;
    }
}

@media (max-width: 600px) {
    .about .stat-item {
        min-height: 120px;
        padding: 12px 10px;
    }
}
/* Global image safety */
img {
    max-width: 100%;
    height: auto;
}
/* Services: wider container and show 4 cards in one row on desktop */
.products .container {
    max-width: 1400px;
}

/* Services: show 4 cards in one row on desktop and compact sizing */
@media (min-width: 992px) {
    .products .products-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .products .product-card {
        padding: 20px;
    }

    .products .product-icon {
        display: block;
        width: 250px;
        height: 250px;
        object-fit: contain;
        margin: 0 auto 10px;
    }

    .products .product-card h3 {
    font-size: 17.6px;   /* 1.1 × 16 */
}
.products .product-card h3 {
        font-size: 1.1rem;
    }products .product-card p {
        font-size: 14.4px;
    }
}
/* Services slider wrapper and controls */
.products .slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2rem;
    width: 100%;
}

.slider-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 18px;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn:disabled,
.slider-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Flip arrows in RTL mode for Arabic */
body.rtl .slider-btn svg {
    transform: scaleX(-1);
}

.products .products-grid {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    margin: 0;
    padding: 0;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products .products-grid::-webkit-scrollbar {
    display: none;
}

.product-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    scroll-snap-stop: always;
    padding: 0;
}
.product-card p{
    text-align: justify !important;
}
/* Slider dots/indicators */
.products .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem 0 0;
    flex-wrap: wrap;
    width: 100%;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 5px;
}

.slider-dot:hover {
    background: var(--accent-color);
}

/* Desktop Layout (3 columns with controls) */
@media (min-width: 1200px) {
    .products .slider-wrapper {
        margin-bottom: 2rem;
        gap: 16px;
    }

    .slider-btn {
        display: flex;
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .products .slider-dots {
        display: flex;
    }

    .products .products-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        overflow-x: visible;
        overflow-y: visible;
        flex: 1;
        align-items: stretch;
    }

    .product-card {
        scroll-snap-align: unset;
        flex-shrink: unset;
        scroll-snap-stop: unset;
        padding: 25px;
        border-radius: 8px;
        background: #fff;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 500px;
    }

    .product-card:hover {
        box-shadow: 0 8px 20px rgba(0, 45, 114, 0.15);
        transform: translateY(-5px);
    }

    .products .product-card h3 {
        font-size: 19.2px;
        margin: 15px 0 10px 0;
    }

    .products .product-card p {
        font-size: 15px;
        line-height: 1.6;
        flex: 1;
    }
}

/* Tablet Layout (2 columns) */
@media (min-width: 768px) and (max-width: 1199px) {
    .products .slider-wrapper {
        margin-bottom: 2rem;
        gap: 16px;
    }

    .slider-btn {
        display: flex;
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .products .slider-dots {
        display: flex;
    }

    .products .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        overflow-x: visible;
        overflow-y: visible;
        flex: 1;
        align-items: stretch;
    }

    .product-card {
        scroll-snap-align: unset;
        flex-shrink: unset;
        scroll-snap-stop: unset;
        padding: 20px;
        border-radius: 8px;
        background: #fff;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        min-height: 500px;
    }

    .product-card:hover {
        box-shadow: 0 6px 16px rgba(0, 45, 114, 0.12);
        transform: translateY(-3px);
    }

    .products .product-card h3 {
    font-size: 17.6px;       /* 1.1 × 16 */
    margin: 12px 0 8px 0;    /* already px */
}


    .products .product-card p {
        font-size: 14.4px;
        line-height: 1.5;
        flex: 1;
    }

    .products .product-icon {
        width: 150px;
        height: 150px;
        margin: 0 auto 8px;
    }
}



/* Tablet Enhancements (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    h2 {
    font-size: 27.2px;       /* 1.7 × 16 */
    margin-bottom: 24px;     /* 1.5 × 16 */
}

h3 {
    font-size: 18.4px;       /* 1.15 × 16 */
}

section {
    padding: var(--section-padding) 0;  /* variable, leave as-is */
}

.navbar {
    padding: 12.8px 0;       /* 0.8 × 16 */
}

.nav-links {
    gap: 19.2px;             /* 1.2 × 16 */
}

.nav-links a {
    padding: 10px 6px;       /* already px */
    font-size: 14.88px;      /* 0.93 × 16 */
}

.about .about-content {
    grid-template-columns: 1fr 1fr;  
    gap: 28.8px;             /* 1.8 × 16 */
}

.stat-item {
    padding: 20px 15px;      /* already px */
}

.stat-item h3 {
    font-size: 32px;         /* 2 × 16 */
}

.about .stat-item p {
    font-size: 15px;         /* already px */
}

.calculator-section .calculator-container {
    gap: 14px;               /* already px */
    grid-template-columns: 1fr 1fr;  
}

.calculator-section .calculator-form {
    gap: 12px;               /* already px */
}

.calculator-section .calc-input,
.calculator-section .calc-button {
    padding: 10px 12px;      /* already px */
    font-size: 14.88px;      /* 0.93 × 16 */
}

}

/* Navbar adjustments for screens less than 900px */
@media (max-width: 900px) and (min-width: 773px) {
    .nav-links {
        gap: 6.4px !important;           /* 0.4 × 16 */
    }

    .nav-links a {
        padding: 6px 3px !important;     /* already px */
        font-size: 13.6px !important;    /* 0.85 × 16 */
    }
}

/* Tablet/Mobile transition (768px - 991px) */
@media (min-width: 773px) and (max-width: 991px) {
    body {
        font-size: 15px;                 /* already px */
    }

    h1 {
        font-size: 28.8px;               /* 1.8 × 16 */
    }

    h2 {
        font-size: 24px;                 /* 1.5 × 16 */
    }

    h3 {
        font-size: 17.6px;               /* 1.1 × 16 */
    }

    .products .slider-wrapper {
        margin-bottom: 28.8px;           /* 1.8 × 16 */
        gap: 14px;                        /* already px */
    }

    .slider-btn {
        width: 40px;                      /* already px */
        height: 40px;                     /* already px */
        min-width: 40px;                  /* already px */
    }

    .products .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;                        /* already px */
    }

    .product-card {
        padding: 18px;                    /* already px */
        min-height: 450px;                /* already px */
    }

    .products .product-card h3 {
        font-size: 16.8px;                /* 1.05 × 16 */
        margin: 12px 0 8px 0;             /* already px */
    }

    .products .product-card p {
        font-size: 14.08px;               /* 0.88 × 16 */
        line-height: 1.5;                 /* unitless, no conversion needed */
    }

    .products .product-icon {
        width: 140px;                      /* already px */
        height: 140px;                     /* already px */
        margin: 0 auto 8px;                /* already px */
    }

    .nav-links {
        gap: 16px;                         /* 1 × 16 */
    }

    .nav-links a {
        font-size: 14.4px;                 /* already px */
        padding: 8px 5px;                  /* already px */
    }
}


/* Mobile Layout (1 column) */
@media (max-width: 767px) {
    .products .slider-wrapper {
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .products .products-grid {
        gap: 16px;
        padding: 0;
        padding-bottom: 4px;
    }

    .product-card {
        min-width: 100%;
        padding: 18px;
        border-radius: 8px;
        background: #fff;
        display: flex;
        flex-direction: column;
        min-height: 500px;
    }

    .products .product-card h3 {
font-size: 16px;        margin: 10px 0 8px 0;
    }

 .products .product-card p {
    font-size: 13.6px;   /* 0.85 × 16 */
    line-height: 1.5;    /* unitless, no conversion needed */
    flex: 1;
}

    .products .product-icon {
        width: 120px;
        height: 120px;
        margin: 0 auto 8px;
    }

    .slider-dots {
        padding-top: 0.75rem;
        gap: 6px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-dot.active {
        width: 24px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .products .slider-wrapper {
        gap: 8px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
    }

    .products .products-grid {
        gap: 12px;
    }

    .product-card {
        padding: 15px;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        min-height: 500px;
    }

    .products .product-card h3 {
        font-size: 15px;
        margin: 8px 0 6px 0;
    }

    .products .product-card p {
        font-size: 12.8px;
        line-height: 1.4;
        flex: 1;
    }

    .products .product-icon {
        width: 100px;
        height: 100px;
        margin: 0 auto 6px;
    }
}
@media (max-width: 991px) {
    .products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products .products-grid {
        grid-template-columns: 1fr;
    }
    .products .product-icon {
        width: 120px;
        height: 120px;
    }
}
/* Mobile menu toggle default hidden */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(0,45,114,0.3);
    color: #002D72;
    border-radius: 8px;
    padding: 8px 10px;
    line-height: 1;
}

/* Mobile navigation behavior */
@media (max-width: 773px) {
    .navbar .container {
        position: relative;
        gap: 12px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
        flex-shrink: 0;
    }

    .lang-toggle {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .menu-toggle {
        order: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #002D72;
        border-color: rgba(0,45,114,0.4);
        /* padding: 10px 12px; */
        /* margin-left: 8px; */
        flex-shrink: 0;
    }

    .menu-toggle i {
        color: #002D72;
    }

    .navbar .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 26, 69, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        /*flex-direction: column;*/
        gap: 0;
        padding: 8px 12px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
        order: 4;
        width: 100%;
    }

    .navbar .nav-links.open {
        max-height: 80vh; /* reduce overall menu height */
        opacity: 1;
        overflow-y: auto; /* allow scroll when content exceeds height */
        display: flex;
        /*flex-direction: column;*/
        /* ensure items stack vertically 
        gap: 0;
    }

    .navbar .nav-links > li {
        margin: 0; /* minimal spacing between items */
        display: block;
        width: 100%;
    }

    .navbar .nav-links.open a {
        display: block;
        width: 100%;
        line-height: 1.1; /* even more compact item height */
        padding: 4px 0;
    }

    .navbar .nav-links a {
        color: #ffffff; /* white text for mobile menu */
        padding: 4px 0; /* reduce item height further */
    }

    /* Make submenus touch-friendly */
    .navbar .dropdown-mobile {
        position: static;
        display: flex;
        flex-direction: row;
        padding-left: 8px;
        gap: 12px;
        list-style: none;
        align-items: center;
        flex-wrap: wrap;
    }

    .navbar .nav-links.open .dropdown-mobile {
        display: flex;
    }

    .navbar .dropdown-mobile li {
        display: block;
        background: transparent;
        white-space: nowrap;
    }

    .navbar .dropdown-mobile a {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
        padding: 4px 6px;
        display: inline-block;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .navbar .dropdown-mobile a:hover {
        color: rgba(255, 255, 255, 0.9);
    }

    /* Hide large CTAs on very small screens to reduce clutter */
    .request-price-btn {
        display: none;
    }
}

/* For screens 773px and less, hide dropdown styling */
@media (max-width: 773px) {
    /* .navbar .dropdown {
        display: none !important;
    } */

    /* Arabic: logo on the right */
    body.rtl .navbar .container {
        flex-direction: row-reverse;
    }

    /* English: logo on the left (default) */
    body:not(.ar) .logo {
        order: 1;
    }
}
/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Extra small devices - 320px minimum */
@media (max-width: 374px) {
    :root {
        --container-padding: 12px;
        --spacing-sm: 12px;
        --spacing-md: 16px;
        --font-size-body: 13px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 19.2px;
    }
    
    .slider-dots {
        gap: 0.5rem;
    }
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #ffffff;
    --text-color: #333;
    --navbar-bg: #ffffff;
    --navbar-text: #002D72;
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --timeline-bg: linear-gradient(135deg, #0a1628 0%, #0f2336 100%);
    --footer-bg: linear-gradient(135deg, #0a1628 0%, #0f2336 100%);
    --accent-color: #00A3AD;
    --primary-color: #002D72;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #ddd;
    
    /* Responsive spacing system */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Typography scale - mobile base */
    --font-size-hero: 32px;
    --font-size-h1: 28px;
    --font-size-h2: 24px;
    --font-size-h3: 18px;
    --font-size-body: 14px;
    --font-size-small: 12px;
    
    /* Container padding */
    --container-padding: 20px;
    --section-padding: 25px;
    
    /* Touch target minimum */
    --touch-target-min: 44px;
}



body {
    font-family: 'Roboto', Georgia, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: direction 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    padding-top: 80px;
    text-rendering: optimizeSpeed;
}

body.rtl {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Performance: CSS Containment */
.product-card {
    contain: layout style paint;
}

.service-card {
    contain: layout style paint;
}

.news-card {
    contain: layout style paint;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInSmooth {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}




/* Section Animation Classes */
section {
    scroll-margin-top: 80px;
    opacity: 1;
}

section.in-view {
    animation: fadeInUp 0.8s ease-out forwards;
}

section.in-view h2 {
    animation: fadeInDown 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

section.in-view p {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.35s ease-in-out;
    will-change: transform;
    transform: translateY(0);
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

/* Prevent background scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Group nav action icons side by side */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-actions > * {
    flex: 0 0 auto;
}

/* Size SVG icons inside nav actions */
.nav-actions svg {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--navbar-text);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: block;
    padding: 12px 8px;
    min-height: var(--touch-target-min);
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Dropdown Styles */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--navbar-bg);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* News Section */
.news {
    padding: 4rem 0;
    background: var(--section-bg, #f7f7f7);
}

.news .section-header {
    text-align: center;
    margin-bottom: 32px;
}

.news .section-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--muted-text, #666);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--card-bg, #fff);
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-color);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: var(--muted-text, #666);
    font-size: 14.4px;
}

.news-tag {
    background: var(--accent-soft, rgba(0, 122, 255, 0.12));
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12.8px;
}

.news-title {
    font-size: 20px !important;
}

.news-excerpt {
    color: var(--body-text, #333);
}

.news-link {
    margin-top: auto;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.nav-links > li:hover .dropdown,
.nav-links > li:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    padding: 0;
}

.dropdown a {
    padding: 0.75rem 1.5rem;
    color: var(--navbar-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 0;
    font-size: 15px;
}

.dropdown a:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(0);
}

body.rtl .dropdown {
    left: auto;
    right: 0;
}

.request-price-btn {
    background-color: var(--primary-color);
    color: var(--navbar-bg);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: var(--font-size-body);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-right: 1rem;
    animation: fadeIn 0.6s ease-out;
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.request-price-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.request-price-btn:active {
    transform: translateY(-1px);
}

.lang-toggle {
    background-color: transparent;
    color: var(--navbar-text);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lang-toggle:hover {
    color: var(--accent-color);
}



/* Hero Section */
.hero {
    color: white;
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background-image: url('https://najrancement.com/wp-content/themes/najran/template-parts/home/images/video-poster.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

@media (min-width: 768px) {
    .hero {
        height: 100vh;
    }
}

@media (min-width: 1025px) {
    .hero {
        height: 100vh;
    }
}

.slider-container {
    position: absolute;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 1;
}



.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 20;
}

.slider-content h1 {
    font-size: var(--font-size-hero);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: white;
}

.slider-content p {
    font-size: var(--font-size-body);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: none;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 15;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.6);
    color: #2c3e50;
    border: none;
    padding: 8px 12px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
}

@media (min-width: 768px) {
    .control-btn {
        width: 56px;
        height: 56px;
        font-size: 28.8px;
    }
}

@media (min-width: 1025px) {
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.control-btn:active {
    transform: scale(1.05);
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 1rem;
    z-index: 15;
}



/* Button */
.btn {
    background-color: #00A3AD;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 5px;
    font-size: var(--font-size-body);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeIn 0.6s ease-out;
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background-color: #007f85;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 163, 173, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

/* Tablet breakpoint variables */
@media (min-width: 768px) {
    :root {
        --spacing-lg: 50px;
        --spacing-xl: 80px;
        --font-size-hero: 48px;
        --font-size-h1: 36px;
        --font-size-h2: 30px;
        --font-size-h3: 22px;
        --font-size-body: 16px;
        --container-padding: 30px;
        --section-padding: 40px;
    }
}

/* Desktop breakpoint variables */
@media (min-width: 1025px) {
    :root {
        --spacing-lg: 60px;
        --spacing-xl: 100px;
        --font-size-hero: 72px;
        --font-size-h1: 48px;
        --font-size-h2: 36px;
        --font-size-h3: 24px;
        --font-size-body: 18px;
        --container-padding: 40px;
        --section-padding: 55px;
    }
}

/* Sections */
/* section {
    padding: var(--section-padding) 0;
    border-radius: 16px;
    margin: 20px;
} */

@media (min-width: 768px) {
    section {
        border-radius: 20px;
        margin: 30px;
    }
}

@media (min-width: 1025px) {
    section {
        border-radius: 24px;
        margin: 40px;
    }
}

h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
    text-align: center;
    line-height: 1.3;
}

body.rtl h2 {
    text-align: center;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #001a45 0%, #001a45 100%);
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(0, 163, 173, 0.08);
    border-radius: 50%;
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(0, 45, 114, 0.08);
    border-radius: 50%;
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

/* Background image in top-right corner behind About content */
.about-image {
    position: absolute;
    top: -60%;
    right: -10%;
    left: auto;
    width: 50%;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    /* border-radius: 30%; */
    /* box-shadow: 0 0 60px rgba(0, 163, 173, 0.4), 0 0 100px rgba(0, 163, 173, 0.2); */
}

/* Ensure text and stats appear above the image */
.about h2,
.about-text,
.about-stats {
    position: relative;
    z-index: 1;
}

.about h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: justify;
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: 1.2;
}

/* Right-align About heading in Arabic */
body.rtl .about h2 {
    text-align: right;
}

.about-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-body);
    text-align: justify;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

body.rtl .about-subtitle {
    text-align: right;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

@media (min-width: 1025px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

.about-text p {
    font-size: var(--font-size-body);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.95);
    text-align: justify;
}

body.rtl .about-text p {
    text-align: right;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 1025px) {
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
    }
}

.stat-item {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
    
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(0, 163, 173, 0.15), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.stat-item:hover::before {
    transform: rotate(45deg) translate(100px, 100px);
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

.stat-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.35);
}

.stat-item:active {
    transform: translateY(-4px);
}

.stat-item h3 {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    position: relative;
    z-index: 3;
}

/* Timeline Section */
.timeline {
    background: var(--timeline-bg);
    padding: 4rem 0;
}

.timeline h2 {
    margin-bottom: 3rem;
    color: #00A3AD;
}


.timeline-wavy-bg {
    position: relative;
    width: 100%;
    height: 120px;
    margin-bottom: 2.5rem;
}

.timeline-wavy-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
    pointer-events: none;
}

.timeline-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 2;
}

/* Horizontal timeline line */


/* Roadmap items in horizontal layout */
/* .timeline-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    min-width: 200px;
    width: 200px;
    text-align: center;
    z-index: 2;
    margin: 0;
}

.timeline-marker {
    width: 28px;
    height: 28px;
    background-color: #00A3AD;
    border: 4px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 0 0 6px rgba(0,45,114,0.04);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.25);
    background-color: #007f85;
    box-shadow: 0 0 20px rgba(0, 163, 173, 0.6), 0 0 0 8px rgba(0,45,114,0.1);
}

.timeline-content {
    position: relative;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 163, 173, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-out;
    opacity: 0;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,163,173,0.2);
} */

/* Responsive: stack vertically and move line to left */
@media (max-width: 768px) {
    .timeline-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .timeline-wrapper::before {
        top: 0;
        left: 20px;
        right: auto;
        width: 0;
        height: 100%;
        border-top: none;
        border-left: 4px dashed rgba(0,163,173,0.9);
        transform: none;
    }
    .timeline-item {
        width: 100%;
        margin: 2rem 0;
        min-width: auto;
    }
    .timeline-marker {
        left: 20px;
        top: 0;
        transform: translateX(-50%);
    }
    .timeline-content {
        width: calc(100% - 64px);
        margin: 0 0 0 44px;
        text-align: left;
        margin-top: 0;
    }
}

.timeline-content h3 {
    color: #00A3AD;
    font-size: 19.2px;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    color: #ddd;
    font-size: 13.6px;
    line-height: 1.4;
}
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

@media (max-width: 1199px) {
    .navbar .container {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a {
        padding: 8px 6px;
        font-size: 14.4px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    /* Navbar: wrap content and reduce gaps */
    .navbar .container {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    .nav-links {
        flex-wrap: nowrap;
        gap: 0.6rem;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .nav-links a {
        padding: 0.25rem 0.5rem;
        font-size: 12.8px;
        white-space: nowrap;
    }
    .request-price-btn {
        padding: 0.5rem 1rem;
        font-size: 13.6px;
        margin-right: 0;
    }
    .lang-toggle {
        width: 32px;
        height: 32px;
        font-size: 17.6px;
    }



    /* About: stack grid and shrink heading */
    .about h2 {
        font-size: 35.2px;
    }
    .about-subtitle {
font-size: 16px;        margin-bottom: 1.5rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-stats {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 1rem;
    }
    /* Decor about image on mobile */
    .about-image {
        width: 35%;
        top: -10%;
        right: -5%;
        opacity: 0.5;
    }

    /* Services: adjust cards */
    .product-card {
        padding: 1.25rem;
    }
    .product-card h3 {
        font-size: 17.6px;
    }
    .product-card p {
        font-size: 13.6px;
    }

    /* Calculator: stack form/results */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .calculator-section h2 {
        font-size: 32px;
    }
    .calculator-subtitle {
font-size: 16px;        margin-bottom: 2rem;
    }
    .calculator-form,
    .calculator-results {
        padding: 1.5rem;
    }
    .result-value.highlighted {
        font-size: 24px;
    }

    /* Footer: tighten spacing */
    .footer .footer-content {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about h2 {
        font-size: 30.4px;        /* 1.9 × 16 */
    }

    .about-image {
        width: 28%;
        opacity: 0.35;
    }

    .product-card {
        padding: 16px;            /* 1 × 16 */
    }

    .calculator-section h2 {
        font-size: 28.8px;        /* 1.8 × 16 */
    }

    .result-item {
        padding: 14.4px 0;        /* 0.9 × 16 = 14.4px */
    }
}


.product-card {
    background: var(--card-bg);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-card {
        padding: var(--spacing-lg);
        min-height: 320px;
    }
}

/* Reduce card height for smaller screens */
@media (max-width: 991px) {
    .product-card {
        min-height: 240px;
    }
    .product-icon {
        font-size: 41.6px;
    }
}

@media (max-width: 600px) {
    .product-card {
        min-height: 200px;
        padding: var(--spacing-sm);
    }
    .product-icon {
        font-size: 35.2px;
    }
    .product-card h3 {
font-size: 16px;    }
    .product-card p {
        font-size: 14.4px;
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-icon {
    font-size: 48px;       /* 3 × 16 */
    margin-bottom: 16px;   /* 1 × 16 */
    display: block;
    transition: all 0.3s ease;
}


.product-card:hover .product-icon {
    transform: scale(1.15) translateY(-5px);
    color: var(--accent-color);
}

.product-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    font-size: var(--font-size-h3);
    line-height: 1.4;
}

.product-card p {
    color: var(--text-color);
    font-size: var(--font-size-body);
    line-height: 1.6;
    text-align: left;
    flex-grow: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
}

body.rtl .product-card p {
    text-align: right;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.product-card:active {
    transform: translateY(-6px);
}

/* Why Najran Cement Section */
.why-najran {
    padding: 60px 0;
    background: #ffffff;
        /* padding-top: 20rem; */
    /* padding-bottom: 20rem; */
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    background:  url(https://codeanywhere.com/images/map-dots.png);
    background-repeat: repeat-x;
}

.why-najran h2 {
    color: #001a45;
    text-align: center;
    font-size: var(--font-size-h1);
    margin-bottom: 15px;
    line-height: 1.3;
}

.why-subtitle {
    text-align: center;
    color: #666666;
    font-size: 19.2px;
    margin-bottom: 50px;
}

.why-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    flex: 1;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out;
}

.why-slider-btn {
    display: none;
    background: #00A3AD;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.why-slider-btn:hover:not(:disabled) {
    background: #008a96;
    transform: scale(1.1);
}

.why-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.why-slider-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .why-slider-wrapper {
        gap: 10px;
    }
    
    .why-slider-btn {
        width: 40px;
        height: 40px;
    }
}

.why-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #00A3AD;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 163, 173, 0.15);
}

.why-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #00A3AD;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
}

.why-card h3 {
    color: #001a45;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.why-card p {
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
}

/* Building Cost Calculator Section */
.calculator-section {
    background: var(--section-bg, #f7f7f7);
    /* padding: 20px 0; */
    color: #333333;
    background-color: #fff;
    background-image: url(../images/bg-lines-circle.png);
    background-repeat: no-repeat;
    background-position: left top;
}


.calculator-section h2 {
    color: #001a45;
    text-align: center;
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.calculator-subtitle {
    text-align: center;
    color: #555555;
    font-size: 17.6px;       /* 1.1 × 16 */
    margin-bottom: 24px;     /* 1.5 × 16 */
}


.calculator-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .calculator-container {
        max-width: 900px;
    }
}

@media (min-width: 1025px) {
    .calculator-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        max-width: 1100px;
    }
}

.calculator-form {
    background: #f7f7f7;
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgb(0, 45, 114);
    font-size: 15px;
    font-weight: 700;
}

.calc-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    /* background: rgba(255, 255, 255, 0.15); */
    /* color: #ffffff; */
    font-size: var(--font-size-body);
    transition: all 0.3s ease;
    min-height: var(--touch-target-min);
}

.calc-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 163, 173, 0.3);
}

.calc-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.calc-input option {
    background: #002D72;
    color: #ffffff;
}

.calc-button {
    width: 100%;
    padding: 14px 24px;
    background: #00A3AD;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-sm);
    min-height: var(--touch-target-min);
}

.calc-button:hover {
    background: #008a98;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 163, 173, 0.4);
}

.calc-button:active {
    transform: translateY(0);
}

.calculator-results {
    background: rgba(255, 255, 255, 0.95);
    color: #002D72;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.calculator-results h3 {
    color: #002D72;
    margin-bottom: 32px;     /* 2 × 16 */
    font-size: 28.8px;       /* 1.8 × 16 */
    text-align: center;
}


.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 45, 114, 0.1);
}

.result-item:last-of-type {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.result-label {
    font-weight: 500;
font-size: 16px;    color: #666;
}

.result-value {
    font-weight: 700;
    font-size: 20px;
    color: #002D72;
}

.result-value.highlighted {
    color: var(--accent-color);
    font-size: 28.8px;       /* 1.8 × 16 */
}

.result-note {
    font-size: 13.6px;       /* 0.85 × 16 */
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 16px;        /* 1 × 16 */
}


body.rtl .calculator-subtitle,
body.rtl .calculator-results h3,
body.rtl .result-note {
    text-align: center;
}

body.rtl .result-item {
    flex-direction: row-reverse;
}

/* Contact Section */
.contact {
    background-color: var(--section-bg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: var(--spacing-md) auto;
    gap: var(--spacing-sm);
}

@media (min-width: 768px) {
    .contact-form {
        max-width: 600px;
        gap: var(--spacing-md);
    }
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: var(--font-size-body);
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    min-height: var(--touch-target-min);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 163, 173, 0.1);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #001a45 0%, #011534 100%);
    color: white;
    padding: 1.5rem 0 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section {
    padding-right: 1rem;
    text-align: justify;
}

body.rtl .footer-section {
    text-align: right;
    padding-right: 0;
    padding-left: 1rem;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 0.75rem;
    color: #00A3AD;
}

.footer-section h4 {
font-size: 16px;    margin-bottom: 1rem;
    color: #00A3AD;
    font-weight: 600;
}

.footer-section p {
    font-size: 14.4px;
    line-height: 1.6;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14.4px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00A3AD;
}

.contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 14.4px;
    color: #e0e0e0;
}

.contact-info span {
    color: #e0e0e0;
    font-weight: 600;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 180px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #00A3AD;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 17.6px;
}

.social-icon:hover {
    background-color: #888B8D;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 163, 173, 0.3);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    font-size: 13.6px;
    color: #b0b0b0;
}

/* Responsive Design */
@media (min-width: 992px) and (max-width: 1199px) {
    /* .container {
        max-width: 920px;
    } */

    .about-content {
        gap: 1.8rem;
    }

    .stat-item h3 {
    font-size: 32px;      /* 2rem = 32px */
}

.stat-item p {
    font-size: 15px;      /* already px */
}

.product-card {
    padding: 24px;        /* 1.5rem = 24px */
}

.product-icon {
    font-size: 36.8px;    /* 2.3rem = 36.8px */
}

h2 {
    font-size: 27.2px;    /* 1.7rem = 27.2px */
}

h3 {
    font-size: 19.2px;    /* already px */
}


    .calculator-section .calculator-container {
        gap: 14px;
    }
}

@media (max-width: 1200px) {
    /* .container {
        max-width: 960px;
    } */

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        padding: 10px 6px;
        font-size: 15px;
    }

    .about-content {
        gap: 2rem;
    }

  .stat-item h3 {
    font-size: 35.2px;    /* 2.2 × 16 */
}

.product-card {
    padding: 24px;        /* 1.5 × 16 */
}

.product-icon {
    font-size: 40px;      /* 2.5 × 16 */
}

h2 {
    font-size: 28.8px;    /* 1.8 × 16 */
}

}

@media (max-width: 992px) {
    body {
        font-size: 15px;
    }

   section {
    padding: 48px 0;          /* 3 × 16 */
}

h1 {
    font-size: 30.4px;        /* 1.9 × 16 */
}

h2 {
    font-size: 25.6px;        /* 1.6 × 16 */
    margin-bottom: 24px;      /* 1.5 × 16 */
}

h3 {
    font-size: 18.4px;        /* 1.15 × 16 */
}


    p {
        font-size: 15px;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 14.4px;
        padding: 8px 5px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-item h3 {
    font-size: 32px;   /* 2 × 16 */
}


    .stat-item p {
        font-size: 14.4px;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

   .product-card {
    padding: 24px;            /* 1.5 × 16 */
    min-height: 450px;        /* already px */
}

.product-card h3 {
    font-size: 17.6px;        /* 1.1 × 16 */
}

.product-card p {
    font-size: 14.08px;       /* 0.88 × 16 */
    line-height: 1.5;         /* unitless (recommended, no conversion needed) */
}

.products .product-icon {
    width: 140px;             /* already px */
    height: 140px;            /* already px */
}

.product-icon {
    font-size: 40px;          /* 2.5 × 16 */
    margin-bottom: 12px;      /* 0.75 × 16 */
}

}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

  section {
    padding: 40px 0;          /* 2.5 × 16 */
}

h2 {
    font-size: 24px;          /* 1.5 × 16 */
    margin-bottom: 24px;      /* 1.5 × 16 */
}

.nav-links {
    flex-direction: column;
    gap: 16px;                /* 1 × 16 */
}

.slider-content h1 {
    font-size: 28.8px;        /* 1.8 × 16 */
}

    .slider-content p {
font-size: 16px;    }

  .about-content {
    grid-template-columns: 1fr;  /* no change needed */
}

.about-stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* minmax already in px, no change */
    gap: 16px;                    /* 1 × 16 */
}

.stat-item {
    padding: 20px 12px;           /* 1.25 × 16 = 20px, 0.75 × 16 = 12px */
}

.stat-item h3 {
    font-size: 28.8px;            /* 1.8 × 16 */
    margin-bottom: 4px;           /* 0.25 × 16 */
}

.stat-item p {
    font-size: 13.6px;            /* 0.85 × 16 */
}

.stat-item:hover {
    transform: translateY(-6px);  /* already px */
}

.products-grid {
    grid-template-columns: 1fr;   /* no change */
    gap: 24px;                     /* 1.5 × 16 */
}


   .product-card {
    padding: 20px;              /* 1.25 × 16 */
}

.product-card h3 {
    font-size: 17.6px;          /* 1.1 × 16 */
    margin-bottom: 12px;        /* 0.75 × 16 */
}

.product-card p {
    font-size: 13.6px;          /* 0.85 × 16 */
    line-height: 1.5;           /* unitless, no conversion needed */
}

.product-icon {
    font-size: 35.2px;          /* 2.2 × 16 */
    margin-bottom: 8px;         /* 0.5 × 16 */
}


    .product-card:hover {
        transform: translateY(-8px);
    }

    .timeline-wrapper::before {
        left: 20px;
    }

  .timeline-item,
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    flex-direction: row !important;
    margin-bottom: 32px;       /* 2 × 16 */
}

.timeline-marker {
    margin-right: 32px;        /* 2 × 16 */
}

.timeline-content {
    width: 100%;
    margin: 0;
    padding: 16px 24px;        /* 1 × 16 = 16px, 1.5 × 16 = 24px */
}

.navbar .container {
    flex-wrap: wrap;           /* no conversion needed */
}

.control-btn {
    padding: 12px 16px;        /* 0.75 × 16 = 12px, 1 × 16 = 16px */
    font-size: 24px;           /* 1.5 × 16 */
    width: 50px;
    height: 50px;
}

.slider-controls {
    padding: 0 16px;           /* 1 × 16 */
}

.hero {
    height: 400px;             /* already px */
}

.footer-content {
    grid-template-columns: 1fr;  
    gap: 24px;                  /* 1.5 × 16 */
}
 .footer-section {
        padding-right: 0;
    }

    .social-links {
        justify-content: flex-start;
    }

    .contact-form {
        max-width: 100%;
    }

    .ticker-item {
        font-size: 14.4px;
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    section {
        padding: 2rem 0;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 1.25rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        flex-direction: row;
    }

    .logo {
        font-size: 19.2px;
        margin-bottom: 0.75rem;
    }

    .logo-img {
        height: 35px !important;
    }

    .logo {
        font-size: 20px;
        margin-bottom: 1rem;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .request-price-btn {
        width: 100%;
        margin: 0;
    }

    .lang-toggle,
    .dark-mode-toggle {
        width: auto;
        margin-top: 0;
    }

 .slider-content h1 {
    font-size: 22.4px;       /* 1.4 × 16 */
    margin-bottom: 12px;     /* 0.75 × 16 */
}

.slider-content p {
    font-size: 14.4px;       /* already px */
    margin-bottom: 20px;     /* 1.25 × 16 */
}

.control-btn {
    width: 45px;             /* already px */
    height: 45px;            /* already px */
    font-size: 20px;         /* 1.25 × 16 */
    padding: 8px;            /* 0.5 × 16 */
}


    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

   .stat-item h3 {
    font-size: 24px;          /* 1.5 × 16 */
}

.stat-item p {
    font-size: 12.8px;        /* 0.8 × 16 */
}

.products-grid {
    grid-template-columns: 1fr;  
    gap: 20px;                /* 1.25 × 16 */
}

.product-card {
    padding: 16px;            /* 1 × 16 */
}

.product-card h3 {
    font-size: 16px;          /* already px */
    margin-bottom: 8px;       /* 0.5 × 16 */
}

.product-card p {
    font-size: 13.6px;        /* 0.85 × 16 */
}

.product-icon {
    font-size: 32px;          /* 2 × 16 */
    margin-bottom: 8px;       /* 0.5 × 16 */
}


    .timeline-item {
        min-width: auto;
        width: 100%;
    }

    .timeline-content h3 {
font-size: 16px;    }

.timeline-content p {
    font-size: 12.8px;       /* 0.8 × 16 */
}

.contact-form {
    gap: 12px;               /* 0.75 × 16 */
}

    .contact-form input,
    .contact-form textarea {
        padding: 0.6rem;
font-size: 15px;    }

    .contact-form textarea {
        min-height: 120px;
    }

    .footer-content {
        gap: 1.25rem;
    }

    .footer-section h3 {
        font-size: 17.6px;
    }

    .footer-section p,
    .footer-links a,
    .contact-info {
        font-size: 14px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
font-size: 16px;    }

    .ticker-viewport {
        border-radius: 4px;
    }

   .ticker-item {
    font-size: 12.8px;           /* 0.8 × 16 */
    padding: 5.6px 9.6px;        /* 0.35 × 16 = 5.6px, 0.6 × 16 = 9.6px */
    border-radius: 4px;          /* already px */
}

.ticker-track {
    gap: 16px;                   /* 1 × 16 */
    padding: 12px 16px;          /* 0.75 × 16 = 12px, 1 × 16 = 16px */
}

}

    /* Najran stock ticker */
    .stock-ticker {
        background: var(--card-bg);
        padding: 1rem 0 2rem 0;
    }

    .stock-ticker h2 {
        margin-bottom: 0.75rem;
    }

    .ticker-viewport {
        overflow: hidden;
        width: 100%;
        background: var(--section-bg);
        border-radius: 6px;
        box-shadow: 0 2px 8px var(--shadow-color);
    }

    .ticker-track {
        width: max-content;
        display: flex;
        gap: 1.5rem;
        align-items: center;
        padding: 0;
        margin: 0;
        white-space: nowrap;
    }
.ticker-item strong {
    font-weight: 700;
}

.ticker-item span {
    display: inline-block;
}
    .ticker-link {
        margin-top: 0.5rem;
        display: flex;
        justify-content: center;
        padding: 1.5rem 1.5rem 0 1.5rem;
    }

    @media (max-width: 768px) {
        .ticker-link {
            padding: 1rem 1rem 0 1rem;
        }
    }

    @media (max-width: 480px) {
        .ticker-link {
            padding: 0.75rem 0.75rem 0 0.75rem;
        }
    }

    .ticker-link a {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 14.4px;
        color: #fff;
        text-decoration: none;
        padding: 0.45rem 0.95rem;
        border: 1px solid #0b1f36;
        border-radius: 999px;
        background: linear-gradient(135deg, #0b1f36, #0f2c4f);
        box-shadow: 0 8px 20px rgba(11, 31, 54, 0.35);
        transition: all 0.2s ease;
        direction: ltr;
    }

    .ticker-link a:hover {
        color: #fff;
        background: linear-gradient(135deg, #0f2c4f, #0b1f36);
        border-color: #0f2c4f;
        box-shadow: 0 12px 26px rgba(11, 31, 54, 0.45);
        transform: translateY(-1px);
    }

    @media (max-width: 768px) {
        .ticker-link {
            justify-content: center;
            padding: 0 1rem;
        }
       .ticker-link a {
    font-size: 13.6px;           /* 0.85 × 16 */
    padding: 4.8px 12px;         /* 0.3 × 16 = 4.8px, 0.75 × 16 = 12px */
}

    }

    .ar .ticker-link {
        justify-content: flex-start;
    }

    .ar .ticker-link a {
        flex-direction: row-reverse;
        direction: rtl;
        text-align: right;
    }

    .ar .ticker-link .ticker-text {
        text-align: right;
    }

    .ticker-item {
        display: inline-flex;
        gap: 0.75rem;
        align-items: center;
        padding: 0.5rem 1rem;
        margin: 0;
        background: var(--card-bg);
        border-radius: 6px;
        box-shadow: 0 1px 4px var(--shadow-color);
        font-weight: 600;
        color: var(--text-color);
        flex-shrink: 0;
    }

    /* animation will be set dynamically by JS based on width */
  .ticker-track.animate {
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards; /* optional, keeps final state */
}

 
.currency-riyal {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('https://www.sama.gov.sa/ar-sa/Currency/Documents/Saudi_Riyal_Symbol-2.svg') no-repeat center;
    background-size: contain;
    vertical-align: text-bottom;
    margin-left: 4px;
}
    @media (max-width: 768px) {
        .ticker-item { font-size: 14.4px; padding: 0.4rem 0.75rem; }
    }

/* Calculator: compact sizing */
.calculator-section {
  padding: 20px 0;
}

.calculator-section .container {
  max-width: 900px;
}

.calculator-section h2 {
    font-size: 32px;   /* 2 × 16 */
}

.calculator-section .calculator-subtitle {
font-size: 16px;}

.calculator-section .calculator-container {
  gap: 16px;
}

.calculator-section .calculator-form .form-group {
  margin-bottom: 12px;
}

.calculator-section .calc-input {
  padding: 10px 12px;
  font-size: 15px;
}

.calculator-section .calc-button {
  padding: 10px 14px;
  font-size: 15px;
}

.calculator-section .calculator-results h3 {
    font-size: 17.6px;   /* 1.1 × 16 */
}


.calculator-section .result-item {
  padding: 6px 8px;
}

@media (max-width: 600px) {
  .calculator-section h2 {
    font-size: 25.6px;   /* 1.6 × 16 */
}

  .calculator-section .calculator-subtitle {
    font-size: 15px;
  }
  .calculator-section .calc-input {
    padding: 8px 10px;
    font-size: 14.4px;
  }
  .calculator-section .calc-button {
    padding: 9px 12px;
    font-size: 14.4px;
  }
  .calculator-section .calculator-results h3 {
font-size: 16px;  }
}

/* Coming Soon Overlay Styling */
.products-grid.soon .product-card {
  position: relative;
  overflow: hidden;
}

.product-card.coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.7); */
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: 10;
  border-radius: 8px;
}

/* Coming Soon Badge */
.coming-soon-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  opacity: 1;
  transition: opacity 0.4s ease;
  text-align: center;
  pointer-events: none;
}

.coming-soon-badge .badge-text {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #00A3AD 0%, #002D72 100%);
  color: white;
  font-weight: 700;
  font-size: 17.6px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: pulse-badge 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 163, 173, 0.6);
  white-space: nowrap;
}

.coming-soon-badge .release-date {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  animation: fade-pulse 2s ease-in-out infinite;
}

/* Pulsing Animation */
@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 163, 173, 0.6);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 35px rgba(0, 163, 173, 0.9);
  }
}

@keyframes fade-pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive Coming Soon Styling */
@media (max-width: 768px) {
  .coming-soon-badge .badge-text {
font-size: 16px;    padding: 8px 16px;
    letter-spacing: 1px;
  }

 .coming-soon-badge .release-date {
    font-size: 13.6px;   /* 0.85 × 16 */
    margin-top: 8px;     /* already px */
}

}

@media (max-width: 480px) {
  .coming-soon-badge .badge-text {
    font-size: 14.4px;
    padding: 7px 14px;
    letter-spacing: 0.5px;
  }

  .coming-soon-badge .release-date {
    font-size: 12.8px;   /* 0.8 × 16 */
    margin-top: 6px;     /* already px */
}

}
/* Newsletter Section */
.newsletter {
    background: linear-gradient(rgba(0, 45, 114, 0.85), rgba(0, 15, 38, 0.85)), url(../images/Essam-137.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    padding: 80px 0;
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 32px;       /* 2 × 16 */
    margin-bottom: 32px;   /* 2 × 16 */
    font-weight: bold;     /* no conversion needed */
}


.newsletter-form {
    display: flex;
    justify-content: center;
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
font-size: 16px;    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
    padding: 1rem 2.5rem;
    background: #00A3AD;
    color: white;
    border: none;
    border-radius: 8px;
font-size: 16px;    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #008c95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 163, 173, 0.3);
}

@media (max-width: 768px) {
    .newsletter {
        padding: 60px 0;
    }
    
    .newsletter h2 {
    font-size: 24px;       /* 1.5 × 16 */
    margin-bottom: 24px;   /* 1.5 × 16 */
}

    
    .newsletter-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}

.img1 {
    background-image: url(../images/Essam-137.jpg);
    background-color: rgb(242, 242, 242);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 20;
    visibility: inherit;
    position: inherit;
    transform: matrix(1, 0, 0, 1, 0, 0);
}

/* Hero zoom animation */
@keyframes heroZoom {
    from {
        transform: scale(2);
    }
    to {
        transform: scale(1);
    }
}

.bg_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    /* Slow auto zoom while hero is in view */
    animation: heroZoom 12s ease forwards;
    animation-fill-mode: forwards;
}

.bg_img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 45, 114, 0.4); */
    z-index: 1;
    pointer-events: none;
}

/* Responsive: disable parallax on mobile for better performance */
@media (max-width: 768px) {
    .img1 {
        background-attachment: scroll;
    }

    .bg_img {
        animation: heroZoomMobile 12s ease forwards;
    }
}

@keyframes heroZoomMobile {
    from {
        transform: scale(1.15);
    }
    to {
        transform: scale(1);
    }
}
html body{ min-width: 300px; }

#gdlr-responsive-navigation{ display: none; }


@media only screen and (max-width: 1130px) {
	header .gdlr-logo {
		max-width: 250px;
	}
}


/*--- tablet ---*/
@media only screen and (max-width: 1060px) {
	header .gdlr-logo {
		max-width: 220px;
		padding:70px 0;
	}
	.gdlr-navigation-wrapper .gdlr-main-menu > li > a{
		font-size:13px;
		padding:0 8px !important;
	}
}

@media only screen and (max-width: 959px) {
	body .container{ max-width: 768px; }	
	body .body-wrapper.gdlr-boxed-style { max-width: 808px; }
	
	.flex-direction-nav .flex-prev, .flex-direction-nav .flex-next { opacity: 1; }

	.gdlr-logo { margin: 0px auto !important; padding-top: 20px; padding-bottom: 20px; float: none; }
	.gdlr-navigation-wrapper { float: none; text-align: center; margin-top: 10px !important; line-height: 0; }
	.gdlr-navigation-wrapper .gdlr-navigation { display: inline-block; text-align: left; line-height: 1.7; }
	.gdlr-navigation-wrapper .gdlr-main-menu > li > a{ padding-left: 12px; padding-right: 12px; padding-bottom: 15px; }
	
	body .logo-right-area { float: none; text-align: center; margin-top: 0px; margin-bottom: 30px; }
	body .header-block-area { float: none; display: inline-block; text-align: left; }
	body .gdlr-logo-overlay{ display: none; }
	
	.gdlr-fixed-header{ display: none; }
	.blog-item-wrapper .gdlr-outer-nav { display: none; }
	
	.gdlr-blog-widget .post-header { padding: 9px 25px 1px; }
	
	.gdlr-hide-in-tablet{ display: none; } 
	.gdlr-hide-in-tablet-mobile{ display: none; }
	header .gdlr-logo {
		max-width: 300px;
		padding: 20px 0;
	}
	.logo-right-area {
		margin: 0 !important;
		padding: 0 0 100px;
	}
	.stock-center-bottom{
		font-size:15px;
	}
	.stock-center-bottom span {
		font-size: 24px;
		line-height: 30px;
	}
	.stock-center-top {
		margin: 0 15px 0 0;
	}
	.stock-center-top > img {
		margin: 5px 0 0;
		display:inline-block !important;
	}
	.stock-bottom div:first-child .stock-center-top > img {
		margin: 23px 0 0;
		display:inline-block !important;
	}
	.slide1-bottom-txt, .slide2-bottom-txt, .slide4-bottom-txt, .slide5-center-txt, .slide6-bottom-txt{
		font-size:20px !important;
		line-height:24px !important;
	}
}

/*--- mobile landscape style ---*/
@media only screen and (max-width: 767px) {
	body .container{ max-width: 420px; }
	body .body-wrapper.gdlr-boxed-style { max-width: 460px; }
	body .body-wrapper{ overflow: hidden; }
	
	.one-ninth, .one-eighth, .one-seventh,.one-fifth,
	.two-fifth, .three-fifth, .four-fifth,
	.one, .two, .three, .four, .five, .six, .seven,
	.eight, .nine, .ten, .eleven, .twelve{ width: 100%; }	
	
	/*--- header ---*/
	.top-navigation-container{ text-align: center; line-height: 1; }
	.top-navigation-left{ float: none !important; padding-top: 10px !important; margin: 0px !important; }
	.top-navigation-left-text{ float: none; text-align: center; padding-bottom: 0px; }
	.top-navigation-right{ float: none !important; margin: 0px !important; padding-bottom: 20px !important; }
	.top-navigation-right-text{ float: none; padding-bottom: 10px; margin: 0px; }
	.top-social-wrapper{ float: none; margin-left: 0px; display: inline-block; padding: 0px; }
	
	#gdlr-responsive-navigation { display: block; height: 0px; position: static; float: none; }
	#gdlr-responsive-navigation .dl-trigger{ position: absolute; right: 0px; top: 50%; margin-top: -20px; }
	.dl-menuwrapper > .dl-menu, 
	.dl-menuwrapper > .dl-submenu{ margin: 30px 0px 0px; width: 400px; text-align: left; }

	body .gdlr-logo{ float: none; position: relative; display: block; 
		padding-right: 80px; padding-top: 30px; padding-bottom: 30px; }
	body .gdlr-logo.gdlr-align-left #gdlr-responsive-navigation .dl-trigger,
	body .gdlr-logo.gdlr-align-right #gdlr-responsive-navigation .dl-trigger{ top: 45px; margin-top: 0px; }
	body .logo-right-area{ margin-top: 10px; margin-bottom: 25px; float: none; }
	body .logo-right-area .header-block-area{ margin: 0px 20px 20px; padding: 0px; border: none; text-align: center; }
	body .logo-right-area .header-block-area .header-block-icon{ float: none; margin-right: 0px; }
	
	.gdlr-navigation-wrapper{ display: none; }
	.gdlr-header-wrapper{ background: #111; position: relative; }
	
	/*--- stunning-text ---*/
	.gdlr-stunning-text-item .stunning-text-button { border: none; padding: 0px; margin: 20px 0px 0px; }
	
	.gdlr-stunning-shortcode-item{ text-align: center; }
	.gdlr-stunning-shortcode-item.type-normal.gdlr-button-on{ padding-right: 0px; }
	.gdlr-stunning-shortcode-item.type-normal .stunning-shortcode-button{ position: static; margin-top: 0px; }
	.gdlr-stunning-shortcode-item.with-padding.gdlr-button-on{ padding-right: 35px; }
	
	.gdlr-service-with-image-item .service-with-image-thumbnail { float: none; margin: 0px auto; }
	.gdlr-service-with-image-item .service-with-image-content-wrapper { text-align: center; } 
	
	.gdlr-feature-media-item.gdlr-left .feature-media-thumbnail{ float: none; width: auto; margin-right: 0px;}
	.gdlr-feature-media-item .feature-media-icon { display: none; }
	html .woocommerce ul.products li.product, html .woocommerce-page ul.products li.product { width: 99% !important; }
	
	/*--- single page ---*/
	.gdlr-portfolio-style1 .gdlr-portfolio-description{ float: none; margin-right: 0px; width: auto; }
	.gdlr-portfolio-style1 .gdlr-portfolio-info{ width: auto; float: none; margin-bottom: 30px; }	
	.gdlr-portfolio-style2 .gdlr-portfolio-thumbnail {
    max-width: 100%; float: none; margin-right: 0px; margin-left: 0px; width: auto !important;  }
	
	.gdlr-blog-medium .gdlr-blog-thumbnail { margin-right: 0px; float: none; margin-bottom: 20px; width: auto; }	

	/*--- slider ---*/
	.gdlr-caption-wrapper .gdlr-caption .gdlr-caption-text { display: none; }
	.gdlr-caption-wrapper .gdlr-caption .gdlr-caption-title { margin-bottom: 0px; font-size: 15px; }
	.gdlr-caption-wrapper .gdlr-caption { max-width: 100%; padding: 13px 12px; }	 
	
	.gdlr-item-title .gdlr-flex-prev { margin: 0px; position: absolute; 
		left: 0px; top: 50%; margin-top: -20px;}
	.gdlr-item-title .gdlr-flex-next{ margin: 0px; position: absolute; 
		right: 0px; top: 50%; margin-top: -20px; }	
	
	/*--- title item ---*/
	.gdlr-item-title-wrapper .gdlr-item-title-right { position: static; text-align: left; margin-top: 20px; }
	.gdlr-item-title-wrapper .gdlr-item-title-right .gdlr-flex-prev,
	.gdlr-item-title-wrapper .gdlr-item-title-right .gdlr-flex-next { display: none; }
	
	/*--- tab item ---*/
	.gdlr-tab-item.vertical > .tab-title-wrapper { max-width: none; float: none; text-align: left; border: none; margin-bottom: 30px; }
	.gdlr-tab-item.vertical > .tab-title-wrapper .tab-title { display: inline-block; margin-right: 3px; }
	.gdlr-tab-item.vertical > .tab-content-wrapper{ padding-left: 0px; }
	.gdlr-hide-in-tablet{ display: block; } 
	.gdlr-hide-in-mobile{ display: none; } 
	.logo-right-area {
		padding: 0;
	}
	.gdlr-header-wrapper{
		background:#fff;
	}
	.stock-center > div, .stock-bottom > div{
		width:50%;
		min-height:70px;
	}
	.stock-left-bottom, .stock-right-bottom{
		font-size:24px;
	}
	.slide4-top-txt, .slide5-top-txt {
		font-size: 30px !important;
	}
}

@media only screen and (max-width: 580px) {
	.slide1-bottom-txt, .slide2-bottom-txt, .slide4-bottom-txt, .slide5-center-txt, .slide6-bottom-txt {
		font-size: 16px !important;
		line-height: 20px !important;
	}
	.slide4-top-txt, .slide5-top-txt {
		font-size: 26px !important;
	}
}

/*--- mobile portrait style ---*/
@media only screen and (max-width: 419px) {
	body .container{ max-width: 300px; }
	body .body-wrapper.gdlr-boxed-style { max-width: 340px; }
	
	.dl-menuwrapper .dl-menu, .dl-menuwrapper > .dl-submenu{ width: 300px; }
		
	.gdlr-blog-widget .post-header { padding: 18px 25px 10px; }
	.gdlr-blog-widget .gdlr-blog-info { display: none; }
	.stock-center > div, .stock-bottom > div {
		float: left;
		margin: 0 auto 20px;
		text-align: center;
		width: 100%;
		display:inline-block !important;
	}
	.stock-center-top {
		margin: 0 0 10px;
		width: 100%;
	}
	.stock-center-bottom, .stock-center-bottom span{
		width:100%;
	}
	.stock-top-left, .stock-top-right {
		float: left;
		width: 100%;
		margin: 0 0 15px;
	}
	.slide1-bottom-txt, .slide2-bottom-txt, .slide4-bottom-txt, .slide5-center-txt, .slide6-bottom-txt {
		font-size: 12px !important;
		line-height: 16px !important;
	}
	.slide4-top-txt, .slide5-top-txt {
		font-size: 20px !important;
	}
}
.ticker-item .up {
    color: #00c853; /* green */
}

.ticker-item .down {
    color: #ff3d00; /* red */
}
/*.ticker-item::after {*/
/*    content: "•";*/
/*    margin-left: 12px;*/
/*    color: #999;*/
/*}*/
.ticker-item::after {
    content: none;
}
.ticker-item:last-child::after {
    content: "";
}
/* Center loading state */
#tickerTrack:has(.ticker-item:only-child) {
    display: flex;
    justify-content: center;
    align-items: center;
}

#tickerTrack:has(.ticker-item:only-child) .ticker-item {
    justify-content: center;
    text-align: center;
    width: 100%;
}.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

/* duplicate visually */
.ticker-track::after {
    content: attr(data-html); /* will be filled by JS */
}

@keyframes marquee-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}
.ticker-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--text-color, #333);
    white-space: nowrap;
}
