@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@200..1000&display=swap');

:root {
    --main-Color: #f29125;
    --secondary-Color: #0555a2;
    --border-color: #e0e0e0;
    /* Brand gold (from footer logo) */
    --brand-gold: #d4af37;

    /* Shared gold gradient (used in badges/buttons) */
    --gold-gradient: linear-gradient(
        135deg,
        #fff6b7 0%,
        #f5d76e 20%,
        #d4af37 45%,
        #b8962e 60%,
        #f5d76e 80%,
        #fff6b7 100%
    );

    /* Light theme tokens (default) */
    --bg-light: #f6f8fb;
    --bg-white: #ffffff;
    --text-primary: #0b1b2b;
    --text-secondary: rgba(11, 27, 43, 0.72);
    --text-muted: rgba(11, 27, 43, 0.52);
    --border-light: rgba(11, 27, 43, 0.12);
    --shadow-sm: 0 10px 22px rgba(11, 27, 43, 0.08);
    --shadow-lg: 0 18px 50px rgba(11, 27, 43, 0.14);

    /* Hero tokens */
    --hero-bg: #f6f8fb;
    --hero-title: #0b1b2b;
    --hero-muted: rgba(11, 27, 43, 0.72);
    --hero-title-shadow: none;
    --hero-badge-bg: rgba(5, 85, 162, 0.08);
    --hero-badge-border: rgba(5, 85, 162, 0.16);
    --hero-badge-text: rgba(11, 27, 43, 0.88);
    --hero-dot: rgba(11, 27, 43, 0.28);
    --hero-bg-img-opacity: 0.14;
    --hero-after-bg:
        radial-gradient(circle at 15% 20%, rgba(242, 145, 37, 0.10) 0%, transparent 58%),
        radial-gradient(circle at 80% 75%, rgba(5, 85, 162, 0.12) 0%, transparent 58%);
    --hero-img-shadow: 0 18px 55px rgba(11, 27, 43, 0.18);
    --hero-card-bg: rgba(255, 255, 255, 0.72);
    --hero-card-border: rgba(11, 27, 43, 0.12);
    --hero-card-title: rgba(11, 27, 43, 0.92);
    --hero-card-text: rgba(11, 27, 43, 0.72);
}

html[data-bs-theme="dark"] {
    --bg-light: #081421;
    --bg-white: #0f2233;
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.68);
    --text-muted: rgba(255, 255, 255, 0.55);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 18px 55px rgba(0, 0, 0, 0.42);

    --hero-bg: #0b1b2b;
    --hero-title: #ffffff;
    --hero-muted: rgba(255, 255, 255, 0.7);
    --hero-title-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --hero-badge-bg: rgba(255, 255, 255, 0.1);
    --hero-badge-border: rgba(255, 255, 255, 0.2);
    --hero-badge-text: rgba(255, 255, 255, 0.82);
    --hero-dot: rgba(255, 255, 255, 0.35);
    --hero-bg-img-opacity: 0.08;
    --hero-after-bg:
        radial-gradient(circle at 15% 20%, rgba(242, 145, 37, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 75%, rgba(5, 85, 162, 0.22) 0%, transparent 55%);
    --hero-img-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
    --hero-card-bg: rgba(255, 255, 255, 0.06);
    --hero-card-border: rgba(255, 255, 255, 0.12);
    --hero-card-title: rgba(255, 255, 255, 0.95);
    --hero-card-text: rgba(255, 255, 255, 0.72);
}

/* Header: use gold instead of orange – تطبيق اللون الذهبي على كل عناصر الهيدر */
#siteHeader,
#siteHeader .top-header,
#siteHeader .buttom-header {
    --main-Color: var(--brand-gold);
}

#siteHeader .nav-link,
#siteHeader .buttom-header .nav-link {
    color: var(--text-primary);
}

#siteHeader .nav-link:hover,
#siteHeader .nav-link.active,
#siteHeader .buttom-header .nav-link:hover,
#siteHeader .buttom-header .nav-link.active {
    color: var(--brand-gold) !important;
}

/* Header social (bottom header - left) */
.buttom-header .navbar .container {
    position: relative;
}

.header-social {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    gap: 10px;
    align-items: center;
    z-index: 5;
}

.header-social__icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-social__link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(5, 85, 162, 0.06);
    border: 1px solid rgba(5, 85, 162, 0.12);
    color: var(--brand-gold);
    transition: all 0.2s ease;
}

.header-social__link:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--brand-gold);
    transform: translateY(-2px);
}

.header-theme-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(5, 85, 162, 0.06);
    border: 1px solid rgba(5, 85, 162, 0.12);
    color: var(--secondary-Color);
    transition: all 0.2s ease;
    cursor: pointer;
}

@media (max-width: 991px) {
    .buttom-header .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-social {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        gap: 8px;
    }

    /* إخفاء أيقونات السوشيال على الجوال، والإبقاء على زر الثيم فقط */
    .header-social__icons {
        display: none;
    }

    .header-theme-toggle {
        margin-inline-end: 6px;
    }
}

.header-theme-toggle:hover {
    background: rgba(212, 175, 55, 0.14);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--brand-gold);
    transform: translateY(-2px);
}
body {
    font-family: cairo !important;
    background-color: var(--bg-light);
    color: var(--text-primary);
   
}

a {
    text-decoration: none !important;
    /* color: white !important; */
}

.top-header {
    background-color: white;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #f2f2f2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* الوضع النهاري: خلفية سوداء للوغو في الهيدر */
#siteHeader:not([data-bs-theme="dark"]) .top-header .col-auto > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border-radius: 8px;
    padding: 4px 8px;
    line-height: 0;
}

.left-header a {
    margin-left: 20px;
    border-left: 1px solid var(--secondary-Color);
    padding-left: 15px;
    transition: all 0.3s;
    color: var(--secondary-Color) !important;
}

.left-header a i {
    color: var(--secondary-Color) !important;
}

