/* ==========================================================================
   PREVENT HORIZONTAL OVERFLOW & WHITE MARGIN
   ========================================================================== */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

.testimonials-carousel-wrapper,
.offers-carousel-wrapper,
.brand-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    /* Brand & Colors */
    --primary-green: #65bc47;
    --primary-green-hover: rgba(101, 188, 71, 0.7);
    --bg-gray: #f8f8f8;
    --text-dark: #181818;
    --text-sub: #7a7a7a;
    --text-body: #808080;
    --text-muted: #666666;
    --border-color: #f0f0f0;

    /* Typography & Dimensions */
    --font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
    --header-height: 80px;
    --container-max-width: 1140px;
    /* Default container width for all sections */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* Cookie consent banner */
.cookie-consent-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 7vw, 96px);
    padding: 20px 7.5%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    color: #707070;
    font-size: 1rem;
    line-height: 1.8;
}

.cookie-consent-banner[hidden] {
    display: none;
}

.cookie-consent-banner p {
    margin-right: 10px;
    float: left;
    width: 75%;
    text-align: left;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 23px;

}

.cookie-consent-banner a {
    margin-left: 8px;
    color: #65a849;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-consent-button {
    padding: 12px 32px;
    border: 0;
    border-radius: 7px;
    background: #A3A3A3;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 21%;
    float: right;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
    background: #181818;
}

@media (max-width: 700px) {
    .cookie-consent-banner {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .cookie-consent-button {
        width: 100%;
        min-width: 0;
    }
}

/* Global Container Utility Class (1140px) */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -1px;
}

/* Common Green Button */
.btn-green {
    display: inline-block;
    background-color: var(--primary-green);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 11px 44px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;

    /* 3. Anchors all buttons to the bottom baseline */
    margin-top: auto;
    flex-shrink: 0;
}

.btn-green:hover {
    background-color: var(--primary-green-hover);
    color: #ffffff;
}

/* ==========================================================================
   1. HEADER SECTION STYLES
   ========================================================================== */
.site-header {
    width: 100%;
    height: var(--header-height);
    background-color: #ffffff;
    top: 0;
    z-index: 1000;
}

.header-right-sec li {
    list-style: none;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header-logo img {
    height: 44px;
    width: auto;
    display: block;
}

/* Navigation Container */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item .nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease;
    padding: 10px 0;
}

.nav-item .arrow {
    font-size: 15px;
    color: var(--text-dark);
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover State on Main Nav Links */
.nav-item:hover .nav-link {
    color: var(--primary-green);
    /* Turns green on hover */
}

.nav-item:hover .arrow {
    color: var(--primary-green);
    transform: rotate(180deg);
    /* Flips arrow upward ▴ */
}

/* Base Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 255px;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
}

/* Show Dropdown on Hover */
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- 1. Mega Menu Dropdown (Services) --- */
.mega-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 30px;
    width: max-content;
}

