*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Alexandria',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f8fafc;
    color:#222;
    line-height:1.8;
    font-size:18px;
    overflow-x:hidden;
}

/* =========================
   HEADER
========================= */

header{
    position:fixed;
    top:18px;
    left:50%;
    transform:translateX(-50%);
    width:92%;
    max-width:1400px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:16px 35px;

    background:rgba(15,23,42,.78);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.15),
    0 0 0 1px rgba(255,255,255,.03);

    z-index:1000;

    transition:.4s ease;
}

/* Logo */

.logo{
    color:#fff;
    font-size:1.6rem;
    font-weight:800;
    letter-spacing:.3px;
    transition:.3s;
}

.logo:hover{
    color:#38bdf8;
}

/* Navigation */

nav ul{
    display:flex;
    align-items:center;
    gap:25px;
    list-style:none;
}

nav ul li a{
    color:#cbd5e1;
    text-decoration:none;
    font-size:1rem;
    font-weight:500;
    transition:.3s;
    position:relative;
}

nav ul li a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#38bdf8;
    transition:.3s;
}

nav ul li a:hover{
    color:#38bdf8;
}

nav ul li a:hover::after{
    width:100%;
}

/* Register Button */

nav ul li:last-child a{
    background:#38bdf8;
    color:white;

    padding:10px 20px;

    border-radius:12px;

    box-shadow:
    0 8px 20px rgba(56,189,248,.25);
}

nav ul li:last-child a::after{
    display:none;
}

/* =========================
   HERO
========================= */

.hero{
    min-height:100vh;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;
    padding:30px;

    background:
    linear-gradient(
    rgba(15,23,42,.88),
    rgba(15,23,42,.88));

    color:white;

    position:relative;
    overflow:hidden;
}

.hero::before{
    content:'';

    position:absolute;

    width:500px;
    height:500px;

    background:
    rgba(56,189,248,.08);

    border-radius:50%;

    top:-180px;
    right:-120px;

    filter:blur(80px);
}

.hero::after{
    content:'';

    position:absolute;

    width:400px;
    height:400px;

    background:
    rgba(56,189,248,.05);

    border-radius:50%;

    bottom:-150px;
    left:-100px;

    filter:blur(80px);
}

.hero h1{
    font-size:64px;
    max-width:900px;
    margin-bottom:25px;
    line-height:1.4;

    position:relative;
    z-index:2;
}

.hero p{
    max-width:720px;
    font-size:22px;
    color:#cbd5e1;

    margin-bottom:35px;

    position:relative;
    z-index:2;
}

.btn{
    background:#38bdf8;
    color:white;

    text-decoration:none;

    padding:15px 35px;

    border-radius:12px;

    font-size:18px;
    font-weight:700;

    transition:.3s;

    position:relative;
    z-index:2;

    box-shadow:
    0 10px 25px rgba(56,189,248,.25);
}

.btn:hover{
    transform:translateY(-3px);
}

/* =========================
   SECTION
========================= */

.section{
    padding:100px 8%;
    text-align:center;
}

.section h2{
    font-size:42px;
    margin-bottom:25px;
    color:#0f172a;
}

/* =========================
   ABOUT
========================= */

#about p{
    max-width:1000px;

    margin:auto;

    background:white;

    padding:35px;

    border-radius:20px;

    box-shadow:
    0 10px 30px rgba(15,23,42,.05);
}/* =========================
   COURSES CARDS
========================= */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
    margin-top:40px;
}

.card{
    background:white;

    padding:30px;

    border-radius:18px;

    border:1px solid #edf2f7;

    box-shadow:
    0 10px 30px rgba(15,23,42,.05);

    transition:.35s;

    position:relative;

    overflow:hidden;
}

.card::before{
    content:'';

    position:absolute;

    top:0;
    right:0;

    width:100%;
    height:4px;

    background:#38bdf8;
}

.card:hover{
    transform:translateY(-8px);

    box-shadow:
    0 18px 35px rgba(15,23,42,.10);
}

.card h3{
    margin-bottom:15px;
    font-size:24px;
    color:#0f172a;
}

.card p{
    color:#64748b;
}

/* =========================
   FORM
========================= */

form{
    max-width:700px;

    margin:auto;

    display:flex;
    flex-direction:column;

    gap:15px;

    background:white;

    padding:35px;

    border-radius:20px;

    box-shadow:
    0 15px 35px rgba(15,23,42,.08);
}

#phone{
    direction:rtl;
    text-align:right;
}

input{
    padding:15px;

    border:1px solid #dbe3ee;

    border-radius:12px;

    font-size:17px;

    transition:.3s;
}

