@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");
:root {
    --main-color: rgb(8 183 237);
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
}
.page-content{margin-bottom: 30px;}
.section h1 { color: #0d6efd; font-weight:700; margin-bottom:15px; font-size: x-large; }
.section h1 span { color: cadetblue; }
.section p { color:#000; font-size:16px; line-height:1.6; }
.section p a { color:inherit; text-decoration:none; font-weight:600; transition:0.3s; }
.section p a:hover { color:#0d6efd; }
.m-t-60{margin-top: 60px;}
.top-offer {
    background: linear-gradient(90deg, rgb(70 111 163), rgb(8 183 237));
    color: white;
    padding: 20px 0;
    font-size: 15px;
}

.top-offer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-offer__logo img {
    height: 30px;
    border-radius: 10px;
}

.top-offer__message {
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.top-offer__btn {
    background: white;
    color: var(--main-color);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    transition: .3s;
    text-decoration: none;
    display: inline-block;
}

.top-offer__btn:hover {
    background: #f2f2f2;
    transform: translateY(-1px);
}


/* Navbar */
.main-nav {
    background-color: #ffffff;
    padding: 10px 0;
    transition: top 0.3s;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    display: inline-block; /* مهم لتجنب تحريك الروابط المجاورة */
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #08b7ed, #4670a3);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}
.dropdown-toggle img {
    display: block;
    margin: 0 auto;
}

#flagMenu {
    border: none;
    padding: 5px 0;
    min-width: 60px; /* نفس عرض الزر تقريبًا */
    left: 50% !important;
    transform: translateX(-50%);
    text-align: center;
}

.dropdown-item {
    display: block;
    margin: 5px auto;
    padding: 5px 0;
    cursor: pointer;
}

.dropdown-item img {
    display: block;
    margin: 0 auto;
    width: 30px;
    transition: transform 0.2s;
}

.dropdown-item:hover img {
    transform: scale(1.1);
}
/* Footer */
/* ===== Footer Base ===== */
.main-footer{
    background:#fff;
    color:#333;
    padding-top:50px;
    border-top:1px solid #eee;
    font-size:14px;
}

/* ===== Logo ===== */
.footer-logo{
    width:90px;
    margin-bottom:10px;
}

/* ===== Text ===== */
.footer-box h5{
    font-size:18px;
    font-weight:700;
    margin-bottom:10px;
}

.footer-box p{
    color:#666;
    line-height:1.6;
}

.footer-contact p{
    margin:5px 0;
}

.footer-tax{
    margin-top:10px;
    color:#888;
}

/* ===== Links ===== */
.footer-links h5{
    margin-bottom:15px;
    font-weight:700;
}

.links-grid{
    display:flex;
    gap:30px;
}

.footer-links ul{
    list-style:none;
    padding:0;
}

.footer-links li{
    margin-bottom:8px;
    color:#555;
    cursor:pointer;
    transition:.3s;
}

.footer-links li:hover{
    color:cadetblue;
}

/* ===== Maroof ===== */
.footer-maroof img{
    width:130px;
    margin-top:10px;
}

/* ===== Partners Section ===== */
.footer-partners-section{
    background:#f3f6f5;
    margin-top:30px;
    padding:30px 0;
}

/* ===== Text ===== */
.text-col{
    text-align:right;
}

.footer-partners-section h5{
    color:#3a7d6b;
    font-weight:700;
    margin-bottom:10px;
}

.footer-partners-section p{
    color:#666;
    font-size:14px;
}

/* ===== Logos ===== */
.partners-logos{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    justify-content:flex-start;
}

.partners-logos img{
    width:90px;
    height:60px;
    object-fit:contain;
    background:#fff;
    padding:8px;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

/* ===== Responsive ===== */
@media(max-width:992px){
    .text-col{
        text-align:center;
        margin-bottom:20px;
    }

    .partners-logos{
        justify-content:center;
    }
}

/* ===== Logos ===== */
.partners-logos{
    display:flex;
    justify-content:center;
    gap:25px;
    margin-top:20px;
    flex-wrap:wrap;
}

.partners-logos img{
    width:90px;
    height:60px;
    object-fit:contain;
    background:#fff;
    padding:8px;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

/* ===== Bottom ===== */
.footer-bottom{
    text-align:center;
    padding:15px 0;
    border-top:1px solid #eee;
}

.footer-bottom p{
    color:#777;
    margin-bottom:10px;
}

/* ===== Payments ===== */
.payment-logos{
    display:flex;
    justify-content:center;
    gap:10px;
}

.payment-logos img{
    width:45px;
    padding:5px;
    border:1px solid #eee;
    border-radius:5px;
    background:#fff;
}

/* ===== Responsive ===== */
@media(max-width:992px){
    .links-grid{
        flex-direction:column;
    }
}

@media(max-width:768px){
    .footer-box,
    .footer-links{
        text-align:center;
    }

    .partners-logos{
        gap:15px;
    }
}
/*End Footer*/
/* Fixed navbar on scroll */
.fixed-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.hidden {
    top: -100px !important;
}
.container{
    max-width: 75% !important;
}

.gry-bg{
    max-width: 100% !important;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 51px;
    background-image: linear-gradient(178deg, #f8f8fa, #f2f2f4);
}
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-btn img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.floating-w-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-w-btn img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.floating-w-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.floating-t-btn {
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-t-btn img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.floating-t-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.video-box {
    position: relative;
}

.play-btn {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: var(--main-color);
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

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

.video-frame {
    width: 100%;
}

.img-fluid{
    max-height: 400px;
}

#universityForm button{
    height:50px;
    font-weight:600;
}

.section-img{
    width:100%;
    height:50px;
    object-fit:cover;
    display:block;
}

.video-frame iframe{
    width:100%;
    border-radius:10px;
}

.align-items-center{
    text-align: center !important;
}

/* العناوين الرئيسية للسكشن */
.section h1 {
    color: #0d6efd; /* اللون الرئيسي */
    font-weight: 700;
    margin-bottom: 15px;
}

/* لون مختلف للـ span داخل العنوان */
.section h1 span {
    color: cadetblue;
}

/* الفقرات داخل السكشن */
.section p {
    color: #000;
    font-size: 16px;
    line-height: 1.6;
}

/* الروابط داخل الفقرات */
.section p a {
    color: inherit;       /* نفس لون الفقرة */
    text-decoration: none; /* إزالة underline */
    font-weight: 600;      /* optional لزيادة وضوح الرابط */
    transition: color 0.3s;
}

/* عند hover على الرابط */
.section p a:hover {
    color: #0d6efd; /* يمكن تغيير اللون عند hover */
}

.card-img{
    width: 30px;
    margin: 0px 15px;
}

.course-card { flex:0 0 250px; border-radius:10px; overflow:hidden; background:#fff; transition:transform 0.3s; position:relative; margin: 5px 20px; box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.3);}
.course-card:hover { transform: translateY(-5px); }
.course-card:hover .head-overlay { opacity:1; }
.course-title a { color:#000; text-decoration:none; font-size:18px; font-weight:700; }
.course-details a { color:#333; text-decoration:none; font-size: smaller; }
.card-head { position:relative; }
.head-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(173,216,230,0.6); opacity:0; transition:0.3s; display:flex; justify-content:center; align-items:center; gap:15px; }
.detail-icon img { width:40px; height:40px; }

.card-content{
    text-align: right;
}


/* title */
.title{
    position: relative;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.title-text {
    color: cadetblue;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    padding: 0px 15px;
}

.title svg{
    position:absolute;
    left:0;
    bottom:-30px;
    width:100%;
    height:50px;
}

.title path{
    fill:none;
    stroke:cadetblue;
    stroke-width:12; 
    stroke-linecap:round;
    stroke-dasharray:600; 
    stroke-dashoffset:600; 
    animation:draw 1.5s linear infinite; 
}

@keyframes draw{
    0%{
        stroke-dashoffset:600;
    }
    100%{
        stroke-dashoffset:0;
    }
}

.start-now-price {
    margin-bottom: 20px;
}

.start-now-price .btn {
    padding: 10px 20px;
    font-weight: 600;
    background-color: #3fdbb1;
    border: none;
}

.start-now-price .price {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.start-now-price .discount-price {
    color: #5032AD;
}

.start-now-price .price-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #28a745;
    box-shadow: 0 0 8px #28a745, 0 0 12px #28a745;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 4px #28a745, 0 0 6px #28a745; }
    50% { box-shadow: 0 0 8px #28a745, 0 0 12px #28a745; }
    100% { box-shadow: 0 0 4px #28a745, 0 0 6px #28a745; }
}

.select-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: cadetblue;
    pointer-events: none;
    font-size: 1.2rem;
}

.selector {
    padding-right: 2.5rem;
    border-radius:10px;
    color: cadetblue;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    direction: rtl; /* RTL layout */
    margin-top: 20px;
}

.slider-container {
    overflow: hidden;
    width: 100%;
}

.slider-track{
    display:flex;
    gap:20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.course-card {
    flex: 0 0 250px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    position: relative;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.3);
}

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

.slider-wrapper .left-arrow,
.slider-wrapper .right-arrow{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 20;
}
.slider-wrapper .left-arrow i,
.slider-wrapper .right-arrow i{
    font-size: 30px;
    color: #000000;
}
.slider-wrapper .right-arrow{
    right: 10px;
}
.slider-wrapper .left-arrow{
    left: 10px;
}
.slider-wrapper .left-arrow:hover,
.slider-wrapper .right-arrow:hover{
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 0.753);
}
.slider-wrapper .left-arrow:active,
.slider-wrapper .right-arrow:active{
    transform: translateY(-50%) scale(0.85);
}
.university-section{
    margin-top:80px;
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
}

/* slider */

.university-slider{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

.uni-slider-container{
    overflow: hidden;
    width: 92%;
    margin: 20px;
    padding: 20px;
}

/* track */

.uni-slider-track{
    display:flex;
    gap:25px;
    align-items:center;
    transition:transform .5s ease;
    will-change:transform;
}

/* card */

.uni-card{
    flex:0 0 180px;
    background:#fff;
    border-radius:16px;
    text-align:center;
    padding:25px 15px;
    cursor:pointer;
    transition:.35s;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.uni-card img{
    width:80px;
    height:80px;
    object-fit:contain;
    margin-bottom:15px;
}

.uni-card h5{
    font-size:16px;
}

/* hover */

.uni-card:hover{
    transform:scale(1.1);
    box-shadow:0 12px 30px rgba(0,0,0,0.18);
}

/* arrows */

.uni-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,.4);
    backdrop-filter:blur(6px);
    border:none;
    width:45px;
    height:45px;
    border-radius:50%;
    cursor:pointer;
    font-size:28px;
    z-index:5;
}

.uni-arrow.prev{
    right:-10px;
}

.uni-arrow.next{
    left:-10px;
}

/* dots */

.uni-dots{
    text-align:center;
    margin-top:20px;
}

.uni-dots span{
    width:10px;
    height:10px;
    display:inline-block;
    background:#ccc;
    border-radius:50%;
    margin:0 5px;
    cursor:pointer;
    transition:.3s;
}

.uni-dots span.active{
    background:#0d6efd;
}

.instructor-slider{
    overflow:hidden;
    cursor: grab;
    padding: 40px 0;
}

.instructor-slider:active{
    cursor: grabbing;
}

/* track */

.instructor-track{
    display:grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 1fr);
    gap: 40px 25px;
    width: max-content;
    transition: transform .2s ease;
}

/* card */

.inst-card{
    width: 200px;
    height: 130px;
    background: #fff;
    border-radius: 15px;
    text-align: center;
    padding-top: 60px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: .3s;
}

/* image half outside */

.inst-img{
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

.inst-img img{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #fff;
}

/* text */

.inst-card h4{
    font-size: 15px;
    margin: 0;
}

.inst-card p{
    font-size: 13px;
    color: #777;
}

/* hover */

.inst-card:hover{
    background: cadetblue;
    color: #fff;
    transform: translateY(-5px);
}

.inst-card:hover p{
    color: #eee;
}

.inst-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== features ===== */
.why-features{
    display:flex;
    flex-direction:column;
    gap:20px;
}

/* ===== card ===== */

.why-item{
    display:flex;
    gap:15px;
    align-items:flex-start;
    padding:18px;
    border-radius:15px;
    cursor:pointer;
    position:relative;

    /* glass effect */
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border:1px solid rgba(255,255,255,0.4);

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    transition: all .35s ease;
}

/* subtle glow border */

.why-item::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:15px;
    padding:1px;
    background: linear-gradient(135deg, transparent, rgba(0,0,0,0.05));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events:none;
}

/* ===== icon ===== */

.why-item .icon{
    min-width:55px;
    height:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;

    background: linear-gradient(135deg, #e3e9f0, #f8f9fa);

    font-size:22px;
    color:#444;

    transition: all .35s ease;
}

/* ===== text ===== */

.why-item h5{
    margin:0;
    font-size:17px;
    font-weight:600;
}

.why-item p{
    margin:6px 0 0;
    font-size:14px;
    color:#666;
    line-height:1.6;
    transition:.3s;
}

/* ===== hover 🔥 ===== */

.why-item:hover{
    transform: translateY(-8px) scale(1.02);

    background: linear-gradient(135deg, cadetblue, #5aa9a9);

    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.why-item:hover .icon{
    background:#fff;
    color:cadetblue;
    transform: rotate(8deg) scale(1.1);
}

.why-item:hover h5,
.why-item:hover p{
    color:#fff;
}

/* ===== responsive ===== */

@media(max-width:992px){

    .why-section{
        padding:30px 20px;
    }

    .why-item{
        padding:15px;
    }

    .why-item h5{
        font-size:15px;
    }

    .why-item p{
        font-size:13px;
    }

}

.why-item .text{
    text-align: justify;
}



/* ===== Steps Row Flex ===== */
.row.g-3{
    display:flex;
    flex-wrap: nowrap; /* keep all cards in one line */
    justify-content: space-between;
    gap:1rem;
}

/* ===== Each Column Flex ===== */
.row.g-3 > [class*="col-"]{
    display:flex;
}

.row.g-3 > [class*="col-"] .step-card{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* ===== Step Card ===== */
.step-card{
    background:#fff;
    border-radius:15px;
    padding:20px 15px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    min-height:220px;
}

/* ===== Step Number ===== */
.step-number{
    font-size:18px; 
    font-weight:700;
    width:35px;
    height:35px;
    line-height:35px;
    border-radius:50%;
    background:#fff;  
    color:#000;       
    border:1px solid #ccc;
    margin-bottom:12px;
}

/* ===== Step Image ===== */
.step-img{
    width:174px;
    height:auto;
    display:block;
    margin:auto;
    transition: all 0.3s ease;
}

/* ===== Step Title ===== */
.step-title{
    font-size:16px;
    font-weight:700;
    margin: 10px 0px;
    color:cadetblue;
}

/* ===== Step Text ===== */
.step-text{
    font-size:13px;
    color:#555;
    line-height:1.5;
    word-wrap: break-word;
}

/* ===== Hover Effect ===== */
.step-card:hover{
    transform: translateY(-5px) scale(1.02);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* ===== Responsive ===== */
@media(max-width:1200px){
    .row.g-3{
        flex-wrap: wrap; /* wrap cards on smaller screens */
    }
}

@media(max-width:992px){
    .step-card{
        padding:18px 12px;
        min-height:200px;
    }
    .step-number{
        width:30px;
        height:30px;
        line-height:30px;
        font-size:16px;
    }
    .step-img{
        width:140px;
    }
    .step-title{
        font-size:15px;
    }
    .step-text{
        font-size:12.5px;
    }
}

@media(max-width:576px){
    .step-card{
        padding:15px 8px;
        min-height:180px;
    }
    .step-number{
        width:28px;
        height:28px;
        line-height:28px;
        font-size:14px;
    }
    .step-img{
        width:120px;
    }
    .step-title{
        font-size:14px;
    }
    .step-text{
        font-size:12px;
    }
}

/* ===== Coming Soon Box ===== */
.coming-soon{
    background: linear-gradient(135deg, #f8f9fa, #eef2f3);
    border:2px dashed #dcdcdc;
    border-radius:15px;
    padding:40px 20px;
    text-align:center;
    position:relative;
    overflow:hidden;
    transition: all 0.3s ease;
}

/* subtle hover */
.coming-soon:hover{
    transform: translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

/* text */
.coming-soon p{
    font-size:16px;
    color:#666;
    font-weight:500;
}

/* optional animated glow */
.coming-soon::before{
    content:"";
    position:absolute;
    width:150%;
    height:150%;
    background: radial-gradient(circle, rgba(0,0,0,0.03), transparent);
    top:-50%;
    left:-50%;
    animation: rotateBg 8s linear infinite;
}

@keyframes rotateBg{
    from{ transform:rotate(0deg);}
    to{ transform:rotate(360deg);}
}

/* ===== FAQ text ===== */
.faq-text{
    font-size:16px;
    color:#444;
    font-weight:500;
}

/* ===== Responsive ===== */
@media(max-width:768px){
    .coming-soon{
        padding:30px 15px;
    }

    .coming-soon p{
        font-size:14px;
    }
}

/* ===== Wrapper ===== */
.reviews-wrapper{
    position:relative;
    max-width:500px;
    margin:auto;
}

/* ===== Center Card ===== */
.review-card{
    position:relative;
    z-index:2;
}

/* ===== Main Image ===== */
.main-student{
    width:140px;
    height:140px;
    border-radius:50%;
    object-fit:cover;
    border:6px solid #eef2f3;
    margin-bottom:15px;
}

/* ===== Text ===== */
.review-card p{
    font-size:15px;
    color:#444;
    line-height:1.7;
    margin:15px 0;
}

.review-name{
    color:cadetblue;
    font-weight:600;
}

/* ===== Avatars Container ===== */
.avatars{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

/* ===== Avatar ===== */
.avatar{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
    position:absolute;
    cursor:pointer;
    transition:.3s;
    animation: float 4s ease-in-out infinite;
}

/* Hover */
.avatar:hover{
    transform: scale(1.2);
}

/* ===== Positions (circle style) ===== */
.a1{ top:-20px; right: 45em; }
.a2{ top:20%; right:55em; }
.a3{ top:65%; right:45em; }
.a4{ top:12em; right:55em; }
.a5{ top:25%; left:55em; }
.a6{ top:65%; left:45em; }
.a7{ bottom:-10px; left:55em; }
.a8{ top:-20px; left:45em; }
.a9{ top: 55px;right: 35em; }
.a10{ top: 190px;right: 35em; }
.a11{ top: 4em;left: 35em; }
.a12{ top: 11em;left: 35em; }

/* ===== Floating Animation ===== */
@keyframes float{
    0%{ transform: translateY(0px); }
    50%{ transform: translateY(-10px); }
    100%{ transform: translateY(0px); }
}

/* ===== Responsive ===== */
@media(max-width:768px){
    .avatar{
        width:45px;
        height:45px;
    }

    .main-student{
        width:110px;
        height:110px;
    }
}

/* افتراضي (Desktop) */
#review-container{
    display:block;
}

/* موبايل */
@media(max-width:768px){
    #review-container{
        display:none;
    }
}

/* ===== Counter Box ===== */
.counter-box{
    background:#fff;
    padding:25px 15px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:.3s;
}

/* Hover */
.counter-box:hover{
    transform: translateY(-5px);
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

/* ===== Numbers ===== */
.counter{
    font-size:28px;
    font-weight:700;
    color:cadetblue;
    margin-bottom:10px;
}

/* ===== Text ===== */
.counter-box p{
    font-size:14px;
    color:#555;
}

/* ===== Responsive ===== */
@media(max-width:768px){
    .counter{
        font-size:24px;
    }
}

/* ===== Download Section ===== */
.download-section {
    padding: 60px 0;
}

.download-section h1 span {
    color: #28a745;
}

.mobile-image {
    margin: 30px 0;
}

.mobile-image img {
    width: 260px;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.mobile-image img:hover {
    transform: translateY(-8px);
}

/* Text */
.download-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.download-text span {
    color: #28a745;
    font-weight: bold;
}

/* ===== Store Buttons Wrapper ===== */
.store-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    margin-top:20px;
}

/* ===== Button Style ===== */
.store-buttons a{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    min-width:180px;
    height:60px;

    border:2px solid cadetblue;
    border-radius:12px;

    color:cadetblue;
    text-decoration:none;

    font-size:16px;
    font-weight:600;

    transition: all .3s ease;
}

/* ===== Icons ===== */
.store-buttons a i{
    font-size:22px;
}

/* ===== Hover Effect 🔥 ===== */
.store-buttons a:hover{
    background:cadetblue;
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* ===== Active (click feel) ===== */
.store-buttons a:active{
    transform:scale(0.96);
}

/* ===== Mobile Responsive ===== */
@media(max-width:768px){

    .store-buttons a{
        width:100%;
        max-width:280px;
        height:55px;
        font-size:14px;
    }

}


/* ===== CTA Section ===== */
.cta-section {
    background: #f7f9fc;
    padding: 60px 20px;
    border-radius: 20px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

/* subtle pattern effect */
.cta-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 10px 10px;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
    pointer-events: none;
}

/* ===== Title ===== */
.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #444;
}

/* colored words */
.cta-section .primary {
    color: #6f42c1; /* purple */
}

.cta-section .secondary {
    color: #20c997; /* green */
}

/* ===== Buttons Wrapper ===== */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== Join Primary Button ===== */
.join-btn-primary {
    background: #20c997;
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
}

.join-btn-primary:hover {
    background: #17a589;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(32, 201, 151, 0.5);
}

/* ===== FQA Outline Button ===== */
.FQA-btn-outline {
    border: 2px solid #6f42c1;
    color: #6f42c1;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    background: transparent;
}

.FQA-btn-outline:hover {
    background: #6f42c1;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    .cta-section h2 {
        font-size: 24px;
    }

    .join-btn-primary,
    .FQA-btn-outline {
        width: 100%;
        max-width: 280px;
    }
}

/* test */
.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 60px; /* المسافة بين الكروت */
}

/* الكارت */
.university-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 25px 90px 25px 20px;
    min-height: 110px; /* زودنا الارتفاع */
    
    display: flex;
    align-items: center;

    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: visible;
}
.university-link{
    text-decoration: none;
}
/* الصورة */
.university-img {
    position: absolute;
    right: -35px;
    top: 50%;
    transform: translateY(-50%);

    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #f5f5f5;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.university-img img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* النص */
.university-card h4 {
    font-size: 15px;
    color: #333;
    margin: 0;
    line-height: 1.6;
    transition: 0.3s;
}

/* Hover */
.university-card:hover {
    background: linear-gradient(135deg, rgb(77, 135, 137), cadetblue);
}

.university-card:hover h4 {
    color: #fff;
}

/* Active */
.university-card.active {
    background: linear-gradient(135deg, rgb(77, 135, 137), cadetblue);
}

.university-card.active h4 {
    color: #fff;
}

@media (max-width: 768px) {

    .university-grid {
        grid-template-columns: 1fr; /* كارت واحد في الصف */
        gap: 20px; /* ثابتة زي ما طلبت */
        padding: 30px;
    }

    .university-card {
        padding: 20px 80px 20px 15px;
        min-height: 100px;
    }

    .university-img {
        width: 65px;
        height: 65px;
        right: -30px;
    }

    .university-img img {
        width: 40px;
        height: 40px;
    }

    .university-card h4 {
        font-size: 14px;
    }
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns by default (desktop) */
    /* gap: 20px; */
}

/* Medium devices (tablets) */
@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    }
}

/* Small devices (mobile) */
@media (max-width: 576px) {
    .courses-grid {
        grid-template-columns: 1fr; /* 1 card per row */
    }
}

.filters-section {
    padding: 30px 20px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.filters-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.filters-section p {
    font-size: 16px;
    margin-bottom: 25px;
}

.filters-section .form-control,
.filters-section .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
}

.filters-section .btn {
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .filters-section .row.g-2 {
        text-align: center;
    }
    .filters-section .btn {
        margin-top: 5px;
    }
}

/* Container and grid */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per row on desktop */
    gap: 20px;
    margin-top: 20px;
}

/* Teacher card */
.teacher-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 15px;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Teacher image */
.teacher-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 10px;
}

.teacher-img img {
    width: 50%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-img img {
    transform: scale(1.05);
}

/* Teacher name and info */
.teacher-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.teacher-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Link reset */
.teacher-link {
    text-decoration: none;
    color: inherit;
}

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

@media (max-width: 576px) {
    .teacher-grid {
        grid-template-columns: 1fr; /* 1 per row on mobile */
    }

    .teacher-card {
        padding: 12px;
    }

    .teacher-card h4 {
        font-size: 16px;
    }

    .teacher-card p {
        font-size: 13px;
    }

    .teacher-img {
        height: 150px;
    }
}

.course-hero {
    position: relative;
    height: 700px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 35px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
}

/* =========================================
   OVERLAY (DESKTOP)
========================================= */

.course-overlay {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;

    background: #fff;
    border-radius: 12px;
    padding: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 2;
    height: 150px;
}

.overlay-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructor-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.overlay-center {
    display: flex;
    gap: 20px;
    color: #666;
    flex-wrap: wrap;
}

.overlay-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscribe-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.library-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
}

.price {
    font-weight: bold;
}

/* =========================================
   CONTENT SECTION
========================================= */

.course-content-section {
    margin-top: 70px;
}

/* =========================================
   TABS
========================================= */

.tabs {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.tab {
    border: none;
    background: none;
    padding: 10px;
    cursor: pointer;
    font-size: 15px;
}

.tab.active {
    border-bottom: 2px solid #007bff;
    font-weight: bold;
}

.course-stats {
    margin-left: auto;
    display: flex;
    gap: 15px;
    color: #777;
}

/* =========================================
   LESSONS
========================================= */

.lessons-list {
    margin-top: 20px;
}

.lesson-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.lesson-title {
    font-weight: 500;
}

.lesson-meta {
    color: #777;
}

.plus {
    font-size: 20px;
    cursor: pointer;
}

/* =========================================
   TABLET (<= 992px)
========================================= */

@media (max-width: 992px) {

    .course-overlay {
        flex-wrap: wrap;
        gap: 10px;
    }

    .overlay-center {
        width: 100%;
        justify-content: center;
    }

    .overlay-left {
        width: 100%;
        justify-content: space-between;
    }

    .lesson-row {
        grid-template-columns: 1.5fr 1fr 1fr auto;
    }
}

/* =========================================
   MOBILE (<= 768px)
========================================= */

@media (max-width: 768px) {

    /* HERO */
    .course-hero {
        height: 220px;
    }

    .play-btn {
        font-size: 24px;
        padding: 10px 14px;
    }

    /* OVERLAY → CARD */
    .course-overlay {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;

        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .overlay-right {
        width: 100%;
    }

    .overlay-center {
        width: 100%;
        font-size: 14px;
        gap: 10px;
    }

    .overlay-left {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .subscribe-btn,
    .library-btn {
        width: 100%;
        text-align: center;
    }

    /* CONTENT */
    .course-content-section {
        margin-top: 20px;
    }

    /* TABS → SCROLL */
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .tab {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .course-stats {
        display: none;
    }

    /* LESSONS → STACK */
    .lesson-row {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: right;
    }

    .lesson-meta {
        font-size: 13px;
    }

    .plus {
        align-self: flex-end;
    }
}

/* =========================================
   SMALL MOBILE (<= 480px)
========================================= */

@media (max-width: 480px) {

    .section {
        padding: 10px;
    }

    .tab {
        font-size: 13px;
        padding: 8px;
    }

    .lesson-title {
        font-size: 14px;
    }

    .lesson-meta {
        font-size: 12px;
    }

    .price {
        font-size: 14px;
    }
}

.course-content {
    direction: rtl;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
}

.course-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.course-content-links .tab {
    background: none;
    border: none;
    margin-left: 8px;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.course-content-links .tab.active {
    background: #007bff;
    color: #fff;
}

.unit {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.unit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fafafa;
    cursor: pointer;
    gap: 10px;
}

.unit-right {
    flex: 1;
    text-align: right;
    font-weight: 600;
}

.unit-left {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 13px;
    color: #666;
    min-width: 120px;
}

.toggle {
    font-size: 18px;
    margin-right: 10px;
    transition: 0.3s;
}

.unit-body {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

.unit.active .toggle {
    transform: rotate(180deg);
}

.lesson {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-top: 1px solid #eee;
}

.lesson-right {
    flex: 1;
    text-align: right;
}

.lesson-left {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 14px;
    color: #777;
    min-width: 85px;
}

.lesson-title{
    text-decoration: none;
}

/* HEADER */
.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-header p {
    color: #777;
}

/* WRAPPER */
.contact-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* FORM BOX */
.contact-form-box {
    flex: 2;
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
    width: 100%;
}

.contact-form-box h3 {
    margin-bottom: 20px;
}

/* FORM */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
}

/* BUTTON */
.send-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

/* INFO BOX */
.contact-info {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
}

.info-text {
    color: #777;
    margin-bottom: 15px;
}

.info-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.contact-info h4 {
    margin-top: 20px;
}

/* RESPONSIVE */
@media(max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }
}
.payments-page {
    direction: rtl;
    padding: 40px 0;
    background: linear-gradient(135deg, #f6f8fc, #eef3ff);
}

/* HERO */
.payments-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.hero-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-text p {
    color: #666;
}

.hero-image img {
    max-width: 260px;
}

/* SECTION */
.payment-section {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.highlight {
    border-right: 4px solid #007bff;
}

/* CARDS GRID */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* CARD */
.card {
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #f9fbff;
    border-radius: 16px;
    padding: 15px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #007bff;
}

/* IMAGE FIX */
.card img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* TEXT */
.card span {
    font-size: 14px;
    color: #333;
}

/* NOTE */
.note {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

.note.success {
    background: #e8f8ee;
    color: #28a745;
}

/* BANKS */
.banks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* BANK CARD */
.bank-card {
    background: #f9fbff;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #eee;
}

.bank-card h4 {
    margin-bottom: 15px;
}

/* ITEMS */
.bank-item {
    margin-bottom: 12px;
}

.bank-item span {
    color: #777;
    font-size: 13px;
}

/* COPY BOX */
.copy-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 5px;
    border: 1px solid #eee;
}

.copy-box strong {
    font-size: 13px;
}

/* BUTTON */
.copy-box button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

/* RESPONSIVE */
@media(max-width:992px){
    .payments-hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        max-width: 180px;
    }
}

@media(max-width:768px){
    .hero-text h2 {
        font-size: 24px;
    }

    .payment-section {
        padding: 18px;
    }
}

.terms-page {
    direction: rtl;
    padding: 40px 0;
    background: #f8f9fb;
}

/* HEADER */
.terms-header {
    text-align: center;
    margin-bottom: 30px;
}

.terms-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.terms-header p {
    color: #777;
}

/* CONTENT */
.terms-content {
    max-width: 900px;
    margin: auto;
}

/* BLOCK */
.term-block {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.term-block:hover {
    transform: translateY(-3px);
}

/* TITLE */
.term-block h3 {
    margin-bottom: 10px;
    color: #007bff;
}

/* TEXT */
.term-block p {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
}

/* LIST */
.term-block ul {
    padding-right: 18px;
}

.term-block ul li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.7;
}

/* RESPONSIVE */
@media(max-width:768px){
    .terms-header h1 {
        font-size: 24px;
    }

    .term-block {
        padding: 18px;
    }
}
.course-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid #71b3e2;
    background: transparent;
    color: #71b3e2;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: #71b3e2;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(7, 210, 255, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #71b3e2, #397aa8);
    color: #000;
    border: none;
    box-shadow: 0 5px 15px rgba(7, 210, 255, 0.3);
}

/* Animation */
.course {
    transition: all 0.4s ease;
}

.instructors-section {
    padding: 60px 0;
}

.instructors-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.instructors-container.wide {
    max-width: 1200px;   /* تحكم في العرض */
    margin: auto;
    justify-content: space-between;
}

/* Card Base */
.instructor-card {
   width: 280px;
    background: #fff;
    border-radius: 20px;
    text-align: center;
    padding: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    cursor: pointer;
}

/* Image */
.instructor-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

/* Name */
.instructor-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* Title */
.instructor-card p {
    color: #777;
    font-size: 14px;
}

/* Hover Effect */
.instructor-card:hover {
    transform: translateY(-10px);
}

/* Center Card (Bigger) */
.instructor-card.active {
    width: 330px;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .instructors-container {
        flex-direction: column;
    }

    .instructor-card,
    .instructor-card.active {
        width: 100%;
        transform: scale(1);
    }
}

.dynamic-text {
    font-size: 28px;
    color: #ffc107;
    min-height: 30px;
    transition: all 0.4s ease;
}
.testimonials-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 0 40px;
}

/* Card */
.testimonial-card {
    width: 340px;
    background: #fff;
    border-radius: 22px;
    padding: 25px;
    text-align: center;
    transition: all 0.5s ease;
    opacity: 0.5;
    transform: scale(0.9);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
}

/* Text */
.testimonial-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Student info */
.student-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.student-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffc107;
}

.student-info h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.student-info span {
    font-size: 12px;
    color: #888;
}

/* Active Card */
.testimonial-card.active {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Hover effect */
.testimonial-card:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonials-container {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    .testimonial-card {
        width: 100%;
        max-width: 380px;
    }

    .testimonial-card.active {
        transform: scale(1.05);
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab.active {
    background: #0d6efd;
    color: #fff;
    border-radius: 8px;
}

/* =========================
           MOBILE NAVBAR
        ========================= */
#secondNav {
    display: none;
}

.mobile-menu {
    display: none;
}

.mobile-menu-inner {
    background: #fff;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

    .mobile-menu-inner a {
        display: block;
        padding: 12px 10px;
        color: #333;
        text-decoration: none;
        font-weight: 700;
        border-bottom: 1px solid #eee;
    }

        .mobile-menu-inner a:hover {
            color: #0d6efd;
            background: #f8f9fa;
        }

.mobile-menu-actions {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.mobile-menu-btn {
    border: 0;
    background: transparent;
    color: #777;
    font-size: 34px;
    line-height: 1;
}

    .mobile-menu-btn:focus {
        outline: none;
    }

/* Legacy mobile-navbar visibility rules removed.
   The current responsive header uses #mainNav on every screen size and
   toggles only .desktop-navigation and .mobile-menu-button. */
@media (min-width: 992px) {
    #secondNav {
        display: none !important;
    }

    #mainNav.site-header {
        display: block !important;
    }
}

@media (max-width: 991.98px) {
    #secondNav {
        display: none !important;
    }

    #mainNav.site-header {
        display: block !important;
    }
}
/* =========================================================
   MODERN ENTERPRISE CART PAGE
========================================================= */

.cart-page-wrapper {
    direction: rtl;
    padding: 40px 0 70px;
    background: #f8fafc;
    min-height: 70vh;
}

.cart-page-title {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

    .cart-page-title i {
        color: #0d6efd;
    }

.cart-page-subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 0;
}

.cart-table-card,
.cart-summary-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

    .cart-table-card .card-header,
    .cart-summary-card .card-header {
        background: #fff;
        border-bottom: 1px solid #f1f5f9;
        padding: 20px 24px;
    }

        .cart-table-card .card-header h5,
        .cart-summary-card .card-header h5 {
            font-size: 18px;
            font-weight: 800;
            color: #0f172a;
        }

    .cart-table-card .table {
        margin-bottom: 0;
    }

    .cart-table-card thead th {
        background: #f8fafc !important;
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
        border-bottom: 1px solid #edf2f7 !important;
        padding: 16px 20px;
        white-space: nowrap;
    }

    .cart-table-card tbody td {
        padding: 20px;
        vertical-align: middle;
        border-color: #f8fafc !important;
    }

    .cart-table-card tbody tr {
        transition: 0.2s ease;
    }

        .cart-table-card tbody tr:hover {
            background: #fafcff;
        }

.cart-course-title {
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.7;
    transition: 0.2s ease;
}

    .cart-course-title:hover {
        color: #0d6efd;
    }

.cart-course-code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 6px 11px;
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.cart-instructor {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.cart-lessons-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
}

.cart-price {
    color: #0d9488;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.cart-remove-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #dc2626;
    transition: 0.2s ease;
}

    .cart-remove-btn:hover {
        background: #dc2626;
        color: #fff;
        transform: translateY(-2px);
    }

.cart-summary-card {
    position: sticky;
    top: 95px;
}

.cart-summary-body {
    padding: 24px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed #e2e8f0;
}

    .cart-summary-row:last-child {
        border-bottom: 0;
    }

    .cart-summary-row span {
        color: #64748b;
        font-size: 14px;
    }

    .cart-summary-row strong {
        color: #0f172a;
        font-weight: 800;
    }

.cart-total-box {
    margin: 18px 0;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border: 1px solid #dbeafe;
}

    .cart-total-box span {
        display: block;
        color: #64748b;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .cart-total-box strong {
        color: #0f766e;
        font-size: 32px;
        font-weight: 900;
    }

.cart-summary-card .btn {
    border-radius: 14px;
    font-weight: 800;
    padding: 12px;
}

.cart-empty-box {
    background: #fff;
    border-radius: 24px;
    padding: 70px 25px;
    text-align: center;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

    .cart-empty-box i {
        font-size: 20px;
        color: #cbd5e1;
    }

    .cart-empty-box h4 {
        color: #0f172a;
        font-weight: 900;
        margin-top: 20px;
    }

    .cart-empty-box p {
        color: #64748b;
    }

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 768px) {

    .cart-page-wrapper {
        padding: 25px 0 50px;
    }

    .cart-page-title {
        font-size: 24px;
    }

    .cart-page-subtitle {
        font-size: 14px;
        line-height: 1.8;
    }

    .cart-table-card,
    .cart-summary-card,
    .cart-empty-box {
        border-radius: 18px;
    }

        .cart-table-card .table,
        .cart-table-card thead,
        .cart-table-card tbody,
        .cart-table-card th,
        .cart-table-card td,
        .cart-table-card tr {
            display: block;
            width: 100%;
        }

        .cart-table-card thead {
            display: none;
        }

        .cart-table-card tbody tr {
            padding: 18px;
            border-bottom: 1px solid #edf2f7;
        }

        .cart-table-card tbody td {
            border: none !important;
            padding: 7px 0 !important;
            text-align: right !important;
        }

            .cart-table-card tbody td:not(:first-child) {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .cart-table-card tbody td:nth-child(2)::before {
                content: "المحاضر";
                color: #64748b;
                font-weight: 700;
            }

            .cart-table-card tbody td:nth-child(3)::before {
                content: "المحاضرات";
                color: #64748b;
                font-weight: 700;
            }

            .cart-table-card tbody td:nth-child(4)::before {
                content: "السعر";
                color: #64748b;
                font-weight: 700;
            }

            .cart-table-card tbody td:nth-child(5)::before {
                content: "حذف";
                color: #64748b;
                font-weight: 700;
            }

    .cart-remove-btn {
        width: 100%;
    }

    .cart-summary-body {
        padding: 18px;
    }

    .cart-total-box strong {
        font-size: 25px;
    }

    .cart-summary-card .btn {
        padding: 11px;
    }

    .cart-empty-box {
        padding: 45px 18px;
    }

        .cart-empty-box .btn {
            width: 100%;
        }
}
/* ========================================================================== 
   MOUSSA ACADEMY 2026 HOME + LAYOUT REFACTOR
   This layer intentionally overrides legacy rules without removing styles
   used by the remaining Razor Pages.
   ========================================================================== */

:root {
    --moussa-primary: #3347e8;
    --moussa-primary-dark: #2637bf;
    --moussa-indigo: #172f91;
    --moussa-navy: #101d58;
    --moussa-purple: #4d1d87;
    --moussa-accent: #ffc64a;
    --moussa-accent-soft: #fff4d5;
    --moussa-surface: #ffffff;
    --moussa-surface-soft: #f6f7ff;
    --moussa-border: #e7e9f5;
    --moussa-text: #171a2f;
    --moussa-muted: #6c718a;
    --moussa-success: #16a673;
    --moussa-danger: #e24b64;
    --moussa-shadow-sm: 0 10px 30px rgba(29, 38, 89, 0.08);
    --moussa-shadow-md: 0 18px 55px rgba(24, 39, 111, 0.14);
    --moussa-shadow-lg: 0 30px 90px rgba(13, 25, 89, 0.24);
    --moussa-radius-sm: 14px;
    --moussa-radius-md: 22px;
    --moussa-radius-lg: 34px;
    --moussa-transition: 260ms cubic-bezier(.2, .8, .2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    color: var(--moussa-text);
    background: #fff;
    font-family: "Cairo", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.mobile-menu-open {
    overflow: hidden;
}

button,
a,
input,
select,
textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
}

.page-content {
    margin: 0;
    min-height: 60vh;
}

.container {
    width: min(calc(100% - 32px), 1180px) !important;
    max-width: 1180px !important;
    margin-inline: auto;
    padding-inline: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    background: var(--moussa-primary);
    transform: translateY(-160%);
    transition: transform var(--moussa-transition);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header ------------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 74px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow var(--moussa-transition), border-color var(--moussa-transition), background var(--moussa-transition);
}

.site-header.is-scrolled {
    border-bottom-color: rgba(225, 228, 243, 0.9);
    box-shadow: 0 12px 40px rgba(19, 29, 85, 0.1);
    background: rgba(255, 255, 255, 0.985);
}

.site-header__inner {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--moussa-text);
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover {
    color: var(--moussa-text);
}

.brand__icon {
    width: 45px;
    height: 45px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #4858f6 0%, #5a2bd5 100%);
    box-shadow: 0 9px 22px rgba(56, 69, 226, 0.3);
    font-size: 22px;
    transition: transform var(--moussa-transition), box-shadow var(--moussa-transition);
}

.brand:hover .brand__icon {
    transform: translateY(-2px) rotate(-4deg);
    box-shadow: 0 13px 30px rgba(56, 69, 226, 0.38);
}

.brand__name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.35px;
}

.brand__name strong {
    color: var(--moussa-primary);
}

.desktop-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 2vw, 31px);
}

.desktop-navigation a {
    position: relative;
    padding-block: 25px;
    color: #25283b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color var(--moussa-transition);
}

.desktop-navigation a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 17px;
    width: 20px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--moussa-accent), var(--moussa-primary));
    transform: translateX(50%) scaleX(0);
    transition: transform var(--moussa-transition);
}

.desktop-navigation a:hover,
.desktop-navigation a.is-active {
    color: var(--moussa-primary);
}

.desktop-navigation a:hover::after,
.desktop-navigation a.is-active::after {
    transform: translateX(50%) scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    direction: rtl;
}

.header-cart {
    display: flex;
    align-items: center;
}

.header-logout {
    display: inline-flex;
}

.icon-action,
.header-actions .icon-action {
    width: 45px;
    height: 45px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 45px;
    padding: 0;
    border: 1px solid var(--moussa-border);
    border-radius: 14px;
    color: #202438;
    background: #fff;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform var(--moussa-transition), color var(--moussa-transition), border-color var(--moussa-transition), box-shadow var(--moussa-transition);
}

.icon-action:hover {
    color: var(--moussa-primary);
    border-color: rgba(51, 71, 232, 0.28);
    box-shadow: 0 10px 24px rgba(36, 51, 154, 0.12);
    transform: translateY(-2px);
}

.icon-action--danger:hover {
    color: var(--moussa-danger);
    border-color: rgba(226, 75, 100, 0.3);
}

.header-btn {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--moussa-transition), box-shadow var(--moussa-transition), background var(--moussa-transition), border-color var(--moussa-transition), color var(--moussa-transition);
}

.header-btn:hover {
    transform: translateY(-2px);
}

.header-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #4058f4, #5a32d8);
    box-shadow: 0 10px 25px rgba(57, 72, 224, 0.28);
}

.header-btn--primary:hover {
    color: #fff;
    box-shadow: 0 14px 34px rgba(57, 72, 224, 0.36);
}

.header-btn--ghost {
    color: var(--moussa-primary);
    background: #fff;
    border-color: var(--moussa-border);
}

.header-btn--ghost:hover {
    color: var(--moussa-primary-dark);
    border-color: rgba(51, 71, 232, 0.28);
    box-shadow: 0 10px 24px rgba(36, 51, 154, 0.1);
}

.header-btn--danger {
    color: #fff;
    background: var(--moussa-danger);
}

.mobile-menu-button {
    width: 45px;
    height: 45px;
    display: none;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--moussa-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 10px;
    background: var(--moussa-text);
    transition: transform var(--moussa-transition), opacity var(--moussa-transition);
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-panel {
    position: fixed;
    inset: 74px 0 auto 0;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.99);
    border-top: 1px solid var(--moussa-border);
    box-shadow: 0 24px 50px rgba(22, 29, 77, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity var(--moussa-transition), transform var(--moussa-transition), visibility var(--moussa-transition);
}

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

.mobile-menu-panel__inner {
    display: grid;
    gap: 18px;
    padding-block: 20px 26px;
}

.mobile-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--moussa-border);
    border-radius: 13px;
    color: var(--moussa-text);
    background: var(--moussa-surface-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.mobile-navigation a i {
    color: var(--moussa-primary);
}

.mobile-menu-panel__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-menu-panel__actions form {
    margin: 0;
}

/* Hero -------------------------------------------------------------------- */
.home-page {
    overflow: clip;
    background: #fff;
}

.home-alert-wrap {
    padding-top: 18px;
}

.home-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--moussa-shadow-sm);
}

.home-hero {
    position: relative;
    isolation: isolate;
    min-height: 660px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, rgba(56, 104, 255, 0.42), transparent 32%),
        radial-gradient(circle at 15% 18%, rgba(118, 45, 196, 0.5), transparent 38%),
        linear-gradient(118deg, #4b1c84 0%, #172e8e 52%, #163aa8 100%);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.3;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 1px, transparent 1.2px),
        radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1.2px);
    background-size: 54px 54px, 83px 83px;
    background-position: 0 0, 19px 27px;
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 70px 70px;
    transform: perspective(600px) rotateX(68deg) scale(1.45) translateY(48%);
    transform-origin: bottom;
}

.hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    animation: heroFloat 9s ease-in-out infinite;
}

.hero-orb--one {
    width: 260px;
    height: 260px;
    top: 70px;
    left: -90px;
    background: rgba(255, 198, 74, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-orb--two {
    width: 330px;
    height: 330px;
    right: -140px;
    bottom: -80px;
    background: rgba(76, 119, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation-delay: -4s;
}

@keyframes heroFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -22px, 0); }
}

.home-hero__container {
    min-height: 660px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: clamp(55px, 8vw, 92px);
    padding-bottom: 0;
}

.hero-carousel {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
}

.hero-slide {
    grid-area: 1 / 1;
    width: min(820px, 100%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(22px) scale(0.985);
    transition: opacity 520ms ease, transform 620ms cubic-bezier(.2, .8, .2, 1), visibility 520ms;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

.hero-badge__dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
    background: var(--moussa-accent);
    box-shadow: 0 0 0 6px rgba(255, 198, 74, 0.14), 0 0 18px rgba(255, 198, 74, 0.8);
    animation: badgePulse 1.8s ease-in-out infinite;
}

@keyframes badgePulse {
    50% { transform: scale(0.75); box-shadow: 0 0 0 10px rgba(255, 198, 74, 0.02), 0 0 24px rgba(255, 198, 74, 0.9); }
}

.hero-slide h1,
.hero-slide h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(40px, 5.4vw, 70px);
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -1.7px;
    text-wrap: balance;
}

.hero-slide h1 span,
.hero-slide h2 span {
    color: transparent;
    background: linear-gradient(90deg, #ffd44f, #ff9d5a);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-slide p {
    max-width: 720px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.77);
    font-size: clamp(16px, 1.65vw, 19px);
    line-height: 1.95;
    font-weight: 500;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-btn {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 18px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    transition: transform var(--moussa-transition), box-shadow var(--moussa-transition), background var(--moussa-transition), color var(--moussa-transition), border-color var(--moussa-transition);
}

.hero-btn:hover {
    transform: translateY(-3px);
}

.hero-btn--light {
    color: var(--moussa-primary-dark);
    background: #fff;
    box-shadow: 0 14px 32px rgba(7, 15, 62, 0.25);
}

.hero-btn--light:hover {
    color: var(--moussa-primary-dark);
    box-shadow: 0 19px 42px rgba(7, 15, 62, 0.34);
}

.hero-btn--outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.37);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.hero-btn--outline:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.13);
}

.hero-arrow {
    position: absolute;
    top: 48%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform var(--moussa-transition), color var(--moussa-transition), background var(--moussa-transition), border-color var(--moussa-transition);
}

.hero-arrow:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.07);
}

