/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--dark-text-color);
}

.breadcrumbs a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs-sep {
  color: #bbb;
}

.breadcrumbs--light {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs--light a {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs--light a:hover {
  color: #fff;
}

.breadcrumbs--light .breadcrumbs-sep {
  color: rgba(255, 255, 255, 0.35);
}

/* ===== TOPIC HERO ===== */
.topic-hero {
  padding: 120px 0 40px;
  background: var(--ligth-bg-color);
}

.topic-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--main-bg-color);
  margin-bottom: 12px;
}

.topic-description {
  font-size: 18px;
  color: var(--dark-text-color);
  max-width: 680px;
  line-height: 1.6;
}

/* ===== SUBTOPICS GRID ===== */
.subtopics-grid {
  padding: 48px 0 64px;
}

.subtopics-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.subtopic-card {
  display: block;
  padding: 32px 28px;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: var(--dark-text-color);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.subtopic-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.subtopic-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--main-bg-color);
  margin-bottom: 8px;
  transition: color 0.25s;
}

.subtopic-card:hover h2 {
  color: var(--gold-color);
}

.subtopic-card p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.subtopic-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== ARTICLES GRID (subtopic page) ===== */
.articles-grid {
  padding: 48px 0 64px;
}

.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.no-articles {
  text-align: center;
  font-size: 18px;
  color: var(--dark-text-color);
  padding: 48px 0;
}

/* ================================================
   ARTICLE PAGE
   ================================================ */

/* --- Hero banner --- */
.art-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.art-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  z-index: 0;
}

.art-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.art-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 48px;
}

.art-hero #container {
  margin-inline: 0;
  margin-left: 5%;
}

.art-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--main-bg-color);
  background-color: var(--gold-color);
  border-radius: 50px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background-color 0.2s;
}

.art-tag:hover {
  background-color: #d4b200;
}

.art-hero-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  text-wrap: balance;
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.art-meta time,
.art-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.art-meta svg {
  opacity: 0.6;
}

.art-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

/* --- Body layout --- */
.art-body {
  padding: 48px 0 64px;
}

.art-layout {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

/* --- Content column --- */
.art-content {
  flex: 1;
  min-width: 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--dark-text-color);
}

.art-content > p:first-child {
  font-size: 19px;
  line-height: 1.7;
  color: var(--main-bg-color);
}

.art-content p {
  margin-bottom: 20px;
}

.art-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--main-bg-color);
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  line-height: 1.3;
}

.art-content h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--main-bg-color);
  margin: 32px 0 12px;
  line-height: 1.35;
}

.art-content ul,
.art-content ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.art-content li {
  list-style: disc;
  margin-bottom: 10px;
  padding-left: 4px;
  line-height: 1.7;
}

.art-content ol li {
  list-style: decimal;
}

.art-content strong {
  color: var(--main-bg-color);
  font-weight: 700;
}

.art-content a {
  color: var(--gold-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.art-content a:hover {
  color: #d4b200;
}

.art-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 28px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.art-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold-color);
  background: rgba(189, 160, 0, 0.06);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--main-bg-color);
}

.art-content blockquote p {
  margin-bottom: 0;
}

/* Info box для важных заметок */
.art-content .info-box {
  margin: 28px 0;
  padding: 20px 24px;
  background: #e8f4f4;
  border-radius: var(--border-radius);
  border-left: 4px solid #4aae9b;
}

.art-content .warning-box {
  margin: 28px 0;
  padding: 20px 24px;
  background: #fff3e0;
  border-radius: var(--border-radius);
  border-left: 4px solid #f5a623;
}

.art-content .info-box p,
.art-content .warning-box p {
  margin-bottom: 0;
}

/* Таблица в статье */
.art-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.art-content table th,
.art-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.art-content table th {
  font-weight: 700;
  color: var(--main-bg-color);
  background: rgba(0, 0, 0, 0.02);
}

.art-content table tr:hover td {
  background: rgba(189, 160, 0, 0.04);
}

/* --- Sidebar --- */
.art-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.art-sidebar-sticky {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.art-sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.art-sidebar-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--main-bg-color);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.art-sidebar-card ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.art-sidebar-card li a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--dark-text-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    color 0.2s,
    padding-left 0.2s;
  line-height: 1.4;
}

