:root {
    --primary-color: #1335eb;
    --primary-light: #4c6ef5;
    --primary-dark: #0f2ac0;
    --secondary-color: #f59e0b;
    --secondary-light: #fbbf24;
    --accent-color: #10b981;
    --dark-color: #0f172a;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --primary-gradient: linear-gradient(135deg, #1335eb 0%, #0f2ac0 100%);
    --secondary-gradient: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    --hover-gradient: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Typography Standards */
    --h1-size: clamp(1.8rem, 3vw, 2.2rem);
    --h2-size: clamp(1.5rem, 2.5vw, 1.75rem);
    --h3-size: 1.25rem;
    --body-size: 0.95rem;
    --small-size: 0.85rem;
}

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

body {
    font-family: 'Readex Pro', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Logo Styling */
#logo-svg {
    width: 110px;
    height: auto;
}

#logo-svg path,
#logo-svg rect {
    fill: var(--dark-color);
}

.container {
    padding-right: 40px !important;
    padding-left: 40px !important;
}

/* Header Styles */
.sticky-top {
    z-index: 1020;
    transition: all 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sticky-shadow {
    box-shadow: var(--shadow-md);
}

header a {
    transition: all 0.3s ease;
}

/* Promo Banner */
.promo-banner-strip {
    background: linear-gradient(135deg, #059669 0%, #10b981 60%, #34d399 100%);
    padding: 56px 0 60px;
    color: #fff;
    position: relative;
    z-index: 1050;
}

.promo-banner-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.25;
    max-width: 700px;
}

.promo-banner-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 28px;
    max-width: 500px;
}

.promo-banner-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.promo-banner-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.promo-banner-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    margin-top: 4px;
}

.promo-banner-close:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .promo-banner-strip {
        padding: 40px 0 44px;
    }

    .promo-banner-title {
        font-size: 1.4rem;
    }

    .promo-banner-sub {
        font-size: 0.875rem;
    }
}

header .nav-link {
    font-weight: 400;
    /* Lighter weight for nav */
    padding: 0.5rem 1rem;
    color: var(--dark-color);
}

header .nav-link:hover {
    color: var(--primary-color) !important;
    transform: none;
}

/* Dropdown Styles */
.dropdown-menu {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px;
    text-align: right;
    min-width: 240px;
    margin-top: 10px !important;
    background-color: var(--white);
    transform-origin: top center;
}

.dropdown-item {
    border-radius: var(--border-radius-md);
    padding: 10px 15px;
    /* Standardized side padding */
    font-weight: 400;
    /* Lighter weight */
    color: var(--dark-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Increased gap slightly */
    margin-bottom: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
    /* Ensure consistent line height */
}

/* Remove margin from icon to rely on gap */
.dropdown-item i {
    margin-left: 0 !important;
    /* Force override bootstrap me-2 if easier, but gap handles it well usually */
    margin-right: 0 !important;
    font-size: 1.2rem;
    color: #94a3b8;
    /* Muted color for hierarchy */
    transition: color 0.2s ease;
}

.dropdown-item:active,
.dropdown-item:focus,
.dropdown-item:hover {
    background-color: #f1f5f9;
    /* Light gray/blue hover */
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
    /* Active color on hover */
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-md);

    .btn {
        border-radius: var(--border-radius-md);
        padding: 12px 32px;
        font-weight: 500;
        /* Slightly lighter than previous 600 */
        transition: all 0.3s ease;
    }
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--hover-gradient);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-color), #059669);
    border: none;
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Header and Mobile Menu Buttons */
header .btn,
.offcanvas .btn {
    padding: 8px 20px;
    font-size: var(--small-size);
}

