@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap');

/* =========================================================
   NOOR PRO ACADEMY
   SHARED SITE HEADER + FOOTER
   ========================================================= */

:root{
    --teal:#159a9c;
    --teal2:#087f81;
    --green:#4fae7b;
    --orange:#e87524;
    --dark:#102b35;
    --text:#40545b;
    --muted:#71838a;
    --bg:#f7faf9;
    --white:#fff;
    --border:#e3ece9;
    --shadow:0 18px 50px rgba(16,43,53,.08);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    color:var(--dark);
    background:var(--bg);
}

button,
input,
select{
    font:inherit;
}

button{
    cursor:pointer;
}

a{
    text-decoration:none;
    color:inherit;
}

.container{
    width:min(1180px,calc(100% - 40px));
    margin:auto;
}

/* =========================================================
   HEADER
   ========================================================= */

header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(227,236,233,.9);
}

.nav{
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.logo{
    display:flex;
    align-items:center;
    gap:11px;
    font-size:17px;
    font-weight:900;
    letter-spacing:.4px;
    color:var(--dark);
    white-space:nowrap;
}

.logo > div:last-child{
    line-height:1;
}

.logo span{
    color:var(--teal);
}

.logo-mark{
    width:42px;
    height:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--teal),var(--green));
    color:#fff;
    box-shadow:0 8px 22px rgba(21,154,156,.22);
    font-size:18px;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:27px;
}

.nav-links a{
    position:relative;
    display:inline-flex;
    align-items:center;
    min-height:42px;
    color:var(--text);
    font-size:14px;
    font-weight:700;
    transition:.2s ease;
}

.nav-links a:hover{
    color:var(--teal);
}

.nav-links a.active{
    color:var(--teal);
}

.nav-links a.active::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:3px;
    height:2px;
    border-radius:10px;
    background:var(--teal);
}

.nav-links .nav-btn{
    min-height:42px;
    padding:0 18px;
    border-radius:11px;
    color:#fff;
    background:var(--teal);
    box-shadow:0 8px 20px rgba(21,154,156,.18);
}

.nav-links .nav-btn:hover{
    color:#fff;
    background:var(--teal2);
    transform:translateY(-1px);
}

.nav-links .nav-btn::after{
    display:none;
}