.art-sidebar-card li:last-child a {
  border-bottom: none;
}

.art-sidebar-card li a:hover {
  color: var(--gold-color);
  padding-left: 6px;
}

.art-sidebar-card li.active a {
  color: var(--gold-color);
  font-weight: 700;
  padding-left: 6px;
  border-left: 3px solid var(--gold-color);
  margin-left: -3px;
}

.art-sidebar-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-text-color);
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    color 0.2s,
    border-color 0.2s;
}

.art-sidebar-back:hover {
  color: var(--gold-color);
  border-color: var(--gold-color);
}

/* --- Related articles --- */
.art-related {
  padding: 48px 0 64px;
  background: #fff;
}

.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.art-related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--dark-text-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--ligth-bg-color);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.art-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.art-related-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.art-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.art-related-card:hover .art-related-img img {
  transform: scale(1.05);
}

.art-related-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.art-related-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-color);
}

.art-related-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--main-bg-color);
  transition: color 0.25s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-related-card:hover h3 {
  color: var(--gold-color);
}

.art-related-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark-text-color);
  margin-top: auto;
}

/* ================================================
   TOPIC PAGE
   ================================================ */

/* --- Hero --- */
.tp-hero {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.tp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  z-index: 0;
}

.tp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.tp-hero #container {
  margin-inline: 0;
  margin-left: 5%;
  margin-right: 5%;
  max-width: none;
}

.tp-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 48px;
}

.tp-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.6);
}

.tp-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.75);
}

.tp-hero .breadcrumbs a:hover {
  color: #fff;
}

.tp-hero .breadcrumbs .breadcrumbs-sep {
  color: rgba(255, 255, 255, 0.35);
}

.tp-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.tp-hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.tp-hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
}

/* --- Shared section title --- */
.tp-section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--main-bg-color);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

/* --- Subtopics grid --- */
.tp-subtopics {
  padding: 48px 0;
}

.tp-subtopics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.tp-subtopic-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: var(--dark-text-color);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.3s,
    transform 0.3s,
    border-color 0.3s;
}

.tp-subtopic-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: var(--gold-color);
}

.tp-subtopic-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tp-subtopic-top h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--main-bg-color);
  line-height: 1.3;
  transition: color 0.25s;
}

.tp-subtopic-card:hover h3 {
  color: var(--gold-color);
}

.tp-subtopic-arrow {
  flex-shrink: 0;
  color: var(--dark-text-color);
  opacity: 0.3;
  margin-top: 2px;
  transition:
    opacity 0.25s,
    transform 0.25s,
    color 0.25s;
}

.tp-subtopic-card:hover .tp-subtopic-arrow {
  opacity: 1;
  color: var(--gold-color);
  transform: translateX(4px);
}

.tp-subtopic-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dark-text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-subtopic-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.tp-subtopic-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tp-subtopic-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(189, 160, 0, 0.1);
  color: var(--gold-color);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Latest articles --- */
.tp-latest {
  padding: 0 0 48px;
}

.tp-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tp-latest-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--dark-text-color);
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}

.tp-latest-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.tp-latest-img {
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.tp-latest-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tp-latest-card:hover .tp-latest-img img {
  transform: scale(1.05);
}

.tp-latest-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 22px;
  flex: 1;
}

.tp-latest-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-color);
}

.tp-latest-body h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--main-bg-color);
  transition: color 0.25s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-latest-card:hover h3 {
  color: var(--gold-color);
}

.tp-latest-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark-text-color);
  margin-top: auto;
}

/* --- Other topics --- */
.tp-other {
  padding: 48px 0 64px;
  background: #fff;
}

.tp-other-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tp-other-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ligth-bg-color);
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.tp-other-card:hover {
  border-color: var(--gold-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.tp-other-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--main-bg-color);
  transition: color 0.2s;
}

.tp-other-card:hover .tp-other-name {
  color: var(--gold-color);
}

.tp-other-sub {
  font-size: 12px;
  color: var(--dark-text-color);
}

/* ================================================
   SUBTOPIC PAGE
   ================================================ */

