﻿:root {
    --primary: #155d68;
    --primary-dark: #104b54;
    --primary-light: #e9f3f4;
    --accent: #efb18c;
    --accent-light: #f8dfcf;
    --accent-dark: #d99670;
    --dark: #123f49;
    --text: #345861;
    --muted: #71868b;
    --white: #ffffff;
    --light: #f7f9f9;
    --border: #e4e9e9;
    --shadow-sm: 0 5px 20px rgba(18, 63, 73, 0.06);
    --shadow: 0 15px 40px rgba(18, 63, 73, 0.10);
    --shadow-lg: 0 25px 70px rgba(18, 63, 73, 0.15);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 26px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: "Cairo", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

    body.menu-open {
        overflow: hidden;
    }

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

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

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

    .section-label::before {
        content: "";
        width: 30px;
        height: 3px;
        background: var(--accent);
        border-radius: 10px;
    }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

    .section-header > div {
        flex: 1;
    }

    .section-header > p {
        max-width: 480px;
        color: var(--muted);
    }

    .section-header.centered {
        display: block;
        text-align: center;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

        .section-header.centered .section-label {
            justify-content: center;
        }

    .section-header h2,
    .about-content h2,
    .contact-info h2 {
        color: var(--dark);
        font-size: clamp(30px, 4vw, 46px);
        line-height: 1.35;
        font-weight: 800;
    }

        .section-header h2 span,
        .about-content h2 span,
        .contact-info h2 span {
            color: var(--accent-dark);
        }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(21, 93, 104, 0.25);
    }

.btn-secondary {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary-light);
}

    .btn-secondary:hover {
        color: var(--white);
        background: var(--primary);
        border-color: var(--primary);
    }

.btn-outline {
    color: var(--primary);
    border-color: var(--accent);
    background: transparent;
}

    .btn-outline:hover {
        color: var(--white);
        background: var(--accent);
        border-color: var(--accent);
    }

.btn-white {
    color: var(--primary);
    background: var(--white);
    border-color: var(--white);
}

    .btn-white:hover {
        color: var(--white);
        background: transparent;
    }

.btn-large {
    min-height: 56px;
    padding: 0 30px;
    border-radius: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
}

    .text-link i {
        transition: var(--transition);
    }

    .text-link:hover {
        color: var(--accent-dark);
    }

        .text-link:hover i {
            transform: translateX(-5px);
        }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
/* ==========================================
   TOP BAR
========================================== */

.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
}

.top-bar-content {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-contact,
.top-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

    .top-contact a,
    .top-links a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: var(--transition);
    }

        .top-contact a:hover,
        .top-links a:hover {
            color: var(--accent);
        }

    .top-contact i {
        color: var(--accent);
    }

.top-divider {
    opacity: 0.5;
}

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

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 88px;
    background: #ffffff;
    border-bottom: 1px solid rgba(21, 93, 104, 0.08);
    transition: all 0.3s ease;
    direction: rtl;
}

    .header.scrolled {
        height: 78px;
        box-shadow: 0 8px 25px rgba(21, 93, 104, 0.08);
    }


/* ==========================================
   NAVBAR
========================================== */

.navbar {
    width: min(1700px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    direction: rtl;
}


/* ==========================================
   LOGO
========================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--dark);
    text-decoration: none;
}

.logo-icon {
    width: 56px;
    height: 66px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    /* إزالة الخلفية */
    background: transparent;
    /* إزالة الشكل السداسي */
    clip-path: none;
    font-size: 22px;
}

    /* إزالة الإطار والزخرفة الموجودة حول اللوجو */
    .logo-icon::before {
        content: none;
    }

    /* صورة اللوجو */
    .logo-icon img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        background: transparent;
    }

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    white-space: nowrap;
}

    .logo-text strong {
        color: var(--dark);
        font-size: 16px;
        font-weight: 800;
        white-space: nowrap;
    }

    .logo-text span {
        color: var(--primary);
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }


/* ==========================================
   NAVIGATION
========================================== */

.nav-menu {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    direction: rtl;
    white-space: nowrap;
}

.nav-link {
    position: relative;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    color: var(--dark);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap !important;
    word-break: keep-all;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .nav-link::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 17px;
        width: 0;
        height: 3px;
        border-radius: 5px;
        background: var(--accent);
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: var(--primary);
    }

    .nav-link.active {
        color: var(--primary);
    }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 100%;
        }


/* ==========================================
   ACTION BUTTONS
========================================== */

.nav-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    direction: ltr;
}