.menu{
    display:none;
    width:42px;
    height:42px;
    border:1px solid var(--border);
    border-radius:10px;
    background:#fff;
    color:var(--dark);
    font-size:21px;
    align-items:center;
    justify-content:center;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer{
    margin-top:80px;
    background:#fff;
    border-top:1px solid var(--border);
}

.footer{
    min-height:86px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    color:var(--muted);
    font-size:13px;
}

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

@media(max-width:800px){

    .container{
        width:min(100% - 28px,1180px);
    }

    .nav{
        min-height:68px;
    }

    .menu{
        display:flex;
    }

    .nav-links{
        position:absolute;
        top:calc(100% + 1px);
        left:14px;
        right:14px;
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:4px;
        padding:12px;
        background:#fff;
        border:1px solid var(--border);
        border-radius:16px;
        box-shadow:0 18px 45px rgba(16,43,53,.12);
    }

    .nav-links.open{
        display:flex;
    }

    .nav-links a{
        min-height:44px;
        padding:0 12px;
        border-radius:9px;
    }

    .nav-links a:hover{
        background:#f3f9f8;
    }

    .nav-links a.active::after{
        display:none;
    }

    .nav-links .nav-btn{
        justify-content:center;
        margin-top:6px;
    }

    .footer{
        min-height:auto;
        padding:25px 0;
        flex-direction:column;
        text-align:center;
    }
}

/* =========================================================
   OFFICIAL ENGLISH TYPOGRAPHY
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html,
body,
button,
input,
select,
textarea{
    font-family:'Inter',Arial,Helvetica,sans-serif !important;
}

body{
    letter-spacing:-0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6{
    font-family:'Inter',Arial,Helvetica,sans-serif;
    font-weight:800;
}

input,
button{
    font-family:'Inter',Arial,Helvetica,sans-serif !important;
}

/* =========================================================
   HEADER ACCOUNT MENU
   ========================================================= */

.header-account{
    position:relative;
}

.header-account-trigger{
    height:42px;
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:0 12px 0 6px;
    border:1px solid var(--border);
    border-radius:999px;
    background:#fff;
    color:var(--text);
    cursor:pointer;
    font-family:inherit;
    font-size:12px;
    font-weight:800;
    transition:all .2s ease;
}

.header-account-trigger:hover,
.header-account.open .header-account-trigger{
    border-color:#b9dcd7;
    box-shadow:0 8px 22px rgba(16,43,53,.07);
}

.header-account-avatar{
    width:31px;
    height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:linear-gradient(135deg,#159a9c,#4fae7b);
    color:#fff;
    font-size:11px;
    font-weight:900;
}

.header-account-name{
    max-width:135px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.header-account-trigger > i{
    color:#71838a;
    font-size:9px;
    transition:transform .2s ease;
}

.header-account.open .header-account-trigger > i{
    transform:rotate(180deg);
}

.header-account-menu{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    z-index:1000;
    width:245px;
    padding:9px;
    display:none;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    box-shadow:0 18px 45px rgba(16,43,53,.13);
}

.header-account.open .header-account-menu{
    display:block;
}

.header-account-user{
    padding:11px 12px;
}

.header-account-user strong{
    display:block;
    margin-bottom:3px;
    color:var(--dark);
    font-size:13px;
}

.header-account-user span{
    display:block;
    color:var(--muted);
    font-size:10px;
    font-weight:700;
}

.header-account-divider{
    height:1px;
    margin:6px 0;
    background:#edf2f0;
}

.header-account-menu a{
    display:flex !important;
    align-items:center;
    gap:11px;
    min-height:40px;
    padding:0 11px;
    border-radius:9px;
    color:var(--text);
    text-decoration:none;
    font-size:12px;
    font-weight:700;
    transition:all .2s ease;
}

.header-account-menu a i{
    width:17px;
    text-align:center;
    color:#71838a;
    font-size:13px;
}

.header-account-menu a:hover{
    background:#eef8f6;
    color:#087f81;
}

.header-account-menu a:hover i{
    color:#087f81;
}

.header-account-menu .header-account-logout{
    color:#c45c2d;
}

.header-account-menu .header-account-logout i{
    color:#c45c2d;
}

.header-account-menu .header-account-logout:hover{
    background:#fff3ee;
    color:#c45c2d;
}

@media(max-width:850px){

    .header-account-name{
        display:none;
    }

    .header-account-trigger{
        width:42px;
        padding:0;
        justify-content:center;
    }

    .header-account-trigger > i{
        display:none;
    }

    .header-account-menu{
        right:-5px;
    }

}

@media(max-width:620px){

    .header-account-menu{
        position:fixed;
        top:70px;
        right:12px;
        left:12px;
        width:auto;
    }

}


.header-account{
    position:relative;
}

.header-account-trigger{
    height:42px;
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:0 12px 0 6px;
    border:1px solid var(--border);
    border-radius:999px;
    background:#fff;
    color:var(--text);
    cursor:pointer;
    font-family:inherit;
    font-size:12px;
    font-weight:800;
}

.header-account-avatar{
    width:31px;
    height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:linear-gradient(135deg,#159a9c,#4fae7b);
    color:#fff;
    font-size:11px;
    font-weight:900;
}

.header-account-name{
    max-width:135px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.header-account-trigger > i{
    color:#71838a;
    font-size:9px;
    transition:transform .2s ease;
}

.header-account.open .header-account-trigger > i{
    transform:rotate(180deg);
}

.header-account-menu{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    z-index:9999;
    width:245px;
    padding:9px;
    display:none;
    background:#fff;
    border:1px solid #e3ece9;
    border-radius:16px;
    box-shadow:0 18px 45px rgba(16,43,53,.13);
}

.header-account.open .header-account-menu{
    display:block;
}

.header-account-user{
    padding:11px 12px;
}

.header-account-user strong{
    display:block;
    color:#102b35;
    font-size:13px;
}

.header-account-user span{
    display:block;
    margin-top:3px;
    color:#71838a;
    font-size:10px;
    font-weight:700;
}

.header-account-divider{
    height:1px;
    margin:6px 0;
    background:#edf2f0;
}

.header-account-menu a{
    display:flex !important;
    align-items:center;
    gap:11px;
    min-height:40px;
    padding:0 11px;
    border-radius:9px;
    color:#40545b !important;
    text-decoration:none !important;
    font-size:12px;
    font-weight:700;
}

.header-account-menu a i{
    width:17px;
    text-align:center;
    color:#71838a;
}

.header-account-menu a:hover{
    background:#eef8f6;
    color:#087f81 !important;
}

.header-account-menu .header-account-logout{
    color:#c45c2d !important;
}

@media(max-width:850px){
    .header-account-name{
        display:none;
    }

    .header-account-trigger{
        width:42px;
        padding:0;
        justify-content:center;
    }

    .header-account-trigger > i{
        display:none;
    }
}

/* =========================================================
   GLOBAL HEADER ACCOUNT — FINAL
   ========================================================= */

.header-account {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
}

.header-account-trigger {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1px solid #e3ece9 !important;
    background: #fff !important;
    color: #102b35 !important;
    border-radius: 999px !important;
    min-height: 44px !important;
    padding: 5px 12px 5px 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(16,43,53,.06) !important;
    transition: .2s ease !important;
}

.header-account-trigger:hover {
    border-color: #159a9c !important;
    color: #087f81 !important;
}

.header-account-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    background: #159a9c !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.header-account-name {
    display: inline-block !important;
    max-width: 130px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.header-account-trigger > i {
    font-size: 10px !important;
    transition: transform .2s ease !important;
}

.header-account.open .header-account-trigger > i {
    transform: rotate(180deg) !important;
}

.header-account-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: 245px !important;
    padding: 8px !important;
    box-sizing: border-box !important;

    background: #fff !important;
    border: 1px solid #e3ece9 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 45px rgba(16,43,53,.15) !important;

    z-index: 99999 !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-7px) !important;

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease !important;
}

.header-account.open .header-account-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.header-account-user {
    padding: 10px 11px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.header-account-user strong {
    color: #102b35 !important;
    font-size: 14px !important;
}

.header-account-user span {
    color: #71838a !important;
    font-size: 12px !important;
}

.header-account-divider {
    height: 1px !important;
    background: #e3ece9 !important;
    margin: 5px 3px !important;
}

.header-account-menu > a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;

    padding: 10px 11px !important;
    border-radius: 9px !important;

    color: #40545b !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;

    transition: background .15s ease, color .15s ease !important;
}

.header-account-menu > a:hover {
    background: #f1f9f8 !important;
    color: #087f81 !important;
}

.header-account-menu > a i {
    width: 18px !important;
    text-align: center !important;
    color: #159a9c !important;
}

.header-account-menu > a.header-account-logout {
    color: #c94f3d !important;
}

.header-account-menu > a.header-account-logout i {
    color: #c94f3d !important;
}


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

@media (max-width: 900px) {

    body {
        padding-top: 70px !important;
    }

    body.account-sheet-open {
        overflow: hidden !important;
        touch-action: none !important;
    }

    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 68px !important;

        z-index: 10000 !important;

        background: rgba(255,255,255,.96) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;

        border-bottom: 1px solid #e3ece9 !important;
        box-shadow: 0 4px 20px rgba(16,43,53,.08) !important;
    }

    header .nav {
        height: 68px !important;
        min-height: 68px !important;
    }

    /*
     * Mobile navigation.
     * No transform animation here because the account
     * Bottom Sheet must remain truly fixed to the viewport.
     */
    .nav-links {
        position: fixed !important;
        top: 68px !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;
        max-height: calc(100vh - 68px) !important;

        overflow-y: auto !important;
        overscroll-behavior: contain !important;

        background: #fff !important;
        box-sizing: border-box !important;

        z-index: 9998 !important;
    }


    /* =====================================================
       MOBILE ACCOUNT TRIGGER
       ===================================================== */

    .header-account {
        width: 100% !important;
        margin: 8px 0 !important;
        display: block !important;
    }

    .header-account-trigger {
        width: 100% !important;
        min-height: 52px !important;

        padding: 7px 12px 7px 7px !important;

        border-radius: 14px !important;

        justify-content: flex-start !important;
    }

    .header-account-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .header-account-name {
        flex: 1 !important;
        max-width: none !important;
        text-align: left !important;
    }

    .header-account-trigger > i {
        margin-left: auto !important;
    }


    /* =====================================================
       MOBILE ACCOUNT BOTTOM SHEET
       ===================================================== */

    .header-account-menu {
        position: fixed !important;

        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;

        width: 100vw !important;
        max-height: 82vh !important;

        margin: 0 !important;
        padding:
            10px
            12px
            calc(18px + env(safe-area-inset-bottom))
            !important;

        box-sizing: border-box !important;

        background: #fff !important;

        border: 0 !important;
        border-top: 1px solid #e3ece9 !important;

        border-radius: 22px 22px 0 0 !important;

        box-shadow:
            0 -15px 45px rgba(16,43,53,.20) !important;

        overflow-y: auto !important;
        overscroll-behavior: contain !important;

        z-index: 20000 !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transform: translate3d(0,110%,0) !important;

        transition:
            transform .28s cubic-bezier(.22,1,.36,1),
            opacity .2s ease,
            visibility .2s ease !important;
    }

    .header-account.open .header-account-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: translate3d(0,0,0) !important;
    }

    /* Bottom sheet handle */

    .header-account-menu::before {
        content: "" !important;

        display: block !important;

        width: 42px !important;
        height: 4px !important;

        margin: 2px auto 12px !important;

        border-radius: 999px !important;

        background: #d7e3e0 !important;
    }

    .header-account-user {
        padding: 10px 12px 14px !important;
    }

    .header-account-user strong {
        font-size: 16px !important;
    }

    .header-account-user span {
        font-size: 13px !important;
    }

    .header-account-menu > a {
        min-height: 50px !important;

        padding: 12px !important;

        border-radius: 12px !important;

        font-size: 14px !important;
    }

    .header-account-menu > a i {
        font-size: 15px !important;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    body {
        padding-top: 66px !important;
    }

    header,
    header .nav {
        height: 64px !important;
        min-height: 64px !important;
    }

    .nav-links {
        top: 64px !important;
        max-height: calc(100vh - 64px) !important;
    }

    .header-account-menu {
        max-height: 86vh !important;
        border-radius: 20px 20px 0 0 !important;
    }
}


/* MOBILE APP BOTTOM NAVIGATION — CLEAN */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {

    body {
        padding-bottom: 82px !important;
    }

    footer,
    .site-footer,
    .main-footer,
    .footer {
        display: none !important;
    }

    .mobile-bottom-nav {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 70px !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        padding: 5px 4px !important;
        padding-bottom: calc(5px + env(safe-area-inset-bottom)) !important;
        box-sizing: border-box !important;
        background: rgba(255,255,255,.98) !important;
        border-top: 1px solid #e3ece9 !important;
        box-shadow: 0 -8px 28px rgba(16,43,53,.12) !important;
        z-index: 999999 !important;
    }

    .mobile-bottom-item {
        position: relative !important;
        min-width: 0 !important;
        height: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        color: #71838a !important;
        text-decoration: none !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
    }

    .mobile-bottom-item i {
        display: block !important;
        font-size: 18px !important;
    }

    .mobile-bottom-item.active {
        color: #159a9c !important;
    }

    .mobile-bottom-item.active::before {
        content: "" !important;
        position: absolute !important;
        top: -5px !important;
        left: 50% !important;
        width: 25px !important;
        height: 3px !important;
        transform: translateX(-50%) !important;
        border-radius: 999px !important;
        background: #159a9c !important;
    }

    .mobile-bottom-avatar {
        width: 25px !important;
        height: 25px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: #159a9c !important;
        color: #fff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 380px) {
    .mobile-bottom-item {
        font-size: 9px !important;
    }

    .mobile-bottom-item i {
        font-size: 16px !important;
    }
}\n

/* STUDENT PAGES — MOBILE APP MODE */
@media (max-width: 900px) {
    .student-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .student-sidebar {
        display: none !important;
    }

    .student-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 18px 14px 100px !important;
        box-sizing: border-box !important;
    }

    .student-content .dashboard-top {
        width: 100% !important;
        max-width: 100% !important;
    }

    .student-content .dashboard-top > * {
        max-width: 100% !important;
    }

    .student-content .dashboard-section,
    .student-content .dashboard-courses,
    .student-content .dashboard-stats {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .student-content .card {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .student-content {
        padding: 15px 12px 95px !important;
    }
}


/* STUDENT MOBILE FINAL OVERRIDE */

@media screen and (max-width: 900px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Remove desktop student sidebar */
    .student-layout .student-sidebar {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
    }

    /* One-column student layout */
    .student-layout {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Full-width content */
    .student-layout .student-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 18px 14px 100px !important;
        box-sizing: border-box !important;
        grid-column: auto !important;
        grid-area: auto !important;
    }

    /* Certificates / Courses top section */
    .student-content .dashboard-top {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Cards */
    .student-content .card,
    .student-content .certificate-card,
    .student-content .course-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Bottom navigation space */
    body {
        padding-bottom: 90px !important;
    }

    /* Hide footer */
    footer,
    .site-footer,
    .main-footer,
    .footer {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {

    .student-layout .student-content {
        padding: 15px 12px 95px !important;
    }
}

/* =========================================================
   NOOR PRO ACADEMY
   GLOBAL HEADER / FOOTER / MOBILE NAV
   ========================================================= */

/* =========================
   GLOBAL DESKTOP HEADER
   ========================= */

header{
    position:relative;
    z-index:1000;
    width:100%;
    background:#ffffff;
    border-bottom:1px solid #e8efed;
    box-shadow:0 2px 12px rgba(16,43,53,.04);
}

header .container.nav{
    width:min(1180px,calc(100% - 40px));
    min-height:76px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.nav-links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
}

.nav-links a{
    position:relative;
    display:inline-flex;
    align-items:center;
    min-height:42px;
    padding:0 14px;
    border-radius:10px;
    color:#40545b;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
    transition:
        color .2s ease,
        background .2s ease;
}

.nav-links a:hover{
    color:#087f81;
    background:#f0f8f7;
}

.nav-links a.active{
    color:#087f81;
    background:#edf8f6;
    font-weight:800;
}

.nav-links a.active::after{
    content:"";
    position:absolute;
    left:14px;
    right:14px;
    bottom:3px;
    height:2px;
    border-radius:10px;
    background:#159a9c;
}

/* =========================
   HEADER BUTTONS
   ========================= */

header .btn,
header .login-btn,
header .register-btn{
    border-radius:10px;
}

/* =========================
   GLOBAL FOOTER
   ========================= */

footer{
    position:relative;
    width:100%;
    background:#102b35;
    color:#dbe7e5;
    border-top:1px solid rgba(255,255,255,.06);
}

footer .container{
    width:min(1180px,calc(100% - 40px));
    margin:0 auto;
}

footer a{
    color:#cbdedb;
    text-decoration:none;
    transition:color .2s ease;
}

footer a:hover{
    color:#61d3c4;
}

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

@media(max-width:768px){

    body{
        padding-bottom:78px !important;
    }

    header{
        position:sticky;
        top:0;
        z-index:1100;
        background:rgba(255,255,255,.97);
        backdrop-filter:blur(14px);
        -webkit-backdrop-filter:blur(14px);
        box-shadow:0 3px 18px rgba(16,43,53,.08);
    }

    header .container.nav{
        width:100%;
        min-height:64px;
        padding:0 16px;
        box-sizing:border-box;
        gap:10px;
    }

    .nav-links{
        display:none !important;
    }

    header .mobile-menu-toggle,
    header .menu-toggle,
    header button{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    /* keep header compact */
    header .logo img{
        max-height:40px;
        width:auto;
    }

    /* =========================
       MOBILE BOTTOM NAV
       ========================= */

    .mobile-bottom-nav{
        position:fixed !important;
        left:10px !important;
        right:10px !important;
        bottom:10px !important;
        z-index:2000 !important;
        display:flex !important;
        align-items:stretch;
        justify-content:space-around;
        min-height:64px;
        padding:7px 5px;
        box-sizing:border-box;
        background:rgba(255,255,255,.97);
        border:1px solid #dfeae8;
        border-radius:20px;
        box-shadow:
            0 10px 35px rgba(16,43,53,.16),
            0 2px 8px rgba(16,43,53,.08);
        backdrop-filter:blur(16px);
        -webkit-backdrop-filter:blur(16px);
    }

    .mobile-bottom-nav a{
        position:relative;
        flex:1;
        min-width:0;
        display:flex !important;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:4px;
        padding:6px 3px;
        border-radius:14px;
        color:#71838a;
        font-size:10px;
        font-weight:700;
        line-height:1;
        text-decoration:none;
        transition:
            color .2s ease,
            background .2s ease;
    }

    .mobile-bottom-nav a i{
        font-size:17px;
        line-height:1;
    }

    .mobile-bottom-nav a.active{
        color:#087f81;
        background:#edf8f6;
    }

    .mobile-bottom-nav a.active i{
        color:#087f81;
    }

    .mobile-bottom-nav a.active::before{
        content:"";
        position:absolute;
        top:3px;
        width:20px;
        height:3px;
        border-radius:20px;
        background:#159a9c;
    }

    /* prevent footer from touching bottom navigation */
    footer{
        padding-bottom:85px;
    }

}

/* =========================
   DESKTOP: HIDE MOBILE NAV
   ========================= */

@media(min-width:769px){

    .mobile-bottom-nav{
        display:none !important;
    }

}

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

@media(max-width:420px){

    .mobile-bottom-nav{
        left:7px !important;
        right:7px !important;
        bottom:7px !important;
        border-radius:18px;
    }

    .mobile-bottom-nav a{
        font-size:9px;
    }

    .mobile-bottom-nav a i{
        font-size:16px;
    }

}


/* =========================================================
   MOBILE HEADER MENU — FINAL FIX
   ========================================================= */

.menu{
    display:none;
    border:0;
    outline:0;
    cursor:pointer;
    background:transparent;
    color:#102b35;
    padding:10px;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    font-size:21px;
    z-index:1200;
}

.menu:hover{
    background:#edf8f6;
    color:#087f81;
}

@media(max-width:768px){

    header .container.nav{
        position:relative !important;
        min-height:64px !important;
    }

    .menu{
        display:flex !important;
        flex:0 0 44px;
        position:relative !important;
        z-index:1300 !important;
    }

    header .nav-links{
        position:absolute !important;
        top:calc(100% + 1px) !important;
        left:0 !important;
        right:0 !important;
        width:100% !important;
        box-sizing:border-box !important;

        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        gap:4px !important;

        padding:10px 14px 14px !important;

        background:#fff !important;
        border-top:1px solid #e8efed !important;
        border-bottom:1px solid #dfeae8 !important;
        box-shadow:0 12px 25px rgba(16,43,53,.10) !important;

        visibility:hidden !important;
        opacity:0 !important;
        transform:translateY(-8px) !important;
        pointer-events:none !important;

        transition:
            opacity .2s ease,
            transform .2s ease,
            visibility .2s ease !important;

        z-index:1250 !important;
    }

    header .nav-links.open{
        visibility:visible !important;
        opacity:1 !important;
        transform:translateY(0) !important;
        pointer-events:auto !important;
    }

    header .nav-links a{
        width:100% !important;
        min-height:46px !important;
        box-sizing:border-box !important;
        justify-content:flex-start !important;
        padding:0 15px !important;
        border-radius:10px !important;
        font-size:14px !important;
    }

    header .nav-links a.active::after{
        display:none !important;
    }

    header .nav-links .nav-btn{
        justify-content:center !important;
        margin-top:4px !important;
    }

    /* Account dropdown becomes part of mobile menu */
    header .header-account{
        width:100% !important;
    }

    header .header-account-trigger{
        width:100% !important;
        min-height:46px !important;
        box-sizing:border-box !important;
        justify-content:flex-start !important;
        padding:0 15px !important;
        border-radius:10px !important;
    }

    header .header-account-menu{
        position:static !important;
        width:100% !important;
        box-sizing:border-box !important;
        margin-top:5px !important;
    }

    /* Bottom nav must remain above all page content */
    .mobile-bottom-nav{
        position:fixed !important;
        display:flex !important;
        visibility:visible !important;
        opacity:1 !important;
        pointer-events:auto !important;

        left:8px !important;
        right:8px !important;
        bottom:8px !important;

        width:auto !important;
        height:auto !important;
        min-height:64px !important;

        z-index:99999 !important;
    }

    .mobile-bottom-nav a{
        pointer-events:auto !important;
    }

}

/* Desktop */
@media(min-width:769px){

    .menu{
        display:none !important;
    }

    header .nav-links{
        position:static;
        visibility:visible;
        opacity:1;
        transform:none;
        pointer-events:auto;
    }

    .mobile-bottom-nav{
        display:none !important;
    }

}



/* =========================================================
   MOBILE BOTTOM NAV — FULL WIDTH / FIXED
   ========================================================= */

@media (max-width: 768px){

    body{
        padding-bottom:78px !important;
    }

    .mobile-bottom-nav{
        position:fixed !important;
        left:0 !important;
        right:0 !important;
        bottom:0 !important;

        width:100% !important;
        height:68px !important;
        min-height:68px !important;

        margin:0 !important;
        padding:0 !important;

        border-radius:0 !important;
        box-sizing:border-box !important;

        display:flex !important;
        align-items:stretch !important;
        justify-content:space-around !important;

        z-index:999999 !important;

        background:#ffffff !important;
        border-top:1px solid #e3ece9 !important;
        border-left:0 !important;
        border-right:0 !important;
        border-bottom:0 !important;

        box-shadow:0 -5px 20px rgba(16,43,53,.10) !important;
    }

    .mobile-bottom-nav a{
        flex:1 1 0 !important;
        width:auto !important;
        max-width:none !important;
        min-width:0 !important;
        height:68px !important;

        margin:0 !important;
        padding:7px 4px 5px !important;

        border-radius:0 !important;

        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        justify-content:center !important;
        gap:3px !important;

        box-sizing:border-box !important;
    }

    .mobile-bottom-nav i{
        font-size:17px !important;
        line-height:1 !important;
    }

    .mobile-bottom-nav span{
        font-size:10px !important;
        line-height:1.1 !important;
        white-space:nowrap !important;
    }

}

@media (min-width:769px){
    .mobile-bottom-nav{
        display:none !important;
    }
}

/* =========================================================
   MOBILE ACCOUNT MENU — ABOVE BOTTOM NAV
   ========================================================= */

@media (max-width: 900px){

    .header-account-menu{
        z-index:1000000 !important;
        padding-bottom:calc(90px + env(safe-area-inset-bottom)) !important;
    }

    .header-account.open .header-account-menu{
        z-index:1000000 !important;
    }

}

/* MOBILE TOP ACCOUNT — SIGN OUT */

.mobile-header-logout{
    display:none !important;
}

@media (max-width:768px){

    .mobile-header-logout{
        display:flex !important;
        width:100% !important;
        min-height:48px !important;
        box-sizing:border-box !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:10px !important;

        margin:4px 0 8px !important;
        padding:0 15px !important;

        border-radius:10px !important;
        background:#fff5f5 !important;

        color:#c84b4b !important;
        text-decoration:none !important;
        font-size:14px !important;
        font-weight:600 !important;
    }

    .mobile-header-logout i{
        color:#c84b4b !important;
        font-size:15px !important;
    }

}

/* Fix course preview proportions */
.course-preview {
    width: 100%;
}

.preview-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0 !important;
    height: auto !important;
    max-height: 520px;
}

.course-preview-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Mobile course video modal fix */
@media (max-width: 600px) {

    .course-video-modal {
        padding: 12px;
    }

    .course-video-dialog {
        width: 100%;
        max-width: 100%;
        padding: 5px;
        border-radius: 14px;
    }

    .course-video-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 55vh;
        border-radius: 10px;
    }

    .course-youtube-video {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .course-video-close {
        width: 36px;
        height: 36px;
        top: -44px;
        right: 0;
    }
}


/* =========================================================
   LANGUAGE SWITCHER
========================================================= */

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    margin-left: 10px;
    border: 1px solid #e3ece9;
    border-radius: 999px;
    background: #fff;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #40545b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.language-switcher a:hover {
    color: #087f81;
}

.language-switcher a.active {
    background: #159a9c;
    color: #fff;
}

html[dir="rtl"],
html[dir="rtl"] body {
    font-family: 'Tajawal', sans-serif;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nav {
    direction: rtl;
}

html[dir="rtl"] .nav-links {
    direction: rtl;
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="rtl"] .fa-arrow-right {
    transform: scaleX(-1);
}

html[dir="rtl"] .fa-arrow-left {
    transform: scaleX(-1);
}

@media (max-width: 900px) {
    .language-switcher {
        margin: 10px 0;
    }

    html[dir="rtl"] .language-switcher {
        margin: 10px 0;
    }
}




/* =========================================================
   Arabic typography — Tajawal
   ========================================================= */
html[dir="rtl"],
html[dir="rtl"] body {
    font-family: 'Tajawal', sans-serif;
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .btn,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .language-switcher,
html[dir="rtl"] .course-btn {
    font-family: 'Tajawal', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] button,
html[dir="rtl"] label {
    font-family: 'Tajawal', sans-serif;
}


/* =========================================================
   MOBILE HOMEPAGE CENTER — FINAL
   English + Arabic
   ========================================================= */
@media (max-width: 600px) {

    body.home-page {
        text-align: center !important;
    }

    body.home-page .hero,
    body.home-page .hero-content,
    body.home-page .hero-text,
    body.home-page .hero-copy,
    body.home-page .hero-actions,
    body.home-page .hero-stats,
    body.home-page section,
    body.home-page .section-head,
    body.home-page .section-heading,
    body.home-page .section-intro,
    body.home-page .eyebrow,
    body.home-page .stats,
    body.home-page .stat,
    body.home-page .language-card,
    body.home-page .course-card,
    body.home-page .instructor-card,
    body.home-page .experience-card,
    body.home-page .faq-item,
    body.home-page .cta-section,
    body.home-page .cta-content {
        text-align: center !important;
    }

    body.home-page h1,
    body.home-page h2,
    body.home-page h3,
    body.home-page h4,
    body.home-page p,
    body.home-page .eyebrow,
    body.home-page .badge,
    body.home-page .stat,
    body.home-page .meta,
    body.home-page .course-title,
    body.home-page .course-desc {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.home-page .hero-actions,
    body.home-page .stats,
    body.home-page .hero-stats,
    body.home-page .lang-tabs,
    body.home-page .filter,
    body.home-page .filters,
    body.home-page .course-actions {
        justify-content: center !important;
        align-items: center !important;
    }

    body.home-page .btn,
    body.home-page .course-btn {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.home-page .faq-item button {
        justify-content: center !important;
        text-align: center !important;
    }

    /* Arabic */
    html[dir="rtl"] body.home-page,
    html[dir="rtl"] body.home-page * {
        text-align: center !important;
    }

    /* English */
    html[dir="ltr"] body.home-page,
    html[dir="ltr"] body.home-page * {
        text-align: center !important;
    }
}


/* =========================================================
   NOOR PRO ACADEMY — PREMIUM MOTION SYSTEM
   ========================================================= */

:root {
    --motion-fast: .25s;
    --motion-normal: .55s;
    --motion-slow: .9s;
}

/* ---------- Global reveal ---------- */

.home-page .reveal,
.home-page section:not(.hero) {
    will-change: transform, opacity;
}

/* ---------- Hero entrance ---------- */

.home-page .hero {
    position: relative;
    overflow: hidden;
}

.home-page .hero::before,
.home-page .hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .18;
    z-index: 0;
}

.home-page .hero::before {
    width: 280px;
    height: 280px;
    background: #159a9c;
    top: 8%;
    right: -100px;
    animation: npFloat 8s ease-in-out infinite;
}

.home-page .hero::after {
    width: 220px;
    height: 220px;
    background: #4fae7b;
    bottom: -90px;
    left: -70px;
    animation: npFloatReverse 10s ease-in-out infinite;
}

.home-page .hero > * {
    position: relative;
    z-index: 1;
}

.home-page .hero h1 {
    animation: npHeroTitle .9s cubic-bezier(.22,1,.36,1) both;
}

.home-page .hero p {
    animation: npHeroText .8s .12s cubic-bezier(.22,1,.36,1) both;
}

.home-page .hero .btn {
    animation: npHeroButton .7s .2s cubic-bezier(.22,1,.36,1) both;
}

.home-page .hero .badge {
    animation: npBadge .7s cubic-bezier(.22,1,.36,1) both;
}

/* ---------- Floating elements ---------- */

.home-page .floating {
    animation: npFloating 5s ease-in-out infinite;
    will-change: transform;
}

.home-page .floating.float2 {
    animation-delay: -2s;
}

/* ---------- Cards ---------- */

.home-page .language-card,
.home-page .course-card,
.home-page .instructor-card,
.home-page .experience-card {
    transition:
        transform var(--motion-normal) cubic-bezier(.22,1,.36,1),
        box-shadow var(--motion-normal) ease,
        border-color var(--motion-normal) ease;
    will-change: transform;
}

.home-page .language-card:hover,
.home-page .course-card:hover,
.home-page .instructor-card:hover,
.home-page .experience-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 22px 45px rgba(16, 43, 53, .12);
}

/* ---------- Course image ---------- */

.home-page .course-card img,
.home-page .language-card img,
.home-page .instructor-card img {
    transition:
        transform .7s cubic-bezier(.22,1,.36,1),
        filter .5s ease;
}

.home-page .course-card:hover img,
.home-page .language-card:hover img,
.home-page .instructor-card:hover img {
    transform: scale(1.045);
}

/* ---------- Buttons ---------- */

.home-page .btn,
.home-page .course-btn {
    transition:
        transform .3s cubic-bezier(.22,1,.36,1),
        box-shadow .3s ease,
        background-color .3s ease;
}

.home-page .btn:hover,
.home-page .course-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(21, 154, 156, .20);
}

.home-page .btn:active,
.home-page .course-btn:active {
    transform: translateY(0) scale(.98);
}

/* ---------- Section headings ---------- */

.home-page .eyebrow {
    transition: letter-spacing .4s ease;
}

.home-page .eyebrow:hover {
    letter-spacing: .12em;
}

/* ---------- Language tabs ---------- */

.home-page .lang-tab,
.home-page .filter {
    transition:
        transform .25s ease,
        background-color .25s ease,
        color .25s ease;
}

.home-page .lang-tab:hover,
.home-page .filter:hover {
    transform: translateY(-2px);
}

/* ---------- Stats ---------- */

.home-page .stat strong {
    display: inline-block;
    transition: transform .4s ease;
}

.home-page .stat:hover strong {
    transform: scale(1.08);
}

/* ---------- FAQ ---------- */

.home-page .faq-item {
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.home-page .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 43, 53, .07);
}

/* ---------- CTA ---------- */

.home-page .cta-section {
    position: relative;
    overflow: hidden;
}

.home-page .cta-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    right: -100px;
    top: -120px;
    animation: npOrbit 12s linear infinite;
    pointer-events: none;
}

.home-page .cta-section::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.10);
    left: -70px;
    bottom: -80px;
    animation: npOrbitReverse 10s linear infinite;
    pointer-events: none;
}

/* ---------- Scroll reveal ---------- */

.home-page .scroll-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.22,1,.36,1);
}

.home-page .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-page .scroll-reveal:nth-child(2) {
    transition-delay: .08s;
}

.home-page .scroll-reveal:nth-child(3) {
    transition-delay: .16s;
}

.home-page .scroll-reveal:nth-child(4) {
    transition-delay: .24s;
}

/* ---------- Keyframes ---------- */

@keyframes npHeroTitle {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes npHeroText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes npHeroButton {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes npBadge {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes npFloating {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(.7deg);
    }
}

@keyframes npFloat {
    0%, 100% {
        transform: translate3d(0,0,0) scale(1);
    }
    50% {
        transform: translate3d(-20px,18px,0) scale(1.05);
    }
}

@keyframes npFloatReverse {
    0%, 100% {
        transform: translate3d(0,0,0) scale(1);
    }
    50% {
        transform: translate3d(22px,-15px,0) scale(1.08);
    }
}

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

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

/* =========================================================
   MOBILE — softer, faster and cleaner
   ========================================================= */

@media (max-width: 600px) {

    .home-page .hero::before {
        width: 180px;
        height: 180px;
        right: -90px;
    }

    .home-page .hero::after {
        width: 150px;
        height: 150px;
        left: -70px;
    }

    .home-page .language-card:hover,
    .home-page .course-card:hover,
    .home-page .instructor-card:hover,
    .home-page .experience-card:hover {
        transform: translateY(-4px);
    }

    .home-page .floating {
        animation-duration: 6s;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .home-page *,
    .home-page *::before,
    .home-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .home-page .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================================
   NOOR PRO ACADEMY — UNIVERSAL MOBILE SYSTEM
   Unified typography + spacing + layout for all phones
   ========================================================= */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.65;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

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

/* ---------- Global responsive container ---------- */

.container,
.page-container,
.section-container,
.content-container {
    width: min(100% - 32px, 1200px);
    margin-inline: auto;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6,
p {
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2rem, 7vw, 4rem);
    line-height: 1.12;
}

h2 {
    font-size: clamp(1.65rem, 5vw, 3rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.25rem, 4vw, 2rem);
    line-height: 1.3;
}

p {
    font-size: clamp(.95rem, 2.5vw, 1.08rem);
}

/* ---------- Touch targets ---------- */

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
.nav-btn,
.btn,
.cta-btn {
    min-height: 44px;
}

/* =========================================================
   MOBILE — ALL PHONE SIZES
   ========================================================= */

@media (max-width: 767px) {

    html {
        font-size: 16px;
    }

    body {
        width: 100%;
        min-width: 0;
        font-size: 15px;
    }

    .container,
    .page-container,
    .section-container,
    .content-container {
        width: calc(100% - 28px);
        max-width: 100%;
        margin-inline: auto;
    }

    /* Header */

    header {
        width: 100%;
        max-width: 100%;
    }

    .header-inner,
    .navbar,
    .nav-container {
        width: 100%;
        max-width: 100%;
        padding-inline: 14px;
    }

    /* Sections */

    section {
        max-width: 100%;
        overflow: hidden;
    }

    .hero,
    .hero-section,
    .page-hero {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* Headings */

    h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
        line-height: 1.12;
        margin-top: 0;
    }

    h2 {
        font-size: clamp(1.55rem, 7vw, 2.2rem);
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(1.2rem, 5.5vw, 1.55rem);
    }

    p {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Buttons */

    .hero-buttons,
    .cta-buttons,
    .button-group,
    .actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons a,
    .cta-buttons a,
    .button-group a,
    .actions a,
    .hero-buttons button,
    .cta-buttons button {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    /* Cards */

    .cards,
    .course-grid,
    .courses-grid,
    .language-grid,
    .instructor-grid,
    .blog-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .card,
    .course-card,
    .language-card,
    .instructor-card,
    .blog-card {
        width: 100%;
        max-width: 100%;
    }

    /* Forms */

    form {
        width: 100%;
        max-width: 100%;
    }

    input,
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
    }

    textarea {
        min-height: 120px;
    }

    /* Tables */

    .table-wrapper,
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 620px;
    }

    /* Images */

    .hero img,
    .hero-image,
    .section-image,
    .course-image,
    .blog-image {
        max-width: 100%;
        height: auto;
    }

    /* Prevent horizontal overflow from decorative elements */

    .hero *,
    .page-hero *,
    .section *,
    .container * {
        max-width: 100%;
    }

    /* But preserve media dimensions */

    .hero img,
    .page-hero img,
    .section img,
    .container img,
    video,
    iframe {
        max-width: 100%;
    }

    /* Mobile text alignment */

    .home-page .hero,
    .home-page .hero-content,
    .home-page .section-title,
    .home-page .section-heading {
        text-align: center;
    }

    /* Navigation */

    .nav-links {
        width: 100%;
    }

    /* Modal */

    .modal,
    .modal-content,
    .course-modal,
    .video-modal {
        max-width: calc(100vw - 24px);
    }

    /* Footer */

    footer {
        width: 100%;
        overflow: hidden;
    }

    footer .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   VERY SMALL PHONES — 320–374px
   ========================================================= */

@media (max-width: 374px) {

    .container,
    .page-container,
    .section-container,
    .content-container {
        width: calc(100% - 24px);
    }

    h1 {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

    h2 {
        font-size: clamp(1.45rem, 7vw, 1.85rem);
    }

    p {
        font-size: 14px;
    }

    .header-inner,
    .navbar,
    .nav-container {
        padding-inline: 10px;
    }
}

/* =========================================================
   SMALL PHONES — 375–430px
   ========================================================= */

@media (min-width: 375px) and (max-width: 430px) {

    .container,
    .page-container,
    .section-container,
    .content-container {
        width: calc(100% - 28px);
    }
}

/* =========================================================
   LARGE PHONES / SMALL TABLETS
   ========================================================= */

@media (min-width: 431px) and (max-width: 767px) {

    .container,
    .page-container,
    .section-container,
    .content-container {
        width: calc(100% - 40px);
        max-width: 680px;
    }

    .course-grid,
    .courses-grid,
    .language-grid,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px;
    }
}

/* =========================================================
   RTL
   ========================================================= */

html[dir="rtl"] body {
    font-family: 'Tajawal', Arial, sans-serif;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   NOOR PRO — MOBILE HOMEPAGE FINAL NORMALIZATION
   Designed for 320px → 430px
   ========================================================= */

@media (max-width: 767px) {

    /* ---------- Base ---------- */

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        font-family: 'Tajawal', sans-serif !important;
    }

    body.home-page {
        font-family: 'Tajawal', sans-serif !important;
        background: #f7faf9;
    }

    /* ---------- Main page container ---------- */

    body.home-page main,
    body.home-page section {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        overflow: hidden;
    }

    body.home-page .container {
        width: calc(100% - 28px) !important;
        max-width: 430px !important;
        margin-inline: auto !important;
    }

    /* ---------- Typography ---------- */

    body.home-page h1 {
        font-family: 'Tajawal', sans-serif !important;
        font-size: clamp(32px, 9vw, 42px) !important;
        line-height: 1.18 !important;
        font-weight: 800 !important;
        text-align: center !important;
        margin-bottom: 18px;
    }

    body.home-page h2 {
        font-family: 'Tajawal', sans-serif !important;
        font-size: clamp(25px, 7vw, 32px) !important;
        line-height: 1.25 !important;
        font-weight: 800 !important;
        text-align: center !important;
    }

    body.home-page h3 {
        font-family: 'Tajawal', sans-serif !important;
        font-size: 20px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
    }

    body.home-page p {
        font-family: 'Tajawal', sans-serif !important;
        font-size: 15px !important;
        line-height: 1.8 !important;
    }

    /* ---------- Hero ---------- */

    body.home-page .hero,
    body.home-page .hero-section {
        width: 100% !important;
        min-height: auto !important;
        padding: 46px 0 38px !important;
    }

    body.home-page .hero-content {
        width: calc(100% - 28px) !important;
        max-width: 430px !important;
        margin-inline: auto !important;
        text-align: center !important;
    }

    body.home-page .hero-content > * {
        margin-inline: auto !important;
    }

    body.home-page .hero-content p {
        max-width: 330px !important;
        margin: 0 auto 22px !important;
        text-align: center !important;
    }

    /* ---------- Hero buttons ---------- */

    body.home-page .hero-buttons {
        width: 100% !important;
        max-width: 330px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.home-page .hero-buttons > * {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }

    body.home-page .hero-buttons a,
    body.home-page .hero-buttons button {
        min-height: 46px !important;
        padding: 10px 12px !important;
        font-family: 'Tajawal', sans-serif !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    /* =====================================================
       LANGUAGE SECTION
       ===================================================== */

    body.home-page .language-grid,
    body.home-page .languages-grid,
    body.home-page .language-cards {
        width: 100% !important;
        max-width: 430px !important;
        margin-inline: auto !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    body.home-page .language-card {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 185px !important;

        margin: 0 !important;
        padding: 22px 20px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        text-align: center !important;

        border-radius: 22px !important;
        box-sizing: border-box !important;
    }

    /* Remove RTL visual imbalance */

    html[dir="rtl"] body.home-page .language-card,
    html[dir="ltr"] body.home-page .language-card {
        text-align: center !important;
        direction: inherit;
    }

    body.home-page .language-card .language-icon,
    body.home-page .language-card .icon,
    body.home-page .language-card .card-icon {
        margin: 0 auto 12px !important;
        flex-shrink: 0;
    }

    body.home-page .language-card h3 {
        width: 100% !important;
        margin: 0 0 6px !important;
        text-align: center !important;
        font-size: 20px !important;
    }

    body.home-page .language-card p {
        width: 100% !important;
        max-width: 290px !important;
        margin: 0 auto 8px !important;
        text-align: center !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    body.home-page .language-card a {
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 4px auto 0 !important;
        text-align: center !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    /* ---------- All homepage cards ---------- */

    body.home-page .course-card,
    body.home-page .feature-card,
    body.home-page .instructor-card,
    body.home-page .stat-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: auto !important;
    }

    /* ---------- Section headings ---------- */

    body.home-page .section-title,
    body.home-page .section-heading {
        width: 100% !important;
        text-align: center !important;
        margin-inline: auto !important;
    }

    body.home-page .section-title p,
    body.home-page .section-heading p {
        max-width: 330px !important;
        margin-inline: auto !important;
        text-align: center !important;
    }

    /* ---------- Stats ---------- */

    body.home-page .stats-grid,
    body.home-page .stats {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* ---------- Course cards ---------- */

    body.home-page .course-grid,
    body.home-page .courses-grid,
    body.home-page .featured-courses {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    body.home-page .course-card {
        overflow: hidden !important;
        border-radius: 20px !important;
    }

    /* ---------- Bottom navigation ---------- */

    body.home-page {
        padding-bottom: 86px !important;
    }

    .mobile-bottom-nav {
        z-index: 9999 !important;
    }

    /* Prevent last content from disappearing underneath nav */

    body.home-page footer {
        padding-bottom: 90px !important;
    }

    /* ---------- Very small phones ---------- */

    @media (max-width: 374px) {

        body.home-page .container,
        body.home-page .hero-content {
            width: calc(100% - 24px) !important;
        }

        body.home-page h1 {
            font-size: 31px !important;
        }

        body.home-page .hero-content p {
            font-size: 14px !important;
        }

        body.home-page .language-card {
            min-height: 175px !important;
            padding: 20px 16px !important;
        }

        body.home-page .hero-buttons {
            max-width: 310px !important;
        }
    }

    /* ---------- 390px+ ---------- */

    @media (min-width: 390px) {

        body.home-page .container,
        body.home-page .hero-content {
            width: calc(100% - 32px) !important;
        }

        body.home-page .language-card {
            min-height: 190px !important;
        }
    }
}

/* =========================================================
   NOOR PRO — REAL LANGUAGE CARDS MOBILE FIX
   Targets the actual homepage markup: .languages / .language
   ========================================================= */

@media (max-width: 767px) {

    body.home-page #languages {
        width: 100% !important;
        overflow: hidden !important;
    }

    body.home-page #languages > .container {
        width: calc(100% - 28px) !important;
        max-width: 430px !important;
        margin-inline: auto !important;
    }

    /* Section heading */

    body.home-page #languages .section-head {
        width: 100% !important;
        text-align: center !important;
        margin-inline: auto !important;
    }

    body.home-page #languages .section-head .eyebrow,
    body.home-page #languages .section-head h2,
    body.home-page #languages .section-head p {
        text-align: center !important;
        margin-inline: auto !important;
    }

    body.home-page #languages .section-head p {
        max-width: 330px !important;
    }

    /* Language filters */

    body.home-page #languages .language-tabs {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        margin-inline: auto !important;
        overflow-x: auto !important;
        scrollbar-width: none;
    }

    body.home-page #languages .language-tabs::-webkit-scrollbar {
        display: none;
    }

    body.home-page #languages .lang-tab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    /* Actual cards */

    body.home-page #languages .languages {
        width: 100% !important;
        max-width: 430px !important;
        margin: 18px auto 0 !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    body.home-page #languages .language {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        min-height: 185px !important;

        margin: 0 !important;
        padding: 24px 20px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        text-align: center !important;

        border-radius: 22px !important;
        box-sizing: border-box !important;
    }

    /* Icon */

    body.home-page #languages .language .flag {
        width: 52px !important;
        height: 52px !important;

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

        margin: 0 auto 12px !important;
        flex-shrink: 0 !important;
    }

    body.home-page #languages .language .flag i {
        margin: 0 !important;
    }

    /* Title */

    body.home-page #languages .language h3 {
        width: 100% !important;
        margin: 0 0 7px !important;

        text-align: center !important;

        font-family: 'Tajawal', sans-serif !important;
        font-size: 20px !important;
        line-height: 1.35 !important;
        font-weight: 800 !important;
    }

    /* Description */

    body.home-page #languages .language p {
        width: 100% !important;
        max-width: 290px !important;

        margin: 0 auto 9px !important;

        text-align: center !important;

        font-family: 'Tajawal', sans-serif !important;
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    /* Link */

    body.home-page #languages .language .link {
        width: 100% !important;
        margin: 0 auto !important;

        text-align: center !important;

        font-family: 'Tajawal', sans-serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    /* RTL and LTR must have identical visual alignment */

    html[dir="rtl"] body.home-page #languages .language,
    html[dir="ltr"] body.home-page #languages .language {
        text-align: center !important;
    }

    /* Very small phones */

    @media (max-width: 374px) {

        body.home-page #languages > .container {
            width: calc(100% - 24px) !important;
        }

        body.home-page #languages .language {
            min-height: 175px !important;
            padding: 21px 16px !important;
        }

        body.home-page #languages .language h3 {
            font-size: 19px !important;
        }

        body.home-page #languages .language p {
            font-size: 13.5px !important;
            max-width: 280px !important;
        }
    }
}