.left-header a:hover {
    color: var(--secondary-Color) !important;
    opacity: 0.8;
}

.left-header a:hover i {
    color: var(--secondary-Color) !important;
}


.menu-icon {
    border-radius: 3px !important;
    box-shadow: none !important;
}

.menu-icon .fa-user,
.menu-icon .fa-cart-shopping {
    color: var(--brand-gold) !important;
}

.nav-link {
    font-weight: 600 !important;
}

.buttom-header {
    box-shadow: 3px 3px 3px #ccc;
}

/* Bottom header vertical alignment (links same level) */
.buttom-header .navbar {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 56px;
}

.buttom-header .navbar-nav .nav-link {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 56px;
    display: flex;
    align-items: center;
}

.buttom-header .navbar-collapse {
    align-items: center;
}

/* Header Dark Mode (Bootstrap data-bs-theme) */
#siteHeader[data-bs-theme="dark"] .top-header {
    /* خلفية داكنة ثابتة قريبة من صورة المثال */
    background-color: #020817;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

#siteHeader[data-bs-theme="dark"] .left-header a {
    color: rgba(255, 255, 255, 0.85) !important;
    border-left-color: rgba(255, 255, 255, 0.18);
}

#siteHeader[data-bs-theme="dark"] .left-header a i {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* زر البحث في الهيدر — لون ذهبي مثل أزرار الهيرو */
#siteHeader .top-header .header-search-btn.btn-gold,
#siteHeader .top-header .header-search-form .btn-gold {
    background: var(--gold-gradient) !important;
    background-size: 200% 200% !important;
    color: #0b1b2b !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.22);
    padding: 0.375rem 1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}
#siteHeader .top-header .header-search-btn.btn-gold:hover,
#siteHeader .top-header .header-search-form .btn-gold:hover {
    background-position: 100% 0 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.28);
    color: #0b1b2b !important;
}

#siteHeader[data-bs-theme="dark"] .top-header .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
}

#siteHeader[data-bs-theme="dark"] .top-header .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#siteHeader[data-bs-theme="dark"] .buttom-header {
    /* نفس لون الخلفية العلوية لضبط التناسق */
    background-color: #020817;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

/* إلغاء خلفية Bootstrap للـ nav الداخلي في الوضع الليلي */
#siteHeader[data-bs-theme="dark"] .buttom-header .navbar,
#siteHeader[data-bs-theme="dark"] .buttom-header .navbar.bg-body-tertiary {
    background-color: #020817 !important;
    background: #020817 !important;
}

/* Navbar links color confirmation in dark mode */
#siteHeader[data-bs-theme="dark"] .buttom-header .nav-link {
    color: var(--text-primary);
}

/* Header social & theme toggle in dark mode */
#siteHeader[data-bs-theme="dark"] .header-social__link,
#siteHeader[data-bs-theme="dark"] .header-theme-toggle {
    background-color: #020817;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--brand-gold);
}

#siteHeader[data-bs-theme="dark"] .header-social__link:hover,
#siteHeader[data-bs-theme="dark"] .header-theme-toggle:hover {
    background-color: #111827;
    border-color: rgba(212, 175, 55, 0.55);
    color: var(--brand-gold);
}

/* /////////////////////////////////////////////////// */
/* ////////////////Hero Swiper Section//////////////// */
/* /////////////////////////////////////////////////// */

.hero-swiper-section {
    height: calc(100vh - var(--site-header-height, 0px));
    min-height: calc(100vh - var(--site-header-height, 0px));
    height: calc(100dvh - var(--site-header-height, 0px));
    min-height: calc(100dvh - var(--site-header-height, 0px));
    position: relative;
    overflow: hidden;
}

.hero-swiper-section .hero-swiper {
    height: 100%;
    width: 100%;
}

.hero-swiper-section .swiper-slide.hero-slide {
    height: 100%;
    position: relative;
}

.hero-swiper-section .hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--hero-bg);
}

.hero-swiper-section .hero-slide-content-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper-section .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 100%;
}

.hero-swiper-section .hero-content .hero-title,
.hero-swiper-section .hero-content .hero-description {
    width: 100%;
}

.hero-swiper-section .hero-actions {
    width: 100%;
    display: flex;
    justify-content: center !important;
}

@media (min-width: 992px) {
    .hero-swiper-section .hero-layout-center,
    .hero-swiper-section .hero-layout-right,
    .hero-swiper-section .hero-layout-left {
        justify-content: center !important;
    }

    .hero-swiper-section .hero-content.hero-pos-center,
    .hero-swiper-section .hero-content.hero-pos-right,
    .hero-swiper-section .hero-content.hero-pos-left {
        align-items: center;
        text-align: center;
        margin-inline: auto;
    }

    .hero-swiper-section .hero-content.hero-pos-center .hero-actions,
    .hero-swiper-section .hero-content.hero-pos-right .hero-actions,
    .hero-swiper-section .hero-content.hero-pos-left .hero-actions {
        justify-content: center !important;
        flex-wrap: nowrap;
    }

    .hero-swiper-section .hero-content-col {
        flex: 0 0 auto;
        width: min(760px, 100%);
    }

    .hero-swiper-section .hero-actions {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .hero-swiper-section .hero-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        white-space: nowrap;
        padding: 12px 22px;
        font-size: 1rem;
        line-height: 1;
    }
}