.nav-action {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

    .nav-action i {
        font-size: 13px;
    }


/* ==========================================
   REGISTER BUTTON
========================================== */

.register-btn {
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 5px 15px rgba(21, 93, 104, 0.12);
}

    .register-btn:hover {
        color: #ffffff;
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(21, 93, 104, 0.20);
    }


/* ==========================================
   EMPLOYEE PORTAL
========================================== */

.employee-btn {
    color: var(--primary);
    background: #ffffff;
    border: 1px solid rgba(21, 93, 104, 0.30);
}

    .employee-btn:hover {
        color: #ffffff;
        background: var(--primary);
        border-color: var(--primary);
        transform: translateY(-2px);
    }


/* ==========================================
   TRAINEE PORTAL
========================================== */

.trainee-btn {
    color: var(--primary);
    background: var(--accent-light);
    border: 1px solid rgba(239, 177, 140, 0.65);
}

    .trainee-btn:hover {
        color: var(--primary);
        background: var(--accent);
        border-color: var(--accent);
        transform: translateY(-2px);
    }


/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary);
    font-size: 19px;
}


/* ==========================================
   1250px
========================================== */

@media (max-width: 1250px) {

    .navbar {
        width: calc(100% - 25px);
        gap: 12px;
    }

    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        font-size: 11px;
    }

    .nav-action {
        padding: 0 11px;
        font-size: 10px;
    }

    .logo-text strong {
        font-size: 14px;
    }
}


/* ==========================================
   1100px
========================================== */

@media (max-width: 1100px) {

    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        font-size: 10px;
    }

    .nav-action {
        height: 43px;
        padding: 0 8px;
        font-size: 9px;
    }

        .nav-action i {
            font-size: 11px;
        }

    .logo-text strong {
        font-size: 13px;
    }

    .logo-text span {
        font-size: 10px;
    }
}


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

@media (max-width: 900px) {

    .header {
        height: 75px;
    }

        .header.scrolled {
            height: 70px;
        }

    .navbar {
        width: calc(100% - 28px);
        gap: 10px;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo-icon {
        width: 48px;
        height: 57px;
        font-size: 19px;
    }

    .logo-text strong {
        font-size: 13px;
    }

    .logo-text span {
        font-size: 11px;
    }


    /* MOBILE NAV */

    .nav-menu {
        position: fixed;
        top: 75px;
        right: 0;
        width: 100%;
        height: calc(100vh - 75px);
        padding: 20px 25px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: #ffffff;
        box-shadow: 0 15px 30px rgba(21, 93, 104, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        white-space: normal;
        direction: rtl;
    }

        .nav-menu.active {
            transform: translateX(0);
        }

    .nav-link {
        width: 100%;
        height: auto;
        padding: 15px 5px;
        justify-content: flex-start;
        border-bottom: 1px solid var(--border);
        font-size: 14px;
        white-space: nowrap !important;
    }

        .nav-link::after {
            bottom: 0;
        }


    /* HIDE DESKTOP BUTTONS */

    .nav-action {
        display: none;
    }


    /* SHOW MOBILE MENU */

    .menu-toggle {
        display: flex;
    }
}


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

@media (max-width: 480px) {

    .logo-text {
        display: none;
    }

    .logo-icon {
        width: 45px;
        height: 54px;
    }
}
/* ==========================================
   HERO
========================================== */

.hero {
    position: relative;
    min-height: 670px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient( circle at 80% 35%, rgba(239, 177, 140, 0.18), transparent 32% ), linear-gradient( 135deg, #f8fbfb 0%, #ffffff 55%, #f4f8f8 100% );
}

    .hero::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        left: -250px;
        top: 80px;
        border: 80px solid rgba(21, 93, 104, 0.035);
        border-radius: 50%;
    }

    .hero::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        right: -130px;
        bottom: -150px;
        border: 60px solid rgba(239, 177, 140, 0.10);
        border-radius: 50%;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient( 90deg, transparent 45%, rgba(239, 177, 140, 0.04) );
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 70px;
    direction: ltr;
}

.hero-image {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hero-image-frame {
    position: relative;
    width: min(100%, 500px);
    aspect-ratio: 4 / 4.6;
    overflow: hidden;
    border-radius: 28px;
    background: var(--white);
    border: 8px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 25px 70px rgba(18, 63, 73, 0.15);
}

    .hero-image-frame::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        border: 1px solid rgba(21, 93, 104, 0.10);
        border-radius: 20px;
    }

    .hero-image-frame::after {
        content: "";
        position: absolute;
        width: 95px;
        height: 95px;
        left: -30px;
        bottom: -30px;
        border-radius: 50%;
        background: rgba(239, 177, 140, 0.28);
        z-index: 0;
    }

#heroImage {
    position: relative;
    z-index: 1;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

.hero-content {
    grid-column: 2;
    grid-row: 1;
    width: min(650px, 100%);
    padding: 80px 0;
    direction: rtl;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

    .hero-badge::before {
        content: "";
        width: 35px;
        height: 3px;
        background: var(--accent);
        border-radius: 5px;
    }

    .hero-badge i {
        color: var(--accent-dark);
        font-size: 13px;
    }

.hero h1 {
    color: var(--primary);
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 22px;
}

    .hero h1 span {
        display: block;
        color: var(--accent-dark);
    }

.hero-content > p {
    max-width: 600px;
    color: var(--text);
    font-size: 18px;
    line-height: 2;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
}

    .trust-item i {
        color: var(--accent-dark);
    }

.hero-scroll {
    position: absolute;
    bottom: 22px;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--primary);
    font-size: 11px;
    animation: floating 2s infinite ease-in-out;
}

    .hero-scroll i {
        color: var(--accent-dark);
    }

@keyframes floating {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-image {
        grid-column: 1;
        grid-row: 2;
    }

    .hero-content {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        padding: 30px 0 0;
    }

    .hero-image-frame {
        width: min(100%, 520px);
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: auto;
    }

    .hero-container {
        gap: 25px;
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .hero-content {
        padding: 20px 0 0;
    }

    .hero h1 {
        font-size: clamp(36px, 11vw, 52px);
    }

    .hero-content > p {
        font-size: 16px;
        line-height: 1.9;
    }

    .hero-image-frame {
        width: 100%;
        aspect-ratio: 4 / 4.5;
        border-width: 6px;
        border-radius: 22px;
    }

    #heroImage {
        border-radius: 16px;
    }

    .hero-trust {
        gap: 14px;
    }
}


/* ==========================================
   STATISTICS
========================================== */

.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -35px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(21, 93, 104, 0.08);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stat-card {
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 20px;
    position: relative;
}

    .stat-card:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 25px;
        bottom: 25px;
        left: 0;
        width: 1px;
        background: var(--border);
    }

