/*
 Theme Name: Astra Child
 Template: astra
 Description: Child theme for Yeshwant Hall
 Version: 3.1
*/

/* ===================================================
   YESHWANT HALL DESIGN SYSTEM v3.1
   Matching the homepage Elementor aesthetic
   Palette: Dark #1a1a1a | Gold #f5c61c | Light #e9ecef
   Fonts: Raleway (headings) | Open Sans (body)
   =================================================== */

:root {
  --yh-dark: #1a1a1a;
  --yh-dark-2: #2a2a2a;
  --yh-gold: #f5c61c;
  --yh-gold-light: #fdf3cc;
  --yh-text: #1a1a1a;
  --yh-text-light: #7a7a7a;
  --yh-bg: #ffffff;
  --yh-bg-alt: #f8f8f8;
  --yh-bg-page: #e9ecef;
  --yh-border: #eaeaea;
  --yh-radius: 6px;
  --yh-radius-lg: 10px;
  --yh-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --yh-shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
  --yh-transition: all 0.3s ease;
}

/* ============ PAGE BUILDER FULL WIDTH FIX ============ */

.ast-page-builder-template .entry-content > * {
  max-width: none;
}

/* ============ HERO SECTION ============ */

.yh-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.yh-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
}

.yh-hero-label {
  font-family: Raleway, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yh-gold) !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 16px 0 !important;
}

.yh-hero h1 {
  font-family: Raleway, sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
  border: none !important;
  padding: 0 !important;
}

.yh-hero h1::after {
  content: ;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--yh-gold);
  margin: 24px auto 0;
}

.yh-hero-sub {
  font-family: Open Sans, sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75) !important;
  max-width: 560px;
  line-height: 1.7;
  margin: 0 !important;
}

/* ============ SECTIONS ============ */

.yh-section {
  padding: 80px 24px;
  width: 100%;
  background: var(--yh-bg);
}

.yh-section-alt {
  background: var(--yh-bg-alt);
}

.yh-section-dark {
  background: var(--yh-dark);
  color: #fff;
}

.yh-section-dark h2,
.yh-section-dark h3,
.yh-section-dark p {
  color: #fff !important;
}

.yh-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ TYPOGRAPHY ============ */

.yh-label {
  font-family: Raleway, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yh-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin: 0 0 12px 0;
  display: block;
}

.yh-section h2 {
  font-family: Raleway, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--yh-dark);
  text-align: center;
  margin: 0 0 16px 0;
  border: none !important;
  padding: 0 !important;
  letter-spacing: -0.01em;
}

.yh-section h2::after {
  content: ;
  display: block;
  width: 50px;
  height: 2px;
  background: var(--yh-gold);
  margin: 18px auto 0;
}

.yh-section-intro {
  text-align: center;
  color: var(--yh-text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 20px auto 50px;
}

.yh-section h3 {
  font-family: Raleway, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--yh-dark);
  margin: 0 0 8px 0;
}

.yh-section p {
  font-family: Open Sans, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--yh-text-light);
}

/* ============ GRID LAYOUTS ============ */

.yh-grid {
  display: grid;
  gap: 30px;
}

.yh-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.yh-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.yh-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============ CARDS ============ */

.yh-card {
  background: var(--yh-bg);
  border-radius: var(--yh-radius);
  padding: 36px 30px;
  transition: var(--yh-transition);
  border: 1px solid var(--yh-border);
}

.yh-card:hover {
  border-color: var(--yh-gold);
  box-shadow: var(--yh-shadow-hover);
}

.yh-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--yh-dark);
}

.yh-card p {
  font-size: 0.95rem;
  color: var(--yh-text-light);
  margin: 0;
}

/* Icon Cards */
.yh-icon-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--yh-bg);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  transition: var(--yh-transition);
}

.yh-icon-card:hover {
  border-color: var(--yh-gold);
  box-shadow: var(--yh-shadow-hover);
}