.hero-swiper-section .hero-image-col {
    align-self: stretch;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper-section .hero-images {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper-section .hero-main-image {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper-section .hero-main-image img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(var(--hero-img-shadow));
}

.hero-swiper-section .swiper-button-prev,
.hero-swiper-section .swiper-button-next {
    color: var(--hero-title);
    width: 44px;
    height: 56px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 0;
    transition: background 0.2s ease;
}

.hero-swiper-section .swiper-button-prev:hover,
.hero-swiper-section .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero-swiper-section .swiper-button-prev::after,
.hero-swiper-section .swiper-button-next::after {
    font-size: 1.25rem;
}

.hero-swiper-section .swiper-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-swiper-section .swiper-pagination-bullet {
    width: 28px;
    height: 4px;
    margin: 0 !important;
    border-radius: 2px;
    background: rgba(212, 175, 55, 0.35);
    opacity: 1;
    transition: background 0.2s ease, width 0.2s ease;
}

.hero-swiper-section .swiper-pagination-bullet-active {
    background: rgba(212, 175, 55, 1);
    width: 36px;
}

/* /////////////////////////////////////////////////// */
/* ////////////////Hero Section (legacy)////////////// */
/* /////////////////////////////////////////////////// */

.hero-section {
    background: var(--hero-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/banner-two-shape-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--hero-bg-img-opacity);
    pointer-events: none;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-after-bg);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--hero-badge-bg);
    color: var(--hero-badge-text);
    border: 1px solid var(--hero-badge-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--hero-title);
    text-shadow: var(--hero-title-shadow);
}

.hero-title .text-primary {
    color: var(--main-Color) !important;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--hero-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions .btn-primary {
    background: var(--main-Color);
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-actions .btn-primary:hover {
    background: #ffab4f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(242, 145, 37, 0.28);
}

/* Gold button (hero) */
.hero-actions .btn-gold {
    background: linear-gradient(
        135deg,
        #fff6b7 0%,
        #f5d76e 20%,
        #d4af37 45%,
        #b8962e 60%,
        #f5d76e 80%,
        #fff6b7 100%
    ) !important;
    background-size: 200% 200% !important;
    color: #0b1b2b !important;
    box-shadow: 0 14px 28px rgba(212, 175, 55, 0.22);
    position: relative;
    overflow: hidden;
    border-radius: 5px !important;
}

.hero-actions .btn-outline-light.hero-btn-outline {
    border-radius: 5px;
    border-width: 2px;
    border-color: rgba(212, 175, 55, 0.75) !important;
    color: #f5d76e !important;
    background: transparent !important;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.hero-actions .btn-outline-light.hero-btn-outline:hover {
    background: linear-gradient(
        135deg,
        #fff6b7 0%,
        #f5d76e 20%,
        #d4af37 45%,
        #b8962e 60%,
        #f5d76e 80%,
        #fff6b7 100%
    ) !important;
    background-size: 200% 200% !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    color: #0b1b2b !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(212, 175, 55, 0.22);
}

.hero-actions .btn-gold::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    width: 50%;
    height: 140%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: rotate(18deg);
    transition: left 0.5s ease;
}

.hero-actions .btn-gold:hover {
    transform: translateY(-2px);
    background-position: 100% 0 !important;
    box-shadow: 0 18px 36px rgba(212, 175, 55, 0.28);
}

.hero-actions .btn-gold:hover::before {
    left: 120%;
}

.hero-actions .btn-gold:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.hero-stats {
    margin-top: 30px;
}

.stats-dots {
    margin-left: 10px;
}

.stats-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hero-dot);
}

.stats-text {
    font-size: 1rem;
    color: var(--hero-muted);
    font-weight: 600;
}

/* Hero Images Section */
.hero-images {
    position: relative;
    height: 500px;
    z-index: 3;
}

.hero-main-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 10px;
}

.hero-main-image img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(var(--hero-img-shadow));
}

.graduation-icon {
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

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

.course-cards {
    position: relative;
    height: 100%;
}

.course-card {
    background: var(--hero-card-bg);
    border: 1px solid var(--hero-card-border);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    position: absolute;
    transition: transform 0.3s;
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.course-card.card-1 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 280px;
    z-index: 2;
}

.course-card.card-2 {
    top: 10%;
    right: 50px;
    width: 200px;
    height: 250px;
    z-index: 1;
}

.course-card.card-3 {
    bottom: 10%;
    right: 100px;
    width: 200px;
    height: 300px;
    z-index: 1;
}

.course-badge {
    display: inline-block;
    background: var(--main-Color);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.course-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hero-card-title);
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main-Color);
    margin-bottom: 10px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--hero-card-text);
}

.course-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--hero-card-bg);
    border-radius: 10px;
    border: 1px dashed var(--hero-card-border);
    color: var(--hero-card-text);
    font-size: 0.9rem;
}

.experience-badge {
    bottom: 20px;
    left: 20px;
    background: var(--hero-card-bg);
    border: 1px solid var(--hero-card-border);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.experience-badge i {
    font-size: 1.5rem;
    color: var(--main-Color);
}

.experience-badge span {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero swiper – occupy viewport height minus header on mobile */
    .hero-swiper-section {
        height: calc(100vh - var(--site-header-height, 0px));
        min-height: calc(100vh - var(--site-header-height, 0px));
        height: calc(100dvh - var(--site-header-height, 0px));
        min-height: calc(100dvh - var(--site-header-height, 0px));
    }

    .hero-swiper-section .hero-swiper,
    .hero-swiper-section .swiper-slide.hero-slide {
        height: 100%;
        min-height: 100%;
    }

    .hero-swiper-section .hero-slide-content-wrapper {
        height: 100%;
        min-height: 100%;
    }

    /* Hero swiper – إظهار الصورة ومنحها ارتفاعاً على الجوال */
    .hero-swiper-section .hero-image-col {
        min-height: 220px;
    }

    .hero-swiper-section .hero-images {
        min-height: 220px;
    }

    /* Hero swiper – توسيط كل العناصر على الجوال */
    .hero-swiper-section .hero-content {
        align-items: center;
        text-align: center;
        transform: translateY(-36px);
    }

    .hero-swiper-section .hero-actions {
        justify-content: center;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }

    .hero-swiper-section .hero-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .hero-swiper-section .hero-actions .btn i {
        margin-inline-start: 0.25rem !important;
    }

    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-images {
        height: 400px;
        margin-top: 30px;
    }

    .hero-main-image {
        position: relative;
        height: 100%;
    }

    .hero-main-image img {
        height: 100%;
        width: auto;
        max-width: none;
    }
    
    .course-card.card-1,
    .course-card.card-2,
    .course-card.card-3 {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
        transform: none;
    }
    
    .course-card.card-2,
    .course-card.card-3 {
        height: 200px;
    }
}

/* /////////////////////////////////////////////////// */
/* ////////////////Classes Section/////////////////// */
/* /////////////////////////////////////////////////// */

.classes-section {
    background: var(--bg-light);
    padding: 48px 0 40px;
}

.classes-section.py-5 {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
}

/* Homepage classes: grid + glow + gradient (مثل المرجع الداكن) */
.classes-section.homepage-classes {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.classes-section.homepage-classes > .container {
    position: relative;
    z-index: 1;
}

html[data-bs-theme="dark"] .classes-section.homepage-classes {
    background: transparent;
}

html[data-bs-theme="dark"] .classes-section.homepage-classes::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 55% at 50% 100%, rgba(5, 85, 162, 0.42) 0%, transparent 58%),
        radial-gradient(ellipse 50% 42% at 92% 18%, rgba(34, 211, 238, 0.12) 0%, transparent 52%),
        radial-gradient(ellipse 42% 38% at 6% 48%, rgba(129, 140, 248, 0.1) 0%, transparent 55%),
        linear-gradient(168deg, #0a101c 0%, #070c16 42%, #03060d 100%);
}

html[data-bs-theme="dark"] .classes-section.homepage-classes::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.075) 1px, transparent 1px);
    background-size: 52px 52px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% 42%, #000 0%, transparent 74%);
    mask-image: radial-gradient(ellipse 88% 72% at 50% 42%, #000 0%, transparent 74%);
}

