/* ═══════════════════════════════════════════════════════
   Corishta — PicoCSS Overrides & Custom Styles
   Pico handles the reset/base; we only add what's needed.
═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --brand:        #6E9F9B;
  --brand-dark:   #586461;
  --brand-light:  #DDEEEE;
  --accent:       #E37E63;
  --accent-hover: #D96A50;
  --surface:      #FFFFFF;
  --bg:           #EBF4F4;
  --muted:        #4A4A4A;
  --muted-light:  #8C9292;
  --border:       #6E9F9B;
  --radius:       8px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --text-primary: #1A1A1A;
  --text-body:    #4A4A4A;
}

/* ── Header ── */
.site-header {
  background: var(--brand-dark);
  padding: .6rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header a,
.site-header strong {
  text-decoration: none;
}
.site-header nav > ul,
.site-nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-body img {
  margin-bottom: 20px;
}

.site-logo strong { font-size: 1.2rem; letter-spacing: -.5px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  padding: .4rem;
  height: 38px;
}
.nav-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #6E9F9B;
  margin: 5px 0;
}
.cta-btn {
  background: linear-gradient(to bottom, var(--accent) 5%, var(--accent-hover) 100%);
  color: #fff !important;
  padding: .35rem 1rem !important;
  border-radius: 20px !important;
  font-weight: 600;
  font-size: .9rem;
}

/* ── Breadcrumb ── */
.breadcrumb-wrap {
  background: var(--brand-light);
  padding: .4rem 0;
  border-bottom: 1px solid var(--brand);
}
.breadcrumb-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .85rem;
}

.breadcrumb-nav a { color: var(--brand); }

/* ── Main layout ── */
.main-content { padding-top: 2rem; padding-bottom: 4rem; }
.home-section { margin-top: 2.5rem; }
.home-section:first-child { margin-top: 0; }

/* ── Two-column layout: listing + sidebar ── */
.listing-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .listing-layout { grid-template-columns: 1fr; }
}

/* ── Profile card grid ── */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.profile-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f0f0f0;
}
.profile-card-body { padding: .75rem; }
.profile-card-body h3 { font-size: 1rem; margin: 0 0 .25rem; }
.profile-card-body p  { font-size: .82rem; color: var(--muted); margin: 0; }
.profile-card-body .badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 12px;
  padding: .1rem .6rem;
  font-size: .75rem;
  margin-top: .4rem;
}
.profile-card-body a.view-btn {
  display: block;
  margin-top: .6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: .35rem;
  font-size: .85rem;
  text-decoration: none;
}
.profile-card-body a.view-btn:hover {
  background: var(--accent-hover);
}

/* ── Login gate ── */
.login-gate {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-light), #fff);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.login-gate h3 { color: var(--brand-dark); }
.login-gate .gate-btns { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }

/* ── Sidebar ── */
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}
.sidebar-box { background: var(--brand-light); }
.sidebar-box h4 { font-size: .95rem; margin: 0 0 .75rem; color: var(--brand-dark); border-bottom: 1px solid var(--brand); padding-bottom: .5rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box ul li { padding: .3rem 0; border-bottom: 1px solid rgba(110,159,155,.15); font-size: .88rem; }
.sidebar-box ul li:last-child { border: none; }
.sidebar-box a { color: inherit; text-decoration: none; }
.sidebar-box a:hover { color: var(--brand-dark); }

/* ── Profile detail page ── */
.profile-detail-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 640px) {
  .profile-detail-grid { grid-template-columns: 1fr; }
}
.profile-photo-wrap img {
  width: 100%;
  border-radius: var(--radius);
  border: 3px solid var(--brand-light);
}
.profile-detail-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.profile-detail-table { width: 100%; border-collapse: collapse; }
.profile-detail-table tr { border-bottom: 1px solid var(--border); }
.profile-detail-table td { padding: .5rem .75rem; font-size: .93rem; }
.profile-detail-table td:first-child { color: var(--muted); width: 40%; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  padding: .25rem .8rem;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ── SEO content block ── */
.seo-content-block {
  background: var(--brand-light);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  line-height: 1.8;
}
.seo-content-block h2 { font-size: 1.3rem; color: var(--brand-dark); margin-top: 1.5rem; }

/* ── Related links ── */
.related-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.related-links a {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .83rem;
  text-decoration: none;
  transition: background .15s;
}
.related-links a:hover { background: var(--brand); color: #fff; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .4rem .85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .9rem;
  text-decoration: none;
  color: inherit;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand-dark); }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Knowledge / Insights ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.article-card h3 { font-size: 1rem; margin: 0 0 .5rem; }