/* Hero Section */
/* Hero Section */
.hero {
    background-color: var(--primary-color);
    /* Base Gradient */
    background-image:
        /* Radial fade for the grid */
        radial-gradient(circle at 50% 50%, transparent 0%, var(--primary-dark) 100%),
        /* Vertical Lines */
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        /* Horizontal Lines */
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        /* Deep Blue Gradient Base */
        linear-gradient(135deg, #1335eb 0%, #0f2ac0 100%);
    background-size: 100% 100%, 50px 50px, 50px 50px, 100% 100%;
    background-position: center center;
    position: relative;
    overflow: hidden;
    padding: 160px 0 120px;
    text-align: center;
    color: white;
    z-index: 1;
}

/* Remove old blobs */
.hero::before,
.hero::after {
    display: none;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -1px;
    /* Clean white text for better contrast */
    color: #ffffff;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: -20px;
}

.hero p {
    font-size: 1.35rem;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Custom Premium Buttons */
.btn-custom {
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/*Refined Glass Button - Cleaner */
.btn-outline-light.btn-custom {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-outline-light.btn-custom:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: white;
}

/* ── Unified Section Vertical Spacing ── */
/* All content sections share the same top/bottom breathing room */
.stats-section {
    padding-top: 80px !important;
    padding-bottom: 0 !important;
}

#features {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.testimonials-section {
    padding-top: 0 !important;
    padding-bottom: 80px !important;
}

.success-stories {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

#partners-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* Stats Section */
.stats-section {
    background: #ffffff;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-card:hover {}

.stat-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8eeff 0%, #dbe4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.stat-icon-wrap i {
    font-size: 1.7rem;
    color: #1335eb;
}

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    color: #1335eb;
    margin-bottom: 6px;
    line-height: 1.2;
}

.stat-value {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-unit {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 600;
    color: #0f2ac0;
    opacity: 0.85;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
    margin: 0;
}

/* Features Section */
#features {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

#features h2 {
    font-size: var(--h2-size);
    font-weight: 600;
    /* Lighter section heading */
    color: var(--primary-color);
    margin-bottom: 4rem;

    position: relative;
    display: inline-block;
}

#features h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

.feature-box {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(30, 58, 138, 0.05);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-box i {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 50%;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.feature-box:hover i {
    background: var(--secondary-gradient);
    transform: rotateY(180deg);
}

.feature-box h5 {
    font-size: var(--h3-size);
    font-weight: 600;
    /* Lighter heading */
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-box p {
    font-size: var(--body-size);
    color: #6b7280;
    line-height: 1.7;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.pricing-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.pricing-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.savings-badge {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e3a8a;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
    box-shadow: none;
}

.savings-badge strong {
    color: #2563eb;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
}

.toggle-label {
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-label.active {
    color: var(--primary-color);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #cbd5e1;
    border-radius: 34px;
    transition: .4s;
}

.slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    right: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: var(--shadow-sm);
}

input:checked + .slider {
    background: var(--primary-gradient);
}

input:checked + .slider::before {
    transform: translateX(-28px);
}

/* Wrapper للبطاقتين */
.pricing-card-wrapper {
    position: relative;
    padding-top: 38px;
    height: 100%;
}

/* البطاقة الأولى: البانر الترويجي — تظهر من الأعلى وتختبئ خلف البطاقة الرئيسية */
.promo-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 10px 16px 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    font-size: 0.85rem;
    z-index: 0;
}

.promo-card i {
    font-size: 1rem;
    color: #2563eb;
}

.promo-card.featured {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
    color: #1e3a8a;
    font-weight: 600;
}

.promo-card.featured i {
    color: #1d4ed8;
}

/* البطاقة الرئيسية — فوق البانر */
.pricing-card {
    position: relative;
    z-index: 1;
    background: white;
    border: 2px solid rgba(30, 58, 138, 0.08);
    border-radius: var(--border-radius-xl);
    padding: 30px 30px 30px;
    text-align: right;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: none;
    box-shadow: none;
}

.pricing-card.recommended {
    border-color: #2563eb;
    border-width: 2px;
    box-shadow: none;
}

.pricing-card.recommended:hover {
    transform: none;
    box-shadow: none;
}

.recommended .badge {
    position: absolute;
    top: 18px;
    left: 20px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: none;
}

.pricing-card h4 {
    font-size: var(--h3-size);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 10px;
}

.pricing-card.recommended h4 {
    color: #1d4ed8;
}

.pricing-price {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.pricing-card p {
    color: #6b7280;
    font-size: var(--body-size);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-subscribe {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.25s ease;
}

.btn-subscribe:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.pricing-card.recommended .btn-subscribe {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

.pricing-card.recommended .btn-subscribe:hover {
    background: var(--hover-gradient);
    box-shadow: none;
}

/* Contact Section */
#contact {
    padding: 100px 0;
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

#contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#contact .container {
    position: relative;
    z-index: 1;
}

#contact h2 {
    font-size: var(--h2-size);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

#contact p {
    font-size: 1.05rem;
    /* Match Hero p */
    margin-bottom: 3rem;
    opacity: 0.9;
}

#contact .btn-primary {
    background: white;
    color: var(--primary-color);
    padding: 16px 48px;
    font-size: 1rem;
    border-radius: var(--border-radius-md);
}

#contact .btn-primary:hover {
    background: var(--light-bg);
    color: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
/* Contact Strip */
.contact-strip {
    background: linear-gradient(135deg, #1335eb 0%, #0f2bd4 100%);
    padding: 28px 0;
    color: #fff;
}

.contact-strip-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    white-space: nowrap;
}

.contact-strip-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    white-space: nowrap;
}

.contact-strip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex: 0 0 auto;
}

.contact-strip-item:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.contact-strip-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-strip-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2px;
}

.contact-strip-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    word-break: break-all;
}

@media (max-width: 767px) {
    .contact-strip {
        padding: 24px 0;
        text-align: center;
    }

    .contact-strip-title {
        font-size: 1rem;
    }

    .contact-strip-sub {
        font-size: 0.8rem;
    }

    .contact-strip-item {
        flex-direction: row;
        align-items: center;
        text-align: right;
        padding: 14px 16px;
        flex: 1 1 100%;
        gap: 12px;
    }

    .contact-strip-value {
        font-size: 0.8rem;
        word-break: break-all;
    }
}

.footer {
    background: #f8fafc;
    color: #4b5563;
    padding: 70px 0 70px;
    font-size: var(--small-size);
    border-top: 2px solid rgba(19, 53, 235, 0.08);
}

.footer h5 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.footer a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

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

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

/* وصف المنصة */
.footer-desc {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* أيقونات التواصل الاجتماعي */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(19, 53, 235, 0.06);
    border: 1px solid rgba(19, 53, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1335eb;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: #1335eb;
    color: #fff;
    border-color: #1335eb;
}

/* Contact Links in Footer */
.contact-link {
    color: #4b5563 !important;
    transition: color 0.2s ease;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-link:hover {
    color: var(--primary-color) !important;
}

.contact-link .icon-box {
    width: 38px;
    height: 38px;
    background: rgba(19, 53, 235, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(19, 53, 235, 0.1);
}

.contact-link:hover .icon-box {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.footer-bottom {
    background: #f1f5f9;
    padding: 20px 0;
    margin-top: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    font-size: var(--small-size);
}

.footer-bottom a {
    font-size: var(--small-size);
    color: #6b7280;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #1335eb;
}

.footer-bottom p {
    font-size: var(--small-size);
}

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

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

/* Navbar Toggler Focus Fix */
.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 200px 0 160px;
    }

    .pricing-card.recommended {
        transform: scale(1);
    }

    .pricing-card.recommended:hover {
        transform: translateY(-10px);
    }
}

/* Services Section (New Design) */
.services-wrapper {
    background: #fff;
    border-radius: var(--border-radius-xl);
    /* Rounded corners as requested */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* display: flex; REMOVED to fix grid width issue */
    border: 1px solid #cfe2ff;
    /* Added blue border as requested */
}

.services-sidebar {
    background: #e3f2fd;
    /* Light blue background */
    padding: 0;
    /* Remove padding to let active tab fill width */
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

/* Decorative circle effect */
.services-sidebar::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.service-nav-link {
    display: block;
    padding: 20px 30px;
    color: #1e3a8a;
    /* Dark blue text */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: none !important;
    background: transparent;
    border-radius: 0;
    /* Sharp corners */
    text-align: right;
    width: 100%;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.service-nav-link:hover {
    color: #0d6efd;
    background: rgba(255, 255, 255, 0.3);
}

.service-nav-link.active {
    background: #0d6efd;
    /* Bright blue active background */
    color: white;
    font-weight: 800;
}

.services-content {
    padding: 60px;
    background: white;
}

.service-list-item {
    margin-bottom: 15px;
    position: relative;
    padding-right: 20px;
    font-weight: 600;
    color: #1e293b;
    font-size: var(--body-size);
}

.service-list-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 1px;
}

.service-link-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: none;
    margin-top: 30px;
    transition: gap 0.3s;
    font-size: 1rem;
}

.service-link-more:hover {
    gap: 15px;
    color: var(--primary-dark);
}

/* Offcanvas RTL Fixes */

html[dir="rtl"] .offcanvas.offcanvas-end-rtl {
    right: 0;
    left: auto;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] .offcanvas.offcanvas-end-rtl.show {
    transform: translateX(0);
}

html[dir="rtl"] .offcanvas.offcanvas-end-rtl.hiding {
    transform: translateX(100%);
}

.offcanvas {
    z-index: 1050;
    background-color: #ffffff !important;
    color: #0f172a;
}

.offcanvas-backdrop {
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.45);
}

@media (max-width: 991.98px) {
    .offcanvas {
        width: 85% !important;
        max-width: 360px;
        border-left: 1px solid rgba(0, 0, 0, 0.06);
    }
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    min-height: 82px;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-header svg .st0 {
    fill: #1335eb;
}

.mobile-menu-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Mobile Nav Links */
.mobile-nav {
    padding: 12px 12px;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 12px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.975rem;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    margin-bottom: 2px;
}

.mobile-nav-link i:first-child {
    font-size: 1.15rem;
    color: #64748b;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: #eff6ff;
    color: #1335eb;
}

.mobile-nav-link:hover i:first-child,
.mobile-nav-link:focus i:first-child {
    color: #1335eb;
}

.mobile-nav-chevron {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
    width: auto !important;
    transition: transform 0.25s ease, color 0.18s ease !important;
}

.mobile-nav-collapse-toggle[aria-expanded="true"] .mobile-nav-chevron {
    transform: rotate(180deg);
    color: #1335eb !important;
}

/* Mobile Sub Menu */
.mobile-sub-menu {
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px;
    margin: 4px 0 8px 36px;
    border: 1px solid #e2e8f0;
}

.mobile-sub-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.mobile-sub-menu li a i {
    font-size: 1rem;
    color: #94a3b8;
    transition: color 0.18s ease;
}

.mobile-sub-menu li a:hover {
    background: #eff6ff;
    color: #1335eb;
}

.mobile-sub-menu li a:hover i {
    color: #1335eb;
}

/* Mobile Menu Footer Buttons */
.mobile-menu-footer {
    padding: 16px 12px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1335eb, #0f2bd4);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 14px rgba(19, 53, 235, 0.3);
}

.mobile-menu-btn-primary:hover {
    opacity: 0.92;
    color: #fff;
}

.mobile-menu-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #1335eb;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid #dbeafe;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-menu-btn-secondary:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #0f2ac0;
}

/* Success Stories Section */
.success-stories {
    /* padding: 80px 0; */
    background: #fff;
}

.case-study-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--border-radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Optional: adds subtle definition */
}

@media (min-width: 992px) {
    .case-study-card {
        flex-direction: row;
        align-items: stretch;
        min-height: 450px;
    }

    .case-study-content {
        width: 50%;
        padding: 60px 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .case-study-image {
        width: 50%;
        background-size: cover;
        background-position: center center;
        /* More explicit anchoring */
        background-repeat: no-repeat;
        min-height: 100%;
    }
}

.case-study-yellow {
    background-color: #fffbeb;
}

.case-study-blue {
    background-color: #e0f2fe;
}

.case-study-badge {
    display: inline-flex;
    align-items: center;
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
    letter-spacing: 0.2px;
}

.case-study-image {
    position: relative;
}

.case-study-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 53, 235, 0.25) 0%, rgba(15, 42, 192, 0.45) 100%);
    pointer-events: none;
}

