/* Eirthum Article Hub & Reading Page Styling */

:root {
  --ep-emerald: #188a53;
  --ep-emerald-dark: #0f5c37;
  --ep-emerald-light: #e8f5ee;
  --ep-gold: #cfaa60;
  --ep-dark: #0f172a;
  --ep-slate: #475569;
  --ep-border: #e2e8f0;
  --ep-bg-light: #f8fafc;
}

/* Articles Container */
.articles-wrapper {
  padding: 1.5rem 0 4rem;
}

/* Page Header & Search */
.articles-page-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.articles-page-title {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ep-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.articles-page-subtitle {
  font-size: 1.1rem;
  color: var(--ep-slate);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Search Bar */
.articles-search-bar {
  max-width: 520px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 99px;
  padding: 0.35rem 0.5rem 0.35rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.articles-search-bar:focus-within {
  border-color: var(--ep-emerald);
  box-shadow: 0 4px 20px rgba(24, 138, 83, 0.12);
}

.articles-search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  color: var(--ep-dark);
}

.articles-search-btn {
  background: var(--ep-emerald);
  color: #ffffff;
  border: none;
  border-radius: 99px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.articles-search-btn:hover {
  background: var(--ep-emerald-dark);
}

/* Category Filter Tabs */
.article-cat-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.article-cat-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ep-slate);
  background: #ffffff;
  border: 1px solid var(--ep-border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-cat-btn:hover,
.article-cat-btn.active {
  background: var(--ep-emerald);
  color: #ffffff;
  border-color: var(--ep-emerald);
}

/* Featured Article Spotlight */
.featured-spotlight {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-spotlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.featured-img-col {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-spotlight:hover .featured-img {
  transform: scale(1.03);
}

.featured-badge-top {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-content-col {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-cat-tag {
  display: inline-block;
  color: var(--ep-emerald);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.featured-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ep-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.featured-title a {
  color: inherit;
  text-decoration: none;
}

.featured-title a:hover {
  color: var(--ep-emerald);
}

.featured-excerpt {
  color: var(--ep-slate);
  font-size: 0.975rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.author-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ep-border);
}

.author-name-txt {
  font-weight: 600;
  color: var(--ep-dark);
}

.article-read-time {
  background: var(--ep-emerald-light);
  color: var(--ep-emerald-dark);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Articles Grid */
.articles-grid-section {
  margin-bottom: 3rem;
}

.section-subheading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ep-dark);
  margin-bottom: 1.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* Article Card */
.article-card {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.article-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.article-card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--ep-emerald-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.article-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ep-dark);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.article-card-title a {
  color: inherit;
  text-decoration: none;
}

.article-card-title a:hover {
  color: var(--ep-emerald);
}

.article-card-excerpt {
  color: var(--ep-slate);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
}

.read-article-link {
  color: var(--ep-emerald);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}

.read-article-link:hover {
  gap: 0.5rem;
}

/* ==========================================================================
   SINGLE ARTICLE DETAIL PAGE STYLES
   ========================================================================== */

.article-detail-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.article-back-nav {
  margin-bottom: 1.5rem;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ep-emerald);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.article-detail-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-detail-cat {
  display: inline-block;
  background: var(--ep-emerald-light);
  color: var(--ep-emerald-dark);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.article-detail-h1 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ep-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.article-detail-sub {
  font-size: 1.15rem;
  color: var(--ep-slate);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.article-author-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ep-border);
  border-bottom: 1px solid var(--ep-border);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.author-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-banner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ep-emerald-light);
}

.author-banner-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ep-dark);
}

.author-banner-role {
  font-size: 0.8rem;
  color: #64748b;
}

.article-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

.article-meta-info-item {
  font-size: 0.875rem;
  color: #64748b;
}

/* Article Hero Cover Image */
.article-cover-wrap {
  margin-bottom: 3rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article-cover-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Article Body Content Typography */
.article-body-content {
  font-size: 1.075rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 3rem;
}

.article-body-content p {
  margin-bottom: 1.5rem;
}

.article-body-content .article-lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ep-dark);
  border-left: 4px solid var(--ep-emerald);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.article-body-content h2 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ep-dark);
  margin: 2.25rem 0 1rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.article-body-content h3 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ep-dark);
  margin: 1.75rem 0 0.85rem;
  line-height: 1.4;
}

.article-body-content ul,
.article-body-content ol {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.article-body-content li {
  margin-bottom: 0.6rem;
}

.article-body-content .article-quote {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.2rem;
  font-style: normal;
  color: var(--ep-emerald-dark);
  background: var(--ep-emerald-light);
  border-left: 4px solid var(--ep-gold);
  padding: 1.5rem 1.75rem;
  border-radius: 0 16px 16px 0;
  margin: 2rem 0;
  line-height: 1.6;
}

/* Article Tags & Author Bio Card */
.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.article-tag-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
}

.article-author-bio-card {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.bio-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.bio-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ep-dark);
  margin-bottom: 0.2rem;
}

.bio-card-role {
  font-size: 0.85rem;
  color: var(--ep-emerald);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bio-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* Related Articles Section */
.related-articles-sec {
  border-top: 1px solid var(--ep-border);
  padding-top: 3rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .articles-page-title {
    font-size: 2rem;
  }

  .featured-spotlight {
    grid-template-columns: 1fr;
  }

  .featured-content-col {
    padding: 1.5rem;
  }

  .article-detail-h1 {
    font-size: 2rem;
  }

  .article-author-bio-card {
    flex-direction: column;
    text-align: center;
  }
}