html[data-bs-theme="light"] .classes-section.homepage-classes {
    background: var(--bg-light);
}

html[data-bs-theme="light"] .classes-section.homepage-classes::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 50% at 50% 100%, rgba(5, 85, 162, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 88% 12%, rgba(242, 145, 37, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-light) 0%, rgba(246, 248, 251, 0.96) 100%);
}

html[data-bs-theme="light"] .classes-section.homepage-classes::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
    background-image:
        linear-gradient(rgba(11, 27, 43, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 27, 43, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 0%, transparent 75%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-gold);
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.class-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.class-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.class-card {
    background: var(--bg-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    outline: none !important;
    cursor: pointer;
}

.class-card-link:hover .class-card,
.class-card-wrapper:hover .class-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.55);
}

.class-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-Color) 0%, var(--main-Color) 100%);
}

/* عرض المواد: 3 أعمدة ونسبة الصورة 998×1382 ثابتة */
.subjects-section .class-card-image {
    aspect-ratio: 998 / 1382;
    border-radius: 5px 5px 0 0;
}
.subjects-section .class-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.subjects-section .class-card-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.class-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.class-card:hover .class-card-image img {
    transform: scale(1.1);
}

.class-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-Color) 0%, var(--main-Color) 100%);
}

.class-card-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.class-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-gradient);
    background-size: 200% 200%;
    color: #0b1b2b;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 800;
    z-index: 2;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.18);
}

.class-card-body {
    background: var(--bg-white);
    padding: 25px;
    padding-top: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.class-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.class-card-features {
    text-align: right;
    width: 100%;
    padding-inline-start: 0;
    max-height: 10rem;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

/* Homepage: allow features list to expand (no inner scroll) */
.homepage-classes .class-card-features {
    max-height: none;
    overflow: visible;
}

.class-card-features-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.class-card-features li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    margin-bottom: 1.15rem;
}

.class-card-features li:last-child {
    margin-bottom: 0;
}

.class-card-feature-label {
    flex: 0 1 auto;
}

.class-card-feature-icon {
    flex-shrink: 0;
    margin-inline-end: 0.5rem;
}

.class-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
    min-height: 60px;
}

/* Price Section */
.class-card-price {
    margin-bottom: 20px;
    text-align: right;
}

.price-free-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.price-free {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-gold);
    display: inline-block;
}

.price-label-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.price-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-gold);
    display: inline-block;
}

