@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@1&family=Inter&family=Rubik+Bubbles&display=swap");
:root {
  --primary-color: #085eba;
  --dark-gray: #454d59;
  --light-blue: #eff6ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  overflow-x: hidden;
}

p {
  font-family: "Inter", sans-serif;
}
a {
  all: unset;
  text-decoration: none;
  cursor: pointer;
}
.fa-location-dot,
.fa-phone {
  color: var(--primary-color);
}
/* top header css */
.top-header,
.top-header-location,
.top-header-phone {
  display: flex;
  padding: 0.5rem 0.5rem;
  font-size: small;
}
.top-header-location,
.top-header-phone {
  gap: 0.5rem;
}
.top-header-phone {
  margin-left: auto;
}

/* nav */
nav {
  font-family: "Inter", sans-serif;
  background-color: white;
  display: flex;
  align-items: center;
  /* padding: 1.5rem 0.5rem; */
  padding: 0 0.5rem;
  position: sticky;
  top: 0;
  gap: 0.5rem;
  height: 4rem;
  width: 100%;
  z-index: 500;
}
.menu {
  all: unset;
  color: var(--primary-color);
  padding: 4px;
  margin-left: auto;
  font-size: large;
}
.site-name {
  width: fit;
  display: flex;
  font-family: "Rubik Bubbles", system-ui;
}
.site-name span {
  color: var(--primary-color);
}
.nav-links {
  margin-left: auto;
  /* display: none; */
  position: absolute;
  display: flex;
  flex-direction: column;
  top: -100vh;
  background-color: white;
  width: 100%;
  left: 0;
  align-items: center;
  transition: all 1s ease;
  padding: 1rem 0;

  gap: 2rem;
}

.display-mobile-nav {
  top: 100%;
}

/* hero section */

.hero {
  height: 30rem;
  position: relative;
  background-color: black;
}
.hero img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-content {
  z-index: 100;
  color: white;
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  top: 50%;
  width: 90%;
  padding: 0 1rem;
  transform: translateY(-50%);
}
.hero-content h2 {
  color: green;
  font-size: small;
}
.write-up {
  font-size: 2rem;
  font-weight: bold;
}
.write-up span {
  color: var(--primary-color);
}
.hero-paragrapgh {
  line-height: 1.5rem;
}

/* about us */

.about-us-container {
  display: flex;
  padding: 0.5rem 1rem;
  flex-direction: column;
  margin-top: 5rem;
}
.about-us-item {
  flex-basis: 50%;
  position: relative;
  flex: 1;
}
.about-us-svg {
  height: 25rem;
  position: relative;
}
.about-us-svg img {
  height: 100%;
  object-fit: cover;
}
.about-us-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about-us-content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  font-family: "DM Serif Display", serif;
}

/* why choose us section */

.why-choose-us {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 3rem;
  row-gap: 2rem;
  padding: 0.5rem;
  margin-top: 5rem;
}
.why-choose-us-item,
.dept-cards-item {
  flex: 1;
  min-height: 20rem;
  flex-basis: 50%;
  position: relative;
  padding: 0 1rem;
}

.choose-us, .choose-us-image{
  display: flex;
  flex-direction: column;
  flex: 1;
}
.choose-us{
  justify-content: space-between;
}

.why-choose-us-item img {
  width: 100%;
  max-height: 30rem;
 
}
.why-choose-us-item > h3,
.why-choose-us-item > h2 {
  color: var(--primary-color);
  font-weight: bold;
}
.why-choose-us-item > h2 {
  font-size: 2rem;
}
.choose-us-list {
  display: flex;
  gap: 1rem;
  flex: 1;
}
.choose-us-list span {
  height: 24px;
  width: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: small;
  color: white;
}

.choose-us-list h3 {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.5rem;
}

.choose-us-list-contain {
  display: flex;
  flex: 1;
  gap: 2rem;
  flex-direction: column;
  margin-top: 1rem;
}

/* explore our department section */
.departments {
  margin-top: 5rem;
}

.departments-cards-container {
  height: auto;
  padding: 1rem 0.5rem;
}

.departments > h2 {
  text-align: center;
  width: fit-content;
  position: relative;
  margin: 0 auto;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: "DM Serif Display", serif;
}

.departments > h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  height: 4px;
  width: 40%;
  background-color: var(--primary-color);
}

.dept-cards {
  padding: 0 0.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.dept-single-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-basis: 90%;
  min-height: 20rem;
  position: relative;
  position: relative;
  cursor: default;
  transition: all 0.5s ease;
  border-radius: 6px;
  overflow: hidden;
}
.overlay {
  width: 100%;
  height: 30%;
  position: absolute;
  bottom: 0;
  border-radius: 7px;
  cursor: pointer;
  background: linear-gradient(rgba(0, 0, 0, 0.5), #4d6dec);
  transition: 1s;
}

.card-cover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
}

.dept-single-card img {
  position: absolute;
  height: 100%;
  width: 100%;
  min-height: 20rem;
  object-fit: cover;
  z-index: -10;
}

.dept-single-card-active {
  border-left: 5px solid var(--primary-color);
  background-color: #bfdbfe;
}
.dept-single-card-active:hover {
  border: none;
}

.dept-single-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: transparent;
}

.dept-img-container {
  position: relative;
  height: 25rem;
}

.dept-images img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
}
.dept-content {
  width: 80%;
  position: absolute;
  bottom: 1%;
  left: 50%;
  opacity: 1;
  transform: translateX(-50%);
  transition: 1s;
  color: white;
}

.dept-single-card:hover .dept-content {
  bottom: 5%;
}
.dept-content h2 {
  font-size: 1.2rem;
}
.dept-content p {
  font-size: small;
}

