
/*--------------------------------------------------------------
# cover
--------------------------------------------------------------*/
.cover {
  display: flex;
  min-height: 500px;
  height: 100vh;
}

.cover-image {
  width: 60%;
  background-color: #ddd;
  overflow: hidden;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding-top: 64px;
}

.cover-text {
  width: 40%;
  max-width: 600px;
  padding: 80px 40px;
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cover-text h1 img{
  width: 90%;
  margin-bottom: 40px;
}
.cover-text h2{
  margin-bottom: 40px;
  margin-right: 6%;
  text-align: right;
}
.cover-text p{
  margin-bottom: 20px;
}
.interviews-first {
  margin: 60px auto;
  max-width: 1440px;
}

@media (max-width: 767.98px) {
  .cover {
    flex-direction: column;
  }
  .cover-image, .cover-text {
    width: 100%;
    max-width: none;
  }
  .cover-image{
    height: 60%;
  }
  .cover-image img{
    padding-top: 56px;
  }
  .cover-text{
    height: auto;
    padding: 8px 20px;
    margin-top: 0;
    justify-content: start;
  }
  .cover-text h1 img{
    margin-bottom: 16px;
    margin-top: 12px;
  }
  .cover-text h2{
  margin-bottom: 24px;
}
  .cover-text p{
    margin-bottom: 8px;
  }
  .container {
    flex-direction: column;
  }
  .container, .container.reverse {
    flex-direction: column;
  }
  
  .interviews-first {
    margin: 20px 0;
  }
}

/* Grid Section */

.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr; 
  gap: 24px;
  margin: 20px;
}

.grid-item-container {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  align-items: stretch;
}
.grid-item {
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2; 
  width: 100%;
}
.grid-item img {
  width: 100%;
  height: 100%; 
  object-fit: cover;
  transition: transform 0.3s ease;
}
.grid-item:hover img {
  transform: scale(1.05);
}

.grid-text {
  padding: 16px 0;
  flex-grow: 1; 
  display: flex; 
  flex-direction: column;
}
.grid-text h3 {
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid-text h4{
  display: inline-block;
  width: auto;
  max-width: max-content;
  white-space: nowrap;
  padding: 4px 8px;
  margin-bottom: 4px;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}
.grid-text p {
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 4; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: auto; 
  font-size: 1.125rem;
}
.grid-item-container:nth-child(3n + 1) .grid-text h3 {
    -webkit-line-clamp: 1;
}
.grid-item-container:nth-child(3n + 1) .grid-text p {
    -webkit-line-clamp: 2;
}

@media (max-width: 991.98px) { 
    .grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
  .grid {
      grid-template-columns: 1fr;
      gap: 16px;
      margin: 20px 15px;
  }
  .grid-item-container:nth-child(1) .grid-item{
      aspect-ratio: 3/4; 
  }
  .grid-text {
    padding: 12px 0 16px 0;
  }
  .grid-item-container:first-child {
    grid-row: span 1;
  }
}

/* 影片 */
.video-container-1 {
  position: relative;
  padding-bottom: 100%;
  height: 0;
  overflow: hidden;
}
.video-container-1 iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.swiper{
  margin: 20px 0;
}
.swiper-button-next,
.swiper-button-prev,
.swiper-button-next:not(.swiper-button-disabled),
.swiper-button-prev:not(.swiper-button-disabled) {
  color: #ffffff; 
}
.swiper-pagination {
  position: relative;
  bottom: auto; 
  margin-top: 16px; 
  text-align: center;
  padding: 0;
}
.swiper-pagination-bullet {
  background: var(--gray-800); 
}

.swiper-pagination-bullet-active {
  background: var(--primary); 
  opacity: 1; 
}

/* 新聞 */
.news,.video{
  margin: 60px 0 40px 0;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px;
}

.news-item-container {
    display: block; 
    color: inherit; 
    transition: transform 0.3s ease; 
}
@media (max-width: 768px){
  .news,.video{
    margin: 20px auto;
  }
}
/* 圖片容器 */
.news-item-img {
    overflow: hidden;
}
.news-item-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover; 
    transition: transform 0.3s ease; 
}

.news-item-container:hover .news-item-img img {
    transform: scale(1.05);
}

.news-item-text {
    padding: 12px 0 0; 
}
.news-item-text h3 {
    margin-bottom: 0;
    color: var(--black);
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-outline-primary{
  background-color: #A37242;
  color: var(--white);
  border: 0px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 1.125rem;
  padding: 4px 24px;
}
.btn-outline-primary:hover {
    background-color: #7a4f25;
}

@media (max-width: 767.98px) { 
  .news-grid {
      grid-template-columns: 1fr; 
      gap: 20px;
      margin: 20px 12px; 
  }
  .news-item-text h3 {
      -webkit-line-clamp: 3;
  }
}