/* css/sub.css */



.subpage-hero-banner {
  background-image: url('../images/sub/sub_title_1_1.jpg');
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 100%;
}

.subpage-youth-banner {
  background-image: url('../images/sub/sub_title_2_1.jpg');
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 100%;
}

.subpage-newsroom-banner {
  background-image: url('../images/sub/sub_title_2_2.jpg');
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 100%;
}


.subpage-content-wrapper {
  padding: 0 5%;
}

.subpage-content {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  margin: -30px auto 50px auto; 
  position: relative;
  z-index: 1;
  max-width: 1600px; 
  min-height: 500px; 
}


.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

.category-tabs .tab-link,
.subcategory-nav .sub-tab-link {
  background-color: #f0f0f0;
  color: #555;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1em;
}

.category-tabs .tab-link[data-tab="newlyweds"].active,
#newlyweds .subcategory-nav .sub-tab-link.active {
  background-color: #fa6e6f;
}

.category-tabs .tab-link:hover,
.subcategory-nav .sub-tab-link:hover {
  background-color: #ddd;
}

.category-tabs .tab-link.active,
.subcategory-nav .sub-tab-link.active {
  background-color: #437af0; 
  color: #fff;
}


.subcategory-nav {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ddd;
}

.subcategory-nav .sub-tab-link {
  padding: 10px 20px;
  font-size: 1em;
}

.tab-content,
.sub-tab-content {
  display: none;
}

.tab-content.active,
.sub-tab-content.active {
  display: grid; 
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;
}

.content-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  background-color: #fff;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.content-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10; 
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.content-card .card-title {
  padding: 15px;
  font-size: 0.95em;
  font-weight: 500;
  text-align: left;
  line-height: 1.4;
  flex-grow: 1; 
  display: flex;
  align-items: center; 
  overflow-wrap: break-word;
  word-wrap: break-word; 
  min-width: 0;
}

@media screen and (max-width: 1024px) {
  .subpage-content {
    padding: 20px;
  }
  .content-grid {
    grid-template-columns: repeat(3, 1fr); 
  }
  .category-tabs .tab-link,
  .subcategory-nav .sub-tab-link {
    padding: 10px 20px;
    font-size: 1em;
  }
}

@media screen and (max-width: 768px) {
  .subpage-content-wrapper {
    padding: 0 3%;
  }
  .subpage-content {
    margin-top: -20px;
    padding: 15px;
  }
  .content-grid {
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
  }
  .category-tabs {
    gap: 5px;
    flex-wrap: wrap; 
  }
  .category-tabs .tab-link,
  .subcategory-nav .sub-tab-link {
    font-size: 0.9em;
    padding: 8px 15px;
  }
  .subcategory-nav {
    gap: 5px;
    flex-wrap: wrap;
  }
  .content-card .card-title {
    font-size: 0.9em;
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {
  .content-grid {
    grid-template-columns: 1fr; 
  }
}






    .news-link-list {
      list-style: none;
      padding: 0;
      margin: 20px auto;
      max-width: 960px;
      width: 100%;
      border-top: 2px solid #cccccc;
      border-bottom: 2px solid #cccccc;
    }

    .news-link-item {
      border-top: 1px solid #eeeeee; 
    }

    .news-link-item:first-child {
      border-top: none;
    }
    
    .news-link-anchor {
      display: flex; 
      align-items: center; 
      gap: 15px; 
      padding: 12px 20px;
      text-decoration: none;
      color: #333;
      transition: background-color 0.3s ease;
    }

    .news-link-anchor:hover {
      background-color: #f9f9f9;
    }

    .news-item-number {
      flex-shrink: 0; 
      font-size: 1.1em;
      color: #555;
      font-weight: 500;
      width: 30px;
      text-align: center;
    }

    .news-item-title {
      flex-grow: 1; 
      font-size: 1.05em;
      line-height: 1.5;
      text-align: left;
    }

    .news-item-icon {
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      opacity: 0.7;
    }

    @media screen and (max-width: 768px) {
      .news-link-anchor {
        padding: 10px 15px;
        gap: 10px;
      }
      .news-item-title {
        font-size: 1em;
      }
      .news-item-number {
        font-size: 1em;
      }
    }
    
    
    
/* ===== ¼­ºê4 ===== */
.subpage-4-banner {
  background-image: url('../images/sub/sub_title_4.jpg');
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 100%;
}

.sub4 {
  background-color: #f1e6df;
  width: 100%;
}

.sub4-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sub4-inner img {
  max-width: 100%;
  height: auto;
  display: block;
}