/* ======================================
   FAQ Section Styles
   ====================================== */

/* FAQ Hero */
.faq-hero {
  position: relative;
  min-height: 400px;
  padding: calc(var(--space-20) + 80px) 0 var(--space-16);
  background-image: url("/assets/img/content/blog-hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(100, 5, 15, 0.72) 0%,
    rgba(0, 40, 70, 0.7) 40%,
    rgba(0, 55, 90, 0.82) 100%
  );
  z-index: 1;
}

.faq-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.faq-hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  color: white;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.faq-hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* FAQ Section Container */
.faq-section {
    padding: var(--space-16) 0;
    background: var(--gray-50);
}

/* FAQ Header */
.faq-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-4);
    position: relative;
    padding-bottom: var(--space-6);
}

.faq-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-600);
    border-radius: var(--radius-full);
}

.faq-main-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-black);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.faq-subtitle {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin: 0;
}

/* FAQ Accordion Container */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Item */
.faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: var(--space-3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* FAQ Question Button */
.faq-question {
    padding: 0;
}

.faq-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.faq-question-btn:hover {
    background: var(--gray-50);
}

.faq-question-btn:focus {
    outline: none;
}

/* FAQ Question Number Badge */
.faq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: 10px;
    transition: all var(--transition-base);
}

.faq-question-btn[aria-expanded="true"] .faq-number {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: scale(1.05);
}

/* FAQ Question Text */
.faq-question-text {
    flex: 1;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.5;
}

/* FAQ Icon (Chevron) */
.faq-icon {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform var(--transition-base);
}

.faq-question-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* FAQ Answer */
.faq-answer {
    padding: 0 var(--space-4) var(--space-4);
    padding-left: calc(var(--space-4) + 40px + var(--space-3)); /* Align with question text */
}

.faq-answer p {
    font-size: var(--text-base);
    color: var(--gray-700);
    line-height: 1.7;
    margin: 0;
}

.faq-answer p:not(:last-child) {
    margin-bottom: var(--space-3);
}

/* FAQ Empty State */
.faq-empty {
    text-align: center;
    padding: var(--space-12);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-empty p {
    font-size: var(--text-lg);
    color: var(--gray-500);
    margin: 0;
}

/* Collapse Animation Enhancement */
.faq-item .collapse {
    transition: height 0.3s ease;
}

.faq-item .collapsing {
    transition: height 0.3s ease;
}

/* Help Section */
.faq-help-section {
  padding: 50px 0;
  background: rgb(170, 7, 17);
}

.faq-help-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-10);
  align-items: center;
}

.faq-help-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.faq-help-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0 0 var(--space-3) 0;
}

.faq-help-text {
  font-size: 15px;
  line-height: 1.6;
  color: white;
  margin: 0;
}

.faq-help-submit {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  background: white;
  color: rgb(170, 7, 17);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.faq-help-submit:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: rgb(170, 7, 17);
}

/* ======================================
   Responsive Design
   ====================================== */

/* Tablet */
@media (max-width: 768px) {
    .faq-hero {
        min-height: 300px;
        padding: calc(var(--space-16) + 60px) 0 var(--space-12);
    }

    .faq-hero-title {
        font-size: var(--font-size-4xl);
    }

    .faq-hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .faq-section {
        padding: var(--space-12) 0;
    }

    .faq-header {
        margin-bottom: var(--space-6);
        padding-bottom: var(--space-4);
    }

    .faq-main-title {
        font-size: var(--text-3xl);
    }

    .faq-subtitle {
        font-size: var(--text-base);
    }

    .faq-item {
        margin-bottom: var(--space-3);
    }

    .faq-question-btn {
        padding: var(--space-3);
        gap: var(--space-3);
    }

    .faq-number {
        width: 36px;
        height: 36px;
        font-size: var(--text-sm);
    }

    .faq-question-text {
        font-size: var(--text-base);
    }

    .faq-answer {
        padding: 0 var(--space-3) var(--space-3);
        padding-left: calc(var(--space-3) + 36px + var(--space-3));
    }

    .faq-answer p {
        font-size: var(--text-sm);
    }

    .faq-help-section {
        padding: 40px 0;
    }

    .faq-help-grid {
        gap: var(--space-6);
    }

    .faq-help-title {
        font-size: 26px;
    }

    .faq-help-text {
        font-size: 14px;
    }

    .faq-help-submit {
        padding: 12px 28px;
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .faq-hero {
        min-height: 250px;
    }

    .faq-hero-title {
        font-size: var(--font-size-3xl);
    }

    .faq-hero-subtitle {
        font-size: var(--font-size-base);
    }

    .faq-section {
        padding: var(--space-8) 0;
    }

    .faq-header {
        margin-bottom: var(--space-5);
        padding-bottom: var(--space-3);
    }

    .faq-main-title {
        font-size: var(--text-2xl);
    }

    .faq-subtitle {
        font-size: var(--text-sm);
    }

    .faq-item {
        border-radius: 8px;
        margin-bottom: var(--space-3);
    }

    .faq-question-btn {
        padding: var(--space-2);
        gap: var(--space-2);
    }

    .faq-number {
        width: 32px;
        height: 32px;
        font-size: var(--text-sm);
        border-radius: 8px;
    }

    .faq-question-text {
        font-size: var(--text-sm);
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    .faq-answer {
        padding: 0 var(--space-3) var(--space-3);
        padding-left: calc(var(--space-3) + 32px + var(--space-2));
    }

    .faq-answer p {
        font-size: var(--text-sm);
        line-height: 1.6;
    }

    .faq-empty {
        padding: var(--space-8);
    }

    .faq-help-section {
        padding: var(--space-8) 0;
    }

    .faq-help-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .faq-help-right {
        justify-content: center;
    }

    .faq-help-title {
        font-size: 24px;
    }

    .faq-help-text {
        font-size: 14px;
    }

    .faq-help-submit {
        width: 100%;
        padding: 14px 32px;
        font-size: 15px;
    }
}