.mega-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.mega-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.mega-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mega-label {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.mega-menu-item:hover .mega-label {
    color: var(--primary-green);
}

/* --- 2. List Dropdown Menu (Company & Contact Us) --- */
.list-menu {
    left: 0;
    transform: translateX(0) translateY(10px);
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    min-width: 200px;
}

.nav-item:hover .list-menu {
    transform: translateX(0) translateY(0);
}

.dropdown-link {
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 24px;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.dropdown-link:hover {
    color: var(--primary-green);

}

/* Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.login-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: var(--primary-green);
}

.right-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-selector {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.9rem;
    padding: 0;
}

.lang-selector:hover {
    color: var(--primary-green);
}

.globe-icon {
    stroke: var(--text-muted);
}

.prices-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: color 0.2s ease;
}

.prices-link:hover {
    color: var(--primary-green);
}

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

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: var(--primary-green);
}

/* ==========================================================================
   2. HERO & PRODUCTS SECTION STYLES
   ========================================================================== */
.hero-products-section {
    background-color: var(--bg-gray);
    background-image: url("../images/background-logo-white.svg");
    background-repeat: no-repeat;
    background-position: center 30px;
    background-size: 250px auto;
    padding: 60px 0 80px;
    width: 100%;
}

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

.hero-header {
    margin-bottom: 45px;
}

.hero-title {
    font-family: var(--font-family);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-family: var(--font-family);
    font-size: 1.05rem;
    color: var(--text-sub);
    font-weight: 400;
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 15px;
    height: 100%;
}

.card-image-box {
    height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.card-image-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-title {
    font-family: var(--font-family);
    font-size: 1.45rem;
    font-weight: 650;
    color: var(--text-dark);
    margin-bottom: 14px;
    flex-shrink: 0;
}

.card-description {
    font-family: var(--font-family);
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.55;
    margin-bottom: 30px;
    max-width: 320px;

}

.riyal-icon {
    display: inline-block;
    height: 12px;
    width: auto;
    vertical-align: baseline;
    margin: 0 1px;
}

/* ==========================================================================
   3. ABOUT TASHEEL & PILLARS SECTION STYLES
   ========================================================================== */
.about-pillars-section {
    background-color: #ffffff;
    background-image: url("../images/background-logo.svg");
    background-repeat: no-repeat;
    background-position: 74.5% 26%;
    background-size: 200px auto;
    padding: 80px 0;
    width: 100%;
}

.about-header {
    max-width: 770px;
    margin-bottom: 50px;
}

.about-title {
    font-family: var(--font-family);
    font-size: 30px;
    font-weight: 650;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 16px;
    letter-spacing: -2.5px;
}

.about-subtitle {
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* 4 Pillars Grid Layout */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 45px;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pillar-icon-box {
    height: 55px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.pillar-icon-box img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.pillar-title {
    font-family: var(--font-family);
    font-size: 23px;
    font-weight: 650;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.pillar-desc {
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.5;
    max-width: 240px;
}

.about-action {
    margin-top: 10px;
}

/* ==========================================================================
   4. CUSTOMER TESTIMONIALS SECTION STYLES
   ========================================================================== */
.testimonials-section {
    background-color: var(--bg-gray);
    /* #f8f8f8 */
    padding: 70px 0 90px;
    width: 100%;
}

.testimonials-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.testimonials-title {
    font-family: var(--font-family);
    font-size: 30px;
    font-weight: 650;
    color: var(--text-dark);
    letter-spacing: -1.5px;
}

/* Arrows */
.carousel-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 15%;
    border: 1px solid #e2e2e2;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.arrow-btn:hover {
    border-color: #cccccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.arrow-btn img {
    width: 8px;
    height: 12px;
}

/* Carousel Track Container */
.testimonials-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.testimonials-track {
    display: flex;
    gap: 25px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Testimonial Pair (1 Video Card + 1 Text Card side-by-side) */
.testimonial-pair {
    display: flex;
    gap: 18px;
    flex: 0 0 calc(50% - 12.5px);
    /* Exactly 2 pairs visible on desktop */
    min-width: 0;
}

/* Video Card Left */
.testimonial-video-card {
    position: relative;
    width: 48%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.testimonial-video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.video-thumb {
    width: 100%;
    height: 130%;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 58px;
    height: 58px;
    padding: 0;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.play-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text Card Right */
.testimonial-text-card {
    border: 1px solid #d2d2d2;
    border-radius: 20px;
    padding: 30px 25px;
    width: 52%;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.twitter-handle {
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.arabic-quote {
    font-family: var(--font-family);
    font-size: 0.92rem;
    color: #666666;
    line-height: 1.65;
    text-align: left;
}

.twitter-icon {
    margin-top: 50px;
    display: flex;
    justify-content: flex-start;
}

.twitter-link {
    display: inline-block;
    text-decoration: none;
    width: fit-content;
}

.twitter-link:hover svg {
    fill: #4DAE3D;
    transition: fill 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .testimonial-pair {
        flex: 0 0 100%;
        /* Single pair on mobile */
    }
}

@media (max-width: 600px) {
    .testimonial-pair {
        flex-direction: column;
    }

    .testimonial-video-card,
    .testimonial-text-card {
        width: 100%;
        height: 280px;
    }
}

/* ==========================================================================
   4. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 900px) {

    /* Header Responsive */
    .header-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background-color: var(--text-dark);
    }

    /* Hero Responsive */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-products-section {
        background-size: 280px auto;
    }

    /* Pillars Responsive */
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .about-pillars-section {
        background-size: 80%;
        background-position: 40% 23%;
    }
}

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

/* ==========================================================================
   5. OFFERS SECTION STYLES
   ========================================================================== */
.offers-section {
    background-color: #ffffff;
    padding: 70px 0 90px;
    width: 100%;
}

.offers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

.offers-title {
    font-family: var(--font-family);
    font-size: 2.2rem;
    font-weight: 650;
    color: var(--text-dark);
    letter-spacing: -1.5px;
}

.offers-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* All Offers Pill Button */
.btn-pill-light {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    background-color: #ffffff;
    color: #666666;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-pill-light:hover {
    border-color: #cccccc;
    color: var(--text-dark);
}

/* Offers Grid Layout */
.offers-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

/* Offers Grid / Carousel Track */
.offers-grid {
    display: flex;
    /* Changed from display: grid to allow infinite horizontal cards */
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Offer Card Box */
.offer-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex: 0 0 calc(25% - 15px);
    /* Forces exactly 4 cards per view window */
    min-width: 0;
}

.offer-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover Overlay & Action Buttons */
.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.offer-card:hover .offer-overlay {
    opacity: 1;
    visibility: visible;
}

.offer-card:hover .offer-img {
    transform: scale(1.03);
}

/* Hover Buttons Styling */
.offer-btn {
    width: 160px;
    padding: 10px 0;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 10px;
    margin-top: inherit;
}

.btn-white {
    background-color: #ffffff;
    color: #666666;
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
}

.btn-white:hover {
    background-color: #f0f0f0;
    color: var(--text-dark);
}

/* Offer Text Below Image */
.offer-title {
    font-family: var(--font-family);
    font-size: 19px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color 0.2s ease;

}

.offer-card:hover .offer-title {
    color: var(--primary-green);
}

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

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

/* ==========================================================================
   6. APP BANNER & SUPPORT SECTION STYLES
   ========================================================================== */
.app-support-section {
    background-color: #ffffff;
    padding: 60px 0 0px;
    width: 100%;
}

.app-support-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 25px;
    align-items: stretch;
    margin-bottom: 60px;
}

/* Left Green Promo Card with Perfect Image Fitting */
.app-promo-card {
    background-color: var(--primary-green);
    background-image: url("../images/home-refer-bg-desktop.png");
    background-repeat: no-repeat;
    background-position: 0 bottom;
    background-size: cover;
    border-radius: 20px;
    padding: 40px 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 310px;
}

.app-promo-content {
    max-width: 340px;
    /* Widened slightly to match 3-line title layout */
    padding-bottom: 0;
}

.app-promo-title {
    font-family: var(--font-family);
    font-size: 1.7rem;
    font-weight: 650;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

/* QR Code Box */
.qr-code-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.qr-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: transparent;
    border-radius: 6px;
}

.qr-text {
    font-family: var(--font-family);
    font-size: 0.8rem;
    color: #ffffff;
    font-weight: 500;
}

/* Right Side Stacked Cards */
.support-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    height: 145px;
}

.support-icon-box {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.support-title {
    font-family: var(--font-family);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.support-subtitle {
    font-family: var(--font-family);
    font-size: 15px;
    color: #888888;
}

/* Social Media Row */
.social-icons-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.7;
}

/* Bottom Button */
.data-request-action {
    margin-top: 10px;
}

/* Section Responsive */
@media (max-width: 992px) {
    .app-support-grid {
        grid-template-columns: 1fr;
    }

    .app-promo-card {
        padding: 30px 25px;
        background-size: cover;
    }
}

@media (max-width: 576px) {
    .app-promo-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   7. FOOTER SECTION STYLES (MATCHING ORIGINAL DESIGN)
   ========================================================================== */
.site-footer {
    background-color: #ffffff;
    padding: 60px 0 40px;
    width: 100%;

}

/* Footer Top Bar */
.footer-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 45px;
}

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

.footer-regulation-text p {
    font-family: var(--font-family);
    font-size: 0.82rem;
    color: #666666;
    line-height: 1.4;
    text-decoration: underline;
    /* Matching subtle link style */
}

.footer-regulation-text p {
    width: 66%;
    font-size: 11px;
}

/* Rounded EN/عربى Toggle Pill */
.footer-lang-pill {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 30px;

}

.footer-lang-btn {
    background: transparent;
    border: none;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    padding: 15px 22px;
    border-radius: 25px 0px 0 25px;
    cursor: pointer;
    color: #181818;
    transition: all 0.2s ease;
    width: 82px;
}

.footer-lang-btn.active {
    background-color: var(--primary-green);
    /* #61C250 */
    color: #ffffff;
    font-weight: 400;
}

/* Footer Middle Navigation Grid */
.footer-middle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.3fr;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-col li {
    margin-bottom: 10px;
}

.footer-nav-col a {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav-col a:hover {
    color: var(--primary-green);
}

/* Awards & Certification Badges Row */
.awards-badges-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.award-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.gptw-badge {
    height: 50px;
}

/* Footer Bottom Legal Section */
.footer-bottom-legal {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-top: 10px;
}

.legal-text-content {
    max-width: 820px;
}

.legal-description {
    font-family: var(--font-family);
    font-size: 0.76rem;
    color: #b0b0b0;
    line-height: 1.65;
    margin-bottom: 16px;
}

.legal-copyright {
    font-family: var(--font-family);
    font-size: 0.78rem;
    color: #b0b0b0;
}

.legal-copyright a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-copyright a:hover {
    color: var(--text-dark);
}

/* Sharia Compliant Badge */
.sharia-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES & DRAWER MENU
   ========================================================================== */

@media (max-width: 900px) {

    /* 1. Header & Mobile Menu Button */
    .header-nav,
    .header-actions {
        display: none !important;
    }

    .nav-item {
        display: block;
    }

    .mega-menu {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
        background-color: var(--text-dark);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile Drawer Overlay */
    .mobile-menu-drawer {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
        padding: 30px 25px;
        display: flex;
        flex-direction: column;
        gap: 25px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .mobile-menu-drawer.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu-drawer .header-nav {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        height: auto;
    }

    .mobile-menu-drawer .header-actions {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-top: 20px;
        border-top: 1px solid #f0f0f0;
    }

    .mobile-menu-drawer .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding: 10px 0 0 0px;
        opacity: 1;
        visibility: visible;
    }

    /* Prevent body scroll when mobile menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* 2. Container & Layout Reset */
    .container {
        padding: 0 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Force All Main Grids to 1 Column */
    .products-grid,
    .pillars-grid,
    .app-support-grid,
    .footer-middle-grid,
    .card-comparison-grid,
    .why-apply-grid,
    .how-apply-grid,
    .eligibility-boxes-grid,
    .faq-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 25px !important;
    }

    /* 3. Hero & Product Cards */
    .hero-products-section {
        padding: 40px 0;
        background-size: 240px auto;
    }

    .hero-title {
        font-size: 30px;
        line-height: 39px;
        font-weight: 700;
        text-align: left;
    }

    /* 4. Testimonials & Offers Carousels Mobile Sizing */
    .testimonial-pair {
        flex: 0 0 100% !important;
        flex-direction: column;
    }

    .testimonial-video-card,
    .testimonial-text-card {
        width: 100% !important;
        height: 280px !important;
    }

    .offer-card {
        flex: 0 0 100% !important;
    }

    .brand-offer-card {
        flex: 0 0 100% !important;
    }

    /* 5. Mobile App Banner Fix */
    .app-promo-card {
        padding: 30px 20px !important;
        background-size: cover;
        min-height: auto !important;
    }

    .app-promo-title {
        font-size: 1.35rem !important;
    }

    /* 6. Footer Layout Mobile */
    .footer-top-bar,
    .footer-bottom-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-regulation-text p {
        width: 100% !important;
    }

    .awards-badges-row {
        justify-content: flex-start;
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 1.7;
        font-weight: 400;
        margin-bottom: 35px;
        text-align: left;
    }

    .product-card {
        padding: 20px 20px 0px 20px;
        text-align: left;
        background: #fff;
        border-radius: 25px;
        display: flex;
        flex-direction: row-reverse;
        margin-bottom: 20px;
    }

    .card-image-box {
        margin-left: 0;
        margin-top: 40px;
    }

    .card-image-box img {
        height: 175px;
        max-width: 90px;
        margin-bottom: 0;
        object-fit: contain;
    }

    .card-title {
        font-size: 24px;
        line-height: 1.3;
        letter-spacing: -1px;
        text-align: left;
    }

    .card-description {
        font-size: 13px;
        line-height: 1.7;
        font-weight: 400;
        min-height: 75px;
        text-align: left;
        margin-bottom: 0;
        max-width: 95%;
    }

    .about-title {
        font-size: 25px;
        letter-spacing: -1px;
        line-height: 42px;
    }

    .about-subtitle {
        font-size: 13px;
        line-height: 1.7;
        font-weight: 400;
    }

    .pillar-title {
        font-size: 22px;
        line-height: 1.3;
        letter-spacing: -1px;
    }

    .pillar-desc {
        max-width: 100%;
        margin-bottom: 25px;
        font-size: 15px;
        line-height: 25px;
    }

    .btn-green {
        width: 100%;
        text-align: center;
        height: 47px;
    }

    .pillars-grid {
        margin-bottom: 0;
    }

    .testimonials-title,
    .offers-title {
        font-size: 25px;
        letter-spacing: -1px;
    }

    .product-card {
        display: grid;
        grid-template-columns: 1fr 30%;
        grid-template-areas:
            "title image"
            "description image"
            "button image";
        column-gap: 15px;
        align-items: center;
        padding: 20px;
        text-align: left;
    }

    .card-image-box {
        grid-area: image;
        width: 100%;
        height: auto;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-image-box img {
        width: 100%;
        height: auto;
        display: block;
    }

    .card-title {
        grid-area: title;
        margin: 0 0 5px;
    }

    .card-description {
        grid-area: description;
        margin: 0 0 10px;
    }

    .product-card .btn {
        grid-area: button;
        width: fit-content;
        font-size: 13px;
        line-height: 14px;
        font-weight: 700;
        text-align: left;
        background-color: #fff;
        color: var(--primary-green);
        padding: 0;
    }

    .offer-card.home-offer-card {
        display: flex;
        flex-direction: column;
    }

    .offer-image-container {
        display: contents;
    }

    .offer-image-container .offer-img {
        height: auto;
        border-radius: 20px;
    }

    .offer-card .offer-title {
        order: 2;
        margin-top: 15px;
    }

    .offer-card .offer-overlay.home-offer-btns {
        order: 3;
        position: relative;
        height: auto;
        flex-direction: row;
        margin-top: 10px;
        padding: 0;
        background: transparent;
        opacity: 1;
        gap: 10px;
    }

    .offer-card .offer-overlay.home-offer-btns .offer-btn {
        display: flex;
        visibility: visible;
        flex: 1 1 0;
        justify-content: center;
        align-items: center;
    }

    .link-type-9 {
        background-color: #fff;
        border: 1px solid #bebebe;
        color: #bebebe !important;
        width: 158px;
        height: 47px;
        border-radius: 10px;
        text-decoration: none;
        text-align: center;
        font-size: 15px;
        line-height: 18px;
        flex-direction: column;
        font-weight: 700;
        transition: all .3s ease-in-out;
    }
}