/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Poppins",  sans-serif;
  --nav-font: "Raleway",  sans-serif;
}


:root { 
  --background-color: #ffffff; 
  --default-color: #444444; 
  --heading-color: #004b23; 
  --accent-color: #1977cc; 
  --contrast-color: #ffffff; 
}

:root {
  --nav-color: #2c4964; 
  --nav-hover-color: #004B23; 
  --nav-dropdown-background-color: #ffffff; 
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  transition: all 0.5s;
  z-index: 997;
  background-color: var(--background-color);
}

.header .topbar {
  background-color: #38b000;
  height: 40px;
  padding: 0;
  font-size: 14px;
  transition: all 0.5s;
}

/* topbar icons */
.header .topbar .contact-info i {
  font-style: normal;
  color: var(--contrast-color);
}

/* topbar text */
.header .topbar .contact-info a,
.header .topbar .contact-info span {
  padding-left: 5px;
  color: var(--contrast-color);
} 

@media (max-width: 575px) {
  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }
}

.header .topbar .contact-info i a {
  line-height: 0;
  transition: 0.3s;
}

.header .topbar .contact-info i a:hover {
  color: var(--contrast-color);
  text-decoration: underline;
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 50px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .navmenu {
    order: 2;
  }
}

.scrolled .header {
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.15); 
}

.scrolled .header .topbar {
  height: 0;
  visibility: hidden;
  overflow: hidden;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #004b23;
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: #00a200;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: #004B23;
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    display: none;
    width: 50%;
    position: absolute;
    /* inset: 60px 20px 20px 20px; */
    top: 60px;
    right: 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #444444;
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  /* .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  } */

  /* .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    background-color: #00a200;
    color: var(--contrast-color);
  } */

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #004B23;
  }

  /* .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  } */

  /* .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  } */

  /* .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  } */

  /* .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  } */

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: #dee2e6;
  background-color: #004b23;
  font-size: 14px;
  padding-bottom: 10px;
  position: relative;
}

.footer .footer-contact i {
  font-size: 1.3rem;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  font-size: 16px;
  color: #004b23;
  background-color: #dee2e6;
  margin-right: 10px;
  transition: 0.3s;
}

.footer .footer-top .img-fluid{
    width: 300px; 
    height: auto; 
}


.footer .social-links a:hover {
  color: #dee2e6;
  border-color: #dee2e6;
  background-color: #004b23;
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid #dee2e6;
}

.footer .copyright p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: #004B23 transparent #004B23 transparent; 
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Social Media Icons Right
--------------------------------------------------------------*/
.social-icons-right {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.social-icons-right a {
  display: block;
  margin-bottom: 15px;
  width: 40px;
  height: 40px;
  background-color: #00a200;
  border-radius: 50%;
  transition: all 0.4s;
  text-align: center;
  line-height: 40px;
}

.social-icons-right a i {
  font-size: 16px;
  color: #ffffff;
}

.social-icons-right a:hover {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99;
  background-color: #00a200;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  color: #ffffff;
  line-height: 0;
}

.scroll-top:hover {
    transform: scale(1.1);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 30px 0;
  scroll-margin-top: 72px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 60px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-family: "Metal", serif;
  font-weight: 800;
  font-style: normal;
  font-size: 32px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: rgba(68, 68, 68, 0.6);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: #007200;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.text-justify {
  text-align: justify;
}
.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

#hero .carousel-caption {
  position: absolute;
  /* bottom: 0%; */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
}

.action-buttons {
  display: flex;
  gap: 20px; /*Spacing between buttons */
}

#hero .btn-custom {
  background-color: #00a200;
  font-family: var(--heading-font);
  font-size: 12px;
  color: #fff;
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
}

#hero .btn-custom {
  background-color: #00a200;
  font-family: var(--heading-font);
  font-size: 1rem; 
  color: #fff;
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
  flex: 1; /* Make buttons take equal space */
  text-align: center; 
  padding: 0.5rem 1rem; 
  max-width: 11rem; 
  min-width: 8rem; 
}

@media (max-width: 768px) {
  #hero .btn-custom {
    font-size: 0.9rem; 
    padding: 0.4rem 0.8rem; 
  }
}

@media (max-width: 576px) {
  #hero .btn-custom {
    font-size: 0.8rem; 
    padding: 0.2rem 0.4rem; 
    max-width: 9rem; /* Limit maximum width for better responsiveness */
  }
}

#hero .btn-custom:hover {
  background-color: #fff;
  color: #00a200;
  border: 1px solid #00a200;
}

#appointmentModal p span{
  color: #000000;
}

#appointmentModal .modal-body{
  font-family: poppins;
  font-size: 14px;
}

.aptmnt-modal-footer {
  padding: 3px 10px; /* Adjust these values as needed */
}

#appointmentModal .btn-aptmnt{
  border-radius: 50px;
  background-color: #00a200; 
  color: white;
  padding: 2px 10px; 
  transition: background-color 0.3s, color 0.3s, border 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  font-size: 12px;
}

#appointmentModal .btn-aptmnt:hover{
  background-color: white;
  color: #00a200;
  font-weight: 500;
  border: 1px solid #00a200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

.cbtn-close{
  border-radius: 50px;
  background-color: #888888; 
  color: #ffffff;
  padding: 2px 10px; 
  transition: background-color 0.3s, color 0.3s, border 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  font-size: 12px;
}

.cbtn-close:hover{
  background-color: white;
  color: #666666;
  font-weight: 500;
  border: 1px solid #666666;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about{
  background-color: #f8f9fa;
}

.about .content{
  text-align: justify;
}

@keyframes pulsate-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .custom-card {
  border: 1px solid #ced4da;
  border-radius: 8px;
  width: 18rem;
  background-color: #fff;
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
  height: 100%;
}

.services .card .hc{
  width: 100px; 
  height: auto; 
  padding: 20px;
}

.services .card .blood-tests{
  width: 92px; 
  height: auto; 
  padding: 20px;
}

.services .card .diagnosis{
  width: 100px; 
  height: auto; 
  padding: 10px;
  padding-bottom: 0;
}

.services .card .diagnosis-tests{
  font-size: 0.8rem;
}

.services .card .pharmacy{
  width: 105px; 
  height: auto; 
  padding: 20px;
}

.services .card .title-font-weight{
  font-size: 1.1rem;
  font-weight: 500;
}

.services .custom-card:hover {
  transform: translateY(-10px);
  border: 1px solid #00a200;
}

/*--------------------------------------------------------------
# Consultations Section
--------------------------------------------------------------*/
.consultations{
background-color: #f8f9fa;
}

.card {
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 250px; 
  margin: auto; 
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  border-radius: 10px 10px 0 0;
}

.consultations .card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #004B23;
}

.consultations .card-title {
  font-family: "Zain";
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #004B23;
}

.card-text {
  color: #666;
  font-size: 0.9rem;
}


.consultations {
  overflow: hidden;
}

.consultations .owl-carousel .owl-stage-outer{
  margin-bottom: 30px;
}

/*--------------------------------------------------------------
# Doctors Section
--------------------------------------------------------------*/
.doctors .team-member {
  box-shadow: 0px 2px 15px color-mix(in srgb, var(--default-color), transparent 90%);
  position: relative;
  border-radius: 5px;
  transition: 0.5s;
  padding: 30px;
  height: 100%;
}

@media (max-width: 468px) {
  .doctors .team-member {
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
  }
}

.doctors .team-member .pic {
  overflow: hidden;
  width: 150px;
  border-radius: 50%;
  flex-shrink: 0;
}

.doctors .team-member .pic img {
  transition: ease-in-out 0.3s;
}

.doctors .team-member:hover {
  transform: translateY(-10px);
}

.doctors .team-member .member-info {
  padding-left: 30px;
}

@media (max-width: 468px) {
  .doctors .team-member .member-info {
    padding: 30px 0 0 0;
    text-align: center;
  }
}

.doctors .team-member h4 {
  font-family: "Zain", sans-serif;
  font-size: 28px;
  font-weight: 700;
  font-style: normal;
}


.doctors .team-member span {
  display: block;
  font-size: 15px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 500;
}

.doctors .team-member span::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
  bottom: 0;
  left: 0;
}

@media (max-width: 468px) {
  .doctors .team-member span::after {
    left: calc(50% - 25px);
  }
}

.doctors .team-member p {
  margin: 10px 0 0 0;
  font-size: 14px;
}


#doctors .btn-curved, #appointmentModal .btn-curved{
  border-radius: 50px;
  background-color: #00a200; 
  color: white;
  padding: 5px 20px; 
  transition: background-color 0.3s, color 0.3s, border 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  font-size: 12px;
}

#doctors .btn-curved:hover, #appointmentModal .btn-curved:hover{
  background-color: white;
  color: #00a200;
  border: 1px solid #00a200;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

.doctors .team-member .social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
}

.modal-header {
  background-color: #f5f5f5;
  padding-top:10px;
  padding-bottom: 10px;
}

.modal-title {
  color: #007200;
}

.modal-info {
  max-width: 600px;
}

.modal-info h5 {
  margin-top: 20px;
  font-weight: bold;
}

.modal-info hr {
  margin: 5px 0 15px;
}

.modal-info p {
  text-align: justify;
}

.doctors .modal-footer {
  background-color: #f5f5f5;
  padding-top: 5px;
  padding-bottom: 5px;
}

.pic img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
}