.subject-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.subject-badge.bg-success { background-color: #28a745; }
.subject-badge.bg-warning { background-color: #ffc107; color: #333; }
.subject-badge.bg-info { background-color: #17a2b8; }
.subject-badge.bg-primary { background-color: #007bff; }
.subject-badge.bg-secondary { background-color: #6c757d; }

.price-hidden-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.price-hidden {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.5;
    display: inline-block;
}

.price-access-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.price-access {
    font-size: 0.9rem;
    font-weight: 600;
    color: #28a745;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.price-contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.price-contact {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.7;
    display: inline-block;
}

.price-content {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-direction: row-reverse;
}

.price-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1;
}

.price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-gold);
}

.price-old {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--text-muted);
}

.class-card-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

.class-card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.class-card-stats .stat-item.stat-subjects {
    background: linear-gradient(135deg, rgba(5, 85, 162, 0.12) 0%, rgba(5, 85, 162, 0.18) 100%);
    padding: 14px 24px;
    border-radius: 30px;
    border: 2px solid rgba(5, 85, 162, 0.25);
    box-shadow: 0 3px 10px rgba(5, 85, 162, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.class-card-stats .stat-item.stat-subjects::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.class-card-stats .stat-item.stat-subjects:hover {
    background: linear-gradient(135deg, rgba(5, 85, 162, 0.2) 0%, rgba(5, 85, 162, 0.3) 100%);
    border-color: var(--secondary-Color);
    box-shadow: 0 5px 15px rgba(5, 85, 162, 0.25);
    transform: translateY(-3px) scale(1.02);
}

.class-card-stats .stat-item.stat-subjects:hover::before {
    left: 100%;
}

.stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(5, 85, 162, 0.15);
    border-radius: 50%;
    border: 2px solid rgba(5, 85, 162, 0.3);
    transition: all 0.3s ease;
}

.class-card-stats .stat-item.stat-subjects:hover .stat-icon-wrapper {
    background: rgba(5, 85, 162, 0.25);
    border-color: var(--secondary-Color);
    transform: rotate(10deg) scale(1.1);
}

.class-card-stats .stat-item i {
    color: var(--secondary-Color);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.class-card-stats .stat-item.stat-subjects:hover i {
    color: var(--secondary-Color);
    transform: scale(1.1);
}

.stat-content {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-direction: row-reverse;
}

.class-card-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary-Color);
    text-shadow: 0 2px 4px rgba(5, 85, 162, 0.15);
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.class-card-stats .stat-item.stat-subjects:hover .stat-value {
    transform: scale(1.1);
    color: var(--secondary-Color);
}

.class-card-stats .stat-label {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.class-card-stats .stat-item.stat-subjects:hover .stat-label {
    color: var(--secondary-Color);
    font-weight: 700;
}

.class-card-buttons {
    margin-top: auto;
    padding-top: 1rem;
    gap: 0.5rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.class-card-buttons .class-card-btn {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
}

.class-card-btn.enroll-btn {
    background: var(--gold-gradient);
    background-size: 200% 200%;
    color: #0b1b2b;
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.18);
}

.class-card-wrapper:hover .class-card-btn.enroll-btn {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(212, 175, 55, 0.28);
    color: #0b1b2b;
}

.class-card-btn.subscribe-btn {
    background: transparent;
    background-size: auto;
    color: var(--brand-gold);
    border: 2px solid rgba(212, 175, 55, 0.75);
    box-shadow: none;
}

.class-card-btn.subscribe-btn:hover {
    background: var(--gold-gradient);
    background-size: 200% 200%;
    color: #0b1b2b;
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(212, 175, 55, 0.28);
}

.class-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    background-size: 200% 200%;
    color: #0b1b2b;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.18);
}

.class-card-btn:hover {
    background-position: 100% 0;
    color: #0b1b2b;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(212, 175, 55, 0.28);
}

.class-card-btn i {
    transition: transform 0.3s;
}

.class-card-btn:hover i {
    transform: translateX(-5px);
}

/* Responsive Classes Section */
@media (max-width: 991px) {
    .classes-section {
        padding: 36px 0 32px;
    }
    
    .classes-section.py-5 {
        padding-top: 36px !important;
        padding-bottom: 32px !important;
    }
    
    .reviews-section {
        padding: 32px 0 40px;
    }
    
    .reviews-section.py-5 {
        padding-top: 32px !important;
        padding-bottom: 40px !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
}

@media (max-width: 768px) {
    .classes-section {
        padding: 20px 0 16px;
    }
    
    .classes-section.py-5 {
        padding-top: 20px !important;
        padding-bottom: 16px !important;
    }
    
    .classes-swiper-section {
        padding-bottom: 0.75rem;
    }
    
    .classes-swiper .swiper-pagination {
        margin-top: 0.5rem;
    }
    
    .classes-section .row.mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .reviews-section {
        padding: 20px 0 28px;
    }
    
    .reviews-section.py-5 {
        padding-top: 20px !important;
        padding-bottom: 28px !important;
    }
    
    .reviews-swiper-section {
        padding-bottom: 0.75rem;
    }
    
    .reviews-swiper .swiper-pagination {
        margin-top: 0.5rem;
    }
    
    .reviews-section .row.mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .reviews-section .mt-3 {
        margin-top: 0.75rem !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .class-card-body {
        padding: 20px;
    }
    
    .class-card-title {
        font-size: 1.25rem;
    }

    .homepage-classes .class-card-buttons {
        gap: 0.4rem;
    }

    .homepage-classes .class-card-btn,
    .homepage-classes .class-card-btn.enroll-btn,
    .homepage-classes .class-card-btn.subscribe-btn {
        font-size: 0.9rem;
        padding: 10px 12px;
        line-height: 1.1;
        white-space: nowrap;
    }
}

/* Classes Swiper (Homepage) */
.classes-swiper-section {
    padding-bottom: 1.25rem;
}

.classes-swiper {
    overflow: hidden;
    padding: 0 2px;
}

.classes-swiper .swiper-wrapper {
    align-items: flex-start;
}

.classes-swiper .swiper-slide {
    height: auto;
    display: flex;
    min-height: 0;
}

@media (max-width: 991px) {
    .classes-swiper .swiper-slide {
        width: 82%;
    }
}

.classes-swiper .swiper-slide .class-card-wrapper {
    width: 100%;
}

.classes-swiper .swiper-slide .class-card-link {
    display: flex;
    width: 100%;
}

.classes-swiper .swiper-slide .class-card {
    width: 100%;
    flex: 1;
}

.classes-swiper-nav-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.classes-swiper-section .swiper-button-prev,
.classes-swiper-section .swiper-button-next {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin-top: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.classes-swiper-section .swiper-button-prev::after,
.classes-swiper-section .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.classes-swiper-section .swiper-button-prev:hover,
.classes-swiper-section .swiper-button-next:hover {
    background: var(--bg-light);
    border-color: var(--secondary-Color);
    color: var(--secondary-Color);
    box-shadow: var(--shadow-lg);
}

.classes-swiper-section .swiper-button-prev.swiper-button-disabled,
.classes-swiper-section .swiper-button-next.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.classes-swiper .swiper-pagination {
    position: relative;
    margin-top: 0.75rem;
}

.classes-swiper .swiper-pagination-bullet {
    background: rgba(212, 175, 55, 0.35);
    opacity: 0.7;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    transition: opacity 0.2s, background 0.2s;
}

.classes-swiper .swiper-pagination-bullet-active {
    background: rgba(212, 175, 55, 1);
    opacity: 1;
}

/* Reviews Section (Homepage) */
.reviews-section {
    background: var(--bg-light);
    padding: 40px 0 48px;
}

.reviews-section.py-5 {
    padding-top: 40px !important;
    padding-bottom: 48px !important;
}

.reviews-swiper-section {
    padding-bottom: 1.25rem;
}

.reviews-swiper {
    overflow: hidden;
    padding: 0 2px;
}

.reviews-swiper .swiper-wrapper {
    align-items: stretch;
}

.reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.reviews-swiper .swiper-slide .review-card {
    width: 100%;
    flex: 1;
}

.review-card {
    background: var(--bg-white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.reviews-swiper .swiper-slide:hover .review-card {
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.55);
}

.review-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-photo-wrapper {
    display: flex;
    justify-content: center;
}

.review-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s;
}

.reviews-swiper .swiper-slide:hover .review-card .review-photo {
    transform: scale(1.1);
}

.review-photo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-Color) 0%, var(--main-Color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
}

.review-author-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.review-class-name {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.review-stars {
    font-size: 1rem;
}

.review-comment {
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

.reviews-swiper-nav-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* زر تقييم المنصة — نفس تصميم الزر الذهبي في الهيرو */
.reviews-section .btn-gold {
    background: linear-gradient(
        135deg,
        #fff6b7 0%,
        #f5d76e 20%,
        #d4af37 45%,
        #b8962e 60%,
        #f5d76e 80%,
        #fff6b7 100%
    ) !important;
    background-size: 200% 200% !important;
    color: #0b1b2b !important;
    border: none !important;
    padding: 15px 35px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    box-shadow: 0 14px 28px rgba(212, 175, 55, 0.22);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reviews-section .btn-gold::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    width: 50%;
    height: 140%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: rotate(18deg);
    transition: left 0.5s ease;
}

.reviews-section .btn-gold:hover {
    transform: translateY(-2px);
    background-position: 100% 0 !important;
    box-shadow: 0 18px 36px rgba(212, 175, 55, 0.28);
    color: #0b1b2b !important;
}

.reviews-section .btn-gold:hover::before {
    left: 120%;
}

.reviews-section .btn-gold:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    color: #0b1b2b !important;
}

.reviews-section .btn-gold.btn-sm {
    padding: 10px 24px !important;
    font-size: 1rem !important;
}

.reviews-swiper-section .swiper-button-prev,
.reviews-swiper-section .swiper-button-next {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin-top: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.reviews-swiper-section .swiper-button-prev::after,
.reviews-swiper-section .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.reviews-swiper-section .swiper-button-prev:hover,
.reviews-swiper-section .swiper-button-next:hover {
    background: var(--bg-light);
    border-color: var(--secondary-Color);
    color: var(--secondary-Color);
    box-shadow: var(--shadow-lg);
}

.reviews-swiper-section .swiper-button-prev.swiper-button-disabled,
.reviews-swiper-section .swiper-button-next.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.reviews-swiper .swiper-pagination {
    position: relative;
    margin-top: 0.75rem;
}

.reviews-swiper .swiper-pagination-bullet {
    background: rgba(212, 175, 55, 0.35);
    opacity: 0.7;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    transition: opacity 0.2s, background 0.2s;
}

.reviews-swiper .swiper-pagination-bullet-active {
    background: rgba(212, 175, 55, 1);
    opacity: 1;
}

.review-form-card {
    background: var(--bg-white);
    border-radius: 5px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-align: right;
}

.review-form .star-option {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.review-form .star-option input {
    margin-left: 0.35rem;
}

.review-form .star-label {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 20px 0 28px;
    }
    .review-form-card {
        padding: 1.25rem;
    }
}

/* Class Show Page Styles */
.class-show-section {
    min-height: 60vh;
}

.class-show-section .class-card-body {
    padding: 16px 12px;
    padding-top: 14px;
}

.class-show-section .class-card-title {
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .class-show-section .class-card-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .class-show-section .subjects-section {
        margin-top: 24px;
    }

    .class-show-section .subjects-section .section-title {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }

    .class-show-section .subjects-section .section-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
        line-height: 1.45;
    }

    .class-show-section .class-header {
        padding: 32px 0;
        margin-bottom: 24px;
    }

    .class-show-section .class-header-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .class-show-section .class-header-stage {
        font-size: 0.95rem;
        margin-bottom: 10px;
        gap: 6px;
    }

    .class-show-section .class-header-stage i {
        font-size: 0.85rem;
    }

    .class-show-section .class-header-description {
        font-size: 0.85rem;
        line-height: 1.55;
    }
}

@media (max-width: 575.98px) {
    .class-show-section .subjects-section .row {
        --bs-gutter-x: 0.3rem;
    }

    .class-show-section .subjects-section .section-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .class-show-section .subjects-section .section-description {
        font-size: 0.72rem;
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .class-show-section .class-card-body {
        padding: 6px 4px;
        padding-top: 6px;
    }

    .class-show-section .class-card-title {
        font-size: 0.58rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 3px;
        -webkit-line-clamp: 2;
    }

    .class-show-section .class-card-price {
        margin-bottom: 4px;
    }

    .class-show-section .class-card-price .price-amount,
    .class-show-section .class-card-price .price-label,
    .class-show-section .class-card-price .price-hidden,
    .class-show-section .class-card-price .price-access {
        font-size: 0.55rem !important;
    }

    .class-show-section .class-card-btn.enroll-btn {
        font-size: 0.52rem;
        font-weight: 700;
        padding: 5px 3px;
        gap: 2px;
        line-height: 1.1;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(212, 175, 55, 0.15);
    }

    .class-show-section .class-card-btn.enroll-btn i {
        font-size: 0.48rem;
        margin: 0 !important;
    }

    .class-show-section .subject-badge {
        font-size: 0;
        line-height: 0;
        padding: 3px;
        top: 3px;
        right: 3px;
        gap: 0;
        border-radius: 50%;
        max-width: none;
        width: 1.15rem;
        height: 1.15rem;
        justify-content: center;
        overflow: visible;
    }

    .class-show-section .subject-badge i {
        font-size: 0.48rem;
        line-height: 1;
        flex-shrink: 0;
    }
}

.class-header {
    width: 100%;
    background: var(--secondary-Color);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
}

html[data-bs-theme="dark"] .class-header {
    background: #0f2847;
}

.class-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.class-header-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.class-header-stage {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.class-header-stage i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.class-header-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .class-header {
        padding: 34px 0;
        margin-bottom: 24px;
    }

    .class-header-title {
        font-size: 2.3rem;
        margin-bottom: 12px;
    }

    .class-header-stage {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .class-header-description {
        font-size: 1rem;
        line-height: 1.65;
    }
}

.subjects-section {
    margin-top: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-gold);
    margin-bottom: 10px;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

/* Frontend Footer */
.frontend-footer {
    --main-Color: var(--brand-gold);
    background: #0b1b2b;
    color: rgba(255, 255, 255, 0.92);
    padding: 50px 0 18px;
    margin-top: 0;
}

.frontend-footer__brand {
    padding-left: 10px;
}

.frontend-footer__logo img {
    width: 96px;
    height: auto;
    display: block;
    margin-bottom: 14px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15));
}

.frontend-footer__desc {
    margin: 0 0 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
}

.frontend-footer__title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: #fff;
    position: relative;
    padding-right: 12px;
}

.frontend-footer__title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 6px;
    width: 6px;
    height: 18px;
    background: var(--brand-gold);
    border-radius: 3px;
}

.frontend-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.frontend-footer__links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.frontend-footer__links a::before {
    content: "›";
    color: rgba(255, 255, 255, 0.55);
    font-weight: 900;
    transform: rotate(180deg); /* RTL */
}

.frontend-footer__links a:hover {
    color: #fff;
    transform: translateX(-2px);
}

.frontend-footer__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.frontend-footer__meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
}

.frontend-footer__meta i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand-gold);
}

