/* ========================================================
   Religion Category — Warm Spiritual Theme
   Amrit Bhoomi — category_religion.css
   ======================================================== */

:root {
  --rel-bg:        #fffbf5;
  --rel-saffron:   #ea580c;
  --rel-gold:      #d97706;
  --rel-deep:      #9a3412;
  --rel-crimson:   #b91c1c;
  --rel-cream:     #fff7ed;
  --rel-card-bg:   #ffffff;
  --rel-text:      #1c0a00;
  --rel-muted:     #78350f;
  --rel-border:    #fed7aa;
  --rel-accent:    #c2410c;
  --rel-shadow:    0 4px 24px rgba(154,52,18,0.10);
  --rel-radius:    14px;
  --rel-gold-glow: 0 0 0 3px rgba(217,119,6,0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--rel-bg);
  color: var(--rel-text);
}

/* ─── Page wrapper ─────────────────────────────────────── */
.rel-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

/* ─── Hero ──────────────────────────────────────────────── */
.rel-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 36px 32px 32px;
  margin-bottom: 24px;
  background:
    radial-gradient(ellipse at top left,  rgba(234,88,12,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(217,119,6,0.18) 0%, transparent 55%),
    linear-gradient(135deg, #fff7ed 0%, #fef3c7 50%, #fff7ed 100%);
  border: 1px solid var(--rel-border);
  box-shadow: var(--rel-shadow);
}

/* Decorative mandala ring (CSS only) */
.rel-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(234,88,12,0.08) 0deg  30deg,
    transparent            30deg 60deg,
    rgba(217,119,6,0.08)   60deg 90deg,
    transparent            90deg 120deg,
    rgba(185,28,28,0.06)  120deg 150deg,
    transparent           150deg 180deg,
    rgba(234,88,12,0.08)  180deg 210deg,
    transparent           210deg 240deg,
    rgba(217,119,6,0.08)  240deg 270deg,
    transparent           270deg 300deg,
    rgba(185,28,28,0.06)  300deg 330deg,
    transparent           330deg 360deg
  );
  pointer-events: none;
  z-index: 0;
}
.rel-hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px dashed rgba(217,119,6,0.25);
  pointer-events: none;
  z-index: 0;
}

.rel-hero > * { position: relative; z-index: 1; }

/* Breadcrumb */
.rel-breadcrumb {
  font-size: 12.5px;
  color: var(--rel-muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.rel-breadcrumb a {
  color: var(--rel-muted);
  text-decoration: none;
}
.rel-breadcrumb a:hover { color: var(--rel-accent); }
.rel-breadcrumb .sep {
  color: var(--rel-gold);
  font-weight: 700;
}

/* Category label */
.rel-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rel-accent);
  background: rgba(234,88,12,0.08);
  border: 1px solid rgba(234,88,12,0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Title */
.rel-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--rel-deep);
  letter-spacing: -0.02em;
}
.rel-title .accent { color: var(--rel-saffron); }

/* Intro / description */
.rel-intro {
  margin: 0;
  font-size: 14.5px;
  color: #5c3317;
  max-width: 760px;
  line-height: 1.65;
}
.rel-intro.small {
  font-size: 13.5px;
  color: var(--rel-muted);
}

/* Stats row */
.rel-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.rel-stat {
  font-size: 12.5px;
  color: var(--rel-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.rel-stat strong {
  color: var(--rel-deep);
  font-weight: 700;
}

/* ─── Layout grid ───────────────────────────────────────── */
.rel-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* ─── Featured article (first post, full-width banner) ─── */
.rel-featured {
  position: relative;
  border-radius: var(--rel-radius);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--rel-border);
  box-shadow: var(--rel-shadow);
  background: var(--rel-card-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rel-featured .feat-media {
  overflow: hidden;
  max-height: 280px;
}
.rel-featured .feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.rel-featured:hover .feat-media img { transform: scale(1.03); }

.rel-featured .feat-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rel-card-bg);
  background: var(--rel-saffron);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}

.feat-meta {
  font-size: 12px;
  color: var(--rel-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.feat-meta .sep { opacity: 0.4; }

.feat-title {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
  color: var(--rel-text);
}
.feat-title a {
  text-decoration: none;
  color: inherit;
}
.feat-title a:hover { color: var(--rel-accent); }

.feat-excerpt {
  font-size: 13.5px;
  color: #5c3317;
  line-height: 1.6;
  margin: 0 0 16px;
}

.feat-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rel-accent);
  text-decoration: none;
  border: 1.5px solid var(--rel-saffron);
  padding: 7px 16px;
  border-radius: 999px;
  width: fit-content;
  transition: background 0.2s, color 0.2s;
}
.feat-readmore:hover {
  background: var(--rel-saffron);
  color: #fff;
}

/* ─── Subcategories ─────────────────────────────────────── */
.rel-subcats {
  margin-bottom: 18px;
}
.rel-section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rel-muted);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rel-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rel-border);
}

.rel-subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rel-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--rel-border);
  color: var(--rel-deep);
  text-decoration: none;
  background: var(--rel-card-bg);
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(154,52,18,0.06);
}
.rel-chip:hover {
  border-color: var(--rel-saffron);
  color: var(--rel-accent);
  background: #fff7ed;
  box-shadow: var(--rel-gold-glow);
}