.yh-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.yh-icon-card h3 {
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.yh-icon-card p {
  text-align: center;
  font-size: 0.92rem;
  color: var(--yh-text-light);
}

/* Numbered Cards */
.yh-num-card {
  position: relative;
  padding: 30px 30px 30px 80px;
  background: var(--yh-bg);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  transition: var(--yh-transition);
}

.yh-num-card:hover {
  border-color: var(--yh-gold);
}

.yh-num {
  position: absolute;
  left: 24px;
  top: 28px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--yh-gold);
  color: var(--yh-gold);
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hall Cards */
.yh-hall-card {
  background: var(--yh-bg);
  border: 1px solid var(--yh-border);
  border-radius: var(--yh-radius);
  overflow: hidden;
  transition: var(--yh-transition);
}

.yh-hall-card:hover {
  border-color: var(--yh-gold);
  box-shadow: var(--yh-shadow-hover);
}

.yh-hall-header {
  background: var(--yh-dark);
  padding: 24px 30px;
  color: #fff;
}

.yh-hall-header h3 {
  color: #fff !important;
  margin: 0 0 4px 0;
  font-size: 1.3rem;
}

.yh-hall-header .yh-badge {
  display: inline-block;
  background: var(--yh-gold);
  color: var(--yh-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.yh-hall-body {
  padding: 28px 30px;
}

.yh-hall-body ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
}

.yh-hall-body li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--yh-text-light);
  border-bottom: 1px solid var(--yh-border);
}

.yh-hall-body li:last-child {
  border-bottom: none;
}

.yh-hall-body li::before {
  content: 2713;
  position: absolute;
  left: 0;
  color: var(--yh-gold);
  font-weight: 700;
}

/* ============ TWO COLUMN LAYOUT ============ */

.yh-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.yh-two-col img {
  width: 100%;
  border-radius: var(--yh-radius);
}

.yh-two-col-text h2 {
  text-align: left;
}

.yh-two-col-text h2::after {
  margin: 18px 0 0;
}

.yh-two-col-text p {
  margin-bottom: 16px;
}

/* ============ CTA SECTION ============ */

.yh-cta {
  background: var(--yh-dark);
  padding: 80px 24px;
  text-align: center;
  width: 100%;
}

.yh-cta .yh-label {
  color: var(--yh-gold) !important;
}

.yh-cta h2 {
  font-family: Raleway, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 12px 0;
  border: none !important;
}

.yh-cta h2::after {
  display: none;
}

.yh-cta p {
  color: rgba(255,255,255,0.6) !important;
  font-size: 1rem;
  margin: 0 0 32px 0;
}

/* Primary button - bordered like homepage */
.yh-btn {
  display: inline-block;
  border: 2px solid #fff !important;
  background: transparent;
  color: #fff !important;
  padding: 14px 36px;
  font-family: Raleway, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--yh-transition);
}

.yh-btn:hover {
  background: #fff;
  color: var(--yh-dark) !important;
}

.yh-btn-dark {
  border: 2px solid var(--yh-dark) !important;
  color: var(--yh-dark) !important;
  background: transparent;
}

.yh-btn-dark:hover {
  background: var(--yh-dark);
  color: #fff !important;
}

.yh-btn-gold {
  border: 2px solid var(--yh-gold) !important;
  color: var(--yh-gold) !important;
  background: transparent;
}

.yh-btn-gold:hover {
  background: var(--yh-gold);
  color: var(--yh-dark) !important;
}

.yh-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ DIVIDER ============ */

.yh-divider {
  width: 50px;
  height: 2px;
  background: var(--yh-gold);
  margin: 0 auto 24px;
  border: none;
}

/* ============ FAQ ACCORDION ============ */

.yh-faq-item {
  background: var(--yh-bg);
  border: 1px solid var(--yh-border);
  margin-bottom: 8px;
  overflow: hidden;
  transition: var(--yh-transition);
}

.yh-faq-item:hover {
  border-color: var(--yh-gold);
}

.yh-faq-item summary {
  padding: 20px 24px;
  font-family: Raleway, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--yh-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.yh-faq-item summary::-webkit-details-marker {
  display: none;
}

.yh-faq-item summary::after {
  content: +;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--yh-gold);
  transition: var(--yh-transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.yh-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.yh-faq-item[open] summary {
  color: var(--yh-dark);
  border-bottom: 1px solid var(--yh-border);
}

.yh-faq-answer {
  padding: 20px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--yh-text-light);
}

.yh-faq-category {
  font-family: Raleway, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--yh-text-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--yh-border);
}

.yh-faq-category:first-child {
  margin-top: 0;
}

/* ============ GALLERY ============ */

.yh-gallery {
  column-count: 3;
  column-gap: 16px;
}

.yh-gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.yh-gallery-item img {
  width: 100%;
  display: block;
  transition: var(--yh-transition);
}

.yh-gallery-item:hover img {
  transform: scale(1.03);
}