.frontend-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.frontend-footer__social .social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: all 0.2s ease;
}

.frontend-footer__social .social-link:hover {
    background: rgba(212, 175, 55, 0.18);
    color: var(--brand-gold);
    transform: translateY(-2px);
}

.frontend-footer__bottom {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.frontend-footer__copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.frontend-footer__mini-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.frontend-footer__mini-links a {
    color: rgba(255, 255, 255, 0.75);
}

.frontend-footer__mini-links a:hover {
    color: #fff;
}

.frontend-footer__mini-links .sep {
    opacity: 0.4;
}

@media (max-width: 768px) {
    .frontend-footer {
        padding: 42px 0 16px;
    }

    .frontend-footer__title {
        margin-top: 12px;
    }

    .frontend-footer__logo img {
        width: 84px;
    }
}

/* /////////////////////////////////////////////////// */
/* ////////////////Enrolled Message/////////////////// */
/* /////////////////////////////////////////////////// */

.enrolled-message-section {
    margin-bottom: 40px;
}

.pending-purchase-message-section {
    margin-bottom: 40px;
}

.pending-purchase-message-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(255, 193, 7, 0.3);
    text-align: center;
}

.pending-purchase-message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pending-icon {
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

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

.pending-purchase-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.pending-purchase-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
    line-height: 1.7;
}

