/* ===================================
   Levi Faculty Directory v2
   Part 1
=================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#0f766e;
    --primary-light:#14b8a6;

    --gold:#d4af37;

    --bg:#f6f8fb;

    --card:rgba(255,255,255,.82);

    --text:#1e293b;

    --muted:#64748b;

    --danger:#ef4444;

    --success:#22c55e;

    --shadow:
    0 12px 35px rgba(15,23,42,.08);

    --radius:22px;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Tajawal',sans-serif;

    background:var(--bg);

    color:var(--text);

    min-height:100vh;

}



/* ================= Splash ================ */

#splash{

    position:fixed;

    inset:0;

    z-index:99999;

    display:flex;

    justify-content:center;

    align-items:center;

    background:

    radial-gradient(circle at top right,
    rgba(212,175,55,.12),
    transparent 35%),

    linear-gradient(135deg,
    #0f172a,
    #134e4a);

    transition:.5s;

}

#splash.hide{

    opacity:0;

    visibility:hidden;

}

.splash-box{

    text-align:center;

    color:white;

}

.levi-logo{

    width:82px;

    height:82px;

    border-radius:20px;

    margin-bottom:18px;

    box-shadow:
    0 20px 50px rgba(0,0,0,.3);

}

.splash-box h2{

    font-size:30px;

    font-weight:800;

    margin-bottom:8px;

}

.splash-box p{

    opacity:.85;

    margin-bottom:20px;

}

.loader{

    width:34px;

    height:34px;

    margin:auto;

    border-radius:50%;

    border:3px solid rgba(255,255,255,.25);

    border-top-color:white;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}


/* ================= APP ================= */

.app{

    min-height:100vh;

    padding:22px;

}


/* ================= Header ================= */

.hero{

    max-width:1150px;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:18px;

    background:var(--card);

    backdrop-filter:blur(18px);

    border-radius:26px;

    padding:18px 24px;

    box-shadow:var(--shadow);

}

.hero-left{

    display:flex;

    align-items:center;

}

.just-logo{

    width:72px;

}

.hero-center{

    flex:1;

}

.hero-center h1{

    font-size:25px;

    font-weight:800;

    color:var(--primary);

    margin-bottom:5px;

}

.hero-center p{

    color:var(--muted);

    font-size:14px;

}

.hero-right{

    display:flex;

    gap:10px;

}

.hero-right button{

    width:42px;

    height:42px;

    border:none;

    border-radius:14px;

    background:white;

    cursor:pointer;

    color:var(--primary);

    font-size:17px;

    box-shadow:

    0 5px 18px rgba(0,0,0,.05);

    transition:.25s;

}

.hero-right button:hover{

    background:var(--primary);

    color:white;

}



/* ================= Search ================= */

.search-section{

    max-width:1150px;

    margin:28px auto;

}

.search-box{

    position:relative;

}

.search-box i{

    position:absolute;

    right:18px;

    top:50%;

    transform:translateY(-50%);

    color:#94a3b8;

}

.search-box input{

    width:100%;

    padding:16px 18px 16px 50px;

    border:none;

    outline:none;

    border-radius:18px;

    background:white;

    font-size:15px;

    box-shadow:

    0 8px 25px rgba(0,0,0,.05);

    transition:.25s;

}

.search-box input:focus{

    box-shadow:

    0 0 0 3px rgba(20,184,166,.2);

}
/* ===================================
   Doctor Cards
=================================== */

.doctor-grid{

    max-width:1150px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(310px,1fr));

    gap:24px;

    padding-bottom:30px;

}

/* ================= Card ================= */

.card{

    position:relative;

    background:var(--card);

    border-radius:24px;

    overflow:hidden;

    backdrop-filter:blur(18px);

    box-shadow:var(--shadow);

    transition:.35s;

    border:1px solid rgba(255,255,255,.35);

}

.card:hover{

    transform:translateY(-8px);

    box-shadow:

    0 25px 45px rgba(0,0,0,.10);

}

/* الخط العلوي */

.card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    right:0;

    height:5px;

    background:linear-gradient(
    90deg,
    var(--primary),
    var(--gold)
    );

}

/* ================= Image ================= */

.card-top{

    padding:28px 25px 18px;

    text-align:center;

}

.doctor-image{

    width:110px;

    height:110px;

    border-radius:50%;

    overflow:hidden;

    margin:auto;

    border:4px solid rgba(15,118,110,.12);

    background:#f3f4f6;

    transition:.3s;

}

.card:hover .doctor-image{

    transform:scale(1.04);

    border-color:var(--gold);

}

.doctor-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.doctor-image i{

    width:100%;

    height:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:55px;

    color:#cbd5e1;

}

/* ================= Name ================= */

.doctor-name{

    margin-top:18px;

    font-size:22px;

    font-weight:800;

    color:var(--text);

}

.doctor-title{

    margin-top:6px;

    color:var(--primary);

    font-size:14px;

    font-weight:700;

    min-height:22px;

}

/* ================= Email ================= */

