/* =============================================
   SREE BALAJI – FAQ Page Styles
   Appended to public/css/style.css
   (Or include via a separate faq.css link in head.ejs)
============================================= */

/* ===== FAQ HERO ===== */
.faq-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.faq-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1600&q=80') center/cover no-repeat;
}

.faq-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,122,110,0.92) 0%, rgba(26,31,46,0.88) 100%);
}

.faq-hero-skew {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg-light, #f8f9fa);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.faq-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  width: 100%;
}

.faq-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold, #e9c46a);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(233,196,106,0.4);
  padding-bottom: 4px;
}

.faq-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.faq-hero-title em {
  color: var(--gold, #e9c46a);
  font-style: italic;
}

.faq-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ===== SEARCH BAR ===== */
.faq-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal, #2a9d8f);
  font-size: 16px;
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 14px 52px 14px 48px;
  border: none;
  border-radius: 50px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  background: white;
  color: var(--text-dark, #2c2c2c);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  outline: none;
  transition: box-shadow 0.3s;
}

.faq-search-input:focus {
  box-shadow: 0 8px 32px rgba(42,157,143,0.35);
}

.faq-search-input::placeholder { color: #aaa; }

.faq-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.faq-search-clear:hover { color: var(--teal, #2a9d8f); }

/* ===== CATEGORY TABS ===== */
.faq-cats-section {
  background: var(--bg-light, #f8f9fa);
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 62px;
  z-index: 100;
}

.faq-cats {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}

.faq-cats::-webkit-scrollbar { display: none; }

.faq-cat-btn {
  flex-shrink: 0;
  background: white;
  border: 1.5px solid #e0e0e0;
  color: var(--text-mid, #555);
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.faq-cat-btn i { font-size: 13px; }

.faq-cat-btn:hover {
  border-color: var(--teal, #2a9d8f);
  color: var(--teal, #2a9d8f);
  background: #f0faf8;
}

.faq-cat-btn.active {
  background: var(--teal, #2a9d8f);
  border-color: var(--teal, #2a9d8f);
  color: white;
  box-shadow: 0 4px 14px rgba(42,157,143,0.3);
}

/* ===== FAQ MAIN ===== */
.faq-main-section {
  background: var(--bg-light, #f8f9fa);
  padding: 50px 0 70px;
}

/* ===== FAQ GROUP ===== */
.faq-group {
  margin-bottom: 42px;
  animation: fadeUpIn 0.4s ease both;
}

@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--teal-dark, #1a7a6e);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-group-icon {
  width: 36px;
  height: 36px;
  background: var(--teal, #2a9d8f);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  flex-shrink: 0;
}

/* ===== FAQ ACCORDION ITEM ===== */
.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:hover {
  border-color: rgba(42,157,143,0.2);
  box-shadow: 0 4px 16px rgba(42,157,143,0.1);
}

.faq-item.open {
  border-color: var(--teal-light, #52b69a);
  box-shadow: 0 4px 20px rgba(42,157,143,0.15);
}

.faq-item.faq-hidden {
  display: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark, #2c2c2c);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.2s;
  line-height: 1.45;
}

.faq-question:hover { color: var(--teal, #2a9d8f); }

.faq-item.open .faq-question {
  color: var(--teal-dark, #1a7a6e);
}

.faq-chevron {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-light, #f8f9fa);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--teal, #2a9d8f);
  transition: transform 0.3s, background 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--teal, #2a9d8f);
  color: white;
}

/* Answer panel — slide open */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 20px 20px;
}

.faq-answer p {
  font-size: 13.5px;
  color: var(--text-mid, #555);
  line-height: 1.8;
  margin: 0;
  border-top: 1px dashed #e8e8e8;
  padding-top: 14px;
}

.faq-list {
  margin: 10px 0 0 0;
  padding-left: 20px;
  color: var(--text-mid, #555);
  font-size: 13.5px;
  line-height: 2;
}

.faq-list li::marker { color: var(--teal, #2a9d8f); }

/* ===== NO RESULTS ===== */
.faq-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mid, #555);
}

.faq-no-results p {
  font-size: 15px;
  margin: 14px 0 6px;
}

.faq-no-results span {
  font-size: 13px;
  color: var(--text-light, #888);
}

.faq-no-results a {
  color: var(--teal, #2a9d8f);
  text-decoration: underline;
  cursor: pointer;
}

/* ===== SEARCH HIGHLIGHT ===== */
.faq-highlight {
  background: rgba(233,196,106,0.4);
  border-radius: 2px;
  padding: 0 2px;
}

/* ===== SIDEBAR ===== */
.faq-sidebar {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1.5px solid transparent;
  transition: border-color 0.2s;
}

.faq-sidebar-card:hover { border-color: rgba(42,157,143,0.2); }

/* Contact card */
.faq-contact-card { border-top: 4px solid var(--teal, #2a9d8f); }

.faq-sidebar-icon {
  width: 42px;
  height: 42px;
  background: var(--teal, #2a9d8f);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  margin-bottom: 12px;
}

.faq-sidebar-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--teal-dark, #1a7a6e);
  margin-bottom: 6px;
}

.faq-sidebar-card p {
  font-size: 13px;
  color: var(--text-mid, #555);
  margin-bottom: 14px;
  line-height: 1.65;
}

.faq-sidebar-btn {
  display: inline-block;
  background: var(--teal, #2a9d8f);
  color: white;
  text-decoration: none;
  padding: 9px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: background 0.2s;
}

.faq-sidebar-btn:hover { background: var(--teal-dark, #1a7a6e); color: white; }

/* Call card */
.faq-call-card { border-top: 4px solid var(--gold-dark, #c9a227); }

.faq-call-icon { background: var(--gold-dark, #c9a227); }

.faq-phone {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem !important;
  font-weight: 700;
  color: var(--teal-dark, #1a7a6e) !important;
  margin-bottom: 2px !important;
}

.faq-hours {
  font-size: 12px !important;
  color: var(--text-light, #888) !important;
  margin: 0 !important;
}

/* Quick links */
.faq-sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-light, #888);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.faq-quick-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-quick-link {
  font-size: 13px;
  color: var(--text-mid, #555);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-quick-link::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-light, #52b69a);
  flex-shrink: 0;
}

.faq-quick-link:hover {
  background: #f0faf8;
  color: var(--teal, #2a9d8f);
  border-left-color: var(--teal, #2a9d8f);
}

/* Stats card */
.faq-stats-card {
  background: var(--teal, #2a9d8f) !important;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 18px !important;
}

.faq-stat { text-align: center; }

.faq-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.faq-stat-label {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.faq-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .faq-sidebar { position: static; }
}

@media (max-width: 576px) {
  .faq-hero-content { padding: 100px 0 70px; }
  .faq-cat-btn { font-size: 11px; padding: 7px 14px; }
  .faq-question { font-size: 13px; padding: 14px 16px; }
}