.pending-purchase-info {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border-light);
}

.pending-purchase-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.pending-purchase-info-item:last-child {
    border-bottom: none;
}

.pending-purchase-info-item .info-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.pending-purchase-info-item .info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.pending-purchase-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #0b1b2b;
    border: 1px solid rgba(255, 193, 7, 0.45);
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    margin-top: 10px;
}

.pending-purchase-btn:hover {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.3);
    color: #0b1b2b;
}

html[data-bs-theme="dark"] .pending-purchase-message-card {
    background: var(--bg-white);
    border-color: rgba(255, 193, 7, 0.4);
}

html[data-bs-theme="dark"] .pending-purchase-info {
    background: var(--bg-light);
    border-color: var(--border-light);
}

/* Responsive */
@media (max-width: 768px) {
    .pending-purchase-message-card {
        padding: 40px 20px;
    }
    
    .pending-icon {
        font-size: 3rem;
    }
    
    .pending-purchase-title {
        font-size: 1.5rem;
    }
    
    .pending-purchase-description {
        font-size: 1rem;
    }
    
    .pending-purchase-info {
        padding: 15px;
    }
    
    .pending-purchase-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.enrolled-message-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(40, 167, 69, 0.2);
    text-align: center;
}

.enrolled-message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.enrolled-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 10px;
    animation: scaleIn 0.5s ease;
}

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

.enrolled-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.enrolled-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
    line-height: 1.7;
}

.enrolled-btn {
    background: var(--gold-gradient);
    background-size: 200% 200%;
    color: #0b1b2b;
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    margin-top: 10px;
}

.enrolled-btn:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
    color: #0b1b2b;
}

html[data-bs-theme="dark"] .enrolled-message-card {
    background: var(--bg-white);
    border-color: rgba(40, 167, 69, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .enrolled-message-card {
        padding: 40px 20px;
    }
    
    .enrolled-icon {
        font-size: 3rem;
    }
    
    .enrolled-title {
        font-size: 1.5rem;
    }
    
    .enrolled-description {
        font-size: 1rem;
    }
}

/* /////////////////////////////////////////////////// */
/* ////////////////Purchase Options/////////////////// */
/* /////////////////////////////////////////////////// */

.purchase-options-section {
    margin-bottom: 40px;
}

.purchase-options-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.purchase-options-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.purchase-option {
    margin-bottom: 20px;
}

.purchase-option-label {
    display: block;
    cursor: pointer;
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.purchase-option-label:hover {
    border-color: var(--secondary-Color);
    box-shadow: 0 4px 12px rgba(5, 85, 162, 0.1);
}

.purchase-radio:checked + .purchase-option-content {
    color: var(--text-primary);
}

.purchase-option-label:has(.purchase-radio:checked) {
    border-color: var(--secondary-Color);
    background: rgba(5, 85, 162, 0.05);
    box-shadow: 0 4px 12px rgba(5, 85, 162, 0.15);
}

.purchase-option-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.purchase-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.purchase-option-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.purchase-option-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-gold);
}

