@charset "UTF-8";
:root {
  --nav-height: 80px;
}

.hero-swiper {
  height: calc(100vh - var(--nav-height));
  position: relative;
  width: 100%;
}
.hero-swiper .swiper-slide.hero-slide {
  background-size: cover;
  background-position: 56%;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}
.hero-swiper .swiper-slide.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.hero-swiper .hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
}
.hero-swiper .hero-content .slogan {
  position: relative;
  z-index: 11;
}

@media (min-width: 768px) and (max-width: 1439px), (min-width: 1440px) {
  .hero-swiper {
    height: 70vh;
  }
}
.hero {
  background-image: url(../img/hero.jpg);
  background-size: cover;
  position: relative;
  height: calc(100vh - var(--nav-height));
  background-position: 56%;
  display: flex;
  align-items: center;
  transition: background-image 0.5s ease-in-out;
}

@media (min-width: 768px) and (max-width: 1024px), (min-width: 1440px) {
  .hero {
    height: 70vh;
  }
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero .slogan {
  position: absolute;
  z-index: 3;
}

.hero.content {
  height: min(30vh, 360px);
}

/* 淡入動畫定義 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.home-news-parent {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(12, 1fr);
  -moz-column-gap: 0;
       column-gap: 0;
  row-gap: 2rem;
  margin-left: auto;
  margin-right: auto;
  width: clamp(300px, 96%, 900px);
}

.home-news-parent > div:nth-child(1) {
  grid-column: 1/8;
  grid-row: 1;
}

.home-news-parent > div:nth-child(2) {
  grid-column: 8/13;
  grid-row: 1;
}

.home-news-parent > div:nth-child(3) {
  grid-column: 2/7;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-news-parent > div:nth-child(4) {
  grid-column: 7/13;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
}

@media (max-width: 767px) {
  .home-news-parent {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    row-gap: 1.5rem;
    width: clamp(280px, 95%, 500px);
  }
  .home-news-parent > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .home-news-parent > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .home-news-parent > div:nth-child(3) {
    grid-column: 1;
    width: 80%;
    margin: 0 auto;
    grid-row: 3;
  }
  .home-news-parent > div:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
    padding-left: 0;
    padding: 1rem;
  }
}
.home-news-ul {
  list-style: none;
  padding-left: 0;
}

.doctor-card {
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
}

.doctor-image {
  width: 75%;
  margin: 0 auto 2rem;
  overflow: hidden;
  border-radius: 50%;
  position: relative;
}
.doctor-image::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}

.doctor-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: top center;
     object-position: top center;
  border: 3px solid #f8f9fa;
  border-radius: 50%;
}

.doctor-name {
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.doctorSwiper {
  padding: 20px 0 50px 0;
}

.swiper-pagination-bullet-active {
  background-color: #007bff;
}

.swiper-button-next,
.swiper-button-prev {
  color: #007bff;
}/*# sourceMappingURL=home.css.map */