/* ==========================================================================
   LOKMANTHAN FAQ PAGE STYLESHEET
   Rajasthani Heritage & Cultural Aesthetic
   ========================================================================== */

:root {
  --faq-bg-page: #fbf5ef;
  --faq-bg-light: #fff9f4;
  --faq-bg-soft: #f8eee7;
  --faq-bg-card: #fdfaf7;
  --faq-bg-card-expanded: #fcf6f1;
  --faq-bg-tab-active: #f2ded3;
  --faq-bg-cta-box: #fdf9f5;
  --faq-bg-contact-card: #f9ece2;
  
  --faq-maroon: #76251f;
  --faq-maroon-dark: #5c1d19;
  --faq-terracotta: #a84a42;
  --faq-accent: #b45b50;
  --faq-gold-muted: #b98765;
  --faq-gold-sandstone: #c99e7b;
  
  --faq-text-dark: #332522;
  --faq-text-body: #4a3b37;
  --faq-text-muted: #6e5e59;
  --faq-text-light: #8a7873;
  
  --faq-border-main: #ebdcd1;
  --faq-border-subtle: #efe4db;
  --faq-border-card: #e8d7cb;
  --faq-border-contact: #ebd6c7;
  
  --faq-badge-collapsed-bg: #f5e4da;
  --faq-badge-collapsed-text: #76251f;
  --faq-badge-expanded-bg: #76251f;
  --faq-badge-expanded-text: #ffffff;
  
  --faq-font-hindi: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --faq-font-serif-hindi: 'Noto Serif Devanagari', serif;
  --faq-font-eyebrow: 'Inter', sans-serif;
  
  --faq-radius-sm: 8px;
  --faq-radius-md: 12px;
  --faq-radius-lg: 16px;
  --faq-radius-pill: 9999px;
  
  --faq-shadow-subtle: 0 4px 18px rgba(118, 37, 31, 0.04);
  --faq-shadow-hover: 0 6px 22px rgba(118, 37, 31, 0.08);
}

.faq-page-main {
  background-color: var(--faq-bg-page);
  color: var(--faq-text-body);
  font-family: var(--faq-font-hindi);
  line-height: 1.6;
  overflow-x: hidden;
}

.faq-page-main .faq-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 50px);
}

/* --- Ornamental Elements --- */
.faq-page-main .ornament-divider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  vertical-align: middle;
}

.faq-page-main .ornament-divider .line {
  display: inline-block;
  height: 1px;
  width: 45px;
  background-color: var(--faq-gold-muted);
  opacity: 0.6;
}

.faq-page-main .ornament-divider.small .line {
  width: 25px;
}

.faq-page-main .ornament-divider svg {
  display: block;
}

/* Eyebrow Styling */
.faq-page-main .eyebrow {
  font-family: var(--faq-font-eyebrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--faq-terracotta);
  display: block;
  margin-bottom: 6px;
  white-space: nowrap;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.faq-hero {
  position: relative;
  background-color: var(--faq-bg-page);
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0 44px 0;
  border-bottom: 1px solid var(--faq-border-subtle);
}

/* Right Palace Background Image with Seamless Gradient Blend */
.hero-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 0.85) 35%, #000 60%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 0.85) 35%, #000 60%);
}

.hero-image-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--faq-bg-page));
  pointer-events: none;
}

/* Cultural Vertical Slogan in Upper Right Hero */
.hero-cultural-slogan {
  position: absolute;
  top: 36px;
  right: 48px;
  z-index: 3;
  text-align: right;
  pointer-events: none;
}

.slogan-text {
  font-family: var(--faq-font-hindi);
  font-size: 15px;
  font-weight: 600;
  color: var(--faq-maroon);
  line-height: 1.55;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.slogan-divider {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

/* Hero Content Container (Left Column) */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 580px;
}

.hero-title {
  font-family: var(--faq-font-hindi);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--faq-maroon);
  line-height: 1.25;
  margin-top: 4px;
  margin-bottom: 6px;
}

.hero-divider {
  margin: 6px 0 10px 0;
}