/* Hide logo text on desktop */
@media (min-width: 769px){
    header .logo > div:not(.logo-mark){
        display: none !important;
    }

    header .logo{
        gap: 0 !important;
    }
}


/* NOOR PRO ACADEMY LOADER */
.noor-loader{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#ffffff;
    opacity:1;
    visibility:visible;
    transition:
        opacity .55s ease,
        visibility .55s ease;
}

.noor-loader.is-loaded{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
}

.noor-loader-inner{
    width:min(220px,70vw);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.noor-loader-inner img{
    display:block;
    width:auto;
    height:82px;
    max-width:190px;
    object-fit:contain;
    animation:noorLogoPulse 1.8s ease-in-out infinite;
}

.noor-loader-line{
    width:110px;
    height:3px;
    margin-top:22px;
    overflow:hidden;
    border-radius:99px;
    background:#e5eeee;
}

.noor-loader-line span{
    display:block;
    width:42%;
    height:100%;
    border-radius:99px;
    background:linear-gradient(
        90deg,
        #159a9c,
        #4fae7b,
        #159a9c
    );
    animation:noorLoaderLine 1.25s ease-in-out infinite;
}

@keyframes noorLogoPulse{
    0%,100%{
        transform:scale(.96);
        opacity:.78;
    }
    50%{
        transform:scale(1);
        opacity:1;
    }
}

@keyframes noorLoaderLine{
    0%{
        transform:translateX(-140%);
    }
    50%{
        transform:translateX(130%);
    }
    100%{
        transform:translateX(300%);
    }
}

@media (max-width:768px){
    .noor-loader-inner{
        width:min(180px,65vw);
    }

    .noor-loader-inner img{
        height:68px;
        max-width:155px;
    }

    .noor-loader-line{
        width:90px;
        margin-top:18px;
    }
}

@media (prefers-reduced-motion:reduce){
    .noor-loader-inner img,
    .noor-loader-line span{
        animation:none;
    }
}

/* Bigger Noor Pro Academy Loader Logo */
.noor-loader-inner img{
    height:150px !important;
    max-width:320px !important;
    width:auto !important;
}

@media (max-width:768px){
    .noor-loader-inner img{
        height:125px !important;
        max-width:280px !important;
    }

    .noor-loader-inner{
        width:90vw !important;
    }

    .noor-loader-line{
        width:140px !important;
        height:3px !important;
        margin-top:24px !important;
    }
}

/* Hide language switcher */
.language-switcher{
    display:none !important;
}

/* =========================================================
   NOOR PRO ACADEMY - LMS HOMEPAGE UI
   ========================================================= */

:root{
    --np-teal:#159a9c;
    --np-teal-dark:#087f81;
    --np-green:#4fae7b;
    --np-dark:#102b35;
    --np-text:#40545b;
    --np-muted:#71838a;
    --np-bg:#f7faf9;
    --np-border:#e3ece9;
    --np-white:#fff;
}

/* ---------- Global Homepage ---------- */

body.home-page{
    background:#fff;
    color:var(--np-text);
}

.home-page main{
    overflow:hidden;
}

.home-page .container{
    width:min(1180px,calc(100% - 40px));
}

/* ---------- Header ---------- */

.home-page header{
    background:#fff;
    border-bottom:1px solid var(--np-border);
}

.home-page header .nav{
    min-height:74px;
}

.home-page .logo-mark{
    background:none !important;
    border:0 !important;
    box-shadow:none !important;
}

.home-page .nav-links{
    gap:22px;
}

.home-page .nav-links a{
    font-weight:600;
    color:#43575d;
}

.home-page .nav-links a:hover{
    color:var(--np-teal);
}

/* ---------- Hero ---------- */

.home-page .hero{
    position:relative;
    min-height:560px;
    padding:70px 0 76px;
    background:
        radial-gradient(circle at 88% 20%,rgba(21,154,156,.10),transparent 30%),
        linear-gradient(180deg,#f8fcfb 0%,#fff 100%);
}

.home-page .hero-grid{
    align-items:center;
    gap:70px;
}

.home-page .hero h1{
    max-width:650px;
    font-size:clamp(42px,5vw,68px);
    line-height:1.03;
    letter-spacing:-2px;
    color:var(--np-dark);
}

.home-page .hero h1 span{
    color:var(--np-teal);
}

.home-page .hero p{
    max-width:590px;
    margin-top:24px;
    font-size:18px;
    line-height:1.8;
    color:var(--np-muted);
}

.home-page .hero-actions{
    margin-top:30px;
}

.home-page .btn{
    min-height:48px;
    padding:13px 22px;
    border-radius:8px;
    font-weight:700;
}

.home-page .btn-primary{
    background:var(--np-teal);
}

.home-page .btn-primary:hover{
    background:var(--np-teal-dark);
}

/* ---------- Learning Preview ---------- */

.home-page .hero-visual{
    min-height:430px;
}

.home-page .learning-card{
    border:1px solid var(--np-border);
    border-radius:18px;
    background:#fff;
    box-shadow:
        0 25px 60px rgba(16,43,53,.10),
        0 5px 18px rgba(16,43,53,.05);
}

.home-page .learning-card .progress span{
    background:linear-gradient(90deg,var(--np-teal),var(--np-green));
}

/* ---------- Stats ---------- */

.home-page .stats{
    position:relative;
    z-index:2;
    margin-top:-1px;
    padding:24px 0;
    background:#fff;
    border-top:1px solid var(--np-border);
    border-bottom:1px solid var(--np-border);
}

.home-page .stats-grid{
    grid-template-columns:repeat(4,1fr);
}

.home-page .stat{
    padding:8px 20px;
    border-right:1px solid var(--np-border);
}

.home-page .stat:last-child{
    border-right:0;
}

.home-page .stat strong{
    font-size:28px;
    color:var(--np-dark);
}

.home-page .stat span{
    color:var(--np-muted);
    font-size:13px;
    font-weight:600;
}

/* ---------- Section Headers ---------- */

.home-page section:not(.hero){
    padding:82px 0;
}

.home-page .section-head{
    max-width:720px;
    margin-bottom:36px;
}

.home-page .eyebrow{
    color:var(--np-teal);
    font-size:12px;
    font-weight:800;
    letter-spacing:1.5px;
}

.home-page .section-head h2{
    margin-top:8px;
    font-size:clamp(30px,4vw,42px);
    line-height:1.15;
    color:var(--np-dark);
    letter-spacing:-.7px;
}

.home-page .section-head p{
    margin-top:12px;
    color:var(--np-muted);
    line-height:1.7;
}

/* ---------- Language Categories ---------- */

.home-page #languages{
    background:#fff;
}

.home-page .language-tabs,
.home-page .filters{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:28px;
}

.home-page .lang-tab,
.home-page .filter{
    border:1px solid var(--np-border);
    background:#fff;
    color:var(--np-text);
    padding:9px 17px;
    border-radius:7px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:.2s ease;
}

.home-page .lang-tab:hover,
.home-page .filter:hover,
.home-page .lang-tab.active,
.home-page .filter.active{
    color:#fff;
    border-color:var(--np-teal);
    background:var(--np-teal);
}

.home-page .languages{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.home-page .language{
    position:relative;
    min-height:210px;
    padding:27px;
    border:1px solid var(--np-border);
    border-radius:12px;
    background:#fff;
    transition:.25s ease;
}

.home-page .language:hover{
    transform:translateY(-4px);
    border-color:rgba(21,154,156,.45);
    box-shadow:0 16px 35px rgba(16,43,53,.08);
}

.home-page .language .flag{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:rgba(21,154,156,.10);
    color:var(--np-teal);
}

.home-page .language h3{
    margin-top:20px;
    font-size:21px;
    color:var(--np-dark);
}

.home-page .language p{
    margin-top:8px;
    color:var(--np-muted);
    font-size:14px;
    line-height:1.65;
}

.home-page .language .link{
    margin-top:17px;
    color:var(--np-teal);
    font-size:13px;
    font-weight:800;
}

/* ---------- Course Marketplace ---------- */

.home-page .courses-section{
    background:var(--np-bg);
    border-top:1px solid var(--np-border);
    border-bottom:1px solid var(--np-border);
}

.home-page .courses{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.home-page .course{
    overflow:hidden;
    padding:0;
    border:1px solid var(--np-border);
    border-radius:12px;
    background:#fff;
    box-shadow:0 3px 12px rgba(16,43,53,.04);
    transition:.25s ease;
}

.home-page .course:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 40px rgba(16,43,53,.10);
}

.home-page .course-top{
    min-height:150px;
    padding:24px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    background:
        linear-gradient(135deg,
        rgba(21,154,156,.16),
        rgba(79,174,123,.10));
    border-bottom:1px solid var(--np-border);
}

.home-page .course-lang{
    color:var(--np-teal-dark);
    font-size:11px;
    font-weight:900;
    letter-spacing:1px;
}

.home-page .course h3{
    margin-top:12px;
    font-size:21px;
    line-height:1.25;
    color:var(--np-dark);
}

.home-page .course-body{
    padding:22px;
}

.home-page .course-body p{
    min-height:66px;
    color:var(--np-muted);
    font-size:14px;
    line-height:1.65;
}

.home-page .course .meta{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:18px 0;
}

.home-page .course .meta span{
    padding:5px 9px;
    border-radius:5px;
    background:#f1f6f5;
    color:#597077;
    font-size:11px;
    font-weight:700;
}

.home-page .course-btn{
    width:100%;
    min-height:44px;
    border:1px solid var(--np-teal);
    border-radius:7px;
    background:#fff;
    color:var(--np-teal-dark);
    font-weight:800;
    cursor:pointer;
    transition:.2s ease;
}

.home-page .course-btn:hover{
    background:var(--np-teal);
    color:#fff;
}

/* ---------- Instructors ---------- */

.home-page .instructors-section{
    background:#fff;
}

.home-page .instructor-card{
    padding:24px !important;
    border:1px solid var(--np-border);
    border-radius:12px;
    background:#fff;
    transition:.25s ease;
}

.home-page .instructor-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(16,43,53,.08);
}

.home-page .instructor-avatar{
    border-radius:50%;
    border:4px solid #edf7f5;
}

/* ---------- Experience ---------- */

.home-page #experience{
    background:var(--np-bg);
}