.hero-arrow--prev { right: 0; }
.hero-arrow--next { left: 0; }

.hero-dots {
    position: absolute;
    right: 50%;
    bottom: -20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateX(50%);
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width var(--moussa-transition), background var(--moussa-transition);
}

.hero-dot.is-active {
    width: 28px;
    background: var(--moussa-accent);
}

.hero-stats {
    min-height: 132px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 0;
    border-radius: 30px 30px 0 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 45px rgba(4, 12, 61, 0.12);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.hero-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 12px;
}

.hero-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.hero-stat strong {
    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.7px;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    font-weight: 600;
}

/* Shared home sections ---------------------------------------------------- */
.home-section {
    position: relative;
    padding: clamp(78px, 9vw, 120px) 0;
}

.section-heading {
    max-width: 730px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading--split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    text-align: right;
}

.section-heading--split > div {
    max-width: 690px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--moussa-primary);
    font-size: 13px;
    font-weight: 800;
}

.section-kicker::before {
    content: "";
    width: 24px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--moussa-accent), var(--moussa-primary));
}

.section-heading h2,
.learning-experience__content h2,
.why-section-modern__content h2,
.app-section__content h2,
.final-cta h2 {
    margin: 0;
    color: var(--moussa-text);
    font-size: clamp(30px, 4vw, 47px);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -1px;
    text-wrap: balance;
}

