/* Define CSS Variables for Neoleaf */
:root {
    --color-slate: #0f172a; /* Slate 950 */
    --color-green: #22c55e; /* Light Green */
    --color-white: #ffffff;
    --color-grey: #6b7280; /* Neutral grey */
    --color-light-grey: #f1f5f9; /* Slate 100 */
    --color-dark-slate: #1e293b;
    --transition-speed: 0.3s;
}
/* General container and resets (assuming these are in a global file) */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
a { text-decoration: none; }


/* ===== HERO ===== */
.faq-hero {
  position: relative;
  background: url('uploads/market/What\ To\ Know\ Before\ You\ Buy\ Products\ From\ A\ TikTok\ Shop.jpeg') center/cover no-repeat;
  color: #fff;
  text-align: left;
  padding: 8rem 8%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.faq-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}
.faq-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  z-index: 2;
}
.faq-hero span { color: var(--color-green); }
.faq-hero p {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #e2e8f0;
  z-index: 2;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: #f9fafb;
  padding: 6rem 0;
}
.tag-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.tag-line .line {
  width: 40px;
  height: 3px;
  background: var(--color-green);
}
.tag-line .text {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #475569;
}
.faq-section h2 {
  font-size: 2.2rem;
  color: #1e293b;
  margin-bottom: 2rem;
}

/* Tabs */
.faq-tabs {
  text-align: center;
  margin-bottom: 2.5rem;
}
.tab-btn {
  background: #e2e8f0;
  color: #1e293b;
  border: none;
  padding: 0.6rem 1.4rem;
  margin: 0.4rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-speed);
  font-weight: 600;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--color-green);
  color: #fff;
}

/* FAQ Accordion */
.faq-container {
    /* Ensures smooth transition when category display is toggled */
    transition: opacity 0.4s ease;
}

.faq-item {
  background: #fff;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow var(--transition-speed);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-dark-slate);
}
.faq-question:hover {
  background: #f1f5f9;
}
.faq-question i {
    transition: transform 0.4s ease;
}

.faq-answer {
  /* This is the key for the accordion smooth effect */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: var(--color-light-grey);
}
/* Content wrapper inside the answer to apply padding correctly */
.faq-answer-content {
    padding: 0 1.2rem;
}
.faq-answer p {
    padding-bottom: 1.2rem; /* Applies to the text inside */
    margin: 0;
    color: var(--color-dark-slate);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Active state for accordion */
.faq-item.active .faq-answer {
  /* Note: 400px is a placeholder max-height. If answers are very long, this may need adjustment */
  max-height: 500px; 
}
.faq-item.active .faq-question {
    background: var(--color-light-grey);
    color: var(--color-green);
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--color-green);
}


/* ===== CTA SECTION ===== */
.faq-cta {
  background: var(--color-slate);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}
.faq-cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-whatsapp, .btn-call {
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: var(--transition-speed);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  animation: pulse 2s infinite;
}
.btn-call {
  background: #fff;
  color: var(--color-slate);
}
.btn-whatsapp:hover, .btn-call:hover {
  transform: translateY(-3px);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .faq-hero {
        padding: 6rem 5%;
    }
    .faq-hero h1 {
        font-size: 2.5rem;
    }
    .faq-section h2 {
        font-size: 1.8rem;
    }
}
/* ===== HERO ===== */
.faq-hero {
  position: relative;
  /* ... existing styles ... */
  z-index: 1; /* Added to establish a stacking context for its children */
}
.faq-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 27, 0.92);
  z-index: 2; /* Overlay should be above the hero background */
}
.faq-hero .container { /* Added this style to ensure container's content is above overlay */
  position: relative; /* Create a new stacking context for children */
  z-index: 3; /* Ensure content is above the overlay */
}
.faq-hero h1,
.faq-hero p {
  /* No direct z-index needed here if container has it, but good to clarify */
  position: relative; /* Essential to ensure z-index property applies */
  z-index: 3; /* Explicitly puts them above the overlay */
}


/* ---------------------------------------------------------------------- */
/* --- CTA SECTION: FOCUSED CALLS TO ACTION --- */
/* ---------------------------------------------------------------------- */
.faq-cta {
    /* Use the primary color as the background for strong contrast */
    background-color: #22c55e;
    padding: 4rem 0;
    text-align: center;
}

.faq-cta h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b; 
    margin-bottom: 0.75rem;
}

.faq-cta p {
    font-size: 1.1rem;
    /* Slightly darker text for contrast on the green background */
    color: rgba(30, 41, 59, 0.85); 
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    gap: 1.5rem;
}

.cta-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth transition */
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.cta-buttons a i {
    margin-right: 0.75rem;
}

/* WhatsApp Button - High Contrast */
.btn-whatsapp {
    background-color: #1e293b; 
    color: #22c55e; /* Green text on dark button */
    border: 2px solid #1e293b;
}

.btn-whatsapp:hover {
    background-color: #0f172a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Call Button - Secondary Contrast */
.btn-call {
    background-color: var(--color-white);
    color:  #1e293b;
    border: 2px solid var(--color-white);
}

.btn-call:hover {
    background-color:  #f8fafc;;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Desktop CTA Layout */
@media (min-width: 768px) {
    .cta-buttons {
        flex-direction: row; /* Side-by-side on desktop */
        gap: 2rem;
    }
    .cta-buttons a {
        width: auto;
    }
}
