@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --main-color: #3073a7;
  --white-color: #ffffff;
  --black-color: #000000;
  --text-color: #6a7a77;
  --btn-background-color: linear-gradient(135deg, #5fc3e4 0%, #3073a7 100%);
  --background: linear-gradient(180deg, #fcfefd 0%, #f4f6f9 60%, #dce7f0 100%);
  --background-hover: linear-gradient(135deg, #3073a7 0%, #5fc3e4 100%);
  --placeholder-color: #a1a1a1;
}

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

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

body {
  font-family: "Open Sans", sans-serif;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 4px;
}

.text-xl {
  font-size: 8rem;
}

.text-lg {
  font-size: 3rem;
}

.text-md {
  font-size: 2.2rem;
}

.text-sm {
  font-size: 1.5rem;
}

.main-color {
  color: var(--main-color);
}

.fourth-color {
  color: var(--fourth-color);
}

.fifth-color {
  color: var(--fifth-color);
}

.six-color {
  color: var(--six-color);
}

.btn-send {
  background: var(--btn-background-color);
  transition: all 0.3s ease-in;
  color: var(--white-color);
  padding: 0.4rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.1s ease;
  font-size: 15px;
  border-radius: 10px;
  border: none;
}

.btn-send:hover {
  background: var(--background-hover) !important;
  color: var(--white-color);
}

.bg-main {
  background: var(--btn-background-color);
}

.header-section h2 {
  position: relative;
}

.header-section h2 {
  position: relative;
  display: inline-block;
  font-weight: bold;
  &::before {
    content: "";
    position: absolute;
    background-image: url("../images/sugar.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 80px;
    height: 80px;
    left: -20px; /* مكان الأيقونة على اليسار */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
    z-index: -1;
  }
  &::after {
    content: "";
    position: absolute;
    background-image: url("../images/sugar.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 80px;
    height: 80px;
    right: -20px; /* مكان الأيقونة على اليسار */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
    z-index: -1;
  }
}

/*  
##################################################
#                  SOCIAL ICONS                  #
##################################################
*/
.social-icon {
  inset-inline-end: 0 !important;
  margin-inline-end: 16px;
  margin-bottom: 50px;
  width: fit-content;
  height: fit-content;
}

.social-icon a {
  background: var(--btn-background-color);
  color: var(--white-color);
  padding: 0.8rem;
  border-radius: 10px;
  margin: 0.5rem;
  text-decoration: none;
  border: 1px solid var(--white-color);
  width: 50px;
  height: 50px;
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.social-icon a:hover {
  background: var(--background-hover);
  color: var(--white-color);
  transform: translateY(-5px) scale(1.05);
  filter: brightness(1.1);
}

.back-to-top {
  position: fixed;
  bottom: 50px;
  inset-inline-start: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: var(--btn-background-color);
  color: var(--white-color);
  border-radius: 10px;
  border: 1px solid var(--white-color);
  font-size: 25px;
  text-decoration: none;
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  z-index: 9999;
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

.back-to-top:hover {
  background: var(--background-hover);
  transform: translateY(-5px) scale(1.05);
}

.back-to-top.show {
  display: flex;
}

/*  
##################################################
#                  LOADING                       #
##################################################
*/
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-container {
  position: relative;
  width: 220px;
  height: 220px;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: scale(0.9);
    opacity: 1;
  }
}

.loading-text h1 {
  font-size: 4rem !important;
}

.pulse-circle img {
  width: 250px;
}

/*  
##################################################
#                   Navbar                       #
##################################################
*/
.navbar {
  width: 100%;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: all 0.5s ease;
}

.fixed .navbar {
  background: var(--background) !important;
}

.fixed .navbar .nav-link {
  color: var(--black-color) !important;
}

.fixed .navbar .nav-link:hover {
  color: var(--main-color) !important;
}
.fixed .navbar .navbar-brand img {
  filter: invert(0) brightness(1) !important;
}
.fixed .navbar .navbar-toggler {
  color: var(--main-color);
}
.navbar .navbar-toggler {
  color: var(--white-color);
}
.fixed-top .navbar-brand img {
  filter: invert(1) brightness(100) !important;
}

.navbar-nav {
  margin-inline-start: auto;
}

.navbar .footer-social {
  display: flex;
  gap: 10px;
}

.navbar .footer-social .social-btn i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--six-color);
  color: var(--white-color);
  transition: all 0.4s ease;
}

.navbar .footer-social .social-btn i:hover {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--second-color);
  color: var(--white-color);
  transition: all 0.4s ease;
}

.nav-item {
  position: relative;
  width: 100%;
  text-wrap: nowrap;
}

.navbar-nav .nav-link {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  width: 100%;
  color: var(--white-color);
  display: block;
  padding: 5px 20px;
  transition: all 0.3s ease;
  z-index: 5 !important;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--main-color), #54b0e5);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.navbar .nav-link:hover {
  color: var(--main-color);
  font-weight: bold;
}

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

.navbar .nav-link.active,
.navbar .nav-link:focus {
  color: var(--main-color) !important;
  font-weight: bold;
}

.navbar .nav-link.active::after {
  width: 100%;
}
.offcanvas .offcanvas-header .navbar-brand img{
  filter: invert(0) brightness(1) !important;
}
.offcanvas{
  background: var(--background);
}
.offcanvas .nav-link {
  color: var(--main-color);
  transition: all 0.3s ease;
  width: fit-content;
}

.offcanvas .nav-link:hover {
  color: var(--main-color);
  transform: translateX(5px);
}

/*  
##################################################
#                     Home                       #
##################################################
*/

.hero {
  transition: all 0.3s;
  position: relative;
}

.hero-pages .overlay {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: hsla(0, 0%, 0%, 0.6);
}

.hero .swiper .swiper-wrapper .swiper-slide {
  height: 100vh;
  position: relative;
}

.hero .swiper {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .swiper .swiper-wrapper .swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: hsla(0, 0%, 0%, 0.8);
  opacity: 0.4;
}

.hero .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30px);
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: all 1s ease;
  z-index: 5;
}