.stat-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--primary);
    clip-path: polygon( 50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25% );
    font-size: 23px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

    .stat-info strong {
        color: var(--primary);
        font-size: 30px;
        font-weight: 800;
        line-height: 1.2;
    }

    .stat-info span {
        color: var(--muted);
        font-size: 13px;
    }
/* ==========================================
   ABOUT
========================================== */

.about-section {
    background: var(--white);
}

.section-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.about-image {
    position: relative;
    min-height: 460px;
}

.about-image-main {
    position: absolute;
    inset: 0 35px 35px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient( 145deg, var(--primary), var(--primary-dark) );
    box-shadow: var(--shadow-lg);
}

    .about-image-main::before {
        content: "";
        position: absolute;
        width: 270px;
        height: 270px;
        border: 45px solid rgba(239, 177, 140, 0.16);
        border-radius: 50%;
    }

    .about-image-main::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        border: 3px solid rgba(255, 255, 255, 0.12);
        transform: rotate(45deg);
    }

.about-image-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    text-align: center;
}

    .about-image-content i {
        color: var(--accent);
        font-size: 80px;
        margin-bottom: 20px;
    }

    .about-image-content span {
        font-size: 21px;
        font-weight: 800;
    }

    .about-image-content small {
        margin-top: 5px;
        color: rgba(255, 255, 255, 0.75);
        font-size: 13px;
    }

.experience-card {
    position: absolute;
    left: 0;
    bottom: 0;
    min-width: 190px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    background: var(--accent);
    color: var(--primary);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

    .experience-card strong {
        font-size: 38px;
        line-height: 1.2;
        font-weight: 800;
    }

    .experience-card span {
        font-size: 13px;
        font-weight: 700;
    }

.about-content > p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 18px;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px 25px;
    margin: 28px 0;
}

.about-point {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
}

    .about-point i {
        color: var(--accent-dark);
    }


/* ==========================================
   VISION
========================================== */

.vision-section {
    padding-top: 0;
    background: var(--white);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.vision-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--light);
    border: 1px solid var(--border);
    transition: var(--transition);
}

    .vision-card:hover {
        transform: translateY(-6px);
        border-color: rgba(239, 177, 140, 0.5);
        box-shadow: var(--shadow);
    }

.vision-icon {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--accent);
    border-radius: 16px;
    font-size: 24px;
}

.vision-content > span {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
}

.vision-content h3 {
    color: var(--dark);
    font-size: 20px;
    margin: 3px 0 7px;
}

.vision-content p {
    color: var(--muted);
    font-size: 13px;
}
/* ==========================================
   PROGRAMS
========================================== */

.programs-section {
    background: linear-gradient( 180deg, #f7f9f9 0%, #ffffff 100% );
}

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

.program-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

    .program-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 4px;
        background: var(--accent);
        transition: var(--transition);
    }

    .program-card:hover {
        transform: translateY(-7px);
        box-shadow: var(--shadow);
        border-color: transparent;
    }

        .program-card:hover::before {
            width: 100%;
        }