.section-heading h2 span,
.learning-experience__content h2 span,
.why-section-modern__content h2 span,
.app-section__content h2 span {
    color: var(--moussa-primary);
}

.section-heading p,
.learning-experience__content > p,
.why-section-modern__content > p,
.app-section__content > p,
.final-cta p {
    margin: 15px 0 0;
    color: var(--moussa-muted);
    font-size: 16px;
    line-height: 1.9;
}

.section-action,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--moussa-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.section-action i,
.text-link i {
    transition: transform var(--moussa-transition);
}

.section-action:hover,
.text-link:hover {
    color: var(--moussa-primary-dark);
}

.section-action:hover i,
.text-link:hover i {
    transform: translateX(-4px);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 760ms cubic-bezier(.2, .8, .2, 1);
}

[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="left"] { transform: translateX(-34px); }

[data-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Universities ----------------------------------------------------------- */
.university-showcase {
    background: linear-gradient(180deg, #fff 0%, #f8f9ff 100%);
}

.modern-slider {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    align-items: center;
    gap: 14px;
}

.modern-slider__viewport {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    padding: 14px 5px 26px;
}

.modern-slider__viewport::-webkit-scrollbar {
    display: none;
}

.university-cards {
    display: flex;
    gap: 18px;
    width: max-content;
    min-width: 100%;
}

.university-card {
    width: 210px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex: 0 0 210px;
    padding: 24px 20px;
    border: 1px solid var(--moussa-border);
    border-radius: 24px;
    color: var(--moussa-text);
    background: #fff;
    box-shadow: 0 10px 35px rgba(30, 40, 90, 0.07);
    text-align: center;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform var(--moussa-transition), border-color var(--moussa-transition), box-shadow var(--moussa-transition);
}

.university-card:hover {
    color: var(--moussa-text);
    border-color: rgba(51, 71, 232, 0.24);
    box-shadow: 0 22px 50px rgba(34, 48, 125, 0.13);
    transform: translateY(-8px);
}

.university-card__logo {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 22px;
    background: var(--moussa-surface-soft);
}

.university-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.university-card__name {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 800;
}

.university-card__link {
    color: var(--moussa-primary);
    font-size: 12px;
    font-weight: 700;
}

.modern-slider__arrow {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--moussa-border);
    border-radius: 50%;
    color: var(--moussa-primary);
    background: #fff;
    box-shadow: var(--moussa-shadow-sm);
    cursor: pointer;
    transition: transform var(--moussa-transition), color var(--moussa-transition), background var(--moussa-transition), border-color var(--moussa-transition);
}

.modern-slider__arrow:hover {
    color: #fff;
    border-color: var(--moussa-primary);
    background: var(--moussa-primary);
    transform: scale(1.07);
}

/* Learning experience ---------------------------------------------------- */
.learning-experience {
    background: #fff;
}

.learning-experience__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    align-items: center;
    gap: clamp(42px, 7vw, 86px);
}

