@charset "UTF-8";
/* 淡入動畫定義 */
@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;
}

.news-block {
  position: relative;
  margin-top: -70px;
  z-index: 9;
}

.home-news {
  background-color: var(--site-brand-primary);
  padding: 25px;
}
.home-news.bg-other {
  background-color: var(--site-brand-secondary);
  color: #fff;
}
.home-news.bg-other ul li a {
  color: #fff;
}
.home-news.bg-other ul li a:hover {
  color: #ddd;
}
.home-news ul {
  list-style-type: none;
  margin-bottom: 0;
  padding-left: 0;
}
.home-news ul li {
  text-align: left;
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
}
.home-news ul li + li {
  border-top: 1px solid #dddddd;
}
.home-news ul li a {
  text-decoration: none;
}
.home-news ul li a:hover {
  color: #092a3f;
}

.home-des_list {
  background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
}
.home-des_list .tit {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1472ab;
}

@media screen and (max-width: 768px) {
  .news-block {
    margin-top: -10vh;
  }
  .home-news {
    box-shadow: none;
  }
}/*# sourceMappingURL=home.css.map */