/* Banner and home promotion styles (1) */
.video-banner {
        padding-top: 100px; padding-bottom: 100px;
        text-align: center;
    }
    .video-banner__lite {
        position: relative;
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
        background: #000;
    }
    .video-banner__play {
        position: relative;
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .video-banner__play img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
    .video-banner__media-video,
    .video-banner__lite iframe {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border: 0;
    }

    .home-exam-prep {
        position: relative;
        margin: clamp(26px, 5vw, 62px) 0 clamp(28px, 5vw, 70px);
        isolation: isolate;
    }
    .home-exam-prep::before {
        content: "";
        position: absolute;
        inset-inline: 8%;
        top: 18%;
        bottom: 10%;
        z-index: -1;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(214, 0, 0, 0.08), transparent 66%);
        filter: blur(18px);
    }
    .home-exam-prep__card {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
        gap: clamp(24px, 4vw, 54px);
        align-items: center;
        overflow: hidden;
        padding: clamp(26px, 5vw, 58px);
        border: 1px solid rgba(214, 0, 0, 0.1);
        border-radius: 34px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 247, 0.96)),
            radial-gradient(circle at 90% 12%, rgba(214, 0, 0, 0.09), transparent 34%),
            radial-gradient(circle at 12% 86%, rgba(255, 214, 120, 0.22), transparent 38%);
        box-shadow: 0 22px 55px rgba(55, 24, 24, 0.1);
        color: #222;
    }
    .home-exam-prep__card::after {
        content: "";
        position: absolute;
        inset: 1px;
        pointer-events: none;
        border-radius: 33px;
        background: linear-gradient(120deg, rgba(214, 0, 0, 0.06), transparent 38%, rgba(255, 214, 120, 0.12));
        opacity: 0.9;
    }
    .home-exam-prep__content,
    .home-exam-prep__visual {
        position: relative;
        z-index: 1;
    }
    .home-exam-prep__kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: max-content;
        max-width: 100%;
        margin-bottom: 16px;
        padding: 8px 14px;
        border: 1px solid rgba(214, 0, 0, 0.14);
        border-radius: 999px;
        background: rgba(214, 0, 0, 0.06);
        color: #d60000;
        font-size: 0.88rem;
        font-weight: 800;
        letter-spacing: 0.04em;
    }
    .home-exam-prep__kicker::before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #d60000;
        box-shadow: 0 0 16px rgba(214, 0, 0, 0.45);
    }
    .home-exam-prep__title {
        max-width: 760px;
        margin: 0;
        color: #171717;
        font-size: clamp(1.9rem, 4.2vw, 3.65rem);
        line-height: 1.1;
        font-weight: 950;
        letter-spacing: -0.04em;
    }
    .home-exam-prep__text {
        max-width: 650px;
        margin: 18px 0 0;
        color: #5c5c5c;
        font-size: clamp(1rem, 1.6vw, 1.18rem);
        line-height: 1.8;
    }
    .home-exam-prep__chips {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 24px;
    }
    .home-exam-prep__chips span {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 8px 14px;
        border: 1px solid rgba(214, 0, 0, 0.1);
        border-radius: 999px;
        background: #fff;
        color: #343434;
        box-shadow: 0 10px 22px rgba(55, 24, 24, 0.06);
        font-size: 0.95rem;
        font-weight: 700;
    }
    .home-exam-prep__cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 52px;
        margin-top: 30px;
        padding-inline: 26px;
        box-shadow: 0 14px 30px rgba(214, 0, 0, 0.18);
        text-decoration: none;
    }
    .home-exam-prep__cta:hover {
        text-decoration: none;
        transform: translateY(-1px);
    }
    .home-exam-prep__cta-icon {
        font-size: 1.25rem;
    }
    [dir="rtl"] .home-exam-prep__cta-icon {
        transform: scaleX(-1);
    }
    .home-exam-prep__visual {
        min-height: 360px;
        display: grid;
        place-items: center;
    }
    .home-exam-prep__orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(2px);
        opacity: 0.75;
    }
    .home-exam-prep__orb--one {
        width: 170px;
        height: 170px;
        inset-inline-start: 0;
        top: 8%;
        background: radial-gradient(circle, rgba(255, 214, 120, 0.42), transparent 68%);
    }
    .home-exam-prep__orb--two {
        width: 220px;
        height: 220px;
        inset-inline-end: -24px;
        bottom: -18px;
        background: radial-gradient(circle, rgba(214, 0, 0, 0.16), transparent 70%);
    }
    .home-exam-prep__mockup {
        position: relative;
        width: min(100%, 390px);
        padding: 18px;
        border: 1px solid rgba(214, 0, 0, 0.1);
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 18px 45px rgba(55, 24, 24, 0.12);
        backdrop-filter: blur(10px);
    }
    .home-exam-prep__mockup-head,
    .home-exam-prep__task-card,
    .home-exam-prep__level-row,
    .home-exam-prep__mini-grid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .home-exam-prep__mockup-head {
        color: #5c5c5c;
        font-size: 0.9rem;
    }
    .home-exam-prep__mockup-head span {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: #d60000;
        box-shadow: 0 10px 24px rgba(214, 0, 0, 0.18);
        color: #fff;
        font-weight: 950;
    }
    .home-exam-prep__level-row {
        margin-top: 18px;
    }
    .home-exam-prep__level-row span {
        flex: 1;
        padding: 12px 10px;
        border-radius: 16px;
        background: #fff5f5;
        color: #d60000;
        text-align: center;
        font-weight: 900;
    }
    .home-exam-prep__task-card {
        margin-top: 16px;
        padding: 18px;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 12px 26px rgba(55, 24, 24, 0.08);
        color: #151722;
    }
    .home-exam-prep__task-card small {
        display: block;
        color: #d60000;
        font-weight: 800;
    }
    .home-exam-prep__task-card strong {
        display: block;
        margin-top: 2px;
        color: #151722;
    }
    .home-exam-prep__task-card > span {
        color: #0f8a43;
        font-size: 1.35rem;
        font-weight: 950;
    }
    .home-exam-prep__progress {
        height: 12px;
        margin-top: 16px;
        overflow: hidden;
        border-radius: 999px;
        background: #f4dfdf;
    }
    .home-exam-prep__progress span {
        display: block;
        width: 76%;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #d60000, #ffd879);
    }
    .home-exam-prep__mini-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 16px;
    }
    .home-exam-prep__mini-grid span {
        padding: 12px;
        border-radius: 16px;
        background: #fff7f7;
        color: #3f3f3f;
        text-align: center;
        font-size: 0.92rem;
        font-weight: 800;
    }
    @media (max-width: 991.98px) {
        .home-exam-prep__card {
            grid-template-columns: 1fr;
            text-align: center;
        }
        .home-exam-prep__kicker,
        .home-exam-prep__cta {
            margin-inline: auto;
        }
        .home-exam-prep__chips {
            justify-content: center;
        }
        .home-exam-prep__visual {
            min-height: 300px;
        }
    }
    @media (max-width: 575.98px) {
        .home-exam-prep__card {
            border-radius: 24px;
            padding: 24px 18px;
        }
        .home-exam-prep__title {
            letter-spacing: -0.02em;
        }
        .home-exam-prep__chips span {
            flex: 1 1 calc(50% - 10px);
            justify-content: center;
        }
        .home-exam-prep__cta {
            width: 100%;
        }
        .home-exam-prep__mockup {
            padding: 14px;
        }
    }

    .hero-banner-visual--image {
        width: 100%;
        max-width: 480px;
        margin-inline-start: auto;
        margin-inline-end: auto;
    }
    @media (min-width: 992px) {
        .video-banner:has(.hero-banner-visual--review-spotlight) {
            justify-content: flex-start;
        }
    }
    @media (min-width: 992px) {
        .hero-banner-visual--image {
            margin-inline-start: 0;
            margin-inline-end: auto;
        }
    }
    .hero-banner-spotlight-stack {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .hero-banner-spotlight-figure {
        margin: 0;
        width: 100%;
    }
    .hero-banner-spotlight-more {
        margin-top: 14px;
        align-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: min(100%, 280px);
        font-weight: 600;
        text-decoration: none;
    }
    .hero-banner-spotlight-more:hover {
        text-decoration: none;
    }
    .hero-banner-spotlight-links {
        margin-top: 14px;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        align-self: stretch;
    }
    .hero-banner-spotlight-link {
        margin-top: 0;
        width: 100%;
        min-width: 0;
        padding-inline: 12px;
        font-size: 0.92rem;
    }
    [dir="rtl"] .hero-banner-spotlight-more-icon {
        transform: scaleX(-1);
    }
    @media (max-width: 575.98px) {
        .hero-banner-spotlight-links {
            gap: 8px;
        }
        .hero-banner-spotlight-link {
            padding-inline: 8px;
            font-size: 0.82rem;
        }
    }
    .banner-dms-wordmark {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5em 0.9em;
        margin: 0 auto 18px;
        padding: 0;
        width: 100%;
        line-height: 1.15;
        text-align: center;
    }
    .banner-dms-wordmark__picture {
        display: block;
        flex: 0 1 auto;
        max-width: min(100%, 820px);
    }
    .banner-dms-wordmark__logo {
        display: block;
        height: clamp(5.25rem, 22vw, 13rem);
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center center;
        filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.1));
    }
    .banner-dms-wordmark__institut {
        display: inline-block;
        flex: 0 1 auto;
        font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-size: clamp(1.05rem, 3.1vw, 1.75rem);
        font-weight: 800;
        letter-spacing: 0.08em;
        line-height: 1.1;
        color: #232a39;
        text-transform: uppercase;
    }
    .hero-banner-image-shell {
        position: relative;
        padding: 6px;
        border-radius: 22px;
        background: linear-gradient(145deg, rgba(182, 0, 0, 0.14) 0%, rgba(30, 35, 55, 0.06) 45%, rgba(182, 0, 0, 0.1) 100%);
    }
    .hero-banner-image-glow {
        position: absolute;
        inset: -18% -8% auto -8%;
        height: 55%;
        border-radius: 50%;
        background: radial-gradient(ellipse at center, rgba(182, 0, 0, 0.22) 0%, transparent 68%);
        pointer-events: none;
        z-index: 0;
    }
    .hero-banner-image-frame {
        position: relative;
        z-index: 1;
        border-radius: 18px;
        overflow: hidden;
        box-shadow:
            0 4px 0 0 rgba(182, 0, 0, 0.35),
            0 22px 48px rgba(30, 35, 55, 0.18),
            0 0 0 1px rgba(255, 255, 255, 0.65) inset;
        background: #1e2337;
    }
    .hero-banner-image {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        object-position: center 26%;
        filter: saturate(1.04) contrast(1.02);
        vertical-align: middle;
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .hero-banner-visual--image:not(:has(.hero-banner-review)) .hero-banner-image {
        max-height: min(78vh, 560px);
    }
    @media (hover: hover) and (pointer: fine) {
        .hero-banner-image-shell:hover .hero-banner-image {
            transform: scale(1.02);
        }
    }
    @media (prefers-reduced-motion: reduce) {
        .hero-banner-image {
            transition: none;
        }
        .hero-banner-image-shell:hover .hero-banner-image {
            transform: none;
        }
    }

    .hero-banner-image-frame--review {
        background: #fff;
    }
    .hero-banner-review {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        padding: 1rem 1.15rem 1.05rem;
        min-height: 0;
        max-height: none;
        text-align: start;
    }
    .hero-banner-review-ratings {
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    .hero-banner-review-quote-wrap {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
    }
    .hero-banner-review-text {
        margin: 0;
        flex: 0 0 auto;
        border: 0;
        padding: 0;
    }
    .hero-banner-review-text p {
        margin: 0;
        color: #1f2937;
        font-size: 0.98rem;
        line-height: 1.75;
        display: -webkit-box;
        -webkit-line-clamp: 8;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: pre-line;
    }
    .hero-banner-review-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        flex-shrink: 0;
        margin-top: 0;
        padding-top: 8px;
        border-top: 1px solid rgba(30, 35, 55, 0.08);
    }
    .hero-banner-review-name {
        font-style: normal;
        font-weight: 700;
        font-size: 1rem;
        color: #b60000;
    }
    .hero-banner-review-designation {
        font-size: 0.82rem;
        color: #6b7280;
    }
    @media (hover: hover) and (pointer: fine) {
        .hero-banner-image-shell--review:hover .hero-banner-image-frame--review {
            box-shadow:
                0 4px 0 0 rgba(182, 0, 0, 0.42),
                0 24px 52px rgba(30, 35, 55, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.65) inset;
        }
    }

    .video-banner__play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 68px;
        height: 68px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        color: #fff;
        background: rgba(182, 0, 0, 0.88);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25);
        transition: transform 0.2s ease, background 0.2s ease;
    }
    .video-banner__play:hover .video-banner__play-icon {
        transform: translate(-50%, -50%) scale(1.04);
        background: rgba(182, 0, 0, 0.98);
    }

    html[lang="ar"] .banner-dir {
        direction: rtl;
    }

    @media (max-width: 767.98px) {
    .video-banner, .banner  {
    padding-top: 20px; padding-bottom: 20px;
    text-align: center  !important;
    }
    .banner .banner-dms-wordmark,
    .banner .banner-title,
    .banner .banner-subtitle {
        text-align: center !important;
    }
    .banner .banner-dms-wordmark {
        justify-content: center !important;
    }
    .banner .banner-inner {
    align-items: center !important;
    }

    .banner iframe {
        border: 0;
        width: 100% !important;
    }
    }
    @media (min-width: 772px) and (max-width: 990px) {
        .banner {
            margin-top: 20px;
        }
        .banner .banner-dms-wordmark,
        .banner .banner-title,
        .banner .banner-subtitle {
        text-align: center !important;
        }
        .banner .banner-dms-wordmark {
        justify-content: center !important;
        }
        .banner .banner-inner {
        align-items: center !important;
        justify-content: center !important;
        display: flex !important;
        flex-direction: column !important;
        }
        .banner-dir {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        }
    }

    .countdown {
        position: relative;
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        padding: 10px;
        margin-top: 15px;
    }

    .countdown-published-message {
        position: absolute;
        inset: 10px;
        display: none;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #ffdddd;
        color: #d60000;
        font-weight: 900;
        text-align: center;
        box-shadow: 0 0 8px rgba(255,0,0,0.3);
    }

    .countdown.is-published .time-box {
        visibility: hidden;
    }

    .countdown.is-published .countdown-published-message {
        display: flex;
    }

    .time-box {
        background: #ffdddd;
        border-radius: 10px;
        padding: 15px 20px;
        min-width: 70px;
        text-align: center;
        box-shadow: 0 0 8px rgba(255,0,0,0.3);
        flex: 1 1 70px;
    }

    .number {
        display: block;
        font-size: 2.5rem;
        font-weight: 900;
        color: #d60000;
        font-variant-numeric: tabular-nums;
        min-width: 2ch;
    }

    .label {
        font-size: 1rem;
        color: #d60000;
        margin-top: 5px;
        font-weight: bold;
    }

    @media (max-width: 1500px) {
        .countdown {
            gap: 10px;
        }

        .time-box {
            min-width: 60px;
            padding: 12px 15px;
            margin-bottom: 10px;
        }

        .number {
            font-size: 2rem;
        }

        .label {
            font-size: 0.9rem;
        }

        #wrapper-promotion {
            width: 85% !important;
        }
    }

    #wrapper-promotion {
        display: inline-block;
        background: #f8f9fa;
        border-radius: 10px;
        width: 50%;
    }