/* --- Hero --- */
.sub-hero {
  padding: 120px 0 48px !important;
  background: var(--ligth-bg-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sub-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.sub-hero-text h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--main-bg-color);
  margin-bottom: 12px;
}

.sub-hero-text p {
  font-size: 18px;
  color: var(--dark-text-color);
  line-height: 1.6;
}

.sub-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 16px 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sub-hero-stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-color);
  line-height: 1;
}

.sub-hero-stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-text-color);
}

/* --- Empty state --- */
.sub-empty {
  padding: 64px 0 80px;
}

.sub-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
  color: var(--dark-text-color);
}

.sub-empty-card svg {
  color: var(--gold-color);
}

.sub-empty-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--main-bg-color);
}

.sub-empty-card p {
  font-size: 16px;
  line-height: 1.6;
}

.sub-empty-back {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--gold-color);
  border-radius: 50px;
  text-decoration: none;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.sub-empty-back:hover {
  background-color: #d4b200;
  transform: translateY(-2px);
}

/* --- Featured article --- */
.sub-featured {
  padding: 48px 0;
}

.sub-featured-card {
  display: flex;
  text-decoration: none;
  color: var(--dark-text-color);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.35s,
    transform 0.35s;
}

.sub-featured-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.sub-featured-img {
  width: 50%;
  min-height: 340px;
  overflow: hidden;
  flex-shrink: 0;
}

.sub-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sub-featured-card:hover .sub-featured-img img {
  transform: scale(1.04);
}

.sub-featured-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 40px;
  flex: 1;
  justify-content: center;
}

.sub-featured-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-color);
}

.sub-featured-body h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--main-bg-color);
  transition: color 0.25s;
}

.sub-featured-card:hover h2 {
  color: var(--gold-color);
}

.sub-featured-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text-color);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--dark-text-color);
}

.sub-featured-meta time,
.sub-featured-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sub-featured-meta svg {
  opacity: 0.5;
}

.sub-featured-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dark-text-color);
  opacity: 0.4;
}

.sub-featured-read {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-color);
  margin-top: 4px;
  transition: letter-spacing 0.2s;
}

.sub-featured-card:hover .sub-featured-read {
  letter-spacing: 0.04em;
}

/* --- Articles grid --- */
.sub-articles {
  padding: 0 0 64px;
}

.sub-articles-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--main-bg-color);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.sub-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.sub-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--dark-text-color);
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}

.sub-article-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.sub-article-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.sub-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sub-article-card:hover .sub-article-img img {
  transform: scale(1.05);
}

.sub-article-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
  flex: 1;
}

.sub-article-body h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--main-bg-color);
  transition: color 0.25s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-article-card:hover h3 {
  color: var(--gold-color);
}

.sub-article-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark-text-color);
  margin-top: auto;
  padding-top: 8px;
}

/* --- Other subtopics --- */
.sub-other {
  padding: 48px 0 64px;
  background: #fff;
}

.sub-other-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--main-bg-color);
  margin-bottom: 24px;
}

.sub-other-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.sub-other-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  text-decoration: none;
  background: var(--ligth-bg-color);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.sub-other-item:hover {
  border-color: var(--gold-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.sub-other-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--main-bg-color);
  flex: 1;
}

.sub-other-item:hover .sub-other-title {
  color: var(--gold-color);
}

.sub-other-count {
  font-size: 12px;
  color: var(--dark-text-color);
  white-space: nowrap;
}