.email-box{

    margin:22px;

    background:#f8fafc;

    border-radius:16px;

    padding:13px 16px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    direction:ltr;

    border:1px solid rgba(148,163,184,.15);

}

.email-box span{

    font-size:13px;

    color:#334155;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.copy-btn{

    width:36px;

    height:36px;

    border:none;

    border-radius:12px;

    background:white;

    color:var(--primary);

    cursor:pointer;

    transition:.25s;

    flex-shrink:0;

}

.copy-btn:hover{

    background:var(--primary);

    color:white;

}

/* ================= Buttons ================= */

.card-buttons{

    display:flex;

    gap:10px;

    padding:0 22px 24px;

}

.btn{

    flex:1;

    border:none;

    border-radius:15px;

    padding:13px;

    cursor:pointer;

    font-family:'Tajawal';

    font-size:14px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    transition:.25s;

    text-decoration:none;

}

/* بريد */

.btn-mail{

    background:var(--primary);

    color:white;

}

.btn-mail:hover{

    background:#0b5d58;

}

/* المكتب */

.btn-office{

    background:#f1f5f9;

    color:#334155;

}

.btn-office:hover{

    background:var(--gold);

    color:#111827;

}

/* ================= Skeleton ================= */

.skeleton{

    animation:pulse 1.5s infinite;

}

@keyframes pulse{

    0%{

        opacity:.45;

    }

    50%{

        opacity:1;

    }

    100%{

        opacity:.45;

    }

}

/* ================= Fade ================= */

.card{

    animation:fadeUp .45s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:none;

    }

}
/* ===================================
   Modal
=================================== */

.modal{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:rgba(15,23,42,.45);

    backdrop-filter:blur(8px);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:999;

    padding:18px;

}

.modal.show{

    opacity:1;

    visibility:visible;

}

.modal-box{

    width:100%;

    max-width:520px;

    background:white;

    border-radius:28px;

    overflow:hidden;

    box-shadow:0 35px 70px rgba(0,0,0,.18);

    animation:modalUp .35s;

    position:relative;

}

@keyframes modalUp{

    from{

        transform:translateY(30px);

        opacity:0;

    }

    to{

        transform:none;

        opacity:1;

    }

}

.close-modal{

    position:absolute;

    top:18px;

    left:18px;

    width:42px;

    height:42px;

    border:none;

    border-radius:14px;

    background:#f1f5f9;

    cursor:pointer;

    transition:.25s;

    font-size:18px;

}

.close-modal:hover{

    background:#ef4444;

    color:white;

}

/* ================= Modal Header ================= */

.modal-header{

    padding:35px 25px 20px;

    text-align:center;

    background:

    radial-gradient(circle at top,
    rgba(15,118,110,.10),
    transparent);

}

.modal-header img{

    width:120px;

    height:120px;

    border-radius:50%;

    object-fit:cover;

    border:5px solid rgba(15,118,110,.12);

    margin-bottom:15px;

}

.modal-header h2{

    margin:0;

    font-size:24px;

    color:var(--text);

}

.modal-header p{

    margin-top:6px;

    color:var(--primary);

    font-weight:700;

}

/* ================= Info ================= */

.info-box{

    padding:25px;

}

.info-item{

    display:flex;

    align-items:center;

    gap:14px;

    background:#f8fafc;

    border-radius:18px;

    padding:14px 16px;

    margin-bottom:12px;

}

.info-item i{

    width:42px;

    height:42px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:14px;

    background:white;

    color:var(--primary);

}

.info-item span{

    font-size:15px;

    color:#334155;

}

/* ================= Office Hours ================= */

.office-hours{

    margin-top:20px;

}

.office-hours h3{

    margin-bottom:12px;

    color:var(--text);

}

.hour-card{

    background:#f8fafc;

    border-right:4px solid var(--gold);

    border-radius:14px;

    padding:14px;

    margin-bottom:10px;

    color:#334155;

    font-size:14px;

    line-height:1.7;

}

/* ================= Modal Buttons ================= */

.modal-actions{

    display:flex;

    gap:12px;

    margin-top:25px;

}

.modal-actions .btn{

    flex:1;

}

/* ================= Toast ================= */

#toast{

    position:fixed;

    bottom:30px;

    left:50%;

    transform:translateX(-50%) translateY(20px);

    background:#0f766e;

    color:white;

    padding:14px 24px;

    border-radius:50px;

    font-weight:700;

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:9999;

    box-shadow:0 15px 30px rgba(0,0,0,.18);

}

#toast.show{

    opacity:1;

    visibility:visible;

    transform:translateX(-50%) translateY(0);

}

/* ===================================
   Footer
=================================== */

.footer{

    max-width:1150px;

    margin:60px auto 25px;

    text-align:center;

}

.footer-line{

    width:85px;

    height:4px;

    margin:auto auto 18px;

    border-radius:30px;

    background:var(--primary);

}

.footer-content{

    display:inline-flex;

    align-items:center;

    gap:15px;

    background:white;

    padding:12px 22px;

    border-radius:999px;

    box-shadow:0 10px 25px rgba(0,0,0,.06);

}

