/* ==========================================
   Corishta Hindi Site — Custom Styles
   Pico CSS v2 overrides & additions
   ========================================== */

/* ─── Variables ─── */
:root {
  --corishta-primary: #d6336c;
  --corishta-hover: #c2255c;
  --section-bg-alt: #f8f9fa;
  --border-radius: 8px;
  --transition-fast: 0.15s;
}

/* ─── Header ─── */
.site-header {
  border-bottom: 1px solid var(--pico-muted-border-color, #e0e0e0);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 0.5rem;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--corishta-primary);
}
.site-logo:hover {
  opacity: 0.85;
}
.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}
@media (max-width: 767.98px) {
  .login-btn { display: none !important; }
  .header-actions { gap: 0.25rem; }
  .site-logo img { height: 1.5rem !important; }
  .header-actions a[role="button"] { font-size: 0.8rem; padding: 0.2rem 0.5rem; }
}

/* ─── Hero Section ─── */
.hero-section {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(248,249,250,0.92) 100%);
  pointer-events: none;
}
.hero-section .container {
  position: relative;
  z-index: 1;
}
.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.hero-section p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
}
.hero-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: nowrap;
}
.hero-buttons a {
  min-width: 140px;
  font-size: 0.85rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .hero-buttons a { min-width: 0; flex: 1; font-size: 0.78rem; padding: 0.4rem 0.3rem; }
}

/* ─── Section Spacing ─── */
.section {
  padding: 2.5rem 0;
}
.section-alt {
  background: var(--section-bg-alt);
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.section-title h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.section-title p {
  opacity: 0.75;
  max-width: 550px;
  margin: 0 auto;
}

/* ─── Feature Grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--border-radius);
  background: var(--pico-card-background-color, #fff);
  border: 1px solid var(--pico-muted-border-color, #eee);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* ─── Community Grid ─── */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .community-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .community-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.community-card {
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--pico-muted-border-color, #eee);
  border-radius: var(--border-radius);
  background: var(--pico-card-background-color, #fff);
  transition: box-shadow var(--transition-fast);
}
.community-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.community-card a {
  text-decoration: none;
  color: inherit;
}
.community-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.community-card p {
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 0;
}

/* ─── Steps / How It Works ─── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--corishta-primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.step-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* ─── Success Story Cards ─── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.story-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--pico-muted-border-color, #eee);
  border-radius: var(--border-radius);
  background: var(--pico-card-background-color, #fff);
}
.story-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
.story-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.story-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* ─── FAQ ─── */
.faq-list details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color, #eee);
}
.faq-list details:last-child {
  border-bottom: none;
}
.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}
.faq-list details[open] summary {
  margin-bottom: 0.5rem;
}

/* ─── Blog Cards ─── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.blog-card {
  border: 1px solid var(--pico-muted-border-color, #eee);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--pico-card-background-color, #fff);
  transition: box-shadow var(--transition-fast);
}
.blog-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-card-body {
  padding: 1rem;
}
.blog-card-body .blog-meta {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-bottom: 0.4rem;
}
.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.blog-card-body h3 a {
  text-decoration: none;
  color: inherit;
}
.blog-card-body h3 a:hover {
  color: var(--corishta-primary);
}
.blog-card-body p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* ─── Profile Grid ─── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .profile-grid { grid-template-columns: repeat(4, 1fr); }
}
.profile-card {
  border: 1px solid var(--pico-muted-border-color, #eee);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--pico-card-background-color, #fff);
  transition: box-shadow var(--transition-fast);
}
.profile-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.profile-card-body {
  padding: 0.75rem;
  text-align: center;
}
.profile-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.profile-card-body p {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0 0 0.25rem;
}
.profile-card-body .badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--pico-muted-border-color, #eee);
  margin-bottom: 0.5rem;
}
.profile-card-body .view-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.4rem;
  border-radius: var(--border-radius);
  background: var(--corishta-primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}
.profile-card-body .view-btn:hover {
  background: var(--corishta-hover);
  color: #fff;
}
.login-gate {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--section-bg-alt);
  border-radius: var(--border-radius);
  border: 2px dashed var(--pico-muted-border-color, #ccc);
}
.login-gate h3 {
  margin-bottom: 0.5rem;
}
.login-gate p {
  opacity: 0.75;
  margin-bottom: 1rem;
}
.gate-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── CTA Section ─── */
.cta-section {
  text-align: center;
  padding: 3rem 0;
}
.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.cta-section p {
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  padding: 2rem 0;
  text-align: center;
  background: var(--section-bg-alt);
}
.page-hero h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.page-hero p {
  opacity: 0.75;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Breadcrumb ─── */
nav[aria-label="ब्रेडक्रंब"] ul {
  flex-wrap: wrap;
  padding: 0.75rem 0;
  margin: 0;
}
nav[aria-label="ब्रेडक्रंब"] li {
  font-size: 0.85rem;
}
.breadcrumb-sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}

/* ─── Find Match Filters ─── */
.filter-section {
  padding: 1.5rem 0;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── Content Page Styling ─── */
.content-page {
  padding: 2rem 0;
}
.content-page .container {
  padding-left: 1rem;
  padding-right: 1rem;
}
.content-page h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}
.content-page h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}
.content-page ul, .content-page ol {
  padding-left: 1.25rem;
}
.content-page li {
  margin-bottom: 0.4rem;
}

/* ─── Contact Form ─── */
.contact-details {
  margin-top: 1.5rem;
}
.contact-details dt {
  font-weight: 600;
  margin-top: 1rem;
}
.contact-details dd {
  margin-left: 0;
  opacity: 0.85;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--pico-muted-border-color, #e0e0e0);
  padding: 2rem 0 1rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.4rem;
}
.footer-col a {
  text-decoration: none;
  opacity: 0.8;
}
.footer-col a:hover {
  opacity: 1;
  color: var(--corishta-primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--pico-muted-border-color, #eee);
  font-size: 0.85rem;
  opacity: 0.7;
}
.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
}

/* ─── 404 Page ─── */
.error-page {
  text-align: center;
  padding: 4rem 0;
}
.error-page h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: var(--corishta-primary);
}
.error-page p {
  font-size: 1.1rem;
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