.case-study-heading {
    font-size: var(--h2-size);
    /* Use consistent h2 size or maybe slightly smaller? User wants headers unified. var(--h2-size) should be fine or maybe 1.6rem override if needed. Let's stick to consistent h2 */
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: #000;
}

.case-study-text {
    color: #4b5563;
    margin-bottom: 2rem;
    font-size: var(--body-size);
    line-height: 1.8;
    opacity: 0.9;
}

.btn-link-arrow {
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border: 2px solid #0284c7;
    width: fit-content;
    transition: all 0.3s ease;
    color: #0284c7;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-link-arrow:hover {
    background: #0284c7;
    color: #fff;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .case-study-image {
        min-height: 300px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .case-study-content {
        padding: 40px 30px;
    }
}

/* Mobile Submenu Styles */

/* Footer Logo Specific Size */
.footer-bottom #logo-svg {
    width: 75px;
}

.footer #logo-svg .st0 {
    fill: #1335eb;
}
/* Partners Marquee */
.partners-outer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partners-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    z-index: 2;
}

.partners-arrow:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.partners-marquee-wrapper {
    flex: 1;
    overflow: hidden;
    direction: ltr;
}

.partners-track {
    display: flex;
    flex-direction: row-reverse;
    width: max-content;
    transition: transform 0.4s ease;
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: 120px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.partner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-item:hover .partner-logo {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .partner-item { width: 156px; height: 84px; padding: 0.5rem; }
    .partners-arrow { width: 32px; height: 32px; }
}