.learning-experience__visual {
    position: relative;
}

.video-shell {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: var(--moussa-radius-lg);
    background: linear-gradient(135deg, #e9edff, #f9faff);
    box-shadow: var(--moussa-shadow-lg);
}

.video-shell > img {
    width: 100%;
    height: 570px;
    display: block;
    object-fit: cover;
}

.video-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(15, 27, 90, .2), transparent 55%);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--moussa-primary), #6837d2);
    background-clip: padding-box;
    box-shadow: 0 17px 42px rgba(31, 50, 181, 0.36);
    font-size: 32px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform var(--moussa-transition), box-shadow var(--moussa-transition);
}

.video-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 22px 55px rgba(31, 50, 181, 0.46);
}

.video-frame,
.video-frame iframe {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    border: 0;
}

.experience-float-card {
    position: absolute;
    left: -24px;
    bottom: 34px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--moussa-shadow-md);
    backdrop-filter: blur(12px);
    animation: miniFloat 4s ease-in-out infinite;
}

@keyframes miniFloat {
    50% { transform: translateY(-8px); }
}

.experience-float-card > i {
    color: var(--moussa-success);
    font-size: 30px;
}

.experience-float-card div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.experience-float-card strong {
    font-size: 14px;
}

.experience-float-card span {
    color: var(--moussa-muted);
    font-size: 11px;
}

