@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

:root {
    --primary-teal: #2c7c88;
    --primary-hover: #1e565f;
    --text-dark: #222;
    --text-muted: #666;
    --font-main: 'Cairo', sans-serif;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    /* Force Cairo on all elements */
}

body {
    background-color: #fff;
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.top-bg-wrapper {
    position: relative;
    overflow-x: hidden;
}

.top-bg-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/back (1).png');
    background-position: center 0;
    background-repeat: no-repeat;
    background-size: 200%;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: 0.3s;
}

/* Floating Navbar */
.navbar-wrapper {
    padding-top: 20px;
    padding-bottom: 10px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

[dir="rtl"] .navbar {
    direction: rtl;
}

[dir="ltr"] .navbar {
    direction: ltr;
}

.logo a {
    font-weight: 700;
    font-size: 1.6rem;
    color: #8e448b;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    list-style: none;
}

.nav-links li a {
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-teal);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-flag {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.lang-flag img {
    width: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .btn-subscribe {
    background-color: #2F7482;
    color: white !important;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar .btn-subscribe:hover {
    background-color: #235d69;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 116, 130, 0.3);
}

/* Hero Section */
.hero {
    padding: 160px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 3.3rem;
    font-weight: 500;
    /* Set to 500 as requested */
    max-width: 1000px;
    margin: 0 auto 30px;
    line-height: 1.25;
}

.hero h1 span.teal {
    color: var(--primary-teal);
}

.hero p.description {
    max-width: 850px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 1.15rem;
    line-height: 1.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-solid {
    background-color: var(--primary-teal);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-solid:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 124, 136, 0.3);
}

.btn-outline {
    border: 1.5px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 124, 136, 0.2);
}

/* Tabs Section */
.tabs-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    background: rgba(220, 220, 220, 0.4);
    color: #555;
    transition: 0.3s;
}

.tab-btn.active {
    background: #f1f4f6;
    color: var(--primary-teal);
}

/* Showcase Card */
.showcase-container {
    display: none;
    /* Hide by default */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    padding: 60px;
    margin-bottom: 80px;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.showcase-container.active {
    display: grid;
    /* Show when active */
}

.showcase-container.hidden {
    display: none;
}

.showcase-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/back (2).png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    /* As requested */
    z-index: -1;
    pointer-events: none;
}

.card-preview {
    background: white;
    padding: 15px;
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

.card-preview img {
    border-radius: 15px;
    width: 100%;
    display: block;
}

.details-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.feature-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(44, 124, 136, 0.1);
    color: var(--primary-teal);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.feature-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.feature-text p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* RTL Specific Fixes */
[dir="rtl"] {
    text-align: right;
}

/* Mobile Toggle */
.nav-mobile-toggle {
    display: none;
    font-size: 1.4rem;
    color: var(--primary-teal);
    cursor: pointer;
}

/* Responsiveness */
@media (max-width: 1100px) {
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .showcase-container {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .nav-mobile-toggle {
        display: block;
    }

    .navbar {
        border-radius: 20px;
        padding: 10px 15px;
    }

    .nav-links {
        position: fixed;
        top: 85px;
        left: 5%;
        width: 90%;
        background: white;
        flex-direction: column;
        padding: 30px;
        border-radius: 25px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: 0.4s;
        z-index: 999;
        margin: 0;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-solid,
    .btn-outline {
        width: 100%;
        max-width: 320px;
    }

    .showcase-container {
        border-radius: 30px;
    }

    .details-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .details-content h2 {
        font-size: 1.5rem;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        min-width: 100px;
    }

    .btn-subscribe {
        display: none;
    }

    /* Hide subscribe button on very small screens to save space */
}

/* --- Dual Image Layout (New Requirement) --- */
.showcase-container.layout-modern {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
    /* Removed display: block !important here to allow hiding */
}

.showcase-container.layout-modern.active {
    display: block !important;
}

.showcase-container.layout-modern::before {
    display: none;
}

.dual-image-content {
    display: flex;
    flex-direction: row;
    /* Ensure row layout */
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding: 60px;
    border-radius: 40px;
    width: 100%;
    min-height: 500px;
    position: relative;
    box-shadow: var(--card-shadow);
    /* Ensure shadow is visible */
    transition: transform 0.3s ease;
    z-index: 10;
    /* Bring forward */
    overflow: hidden;
    background-color: var(--overlay-color, #f8f9fa);
    /* Main Background Color */
}

.dual-image-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-img, none);
    /* Image becomes the overlay pattern */
    background-size: cover !important;
    background-repeat: no-repeat;
    background-position: topa;
    opacity: var(--overlay-opacity, 0.1);
    /* Opacity controls the PATTERN visibility */
    z-index: -1;
    border-radius: 40px;
    mix-blend-mode: multiply;
    /* Blend pattern onto color */
}

/* .dual-image-content:hover {
    transform: translateY(-5px);
} */

.dual-img-wrapper {
    flex: 1;
    max-width: 35%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dual-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.dual-img-wrapper:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.dual-img-wrapper.left-img:hover {
    transform: scale(1.05) rotate(-1deg);
}

.placeholder-box {
    height: 300px;
    background: #dde1e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 600;
    border: 2px dashed #bbb;
    border-radius: 20px;
}

/* Response */
@media (max-width: 992px) {
    .dual-image-content {
        flex-direction: column;
        padding: 40px;
        gap: 20px;
    }


    .dual-img-wrapper {
        max-width: 100%;
        width: 100%;
    }
}

/* ========================================
   Partners Section - 3rd Section
   ======================================== */
.partners-section {
    margin-top: 100px;
    margin-bottom: 80px;
}

/* Partners Section Main Card */
.partners-section {
    margin-top: 100px;
    margin-bottom: 80px;
}

.partners-inner-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 40px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    min-height: 650px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

/* Content Layout */
.partners-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* RTL: Text on right, Logos on left */
[dir="rtl"] .partners-content {
    flex-direction: row;
}

/* LTR: Text on left, Logos on right */
[dir="ltr"] .partners-content {
    flex-direction: row;
}

/* Logo Columns Container - 4 columns */
.partners-logos {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-height: 624px;
    overflow: hidden;
    position: relative;
}

/* Individual Column */
.partners-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Window for Staircase Clipping Effect */
.column-window {
    overflow: hidden;
    position: relative;
    /* Base height for calculation: ~120px per row including gap */
}

/* Progressive window heights for "staircase" effect - Increased by 30% */
.column-window:nth-child(1) {
    height: 156px;
}

/* 1 Row */
.column-window:nth-child(2) {
    height: 312px;
}

/* 2 Rows */
.column-window:nth-child(3) {
    height: 468px;
}

/* 3 Rows */
.column-window:nth-child(4) {
    height: 624px;
}

/* 4 Rows */

/* Individual Column Animation Speeds and Delays */
.partners-column:nth-child(1) {
    animation-duration: 30s;
    animation-delay: -5s;
}

.partners-column:nth-child(2) {
    animation-duration: 24s;
    animation-delay: -12s;
}

.partners-column:nth-child(3) {
    animation-duration: 18s;
    animation-delay: -8s;
}

.partners-column:nth-child(4) {
    animation-duration: 12s;
    animation-delay: -3s;
}

/* Scroll Down Animation */
.partners-column[data-direction="down"] {
    animation-name: scrollDown;
}

/* Scroll Up Animation */
.partners-column[data-direction="up"] {
    animation-name: scrollUp;
}

/* Logo Item - No grayscale, colorful from start */
.partner-logo-item {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.partner-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-teal);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    /* Removed grayscale - logos are colorful from start */
    opacity: 1;
    transition: all 0.3s ease;
}

.partner-logo-item:hover img {
    /* Just scale on hover */
    transform: scale(1.05);
}

/* Text Content */
.partners-text {
    text-align: right;
    min-width: 320px;
    flex-shrink: 0;
}

[dir="ltr"] .partners-text {
    text-align: left;
}

.partners-badge {
    display: inline-block;
    padding: 8px 30px;
    border: 2px solid var(--primary-teal);
    border-radius: 50px;
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.partners-badge:hover {
    background: var(--primary-teal);
    color: white;
}

.partners-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
}

/* Background Pattern */
.partners-bg-pattern {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

[dir="ltr"] .partners-bg-pattern {
    right: auto;
    left: 0;
    transform: scaleX(-1);
}

.partners-bg-pattern img {
    width: 100%;
    display: block;
}

/* Animations */
@keyframes scrollDown {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-75%);
    }
}

@keyframes scrollUp {
    0% {
        transform: translateY(-75%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Inspiration Section */
.inspiration-section {
    padding: 100px 0;
    background-color: #F5F5F5;
    position: relative;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
}

.inspiration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/back (2).png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

/* Background Patterns matching the design */
.insp-bg-pattern {
    position: absolute;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.insp-bg-pattern.top-left {
    top: 0;
    left: 0;
}

.insp-bg-pattern.bottom-right {
    bottom: 0;
    right: 0;
}

.inspiration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

/* English: Badge on left, Link on right */
[dir="ltr"] .inspiration-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .inspiration-header {
    flex-direction: row-reverse;
}

/* Ensure arrow is on the start (left) of the text in Arabic */
[dir="rtl"] .portfolio-link {
    flex-direction: row-reverse;
}

/* For English: Arrow on the right, pointing right */
[dir="ltr"] .portfolio-link {
    flex-direction: row-reverse;
}

[dir="ltr"] .portfolio-link i {
    transform: rotate(180deg);
}

.inspiration-badge {
    padding: 10px 40px;
    border: 1.5px solid var(--primary-teal);
    border-radius: 50px;
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
}

.portfolio-link {
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.portfolio-link:hover {
    gap: 18px;
    opacity: 0.8;
}

.inspiration-title {
    font-size: 3.5rem;
    font-weight: 500;
    text-align: right;
    color: #1a1a1a;
    line-height: 1.2;
    font-family: 'Cairo', sans-serif;
}

[dir="ltr"] .inspiration-title {
    text-align: left;
}

.inspiration-grid-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 50px;
}

[dir="ltr"] .inspiration-grid-wrapper {
    grid-template-columns: 200px 1fr;
}

/* In RTL grid, the first column is on the right. In LTR, it is on the left.
   This puts the 150px column always on the 'start' side. */

.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.inspiration-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    aspect-ratio: 1/1;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.inspiration-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    border-color: #f0f7f8;
}

.inspiration-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
}

.inspiration-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}


.inspiration-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 50px;
}

.insp-cat-btn {
    padding: 12px 15px;
    border-radius: 35px;
    border: none;
    background: transparent;
    color: #888;
    text-align: right;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

[dir="ltr"] .insp-cat-btn {
    text-align: left;
}

.insp-cat-btn:hover {
    color: var(--primary-teal);
}

.insp-cat-btn.active {
    background-color: #2c7c88;
    color: #fff;
    box-shadow: 0 10px 25px rgba(44, 124, 136, 0.3);
}

.placeholder-card {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-weight: 500;
    border-radius: 30px;
}

.insp-bg-pattern {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    /* opacity: 0.15; */
}

.insp-bg-pattern img {
    width: 100%;
    height: auto;
}

.insp-bg-pattern.top-left {
    top: 20px;
    left: 20px;
}

.insp-bg-pattern.bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .inspiration-title {
        font-size: 3rem;
    }

    .inspiration-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .inspiration-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .inspiration-categories {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
        order: -1;
        justify-content: center;
    }

    .insp-cat-btn {
        padding: 12px 20px;
        font-size: 1rem;
        text-align: center;
    }

    .insp-cat-btn.active {
        transform: none;
    }

    .inspiration-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .inspiration-title {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .inspiration-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .inspiration-title {
        font-size: 2.22rem;
    }

    .inspiration-section {
        padding: 60px 0;
    }

    .inspiration-header {
        flex-direction: column-reverse;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .portfolio-link {
        font-size: 1rem;
    }

    .inspiration-badge {
        padding: 8px 30px;
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .partners-content {
        flex-direction: column !important;
        /* Text on top */
        gap: 40px;
    }

    .partners-text {
        text-align: center !important;
        min-width: auto;
        width: 100%;
        margin-bottom: 20px;
    }

    .partners-logos {
        grid-template-columns: repeat(4, 1fr);
        max-height: 400px;
        width: 100%;
        gap: 15px;
    }

    .partners-title {
        font-size: 2.2rem;
    }

    .partners-inner-card {
        padding: 40px;
        min-height: auto;
    }

    .column-window:nth-child(1) {
        height: 100px;
    }

    .column-window:nth-child(2) {
        height: 200px;
    }

    .column-window:nth-child(3) {
        height: 300px;
    }

    .column-window:nth-child(4) {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .partners-inner-card {
        padding: 35px 20px;
        border-radius: 30px;
    }

    .partners-logos {
        grid-template-columns: repeat(4, 1fr);
        /* Beside each other on mobile */
        gap: 10px;
        max-height: 350px;
    }

    .column-window:nth-child(1) {
        height: 80px;
    }

    .column-window:nth-child(2) {
        height: 160px;
    }

    .column-window:nth-child(3) {
        height: 240px;
    }

    .column-window:nth-child(4) {
        height: 320px;
    }

    .partners-title {
        font-size: 1.8rem;
    }

    .partner-logo-item {
        padding: 10px;
        min-height: 60px;
        border-radius: 12px;
    }

    .partner-logo-item img {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .partners-logos {
        grid-template-columns: repeat(4, 1fr);
        /* Beside each other on small mobile */
        gap: 8px;
        max-height: 300px;
    }

    .column-window:nth-child(1) {
        height: 60px;
    }

    .column-window:nth-child(2) {
        height: 120px;
    }

    .column-window:nth-child(3) {
        height: 180px;
    }

    .column-window:nth-child(4) {
        height: 240px;
    }

    .partners-title {
        font-size: 1.6rem;
    }

    .partners-badge {
        font-size: 0.75rem;
    }
}

/* ========================================
   Cards Library Section
   ======================================== */
.library-section {
    padding: 100px 0;
    background: #fff;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    /* Hides cards that expand past the edge of the screen */
}

.library-inner {
    position: relative;
    z-index: 10;
}


[dir="rtl"] .library-header {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

[dir="ltr"] .library-header {
    text-align: left;
    margin-right: auto;
    margin-left: 0;
}

.library-badge {
    background: rgba(44, 124, 136, 0.1);
    color: var(--primary-teal);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.library-intro {
    font-size: 32px;
    line-height: 1.6;
    color: #AAA;
    font-weight: 500;
    margin: 0;
}

.library-intro span {
    color: #2F7482;
    font-weight: 600;
}

[dir="rtl"] .library-intro {
    font-family: 'Cairo', sans-serif;
}

/* Fan Effect */
.cards-fan-wrapper {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    /* align-items: flex-end; */
    /* margin-top: 50px; */
    perspective: 1500px;
}

.cards-fan {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
}

.fan-card-container {
    position: absolute;
    width: 220px;
    height: 220px;
    transform-origin: center bottom;
    will-change: transform;
}

.fan-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    /* Ultra-slow, premium transition */
    transition: transform 1.2s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 1s ease;
    border: 3px solid #fff;
    will-change: transform;

    /* Apply expansion animation - snappier loop */
    animation: expandFan 3.5s ease-in-out infinite alternate;
}

/* Different delays for natural feel */
.fan-card-container[style*="--i: 1"] .fan-card {
    animation-delay: 0s;
}

.fan-card-container[style*="--i: 2"] .fan-card {
    animation-delay: 0.5s;
}

.fan-card-container[style*="--i: 3"] .fan-card {
    animation-delay: 1.2s;
}

.fan-card-container[style*="--i: 4"] .fan-card {
    animation-delay: 0.8s;
}

.fan-card-container[style*="--i: 5"] .fan-card {
    animation-delay: 1.5s;
}

.fan-card-container[style*="--i: 6"] .fan-card {
    animation-delay: 0.3s;
}

.fan-card-container[style*="--i: 7"] .fan-card {
    animation-delay: 1s;
}

@keyframes expandFan {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Right cards move Right, Left cards move Left */
        transform: translateX(calc((4 - var(--i)) * 40px));
    }
}

/* Fan Calculation Logic - Right-to-Left Stack (Index 1 is Rightmost and Top) */
.fan-card-container[style*="--i: 1"] {
    transform: translateX(330px) rotate(18deg);
    z-index: 10;
}

.fan-card-container[style*="--i: 2"] {
    transform: translateX(220px) rotate(12deg);
    z-index: 9;
}

.fan-card-container[style*="--i: 3"] {
    transform: translateX(110px) rotate(6deg);
    z-index: 8;
}

.fan-card-container[style*="--i: 4"] {
    transform: translateX(0) rotate(0deg);
    z-index: 7;
}

.fan-card-container[style*="--i: 5"] {
    transform: translateX(-110px) rotate(-6deg);
    z-index: 6;
}

.fan-card-container[style*="--i: 6"] {
    transform: translateX(-220px) rotate(-12deg);
    z-index: 5;
}

.fan-card-container[style*="--i: 7"] {
    transform: translateX(-330px) rotate(-18deg);
    z-index: 4;
}



.fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
    /* Synchronized ultra-slow image zoom */
    transition: transform 1.2s cubic-bezier(0.33, 1, 0.68, 1), filter 0.8s ease;
}



/* Responsive */
@media (max-width: 1024px) {
    .fan-card-container {
        width: 170px;
        height: 240px;
    }

    .fan-card-container[style*="--i: 1"] {
        transform: translateX(-210px) rotate(-15deg);
    }

    .fan-card-container[style*="--i: 2"] {
        transform: translateX(-140px) rotate(-10deg);
    }

    .fan-card-container[style*="--i: 3"] {
        transform: translateX(-70px) rotate(-5deg);
    }

    /* Center card (index 4) has no transform on X in responsive */
    .fan-card-container[style*="--i: 4"] {
        transform: translateX(0) rotate(0);
    }

    .fan-card-container[style*="--i: 5"] {
        transform: translateX(70px) rotate(5deg);
    }

    .fan-card-container[style*="--i: 6"] {
        transform: translateX(140px) rotate(10deg);
    }

    .fan-card-container[style*="--i: 7"] {
        transform: translateX(210px) rotate(15deg);
    }

    .cards-fan-wrapper {
        height: 500px;
    }

    .library-intro {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .library-section {
        padding: 60px 0;
        text-align: center;
    }

    [dir="rtl"] .library-header,
    [dir="ltr"] .library-header {
        text-align: center;
        margin: 0 auto 40px;
    }

    .library-intro {
        font-size: 1.6rem;
        line-height: 1.5;
        padding: 0;
    }

    .cards-fan-wrapper {
        height: auto;
        padding: 0 20px;
        display: block;
    }

    .cards-fan {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        position: static;
        transform: none;
    }

    .fan-card-container {
        position: static;
        width: 100%;
        height: auto;
        transform: none !important;
    }

    .fan-card {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        /* Match the square desktop style */
        transform: none !important;
        animation: none;
        margin-bottom: 0;
        border-width: 2px;
        border-radius: 20px;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 480px) {
    .library-intro {
        font-size: 1.4rem;
    }

    .cards-fan {
        gap: 10px;
    }

    .fan-card {
        border-radius: 15px;
    }
}

/* --- Design Journey Section Styles --- */
.journey-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-top: 2px solid #F5F5F5;
    border-bottom: 2px solid #F5F5F5;
}

.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/back (2).png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.journey-header {
    margin-bottom: 60px;
}

[dir="rtl"] .journey-header {
    text-align: right;
}

[dir="ltr"] .journey-header {
    text-align: left;
}

.journey-badge {
    display: inline-block;
    padding: 6px 25px;
    border: 1.5px solid #2F7482;
    /* Updated to teal */
    border-radius: 50px;
    color: #2F7482;
    /* Updated to teal */
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 20px;
    background: #fff;
}

.journey-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 20px;
}

.journey-subtitle {
    max-width: 800px;
    color: #777;
    font-size: 1.1rem;
    line-height: 1.8;
}

.journey-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 20px;
}

.journey-card {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.j-card-main {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1.5px solid #f5f5f5;
    transition: all 0.4s ease;
}

.journey-card:hover .j-card-main {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.j-card-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: ltr !important;
    /* Forces logo on left, more-icon on right */
}

.j-card-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.j-user-logo {
    width: 25px;
    height: 25px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}

.j-user-logo img {
    width: 100%;
    height: auto;
}

.j-user-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.2;
    font-family: 'Cairo', sans-serif;
    text-align: left;
}

.j-user-loc {
    display: block;
    font-size: 0.9rem;
    color: #808080;
    margin-top: 2px;
    font-family: 'Cairo', sans-serif;
    font-weight: 400;
}

.j-card-more {
    color: #ddd;
    cursor: pointer;
    font-size: 1.1rem;
}

.j-card-body {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fafafa;
}

.j-card-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.j-card-actions {
    padding: 15px 24px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #222;
    direction: ltr !important;
}

.j-actions-left {
    display: flex;
    gap: 15px;
    font-size: 1.15rem;
    /* Reduced size */
}

.j-actions-left i {
    cursor: pointer;
    transition: 0.2s ease;
    color: #797596;
    /* Requested icon color */
}

.j-actions-left .fa-heart {
    color: #e74c3c;
    /* Red heart requested */
}

.j-actions-left i:hover {
    transform: scale(1.1);
}

.j-actions-right {
    font-size: 1.15rem;
    /* Reduced size */
    color: #797596;
    /* Requested icon color */
}



.j-card-footer {
    padding: 20px 0 0;
    /* Padding relative to the outside */
    background: transparent;
}

.j-card-footer p {
    font-size: 1.1rem;
    color: #808080;
    /* Default grey color requested */
    line-height: 1.6;
    margin: 0;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.j-card-footer p .teal-word {
    color: #2F7482;
    /* Highlight teal color requested */
}

/* Responsive */
@media (max-width: 1100px) {
    .journey-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .journey-cards {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 550px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .journey-section {
        padding: 50px 0;
    }

    [dir="rtl"] .journey-header,
    [dir="ltr"] .journey-header {
        text-align: center;
    }

    .journey-title {
        font-size: 1.8rem;
    }

    .journey-subtitle {
        margin: 0 auto;
        font-size: 1rem;
    }

    .journey-cards {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .journey-card:nth-child(1) {
        max-width: 100%;
        margin: 0;
    }

    .j-card-footer {
        padding: 15px 5px 0;
    }

    .j-card-footer p {
        text-align: center !important;
        font-size: 1rem;
    }
}


/* ================================================
   Blog Articles Accordion Slider Section
   ================================================ */

.blog-accordion-section {
    padding: 80px 0 60px;
    position: relative;
}

/* ---------- Section Header ---------- */
.blog-acc-header {
    margin-bottom: 36px;
}

/* Top row: badge on one end, nav arrows on the other — same line */
.blog-acc-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

/* RTL (Arabic): badge naturally appears on the RIGHT (flex-start in RTL = right),
   nav buttons appear on the LEFT (flex-end in RTL = left). No overrides needed. */

/* LTR (English): badge goes to the LEFT, nav buttons go to the RIGHT.
   We reverse the order by changing flex-direction so LTR behaves like design. */
[dir="ltr"] .blog-acc-top-row {
    flex-direction: row-reverse;
    /* badge on left (visually last in HTML → first visual in row-reverse) */
}

.blog-acc-badge {
    display: inline-block;
    padding: 7px 28px;
    border: 2px solid var(--primary-teal);
    border-radius: 50px;
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Full-width title below badge+nav row */
.blog-acc-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    margin: 0;
    text-align: right;
    /* RTL */
}

[dir="ltr"] .blog-acc-title {
    text-align: left;
}

/* ---------- Navigation Buttons ---------- */
.blog-acc-nav-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    /* Force LTR physical order for buttons regardless of page direction.
       This ensures < is always visually on the LEFT and > always on the RIGHT. */
    direction: ltr;
}

.blog-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #d0d0d0;
    background: #fff;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.blog-nav-btn:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    background: rgba(44, 124, 136, 0.06);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(44, 124, 136, 0.15);
}

/* ---------- Accordion Track ---------- */
.blog-acc-track-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.blog-acc-track {
    display: flex;
    gap: 12px;
    align-items: stretch;
    height: 380px;
}

/* ---------- Each Card ---------- */
.blog-acc-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;

    /* Compressed default width */
    width: 85px;
    flex-grow: 0;

    /* Optimized for snappiness: 0.3s duration, simple ease-out, hardware acceleration */
    transition:
        flex-grow 0.3s ease-out,
        box-shadow 0.3s ease,
        transform 0.3s ease;

    /* Hardware acceleration and rendering isolation */
    will-change: flex-grow, transform;
    transform: scale(0.97) translateZ(0);
    backface-visibility: hidden;
    contain: paint;
    /* Massive performance win: isolates paint operations */

    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Active (expanded) card */
.blog-acc-card.is-active {
    flex-grow: 1;
    /* width: auto; removed to let flex-grow handle it entirely */
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    transform: scale(1) translateZ(0);
}

/* ---------- Photo dark base overlay (always visible, ensures readability) ---------- */
.blog-acc-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 30, 0.45);
    /* simpler solid color with opacity instead of complex gradient */
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.blog-acc-card.is-active .blog-acc-photo-overlay {
    background: linear-gradient(160deg,
            rgba(3, 5, 30, 0.45) 0%,
            rgba(10, 10, 60, 0.25) 40%,
            rgba(3, 5, 30, 0.55) 100%);
}

/* Bottom gradient overlay for text readability */
.blog-acc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            transparent 65%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.35s ease;
}

/* ---------- Compressed label (vertical text) ---------- */
.blog-acc-card-compressed-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(0);
}

.blog-acc-card-compressed-label span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hide compressed label when active */
.blog-acc-card.is-active .blog-acc-card-compressed-label {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

/* ---------- Expanded Content ---------- */
.blog-acc-card-expanded {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    padding: 22px 24px;
    opacity: 0;
    pointer-events: none;
    /* Simplified to just opacity for maximum speed during layout change */
    transition: opacity 0.25s ease;
}

.blog-acc-card.is-active .blog-acc-card-expanded {
    opacity: 1;
    pointer-events: auto;
}

/* Top row: category tag + badge pill */
.blog-acc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    direction: ltr;
    /* always LTR inside card top for consistent layout */
}

[dir="rtl"] .blog-acc-card-top {
    direction: rtl;
    flex-direction: row-reverse;
}

.blog-acc-cat-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.blog-acc-badge-pill {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 3px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    /* simpler background instead of blur */
}

/* Middle: text info pushed to bottom */
.blog-acc-card-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.blog-acc-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-acc-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.68);
}

[dir="rtl"] .blog-acc-date {
    text-align: right;
}

[dir="ltr"] .blog-acc-date {
    text-align: left;
}

.blog-acc-art-title {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.blog-acc-counter {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Bottom: read link */
.blog-acc-card-bottom {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-acc-read-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease, gap 0.2s ease;
}

/* RTL: link text on right, chevron on left */
[dir="rtl"] .blog-acc-read-link {
    flex-direction: row-reverse;
}

/* LTR: use right-facing chevron */
[dir="ltr"] .blog-acc-read-link .fa-chevron-left::before {
    content: "\f054";
    /* fa-chevron-right */
}

.blog-acc-read-link:hover {
    color: #fff;
    gap: 11px;
}

/* ---------- Dot Navigation ---------- */
.blog-acc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.blog-acc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-acc-dot.is-active {
    background: var(--primary-teal);
    width: 32px;
    border-radius: 4px;
}

/* ================================================
   Responsive – Blog Accordion
   ================================================ */

@media (max-width: 992px) {
    .blog-acc-track {
        height: 340px;
    }

    .blog-acc-card {
        width: 72px;
    }
}

@media (max-width: 768px) {
    .blog-acc-track {
        height: 300px;
        gap: 10px;
    }

    .blog-acc-card {
        width: 58px;
    }

    .blog-acc-card-compressed-label span {
        font-size: 0.76rem;
    }

    .blog-acc-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .blog-acc-track {
        height: auto;
        flex-direction: column;
        gap: 8px;
    }

    /* Mobile: stack cards vertically — compressed = short horizontal strip */
    .blog-acc-card {
        width: 100% !important;
        height: 52px;
        border-radius: 14px;
        flex-shrink: 0;
        flex-grow: 0;
        transform: scale(1);
        /* no scale on mobile */
    }

    .blog-acc-card.is-active {
        height: 220px;
        flex-grow: 0;
    }

    .blog-acc-card-compressed-label span {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.85rem;
    }

    .blog-acc-top-row {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ========================================
   Pricing Plans Section
   ======================================== */
.pricing-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: #fff;
}

.pricing-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/back (2).png");
    background-size: cover;
    background-position: center;
    opacity: 0.30;
    z-index: 0;
    pointer-events: none;
}

.pricing-section .container {
    position: relative;
    z-index: 2;
}

.pricing-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.pricing-badge-wrapper {
    margin-bottom: 20px;
}

.pricing-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 24px;
    border-radius: 100px;
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.pricing-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}

.pricing-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Pricing Cards Grid */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: flex-end;
    /* Align side cards to bottom */
    padding-top: 40px;
}

.pricing-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    position: relative;
    height: fit-content;
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* Header Banner */
.p-card-header {
    padding: 12px 20px;
    text-align: center;
    color: #fff !important;
    /* Force white */
    font-weight: 700;
    font-size: 1.1rem;
}

.p-card-body {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Illustration Area */
.p-illustration {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-illustration img {
    width: 65%;
    height: auto;
    position: relative;
    z-index: 2;
}

.p-deco {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    background: #f1f5f9;
    opacity: 0.5;
}

.circle-1 {
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(241, 245, 249, 1) 0%, rgba(241, 245, 249, 0) 70%);
}

.circle-2 {
    width: 100px;
    height: 100px;
    top: 10px;
    right: -10px;
    background: #fff1e5;
}

[dir="rtl"] .circle-2 {
    right: auto;
    left: -10px;
}

/* Price Section */
.p-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #1e293b;
}

.p-price .amount {
    font-size: 3.8rem;
    font-weight: 800;
    color: inherit;
    line-height: 1;
    font-family: var(--font-main);
}

.currency-svg {
    width: 32px;
    height: auto;
    display: block;
    opacity: 0.9;
}

[dir="rtl"] .currency-svg {
    margin-right: 2px;
}

.p-note {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Features List */
.p-features-intro {
    width: 100%;
    text-align: right;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.p-features-intro::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: #f1f5f9;
    border-bottom: 1px dashed #cbd5e1;
}

[dir="ltr"] .p-features-intro {
    text-align: left;
}

.p-features-list {
    list-style: none !important;
    padding: 0;
    margin: 0 0 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 1rem;
    text-align: right;
}

[dir="ltr"] .p-features-list li {
    text-align: left;
}

.p-features-list li i {
    color: #22c55e;
    font-size: 1.2rem;
}

/* Action Button */
.p-action {
    width: 100%;
}

.btn-subscribe {
    display: inline-block;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    color: #fff !important;
    /* Force white text visibility */
    cursor: pointer;
}

.btn-primary {
    background: #2c7c88 !important;
}

.btn-primary:hover {
    background: #23616a !important;
    transform: scale(1.02);
}

.btn-outline {
    background: #fff !important;
    color: #2c7c88 !important;
    border: 1px solid #2c7c88 !important;
}

.btn-outline:hover {
    background: #f0fdfa !important;
    color: #1b4e55 !important;
    border-color: #1b4e55 !important;
    transform: scale(1.02);
}

/* Featured (Middle) Card Scale & Elevation */
.pricing-card.featured {
    transform: scale(1.08) translateY(-40px);
    /* Lift above others */
    z-index: 10;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.pricing-card.featured:hover {
    transform: scale(1.1) translateY(-50px);
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-cards {
        gap: 20px;
    }

    .pricing-title {
        font-size: 2.22rem;
    }
}

@media (max-width: 991px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
        align-items: center;
        /* Center horizontally in vertical stack */
    }

    .pricing-card.featured {
        transform: scale(1.05);
        margin: 20px 0;
        order: -1;
    }

    .pricing-card.featured:hover {
        transform: scale(1.07) translateY(-5px);
    }
}

/* ========================================
   Rich Footer Section
   ======================================== */
/* ========================================
   Rich Footer Section
   ======================================== */
.main-footer {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #F4F4F5;
}

.footer-bg-wrapper {
    position: relative;
    padding: 80px 0 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/back (2).png");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Subtler texture */
    z-index: 1;
    pointer-events: none;
}

.f-pattern {
    position: absolute;
    bottom: 0;
    width: 35%;
    max-width: 450px;
    z-index: 2;
    opacity: 1;
}

.f-pattern-left {
    left: 0;
}

.f-pattern-right {
    right: 0;
}

/* Floating Cards Gallery (Background Layer) */
.floating-cards-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.f-card {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    width: 110px;
    height: auto;
    object-fit: cover;
    opacity: 0.8;
}

/* Side Cards: 3 on each side, no rotation */
.f-card {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    width: 110px;
    height: auto;
    object-fit: cover;
    opacity: 1;
    /* Fixed pale colors */
    animation: floatYSecondary 2s ease-in-out infinite alternate;
}

.f-card-1 {
    top: 30%;
    left: 5%;
    width: 85px;
    animation-delay: 0s;
}

.f-card-2 {
    top: 45%;
    left: 10%;
    width: 100px;
    animation-delay: 0.4s;
}

.f-card-3 {
    top: 60%;
    left: 18%;
    width: 110px;
    animation-delay: 0.8s;
}

.f-card-4 {
    top: 30%;
    right: 5%;
    width: 100px;
    animation-delay: 0.2s;
}

.f-card-5 {
    top: 45%;
    right: 12%;
    width: 95px;
    animation-delay: 0.6s;
}

.f-card-6 {
    top: 60%;
    right: 20%;
    width: 105px;
    animation-delay: 1s;
}

/* Sound Wave Decoration */
.f-sound-wave {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.f-sound-wave span {
    display: block;
    width: 4px;
    background: #2c7c88;
    border-radius: 10px;
    animation: waveHeight 2s ease-in-out infinite alternate;
}

@keyframes waveHeight {
    from {
        height: 10px;
    }

    to {
        height: 25px;
    }
}

.f-sound-wave span:nth-child(2) {
    animation-delay: 0.2s;
    height: 35px;
}

.f-sound-wave span:nth-child(3) {
    animation-delay: 0.4s;
    height: 20px;
}

.f-sound-wave span:nth-child(4) {
    animation-delay: 0.6s;
    height: 15px;
}

@keyframes floatYPrimary {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

@keyframes floatYSecondary {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-35px);
    }
}

.f-sw-1 {
    top: 30%;
    left: 28%;
}

.f-sw-2 {
    top: 50%;
    right: 32%;
}

/* Footer Content Area */
.footer-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
}

.f-cta-area {
    margin-bottom: 40px;
}

.f-cta-title {
    font-size: 2.8rem;
    font-weight: 400;
    /* As requested */
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.f-cta-subtitle {
    color: #64748b;
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-footer-design {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #2c7c88;
    color: #fff !important;
    padding: 16px 45px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 10px 25px rgba(44, 124, 136, 0.2);
    transition: all 0.3s ease;
}

.btn-footer-design:hover {
    transform: translateY(-5px);
    background: #23616a;
    box-shadow: 0 15px 30px rgba(44, 124, 136, 0.3);
}

/* Center 3 Cards Stack */
.f-card-center-stack {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 60px;
    position: relative;
    height: 320px;
}

.f-stack-main {
    width: 280px;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    z-index: 5;
    position: relative;
    background: #fff;
    animation: floatYPrimary 2s ease-in-out infinite alternate;
}

.f-stack-side {
    width: 180px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    opacity: 1;
    /* Fixed pale colors */
    z-index: 4;
    animation: floatYSecondary 2s ease-in-out infinite alternate;
}

.f-stack-left {
    margin-right: -60px;
    margin-bottom: -20px;
    margin-left: -60px;
    animation-delay: 0.3s;
}

.f-stack-right {
    margin-left: -60px;
    margin-bottom: -20px;
    margin-right: -60px;
    animation-delay: 0.7s;
}

/* Bottom Navigation Area */
.f-bottom-area {
    width: 100%;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.f-bottom-nav {
    padding: 25px 0;
}

.f-nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 45px;
}

.f-nav-links a {
    color: #808080;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

.f-nav-links a:hover,
.f-nav-links a.active {
    color: #2F7482;
}

.f-copyright {
    padding-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    color: #64748b;
}

.TQNIA-name {
    color: #2c7c88;
    font-weight: 800;
}

.dev-by {
    font-weight: 600;
}

/* Responsive Footer Overlay Fixes */
@media (max-width: 1199px) {
    .f-sw-1 {
        left: 20%;
    }

    .f-sw-2 {
        right: 25%;
    }
}

@media (max-width: 991px) {
    .f-card {
        display: none;
    }

    .f-cta-title {
        font-size: 2.2rem;
    }

    .f-card-center {
        width: 220px;
    }

    .f-nav-links {
        gap: 20px;
    }

    .f-sw-1,
    .f-sw-2 {
        display: none;
    }
}

@media (max-width: 768px) {
    .f-nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .f-copyright {
        flex-direction: column;
        gap: 8px;
    }

    .f-cta-title {
        font-size: 1.8rem;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: wa-bounce 2s infinite;
}

[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 30px;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    animation: none;
    color: #fff;
}

@keyframes wa-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}