.program-number {
    position: absolute;
    top: 20px;
    left: 25px;
    color: rgba(21, 93, 104, 0.08);
    font-size: 40px;
    font-weight: 800;
}

.program-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: var(--accent-light);
    color: var(--primary);
    border-radius: 18px;
    font-size: 25px;
    transition: var(--transition);
}

.program-card:hover .program-icon {
    background: var(--primary);
    color: var(--accent);
    transform: scale(1.05);
}

.program-card h3 {
    color: var(--dark);
    font-size: 19px;
    margin-bottom: 10px;
}

.program-card p {
    min-height: 76px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

    .program-link i {
        transition: var(--transition);
    }

    .program-link:hover {
        color: var(--accent-dark);
    }

        .program-link:hover i {
            transform: translateX(-5px);
        }


/* ==========================================
   COURSES
========================================== */

.courses-section {
    background: var(--white);
}

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

.course-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .course-card:hover {
        transform: translateY(-7px);
        box-shadow: var(--shadow);
    }

.course-image {
    position: relative;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
}

    .course-image::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        border: 35px solid rgba(239, 177, 140, 0.12);
        border-radius: 50%;
    }

    .course-image::after {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        border: 2px solid rgba(255, 255, 255, 0.1);
        transform: rotate(45deg);
    }

.course-category {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    padding: 5px 13px;
    color: var(--primary);
    background: var(--accent);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.course-image-icon {
    position: relative;
    z-index: 2;
    color: var(--accent);
    font-size: 65px;
}

.course-body {
    padding: 25px;
}

.course-date {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.course-body h3 {
    color: var(--dark);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 9px;
}

.course-body p {
    min-height: 50px;
    color: var(--muted);
    font-size: 13px;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--border);
}

    .course-footer > span {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--muted);
        font-size: 12px;
    }

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

    .course-link i {
        transition: var(--transition);
    }

    .course-link:hover {
        color: var(--accent-dark);
    }

        .course-link:hover i {
            transform: translateX(-4px);
        }
/* ==========================================
   FEATURES
========================================== */

.features-section {
    background: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 32px 24px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

    .feature-card:hover {
        transform: translateY(-7px);
        box-shadow: var(--shadow);
        border-color: rgba(239, 177, 140, 0.5);
    }

.feature-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    background: var(--accent-light);
    border-radius: 50%;
    font-size: 26px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    color: var(--accent);
    background: var(--primary);
    transform: rotate(5deg);
}

.feature-card h3 {
    color: var(--dark);
    font-size: 17px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}


/* ==========================================
   CTA
========================================== */

.cta-section {
    padding: 70px 0;
    background: var(--white);
}

.cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px 65px;
    background: linear-gradient( 135deg, var(--primary-dark), var(--primary) );
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

    .cta-box::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        left: -120px;
        top: -160px;
        border: 55px solid rgba(239, 177, 140, 0.12);
        border-radius: 50%;
    }

    .cta-box::after {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        right: 10%;
        bottom: -110px;
        border: 35px solid rgba(239, 177, 140, 0.10);
        border-radius: 50%;
    }

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

    .cta-content > span {
        color: var(--accent);
        font-size: 13px;
        font-weight: 700;
    }

    .cta-content h2 {
        max-width: 600px;
        color: var(--white);
        font-size: clamp(26px, 3vw, 38px);
        line-height: 1.5;
        margin: 5px 0 8px;
    }

        .cta-content h2 strong {
            color: var(--accent);
        }

    .cta-content p {
        color: rgba(255, 255, 255, 0.75);
        font-size: 13px;
    }

.cta-box .btn {
    position: relative;
    z-index: 2;
}


/* ==========================================
   NEWS
========================================== */

.news-section {
    background: var(--light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow);
    }

.news-image {
    height: 190px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--accent);
}

    .news-image i {
        font-size: 60px;
    }

    .news-image span {
        position: absolute;
        right: 18px;
        top: 18px;
        padding: 5px 13px;
        color: var(--primary);
        background: var(--accent);
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
    }

.news-body {
    padding: 24px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 9px;
}

.news-body h3 {
    color: var(--dark);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 17px;
}

.news-body > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

    .news-body > a i {
        transition: var(--transition);
    }

    .news-body > a:hover {
        color: var(--accent-dark);
    }

        .news-body > a:hover i {
            transform: translateX(-5px);
        }
/* ==========================================
   CONTACT
========================================== */

.contact-section {
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 15px;
}

.contact-info > p {
    max-width: 500px;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--accent-light);
    border-radius: 14px;
}