/* ─── Article grid ──────────────────────────────────────── */
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.rel-card {
  background: var(--rel-card-bg);
  border-radius: var(--rel-radius);
  border: 1px solid var(--rel-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(154,52,18,0.07);
  transition: box-shadow 0.25s, transform 0.25s;
}
.rel-card:hover {
  box-shadow: 0 8px 32px rgba(154,52,18,0.14);
  transform: translateY(-2px);
}

.rel-card .card-media {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.rel-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.rel-card:hover .card-media img { transform: scale(1.04); }

.rel-card .card-body {
  padding: 14px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rel-card .card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
  color: var(--rel-muted);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rel-card .card-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(234,88,12,0.09);
  color: var(--rel-accent);
  border: 1px solid rgba(234,88,12,0.2);
  font-weight: 600;
}

.rel-card .card-title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 7px;
  line-height: 1.4;
  flex: 1;
}
.rel-card .card-title a {
  color: var(--rel-text);
  text-decoration: none;
}
.rel-card .card-title a:hover { color: var(--rel-accent); }

.rel-card .card-excerpt {
  font-size: 12.5px;
  color: #7c3f1e;
  line-height: 1.5;
  margin: 0 0 12px;
}

.rel-card .card-readmore {
  font-size: 12px;
  font-weight: 600;
  color: var(--rel-accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.rel-card .card-readmore:hover { text-decoration: underline; }

/* ─── Empty state ───────────────────────────────────────── */
.rel-empty {
  font-size: 14px;
  color: var(--rel-muted);
  padding: 32px 0;
  text-align: center;
}

/* ─── Pagination ────────────────────────────────────────── */
.rel-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 28px 0 8px;
  flex-wrap: wrap;
}
.rel-page-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--rel-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rel-deep);
  text-decoration: none;
  background: var(--rel-card-bg);
  transition: all 0.2s;
}
.rel-page-btn:hover {
  background: var(--rel-saffron);
  border-color: var(--rel-saffron);
  color: #fff;
}
.rel-page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.rel-page-status {
  font-size: 12.5px;
  color: var(--rel-muted);
  padding: 0 8px;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.rel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--navbar-height, 52px) + 48px);
}

.rel-sidebar-card {
  background: var(--rel-card-bg);
  border-radius: var(--rel-radius);
  padding: 16px 16px 18px;
  border: 1px solid var(--rel-border);
  box-shadow: 0 2px 10px rgba(154,52,18,0.06);
}

.rel-sidebar-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--rel-deep);
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rel-border);
}
.rel-sidebar-card h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 15px;
  background: var(--rel-saffron);
  border-radius: 2px;
}

.rel-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rel-sidebar-list li {
  border-bottom: 1px solid rgba(254,215,170,0.5);
  padding: 8px 0;
}
.rel-sidebar-list li:last-child { border-bottom: none; }
.rel-sidebar-list a {
  font-size: 13px;
  color: var(--rel-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.rel-sidebar-list a::before {
  content: '›';
  color: var(--rel-saffron);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}
.rel-sidebar-list a:hover { color: var(--rel-accent); }

/* Highlight / CTA card */
.rel-sidebar-card.highlight {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-color: rgba(234,88,12,0.3);
}
.rel-sidebar-card.highlight p {
  font-size: 13px;
  color: var(--rel-muted);
  line-height: 1.55;
  margin: 0 0 12px;
}
.rel-btn-refresh {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--rel-saffron);
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.2s;
}
.rel-btn-refresh:hover { background: var(--rel-deep); }

/* Support CTA */
.rel-support-cta {
  background: linear-gradient(135deg, #fff7ed 0%, #fde8d0 100%);
  border: 1.5px solid rgba(234,88,12,0.25);
  border-radius: var(--rel-radius);
  padding: 18px;
  text-align: center;
}
.rel-support-cta h2 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--rel-deep);
  margin: 0 0 8px;
}
.rel-support-cta p {
  font-size: 12.5px;
  color: var(--rel-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.rel-support-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--rel-saffron);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.rel-support-btn:hover { background: var(--rel-deep); }

/* Divider */
.rel-divider {
  height: 1px;
  background: var(--rel-border);
  margin: 6px 0 18px;
  border: none;
}

/* ─── Section heading ───────────────────────────────────── */
.rel-section-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--rel-deep);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rel-section-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--rel-saffron), transparent);
  border-radius: 1px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .rel-layout {
    grid-template-columns: 1fr;
  }
  .rel-sidebar {
    order: -1;
    position: static;
  }
  .rel-featured {
    grid-template-columns: 1fr;
  }
  .rel-featured .feat-media {
    max-height: 220px;
  }
}

@media (max-width: 640px) {
  .rel-page {
    padding-inline: 12px;
  }
  .rel-hero {
    padding: 22px 18px 20px;
    border-radius: 14px;
  }
  .rel-hero::before,
  .rel-hero::after { display: none; }
  .rel-grid {
    grid-template-columns: 1fr;
  }
  .rel-featured .feat-body {
    padding: 16px;
  }
  .rel-sidebar {
    gap: 12px;
  }
}