.sub-other-item svg {
  color: var(--dark-text-color);
  flex-shrink: 0;
  opacity: 0.4;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.sub-other-item:hover svg {
  opacity: 1;
  color: var(--gold-color);
  transform: translateX(3px);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1100px) {
  .art-sidebar {
    display: none;
  }

  .art-layout {
    gap: 0;
  }

  .art-content {
    max-width: 100%;
  }
}

@media (max-width: 960px) {
  .sub-featured-card {
    flex-direction: column;
  }

  .sub-featured-img {
    width: 100%;
    min-height: 260px;
    max-height: 300px;
  }

  .sub-featured-body {
    padding: 28px 28px;
  }

  .sub-featured-body h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .tp-hero #container {
    margin-left: 0;
  }
  /* Topic page */
  .tp-hero {
    min-height: 370px;
  }

  .tp-hero-inner {
    padding-top: 80px;
    padding-bottom: 32px;
  }

  .tp-hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .tp-hero-text h1 {
    font-size: 28px;
  }

  .tp-hero-text p {
    font-size: 16px;
  }

  .tp-hero-stats {
    gap: 16px;
    padding: 14px 24px;
  }

  .tp-hero-stat-num {
    font-size: 24px;
  }

  .tp-subtopics-grid {
    grid-template-columns: 1fr;
  }

  .tp-latest-grid {
    grid-template-columns: 1fr;
  }

  .tp-latest-card {
    flex-direction: row;
  }

  .tp-latest-img {
    width: 130px;
    height: auto;
    min-height: 120px;
    flex-shrink: 0;
  }

  .tp-latest-body {
    padding: 14px 16px;
  }

  .tp-latest-body h3 {
    font-size: 15px;
  }

  .tp-other-grid {
    flex-direction: column;
  }

  .tp-other-card {
    border-radius: var(--border-radius);
  }

  .topic-hero {
    padding: 100px 0 32px;
  }

  .topic-hero h1 {
    font-size: 28px;
  }

  .topic-description {
    font-size: 16px;
  }

  .subtopics-list,
  .articles-list {
    grid-template-columns: 1fr;
  }

  /* Subtopic hero */
  .sub-hero {
    padding: 100px 0 32px;
  }

  .sub-hero-text h1 {
    font-size: 28px;
  }

  .sub-hero-text p {
    font-size: 16px;
  }

  .sub-hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .sub-hero-stat {
    flex-direction: row;
    gap: 8px;
    padding: 10px 20px;
  }

  .sub-hero-stat-number {
    font-size: 24px;
  }

  /* Subtopic featured */
  .sub-featured-body {
    padding: 24px 22px;
  }

  .sub-featured-body h2 {
    font-size: 22px;
  }

  .sub-featured-desc {
    font-size: 15px;
  }

  /* Subtopic grid */
  .sub-articles-grid {
    grid-template-columns: 1fr;
  }

  .sub-article-card {
    flex-direction: row;
    min-height: 140px;
  }

  .sub-article-img {
    width: 140px;
    min-height: 100%;
    flex-shrink: 0;
  }

  .sub-article-body {
    padding: 16px 18px;
  }

  .sub-article-body h3 {
    font-size: 16px;
    -webkit-line-clamp: 3;
    min-height: calc(3 * 1.35em);
  }

  .sub-article-desc {
    display: none;
  }

  .sub-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  /* Other subtopics */
  .sub-other-list {
    grid-template-columns: 1fr;
  }

  /* Article hero */
  .art-hero {
    min-height: 380px;
  }

  .art-hero-inner {
    padding-top: 80px;
    padding-bottom: 32px;
  }

  .art-hero-content h1 {
    font-size: 28px;
  }

  .art-meta {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
  }

  /* Article body */
  .art-body {
    padding: 32px 0 48px;
  }

  .art-content {
    font-size: 16px;
  }

  .art-content > p:first-child {
    font-size: 17px;
  }

  .art-content h2 {
    font-size: 22px;
    margin: 32px 0 12px;
  }

  .art-content h3 {
    font-size: 18px;
    margin: 24px 0 10px;
  }

  /* Related */
  .art-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .art-related-card {
    flex-direction: row;
  }

  .art-related-img {
    width: 140px;
    height: auto;
    min-height: 120px;
    flex-shrink: 0;
  }

  .art-related-body {
    padding: 14px 16px;
  }

  .art-related-body h3 {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .art-hero {
    min-height: 380px;
  }

  .art-hero-content h1 {
    font-size: 24px;
  }

  .breadcrumbs {
    display: none;
  }

  .art-tag {
    display: none;
  }

  .art-content h2 {
    font-size: 20px;
  }

  .art-content blockquote {
    padding: 16px 18px;
    margin: 20px 0;
  }

  .art-content .info-box,
  .art-content .warning-box {
    padding: 16px 18px;
    margin: 20px 0;
  }

  .art-content table {
    font-size: 13px;
  }

  .art-content table th,
  .art-content table td {
    padding: 8px 10px;
    white-space: nowrap;
  }
}