.hero-subtitle {
  font-family: var(--faq-font-hindi);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  color: var(--faq-text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 14px;
  color: var(--faq-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* --- Search Bar --- */
.hero-search-wrapper {
  max-width: 500px;
}

.search-container {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--faq-border-main);
  border-radius: var(--faq-radius-pill);
  padding: 4px 6px 4px 20px;
  box-shadow: 0 4px 14px rgba(118, 37, 31, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-container:focus-within {
  border-color: var(--faq-terracotta);
  box-shadow: 0 4px 18px rgba(118, 37, 31, 0.12);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faq-text-muted);
  margin-right: 12px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--faq-font-hindi);
  font-size: 15px;
  color: var(--faq-text-dark);
}

.search-input::placeholder {
  color: #968681;
  font-size: 14px;
}

.search-submit-btn {
  background-color: var(--faq-maroon);
  color: #ffffff;
  font-family: var(--faq-font-hindi);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--faq-radius-pill);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.search-submit-btn:hover {
  background-color: var(--faq-maroon-dark);
}

.search-submit-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   CATEGORY NAVIGATION STRIP
   ========================================================================== */
.faq-categories-section {
  background-color: #fbf6f1;
  border-bottom: 1px solid var(--faq-border-subtle);
  padding: 12px 0 10px 0;
  position: sticky;
  top: 70px;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.categories-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px 10px 8px;
  border-radius: var(--faq-radius-md);
  color: var(--faq-text-dark);
  transition: all 0.2s ease;
  position: relative;
  min-width: 120px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.category-tab .category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faq-text-muted);
  margin-bottom: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.category-tab .category-icon svg {
  width: 22px;
  height: 22px;
}

.category-tab .category-label {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.category-tab .active-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background-color: var(--faq-maroon);
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-tab:hover {
  background-color: rgba(242, 222, 211, 0.5);
}

.category-tab.active {
  background-color: var(--faq-bg-tab-active);
  color: var(--faq-maroon);
}

.category-tab.active .category-icon {
  color: var(--faq-maroon);
  transform: translateY(-1px);
}

.category-tab.active .category-label {
  color: var(--faq-maroon);
  font-weight: 700;
}

.category-tab.active .active-indicator {
  opacity: 1;
}

/* ==========================================================================
   FAQ CONTENT SECTION
   ========================================================================== */
.faq-section {
  position: relative;
  background-color: var(--faq-bg-page);
  padding: 48px 0 48px 0;
  overflow: hidden;
}

/* Left Mandala Side Decorative Asset */
.faq-left-mandala {
  position: absolute;
  left: 0;
  top: 10px;
  width: 320px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.faq-left-mandala img {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section Header (Category Title + Quote) */
.faq-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
  padding: 0 4px;
}

.faq-header-left {
  max-width: 55%;
}

.faq-section-title {
  font-family: var(--faq-font-hindi);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--faq-maroon);
  line-height: 1.25;
  margin-bottom: 4px;
}

.faq-header-right {
  text-align: right;
  max-width: 45%;
}

.faq-quote {
  font-family: var(--faq-font-serif-hindi);
  font-size: 16px;
  font-weight: 600;
  color: var(--faq-maroon);
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

/* Accordion Container */
.faq-list-wrapper {
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* FAQ Card */
.faq-card {
  background-color: var(--faq-bg-card);
  border: 1px solid var(--faq-border-main);
  border-radius: var(--faq-radius-lg);
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-card:hover {
  border-color: #dfcbbe;
}

.faq-card.expanded {
  background-color: var(--faq-bg-card-expanded);
  border-color: #e5d1c3;
  box-shadow: 0 3px 12px rgba(118, 37, 31, 0.04);
}

/* FAQ Header Trigger Button */
.faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.faq-header:focus-visible {
  outline: 2px solid var(--faq-maroon);
  outline-offset: -2px;
}

/* Number Badge */
.faq-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--faq-font-eyebrow);
  font-size: 13px;
  font-weight: 700;
  background-color: var(--faq-badge-collapsed-bg);
  color: var(--faq-badge-collapsed-text);
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-card.expanded .faq-badge {
  background-color: var(--faq-badge-expanded-bg);
  color: var(--faq-badge-expanded-text);
}

/* Question Heading */
.faq-question {
  flex: 1;
  font-family: var(--faq-font-hindi);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--faq-text-dark);
  line-height: 1.45;
}

/* Chevron Icon */
.faq-chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faq-maroon);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card.expanded .faq-chevron {
  transform: rotate(180deg);
}

/* FAQ Body / Answer */
.faq-body {
  display: none;
}

.faq-card.expanded .faq-body {
  display: block;
}

.faq-content {
  padding: 0 24px 22px 78px;
}

.faq-content p {
  font-size: 14.5px;
  color: var(--faq-text-body);
  line-height: 1.7;
}

/* No Results Notification */
.faq-no-results {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--faq-bg-card);
  border: 1px dashed var(--faq-border-main);
  border-radius: var(--faq-radius-lg);
  color: var(--faq-text-muted);
  font-size: 15px;
  margin-top: 10px;
}

/* ==========================================================================
   LOWER CTA SECTION (STILL HAVE A QUESTION?)
   ========================================================================== */
.contact-cta-section {
  width: 100%;
  padding: 10px 0 20px 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.contact-cta-section.full-bleed {
  width: 100%;
  margin: 0;
  padding: 10px 0 20px 0;
}

.cta-box {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: relative;
  overflow: visible;
  box-shadow: none;
}

/* Left Chhatri Image touching left border (0px gap) */
.cta-image-col {
  height: 300px;
  min-height: 260px;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  line-height: 0;
}

.cta-image-col img {
  height: 300px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: left bottom;
  margin: 0;
  padding: 0;
}

/* Center Content */
.cta-text-col {
  padding: 20px clamp(16px, 3vw, 40px);
  max-width: 520px;
}

.cta-heading {
  font-family: var(--faq-font-hindi);
  font-size: 26px;
  font-weight: 700;
  color: var(--faq-maroon);
  line-height: 1.3;
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 14px;
  color: var(--faq-text-body);
  line-height: 1.65;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--faq-maroon);
  color: #ffffff;
  font-family: var(--faq-font-hindi);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--faq-radius-pill);
  box-shadow: 0 3px 12px rgba(118, 37, 31, 0.18);
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.cta-button:hover {
  background-color: var(--faq-maroon-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.cta-button svg {
  flex-shrink: 0;
}

/* Right Side Contact Cards touching right border */
.cta-cards-col {
  padding: 10px clamp(16px, 4vw, 60px) 10px 10px;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.contact-cards-group {
  display: flex;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.contact-card {
  width: 106px;
  min-height: 112px;
  background-color: var(--faq-bg-contact-card);
  border: 1px solid var(--faq-border-contact);
  border-radius: var(--faq-radius-md);
  padding: 18px 8px 16px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: #dfc2b1;
  box-shadow: 0 4px 14px rgba(118, 37, 31, 0.08);
  color: inherit;
}

.contact-card-icon {
  color: var(--faq-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.contact-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--faq-text-dark);
  line-height: 1.35;
}

.contact-card-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--faq-text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   DECORATIVE FOOTER HERITAGE ARTWORK
   ========================================================================== */
.footer-heritage-section {
  width: 100%;
  padding: 30px 0 0 0;
  overflow: hidden;
  position: relative;
  line-height: 0;
  background-color: var(--faq-bg-page);
}

.footer-skyline-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

.footer-skyline-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: bottom center;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {
  .faq-page-main .hero-content {
    max-width: 480px;
  }
  
  .faq-page-main .hero-title {
    font-size: 32px;
  }
  
  .cta-box {
    grid-template-columns: 220px 1fr auto;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .faq-hero {
    min-height: auto;
    padding: 32px 0;
  }
  
  .hero-cultural-slogan {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 22px auto 0 auto;
  }
  
  .slogan-divider {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    width: 100%;
    opacity: 0.18;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  }
  
  .faq-page-main .hero-content {
    max-width: 100%;
  }
  
  .faq-categories-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
  }
  
  .categories-nav {
    min-width: 650px;
    padding-bottom: 4px;
  }
  
  .cta-box {
    grid-template-columns: 1fr;
    padding: 0;
  }
  
  .cta-image-col {
    height: 180px;
    min-height: 180px;
  }
  
  .cta-image-col img {
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  }
  
  .cta-text-col {
    padding: 18px 24px 10px 24px;
    max-width: 100%;
  }
  
  .cta-cards-col {
    padding: 10px 24px 24px 24px;
  }
  
  .contact-cards-group {
    justify-content: flex-start;
  }
  
  .faq-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .faq-header-left, .faq-header-right {
    max-width: 100%;
    text-align: left;
  }
  
  .faq-header-right .ornament-divider {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .faq-page-main .hero-title {
    font-size: 27px;
  }
  
  .faq-page-main .hero-subtitle {
    font-size: 16px;
  }
  
  .search-container {
    width: 100%;
  }
  
  .faq-content {
    padding: 0 16px 18px 16px;
  }
  
  .faq-header {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .faq-badge {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .faq-question {
    font-size: 15px;
  }
  
  .contact-cards-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 10px;
  }
  
  .contact-card {
    width: 100%;
    min-height: 100px;
    padding: 14px 4px 12px 4px;
  }
}