/* Black Friday occasion styles (1) */
/* ============================
           سكشن Black Friday
           خلفية حمراء + ٣ شرارات متحركة هادئة
           ============================ */

        .black-friday-hero {
            background: #b60000; /* تعليق: خلفية حمراء سادة من لون الهوية */
            position: relative;  /* تعليق: ضروري لعناصر الخلفية المطلقة */
            overflow: hidden;    /* تعليق: إخفاء أي جزء من الشرارات يخرج خارج السكشن */
            margin-bottom: 25px;
        }

        /* ---------------------------------
           الشرارة الأولى (ذهبية فاتحة - ::before)
           --------------------------------- */
        .black-friday-hero::before {
            content: "";
            position: absolute;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            /* تعليق: تدرّج يعطي إحساس شرارة/وهج خفيف */
            background: radial-gradient(circle,
                        rgba(255, 255, 255, 0.9) 0%,
                        rgba(255, 230, 170, 0.8) 35%,
                        rgba(255, 230, 170, 0.0) 70%);
            filter: blur(1px);        /* تعليق: تخفيف حدة الحواف */
            opacity: 0.6;             /* تعليق: حتى لا تكون قوية على العين */
            pointer-events: none;
            z-index: 0;
            animation: bf-spark-path 14s ease-in-out infinite; /* تعليق: حركة بطيئة وهادئة */
        }

        @keyframes bf-spark-path {
            0% {
                top: 8%;
                left: 5%;
                opacity: 0.4;
                transform: scale(0.9);
            }
            25% {
                top: 5%;
                left: 70%;
                opacity: 0.7;
                transform: scale(1.05);
            }
            50% {
                top: 65%;
                left: 80%;
                opacity: 0.5;
                transform: scale(1.0);
            }
            75% {
                top: 75%;
                left: 15%;
                opacity: 0.8;
                transform: scale(1.1);
            }
            100% {
                top: 8%;
                left: 5%;
                opacity: 0.4;
                transform: scale(0.9);
            }
        }

        /* ---------------------------------
           الشرارة الثانية (غامقة / سوداء - ::after)
           --------------------------------- */
        .black-friday-hero::after {
            content: "";
            position: absolute;
            width: 90px;
            height: 90px;
            border-radius: 50%;
            /* تعليق: تدرّج غامق يعطي إحساس ظل/شرارة سوداء خفيفة */
            background: radial-gradient(circle,
                        rgba(0, 0, 0, 0.75) 0%,
                        rgba(0, 0, 0, 0.45) 35%,
                        rgba(0, 0, 0, 0.0) 70%);
            filter: blur(2px);        /* تعليق: نعومة أكثر من الأولى */
            opacity: 0.45;            /* تعليق: حتى تبقى هادئة وغير مزعجة */
            pointer-events: none;
            z-index: 0;
            animation: bf-spark-dark 18s ease-in-out infinite; /* تعليق: حركة أبطأ ومسار مختلف */
        }

        @keyframes bf-spark-dark {
            0% {
                top: 15%;
                right: 10%;
                opacity: 0.3;
                transform: scale(0.9);
            }
            20% {
                top: 40%;
                right: 5%;
                opacity: 0.55;
                transform: scale(1.05);
            }
            40% {
                top: 65%;
                right: 25%;
                opacity: 0.5;
                transform: scale(1.0);
            }
            60% {
                top: 75%;
                right: 60%;
                opacity: 0.6;
                transform: scale(1.1);
            }
            80% {
                top: 35%;
                right: 70%;
                opacity: 0.4;
                transform: scale(0.95);
            }
            100% {
                top: 15%;
                right: 10%;
                opacity: 0.3;
                transform: scale(0.9);
            }
        }

        /* ---------------------------------
           الشرارة الثالثة (ذهبية صغيرة - div مستقل)
           --------------------------------- */
        .bf-spark-extra {
            position: absolute;
            width: 60px;   /* تعليق: أصغر من الشرارة الأساسية */
            height: 60px;
            border-radius: 50%;
            background: radial-gradient(circle,
                        rgba(255, 255, 255, 0.85) 0%,
                        rgba(255, 215, 130, 0.8) 40%,
                        rgba(255, 215, 130, 0.0) 75%);
            filter: blur(1px);
            opacity: 0.6;
            pointer-events: none;
            z-index: 0;     /* تعليق: تبقى خلف المحتوى والصورة العائمة */
            animation: bf-spark-small 11s ease-in-out infinite;
        }

        /* تعليق: مسار مختلف للشرارة الصغيرة (يتحرك في وسط السكشن تقريبا) */
        @keyframes bf-spark-small {
            0% {
                top: 30%;
                left: 30%;
                opacity: 0.3;
                transform: scale(0.9);
            }
            25% {
                top: 20%;
                left: 50%;
                opacity: 0.7;
                transform: scale(1.0);
            }
            50% {
                top: 45%;
                left: 65%;
                opacity: 0.5;
                transform: scale(1.05);
            }
            75% {
                top: 60%;
                left: 40%;
                opacity: 0.7;
                transform: scale(1.0);
            }
            100% {
                top: 30%;
                left: 30%;
                opacity: 0.3;
                transform: scale(0.9);
            }
        }

        /* تعليق: نخلي الكونتينت (العناوين + الكروت) دايمًا فوق كل شي */
        .black-friday-hero .container {
            position: relative;
            z-index: 3; /* كان 1 ، رفعناه حتى يكون أعلى من الصورة والشريط */
        }

        /* تعليق: تموضع الصورة العائمة بأقصى اليمين مع مسافة بسيطة عن الحافة */
        .bf-floating-wrapper {
            position: absolute;        /* تعليق: ثابتة داخل السكشن */
            right: 10px;               /* تعليق: أقصى اليمين مع مسافة صغيرة عن الحافة */
            bottom: 15px;              /* تعليق: مرفوعة شوي عن أسفل السكشن */
            pointer-events: none;      /* تعليق: ما تمنع الضغط على الأزرار */
            z-index: 1;                /* تعليق: تحت النصوفوق الخلفية */
        }

        /* تعليق: تصغير حجم الصورة شوي حتى ما تغطي على الكروت */
        .bf-floating-img {
            max-width: 260px;          /* تعليق: كانت 400px → صارت أصغر */
            height: auto;
            animation: bf-float 3.5s ease-in-out infinite; /* تعليق: نفس حركة الطلوع والنزول */
        }


        @keyframes bf-float {
            0%, 100% { transform: translateY(20px); }
            50%      { transform: translateY(-10px); }
        }

        /* ===== النصوص في العمود اليسار ===== */

        .bf-badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 999px;
            background: rgba(0, 0, 0, 0.75);
            color: #ffffff;
            font-size: 0.8rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .bf-main-title {
            font-size: 1.6rem;
            font-weight: 800;
            line-height: 1.35;
            margin-bottom: 0.5rem;
            color: #ffffff;
        }

        .bf-main-title span {
            color: #ffe066; /* تعليق: إبراز كلمة Black Friday */
        }

        .bf-main-text {
            font-size: 0.98rem;
            color: #ffecec;
            margin-bottom: 0.25rem;
        }

        .bf-main-hint {
            font-size: 0.85rem;
            color: #ffffff;
            font-weight: 600;
        }

        /* ===== كروت العروض ===== */

        .bf-offer-card {
            background: #ffffff; /* تعليق: كرت أبيض لسهولة القراءة */
            border-radius: 12px;
            border: 1px solid #f0f0f0;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
            padding: 12px 14px 14px;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .bf-offer-header {
            margin-bottom: 6px;
            text-align: center; /* تعليق: يخلي "المجموعة الفضية/الذهبية" والمستويات بالنص */

        }

    /* تعليق: نخلي الشارة نفسها كتلة بالنص داخل الترويسة */
    .bf-offer-label {
        display: inline-block;     /* تعليق: حتى نقدر نوسّطها */
        margin-left: auto;         /* تعليق: هامش أوتوماتيك من اليسار */
        margin-right: auto;        /* تعليق: هامش أوتوماتيك من اليمين → بالنص */
            font-size: 1rem;       /* تعليق: كان 0.8rem تقريبا → صار أوضح وأكبر */
            padding: 4px 12px;     /* تعليق: حشوة أكبر شوي لتبان زي شارة حلوة */
    }


        .bf-offer-label {
            display: inline-block;
            font-size: 1rem;
            font-weight: 700;
            padding: 3px 9px;
            border-radius: 999px;
            color: #ffffff;
        }

        .bf-offer-silver {
            background: #555555;
        }

        .bf-offer-gold {
            background: #b60000;
        }

        .bf-offer-levels {
            font-size: 0.95rem;
            color: #555555;
            margin-top: 4px;
        }

        .bf-offer-body {
            margin-top: 4px;
            margin-bottom: 10px;
            flex: 1;
        }


        /* تعليق: صفّ الأسعار – نخليهم بالنص وتباعد بسيط بينهم */
        .bf-price-row {
            display: flex;                 /* تعليق: ترتيب أفقي */
            align-items: center;           /* تعليق: محاذاة عمودية في المنتصف */
            justify-content: center;       /* تعليق: توسيط أفقي */
            gap: 10px;                     /* تعليق: مسافة بين القديم والجديد والسهم */
            margin-bottom: 6px;            /* تعليق: مسافة تحت صفّ السعر */
        }

        /* تعليق: السعر القديم – أكبر + خط في النص (متوسط) */
        .bf-price-old {
            position: relative;            /* تعليق: لتحكم بالخط عبر ::after */
            font-size: 2.5rem;             /* تعليق: حجم واضح للسعر القديم */
            color: #999999;                /* تعليق: رمادي حتى ما ينافس السعر الجديد */
            padding: 0 4px;                /* تعليق: مساحة صغيرة حول النص */
        }

        /* تعليق: خط في وسط السعر القديم (أوضح من text-decoration العادي) */
        .bf-price-old::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: 50%;                      /* تعليق: في منتصف النص تقريبًا */
            border-top: 2px solid rgba(182, 0, 0, 0.7); /* تعليق: خط أحمر شفاف شوي */
            transform: translateY(-50%);
        }

        /* تعليق: ستايل السهم بين السعر القديم والجديد */
        .bf-price-arrow {
            font-size: 2.5rem;        /* تعليق: نفس حجم الأرقام تقريباً */
            color: #444444;         /* تعليق: لون السهم */
            position: relative;     /* تعليق: حتى نقدر نحركه عمودياً */
            top: -6px;              /* تعليق: رفع السهم شوي لفوق ليصير بنص الأرقام */
        }


        /* تعليق: السعر الجديد – كبير وواضح */
        .bf-price-new {
            font-size: 2.5rem;             /* تعليق: أكبر لشدّ الانتباه */
            font-weight: 800;              /* تعليق: عريض */
            color: #b60000;                /* تعليق: لون الهوية الأحمر الافتراضي */

        }



        .bf-price-arrow {
            font-size: 2rem;
            color: #444444;
        }


        .bf-offer-text {
            font-size: 0.85rem;
            color: #555555;
            margin-bottom: 0;
        }

        .bf-offer-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 8px 14px;
            border-radius: 999px;
            border: 1px solid #b60000;
            background: #b60000;
            color: #ffffff;
            font-size: 2rem;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.2s ease-in-out;
        }

        .bf-offer-btn-outline {
            background: #ffffff;
            color: #b60000;
        }

        .bf-offer-btn:hover {
            background: #000000;
            border-color: #000000;
            color: #ffffff;
            transform: translateY(-1px);
            box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
        }

        /* ===== ريسبونسيف للموبايل ===== */

        @media (max-width: 767.98px) {
            .bf-main-title {
                font-size: 1.35rem;
            }

            .bf-main-text {
                font-size: 0.9rem;
            }

            .bf-offer-card {
                padding: 10px 12px;
            }

        @media (max-width: 767.98px) {

            /* تعليق: تصغير الصورة وإرجاعها أكثر لليمين ولتحت حتى ما تقطع الكروت */
            .bf-floating-wrapper {
                right: -20px;
                bottom: -15px;
                opacity: 0.8;
                z-index: 0; /* تعليق: أعمق كمان بالموبايل */
            }
            /* تعليق: ضبط إضافي لحجم الصورة على الشاشات الصغيرة */
            @media (max-width: 767.98px) {
                .bf-floating-img {
                    max-width: 200px;      /* تعليق: أصغر بالموبايل */
                }
            }

            /* أو إذا بدك تلغيها تمامًا على الشاشات الصغيرة:
            .bf-floating-wrapper {
                display: none;  تعليق: إخفاء الصورة بالموبايل كليًا
            }
            */
        }


            .bf-floating-wrapper {
                right: -20px;
                opacity: 0.85;
            }

            .bf-floating-img {
                max-width: 260px;
            }
        }
            /* ---------------------------------
               شريط أسود في أسفل السكشن مع حركة ناعمة
               --------------------------------- */
            .bf-bottom-bar {
                position: absolute;      /* تعليق: تموضع بالنسبة للسكشن */
                left: 0;
                bottom: 0;
                width: 100%;
                height: 10px;            /* تعليق: سماكة الخط الأسود (غيّرها إذا بدك أسمك/أنحف) */
                background: #000000;     /* تعليق: لون أسود ثابت كأساس */
                overflow: hidden;        /* تعليق: إخفاء اللمعة اللي تتحرك داخله */
                z-index: 1;              /* تعليق: فوق الخلفية وتحت الكونتينت إذا حابب */
            }

            .bf-bottom-bar::before {
                content: "";
                position: absolute;
                top: 0;
                left: -30%;
                width: 30%;
                height: 100%;
                /* تعليق: لمعة فاتحة تمشي على الشريط */
                background: linear-gradient(
                    90deg,
                    rgba(255, 255, 255, 0) 0%,
                    rgba(255, 255, 255, 0.6) 50%,
                    rgba(255, 255, 255, 0) 100%
                );
                opacity: 0.7;                   /* تعليق: قوة اللمعة */
                animation: bf-bottom-glow 3.5s ease-in-out infinite; /* تعليق: حركة ناعمة متكررة */
            }

            /*@keyframes bf-bottom-glow {

                0% {
                    transform: translateX(0);
                }
                50% {
                    transform: translateX(350%);
                }
                100% {
                    transform: translateX(200%);
                }
            }*/
        /* ===== مربعات المستويات داخل الكرت ===== */

        /* تعليق: حاوية المربعات (flex + مسافة بين العناصر) */
        .bf-level-tags {
            display: flex;              /* تعليق: ترتيب أفقي */
            flex-wrap: wrap;            /* تعليق: إذا ضاق المكان ينزل للسطر الثاني */
            gap: 6px;                   /* تعليق: مسافة بين المربعات */
            margin-top: 6px;            /* تعليق: مسافة صغيرة فوق المربعات */
        }

        /* تعليق: شكل المربع لكل مستوى */
        .bf-level-tag {
            min-width: 46px;            /* تعليق: عرض أدنى للمربع */
            padding: 4px 10px;          /* تعليق: حشوة داخلية */
            border-radius: 6px;         /* تعليق: زوايا شبه مربعة */
            border: 1px solid #b60000;  /* تعليق: إطار أحمر من لون الهوية */
            font-size: 0.8rem;          /* تعليق: حجم الخط */
            font-weight: 700;           /* تعليق: جعل النص عريض */
            text-align: center;         /* تعليق: توسيط النص داخل المربع */
            color: #b60000;             /* تعليق: لون النص */
            background: #fff;           /* تعليق: خلفية بيضاء */
            box-shadow: 0 2px 5px rgba(0,0,0,0.12); /* تعليق: ظل خفيف للمربع */
        }


                /* ===== زرار الكروت – ستايل افتراضي (لو ما استخدمنا الفضي/الذهبي) ===== */
                .bf-offer-btn {
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    padding: 8px 14px;
                    border-radius: 999px;
                    border: 1px solid #b60000;   /* تعليق: افتراضي أحمر إذا ما في كلاس خاص */
                    background: #b60000;
                    color: #ffffff;
                    font-size: 0.9rem;
                    font-weight: 700;
                    text-decoration: none;
                    transition: all 0.2s ease-in-out;
                }

                /* ---------------------------------
                   زر المجموعة الفضية – لون فضي
                   --------------------------------- */
                .bf-offer-btn-silver {
                    background: linear-gradient(135deg, #f7f7f7, #d4d4d4); /* تعليق: تدرّج فضي ناعم */
                    border-color: #c0c0c0;                               /* تعليق: إطار فضي */
                    color: #333333;                                      /* تعليق: نص غامق لقراءة أوضح */
                }

                .bf-offer-btn-silver:hover {
                    background: linear-gradient(135deg, #e5e5e5, #b8b8b8); /* تعليق: تغميق بسيط عند الهوفر */
                    border-color: #a8a8a8;
                    color: #111111;
                    transform: translateY(-1px);
                    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
                }

                /* ---------------------------------
                   زر المجموعة الذهبية – لون ذهبي
                   --------------------------------- */
                .bf-offer-btn-gold {
                    background: linear-gradient(135deg, #f9e17c, #d4a017); /* تعليق: تدرّج ذهبي */
                    border-color: #d4a017;                                /* تعليق: إطار ذهبي */
                    color: #3b2a00;                                       /* تعليق: نص غامق يميل للبني */
                }

                .bf-offer-btn-gold:hover {
                    background: linear-gradient(135deg, #f6d75a, #c28f10); /* تعليق: ذهبي أغمق عند الهوفر */
                    border-color: #c28f10;
                    color: #1f1300;
                    transform: translateY(-1px);
                    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
                }

        .bf-level-tag {
            min-width: 46px;
            padding: 4px 10px;
            border-radius: 6px;
            border: 1px solid #b60000;  /* تعليق: افتراضي أحمر */
            font-size: 0.8rem;
            font-weight: 700;
            text-align: center;
            color: #b60000;
            background: #fff;
            box-shadow: 0 2px 5px rgba(0,0,0,0.12);
        }


        /* ---------------------------------
           شارة اسم المجموعة
           --------------------------------- */
        .bf-offer-silver {
            background: linear-gradient(135deg, #f7f7f7, #bfbfbf); /* تعليق: شارة فضية */
            color: #222;
        }

        .bf-offer-gold {
            background: linear-gradient(135deg, #f9e17c, #d4a017); /* تعليق: شارة ذهبية */
            color: #3b2a00;
        }

        /* ---------------------------------
           تخصيص ألوان المجموعة الفضية داخل الكرت
           --------------------------------- */

        .bf-offer-card--silver .bf-price-new {
            color: #9c9c9c; /* تعليق: سعر جديد بلون فضي غامق */
        }

        .bf-offer-card--silver .bf-level-tag {
            border-color: #c0c0c0; /* تعليق: إطار فضي */
            color: #555555;        /* تعليق: نص رمادي غامق */
        }


        /* لو حابب تميّز النص الوصفي بلون فضي أكثر برودة */
        .bf-offer-card--silver .bf-offer-text {
            color: #666666; /* تعليق: رمادي متناسق مع الفضي */
        }

        /* ---------------------------------
           تخصيص ألوان المجموعة الذهبية داخل الكرت
           --------------------------------- */

        .bf-offer-card--gold .bf-price-new {
            color: #d4a017; /* تعليق: سعر جديد بالذهبي */
        }

        .bf-offer-card--gold .bf-level-tag {
            border-color: #d4a017; /* تعليق: إطار ذهبي */
            color: #d4a017;        /* تعليق: نص ذهبي */
        }


        .bf-offer-card--gold .bf-offer-text {
            color: #6b4a08; /* تعليق: نص مائل للبني يناسب الذهبي */
        }

    /* ============================
       عدّاد Black Friday التنازلي
       ============================ */

    /* تعليق: نص "ينتهي عرض Black Friday بعد" */
    .bf-countdown-label {
        font-size: 0.9rem;                  /* تعليق: حجم النص */
        font-weight: 600;
        color: #ffffff;
        text-align: center;
        margin-bottom: 4px;
    }

    /* تعليق: صفّ الوحدات (يوم / ساعة / دقيقة / ثانية) */
    .bf-countdown {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;                          /* تعليق: مسافة بين الخانات */
        flex-wrap: wrap;                    /* تعليق: لو صغُر المكان، ينزلوا لسطرين */
    }

    /* تعليق: كل خانة للوقت → مسؤولة عن ترتيب الصندوق + النص تحت */
    .bf-count-item {
        min-width: 70px;
        text-align: center;                 /* تعليق: توسيط الصندوق والنص */
    }

    /* ✅ صندوق أسود شفاف للأرقام فقط */
    .bf-count-box {
        position: relative;                 /* تعليق: أساس للـ absolute children (الأرقام المتحركة) */
        padding: 4px 6px;                   /* تعليق: حشوة داخل الصندوق */
        border-radius: 8px;                 /* تعليق: زوايا ناعمة */
        background: rgba(0, 0, 0, 0.65);    /* تعليق: خلفية سوداء شفافة */
        overflow: hidden;                   /* تعليق: إخفاء الأرقام اللي تطلع برا الحدود */
        margin: 0 auto 2px;                 /* تعليق: توسيط الصندوق + مسافة صغيرة تحته */
        min-width: 70px;                    /* تعليق: نفس عرض الخانة تقريبا */
    }

    /* تعليق: الرقم الأساسي (الثابت بعد الأنيميشن) */
    .bf-count-number {
        display: inline-block;
        font-size: 3rem;                    /* تعليق: أرقام كبيرة واضحة */
        font-weight: 900;
        color: #ffe066;                     /* تعليق: لون ذهبي يبان على الخلفية السوداء */
        line-height: 1.1;
        position: relative;                 /* تعليق: يبقى في مكانه العادي */
        z-index: 1;                         /* تعليق: فوق الخلفية وتحت الأرقام المتحركة */
    }

    /* تعليق: النص الصغير تحت الرقم (يوم / ساعة / دقيقة / ثانية) → خارج الصندوق */
    .bf-count-text {
        display: block;
        font-size: 0.8rem;
        color: #ffffff;
    }

    /* ✅ سبانات الحركة (القديم والجديد) داخل الصندوق */
    .bf-count-number-anim {
        position: absolute;                 /* تعليق: تتحرك داخل bf-count-box */
        top: 0;
        left: 50%;
        transform: translate(-50%, 0);
        width: 100%;
        text-align: center;
        font-size: 3rem;
        font-weight: 900;
        color: #ffe066;
        line-height: 1.1;
        z-index: 2;                         /* تعليق: فوق الرقم الأساسي */
    }

    /* تعليق: الرقم القديم ينزل لتحت */
    .bf-count-number-old {
        animation: bf-number-old-down 0.35s ease-out forwards;
    }

    /* تعليق: الرقم الجديد ينزل من فوق لمكانه */
    .bf-count-number-new {
        animation: bf-number-new-down 0.35s ease-out forwards;
    }

    /* تعليق: أنيميشن نزول الرقم القديم */
    @keyframes bf-number-old-down {
        0% {
            transform: translate(-50%, 0);      /* تعليق: في مكانه العادي */
        }
        100% {
            transform: translate(-50%, 100%);   /* تعليق: نازل لتحت خارج الصندوق */
        }
    }

    /* تعليق: أنيميشن دخول الرقم الجديد من فوق */
    @keyframes bf-number-new-down {
        0% {
            transform: translate(-50%, -100%);  /* تعليق: فوق الصندوق (مخفي بسبب overflow) */
        }
        100% {
            transform: translate(-50%, 0);      /* تعليق: يستقر في مكانه العادي */
        }
    }

    /* تعليق: ضبط العدّاد على الشاشات الصغيرة (موبايل) */
    @media (max-width: 767.98px) {
        .bf-count-number,
        .bf-count-number-anim {
            font-size: 1.6rem;                 /* تعليق: تصغير بسيط للأرقام */
        }
        .bf-count-item {
            min-width: 60px;
        }
        .bf-count-box {
            min-width: 60px;
        }
    }

/* Home gallery, certificate, and testimonial styles (1) */
.swiper-slide {
            background: transparent;
            border-radius: 0;
            box-shadow: none;
            padding: 0;
            user-select: none;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }

        .slider-card {
            position: relative;
            background: transparent;
            border-radius: 16px;
            overflow: hidden;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .slider-card:hover {
            transform: translateY(-5px);
        }

        .card-image {
            width: 100%;
            height: auto;
            object-fit: contain;
            border-radius: 16px;
            margin-bottom: 0;
            display: block;
            transition: transform 0.3s ease;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            backface-visibility: hidden;
        }

        .slider-card:hover .card-image {
            transform: scale(1.05);
        }

        .slider-hover-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease;
            border-radius: 16px;
        }

        .slider-card:hover .slider-hover-overlay {
            opacity: 1;
        }

        .slider-hover-icon {
            text-align: center;
            color: white;
            font-size: 1.2rem;
        }

        .slider-hover-icon i {
            font-size: 2.5rem;
            margin-bottom: 8px;
            display: block;
            animation: pulse 2s infinite;
        }

        .slider-hover-icon span {
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            display: block;
            font-size: 1rem;
        }

        /* Custom Swiper Navigation Arrows */
        .swiper-button-next,
        .swiper-button-prev {
            width: 50px !important;
            height: 50px !important;
            margin-top: -25px !important;
            background: rgba(255, 255, 255, 0.95) !important;
            border: 2px solid rgba(184, 0, 0, 0.3) !important;
            border-radius: 50% !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
            backdrop-filter: blur(10px) !important;
            transition: all 0.3s ease !important;
            z-index: 10 !important;
        }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 16px !important;
            font-weight: bold !important;
            color: #b80000 !important;
            transition: color 0.3s ease !important;
        }

        .swiper-button-next:hover,
        .swiper-button-prev:hover {
            background: rgba(184, 0, 0, 0.95) !important;
            border-color: #b80000 !important;
            transform: scale(1.1) !important;
            box-shadow: 0 6px 20px rgba(184, 0, 0, 0.3) !important;
        }

        .swiper-button-next:hover:after,
        .swiper-button-prev:hover:after {
            color: white !important;
        }

        .swiper-button-next {
            left: var(--swiper-navigation-sides-offset, 5px) !important;
            right: auto !important;
        }

        .swiper-button-prev {
            right: var(--swiper-navigation-sides-offset, -15px) !important;
            left: auto !important;
        }

        .next {
            left: var(--swiper-navigation-sides-offset, -15px) !important;
            right: auto !important;
        }

        .prev {
            right: var(--swiper-navigation-sides-offset, -15px) !important;
            left: auto !important;
        }

        @media (max-width: 768px) {
            .card-wrapper {
                padding: 10px 5px;
            }
            .card-image {
                height: auto;
                max-height: 300px;
                object-fit: cover;
            }

            .slider-hover-icon i {
                font-size: 2rem;
            }

            .slider-hover-icon span {
                font-size: 0.9rem;
            }

            /* Responsive Swiper Arrows */
            .swiper-button-next,
            .swiper-button-prev,
            .certificates-next,
            .certificates-prev,
            .myTestimonialSwiper .swiper-button-next,
            .myTestimonialSwiper .swiper-button-prev {
                width: 40px !important;
                height: 40px !important;
                margin-top: -20px !important;
            }

            .swiper-button-next:after,
            .swiper-button-prev:after,
            .certificates-next:after,
            .certificates-prev:after,
            .myTestimonialSwiper .swiper-button-next svg,
            .myTestimonialSwiper .swiper-button-prev svg {
                width: 16px !important;
                height: 16px !important;
            }
        }

        /* Main Slider Section Styles - Match Certificates Design */
        .card-wrapper {
            max-width: 1200px; /* Same as certificates */
            margin: 0 auto 35px;
            padding: 20px 10px; /* Same as certificates */
        }

        /* Make main slider slides match certificates style */
        .card-wrapper .swiper-slide {
            height: auto !important;
            background: transparent;
            box-shadow: none;
            padding: 0;
        }

        /* Certificates Section Styles */
        .certificates-swiper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 10px;
        }

        .certificates-swiper .swiper-slide {
            height: auto !important;
            background: transparent;
            box-shadow: none;
            padding: 0;
        }

        .certificate-card {
            position: relative;
            background: transparent;
            border-radius: 16px;
            box-shadow: none;
            overflow: hidden;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        .certificate-card:hover {
            transform: translateY(-5px);
        }

        .certificate-image {
            width: 100%;
            height: auto;
            border-radius: 16px;
            transition: transform 0.3s ease;
            display: block;
        }

        .certificate-card:hover .certificate-image {
            transform: scale(1.05);
        }

        .certificate-hover-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease;
            border-radius: 16px;
        }

        .certificate-card:hover .certificate-hover-overlay {
            opacity: 1;
        }

        .certificate-hover-icon {
            text-align: center;
            color: white;
            font-size: 1.2rem;
        }

        .certificate-hover-icon i {
            font-size: 2.5rem;
            margin-bottom: 8px;
            display: block;
            animation: pulse 2s infinite;
        }

        .certificate-hover-icon span {
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            display: block;
            font-size: 1rem;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .certificate-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, rgba(184, 0, 0, 0.9), rgba(184, 0, 0, 0.7));
            color: white;
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .certificate-card:hover .certificate-overlay {
            transform: translateY(0);
        }

        .certificate-info {
            text-align: center;
            font-weight: bold;
        }

        .certificate-info i {
            font-size: 24px;
            margin-bottom: 8px;
            display: block;
        }

        .certificates-next,
        .certificates-prev {
            width: 50px !important;
            height: 50px !important;
            margin-top: -25px !important;
            background: rgba(255, 255, 255, 0.95) !important;
            border: 2px solid rgba(184, 0, 0, 0.3) !important;
            border-radius: 50% !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
            backdrop-filter: blur(10px) !important;
            transition: all 0.3s ease !important;
            z-index: 10 !important;
        }

        .certificates-next:after,
        .certificates-prev:after {
            font-size: 16px !important;
            font-weight: bold !important;
            color: #b80000 !important;
            transition: color 0.3s ease !important;
        }

        .certificates-next:hover,
        .certificates-prev:hover {
            background: rgba(184, 0, 0, 0.95) !important;
            border-color: #b80000 !important;
            transform: scale(1.1) !important;
            box-shadow: 0 6px 20px rgba(184, 0, 0, 0.3) !important;
        }

        .certificates-next:hover:after,
        .certificates-prev:hover:after {
            color: white !important;
        }

        /* تنسيق أسهم الشهادات لتطابق السلايدر الرئيسي */
        .certificates-next {
            left: var(--swiper-navigation-sides-offset, -15px) !important;
            right: auto !important;
        }

        .certificates-prev {
            right: var(--swiper-navigation-sides-offset, -15px) !important;
            left: auto !important;
        }

        .certificates-pagination .swiper-pagination-bullet {
            background: #b80000 !important;
            opacity: 0.5;
        }

        .certificates-pagination .swiper-pagination-bullet-active {
            opacity: 1;
            background: #b80000 !important;
        }

        /* Testimonial Preview Modal */
        .testimonial-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 9997;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .testimonial-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .testimonial-modal .modal-backdrop {
            z-index: -1;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }

        .testimonial-modal .modal-container {
            position: relative;
            max-width: 600px;
            max-height: 90vh;
            background: white;
            border-radius: 15px;
            overflow: visible;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .testimonial-modal.active .modal-container {
            transform: scale(1);
        }

        .testimonial-content {
            display: flex;
            flex-direction: column;
            max-height: 90vh;
            overflow-y: auto;
        }

        .testimonial-preview-card {
            padding: 30px;
            background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
            border-bottom: 1px solid #e9ecef;
        }

        .testimonial-avatar-section {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }


        .testimonial-student-info {
            text-align: center;
        }

        .testimonial-student-info h4 {
            margin: 0 0 5px 0;
            color: #333;
            font-size: 1.3rem;
            font-weight: bold;
        }

        .testimonial-student-info p {
            margin: 0;
            color: #6c757d;
            font-size: 0.95rem;
        }

        .testimonial-rating-section {
            margin-bottom: 20px;
            text-align: center;
        }

        .testimonial-rating-section .rating {
            font-size: 1.2rem;
        }

        .testimonial-review-section {
            text-align: center;
        }

        .testimonial-review-section p {
            color: #333;
            font-size: 1.1rem;
            line-height: 1.6;
            font-style: italic;
            margin: 0;
            padding: 20px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            position: relative;
            max-height: 300px;
            overflow-y: auto;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .testimonial-review-section p::before {
            content: '"';
            font-size: 3rem;
            color: #b80000;
            position: absolute;
            top: -10px;
            left: 15px;
            font-family: serif;
        }

        .testimonial-review-section p::after {
            content: '"';
            font-size: 3rem;
            color: #b80000;
            position: absolute;
            bottom: -25px;
            right: 15px;
            font-family: serif;
        }

        /* Custom scrollbar for testimonial review text */
        .testimonial-review-section p::-webkit-scrollbar {
            width: 6px;
            background: #f8f9fa;
            border-radius: 3px;
        }

        .testimonial-review-section p::-webkit-scrollbar-thumb {
            background: #b80000;
            border-radius: 3px;
            opacity: 0.7;
        }

        .testimonial-review-section p::-webkit-scrollbar-thumb:hover {
            background: #a00000;
            opacity: 1;
        }

        /* Custom scrollbar for testimonial modal content */
        .testimonial-content::-webkit-scrollbar {
            width: 8px;
            background: #f8f9fa;
            border-radius: 4px;
        }

        .testimonial-content::-webkit-scrollbar-thumb {
            background: #b80000;
            border-radius: 4px;
            opacity: 0.7;
        }

        .testimonial-content::-webkit-scrollbar-thumb:hover {
            background: #a00000;
            opacity: 1;
        }

        /* Slider Preview Modal */
        .slider-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 9998;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .slider-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .slider-modal .modal-backdrop {
            z-index: -1;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }

        .slider-modal .modal-container {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .slider-modal.active .modal-container {
            transform: scale(1);
        }

        /* Certificate Preview Modal */
        .certificate-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .certificate-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-backdrop {
            z-index: -1;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }

        .modal-container {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }

        .certificate-modal.active .modal-container {
            transform: scale(1);
        }

        .modal-close {
            position: fixed;
            top: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid rgba(184, 0, 0, 0.3);
            border-radius: 50%;
            color: #b80000;
            font-size: 1.6rem;
            cursor: pointer;
            z-index: 10001;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
        }

        .modal-close:hover {
            background: rgba(184, 0, 0, 0.95);
            color: white;
            border-color: #b80000;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(184, 0, 0, 0.3);
        }

        .modal-content {
            display: flex;
            flex-direction: column;
        }

        /* Slider Modal Images */
        .slider-modal .modal-content img {
            width: 100%;
            height: auto;
            max-height: 70vh;
            object-fit: contain;
            display: block;
        }

        /* Certificate Modal Images */
        .certificate-modal .modal-content img {
            width: 100%;
            height: auto;
            max-height: 70vh;
            object-fit: contain;
            display: block;
        }

        /* Testimonial Modal - No img styles needed as it uses different structure */

        .modal-info {
            padding: 20px;
            text-align: center;
            background: #f8f9fa;
        }

        .modal-info h4 {
            color: #b80000;
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .modal-info p {
            color: #6c757d;
            margin: 0;
            font-size: 0.9rem;
        }

        .modal-counter {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #e9ecef;
        }

        .modal-counter span {
            color: #b80000;
            font-weight: bold;
            font-size: 0.95rem;
        }

        /* Modal Navigation Arrows - Large Screens */
        .modal-nav {
            position: fixed;
            top: 50%;
            transform: translateY(-50%) !important;
            width: 60px;
            height: 60px;
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid rgba(184, 0, 0, 0.3);
            border-radius: 50%;
            color: #b80000;
            font-size: 1.8rem;
            cursor: pointer;
            z-index: 10001;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
        }

        .modal-nav:hover {
            background: rgba(184, 0, 0, 0.95);
            color: white;
            border-color: #b80000;
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 6px 20px rgba(184, 0, 0, 0.3);
        }

        .modal-prev {
            left: 50px;
        }

        .modal-next {
            right: 50px;
        }

        .modal-nav:disabled {
            background: rgba(255, 255, 255, 0.3);
            color: rgba(108, 117, 125, 0.5);
            border-color: rgba(108, 117, 125, 0.2);
            cursor: not-allowed;
            transform: translateY(-50%);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .modal-nav:disabled:hover {
            background: rgba(255, 255, 255, 0.3);
            color: rgba(108, 117, 125, 0.5);
            border-color: rgba(108, 117, 125, 0.2);
            transform: translateY(-50%);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        @media (max-width: 768px) {
            .certificate-overlay {
                padding: 15px;
            }

            .certificate-hover-icon i {
                font-size: 2rem;
            }

            .certificate-hover-icon span {
                font-size: 0.9rem;
            }

            .modal-container {
                max-width: 95vw;
                max-height: 95vh;
            }

            .modal-info {
                padding: 15px;
            }

            .modal-info h4 {
                font-size: 1.1rem;
            }

            .modal-close {
                top: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 1.4rem;
            }

            .modal-nav {
                width: 50px;
                height: 50px;
                font-size: 1.4rem;
            }

            /* Testimonial Modal Responsive */
            .testimonial-modal .modal-container {
                max-width: 95vw;
                max-height: 95vh;
                margin: 10px;
            }

            .testimonial-preview-card {
                padding: 20px;
            }

            .testimonial-content {
                max-height: 95vh;
            }


            .testimonial-student-info h4 {
                font-size: 1.1rem;
            }

            .testimonial-student-info p {
                font-size: 0.85rem;
            }

            .testimonial-review-section p {
                font-size: 1rem;
                padding: 15px;
                max-height: 250px;
            }

            .testimonial-review-section p::before,
            .testimonial-review-section p::after {
                font-size: 2rem;
            }
        }

        /* External arrows for large screens */
        .external-arrow {
            display: none;
        }

        @media (min-width: 769px) {
            /* Hide internal arrows on large screens */
            .certificate-modal .modal-counter .modal-nav,
            .slider-modal .modal-counter .modal-nav,
            .testimonial-modal .modal-counter .modal-nav {
                display: none !important;
            }

            /* Show external arrows on large screens */
            .external-arrow {
                display: flex !important;
                position: fixed !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                width: 60px !important;
                height: 60px !important;
                font-size: 1.8rem !important;
                z-index: 10001 !important;
            }

            .external-arrow.modal-prev {
                left: 50px !important;
            }

            .external-arrow.modal-next {
                right: 50px !important;
            }
        }

        @media (max-width: 768px) {
            /* Hide external arrows on small screens */
            .external-arrow {
                display: none !important;
            }

            /* Show internal arrows on small screens */
            .certificate-modal .modal-counter .modal-nav,
            .slider-modal .modal-counter .modal-nav,
            .testimonial-modal .modal-counter .modal-nav {
                display: flex !important;
                position: absolute !important;
                top: 90% !important;
                transform: translateY(-50%) !important;
                z-index: 10002 !important;
                width: 50px !important;
                height: 50px !important;
                font-size: 1.4rem !important;
            }

            .certificate-modal .modal-counter .modal-prev,
            .slider-modal .modal-counter .modal-prev,
            .testimonial-modal .modal-counter .modal-prev {
                left: 15px !important;
            }

            .certificate-modal .modal-counter .modal-next,
            .slider-modal .modal-counter .modal-next,
            .testimonial-modal .modal-counter .modal-next {
                right: 15px !important;
            }
        }

        /* iOS Safari specific fixes */
        @supports (-webkit-touch-callout: none) {
            .swiper-slide {
                -webkit-transform: translate3d(0,0,0);
                transform: translate3d(0,0,0);
            }

            .card-image {
                -webkit-transform: translate3d(0,0,0);
                transform: translate3d(0,0,0);
                will-change: transform;
            }

            .slider-card {
                -webkit-transform: translate3d(0,0,0);
                transform: translate3d(0,0,0);
            }
        }

/* Home gallery, certificate, and testimonial styles (2) */
/* تعليق عربي: الكرت العام للتوصيات (نفس كرت الريفيو العادي) */
    .flex-card {
        min-height: 350px;
        max-width: 500px;
        max-height: 600px; /* زيادة ارتفاع الكارت */
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 12px #eee;
        padding: 1.2rem; /* تقليل البادينغ */
        transition: min-height 0.3s, max-height 0.3s;
        overflow-y: auto;
        overflow-x: hidden;
        cursor: pointer;
    }

    /* تعليق عربي: صورة السلايدر (لو استخدمتها) */
    .slider-image {
        width: 100%;
        height: 350px;
        max-width: 100%;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 2px 12px #eee;
    }

    /* تعليق عربي: مسافة إضافية أسفل سلايدر التوصيات للنقاط */
    .swiper.myTestimonialSwiper {
        padding-bottom: 48px;
    }

    /* تعليق عربي: سكرول داخلي ناعم للكرت */
    .flex-card::-webkit-scrollbar {
        width: 4px;
        background: #f5f5f5;
        border-radius: 8px;
    }

    .flex-card::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 8px;
    }

    /* تعليق عربي: لون رابط "اقرأ المزيد" */
    .read-more-link {
        color: #b80000;
        font-weight: bold;
        cursor: pointer;
    }

    /* تعليق عربي: أسهم سلايدر التوصيات (دائرية مع أيقونة SVG) */
    .myTestimonialSwiper .swiper-button-next,
    .myTestimonialSwiper .swiper-button-prev {
        width: 50px !important;
        height: 50px !important;
        margin-top: -25px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 2px solid rgba(184, 0, 0, 0.3) !important;
        border-radius: 50% !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.3s ease !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .myTestimonialSwiper .swiper-button-next:after,
    .myTestimonialSwiper .swiper-button-prev:after {
        display: none !important;
    }

    .myTestimonialSwiper .swiper-button-next svg,
    .myTestimonialSwiper .swiper-button-prev svg {
        stroke: #b80000 !important;
        transition: stroke 0.3s ease !important;
    }

    .myTestimonialSwiper .swiper-button-next:hover,
    .myTestimonialSwiper .swiper-button-prev:hover {
        background: rgba(184, 0, 0, 0.95) !important;
        border-color: #b80000 !important;
        transform: scale(1.1) !important;
        box-shadow: 0 6px 20px rgba(184, 0, 0, 0.3) !important;
    }

    .myTestimonialSwiper .swiper-button-next:hover svg,
    .myTestimonialSwiper .swiper-button-prev:hover svg {
        stroke: white !important;
    }

    /* تعليق عربي: إصلاح عرض التوصيات على الشاشات الصغيرة (تظهر سلايد واحدة فقط) */
    @media (max-width: 767px) {
        .myTestimonialSwiper .swiper-slide {
            width: 100% !important;
            margin-right: 0 !important;
        }

        .myTestimonialSwiper .swiper-slide:not(.swiper-slide-active) {
            opacity: 0 !important;
            visibility: hidden !important;
        }

        .myTestimonialSwiper .swiper-slide-active {
            opacity: 1 !important;
            visibility: visible !important;
        }
    }

    /* تعليق عربي: ضبط الكرت والنص على الهواتف الصغيرة جداً */
    @media (max-width: 575px) {
        .myTestimonialSwiper .swiper-slide {
            padding: 0 10px !important;
        }

        .flex-card {
            min-height: 250px !important;
            max-width: 475px !important;
            padding: 1rem !important;
            margin-right: -10px;
        }

        .review-card-text {
            font-size: 14px !important;
            line-height: 1.4 !important;
        }
    }

    /* تعليق عربي: لون النقطة الفعّالة في الباجينيشن */
    .swiper-pagination-bullet-active {
        background: #b80000 !important;
    }

    /* شريحة تحميل المزيد: الزر في الأعلى وفي المنتصف أفقيًا */
    .swiper-slide--load-more {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 350px;
        padding-top: 1rem;
    }
    .testimonial-load-more-slide {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        min-height: 350px;
    }
    .testimonial-load-more {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid rgba(184, 0, 0, 0.6);
        background: #fff;
        color: #b80000;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .testimonial-load-more:hover {
        background: #b80000;
        color: #fff;
        border-color: #b80000;
    }
    .testimonial-load-more-plus { user-select: none; }
    @media (max-width: 767px) {
        .testimonial-load-more { width: 36px; height: 36px; font-size: 1.25rem; }
        .swiper-slide--load-more, .testimonial-load-more-slide { min-height: 320px; }
    }

    /* زر الترجمة ونتيجتها داخل كرت التقييم */
    .review-translate-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-top: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        color: #b80000;
        background: transparent;
        border: 1px solid rgba(184, 0, 0, 0.4);
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }
    .review-translate-btn:hover { background: rgba(184, 0, 0, 0.08); color: #8b0000; }
    .review-translate-btn:active,
    .review-translate-btn:focus,
    .review-translate-btn:focus-visible {
        color: #8b0000 !important;
        background: rgba(184, 0, 0, 0.12) !important;
    }
    .review-translate-btn:active .review-translate-btn-label,
    .review-translate-btn:focus .review-translate-btn-label,
    .review-translate-btn:focus-visible .review-translate-btn-label,
    .review-translate-btn:active i,
    .review-translate-btn:focus i,
    .review-translate-btn:focus-visible i {
        color: #8b0000 !important;
    }
    .review-translation-result {
        margin-top: 0.5rem;
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
        line-height: 1.45;
        background: #f8f9fa;
        border-radius: 8px;
        border-right: 3px solid #b80000;
        color: #333;
    }
    .review-translation-result.d-none { display: none !important; }
    .testimonial-modal-translate-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-top: 0.6rem;
        margin-inline-start: 0;
        padding: 0.35rem 0.65rem;
        font-size: 0.85rem;
        color: #b80000;
        background: #fff;
        border: 1px solid rgba(184, 0, 0, 0.45);
        border-radius: 7px;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }
    .testimonial-modal-translate-btn:hover { background: rgba(184, 0, 0, 0.08); color: #8b0000; }
    .testimonial-modal-translate-btn:active,
    .testimonial-modal-translate-btn:focus,
    .testimonial-modal-translate-btn:focus-visible {
        color: #8b0000 !important;
        background: rgba(184, 0, 0, 0.12) !important;
    }
    .testimonial-modal-translate-btn:active span,
    .testimonial-modal-translate-btn:focus span,
    .testimonial-modal-translate-btn:focus-visible span,
    .testimonial-modal-translate-btn:active i,
    .testimonial-modal-translate-btn:focus i,
    .testimonial-modal-translate-btn:focus-visible i {
        color: #8b0000 !important;
    }
    .testimonial-modal-translation-result {
        margin-top: 0.7rem;
        padding: 0.7rem 0.8rem;
        font-size: 0.95rem;
        line-height: 1.55;
        background: #f8f9fa;
        border-inline-start: 3px solid #b80000;
        border-radius: 8px;
        color: #242424;
        white-space: pre-wrap;
    }
    .testimonial-modal-translation-result.d-none { display: none !important; }

    /* تعليق عربي: سكرول ناعم لنص التقييم داخل الكرت */
    .review-text-wrapper {
        max-height: 200px;
        overflow-y: auto;
        display: block;
        position: relative;
        padding-right: 6px;
    }

    .review-text-wrapper::-webkit-scrollbar {
        width: 4px;
        background: #f5f5f5;
    }

    .review-text-wrapper::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 4px;
    }

    /* استغلال المساحة داخل كروت التقييم: إلغاء الفراغ الكبير بين النص واسم الطالب */
    .myTestimonialSwiper .review-card.flex-card {
        justify-content: flex-start !important;
        align-items: stretch;
    }

    .myTestimonialSwiper .home-review-card {
        border: 1px solid rgba(30, 35, 55, 0.08);
        box-shadow: 0 16px 28px rgba(30, 35, 55, 0.12);
        padding: 20px;
    }

    .home-review-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(30, 35, 55, 0.08);
    }

    .home-review-head-main {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .home-review-head-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
    }

    .home-review-head-ratings {
        flex-shrink: 0;
        margin-bottom: 0 !important;
        direction: ltr;
        align-self: center;
    }

    .home-review-body {
        flex: 1 1 auto;
        min-height: 0;
    }

    .home-review-card .review-card-text {
        margin-bottom: 0 !important;
    }

    .home-review-like-wrap {
        margin-top: 14px;
    }

    .myTestimonialSwiper .review-card.flex-card > div:first-child {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    .myTestimonialSwiper .review-card-text {
        flex: 1 1 auto;
        margin-bottom: 0 !important;
    }

    .myTestimonialSwiper .review-text-wrapper {
        max-height: none;
        height: 100%;
    }

    .myTestimonialSwiper .review-card-student {
        margin-top: 0.75rem !important;
    }

    @media (max-width: 767px) {
        .myTestimonialSwiper .home-review-card {
            padding: 16px;
        }
    }

    .review-card-student {
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .review-card-student-avatar-wrap {
        position: relative;
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
    }

    .review-card-student-avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #fff;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
        display: block;
    }

    .review-card-student-avatar-fallback {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f1f3f5;
        color: #7a7a7a;
        border: 2px solid #fff;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
    }

    .review-card-level-badge {
        position: absolute;
        right: -8px;
        bottom: -7px;
        display: inline-flex;
        align-items: center;
        gap: 0.2rem;
        padding: 0.1rem 0.45rem;
        border-radius: 999px;
        font-size: 0.66rem;
        font-weight: 700;
        line-height: 1.2;
        color: #fff;
        background: linear-gradient(135deg, #b60000, #de2c2c);
        border: 2px solid #fff;
        box-shadow: 0 4px 10px rgba(182, 0, 0, 0.25);
        white-space: nowrap;
    }

    .review-card-level-badge i {
        font-size: 0.66rem;
    }

    @media (max-width: 600px) {
        .flex-card {
            min-height: 200px;
            padding: 1rem;
        }
    }

    /* تعليق عربي: حاوية النجوم مع تسميتي مقبول / ممتاز */
    .star-rating-with-labels {
        gap: 0.75rem;
    }
    .star-rating-with-labels .star-rating-label {
        white-space: nowrap;
    }
    /* تعليق عربي: نجوم التقييم داخل كرت الإضافة */
    .star-rating-inline {
        display: inline-flex;
        gap: 3px;
        font-size: 1.5rem;
        cursor: pointer;
        justify-content: center;
    }

    .star-rating-inline .star {
        color: #ddd;
        transition: color 0.2s ease;
    }

    .star-rating-inline .star:hover,
    .star-rating-inline .star.active {
        color: #ffc107;
    }

    .star-rating-inline .star.active ~ .star {
        color: #ddd;
    }

    /* تعليق عربي: عرض النموذج يتبع الحاوية — عرض ثابت 400px كان يسبب overflow أفقي على الموبايل */
    form.js-add-testimonial-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    /* عمود البوتستراب: يسمح بانكماش المحتوى داخل flex/grid بدل تجاوز العرض */
    #review.student-reviews .row > [class*="col-"] {
        min-width: 0;
    }

    /* =========================
       كرت إضافة التقييم (Add Testimonial Card)
       ========================= */

    /* تعليق عربي: الكرت الخاص بإضافة التقييم - تصميم عصري بخلفية ناعمة وحد علوي ملوّن */
    .add-testimonial-card {
        position: relative; /* نحتاجها للشارة فوق الكرت */
        border: none;
        background: radial-gradient(circle at top right, #fffdfd 0%, #fff7f7 45%, #ffffff 100%);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
        border-radius: 20px;
        padding: 1.8rem 1.6rem;
        padding-top: 2.6rem; /* مساحة إضافية للشارة العلوية */
        overflow: hidden;
        cursor: default; /* حتى ما يبين كأنه زر */
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* تعليق عربي: لا نغيّر الخلفية عند الـ hover (إلغاء الأبيض) */
    .add-testimonial-card:hover {
        background: radial-gradient(circle at top right, #fffdfd 0%, #fff7f7 45%, #ffffff 100%);
    }

    /* تعليق عربي: هيدر الكرت (العنوان + النص التوضيحي + الشارة) */
    .add-testimonial-header {
        position: relative; /* مرجع لموضع الشارة */
        text-align: center;
    }

    /* تعليق عربي: شارة "تقييمك يهمنا" مثبتة على إطار الكرت */
    .add-testimonial-header .add-testimonial-badge {
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;

        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.15rem 0.9rem;
        border-radius: 999px;
        background: rgba(182, 0, 0, 0.96);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .add-testimonial-header .add-testimonial-title {
        font-size: 1.1rem;
        font-weight: 800;
        color: #222;
        margin-bottom: 0.25rem;
    }

    .add-testimonial-header .add-testimonial-subtitle {
        font-size: 0.9rem;
        color: #6c757d;
        margin: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    /* تعليق عربي: صندوق إدخال التجربة (العنوان + مربع الكتابة) */
    .add-testimonial-body {
        max-width: 100%;
        min-width: 0;
    }
    .testimonial-input-box {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        text-align: right; /* لأن المحتوى عربي */
    }

    /* تعليق عربي: الحاوية حول textarea - إطار أحمر وخلفية لطيفة */
    .testimonial-input-body {
        position: relative;
        border-radius: 16px;
        border: 1px solid #b60000; /* لون الإطار الأساسي المطلوب */
        background: radial-gradient(circle at top right, #ffffff 0%, #f7f8ff 55%, #ffffff 100%);
        padding: 0.75rem;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* تعليق عربي: علامة تنصيص ديكورية خفيفة في أعلى الصندوق */
    .testimonial-input-body::before {
        content: '“';
        position: absolute;
        top: -14px;
        left: 18px;
        font-size: 2.5rem;
        color: rgba(184, 0, 0, 0.18);
        font-family: serif;
    }

    /* تعليق عربي: textarea داخل كرت التجربة */
    .testimonial-input-body textarea {
        border: none;
        background: transparent;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 130px;
        resize: vertical;
        font-size: 0.95rem;
        line-height: 1.7;
        color: #222;
        padding: 0.4rem 0.5rem 0.3rem 0.5rem;
        box-shadow: none;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    .testimonial-input-body textarea::placeholder {
        color: #adb5bd;
    }

    /* تعليق عربي: إلغاء الإطار الأزرق من البوتستراب عند التركيز */
    .testimonial-input-body textarea:focus,
    .testimonial-input-body .form-control:focus {
        outline: none !important;              /* بدون إطار أزرق خارجي */
        border-color: transparent !important;  /* لا نريد إطار إضافي داخلي */
        box-shadow: none !important;           /* بدون ظل أزرق */
    }

    .testimonial-input-body textarea,
    .testimonial-input-body .form-control {
        box-shadow: none !important;
    }

    /* تعليق عربي: عند التركيز يبقى نفس لون الإطار بدون توهج */
    .testimonial-input-body:focus-within {
        border-color: #b60000;
        box-shadow: none !important;
    }

    /* تعليق عربي: ملاحظة صغيرة أسفل حقل الكتابة (إن استُخدمت) */
    .testimonial-input-footer {
        margin-top: 0.4rem;
        text-align: left;
    }

    .testimonial-input-footer .input-hint {
        font-size: 0.75rem;
        color: #999;
    }

    .testimonial-input-footer .input-counter {
        font-size: 0.8rem;
        color: #b60000;
        font-weight: 600;
    }

    /* تعليق عربي: تحسين الكرت على الشاشات الصغيرة */
    @media (max-width: 575px) {
        .add-testimonial-card {
            padding: 1.4rem 1.1rem;
            padding-top: 2.6rem;
        }

        .add-testimonial-header .add-testimonial-title {
            font-size: 1rem;
        }

        .add-testimonial-header .add-testimonial-subtitle {
            font-size: 0.82rem;
        }

        .star-rating-with-labels {
            gap: 0.4rem;
        }
        .star-rating-with-labels .star-rating-label {
            white-space: normal;
            text-align: center;
            max-width: 4.5rem;
            line-height: 1.2;
        }
        .star-rating-inline {
            font-size: 1.28rem;
        }

        .testimonial-input-body textarea {
            min-height: 110px;
            font-size: 0.9rem;
        }
    }

    /* تعليق عربي: جعل كرت التقييم متمركزاً داخل السلايد وعرضه مناسب */
    .myTestimonialSwiper .swiper-slide {
        display: flex;
        justify-content: center;
    }

    .myTestimonialSwiper .swiper-slide .review-card.flex-card {
        width: 100%;
        max-width: 420px;
    }

    /* تعليق عربي: زر "إرسال تجربتي" بلون الهوية الأساسية #b60000 */
    .btn-submit-testimonial {
        background-color: #b60000;   /* لون خلفية الزر */
        border-color: #b60000;       /* نفس اللون للـ border */
        color: #fff;                 /* لون خط أبيض */
        font-weight: 600;            /* خط أوضح شوي */
        border-radius: 999px;        /* زر كابسولي دائري */
        padding: 0.55rem 1.4rem;     /* مسافة مريحة داخل الزر */
        transition: all 0.2s ease;   /* أنيميشن ناعم للهفر */
    }

    /* تعليق عربي: تأثير الزر عند المرور بالماوس */
    .btn-submit-testimonial:hover {
        background-color: #8b0000;   /* درجة أغمق من نفس اللون */
        border-color: #8b0000;
        color: #fff;
    }

    /* تعليق عربي: إلغاء الهالة الزرقاء وجعل الفوكس بلون خفيف من نفس اللون */
    .btn-submit-testimonial:focus,
    .btn-submit-testimonial:active {
        outline: none !important;
        box-shadow: 0 0 0 0.12rem rgba(182, 0, 0, 0.35); /* هالة خفيفة حمراء بدل الأزرق */
    }

    /* تعليق عربي: شكل الزر عندما يكون معطَّلاً أثناء الإرسال */
    .btn-submit-testimonial:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }
