/* -----------------------------------Universal CSS----------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
}

.main {
  background-color: #d7d7d774;
  position: relative;
}

/* -----------------------------------Scroll Bar----------------------------------- */

/* Target WebKit-based browsers */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Track (the area where the scrollbar is located) */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle (the draggable part of the scrollbar) */
::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* -----------------------------------Page-1 CSS Home----------------------------------- */

.home-section {
  min-height: 100vh;
  width: 100%;
}

.mininav {
  position: fixed;
  top: 0;
  height: 30px;
  width: 100%;
  background-color: #333;
  border-bottom: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
}

.mininav p {
  color: white;
}

#mininav2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  align-items: center;
  font-size: 14px;
  color: white;
}

#nav {
  position: fixed;
  top: 30px;
  height: 60px;
  width: 100%;
  background-color: #2e3192;
  border-bottom: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
}

.logo {
  padding: 5px 5px;
  height: 100%;
}

.logo img {
  height: 100%;
  filter: invert(100%) brightness(1000%);
}

#nav i {
  font-size: 20px;
  font-weight: 800;
  display: none;
}

#nav-part2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

#nav h4 a {
  color: white;
  text-decoration: none;
}

#nav-part2 h4 a:hover {
  cursor: pointer;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

#slidecontainer {
  height: 100vh;
  width: 100%;
  position: relative;
}

.mySlides {
  height: 100%;
}

.mySlides img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.content {
  position: absolute;
  padding: 10px 50px;
  align-items: center;
  background-color: gray;
  border-radius: 15px;
  opacity: 0.9;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin-bottom: 20px;
}

.content p {
  margin-top: 10px;
  margin-bottom: 20px;
}

.content button {
  color: white;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
  background-color: #2e3192;
  font-weight: 600;
  border: none;
  transition: background-color 0.3s;
}

.content button:hover {
  cursor: pointer;
  background-color: #0056b3;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 45%;
  width: auto;
  padding: 15px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 30px 30px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 30px 0 0 30px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: #2e3192;
}

.dott {
  position: absolute;
  display: flex;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* The dots/bullets */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #d3eaf6;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot:hover {
  background-color: #2e3192;
}

.dot.active {
  background-color: #2e3192;
}

.dot.active:hover {
  background-color: #2e3192;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Home-section Book Appointment Button */
.bookappoitment-container {
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  display: grid;
  z-index: 10;
  place-items: center;
  background-color: #c9c9c9db;
}

#bookappoitment-container {
  display: none;
}

.bookappointment-content {
  position: relative;
  height: 500px;
  width: 700px;
  border-radius: 10px;
  background: whitesmoke;
  padding: 20px 20px;
}

#closeRM {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 30px;
}

.bkform {
  /* border: 2px solid red; */
  margin-top: 1px;
  text-align: center;
}

.bkform label {
  display: block;
  margin-bottom: 5px;
}

select {
  width: 80%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.bkform input[type="text"],
.bkform input[type="email"],
.bkform input[type="tel"],
.bkform input[type="date"],
.bkform textarea {
  width: 80%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.bkform input[type="submit"] {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #2e3192;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.bkform input[type="submit"]:hover {
  background-color: #0056b3;
  cursor: pointer;
}

.success-message {
  color: green;
  background-color: #d7f8dc;
  border: 1px solid #c6f5c9;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  width: 100%;
}

.error-message {
  color: red;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  width: 100%;
}

/* -----------------------------------Page-2 CSS Treatment----------------------------------- */

.services-section {
  /* min-height: 100vh; */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* border: 4px solid black; */
}

#heading h2 {
  /* border: 2px solid red; */
  text-align: center;
  padding: 20px;
}

.treatment-slider {
  /* border: 2px solid red; */
  display: flex;
  padding: 5px 22px;
  align-items: center;
  justify-content: center;
}

.wrapper {
  width: 100%;
  position: relative;
}
.wrapper i {
  top: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  text-align: center;
  line-height: 50px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
  transform: translateY(-50%);
  transition: transform 0.1s linear;
}
.wrapper i:active {
  transform: translateY(-50%) scale(0.85);
}
.wrapper i:first-child {
  left: -22px;
}
.wrapper i:last-child {
  right: -22px;
}
.wrapper .carousel {
  /* border: 2px solid green; */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 4) - 12px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel.no-transition {
  scroll-behavior: auto;
}
.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel.dragging .card {
  cursor: grab;
  user-select: none;
}

.carousel .card {
  /* border: 2px solid red; */
  background: #f6fbfd;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  height: 575px;
  list-style: none;
  cursor: pointer;
  padding: 15px 15px;
  flex-direction: column;
  border-radius: 8px;
}

.carousel .card p {
  margin-top: 10px;
  text-align: center;
}

.carousel .card button {
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #2e3192;
  font-weight: 600;
  border: none;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.carousel .card button:hover {
  cursor: pointer;
  background-color: #0056b3;
}

.carousel .card .img {
  /* border: 2px solid red; */
  height: 500px;
  width: 100%;
  overflow: hidden;
}

.carousel .card .img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  object-position: center;
  display: block;
}

/* -----------------------------------Page-3 CSS About----------------------------------- */

.about-section {
  /* min-height: 100vh; */
  width: 100%;
}

.aboutuspart1 {
  text-align: center;
  padding: 20px;
}

.aboutuspart1 p {
  margin-top: 20x;
}

.aboutuspart2 {
  display: flex;
  padding: 20px 50px;
  gap: 50px;
}

.aboutuspart2imgcontainer {
  width: 40%;
  height: 600px;
}

.aboutuspart2imgcontainer img {
  /* border-radius: 10px; */
  width: 100%;
  height: 100%;
}

.aboutuspart2content {
  padding: 20px;
  width: 60%;
}

.aboutuspart2content h3 {
  margin-bottom: 10px;
}

.aboutuspart2content p {
  margin-bottom: 10px;
}

.aboutuspart2content p i {
  font-size: 20px;
}

/* -----------------------------------Page-4 CSS Doctor----------------------------------- */

.doctor-section {
  /* border: 3px solid black; */
  /* max-height: 100vh; */
  width: 100%;
}

.page4heading {
  text-align: center;
  padding: 20px;
}

.doctor-grid-container {
  /* border: 2px solid red; */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.doctorcard {
  background: #f6fbfd;
  padding: 20px;
  box-shadow: 0px 0px 5px #000000;
  text-align: center;
}

.doctorcard:hover {
  box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.2);
}

.docimg {
  /* border: 2px solid red; */
  height: 300px;
}

.docimg img {
  object-fit: cover;
  border-radius: 10px;
  height: 100%;
  width: 100%;
}

.doctorabout {
  text-align: center;
}

.doctorabout > span {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

/* -----------------------------------Page-5 CSS Galary----------------------------------- */

.gallery-section {
  /* max-height: 100vh; */
  width: 100%;
  display: flex;
  flex-direction: column;
}

.page5heading {
  text-align: center;
  padding: 20px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-gap: 10px;
  padding: 20px;
}

.pic {
  height: 200px;
}

.pic img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* -----------------------------------Page-6 CSS Contact----------------------------------- */

.contact-section {
  /* min-height: 100vh; */
  width: 100%;
}

.contactpart1 {
  text-align: center;
  padding: 20px;
}

#map {
  width: 100%;
  height: 400px;
  border: 0;
  outline: 0;
  margin: 25px 0;
}

.contactpart2 {
  display: flex;
  padding: 20px 20px;
  gap: 20px;
}

/* -----------------------------------Address----------------------------------- */

.addresscontainer {
  width: 50%;
  text-align: center;
  padding: 20px;
  background: #f6fbfd;
  border-radius: 10px;
}

.ouraddress {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

.ouraddress i {
  font-size: 30px;
}

.emailcall {
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.email {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

.email i {
  font-size: 30px;
}

.email p {
  overflow-wrap: anywhere;
}

.call i {
  font-size: 30px;
}

.call {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  padding: 20px;
}

.socialicon a {
  margin: 0 5px;
  color: black;
  font-size: 30px;
  text-decoration: none;
}

.socialicon a:hover {
  color: gray;
}

/* -----------------------------------Feedback----------------------------------- */

.feedbackcontainer {
  background: #f6fbfd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 50%;
  text-align: center;
}

.feedbackcontainer .form-group {
  margin-bottom: 5px;
}

.feedbackcontainer label {
  display: block;
  margin-bottom: 5px;
}

.feedbackcontainer input[type="text"],
.feedbackcontainer input[type="tel"],
.feedbackcontainer textarea {
  width: 80%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.feedbackcontainer textarea {
  height: 100px;
}

.feedbackcontainer input[type="submit"] {
  margin-top: 10px;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #2e3192;
  font-weight: 600;
  border: none;
  transition: background-color 0.3s;
}

.feedbackcontainer input[type="submit"]:hover {
  cursor: pointer;
  background-color: #0056b3;
}

/* -----------------------------------Footer CSS----------------------------------- */

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

footer a {
  color: white;
  text-decoration: none;
  position: absolute;
  right: 15px;
  font-size: 30px;
}

footer a:hover {
  cursor: pointer;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* ----------------------------Mobile Layout---------------------------- */

@media screen and (max-width: 768px) {
  #nav {
    display: none;
  }

  .logo {
    display: none;
  }

  /* Show #nav when .show-nav class is added */
  #nav.show-nav {
    height: 300px;
    display: block;
    border: none;
  }

  #nav-part2 {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap:18px;
  }

  /* Mini Nav Adjustments */
  .mininav {
    padding: 0 10px;
  }

  .mininav p {
    font-size: 11px;
  }

  .hamburger-menu {
    display: flex;
  }

  /* Home Section Adjustments */
  .content {
    width: 90%;
    padding: 10px 20px;
  }

  .content h1 {
    font-size: 18px;
  }

  .content p {
    font-size: 13px;
  }

  .content button {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* Book Appointment Modal */
  .bookappointment-content {
    width: 95%;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  #closeRM {
    font-size: 22px;
    right: 15px;
    top: 10px;
  }

  .bkform label {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .bkform input[type="text"],
  .bkform input[type="email"],
  .bkform input[type="tel"],
  .bkform input[type="date"],
  .bkform textarea,
  .bkform select {
    width: 90%;
    font-size: 12px;
    padding: 10px;
  }

  .bkform input[type="submit"] {
    padding: 5px 10px;
    font-size: 12px;
  }

  .bkform textarea {
    font-size: 12px;
    padding: 10px;
  }

  .bkform input,
  .bkform textarea,
  .bkform select,
  .bkform label {
    margin-bottom: 5px;
  }

  /* Services Section */

  .wrapper i {
    height: 40px;
    width: 40px;
    font-size: 16px;
    line-height: 40px;
  }

  .wrapper .carousel {
    grid-auto-columns: 100%;
  }

  .carousel .card p {
    font-size: 15px;
  }

  .carousel .card button {
    font-size: 12px;
    font-weight: 500;
  }

  .carousel .card {
    /* height: auto; */
  }

  .carousel .card .img {
    /* height: 300px; */
  }

  /* About Section */

  .aboutuspart1 {
    font-size: 14px;
    padding: 10px 20px;
  }

  .aboutuspart2 {
    flex-direction: column;
    padding: 5px 20px;
    gap: 20px;
  }

  .aboutuspart2imgcontainer {
    width: 100%;
    height: 300px;
  }

  .aboutuspart2content {
    width: 100%;
    padding: 0;
  }

  .aboutuspart2content h3 {
    font-size: 16px;
  }

  .aboutuspart2content p {
    font-size: 14px;
  }

  .aboutuspart2content p i {
    font-size: 14px;
  }

  /* Doctors Section */
  .doctor-grid-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .docimg {
    width: 100%;
    height: 200px;
  }

  .doctorabout h3 {
    font-size: 16px;
  }

  .doctorabout span {
    font-size: 13px;
    margin-top: 3px;
  }

  /* Gallery Section */
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }

  .pic {
    height: 150px;
  }

  /* Contact Section */

  .contactpart1 {
    padding: 10px 20px;
  }

  .contactpart2 {
    flex-direction: column-reverse;
    padding: 0 20px;
  }

  .addresscontainer i {
    font-size: 20px;
  }

  .addresscontainer .ouraddress h3 {
    font-size: 16px;
  }

  .addresscontainer .emailcall h3 {
    font-size: 16px;
  }

  .addresscontainer .emailcall p {
    font-size: 14px;
  }

  .addresscontainer .ouraddress p {
    font-size: 14px;
  }

  .addresscontainer,
  .feedbackcontainer {
    width: 100%;
  }

  .emailcall {
    gap: 20px;
  }

  .email,
  .call {
    width: 100%;
  }

  .feedbackcontainer label {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .feedbackcontainer input[type="text"],
  .feedbackcontainer input[type="tel"],
  .feedbackcontainer textarea {
    width: 90%;
    font-size: 12px;
    padding: 10px;
  }

  .feedbackcontainer input[type="submit"] {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
  }

  .feedbackcontainer textarea {
    font-size: 12px;
    padding: 10px;
  }

  .feedbackcontainer input,
  .feedbackcontainer textarea,
  .feedbackcontainer label {
    margin-bottom: 5px;
  }

  /* Footer */
  footer {
    padding: 5px 20px;
    margin-top: 10px;
  }

  footer span {
    font-size: 10px;
  }

  footer a {
    /* position: static; */
    font-size: 20px;
  }
}

/* Tablet Adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .wrapper .carousel {
    grid-auto-columns: calc((100% / 2) - 12px);
  }

  .doctor-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Desktop Adjustments */
@media screen and (min-width: 1025px) and (max-width: 1366px) {
  .wrapper .carousel {
    grid-auto-columns: calc((100% / 3) - 12px);
  }
}