.learning-experience__content > p {
    margin-bottom: 28px;
}

.feature-list {
    display: grid;
    gap: 13px;
    margin-bottom: 28px;
}

.feature-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--moussa-border);
    border-radius: 17px;
    background: #fff;
    transition: transform var(--moussa-transition), border-color var(--moussa-transition), box-shadow var(--moussa-transition);
}

.feature-list__item:hover {
    border-color: rgba(51, 71, 232, 0.2);
    box-shadow: var(--moussa-shadow-sm);
    transform: translateX(-5px);
}

.feature-list__item > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 14px;
    color: var(--moussa-primary);
    background: var(--moussa-surface-soft);
    font-size: 20px;
}

.feature-list__item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-list__item strong {
    font-size: 14px;
}

.feature-list__item small {
    color: var(--moussa-muted);
    font-size: 12px;
}

/* Courses ---------------------------------------------------------------- */
.courses-showcase {
    background: var(--moussa-surface-soft);
}

.course-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.course-filters .filter-btn,
.home-page .filter-btn {
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid var(--moussa-border);
    border-radius: 999px;
    color: var(--moussa-muted);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: color var(--moussa-transition), background var(--moussa-transition), border-color var(--moussa-transition), box-shadow var(--moussa-transition), transform var(--moussa-transition);
}