.radiology-container{
  display: flex;
  width: 80%;
  flex-direction: column;
  margin: 4rem auto;
  gap: 2rem;
}

.radiology-images, .radiology-content{
  flex: 1;
  position: relative;
  min-height: 20rem;
  
}

.radiology-image{
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
  object-position: center;
  display: none;
}

.radiology-content{
  display: flex;
  gap: 1rem;
  flex-direction: column;
  justify-content: space-evenly;
}




.under-radiology{
  height: 20rem;
}

.radiology-text{
  border: 1px solid var(--primary-color);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
 
}
.radiology-text:hover{
  background-color: var(--light-blue);
}
.radiology-text-active{
  background-color: var(--light-blue);
}

.radiology-text h2{
  color: var(--primary-color);
}
.radiology-text p{
  color: var(--dark-gray);
}

#services {
  width: 80%;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
#services > h2 {
  text-align: center;
  font-size: 2rem;
  position: relative;
  font-family: "DM Serif Display", serif;
}

#services > h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 20%;
  background-color: var(--primary-color);
}

#services > p {
  text-align: center;
  font-size: smaller;
}
.services-card-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: column;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 1rem;
  min-height: 14rem;
  text-align: center;
  background-color: var(--light-blue);
}
.service-card h2 {
  color: var(--primary-color);
}
.service-card img {
  filter: invert(16%) sepia(100%) saturate(3690%) hue-rotate(227deg) brightness(93%) contrast(83%);
}

/* testimony */
.testimony-header {
  text-align: center;
  width: fit-content;
  position: relative;
  margin: 2rem auto;
  font-size: 2rem;
  font-family: "DM Serif Display", serif;
}
.testimony-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  height: 4px;
  width: 40%;
  background-color: var(--primary-color);
}
.swiper {
  width: 80%;
  min-height: 300px;
  position: relative;
}
.swiper-wrapper {
  min-height: 80%;
}
.slide-item-container {
  background-color: var(--light-blue);
  min-height: 80%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0.5rem;
  border-radius: 8px;
  position: relative;
  padding: 1rem 1.5rem;
}

.slide-item-container h2 {
  color: var(--primary-color);
}
.slide-item-container p {
  line-height: 1.5rem;
}
.fa-quote-left {
  font-size: 2rem;
  color: var(--primary-color);
  position: absolute;
  left: 1rem;
  top: -1rem;
}
.fa-quote-right {
  font-size: 2rem;
  color: var(--primary-color);
  position: absolute;
  right: 1rem;
  bottom: -1rem;
}

.slide-button-container {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  justify-content: space-between;
  width: 100%;
  z-index: 100;
}
.prev,
.next {
  height: 2rem;
  width: 2rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.slide-item-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* contact us */

.contact-section {
  padding: 1rem 0.5rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
}

.flex-container {
  display: flex;
  flex-direction: row;
  gap: 4rem;
}

.form-container {
  width: 100%;
  padding: 20px;
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
  justify-content: space-between;
}

.title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3498db;
}

.subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: #3498db;
}

.label {
  font-size: 0.875rem;
  color: #3498db;
  font-family: "Inter", sans-serif;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  padding: 10px;
  margin-top: 4px;
  resize: none;
}

.button {
  width: 100%;
  border: none;
  border-radius: 4px;
  background-color: #3498db;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #2980b9;
}

.map-container {
  position: relative;
  width: 100%;
  min-height: 450px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  position: absolute;
  left: 0;
  top: 0;
}

/* footer */

.footer {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  background-image: url("/images/footer-bg.webp");
  background-position: top;
  padding: 2.5rem 1rem;
  margin-top: 4rem;
  font-family: "Inter", sans-serif;
  position: relative;
}

.footer-item {
  grid-column: span 1;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-site-logo {
  display: flex;
  align-items: center;
  z-index: 100;
}
.footer-title {
  font-size: 1.125rem;
  color: #ffffff;
  font-family: "Rubik Bubbles", system-ui;
}

.footer-highlight {
  color: #3498db;
}

.footer-text {
  font-size: 0.875rem;
  color: #71717a;
}

.footer-subtitle {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
}

.footer-links,
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: #a3a3a9;
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

.footer-link:hover {
  color: #3498db;
}

.footer-icon,
.fa-envelope,
.fa-phone,
.fa-location-dot {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  color: #3498db;
}

.footer-copy {
  position: absolute;
  bottom: 0.5rem;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  color: #d5d5eb;
  font-size: 0.75rem;
  text-align: center;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

@media only screen and (min-width: 769px) {
  .top-header,
  .top-header-location,
  .top-header-phone {
    padding: 0.5rem 3rem;
  }
  nav {
    padding: 0.5rem 4rem;
  }
  .menu {
    display: none;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: relative;
    margin-left: auto;
    justify-content: flex-end;
    top: 0;
    left: 0;
  }

  .hero {
    height: 40rem;
  }

  .hero-content h2 {
    font-size: large;
  }
  .hero-content {
    width: 60%;
    padding: 0 3rem;
  }
  .write-up {
    font-size: 4rem;
  }

  .about-us-container,
  .why-choose-us {
    flex-direction: row;
    padding: 1rem 3rem;
  }
  .departments > h2,
  .testimony-header {
    font-size: 2rem;
  }

  .dept-single-card {
    flex-basis: 40%;
  }

  .radiology-container {
    flex-direction: row;
    width: 60%,
  }
  .services-card-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .swiper {
    width: 60%;
  }
  .slide-item-container {
    margin: 1rem 4rem;
  }
  .slide-button-container {
    display: flex;
  }
  .contact-section {
    flex-direction: row;
  }
  .form-container {
    padding: 0 4rem;
  }
  .footer {
    padding: 2.5rem 3rem;
    grid-template-columns: repeat(3, 1fr);
  }
}
