@import url('medical_modern.css');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  text-decoration: none;
  list-style: none;
}
: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 5px rgba(0, 0, 0, 0.4);
}

body {
  background-color: #e6f1ff;
}
html {
  scroll-behavior: smooth;
}
.btn {
  background-color: var(--white-alfa-40);
  border: 2px solid var(--white-alfa-25);
  box-shadow: var(--box-shadow);
  text-transform: capitalize;
  color: black;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  transition: 0.5s;
  padding: 10px;
}
.btn:hover {
  color: #fff;
  background-color: var(--main-color);
  border: 2px solid #fff;
}

.empty {
  background-color: var(--white-alfa-40);
  border: 2px solid var(--white-alfa-25);
  box-shadow: var(--box-shadow);
  backdrop-filter: var(--backdrop-filter);
  text-transform: capitalize;
  color: var(--main-color);
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  font-weight: bold;
  line-height: 2;
  margin: 2rem auto;
}

.empty p {
  font-size: 30px;
  margin: 2rem;
}
input {
  border: none;
}

input[type="submit"] {
  cursor: pointer;
}
input[type="submit"]:hover {
  color: var(--main-color);
}
.box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  align-items: center;
  justify-content: center;
}

.box-container .box {
  margin: 1rem;
}
.heading {
  text-align: center;
  line-height: 1.5;
}
.heading h1 {
  font-size: 2rem;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-opacity);
}
.heading span {
  color: var(--main-color);
  text-transform: capitalize;
  font-size: 16px;
}
.heading img {
  margin: 0 0.2rem;
  white-space: 150x !important;
}
.flex-btn .btn {
  margin: 0.5rem;
}
.banner {
  margin-top: 0;
  white-space: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  animation: banner 8s infinite alternate;
}

@keyframes banner {
  0% {
    background-image: url("../image/banner1.jpg");
  }
  50% {
    background-image: url("../image/banner.jpg");
  }
  100% {
    background-image: url("../image/banner0.jpg");
  }
}

.banner .detail {
  place-content: 4%;
  line-height: 1.5;
  margin: 2rem;
}
.banner .detail p {
  font-size: 16px;
  margin-block: 1rem;
}
.banner .detail span {
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-top: 1rem;
}
.banner .detail a {
  color: #000;
}
.banner .detail span i {
  margin: 0 1rem;
}
.banner .detail h1 {
  font-size: 3rem;
  color: var(--main-color);
  text-transform: capitalize;
}
.button {
  background-color: var(--main-color);
  color: #fff;
  text-decoration: none;
  padding-bottom: 1rem;
  border-radius: 19px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  overflow: hidden;
  max-width: 25px;
  max-height: 25px;
  transition: all 1s ease-in-out;
  --webkit-transition: all 1s ease-in-out;
}
.button:hover {
  max-width: 300px;
}
.button .text {
  margin-bottom: 10px;
  padding-top: -10px;
}
/* ----------------------------------- footer --------------------------*/
.newsletter {
    background:var(--main-color);
    padding: 60px 10%;
    text-align: center;
    color: #fff;
    direction: rtl;
}

.newsletter .box-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.newsletter .box-detail p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter .input-field {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter .input-field .box {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 1rem;
    margin-bottom: 20px;
}

.newsletter .btn {
    background: #2ecc71;
    color: #fff;
    padding: 12px 40px;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

.newsletter .btn:hover {
    background: #27ae60;
}

.newsletter .icons {
    margin-top: 30px;
}

.newsletter .icons i {
    font-size: 1.5rem;
    margin: 0 10px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter .icons i:hover {
    color: #2ecc71;
}
.client {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 10%;
    background: #f8faff;
}

.client .img-box img {
    width: 120px;
    filter: grayscale(100%); /* جعل الصور رمادية */
    opacity: 0.6;
    transition: 0.3s;
    cursor: pointer;
}

.client .img-box img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
.header {
    position: sticky;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white-alfa-25);
    backdrop-filter: var(--backdrop-filter);
    border-bottom: 1px solid var(--white-alfa-40);
    box-shadow: var(--box-shadow);
    direction: rtl;
    justify-content: space-between;
}

.header .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    position: relative;
}

/* القائمة الرئيسية */
.header .navbar a {
    margin: 0 1rem;
    font-size: 1.1rem;
    color: var(--blue-opacity);
    font-weight: 500;
    transition: 0.3s;
}

.header .navbar a:hover {
    color: var(--main-color);
}

/* صندوق البحث */
/* إعدادات صندوق البحث المخفي */
.header .search-form {
    position: absolute;
    top: 100%; /* يبدأ من حافة الهيدر السفلي */
    left: -20px;
    height: 70px;
    background: var(--white-alfa-25);
    backdrop-filter: var(--backdrop-filter);
    border-top: 1px solid var(--white-alfa-40);
    display: flex;
    align-items: center;
    padding: 0 10%;
    width:850px;

    /* تأثير الاختفاء والظهور */
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* مخفي تماماً من الأعلى */
    transition: clip-path 0.4s ease-in-out, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none; /* لا يمكن النقر عليه وهو مخفي */
}

/* الحالة عند التفعيل */
.header .search-form.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* يظهر بالكامل لأسفل */
    opacity: 1;
    pointer-events: auto;
    width:850px;
}