.article-card p  { font-size: .87rem; color: var(--muted); }
.article-body { line-height: 1.85; font-size: .97rem; }
.article-body h2 { color: var(--brand-dark); margin-top: 2rem; }
.article-body h3 { margin-top: 1.5rem; }

/* ── Hero banner ── */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}
.hero h1 { font-size: 2.2rem; margin-bottom: .5rem; color: #fff; }
.hero p   { font-size: 1.1rem; opacity: .9; margin-bottom: 1.5rem; }
.hero-search {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  gap: .5rem;
}
.hero-search select, .hero-search input {
  flex: 1;
  border-radius: 6px;
  border: none;
  padding: .65rem 1rem;
  font-size: .95rem;
}
.hero-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .65rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
}
.hero-search button:hover { background: var(--accent-hover); }

/* ── Religion quick-links ── */
.religion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.religion-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem .8rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.religion-card:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-light); }
.religion-card .icon { font-size: 2rem; display: block; margin-bottom: .4rem; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.trust-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.trust-icon { font-size: 2.2rem; }
.article-link-card {
  text-decoration: none;
  color: inherit;
}
.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* ── Sticky CTA ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 2px solid var(--brand);
  padding: .75rem 0;
  transform: translateY(100%);
  transition: transform .3s ease;
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,.1);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-cta span { font-weight: 600; color: var(--brand-dark); }

/* ── Admin ── */
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  margin-bottom: .75rem;
}
.admin-form textarea { min-height: 220px; font-family: monospace; font-size: .9rem; }

/* ── Footer ── */
.site-footer {
  background: var(--brand-dark);
  color: #ccc;
  padding: 2.5rem 0 1rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4, .site-footer h5 { color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .4rem; font-size: .88rem; }
.site-footer a { color: #f1f6f7; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 1rem; color: #777; font-size: .82rem; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .nav-toggle span {
    background: #6E9F9B;
    transition: transform .24s ease, opacity .18s ease;
    transform-origin: center;
  }

  .site-nav {
    position: relative;
    flex-wrap: wrap;
  }



  
  .site-nav-links {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: .3rem;
    background: #FFFFFF;
    padding-top: .5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height .28s ease, opacity .2s ease, transform .2s ease;
  }

  .site-nav-links.open,
  .site-nav.menu-open .site-nav-links {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    border-top: 1px solid #E0E6E6;
  }

  .site-nav-links a:not([role="button"]),
  .site-nav-links summary {
    color: #1A1A1A;
  }

  .site-nav-links a:not([role="button"]):hover,
  .site-nav-links a:not([role="button"]):active,
  .site-nav-links summary:hover {
    color: #6E9F9B;
  }

  .site-nav-links .nav-dropdown-menu {
    background: #EBF4F4;
    padding-left: 1.5rem;
  }

  .site-nav-links .cta-btn,
  .site-nav-links a.cta-btn {
    background: #E37E63 !important;
    color: #fff !important;
    border-color: #E37E63 !important;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav-links a[role="button"] {
    display: inline-block;
    width: fit-content;
  }

  .hero {
    padding: 2.5rem .9rem;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-search {
    flex-direction: column;
    max-width: 100%;
  }

  .hero-search button,
  .hero-search select {
    width: 100%;
  }

  .sticky-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .sticky-cta-inner > div {
    display: flex;
    gap: .5rem;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding-top: 1.5rem;
    padding-bottom: 5rem;
  }

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

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

  .sticky-cta-inner > div {
    flex-direction: column;
  }

  .sticky-cta-inner > div a[role="button"] {
    width: 100%;
  }
}

/* ── FAQ card style ─────────────────────────────────────────────────────── */
.faq-wrap details {
  margin-bottom: 0.75rem;
  border: 1px solid var(--brand);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background: var(--surface);
}
.faq-wrap details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary, #1A1A1A);
}
.faq-wrap details p {
  margin-top: 0.5rem;
  color: var(--text-body, #4A4A4A);
  margin-bottom: 0;
}