input:focus{
    outline:none;

    border-color:#38bdf8;

    box-shadow:
    0 0 0 4px rgba(56,189,248,.15);
}

button{
    background:#0f172a;

    color:white;

    border:none;

    padding:15px;

    border-radius:12px;

    cursor:pointer;

    font-size:18px;
    font-weight:700;

    transition:.3s;
}

button:hover{
    transform:translateY(-2px);
}

/* =========================
   SUCCESS MESSAGE
========================= */

#successMessage{
    text-align:center;
    font-size:18px;
}

/* =========================
   TOP BUTTON
========================= */

#topBtn{
    position:fixed;

    bottom:25px;
    left:25px;

    width:55px;
    height:55px;

    border:none;

    border-radius:50%;

    background:#0f172a;

    color:white;

    font-size:22px;

    cursor:pointer;

    opacity:0;
    visibility:hidden;

    z-index:999;

    box-shadow:
    0 10px 25px rgba(0,0,0,.15);

    transition:.3s;
}

#topBtn.show{
    opacity:1;
    visibility:visible;
}

#topBtn:hover{
    transform:translateY(-4px);
}

/* =========================
   FOOTER
========================= */

footer{
    background:#0f172a;

    color:white;

    text-align:center;

    padding:30px;

    margin-top:50px;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    header{
        flex-direction:column;
        gap:15px;
        text-align:center;
    }

    nav ul{
        justify-content:center;
        gap:15px;
        flex-wrap:wrap;
    }

    .logo{
        font-size:24px;
    }

    nav a{
        font-size:16px;
    }

    .hero h1{
        font-size:38px;
    }

    .hero p{
        font-size:18px;
    }

    .section h2{
        font-size:30px;
    }

    .section{
        padding:80px 6%;
    }

    form{
        padding:25px;
    }

    body{
        font-size:17px;
    }
}
/* =========================
   CONTACT INFO
========================= */

.contact-box{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
    margin-top:40px;
}

.contact-item{
    background:white;
    padding:30px;
    border-radius:18px;

    border:1px solid #edf2f7;

    box-shadow:
    0 10px 25px rgba(15,23,42,.05);

    transition:.3s;
}

.contact-item:hover{
    transform:translateY(-6px);
}

.contact-item h3{
    color:#0f172a;
    margin-bottom:10px;
    font-size:22px;
}

.contact-item p{
    color:#64748b;
}
.floating-whatsapp{
    position:fixed;
    right:25px;
    bottom:25px;

    width:60px;
    height:60px;

    background:#25D366;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    font-size:28px;

    box-shadow:0 10px 25px rgba(37,211,102,.35);

    z-index:999;
}
/* Responsive General Settings */

*{
    box-sizing:border-box;
}

html{
    overflow-x:hidden;
}

img{
    max-width:100%;
    height:auto;
}


/* Tablet */

@media(max-width:992px){

    header{
        width:95%;
        padding:15px 20px;
    }

    nav ul{
        gap:15px;
    }

}


/* Mobile */

@media(max-width:768px){

    header{
        width:90%;
        padding:15px;
    }

    .logo{
        font-size:1.3rem;
    }

    nav ul{
        gap:10px;
        flex-wrap:wrap;
        justify-content:center;
    }

}


/* Small Mobile */

@media(max-width:480px){

    header{
        top:10px;
    }

    nav ul li a{
        font-size:14px;
    }

}
.whatsapp-btn{
    width:60px;
    height:60px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:32px;
}
/*بطاقات*/

.team-section { width: 100%; padding: 20px; font-family: 'Cairo', sans-serif; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

.member-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    width: 320px; /* هذا هو السطر المسؤول عن العرض، غير الرقم هنا */
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
.member-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid #f9f9f9; margin: 0 auto; }
.member-name { font-size: 1.2rem; color: #1e272e; margin: 15px 0 5px; }
.member-role { color: #0984e3; font-size: 0.9rem; margin-bottom: 15px; }

.member-bio {
    color: #636e72;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* هذا يجعل الوصف يتمدد ويأخذ المساحة المتبقية */
}

.member-stats { 
    display: flex; 
    justify-content: space-between; 
    border-top: 1px solid #f1f1f1; 
    padding-top: 15px;
    margin-top: auto; /* هذا يجبر الإحصائيات أن تلتصق دائماً في أسفل الكرت */
}

.stat { display: flex; flex-direction: column; align-items: center; }
.stat span { font-weight: bold; color: #1e272e; }
.stat small { font-size: 0.7rem; color: #b2bec3; }

/* تأثيرات الـ Hover */
.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #0984e3;
}

.member-card:hover .member-img {
    transform: scale(1.05);
    transition: 0.3s;
}