/* تنسيق المدخلات داخل البحث */
.header .search-form input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--white-alfa-40);
    font-size: 1.1rem;
    color: var(--blue-opacity);
}

.header .search-form button {
    margin-right: -45px; /* وضع الايقونة داخل الحقل */
    font-size: 1.5rem;
    color: var(--main-color);
    cursor: pointer;
    background: none;
    z-index: 10;
}
/* الأيقونات */
.header .icons div {
    font-size: 1.5rem;
    margin-right: 1rem;
    cursor: pointer;
    color: var(--blue-opacity);
    transition: 0.3s;
}

.header .icons div:hover {
    color: var(--main-color);
}

#menu-btn { display: none; } /* يظهر في الجوال فقط */

/* ملف المستخدم (Profile) */
.header .profile {
    position: absolute;
    top: 120%; left: 5%;
    background: var(--white-alfa-25);
    backdrop-filter: var(--backdrop-filter);
    border: 1px solid var(--white-alfa-40);
    padding: 1.5rem;
    border-radius: 15px;
    width: 150px;
    display: none; /* يتم إظهاره بـ JS */
    box-shadow: var(--box-shadow);
}
.header .profile .flex-btn{
  display: flex;
  flex-direction: column;
  width: 150px;
  font-size: 18px;
  font-weight: 800;

}
.header .profile.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.header .profile .btn {
    display: block;
    margin-bottom: 0.8rem;
    text-align: center;
    background: var(--main-color);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.header .profile .btn:last-child {
    background: var(--pink-color);
}

/* --- التجاوب (Media Queries) --- */
@media (max-width: 991px) {
    #menu-btn { display: inline-block; }
    
    .header .flex .navbar {
        position: absolute;
        top: -300%; left: 0; right: 0;
        background: #fff;
        border-top: 1px solid var(--white-alfa-40);
        display: flex;
        flex-direction: column;
        transition: all 0.5s ease-in-out;
    }

    .header .flex .navbar.active { top: 100%; }

    .header .navbar a {
        padding: 1.5rem;
        border-bottom: 1px solid #eee;
        width: 100%;
        margin: 0;
    }

    .header .search-form {
        position: absolute;
        top: 100%; left: 5%; right: 5%;
        width: auto;
        display: none;
    }

    .header .search-form.active { display: flex; }
}

footer {
    background: #111827;
    color: #fff;
    padding: 80px 10% 20px;
    direction: rtl;
}

footer .content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

footer .box h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

footer .box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
}

footer .box p {
    line-height: 1.8;
    color: #9ca3af;
    margin: 20px 0;
}

footer .box a {
    display: block;
    color: #9ca3af;
    margin-bottom: 12px;
    transition: 0.3s;
    text-decoration: none;
}

footer .box a i {
    margin-left: 10px;
    color: #3498db;
}

footer .box a:hover {
    color: #fff;
    padding-right: 10px;
}

footer .box .icons {
    margin-top: 20px;
}

footer .box .icons i {
    font-size: 1.2rem;
    margin-left: 15px;
    cursor: pointer;
    transition: 0.3s;
}

footer .box .icons i:hover {
    color: #3498db;
}

/* الجزء السفلي من الفوتر */
footer .bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
}

footer .bottom a {
    display: inline;
    color: #3498db;
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    footer .content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    footer .box h3::after {
        right: 50%;
        transform: translateX(50%);
    }
}
.feature .box-container {
  align-items: center;
  justify-content: center;
  padding: 2% 4%;
}
.feature .box-container .box {
  border-radius: 0.5rem;
  background-color: var(--white-alfa-25);
  border: 2px solid #fff;
  backdrop-filter: var(--backdrop-filter);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
}
.feature .box-container .box img {
  width: 150px;
  margin: 1rem;
}
.feature .box-container .box div {
  margin-left: 1rem;
}
.feature .box-container .box div img {
  width: 40px;
}
.feature .box-container .box h2 {
  text-transform: capitalize;
  font-size: 18px;
  color: green;
  margin: 0.5rem 0;
}
.feature .box-container .box .button {
  background-color: var(--main-color);
  color: #fff;
  text-decoration: none;
  padding: 0.4rem;
  border-radius: 19px;
  text-align: center;
  display: inline-block;
  justify-content: center;
  overflow: hidden;
}

.care {
  background-image: url("../image/bg3.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  place-content: 5%;
}
.care .detail {
  max-width: 45rem;
  text-align: center;
}
.care .detail span {
  font-size: 2rem;
  color: var(--main-color);
}
.care .detail h2 {
  font-size: 2rem;
  text-transform: capitalize;
}
.care .detail p {
  font-size: 1.1rem;
  line-height: 1.8;
}
.care .detail .flex-btn {
  justify-content: center;
  margin-top: 1rem;
}