.text-box.active {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.text-box h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.text-box p {
  font-size: 1.2rem;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--main-color);
  background-color: rgba(255, 255, 255);
  width: 45px;
  height: 45px;
  border-radius: 10px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  margin: 0 10px !important;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  width: 10px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--main-color);
  color: #fff;
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 11px;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 6px !important;
  transition: all 0.3s ease;
  border-radius: 5px !important;
}

.swiper-pagination-bullet-active {
  background: var(--btn-background-color);
  height: 14px;
}

.swiper-pagination {
  bottom: 25px !important;
}
/*  
##################################################
#                  About US                      #
##################################################
*/
.about img ,.vision img ,.mission img,.values img {
  height: 450px;
}
.about .header-section h2 {
  position: relative;
  display: inline-block;
  font-weight: bold;
  &::before {
    content: "";
    position: absolute;
    background-image: url("../images/sugar.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 80px;
    height: 80px;
    left: -10px; /* مكان الأيقونة على اليسار */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
    z-index: -1;
  }
  &::after {
    content: "";
    position: absolute;
    background-image: url("../images/sugar.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 80px;
    height: 80px;
    right: -30px; /* مكان الأيقونة على اليسار */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.2;
    z-index: -1;
  }
}
/*  
##################################################
#                  Services                      #
##################################################
*/

.services .card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.services .card img {
  height: 240px;
  width: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 12px;
}

.services .card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.services .card-body {
  position: relative;
  z-index: 5;
}

.services .card-body h5 {
  font-size: 1.2rem;
  color: var(--main-color);
}

.services .card-body p {
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 46px;
  text-overflow: ellipsis;
  display: -webkit-box;
  font-size: 14.5px !important;
  color: #7e7e7e !important;
}

.service-card .btn-link {
  color: var(--main-color);
  transition: all 0.4s ease;
  padding: 0;
}

.service-card .btn-link i {
  transform: rotate(-45deg);

  transition: all 0.4s ease;
}

.service-card .btn-link:hover i {
  transform: rotate(0deg) translateX(2px);
}

.service-card .card-body a {
  color: #54b0e5;
}

.service-card .card-body a:hover {
  color: var(--main-color);
}

/*  
##################################################
#                  doctors                       #
##################################################
*/
.doctors {
  position: relative;
  background: url("../images/Weeeeeeb 1920.png") center/cover no-repeat;
  z-index: 1;
}

.doctors::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7);
  /* غطاء شفاف أبيض بنسبة 60% */
  z-index: -1;
}