.purchase-option-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.subjects-checkboxes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.subject-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-light);
}

.subject-checkbox-label:hover {
    border-color: var(--secondary-Color);
    background: rgba(5, 85, 162, 0.05);
}

.subject-checkbox:checked + .subject-checkbox-content {
    color: var(--secondary-Color);
}

.subject-checkbox-label:has(.subject-checkbox:checked) {
    border-color: var(--secondary-Color);
    background: rgba(5, 85, 162, 0.08);
}

.subject-checkbox-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-right: 10px;
}

.subject-checkbox-name {
    font-weight: 600;
    color: var(--text-primary);
}

.subject-checkbox-price {
    font-weight: 700;
    color: var(--brand-gold);
}

.purchase-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

.purchase-total-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 800;
}

.purchase-total-label {
    color: var(--text-primary);
}

.purchase-total-price {
    color: var(--brand-gold);
    font-size: 1.5rem;
}

.purchase-total-currency {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-right: 5px;
}

.purchase-submit {
    margin-top: 25px;
}

.purchase-submit-btn {
    background: var(--gold-gradient);
    color: #0b1b2b;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.purchase-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
    color: #0b1b2b;
}

/* /////////////////////////////////////////////////// */
/* ////////////////Checkout Page////////////////////// */
/* /////////////////////////////////////////////////// */

.checkout-section {
    min-height: 60vh;
    padding: 60px 0;
}

.checkout-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.checkout-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.checkout-item-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(5, 85, 162, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
}

.checkout-item-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-gold);
}

.checkout-total {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--border-light);
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.checkout-total-final {
    font-size: 1.4rem;
    font-weight: 800;
    padding-top: 15px;
    border-top: 2px solid var(--border-light);
    margin-top: 10px;
}

.checkout-total-amount {
    color: var(--brand-gold);
    font-size: 1.6rem;
}

.checkout-free-message {
    text-align: center;
    padding: 20px 0;
}

.checkout-free-message h4 {
    color: var(--text-primary);
    font-weight: 700;
}

/* Dark Mode Support */
html[data-bs-theme="dark"] .purchase-options-card,
html[data-bs-theme="dark"] .checkout-card {
    background: var(--bg-white);
    border-color: var(--border-light);
}

html[data-bs-theme="dark"] .purchase-option-label,
html[data-bs-theme="dark"] .subject-checkbox-label,
html[data-bs-theme="dark"] .checkout-item {
    background: var(--bg-light);
    border-color: var(--border-light);
}

/* Responsive */
@media (max-width: 768px) {
    .purchase-options-card,
    .checkout-card {
        padding: 20px;
    }
    
    .purchase-option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .checkout-item-price {
        align-self: flex-end;
    }
}

/* /////////////////////////////////////////////////// */
/* ////////////////Payment Page////////////////////// */
/* /////////////////////////////////////////////////// */

.payment-section {
    min-height: 60vh;
    padding: 60px 0;
}

.payment-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.payment-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.payment-info-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.payment-info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.payment-amount {
    color: var(--brand-gold);
    font-size: 1.3rem;
}

.payment-method {
    margin-bottom: 15px;
}

.payment-method-label {
    display: block;
    cursor: pointer;
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.payment-method-label:hover {
    border-color: var(--secondary-Color);
    box-shadow: 0 4px 12px rgba(5, 85, 162, 0.1);
}

.payment-method-radio:checked + .payment-method-content {
    color: var(--text-primary);
}

.payment-method-label:has(.payment-method-radio:checked) {
    border-color: var(--secondary-Color);
    background: rgba(5, 85, 162, 0.05);
    box-shadow: 0 4px 12px rgba(5, 85, 162, 0.15);
}

.payment-method-label:has(.payment-method-radio:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-method-disabled {
    opacity: 0.6;
}

.payment-method-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-method-header > div {
    flex: 1;
}

.payment-method-header strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.payment-method-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
}

.payment-method-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.badge-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.payment-method-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.payment-method-details .alert {
    background: rgba(5, 85, 162, 0.05);
    border: 1px solid rgba(5, 85, 162, 0.15);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.payment-method-details .alert p {
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.payment-method-details .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.payment-method-details .form-control {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
}

.payment-method-details .form-control:focus {
    border-color: var(--secondary-Color);
    box-shadow: 0 0 0 0.2rem rgba(5, 85, 162, 0.15);
    background: var(--bg-white);
}

.payment-submit-btn {
    background: var(--gold-gradient);
    color: #0b1b2b;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.payment-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
    color: #0b1b2b;
}

.payment-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.payment-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--text-primary);
}

.payment-summary-item span {
    color: var(--text-secondary);
}

.payment-summary-amount {
    color: var(--brand-gold);
    font-weight: 700;
}

.payment-summary-divider {
    margin: 10px 0;
    border-color: var(--border-light);
}

.payment-summary-total {
    font-size: 1.2rem;
    font-weight: 800;
    padding-top: 15px;
    border-top: 2px solid var(--border-light);
    margin-top: 10px;
}

.payment-summary-total-amount {
    color: var(--brand-gold);
    font-size: 1.4rem;
}

/* Dark Mode Support */
html[data-bs-theme="dark"] .payment-card {
    background: var(--bg-white);
    border-color: var(--border-light);
}

html[data-bs-theme="dark"] .payment-method-label,
html[data-bs-theme="dark"] .payment-info-item {
    background: var(--bg-light);
    border-color: var(--border-light);
}

/* Responsive */
@media (max-width: 768px) {
    .payment-card {
        padding: 20px;
    }
    
    .payment-method-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .payment-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* WhatsApp floating button – أيقونة واتساب عائمة */
.whatsapp-float-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    animation: whatsapp-float-pulse 2s ease-in-out infinite;
}

.whatsapp-float-btn:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

@keyframes whatsapp-float-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
    }
}