.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-8 {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.section-title {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid #16836f;
}
.section-title-box {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid #f59e0b;
  border-radius: 4px;
}

.hero-bg {
  position: relative;
  overflow: hidden;
  background-image: url("/weekly/assets/images/backgrounds/sri-weekly-hero-background.png");
  background-size: cover;
  background-position: center;
}
.hero-bg > * {
  position: relative;
  z-index: 1;
}

/* Latest Section Background */
.latest-bg {
  position: relative;
  overflow: hidden;
  background-image: url("/weekly/assets/images/backgrounds/sri-weekly-latest-background.png");
  background-size: cover;
  background-position: center;
}

/* Swiper Custom - Spotlight (가운데 부각) */
@media (max-width: 639px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}
.spotlight-swiper {
  padding: 50px 0 70px;
}
.spotlight-swiper .swiper-slide {
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.25;
  transform: scale(0.78);
  filter: brightness(0.7) blur(1px);
}
.spotlight-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.12);
  filter: brightness(1) blur(0);
  z-index: 3;
}
.spotlight-swiper .swiper-slide-active article {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}
.spotlight-swiper .swiper-slide-prev,
.spotlight-swiper .swiper-slide-next {
  opacity: 0.55;
  transform: scale(0.88);
  filter: brightness(0.85) blur(0.5px);
}
.spotlight-swiper .swiper-slide-prev article,
.spotlight-swiper .swiper-slide-next article {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.spotlight-swiper .swiper-button-next,
.spotlight-swiper .swiper-button-prev {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #245b35;
}
.spotlight-swiper .swiper-button-next::after,
.spotlight-swiper .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}
.spotlight-swiper .swiper-pagination-bullet-active {
  background: #16836f;
}

/* Swiper Custom - Recommended */
.recommended-swiper .swiper-slide {
  transition: all 0.4s ease;
}
.recommended-swiper .swiper-button-next,
.recommended-swiper .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #245b35;
}
.recommended-swiper .swiper-button-next::after,
.recommended-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}
.recommended-swiper .swiper-pagination-bullet-active {
  background: #16836f;
}

/* 추천 발간물 카드 높이 일관성 */
.recommended-swiper .article-card {
  display: flex;
  flex-direction: column;
}
.recommended-swiper .article-card .p-5 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.recommended-swiper .article-card h3 {
  min-height: 86px;
  max-height: 86px;
  overflow: hidden;
}
.recommended-swiper .article-card p {
  min-height: 48px;
  max-height: 48px;
  overflow: hidden;
}

/* Related Articles in Modal */
.related-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}
.related-list h3 {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}
.related-item {
  display: grid;
  gap: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  background: #f9fafb;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.related-item:hover {
  background: #f3f4f6;
}
.related-item strong {
  color: #1f2937;
  font-size: 15px;
}
.related-item span {
  color: #0f5f50;
  font-size: 13px;
  font-weight: 700;
}

/* Archive Tabs (Capsule Joined) */
.tab-pill {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-pill:hover {
  color: #16836f;
}
.tab-pill.active {
  background: #16836f;
  color: white;
}

/* Tab Panel Animation */
.tab-panel {
  animation: tabFadeIn 0.25s ease;
}
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Volume Selector */
.volume-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  outline: none;
}
.volume-select:focus {
  border-color: #16836f;
}

/* 260709 수정사항 반영 */
.latest-card-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  margin-top: 48px;
}

.latest-card-title h3 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.recommended-topic-label {
  margin-top: 12px;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 24px;
  line-height: 1.2;
}

.recommended-card-title {
  font-size: 20px;
}

@media (max-width: 639px) {
  .latest-card-title {
    top: 74px;
    right: 18px;
    bottom: auto;
    left: 18px;
    padding: 14px 0 0;
    display: block;
    margin-top: 0;
  }

  .latest-card-title h3 {
    font-size: 25px;
    text-align: center;
  }

  .recommended-topic-label {
    font-size: 30px;
    padding: 20px 12px;
  }

  .recommended-card-title {
    font-size: 23px;
  }
}

#topicFilters .topic-btn.bg-sri-green,
#topicFilters .topic-btn.bg-sri-green:hover,
#topicFilters .topic-btn.bg-sri-green:focus,
#topicFilters .topic-btn.bg-sri-green:active {
  color: #fff !important;
}

/* 추천 검색 키워드 */
.keyword-chip {
  font-size: 13px;
  font-weight: 500;
  color: #16836f;
  text-decoration: none;
  transition: color 0.2s;
}
.keyword-chip:hover {
  color: #0f5f50;
  text-decoration: underline;
}
