/* Tag Detail Page Styles - Completely Independent */

/* Tag Hero Section */
.tag-hero {
  padding: 80px 0 40px;
  background: #fff;
  position: relative;
}

.tag-hero .container {
  position: relative;
}

/* Tag title with decorative line and arrow matching reference */
.tag-title {
  font-size: 72px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin: 0 0 30px 0;
  color: #000;
  text-align: left;
  position: relative;
  padding-bottom: 20px;
}

.tag-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #000;
}

.tag-title::before {
  position: absolute;
  right: 0;
  bottom: -10px;
  font-size: 32px;
  font-weight: 900;
  color: #000;
}

/* Tag Articles Section */
.tag-articles-section {
  padding: 60px 0;
  background: #fff;
}

.tag-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 60px;
}

/* Tag Article Row */
.tag-article-row {
  /* Reduced padding from 50px to 30px to decrease space between articles */
  padding: 30px 0;
}

.tag-article-link {
  display: flex;
  align-items: center;
  gap: 50px;
  text-decoration: none;
  color: inherit;
}

/* Left: Image */
.tag-article-image {
  flex-shrink: 0;
  width: 335px;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

/* The picture tag wraps every cover in a <picture> element. Without
 * explicit width/height on the wrapper, the img's `height: 100%`
 * resolves against `height: auto` on the picture and collapses the
 * image to its natural height instead of filling the fixed 250px slot.
 * Match the wrapper to the slot, then let the img cover-fill inside. */
.tag-article-image picture,
.tag-article-image > picture {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
}

.tag-article-image img,
.tag-article-image picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
  margin: 0;
  padding: 0;
}

/* Center: Content */
.tag-article-content {
  flex: 1;
  padding-right: 50px;
  /* Added vertical centering for title and subtitle */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.tag-title-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag-article-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  color: #000;
  text-transform: none;
  letter-spacing: -0.5px;
  text-align: center;
}

/* Pink excerpt text matching reference */
.tag-article-excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0 auto;
  font-weight: 400;
  text-align: center;
}

/* Right: Metadata with vertical divider */
.tag-article-meta {
  flex-shrink: 0;
  padding-left: 35px;
  border-left: 2px solid #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag-meta-category {
  /* color changed to accent color */
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--accent-color); /* changed from #000 */
  line-height: 1.3;
}

.tag-meta-date {
  /* Increased font size from 13px to 15px and made bold */
  font-size: 15px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

.tag-meta-author {
  font-size: 13px;
  font-weight: 900;
  color: #000;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Tag Pagination */
.tag-pagination {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #000;
}

.tag-pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-pagination li {
  font-weight: 700;
  font-size: 16px;
}

.tag-pagination a {
  color: #000;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #000;
  transition: all 0.2s ease;
}

.tag-pagination a:hover {
  background: #ff4cfa;
  border-color: #ff4cfa;
  color: #fff;
}

.tag-pagination .disabled {
  color: #ccc;
  padding: 8px 16px;
  border: 2px solid #ccc;
}

.tag-pagination .page-info {
  font-weight: 600;
  color: #666;
}

/* No Articles Message */
.tag-no-articles {
  text-align: center;
  font-size: 18px;
  color: #666;
  padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .tag-article-image {
    width: 280px;
    height: 210px;
  }

  .tag-article-meta {
    width: 180px;
  }

  .tag-article-title {
    font-size: 28px;
  }
}

@media (max-width: 968px) {
  .tag-article-link {
    flex-direction: column;
    gap: 24px;
  }

  .tag-article-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .tag-article-content {
    padding-right: 0;
  }

  .tag-article-meta {
    width: 100%;
    padding-left: 0;
    border-left: none;
    border-top: 2px solid #000;
    padding-top: 20px;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .tag-title {
    font-size: 56px;
  }
}

@media (max-width: 480px) {
  .tag-title {
    font-size: 36px;
  }

  .tag-article-title {
    font-size: 22px;
  }

  .tag-article-row {
    padding: 30px 0;
  }

  .tag-article-meta {
    align-items: flex-start;
    gap: 6px;
  }
}