.contact-item > div:last-child {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    color: var(--dark);
    font-size: 13px;
}

.contact-item span {
    color: var(--muted);
    font-size: 12px;
}


/* CONTACT FORM */

.contact-form-wrapper {
    padding: 38px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 24px;
}

.contact-form h3 {
    color: var(--dark);
    font-size: 24px;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

    .form-group label {
        color: var(--dark);
        font-size: 12px;
        font-weight: 700;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 13px 15px;
        color: var(--dark);
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 10px;
        outline: none;
        font-size: 13px;
        transition: var(--transition);
        resize: vertical;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(239, 177, 140, 0.15);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: #a5b0b2;
        }

.btn-submit {
    width: 100%;
    margin-top: 5px;
}

.form-message {
    display: none;
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
}

    .form-message.show {
        display: block;
        color: var(--primary);
        background: var(--primary-light);
    }


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

.footer {
    position: relative;
    margin-top: 24px;
    padding: 62px 0 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--primary-dark);
    direction: rtl;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    box-shadow: 0 -12px 35px rgba(18, 63, 73, 0.12);
}

    .footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, rgba(239, 177, 140, 0.28) 20%, rgba(239, 177, 140, 0.65) 50%, rgba(239, 177, 140, 0.28) 80%, transparent 100%);
        pointer-events: none;
    }

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
    gap: 58px;
    padding-bottom: 52px;
    align-items: start;
}

/* ==========================================
   بيانات المؤسسة - الجهة اليمنى
========================================== */

.footer-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

    .footer-about .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 18px;
    }

        .footer-about .footer-logo .logo-icon {
            width: 96px;
            height: 82px;
            flex-shrink: 0;
        }

        .footer-about .footer-logo .logo-text {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            line-height: 1.45;
            text-align: right;
        }

            .footer-about .footer-logo .logo-text strong {
                color: var(--white);
                font-size: 17px;
                font-weight: 800;
                white-space: nowrap;
            }

            .footer-about .footer-logo .logo-text span {
                color: var(--accent);
                font-size: 12px;
                font-weight: 600;
            }

    .footer-about p {
        max-width: 330px;
        color: rgba(255, 255, 255, 0.68);
        font-size: 12px;
        line-height: 2;
        margin: 0;
    }

/* ==========================================
   أعمدة الروابط والخدمات والاتصال
========================================== */

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

    .footer-column h4 {
        position: relative;
        color: var(--white);
        font-size: 15px;
        font-weight: 800;
        margin: 0 0 12px;
        text-align: right;
    }

        .footer-column h4::after {
            content: "";
            display: block;
            width: 35px;
            height: 3px;
            margin-top: 8px;
            background: var(--accent);
            border-radius: 5px;
        }

    .footer-column a {
        display: flex;
        align-items: center;
        gap: 8px;
        width: fit-content;
        color: rgba(255, 255, 255, 0.67);
        font-size: 12px;
        line-height: 1.8;
        transition: var(--transition);
        text-align: right;
    }

        .footer-column a:hover {
            color: var(--accent);
            transform: translateX(-4px);
        }

        .footer-column a i {
            color: var(--accent);
            width: 15px;
            flex-shrink: 0;
        }

/* ==========================================
   معلومات الاتصال + وسائل التواصل
   وسائل التواصل تحت معلومات الاتصال
========================================== */

.footer-contact .social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    direction: ltr;
}

    .footer-contact .social-links a {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: var(--white);
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        transition: var(--transition);
    }

        .footer-contact .social-links a:hover {
            color: var(--primary);
            background: var(--accent);
            transform: translateY(-3px);
        }

        .footer-contact .social-links a i {
            width: auto;
            color: inherit;
            font-size: 17px;
        }


/* ==========================================
   بيانات المؤسسة - ضبط موضع اللوجو
========================================== */

/* تحريك اللوجو قليلًا للداخل ناحية منتصف الفوتر */
.footer-about .footer-logo .logo-icon {
    transform: translateX(-32px);
}

/* لا نعرض الاسم المختصر داخل الفوتر */
.footer-about .footer-logo .logo-text span {
    display: none !important;
}

/* وسائل التواصل تحت معلومات الاتصال */
.footer-contact .social-links {
    margin-top: 12px;
    align-self: flex-start;
    justify-content: flex-start;
}

/* ==========================================
   Footer Bottom
========================================== */

.footer-bottom {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

    .footer-bottom p {
        width: 100%;
        margin: 0;
        color: rgba(255, 255, 255, 0.58);
        font-size: 11px;
        text-align: center;
    }

    .footer-bottom > div,
    .footer-bottom a {
        display: none;
    }


/* ==========================================
   BACK TO TOP
========================================== */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 900;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: var(--accent);
        color: var(--primary);
    }