.home-page .experience{
    gap:70px;
}

.home-page .check{
    padding:16px 0;
}

.home-page .check-icon{
    width:38px;
    height:38px;
    border-radius:9px;
    background:rgba(21,154,156,.10);
    color:var(--np-teal);
}

/* ---------- FAQ ---------- */

.home-page #faq{
    background:#fff;
}

.home-page .faq{
    border-bottom:1px solid var(--np-border);
}

.home-page .faq button{
    min-height:68px;
    font-weight:700;
    color:var(--np-dark);
}

/* ---------- CTA ---------- */

.home-page .cta{
    position:relative;
    overflow:hidden;
    border-radius:16px;
    padding:58px 50px;
    background:linear-gradient(135deg,var(--np-dark),#174650);
    box-shadow:0 20px 50px rgba(16,43,53,.16);
}

.home-page .cta h2{
    color:#fff;
}

.home-page .cta p{
    color:#b8ced1;
}

.home-page .cta .btn{
    background:var(--np-teal);
    color:#fff;
}

.home-page .cta .btn:hover{
    background:var(--np-green);
}

/* ---------- Responsive ---------- */

@media (max-width:900px){

    .home-page .hero-grid{
        grid-template-columns:1fr;
        gap:35px;
    }

    .home-page .hero{
        padding:55px 0;
    }

    .home-page .hero-visual{
        min-height:360px;
    }

    .home-page .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .home-page .stat:nth-child(2){
        border-right:0;
    }

    .home-page .languages,
    .home-page .courses{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:767px){

    .home-page .container{
        width:min(100% - 28px,600px);
    }

    .home-page section:not(.hero){
        padding:58px 0;
    }

    .home-page .hero{
        padding:42px 0 52px;
    }

    .home-page .hero h1{
        font-size:42px;
        letter-spacing:-1.4px;
    }

    .home-page .hero p{
        font-size:15px;
        line-height:1.75;
    }

    .home-page .hero-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .home-page .hero-actions .btn{
        width:100%;
        text-align:center;
    }

    .home-page .hero-visual{
        min-height:300px;
        transform:scale(.94);
    }

    .home-page .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .home-page .stat{
        padding:12px 8px;
        border-right:0;
        text-align:center;
    }

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

    .home-page .stat span{
        font-size:11px;
    }

    .home-page .languages,
    .home-page .courses{
        grid-template-columns:1fr;
    }

    .home-page .language{
        min-height:190px;
    }

    .home-page .course-top{
        min-height:135px;
    }

    .home-page .section-head h2{
        font-size:31px;
    }

    .home-page .cta{
        padding:40px 24px;
        border-radius:12px;
    }
}

@media (max-width:380px){

    .home-page .hero h1{
        font-size:36px;
    }

    .home-page .stats-grid{
        grid-template-columns:1fr 1fr;
    }

    .home-page .stat strong{
        font-size:21px;
    }
}

