@import url('medical_modern.css');
:root {
  --space: 2rem;
  --main-color: #71c438;
  --pink-color: #5d00fb;
  --blue-opacity: #002570;
  --white-alfa-40: rgba(15, 189, 27, 0.232);
  --white-alfa-25: rgba(8, 169, 11, 0.019);
  --backdrop-filter: blur(5px);
  --box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f2f5; /* لون خلفية مريح للعين */
    direction: rtl; /* دعم اللغة العربية */
}

/* --- الهيدر (Header) --- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(255, 255, 255, 0.1); /* شفافية */
    backdrop-filter: var(--backdrop-filter);
    -webkit-backdrop-filter: var(--backdrop-filter);
    border-bottom: 1px solid var(--white-alfa-40);
    z-index: 1000;
}

header .logo {
    order: 1; /* وضع الشعار في اليمين */
}

header .right {
    order: 2; /* وضع أيقونات التحكم في اليسار */
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header .right div img {
    width: 35px;
    cursor: pointer;
    transition: 0.3s;
}

header .right div:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--main-color));
}

/* --- السايدبار (Sidebar) --- */
.sidebar {
    position: fixed;
    top: 0; left: -300px; /* مخفي جهة اليسار */
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--backdrop-filter);
    border-right: 1px solid var(--white-alfa-40);
    padding-top: 100px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* حركة انسيابية سلسة */
    z-index: 999;
}

.sidebar.active {
    left: 0; /* يظهر عند إضافة كلاس active عبر JS */
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.sidebar .profile {
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar .profile .logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    object-fit: cover;
}

.sidebar .profile p {
    color: var(--blue-opacity);
    font-weight: bold;
    margin-top: 10px;
}

.sidebar h5 {
    padding: 0 2rem;
    color: var(--pink-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sidebar .navbar ul li {
    list-style: none;
}

.sidebar .navbar ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar .navbar ul li a i {
    margin-left: 15px; /* مسافة للأيقونة من اليمين */
    font-size: 1.4rem;
    color: var(--main-color);
}

.sidebar .navbar ul li a:hover {
    background: var(--pink-color);
    color: #fff;
    border-left: 4px solid var(--pink-color);
    padding-right: 2.5rem; /* تأثير انزياح عند التحويم */
}

/* --- القائمة المنبثقة للملف الشخصي (Profile Dropdown) --- */
.profile-detail {
    position: absolute;
    top: -390px; left: 5%;
    width: 380px;
    height: 288px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--backdrop-filter);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    display: block; /* مخفية */
    animation: fadeIn 0.4s ease;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}
.profile-detail img{
    width: 150px;
    height: 150px;
}
.profile-detail.active {
    top: 90px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: var(--main-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background: var(--pink-color);
}


/*------------------------------ footer section start----------------------*/
/* ----------------------------------- footer --------------------------*/
/* إعدادات المتصفح الافتراضية */
:root {
    --main-color: #71c438;
    --dark-green: #5da32e;
    --light-green: #eef7e8;
    --white: #fff;
    --black: #1a1a1a;
    --grey: #667;
}

/* النشرة الإخبارية */
.footer-content .newsletter {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../image/newsletter-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 100px 5%;
    text-align: center;
}

.footer-content .newsletter .box-detail h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.footer-content .newsletter .box-detail p {
    color: #eee;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.footer-content .newsletter .input-field {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.footer-content .newsletter .input-field .box {
    flex: 1;
    border: none;
    padding: 0 20px;
    outline: none;
    font-size: 1rem;
    border-radius: 50px;
}

.footer-content .newsletter .input-field input::placeholder {
    color: #928d8d;
}
.footer-content .newsletter .input-field .btn  {
    position: relative;
    bottom: -30px;
    /* left: 100px; */
    align-items: center;
    padding: 12px 35px;
    border-radius: 50px;
    background: var(--main-color);
    color: var(--white);
    font-weight: 600;
    transition: 0.3s;
    width: 40%;
}

.footer-content .newsletter .input-field .btn:hover {
    background: var(--dark-green);
    letter-spacing: 1px;
}

/* قسم الشركاء */
.footer-content .client {
    padding: 50px 0;
    background: var(--light-green);
}

.footer-content .client .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-content .client .img-box img {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.4s;
}

.footer-content .client .img-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* تذييل الصفحة */
.footer-content .footer {
    background: var(--black);
    padding: 80px 7% 20px;
    color: var(--white);
}

.footer-content .footer .content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-content .footer .box .logo {
    margin-bottom: 20px;
    width: 150px;
}

.footer-content .footer .box h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-content .footer .box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--main-color);
}

.footer-content .footer .box a {
    display: block;
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-content .footer .box a i {
    color: var(--main-color);
    margin-left: 10px;
}

.footer-content .footer .box a:hover {
    color: var(--main-color);
    transform: translateX(-10px);
}

.footer-content .footer .box .share {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-content .footer .box .share a {
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    background: #333;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-content .footer .box .share a:hover {
    background: var(--main-color);
    transform: translateY(-5px);
}

.footer-content .footer .bottom {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid #333;
    margin-top: 50px;
    color: #888;
}

.footer-content .footer .bottom span {
    color: var(--main-color);
}