/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {

    .nav-menu {
        gap: 18px;
    }

    .nav-link {
        font-size: 13px;
    }

    .section-grid {
        gap: 50px;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }
}


@media (max-width: 900px) {

    .top-contact {
        display: none;
    }

    .top-bar-content {
        justify-content: center;
    }

    .navbar {
        min-height: 75px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        right: 0;
        width: 100%;
        height: calc(100vh - 75px);
        padding: 25px 30px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        transform: translateX(100%);
        transition: var(--transition);
        overflow-y: auto;
    }

        .nav-menu.active {
            transform: translateX(0);
        }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }

        .nav-link::after {
            bottom: 0;
        }

    .nav-btn {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding: 70px 0;
    }

    .section-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .stat-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .cta-box {
        padding: 45px;
    }
}


@media (max-width: 650px) {

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

    .section {
        padding: 70px 0;
    }

    .top-links {
        gap: 12px;
    }

    .logo-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .logo-text strong {
        font-size: 14px;
    }

    .logo-text span {
        font-size: 12px;
    }

    .hero {
        min-height: 590px;
    }

    .hero-content {
        padding: 55px 0;
        text-align: center;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-content > p {
        font-size: 14px;
    }

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

    .hero-trust {
        justify-content: center;
        gap: 12px;
    }

    .trust-item {
        font-size: 11px;
    }

    .hero-scroll {
        display: none;
    }

    .stats-section {
        margin-top: -20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        border-radius: 16px;
    }

    .stat-card {
        min-height: 105px;
        gap: 10px;
        padding: 14px 8px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .stat-info strong {
        font-size: 22px;
    }

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

    .section-header {
        display: block;
        margin-bottom: 35px;
    }

        .section-header > p {
            margin-top: 15px;
        }

        .section-header .btn,
        .section-header .text-link {
            margin-top: 18px;
        }

    .about-image {
        min-height: 380px;
    }

    .about-image-main {
        inset: 0 20px 30px 0;
    }

    .experience-card {
        min-width: 160px;
        padding: 15px 18px;
    }

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

    .about-points {
        grid-template-columns: 1fr;
    }

    .programs-grid,
    .courses-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .program-card p {
        min-height: auto;
    }

    .cta-box {
        display: block;
        padding: 35px 25px;
        text-align: center;
    }

        .cta-box .btn {
            margin-top: 25px;
        }

    .contact-form-wrapper {
        padding: 25px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer {
        padding-top: 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-about,
    .footer-column {
        align-items: flex-start;
    }

    .footer-about {
        text-align: right;
    }

    .footer-contact .social-links {
        width: auto;
    }

    .footer-bottom {
        padding: 20px 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

        .footer-bottom > div {
            flex-wrap: wrap;
            justify-content: center;
        }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

/* =====================================================
   Course Details Modal
===================================================== */

.course-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .course-modal.show {
        opacity: 1;
        visibility: visible;
    }


/* =========================
   OVERLAY
========================= */

.course-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 40, 0.72);
    backdrop-filter: blur(5px);
}


/* =========================
   MODAL CONTENT
========================= */

.course-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 40px);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
    transform: translateY(25px) scale(0.97);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.course-modal.show
.course-modal-content {
    transform: translateY(0) scale(1);
}


/* =========================
   CLOSE BUTTON
========================= */

.course-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

    .course-modal-close:hover {
        background: var(--primary);
        color: #ffffff;
        transform: rotate(90deg);
    }


/* =========================
   MODAL IMAGE
========================= */

.course-modal-image {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
    overflow: hidden;
}

    .course-modal-image::before {
        content: "";
        position: absolute;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        top: -170px;
        right: -100px;
    }

    .course-modal-image::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(239, 177, 140, 0.08);
        bottom: -140px;
        left: -80px;
    }


    /* صورة حقيقية */

    .course-modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }


/* أيقونة عند عدم وجود صورة */

.course-modal-image-icon {
    position: relative;
    z-index: 2;
    width: 110px;
    height: 110px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}


/* =========================
   MODAL BODY
========================= */

.course-modal-body {
    padding: 35px 40px 40px;
}


/* =========================
   CATEGORY
========================= */

.course-modal-category {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 13px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 13px;
}


/* =========================
   TITLE
========================= */

.course-modal-body h2 {
    margin: 0 0 15px;
    color: var(--dark);
    font-size: 30px;
    line-height: 1.5;
    font-weight: 800;
}


/* =========================
   DESCRIPTION
========================= */

.course-modal-description {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
}


/* =========================
   INFO GRID
========================= */

.course-modal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}


/* =========================
   INFO ITEM
========================= */

.course-modal-info-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfdfd;
}


/* ICON */

.course-modal-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}


/* TEXT */

