/* ============================================================
   Astra Child - Professional Blog / Content Hub
   Clean layout, subtle orange accents, strong hierarchy.
   ============================================================ */

/* ---------- Reset & Base ---------- */
.content-hub {
  background: #ffffff;
  color: #1e293b;
  padding-bottom: 72px;
}

.hub-shell {
  margin: auto;
  width: min(1180px, calc(100% - 40px));
}

/* ---------- Hero ---------- */
.hub-hero {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 72px 0 64px;
  position: relative;
}

.hub-hero::after {
  content: none;
}

.hub-kicker {
  color: #c2410c;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hub-hero .hub-kicker {
  color: #9a3412;
}

.hub-hero h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 680px;
  color: #0f172a;
}

.hub-hero p {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.hub-stats {
  display: flex;
  gap: 0;
  margin-top: 28px;
}

.hub-stats div {
  border-left: 1px solid #e2e8f0;
  min-width: 120px;
  padding: 2px 22px;
}

.hub-stats div:first-child {
  border: 0;
  padding-left: 0;
}

.hub-stats strong {
  color: #c2410c;
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hub-stats span {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Layout ---------- */
.hub-layout {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) 280px;
  padding-top: 52px;
}

.hub-section-title {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.hub-section-title h2 {
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}

.hub-result-count {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Article Grid ---------- */
.article-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.article-card-link {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
}

.article-card-art {
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  display: block;
  overflow: hidden;
  position: relative;
}

.article-card-art img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-art img {
  transform: scale(1.04);
}

.article-card-art-placeholder {
  align-items: center;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.article-card-art-placeholder span {
  color: #c2410c;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0.9;
}

.article-card:nth-child(3n+2) .article-card-art-placeholder {
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.article-card:nth-child(3n) .article-card-art-placeholder {
  background: linear-gradient(135deg, #ffedd5, #fdba74);
}

.article-card-content {
  padding: 18px 20px 20px;
}

.article-label {
  color: #c2410c;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-card h3 {
  color: #0f172a;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 8px;
}

.article-card p {
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}

.article-more {
  color: #c2410c;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  transition: gap 0.2s ease;
}

.article-more b {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* ---------- Editorial article list ---------- */
.article-list {
  border-top: 1px solid #cbd5e1;
}

.article-row {
  align-items: center;
  border-bottom: 1px solid #cbd5e1;
  display: grid;
  gap: 20px;
  grid-template-columns: 38px 190px minmax(0, 1fr);
  padding: 26px 0;
}

.article-row-index {
  align-self: start;
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.article-row-art {
  background: #f1f5f9;
  display: block;
  height: 126px;
  overflow: hidden;
}

.article-row-art img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  width: 100%;
}

.article-row-art:hover img {
  transform: scale(1.04);
}

.article-row-art-placeholder {
  align-items: center;
  background: #102a43;
  color: #f4a261;
  display: flex;
  font-size: 32px;
  font-weight: 800;
  height: 100%;
  justify-content: center;
}

.article-row-content {
  min-width: 0;
}

.article-row-content h3 {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.article-row-content p {
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.article-row .article-more {
  text-decoration: none;
}

.article-row .article-more:hover {
  color: #9a3412;
}

.hub-pagination {
  border-top: 1px solid #cbd5e1;
  margin-top: 36px;
  padding-top: 24px;
}

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

.hub-pagination a,
.hub-pagination .current {
  align-items: center;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 10px;
  text-decoration: none;
}

.hub-pagination .current,
.hub-pagination a:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

@media (max-width: 700px) {
  .article-row {
    align-items: start;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .article-row-art {
    grid-column: 2;
    grid-row: 1;
    height: 180px;
  }

  .article-row-content {
    grid-column: 2;
    grid-row: 2;
  }

  .article-row-index {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}

.article-card:hover .article-more {
  gap: 10px;
}

.article-card:hover .article-more b {
  transform: translateX(2px);
}

/* ---------- Sidebar ---------- */
.hub-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card:last-child {
  margin-bottom: 0;
}

.sidebar-card h2 {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-categories li {
  margin-bottom: 4px;
}

.sidebar-categories a {
  color: #334155;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-categories a:hover {
  background: #fff7ed;
  color: #c2410c;
}

.sidebar-categories b {
  background: #fff7ed;
  border-radius: 20px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
}

.sidebar-summary {
  background: #0f172a;
  border-radius: 10px;
  color: #fff;
  padding: 22px;
  text-align: center;
}

.sidebar-summary strong {
  color: #fb923c;
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.sidebar-summary span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
}

.sidebar-icon {
  background: rgba(251, 146, 60, 0.12);
  border-radius: 50%;
  color: #fb923c;
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  height: 40px;
  justify-content: center;
  margin-bottom: 12px;
  width: 40px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item summary {
  color: #0f172a;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 16px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  background: #fff7ed;
  border-radius: 50%;
  color: #c2410c;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.faq-answer {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  padding: 0 16px 16px 48px;
}

.faq-answer .iq-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 12px;
  padding: 14px;
}

/* ---------- Pagination ---------- */
.hub-pagination {
  margin-top: 44px;
  text-align: center;
}

.hub-pagination .page-numbers {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 0 3px 8px;
  min-width: 40px;
  justify-content: center;
}

.hub-pagination .page-numbers:hover {
  border-color: #c2410c;
  color: #c2410c;
}

.hub-pagination .current {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
  font-weight: 700;
}

.hub-pagination .prev,
.hub-pagination .next {
  padding: 9px 14px;
  font-weight: 600;
}

.hub-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  padding: 48px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hub-hero {
    padding: 48px 0 40px;
  }

  .hub-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hub-sidebar {
    position: static;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .hub-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hub-stats div {
    border-left: 0;
    border-top: 1px solid #e2e8f0;
    min-width: auto;
    padding: 10px 0 0;
  }

  .hub-stats div:first-child {
    border-top: 0;
    padding-top: 0;
  }
}