.doctor-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.doctor-card:hover {
  background-position: 45% 100px;
}

.doctor-card img {
  transition: all 0.4s ease;
  border-radius: 15px;
}

.doctor-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.doctor-card .card-body p {
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 20px;
  text-overflow: ellipsis;
  display: -webkit-box;
  font-size: 14.5px !important;
  color: #707070 !important;
}

.doctor-card .card-body a {
  color: #54b0e5;
}

.doctor-card .card-body a:hover {
  color: var(--main-color);
  font-weight: bold;
}

/*  
##################################################
#                    Blogs                       #
##################################################
*/

.articles {
  position: relative;
  background: url("../images/Weeeeeeb 1920.png") center/cover no-repeat;
  z-index: 1;
}

.articles::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7);
  /* غطاء شفاف أبيض بنسبة 60% */
  z-index: -1;
}

.articles .card {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}

.articles .card img {
  height: 260px;
  transition: transform 0.4s ease;
}

.articles .card:hover img {
  transform: scale(1.08);
}

.articles .card-body p {
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
  text-overflow: ellipsis;
  display: -webkit-box;
  font-size: 14.5px !important;
  color: #707070 !important;
}

.articles .card-body a {
  color: #54b0e5;
}

.articles .card-body a:hover {
  color: var(--main-color);
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h2 {
  color: var(--main-color);
  font-weight: 700;
  font-size: 2.3rem;
}

.contact-header p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-5px);
}

.contact-info h4 {
  color: var(--main-color);
  font-weight: 600;
}

.contact-info ul {
  padding: 0;
  margin: 0;
}

.contact-info li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #333;
}

.contact-info li i {
  background-color: var(--main-color);
  color: #fff;
  border-radius: 50%;
  padding: 10px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 22px;
  font-size: 18px;
}

.contact-form {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

.form-control {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.9rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 150, 0.15);
}

.btn-main {
  background-color: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-main:hover {
  background-color: #007f74;
}

iframe {
  border: 0;
  width: 100%;
  height: 250px;
  border-radius: 12px;
}

/*  
##################################################
#                    Footer                      #
##################################################
*/

footer {
  font-size: 15px;
  background: url("../images/Weeeeeeb\ 1920.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

footer h5 {
  position: relative;
}

footer p {
  font-size: 15px;
}

.footer-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  width: fit-content;
  color: var(--black-color);
  display: block;
  padding: 5px 0px;
  transition: all 0.2s ease;
  z-index: 5 !important;
}

.footer-links i {
  color: var(--main-color);
}

.footer-links a:hover,
.footer-links a:hover i {
  color: var(--main-color) !important;
  padding-left: 5px !important;
  font-weight: 600;
}

.footer-links a.active {
  color: var(--main-color) !important;
}

/* Social buttons */
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--btn-background-color) !important;
  color: var(--white-color);
  transition: all 0.3s ease;
}

.social:hover {
  background: var(--background-hover);
  color: #fff;
  transform: translateY(-3px);
}

.copyright a {
  transition: all 0.3s ease;
}

.copyright a:hover {
  color: var(--main-color) !important;
}