.course-filters .filter-btn:hover,
.course-filters .filter-btn.active {
    color: #fff;
    border-color: var(--moussa-primary);
    background: linear-gradient(135deg, var(--moussa-primary), #5a32d8);
    box-shadow: 0 10px 24px rgba(51, 71, 232, 0.2);
    transform: translateY(-2px);
}

.modern-course-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.course-card-modern {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--moussa-border);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(27, 38, 91, 0.07);
    transition: transform var(--moussa-transition), box-shadow var(--moussa-transition), border-color var(--moussa-transition);
}

.course-card-modern:hover {
    border-color: rgba(51, 71, 232, 0.22);
    box-shadow: 0 24px 55px rgba(27, 42, 118, 0.14);
    transform: translateY(-8px);
}

.course-card-modern[hidden] {
    display: none !important;
}

.course-card-modern__media {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: #eef0fb;
}

.course-card-modern__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
}

.course-card-modern:hover .course-card-modern__media > img {
    transform: scale(1.06);
}

.course-card-modern__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(to top, rgba(19, 29, 95, 0.62), rgba(25, 38, 126, 0.08));
    opacity: 0;
    text-decoration: none;
    transition: opacity var(--moussa-transition);
}

.course-card-modern:hover .course-card-modern__overlay {
    opacity: 1;
}

.course-card-modern__overlay span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--moussa-primary);
    background: #fff;
    box-shadow: 0 12px 30px rgba(9, 18, 65, 0.28);
    font-size: 24px;
    transform: translateY(10px) scale(.9);
    transition: transform var(--moussa-transition);
}

.course-card-modern:hover .course-card-modern__overlay span {
    transform: translateY(0) scale(1);
}

.course-card-modern__save {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
}

.course-card-modern__save button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 13px;
    color: #34384d;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(16, 25, 70, 0.18);
    cursor: pointer;
    transition: transform var(--moussa-transition), color var(--moussa-transition), background var(--moussa-transition);
}

.course-card-modern__save button:hover,
.course-card-modern__save button.is-saved {
    color: #fff;
    background: var(--moussa-danger);
    transform: scale(1.07);
}

.course-card-modern__body {
    padding: 20px;
}

.course-card-modern__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--moussa-muted);
    font-size: 10.5px;
}