/* ============ FEATURE BAR ============ */

.yh-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.yh-feature-tag {
  border: 1px solid var(--yh-border);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--yh-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--yh-transition);
  background: var(--yh-bg);
}

.yh-feature-tag:hover {
  border-color: var(--yh-gold);
  color: var(--yh-dark);
}

/* ============ STATS BAR ============ */

.yh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 20px 0;
}

.yh-stat-num {
  font-family: Raleway, sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--yh-gold);
  line-height: 1;
}

.yh-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============ BLOG POST STYLES ============ */

.single .entry-content {
  max-width: 780px;
  margin: 0 auto;
}

.single .entry-content h1 {
  font-family: Raleway, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--yh-dark);
}

.single .entry-content h2 {
  font-family: Raleway, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--yh-dark);
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--yh-border);
}

.single .entry-content h3 {
  font-family: Raleway, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--yh-dark);
  margin-top: 1.8em;
}

.single .entry-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--yh-text-light);
}

.single .entry-content a {
  color: var(--yh-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--yh-gold);
  transition: var(--yh-transition);
}

.single .entry-content a:hover {
  color: var(--yh-gold);
}

.single .entry-content ul {
  list-style: none;
  padding-left: 0;
}

.single .entry-content ul li {
  padding-left: 1.6em;
  position: relative;
  margin-bottom: 0.6em;
  line-height: 1.7;
  color: var(--yh-text-light);
}

.single .entry-content ul li::before {
  content: ;
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--yh-gold);
  border-radius: 50%;
}

.single .entry-content ol {
  padding-left: 0;
  counter-reset: item;
  list-style: none;
}

.single .entry-content ol li {
  padding-left: 2.4em;
  position: relative;
  margin-bottom: 0.8em;
  counter-increment: item;
  line-height: 1.7;
  color: var(--yh-text-light);
}

.single .entry-content ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 24px;
  height: 24px;
  border: 2px solid var(--yh-gold);
  color: var(--yh-gold);
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  overflow: hidden;
}

.single .entry-content thead tr {
  background: var(--yh-dark);
  color: #fff;
}

.single .entry-content thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-family: Raleway, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.single .entry-content tbody tr {
  border-bottom: 1px solid var(--yh-border);
}

.single .entry-content tbody td {
  padding: 12px 18px;
  font-size: 0.95rem;
  color: var(--yh-text-light);
}

.single .entry-content tbody tr:nth-child(even) {
  background: var(--yh-bg-alt);
}

.single .entry-content strong {
  color: var(--yh-dark);
}

/* Blog archive cards */
.ast-separate-container .ast-article-post {
  overflow: hidden;
  transition: var(--yh-transition);
  border: 1px solid var(--yh-border);
}

.ast-separate-container .ast-article-post:hover {
  border-color: var(--yh-gold);
  box-shadow: var(--yh-shadow-hover);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .yh-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .yh-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .yh-two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .yh-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .yh-gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .yh-hero {
    min-height: 380px;
  }
  .yh-hero h1 {
    font-size: 2.2rem;
  }
  .yh-hero-sub {
    font-size: 0.95rem;
  }
  .yh-hero-overlay {
    padding-top: 100px;
  }
  .yh-section {
    padding: 50px 16px;
  }
  .yh-section h2 {
    font-size: 2rem;
  }
  .yh-grid-2,
  .yh-grid-3,
  .yh-grid-4 {
    grid-template-columns: 1fr;
  }
  .yh-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .yh-stat-num {
    font-size: 2rem;
  }
  .yh-gallery {
    column-count: 1;
  }
  .yh-cta {
    padding: 60px 16px;
  }
  .yh-cta h2 {
    font-size: 1.8rem;
  }
}

/* ============ UTILITY ============ */

.yh-text-center { text-align: center; }
.yh-mt-0 { margin-top: 0 !important; }
.yh-mb-0 { margin-bottom: 0 !important; }

html { scroll-behavior: smooth; }
::selection { background: var(--yh-gold); color: var(--yh-dark); }

/* Override Astra defaults */
.ast-page-builder-template .entry-content .yh-section h2,
.ast-page-builder-template .entry-content .yh-section h3,
.entry-content .yh-section h2,
.entry-content .yh-section h3 {
  border: none !important;
  padding: 0 !important;
}

.entry-content .yh-card a,
.entry-content .yh-section a {
  border: none !important;
}
