/* ============================================================
   Rashifal Website v2 — Professional Warm Theme
   Matching reference: dark maroon header, amber nav, cream body
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette from reference site */
  --maroon:      #7c1d05;
  --maroon-dk:   #4a1003;
  --maroon-md:   #8a2207;
  --amber:       #b86a30;
  --amber-dk:    #a25624;
  --amber-lt:    #c97a3f;
  --gold:        #d4a843;
  --gold-lt:     #fde68a;
  --cream:       #fff7e6;
  --cream-dk:    #fdf6e3;
  --cream-dkr:   #f0e3c2;
  --cream-border:#c7a574;
  --tan:         #e6d6b5;
  --text:        #2f1a08;
  --text-muted:  #7a5c3a;
  --text-inv:    #fef3c7;
  --card-head:   linear-gradient(180deg, #b86a30 0%, #a25624 100%);
  --nav-bg:      linear-gradient(180deg, #c97a3f 0%, #b86a30 50%, #a25624 100%);
  --header-bg:   linear-gradient(180deg, #7c1d05 0%, #8a2207 45%, #6b1a04 100%);
  --radius:      6px;
  --radius-lg:   10px;
  --shadow:      0 1px 4px rgba(90,16,4,.10);
  --shadow-md:   0 3px 12px rgba(90,16,4,.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Devanagari', 'Segoe UI', Georgia, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--amber-dk); text-decoration: none; }
a:hover { color: var(--amber); }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
}

/* ============================================================
   HEADER — dark maroon like reference
   ============================================================ */
.site-header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--maroon-dk);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo-main {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-lt);
  letter-spacing: -.01em;
}
.site-logo-main span { color: #fff; }
.site-logo-sub {
  font-size: .68rem;
  color: #fcd34d;
  font-style: italic;
  letter-spacing: .02em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-date-badge {
  background: rgba(254,243,199,.15);
  border: 1px solid rgba(254,243,199,.3);
  color: var(--gold-lt);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ============================================================
   NAV BAR — amber gradient below header
   ============================================================ */
.site-nav {
  background: var(--nav-bg);
  border-bottom: 1px solid #8a4413;
}
.site-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: stretch;
}
.site-nav a {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  color: #fef3c7;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 2px solid transparent;
  transition: background .15s;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(0,0,0,.18);
  color: #fff;
}

/* ============================================================
   HERO / PAGE HERO
   ============================================================ */
.hero, .page-hero, .rashi-page-hero, .panchang-hero {
  background: linear-gradient(135deg, #3d1500 0%, #5a1c02 50%, #3d1500 100%);
  padding: 28px 0 22px;
  text-align: center;
  border-bottom: 2px solid var(--maroon-dk);
}
.hero h1, .page-hero h1, .rashi-page-hero h1, .panchang-hero h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold-lt);
  margin-bottom: 5px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero h1 span { color: #fff; }
.hero p, .page-hero p, .rashi-page-hero p, .panchang-hero p {
  color: #fcd34d;
  font-size: .88rem;
  margin-bottom: 12px;
  opacity: .9;
}

/* ============================================================
   PANCHANG STRIP (info bar)
   ============================================================ */
.panchang-strip {
  background: linear-gradient(180deg, #8a8438 0%, #76703a 100%);
  border-bottom: 2px solid #5d5828;
  color: var(--gold-lt);
  padding: 8px 0;
}
.panchang-strip-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  font-size: .78rem;
  font-weight: 600;
}
.panchang-strip-inner span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.panchang-strip-inner b { font-weight: 700; color: #fff; }
.panchang-strip-inner a {
  color: #fde68a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  white-space: nowrap;
}
.panchang-strip-inner a:hover { color: #fff; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-wrap { padding: 16px 24px 48px; flex: 1; }
@media (max-width: 600px) {
  .main-wrap { padding: 16px 14px 48px; }
}

.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 16px;
  align-items: start;
}

/* ============================================================
   CARD — the core building block
   Card has: colored header bar + cream body
   ============================================================ */
.card {
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.card-header {
  background: var(--card-head);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header h2, .card-header h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold-lt);
  margin: 0;
  line-height: 1.3;
}
.card-header svg { color: var(--gold-lt); flex-shrink: 0; }
.card-body { padding: 14px; }

/* ============================================================
   RASHI GRID (homepage 12-rashi cards)
   ============================================================ */
.rashi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.rashi-card {
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.rashi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.rashi-card-top {
  background: var(--card-head);
  padding: 10px 12px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rashi-card-top .rashi-symbol {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.rashi-card-top .rashi-name {
  flex: 1;
}
.rashi-card-top h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1.2;
  margin-bottom: 1px;
}
.rashi-card-top small {
  font-size: .68rem;
  color: #fcd34d;
  opacity: .85;
}
.rashi-card-body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rashi-card-body p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--amber-dk);
  color: #fff;
  font-weight: 600;
  font-size: .73rem;
  padding: 5px 12px;
  border-radius: 4px;
  transition: background .15s;
  align-self: flex-start;
}
.btn-read-more:hover { background: var(--maroon); color: #fff; }
.lucky-info {
  font-size: .68rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber-dk);
  margin: 16px 0 10px;
  padding: 8px 14px;
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--amber);
}

/* ============================================================
   QUICK LINKS (panchang + muhurat cards on homepage)
   ============================================================ */
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.quick-card {
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.quick-card-top {
  background: var(--card-head);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.quick-card-top svg { color: var(--gold-lt); }
.quick-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold-lt);
}
.quick-card-body {
  padding: 10px 14px;
}
.quick-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   CONTENT CARD (info sections)
   ============================================================ */
.content-card {
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.content-card h2 {
  background: var(--card-head);
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold-lt);
  padding: 10px 20px;
  margin: 0;
}
.content-card p {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.85;
  padding: 14px 20px;
}
.content-card p + p { padding-top: 0; }
.content-card ul,
.content-card ol { padding: 0 20px 14px 36px; }
.content-card ul li,
.content-card ol li { padding: 4px 0; }

/* ============================================================
   RASHI DETAIL PAGE
   ============================================================ */
.rashi-big-symbol {
  display: block;
  margin: 0 auto 10px;
  width: 64px;
  height: 64px;
}
.breadcrumb {
  margin: 10px 0 12px;
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.breadcrumb a { color: var(--amber-dk); }

.rashi-content-box {
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.rashi-content-box > h2 {
  background: var(--card-head);
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold-lt);
  padding: 8px 14px;
  margin: 0;
}
.rashi-content-box > .rashi-box-body {
  padding: 14px;
}
.rashi-intro-para {
  font-size: .88rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 12px;
}
.rashifal-section {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tan);
}
.rashifal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.rashifal-section h3 {
  font-size: .86rem;
  font-weight: 700;
  color: var(--amber-dk);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-icon { width: 18px; height: 18px; flex-shrink: 0; }
.rashifal-section p { font-size: .86rem; color: var(--text); line-height: 1.8; }

.lucky-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--tan);
}
.lucky-item {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
}
.lucky-item b { color: var(--amber-dk); }

/* Other rashis grid */
.other-rashis {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 14px;
}
.other-rashis a {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 5px;
  padding: 5px 10px;
  font-size: .76rem;
  color: var(--amber-dk);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .12s;
}
.other-rashis a:hover { background: var(--tan); color: var(--maroon); }

/* ============================================================
   PANCHANG PAGE
   ============================================================ */
.rahu-kaal-box {
  background: linear-gradient(135deg, #7c1d05 0%, #5a1004 100%);
  color: var(--gold-lt);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 14px;
  border: 1px solid var(--maroon-dk);
}
.rk-label {
  font-size: .78rem;
  opacity: .85;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rahu-kaal-box .rk-time {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 4px 0;
}
.rahu-kaal-box .rk-note {
  font-size: .72rem;
  opacity: .7;
}

.panchang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.panchang-item {
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.p-icon {
  background: var(--card-head);
  padding: 10px;
  display: flex;
  justify-content: center;
  color: var(--gold-lt);
}
.p-label {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 8px 0;
}
.p-value {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  padding: 2px 8px 10px;
}

/* ============================================================
   MUHURAT PAGE
   ============================================================ */
.muhurat-list { display: grid; gap: 10px; margin-bottom: 14px; }
.muhurat-item {
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 180px 1fr;
}
.muhurat-type-label {
  background: var(--card-head);
  font-weight: 700;
  color: var(--gold-lt);
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
}
.muhurat-time {
  color: var(--text);
  font-size: .86rem;
  line-height: 1.7;
  padding: 12px 14px;
  border-left: 1px solid var(--cream-border);
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  background: #faecd2;
  border: 1px dashed var(--cream-border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: .75rem;
  margin-bottom: 14px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
aside { position: sticky; top: 72px; }
.sidebar-widget {
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.sidebar-widget-head {
  background: var(--card-head);
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold-lt);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-widget-body { padding: 10px 12px; }
.sidebar-rashi-list { list-style: none; }
.sidebar-rashi-list li { }
.sidebar-rashi-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: var(--text);
  padding: 4px 5px;
  border-radius: 4px;
  transition: background .12s;
  text-decoration: none;
}
.sidebar-rashi-list a:hover {
  background: var(--tan);
  color: var(--amber-dk);
}
.sidebar-panchang-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--tan);
}
.sidebar-panchang-row:last-of-type { border-bottom: none; }
.sidebar-panchang-row b { color: var(--amber-dk); }

/* ============================================================
   NO CONTENT
   ============================================================ */
.no-content {
  background: var(--cream-dk);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #3d1500 0%, #1c0f00 100%);
  color: #d6c08e;
  padding: 32px 0 0;
  margin-top: 32px;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 12px 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}
.footer-col h5 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold-lt);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(214,192,142,.2);
}
.footer-col p { font-size: .78rem; color: #b8a080; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul a {
  color: #b8a080;
  font-size: .78rem;
  transition: color .15s;
  text-decoration: none;
}
.footer-col ul a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(214,192,142,.15);
  text-align: center;
  padding: 12px;
}
.footer-bottom p { font-size: .72rem; color: #8a7050; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-home, .btn-primary {
  background: var(--amber-dk);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 22px;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.btn-home:hover, .btn-primary:hover { background: var(--maroon); color: #fff; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { background: var(--cream); min-height: 100vh; }
.admin-header-bar {
  background: var(--header-bg);
  border-bottom: 3px solid var(--maroon-dk);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  box-shadow: var(--shadow);
}
.admin-header-bar .logo { font-weight: 700; font-size: 1rem; color: var(--gold-lt); }
.admin-header-bar a { font-size: .8rem; color: #fcd34d; }
.admin-wrap { max-width: 780px; margin: 32px auto; padding: 0 16px; }
.admin-page-title { text-align: center; margin-bottom: 24px; }
.admin-page-title h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.admin-page-title p { color: var(--text-muted); font-size: .84rem; }
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--cream-border);
  overflow-x: auto;
}
.admin-tab {
  padding: 9px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}
.admin-tab.active, .admin-tab:hover { color: var(--amber-dk); border-bottom-color: var(--amber); }
.admin-form { display: none; }
.admin-form.active { display: block; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .82rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--cream-border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .9rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
  background: var(--cream-dk);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(184,106,48,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: .86rem; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef9c3; color: #713f12; border: 1px solid var(--gold-lt); }

/* ============================================================
   404
   ============================================================ */
.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 3rem; color: var(--amber-dk); font-weight: 800; margin-bottom: 8px; }
.error-page h2 { font-size: 1.2rem; margin-bottom: 10px; }
.error-page p { color: var(--text-muted); margin-bottom: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .page-with-sidebar { grid-template-columns: 1fr; }
  .panchang-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .rashi-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .quick-links { grid-template-columns: 1fr; }
  .muhurat-item { grid-template-columns: 1fr; }
  .muhurat-type-label { border-right: none; }
  .muhurat-time { border-left: none; border-top: 1px solid var(--cream-border); }
  .hero h1, .page-hero h1, .rashi-page-hero h1, .panchang-hero h1 { font-size: 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .panchang-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .header-date-badge { display: none; }
}
@media (max-width: 480px) {
  .rashi-card-top .rashi-symbol { width: 34px; height: 34px; }
  .rashi-card-top h3 { font-size: .8rem; }
}

/* ── Centered Rashi Card Layout (4-col compact) ──────────── */
.rashi-card.rashi-card-centered {
  text-align: center;
  align-items: center;
  padding-bottom: 8px;
}
.rashi-symbol-center {
  width: 52px;
  height: 52px;
  margin: 10px auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rashi-symbol-center svg,
.rashi-symbol-center img {
  width: 52px;
  height: 52px;
}
.rashi-name-center {
  font-size: .8rem;
  font-weight: 700;
  color: var(--maroon-dk);
  line-height: 1.2;
  margin: 0 0 1px;
  padding: 0 6px;
}
.rashi-english-center {
  font-size: .62rem;
  color: var(--amber-dk);
  opacity: 1;
  display: block;
  margin-bottom: 2px;
}
.rashi-dates-center {
  font-size: .6rem;
  color: var(--maroon-dk);
  background: rgba(180, 100, 30, .12);
  border: 1px solid rgba(180, 100, 30, .25);
  border-radius: 8px;
  padding: 1px 7px;
  margin: 0 auto 3px;
  display: inline-block;
}
.rashi-card-centered .rashi-card-body {
  width: 100%;
  align-items: center;
  padding: 6px 8px 0;
}
.rashi-card-centered .rashi-card-body p {
  text-align: center;
  font-size: .72rem;
  -webkit-line-clamp: 2;
  margin-bottom: 5px;
}
.rashi-card-centered .btn-read-more {
  align-self: center;
  font-size: .65rem;
  padding: 4px 9px;
}
.rashi-card-centered .lucky-info {
  text-align: center;
  font-size: .6rem;
}

/* ===========================
   SEO CONTENT SECTIONS
   =========================== */

/* --------------------------------------------------
   SEO CONTENT SECTIONS — compact with side padding
   -------------------------------------------------- */

/* Shared inner padding for all SEO text blocks */
.content-card .seo-inner {
  padding: 12px 20px 16px;
}

/* Intro SEO block above rashi grid */
.intro-seo { margin-bottom: 14px; }
.intro-seo p {
  font-size: 0.9rem !important;
  line-height: 1.8 !important;
  padding: 14px 20px !important;
  margin: 0 !important;
}

/* Rashi nav links bar */
.rashi-nav-links {
  font-size: 0.85rem;
  line-height: 2;
  color: var(--text, #444);
  margin: 0;
  padding: 10px 20px 14px;
}
.rashi-nav-links a {
  color: var(--amber-dk, #7c3aed);
  text-decoration: none;
  white-space: nowrap;
}
.rashi-nav-links a:hover { text-decoration: underline; }

/* Rashi overview 12-grid */
.rashi-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  padding: 0 20px 18px;
  margin: 0;
}
.rashi-overview-item {
  padding: 12px 14px;
  border: 1px solid var(--cream-border, #e2e8f0);
  border-radius: 8px;
  background: var(--cream, #fafaf6);
  transition: box-shadow 0.18s;
}
.rashi-overview-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.07); }
.rashi-overview-item h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--amber-dk, #7c3aed);
}
.rashi-overview-item h3 a { color: inherit; text-decoration: none; }
.rashi-overview-item h3 a:hover { text-decoration: underline; }
.rashi-overview-item p {
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
  color: var(--text, #555) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* SEO bullet list */
.seo-list {
  margin: 0;
  padding: 6px 20px 16px 36px;
}
.seo-list li {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text, #444);
  margin-bottom: 5px;
}
.seo-list li strong { color: var(--maroon, #1a1a2e); }

/* FAQ section */
.faq-card h2 { margin-bottom: 0; }
.faq-item {
  padding: 12px 20px;
  border-top: 1px solid var(--cream-border, #e2e8f0);
}
.faq-item:first-of-type { border-top: none; }
.faq-item h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--maroon, #1a1a2e);
  margin: 0 0 4px;
}
.faq-item p {
  font-size: 0.85rem !important;
  line-height: 1.7 !important;
  color: var(--text, #555) !important;
  margin: 0 !important;
  padding: 0 !important;
}
.faq-item p a { color: var(--amber-dk, #7c3aed); }

/* About / E-E-A-T */
.eeeat-card p {
  font-size: 0.88rem;
  line-height: 1.8;
}
.eeeat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  padding: 12px 20px;
  border-top: 1px solid var(--cream-border, #e2e8f0);
  font-size: 0.82rem;
  color: var(--text, #666);
  margin: 0;
}
.eeeat-meta span { display: flex; align-items: center; gap: 4px; }
.eeeat-meta a { color: var(--amber-dk, #7c3aed); text-decoration: none; }
.eeeat-meta a:hover { text-decoration: underline; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .rashi-overview-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rashi-overview-grid { grid-template-columns: 1fr; gap: 8px; padding: 0 14px 14px; }
  .rashi-nav-links  { padding: 10px 14px 12px; font-size: 0.8rem; }
  .faq-item         { padding: 10px 14px; }
  .eeeat-meta       { padding: 10px 14px; flex-direction: column; gap: 6px; }
  .seo-list         { padding: 4px 14px 12px 28px; }
  .intro-seo p      { padding: 12px 14px !important; }
}