.course-modal-info-item div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-modal-info-item small {
    color: var(--muted);
    font-size: 11px;
}

.course-modal-info-item strong {
    color: var(--dark);
    font-size: 13px;
    font-weight: 800;
    word-break: break-word;
}


/* =========================
   EXTRA SECTION
========================= */

.course-modal-section {
    padding-top: 5px;
    margin-bottom: 28px;
}

    .course-modal-section h3 {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 12px;
        color: var(--dark);
        font-size: 17px;
        font-weight: 800;
    }

        .course-modal-section h3 i {
            color: var(--primary);
            font-size: 15px;
        }

    .course-modal-section p {
        margin: 0;
        color: var(--text);
        font-size: 14px;
        line-height: 2;
    }


/* =========================
   ACTIONS
========================= */

.course-modal-actions {
    display: flex;
    justify-content: flex-start;
}

    .course-modal-actions .btn {
        min-width: 190px;
        justify-content: center;
    }


/* =========================
   BODY LOCK
========================= */

body.course-modal-open {
    overflow: hidden;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .course-modal {
        padding: 12px;
    }

    .course-modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .course-modal-image {
        height: 220px;
    }

    .course-modal-body {
        padding: 28px 22px 25px;
    }

        .course-modal-body h2 {
            font-size: 24px;
        }

    .course-modal-description {
        font-size: 13px;
    }

    .course-modal-info {
        grid-template-columns: 1fr;
    }

    .course-modal-close {
        top: 12px;
        left: 12px;
        width: 38px;
        height: 38px;
    }

    .course-modal-image-icon {
        width: 85px;
        height: 85px;
        border-radius: 22px;
        font-size: 35px;
    }
}


@media (max-width: 480px) {

    .course-modal-image {
        height: 180px;
    }

    .course-modal-body {
        padding: 23px 18px;
    }

        .course-modal-body h2 {
            font-size: 21px;
        }

    .course-modal-actions .btn {
        width: 100%;
    }
}

/* =====================================================
   SITE LOGO IMAGE
===================================================== */

#siteLogoHeader img,
#siteLogoFooter img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* =========================================================
   FLOATING CONTACT SOCIALS
========================================================= */

.floating-contact {
    position: fixed;
    right: 18px;
    bottom: 110px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}


/* =========================================================
   MAIN BUTTON
========================================================= */

.floating-contact-toggle {
    border: 0;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}


/* النص */

.floating-contact-label {
    background: var(--primary);
    color: #fff;
    padding: 9px 14px;
    border-radius: 10px 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform .25s ease, background .25s ease;
}


    /* السهم الصغير */

    .floating-contact-label::after {
        content: "";
        position: absolute;
        left: -8px;
        top: 50%;
        transform: translateY(-50%);
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid var(--primary);
    }


/* الدائرة السوداء */

.floating-contact-button {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: transform .3s ease, background .3s ease;
}


/* عند فتح القائمة */

.floating-contact.open
.floating-contact-button {
    transform: rotate(90deg);
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.floating-contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 66px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(.85);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}


/* مفتوحة */

.floating-contact.open
.floating-contact-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}


/* =========================================================
   SOCIAL BUTTON
========================================================= */

.floating-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
    transition: transform .25s ease, box-shadow .25s ease;
}


    /* Hover */

    .floating-social:hover {
        transform: scale(1.1);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    }


/* =========================================================
   COLORS
========================================================= */

.floating-phone {
    background: #20c997;
}


.floating-whatsapp {
    background: #25D366;
}


.floating-snapchat {
    background: #FFD700;
    color: #fff;
}


.floating-x {
    background: #000;
}


.floating-tiktok {
    background: #000;
}


.floating-location {
    background: #32a86b;
}


.floating-instagram {
    background: linear-gradient( 135deg, #833ab4, #fd1d1d, #fcb045 );
}


.floating-linkedin {
    background: #0A66C2;
}


.floating-youtube {
    background: #FF0000;
}


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

@media (max-width: 700px) {

    .floating-contact {
        right: 10px;
        bottom: 90px;
    }


    .floating-contact-label {
        font-size: 13px;
        padding: 8px 11px;
    }


    .floating-contact-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }


    .floating-social {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}
/* =========================================================
   FLOATING CONTACT - BOTTOM LEFT
========================================================= */

.floating-contact {
    position: fixed !important;
    left: 18px !important;
    right: auto !important;
    bottom: 18px !important;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}


/* ==========================================
   MAIN BUTTON
========================================== */

.floating-contact-toggle {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}


/* زر الدائرة */

.floating-contact-button {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
    transition: transform .3s ease;
}


/* النص */

.floating-contact-label {
    background: var(--primary);
    color: #fff;
    padding: 9px 14px;
    border-radius: 0 10px 10px 10px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}


/* ==========================================
   SOCIAL LINKS
========================================== */

.floating-contact-links {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    bottom: 64px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(.9);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}


.floating-contact.open
.floating-contact-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}