.course-card-modern__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.course-card-modern__meta i {
    color: var(--moussa-primary);
}

.course-card-modern h3 {
    min-height: 54px;
    margin: 15px 0 20px;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 800;
}

.course-card-modern h3 a {
    color: var(--moussa-text);
    text-decoration: none;
}

.course-card-modern h3 a:hover {
    color: var(--moussa-primary);
}

.course-card-modern__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--moussa-border);
}

.course-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.course-price > span {
    color: var(--moussa-muted);
    font-size: 10px;
}

.course-price strong {
    color: var(--moussa-primary);
    font-size: 17px;
    font-weight: 800;
}

.course-price small {
    font-size: 12px;
}

.course-card-modern__footer form {
    margin: 0;
}

.course-action-btn {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--moussa-primary), #5a32d8);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--moussa-transition), box-shadow var(--moussa-transition);
}

.course-action-btn:hover {
    color: #fff;
    box-shadow: 0 10px 24px rgba(51, 71, 232, 0.24);
    transform: translateY(-2px);
}

.course-action-btn--warning {
    color: #322500;
    background: var(--moussa-accent);
}

.course-action-btn--warning:hover {
    color: #322500;
}

.course-action-btn--success {
    background: var(--moussa-success);
}

/* Steps ------------------------------------------------------------------ */
.how-section {
    background: #fff;
}

.home-page .row.g-3 {
    flex-wrap: wrap;
}

.steps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.steps-grid::before {
    content: "";
    position: absolute;
    top: 51px;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(51, 71, 232, .25), transparent);
}

.step-card-modern {
    position: relative;
    z-index: 1;
    min-height: 245px;
    padding: 28px 22px;
    border: 1px solid var(--moussa-border);
    border-radius: 23px;
    background: #fff;
    text-align: center;
    box-shadow: 0 9px 30px rgba(28, 38, 91, 0.06);
    transition: transform var(--moussa-transition), box-shadow var(--moussa-transition), border-color var(--moussa-transition);
}

.step-card-modern:hover {
    border-color: rgba(51, 71, 232, 0.24);
    box-shadow: 0 22px 50px rgba(30, 43, 120, 0.12);
    transform: translateY(-8px);
}

.step-card-modern__number {
    position: absolute;
    top: 16px;
    left: 18px;
    color: rgba(51, 71, 232, 0.35);
    font-size: 15px;
    font-weight: 800;
}

.step-card-modern__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 22px;
    color: var(--moussa-primary);
    background: linear-gradient(145deg, #edf0ff, #fff);
    box-shadow: inset 0 0 0 1px rgba(51, 71, 232, 0.08);
    font-size: 30px;
    transition: color var(--moussa-transition), background var(--moussa-transition), transform var(--moussa-transition);
}

.step-card-modern:hover .step-card-modern__icon {
    color: #fff;
    background: linear-gradient(135deg, var(--moussa-primary), #5a32d8);
    transform: rotate(-5deg) scale(1.06);
}

.step-card-modern h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
}

.step-card-modern p {
    margin: 0;
    color: var(--moussa-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* Instructors ------------------------------------------------------------ */
.instructors-showcase {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 5% 20%, rgba(255, 198, 74, .12), transparent 30%),
        radial-gradient(circle at 95% 80%, rgba(89, 113, 255, .23), transparent 34%),
        linear-gradient(125deg, #121f60, #243aaf 58%, #4b238b);
}

.instructors-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 38px 38px;
}

.section-heading--light {
    position: relative;
    z-index: 1;
}

.section-heading--light h2,
.section-heading--light h2 span {
    color: #fff;
}

.section-heading--light p {
    color: rgba(255, 255, 255, .67);
}

.section-heading--light .section-kicker {
    color: var(--moussa-accent);
}

.instructor-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.instructor-card-modern {
    min-height: 275px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 25px;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    text-align: center;
    text-decoration: none;
    transition: transform var(--moussa-transition), background var(--moussa-transition), border-color var(--moussa-transition), box-shadow var(--moussa-transition);
}

.instructor-card-modern:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 55px rgba(4, 11, 48, 0.25);
    transform: translateY(-8px);
}

.instructor-card-modern__image {
    width: 104px;
    height: 104px;
    margin-bottom: 18px;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--moussa-accent), #fff, #7b8bff);
}

.instructor-card-modern__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #1d2e8f;
    border-radius: 50%;
}

.instructor-card-modern h3 {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 800;
}

.instructor-card-modern > span {
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.instructor-card-modern small {
    margin-top: 16px;
    color: var(--moussa-accent);
    font-size: 11px;
    font-weight: 700;
}

/* Why -------------------------------------------------------------------- */
.why-section-modern {
    background: #fff;
}

.why-section-modern__grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    align-items: center;
    gap: clamp(44px, 7vw, 86px);
}

.why-section-modern__content > p {
    margin-bottom: 30px;
}

.why-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.why-list article {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--moussa-border);
    border-radius: 18px;
    background: #fff;
    transition: transform var(--moussa-transition), box-shadow var(--moussa-transition), border-color var(--moussa-transition);
}

.why-list article:hover {
    border-color: rgba(51, 71, 232, .2);
    box-shadow: var(--moussa-shadow-sm);
    transform: translateY(-5px);
}

.why-list article > span {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    border-radius: 13px;
    color: var(--moussa-primary);
    background: var(--moussa-surface-soft);
    font-size: 19px;
}

.why-list h3 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 800;
}

.why-list p {
    margin: 0;
    color: var(--moussa-muted);
    font-size: 11px;
    line-height: 1.7;
}

.why-section-modern__visual {
    position: relative;
}

.why-visual-card {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
    overflow: visible;
    border-radius: var(--moussa-radius-lg);
    background:
        radial-gradient(circle at center, rgba(51, 71, 232, .16), transparent 52%),
        linear-gradient(145deg, #f0f2ff, #fbfbff);
}

.why-visual-card::before,
.why-visual-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(51, 71, 232, .18);
}

.why-visual-card::before {
    width: 360px;
    height: 360px;
}

.why-visual-card::after {
    width: 440px;
    height: 440px;
}

.why-visual-card > img {
    position: relative;
    z-index: 2;
    width: min(90%, 470px);
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 30px 35px rgba(26, 39, 111, .16));
}

.why-visual-card__badge {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 17px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--moussa-shadow-md);
    backdrop-filter: blur(12px);
}

.why-visual-card__badge > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #684400;
    background: var(--moussa-accent-soft);
    font-size: 19px;
}

.why-visual-card__badge span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.why-visual-card__badge strong {
    font-size: 12px;
}

.why-visual-card__badge small {
    color: var(--moussa-muted);
    font-size: 10px;
}

.why-visual-card__badge--top {
    top: 62px;
    right: -30px;
    animation: miniFloat 4.6s ease-in-out infinite;
}

.why-visual-card__badge--bottom {
    left: -22px;
    bottom: 70px;
    animation: miniFloat 5s ease-in-out infinite -2s;
}

.why-visual-card__badge--bottom > i {
    color: var(--moussa-primary);
    background: #ecefff;
}

/* Testimonials ----------------------------------------------------------- */
.testimonials-section {
    background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-card-modern {
    position: relative;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--moussa-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(28, 39, 93, .06);
    transition: transform var(--moussa-transition), border-color var(--moussa-transition), box-shadow var(--moussa-transition);
}

.testimonial-card-modern:hover {
    border-color: rgba(51, 71, 232, .2);
    box-shadow: 0 23px 55px rgba(27, 42, 118, .12);
    transform: translateY(-7px);
}

.testimonial-card-modern__quote {
    position: absolute;
    top: 18px;
    left: 22px;
    color: #edf0ff;
    font-size: 56px;
    line-height: 1;
}

.testimonial-card-modern > p {
    position: relative;
    z-index: 1;
    margin: 36px 0 30px;
    color: #4c5167;
    font-size: 14px;
    line-height: 2;
}

.testimonial-card-modern__student {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--moussa-border);
}

.testimonial-card-modern__student > img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 15px;
}

.testimonial-card-modern__student h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 800;
}

.testimonial-card-modern__student span {
    color: var(--moussa-muted);
    font-size: 10px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: var(--moussa-accent);
    font-size: 10px;
}

/* App + CTA -------------------------------------------------------------- */
.app-section {
    padding-bottom: 60px;
    background: #fff;
}

.app-section__card {
    min-height: 470px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    align-items: center;
    gap: 40px;
    padding: clamp(40px, 6vw, 72px);
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 198, 74, .18), transparent 27%),
        linear-gradient(125deg, #172e8e, #43309e 60%, #582386);
    box-shadow: var(--moussa-shadow-lg);
}

.app-section__content {
    position: relative;
    z-index: 2;
}

.app-section__content .section-kicker {
    color: var(--moussa-accent);
}

.app-section__content h2,
.app-section__content h2 span {
    color: #fff;
}

.app-section__content > p {
    color: rgba(255, 255, 255, .69);
}

.app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.app-buttons a {
    min-width: 175px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 17px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: transform var(--moussa-transition), background var(--moussa-transition), border-color var(--moussa-transition);
}

.app-buttons a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .17);
    transform: translateY(-4px);
}

.app-buttons i {
    font-size: 25px;
}

.app-buttons span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.app-buttons small {
    color: rgba(255, 255, 255, .62);
    font-size: 9px;
}

.app-buttons strong {
    font-size: 14px;
}