.footer-content img{

    width:46px;

    height:46px;

    border-radius:14px;

}

.footer-content small{

    display:block;

    color:#64748b;

    font-size:11px;

}

.footer-content a{

    text-decoration:none;

    color:var(--primary);

    font-size:16px;

    font-weight:800;

}

.footer p{

    margin-top:18px;

    color:#94a3b8;

    font-size:13px;

}
/* ===================================
   DARK MODE
=================================== */

.app.dark{

    background:#0b1120;

    color:#f8fafc;

}

.app.dark .hero,
.app.dark .card,
.app.dark .search-box input,
.app.dark .modal-box,
.app.dark .footer-content{

    background:#162033;

    color:white;

    border:1px solid rgba(255,255,255,.06);

}

.app.dark .doctor-name,
.app.dark h1,
.app.dark h2,
.app.dark h3,
.app.dark h4{

    color:white;

}

.app.dark .hero p,
.app.dark .doctor-title,
.app.dark .footer p,
.app.dark small{

    color:#cbd5e1;

}

.app.dark .email-box{

    background:#1e293b;

    border-color:#334155;

}

.app.dark .email-box span{

    color:white;

}

.app.dark .info-item{

    background:#1e293b;

}

.app.dark .hour-card{

    background:#1e293b;

    color:white;

}

.app.dark .search-box input{

    color:white;

}

.app.dark .search-box input::placeholder{

    color:#94a3b8;

}

.app.dark .hero-right button{

    background:#1e293b;

    color:#d4af37;

}

.app.dark .hero-right button:hover{

    background:#0f766e;

    color:white;

}

.app.dark .btn-office{

    background:#263244;

    color:white;

}

.app.dark .btn-office:hover{

    background:#d4af37;

    color:black;

}

.app.dark .footer-content a{

    color:#d4af37;

}

.app.dark .footer-line{

    background:#d4af37;

}

/* ===================================
   SCROLLBAR
=================================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#0f766e;

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:#edf2f7;

}

/* ===================================
   RESPONSIVE
=================================== */

@media(max-width:1000px){

.hero{

    padding:18px;

}

.doctor-grid{

    grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.app{

    padding:14px;

}

.hero{

    flex-direction:column;

    text-align:center;

    gap:14px;

}

.hero-right{

    margin-top:5px;

}

.hero-center h1{

    font-size:22px;

}

.hero-center p{

    font-size:13px;

}

.just-logo{

    width:60px;

}

.search-section{

    margin:20px auto;

}

.search-box input{

    padding:14px 16px 14px 44px;

}

.search-box i{

    right:15px;

}

.doctor-grid{

    grid-template-columns:1fr;

}

.card{

    border-radius:20px;

}

.doctor-image{

    width:95px;

    height:95px;

}

.doctor-name{

    font-size:20px;

}

.email-box{

    margin:18px;

}

.card-buttons{

    flex-direction:column;

}

.modal-box{

    border-radius:22px;

}

.modal-header{

    padding:28px 18px;

}

.modal-header img{

    width:95px;

    height:95px;

}

.footer-content{

    width:100%;

    justify-content:center;

    border-radius:18px;

}

}

@media(max-width:450px){

.hero-center h1{

    font-size:18px;

}

.hero-center p{

    font-size:12px;

}

.hero-right button{

    width:38px;

    height:38px;

}

.search-box input{

    font-size:14px;

}

.doctor-name{

    font-size:18px;

}

.btn{

    font-size:13px;

    padding:12px;

}

.modal-header h2{

    font-size:21px;

}

.info-item span{

    font-size:14px;

}

.hour-card{

    font-size:13px;

}

.footer-content img{

    width:40px;

    height:40px;

}

}

/* ===================================
   END STYLE.CSS
=================================== */

/* =========================
   Head of Department
========================= */
#headDoctor{
    max-width:1150px;
    margin:0 auto 24px;
}

.head-card{
    display:flex;
    align-items:center;
    gap:16px;
    padding:16px 20px;
    max-width:960px;
    margin:0 auto 18px;
    border-radius:18px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-top:4px solid #c9a227;
    box-shadow:0 8px 22px rgba(0,0,0,.05);
}

.head-left img{
    width:82px;
    height:82px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #c9a227;
}

.head-right{
    flex:1;
}

.head-title{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:rgba(201,162,39,.12);
    color:#9a7500;
    padding:5px 11px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    margin-bottom:8px;
}

.head-right h2{
    margin:4px 0;
    font-size:21px;
    font-weight:800;
    color:#c9a227 !important;
}

.head-right p{
    font-size:13px;
    margin:4px 0;
    color:#334155 !important;
}

.head-buttons{
    display:flex;
    gap:10px;
    margin-top:14px;
}

.head-buttons .btn{
    padding:9px 14px;
    font-size:13px;
    border-radius:12px;
}

@media(max-width:768px){
    .head-card{
        flex-direction:column;
        text-align:center;
        padding:16px;
    }

    .head-left img{
        width:90px;
        height:90px;
    }

    .head-buttons{
        width:100%;
        flex-direction:column;
    }
}