/* ==========================================
   SOCIAL BUTTON
========================================== */

.floating-social {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 21px;
    box-shadow: 0 6px 16px rgba(0,0,0,.22);
    transition: transform .2s ease, opacity .2s ease;
}


    /* ==========================================
   رابط غير موجود
   الأيقونة تظهر لكن غير قابلة للضغط
========================================== */

    .floating-social.is-disabled {
        opacity: .45;
        cursor: default;
        filter: grayscale(.15);
    }


        .floating-social.is-disabled:hover {
            transform: none;
        }


    /* ==========================================
   ACTIVE
========================================== */

    .floating-social:not(.is-disabled):hover {
        transform: scale(1.1);
    }


/* ==========================================
   COLORS
========================================== */

.floating-phone {
    background: #20c997;
}

.floating-whatsapp {
    background: #25D366;
}

.floating-snapchat {
    background: #FFD700;
}

.floating-x {
    background: #000;
}

.floating-tiktok {
    background: #000;
}

.floating-location {
    background: #32a86b;
}

.floating-instagram {
    background: linear-gradient( 135deg, #833ab4, #fd1d1d, #fcb045 );
}

.floating-linkedin {
    background: #0A66C2;
}

.floating-youtube {
    background: #FF0000;
}

.floating-facebook {
    background: #1877F2;
}


/* =========================================================
   PROFESSIONAL FLOATING CONTACT ANIMATION
========================================================= */

/* الزر الرئيسي */
.floating-contact-toggle {
    position: relative;
    transition: transform .35s cubic-bezier(.22,1,.36,1), filter .35s ease;
}

    .floating-contact-toggle:hover {
        transform: translateY(-3px);
    }


/* دائرة زر التواصل */
.floating-contact-button {
    transition: transform .55s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease, background .3s ease;
}


/* عند الفتح */
.floating-contact.open
.floating-contact-button {
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.30);
}


/* =========================================================
   CONTAINER
========================================================= */

.floating-contact-links {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(28px) scale(.75);
    transform-origin: bottom center;
    transition: opacity .25s ease, visibility .25s ease;
}


/* مفتوحة */
.floating-contact.open
.floating-contact-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   ICON ANIMATION
========================================================= */

.floating-social {
    opacity: 0;
    transform: translateY(25px) scale(.5) rotate(-18deg);
    will-change: transform, opacity;
}


/* عند الفتح */
.floating-contact.open
.floating-social {
    animation: floatingSocialIn .65s cubic-bezier(.22,1,.36,1) forwards;
}


    /* ترتيب الظهور */
    .floating-contact.open
    .floating-social:nth-child(1) {
        animation-delay: .03s;
    }

    .floating-contact.open
    .floating-social:nth-child(2) {
        animation-delay: .08s;
    }

    .floating-contact.open
    .floating-social:nth-child(3) {
        animation-delay: .13s;
    }

    .floating-contact.open
    .floating-social:nth-child(4) {
        animation-delay: .18s;
    }

    .floating-contact.open
    .floating-social:nth-child(5) {
        animation-delay: .23s;
    }

    .floating-contact.open
    .floating-social:nth-child(6) {
        animation-delay: .28s;
    }

    .floating-contact.open
    .floating-social:nth-child(7) {
        animation-delay: .33s;
    }

    .floating-contact.open
    .floating-social:nth-child(8) {
        animation-delay: .38s;
    }

    .floating-contact.open
    .floating-social:nth-child(9) {
        animation-delay: .43s;
    }


/* =========================================================
   KEYFRAME
========================================================= */

@keyframes floatingSocialIn {

    0% {
        opacity: 0;
        transform: translateY(25px) scale(.5) rotate(-18deg);
    }

    65% {
        opacity: 1;
        transform: translateY(-5px) scale(1.08) rotate(3deg);
    }

    85% {
        transform: translateY(2px) scale(.97) rotate(-1deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}


/* =========================================================
   HOVER
========================================================= */

.floating-social {
    transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, filter .28s ease;
}


    .floating-social:not(.is-disabled):hover {
        transform: scale(1.14) rotate(4deg);
        box-shadow: 0 12px 28px rgba(0,0,0,.30);
    }


/* =========================================================
   MAIN LABEL
========================================================= */

.floating-contact-label {
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}


.floating-contact-toggle:hover
.floating-contact-label {
    transform: translateX(3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.20);
}


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

@media (max-width:700px) {

    .floating-social:not(.is-disabled):hover {
        transform: scale(1.08);
    }
}