.app-section__visual {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.app-phone-glow {
    position: absolute;
    width: 330px;
    height: 330px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    filter: blur(2px);
}

.app-section__visual img {
    position: relative;
    z-index: 1;
    width: min(310px, 100%);
    max-height: 430px;
    object-fit: contain;
    transform: translateY(34px);
    filter: drop-shadow(0 30px 30px rgba(4, 10, 48, .35));
    animation: phoneFloat 5s ease-in-out infinite;
}

@keyframes phoneFloat {
    50% { transform: translateY(23px); }
}

.final-cta {
    padding-top: 40px;
    background: #fff;
}

.final-cta__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 42px 48px;
    border: 1px solid var(--moussa-border);
    border-radius: 28px;
    background: linear-gradient(135deg, #f7f8ff, #fff9e9);
}

.final-cta h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.final-cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.final-cta .hero-btn--light {
    color: #fff;
    background: linear-gradient(135deg, var(--moussa-primary), #5a32d8);
}

.final-cta .hero-btn--outline {
    color: var(--moussa-primary);
    border-color: rgba(51, 71, 232, .25);
    background: #fff;
}

.final-cta .hero-btn--outline:hover {
    color: var(--moussa-primary-dark);
    border-color: rgba(51, 71, 232, .5);
}

.empty-state {
    grid-column: 1 / -1;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 35px;
    border: 1px dashed rgba(51, 71, 232, .25);
    border-radius: 24px;
    color: var(--moussa-muted);
    background: rgba(255, 255, 255, .7);
    text-align: center;
}

.empty-state i {
    color: var(--moussa-primary);
    font-size: 38px;
}

.empty-state h3 {
    margin: 0;
    color: var(--moussa-text);
    font-size: 17px;
}

.empty-state p {
    margin: 0;
    font-size: 13px;
}

.empty-state--dark {
    color: rgba(255, 255, 255, .65);
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
}

.empty-state--dark i,
.empty-state--dark h3 {
    color: #fff;
}

/* Floating contact ------------------------------------------------------- */
.floating-contact {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
}

.floating-contact__main,
.floating-contact__item {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 19px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--moussa-transition), opacity var(--moussa-transition), visibility var(--moussa-transition), box-shadow var(--moussa-transition);
}

.floating-contact__main {
    background: linear-gradient(145deg, #315cff, #5142e9);
    box-shadow: 0 16px 36px rgba(41, 74, 228, .36);
    font-size: 24px;
}

.floating-contact__main:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 44px rgba(41, 74, 228, .44);
}

.floating-contact__item {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.8);
    font-size: 21px;
}

.floating-contact__item:nth-child(1) { background: #2aabee; }
.floating-contact__item:nth-child(2) { background: #25d366; }

.floating-contact.is-open .floating-contact__item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: clamp(70px, 8vw, 110px);
    padding: 74px 0 24px;
    color: rgba(255, 255, 255, .72);
    background: #10194d;
}

.site-footer__glow {
    position: absolute;
    width: 500px;
    height: 500px;
    top: -260px;
    left: -160px;
    border-radius: 50%;
    background: rgba(83, 64, 213, .26);
    filter: blur(8px);
}

.site-footer__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, .7fr));
    gap: 50px;
    padding-bottom: 45px;
}

.brand--footer {
    color: #fff;
}

.brand--footer:hover {
    color: #fff;
}

.brand--footer .brand__name strong {
    color: var(--moussa-accent);
}

.site-footer__brand > p {
    max-width: 360px;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.9;
}

.footer-socials {
    display: flex;
    gap: 9px;
}

.footer-socials a {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
    transition: transform var(--moussa-transition), background var(--moussa-transition);
}

.footer-socials a:hover {
    color: #fff;
    background: var(--moussa-primary);
    transform: translateY(-3px);
}

.site-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.site-footer__column h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.site-footer__column a {
    color: rgba(255, 255, 255, .67);
    text-decoration: none;
    font-size: 12px;
    transition: color var(--moussa-transition), transform var(--moussa-transition);
}

.site-footer__column a:hover {
    color: var(--moussa-accent);
    transform: translateX(-3px);
}

.site-footer__contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.site-footer__contact p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
}

.site-footer__bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .48);
    font-size: 11px;
}

.site-footer .payment-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer .payment-logos img {
    width: 48px;
    height: 30px;
    object-fit: contain;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    background: rgba(255, 255, 255, .95);
}

.site-footer .payment-logos img:last-child {
    width: 66px;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .site-header__inner {
        gap: 20px;
    }

    .desktop-navigation {
        gap: 16px;
    }

    .desktop-navigation a {
        font-size: 12px;
    }

    .header-btn {
        padding-inline: 17px;
    }

    .modern-course-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__grid {
        grid-template-columns: 1.3fr repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 991.98px) {
    .site-header__inner {
        grid-template-columns: auto 1fr;
    }

    .desktop-navigation {
        display: none;
    }

    .header-actions {
        justify-self: end;
    }

    .header-actions > .header-btn,
    .header-actions > .icon-action:not(:first-child),
    .header-actions > .header-cart,
    .header-actions > .header-logout {
        display: none;
    }

    .mobile-menu-button {
        display: grid;
    }

    .home-hero,
    .home-hero__container {
        min-height: 610px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 24px 24px 0 0;
    }

    .hero-stat:nth-child(2)::after {
        display: none;
    }

    .hero-stat:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .learning-experience__grid,
    .why-section-modern__grid {
        grid-template-columns: 1fr;
    }

    .learning-experience__visual {
        order: 2;
    }

    .modern-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid::before {
        display: none;
    }

    .instructor-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-section__card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-section__content .section-kicker {
        justify-content: center;
    }

    .app-buttons {
        justify-content: center;
    }

    .app-section__visual {
        min-height: 300px;
    }

    .app-section__visual img {
        max-height: 350px;
    }

    .final-cta__card {
        flex-direction: column;
        text-align: center;
    }

    .final-cta__actions {
        justify-content: center;
    }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .container {
        width: min(calc(100% - 24px), 1180px) !important;
    }

    .site-header,
    .site-header__inner {
        min-height: 68px;
    }

    .mobile-menu-panel {
        inset-block-start: 68px;
        max-height: calc(100vh - 68px);
    }

    .brand__icon {
        width: 41px;
        height: 41px;
        border-radius: 12px;
        font-size: 20px;
    }

    .brand__name {
        font-size: 15px;
    }

    .icon-action,
    .header-actions .icon-action,
    .mobile-menu-button {
        width: 41px;
        height: 41px;
        flex-basis: 41px;
        border-radius: 12px;
    }

    .home-hero,
    .home-hero__container {
        min-height: 650px;
    }

    .home-hero__container {
        padding-top: 55px;
    }

    .hero-carousel {
        min-height: 390px;
        padding-inline: 4px;
    }

    .hero-slide h1,
    .hero-slide h2 {
        font-size: clamp(35px, 10vw, 49px);
        letter-spacing: -1px;
    }

    .hero-slide p {
        font-size: 14px;
        line-height: 1.9;
    }

    .hero-arrow {
        top: auto;
        bottom: -22px;
        width: 41px;
        height: 41px;
    }

    .hero-arrow--prev { right: calc(50% - 86px); }
    .hero-arrow--next { left: calc(50% - 86px); }

    .hero-dots {
        bottom: -9px;
    }

    .hero-stats {
        min-height: 150px;
    }

    .hero-stat {
        padding: 14px 8px;
    }

    .hero-stat strong {
        font-size: 23px;
    }

    .hero-stat span {
        font-size: 10px;
    }

    .home-section {
        padding-block: 76px;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .section-heading--split {
        display: block;
        text-align: center;
    }

    .section-heading--split .section-action {
        margin-top: 18px;
    }

    .section-heading h2,
    .learning-experience__content h2,
    .why-section-modern__content h2,
    .app-section__content h2 {
        font-size: clamp(28px, 8vw, 37px);
    }

    .section-heading p,
    .learning-experience__content > p,
    .why-section-modern__content > p,
    .app-section__content > p {
        font-size: 14px;
    }

    .modern-slider {
        grid-template-columns: 1fr;
    }

    .modern-slider__arrow {
        display: none;
    }

    .university-card {
        width: 178px;
        flex-basis: 178px;
        min-height: 215px;
    }

    .video-shell,
    .video-shell > img {
        min-height: 340px;
        height: 340px;
    }

    .experience-float-card {
        left: 15px;
        bottom: 15px;
    }

    .modern-course-grid,
    .steps-grid,
    .instructor-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .course-card-modern__media {
        height: 225px;
    }

    .why-list {
        grid-template-columns: 1fr;
    }

    .why-visual-card {
        min-height: 400px;
    }

    .why-visual-card::before { width: 280px; height: 280px; }
    .why-visual-card::after { width: 340px; height: 340px; }

    .why-visual-card__badge--top {
        top: 28px;
        right: 5px;
    }

    .why-visual-card__badge--bottom {
        left: 5px;
        bottom: 34px;
    }

    .testimonial-card-modern {
        min-height: 255px;
    }

    .app-section__card {
        padding: 40px 22px 0;
        border-radius: 27px;
    }

    .app-section__visual {
        min-height: 270px;
    }

    .app-section__visual img {
        max-height: 300px;
    }

    .final-cta__card {
        padding: 34px 22px;
    }

    .final-cta__actions,
    .final-cta__actions .hero-btn {
        width: 100%;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .floating-contact {
        left: 14px;
        bottom: 14px;
    }

    .floating-contact__main {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }
}

@media (max-width: 479.98px) {
    .mobile-navigation,
    .mobile-menu-panel__actions {
        grid-template-columns: 1fr;
    }

    .brand__name {
        display: none;
    }

    .hero-actions,
    .hero-actions .hero-btn {
        width: 100%;
    }

    .hero-btn {
        min-height: 54px;
    }

    .hero-stats {
        margin-inline: -12px;
    }

    .course-card-modern__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .testimonial-card-modern__student {
        grid-template-columns: 48px 1fr;
    }

    .testimonial-stars {
        grid-column: 2;
    }

    .app-buttons,
    .app-buttons a {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
