/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #ae0114;
    --color-text-heading: #1f252d;
    --color-text-body: #1f252d;
    --color-border: #e1e8ec;
    --color-background: #ffffff;
    --color-background-dark: #1f252d;
    --font-primary: 'Source Sans 3', sans-serif;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-body);
    background-color: var(--color-background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-container {
    max-width: 900px;
}

/* Header */
.header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--color-text-heading);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-subtitle {
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.15px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 60px;
    font-weight: 600;
    line-height: 72px;
    letter-spacing: -1.5px;
    color: var(--color-text-heading);
}

/* FAQ Section */
.faq-section {
    padding: 0 120px 80px;
    background-color: var(--color-background);
}

.faq-group {
    margin-bottom: 40px;
}

.faq-group-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    height: 80px;
}

.faq-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.faq-group-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: var(--color-text-heading);
}

/* FAQ Items */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-text-heading);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question span {
    flex: 1;
    padding-right: 16px;
}

.faq-chevron {
    width: 12px;
    height: 6px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Highlighted Question */
.faq-item.highlighted .faq-question {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 16px 16px;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer p {
    margin-bottom: 12px;
    line-height: 24px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 12px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 24px;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    font-weight: 700;
}

.faq-answer ol {
    margin: 12px 0;
    padding-left: 24px;
    list-style-type: decimal;
}

/* FAQ Tables */
.faq-answer table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.faq-answer thead tr {
    background-color: #f5f5f5;
}

.faq-answer th,
.faq-answer td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}

.faq-answer th {
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--color-background-dark);
    padding: 40px 0;
    color: #ffffff;
}

.footer-content {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .faq-section {
        padding: 0 60px 60px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 56px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .nav {
        flex-direction: column;
        gap: 16px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 44px;
    }

    .faq-section {
        padding: 0 20px 40px;
    }

    .faq-container {
        max-width: 100%;
    }

    .faq-question {
        font-size: 18px;
    }

    .faq-group-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        line-height: 36px;
    }

    .faq-question {
        font-size: 16px;
        padding: 12px;
    }

    .faq-answer {
        padding: 0 12px;
    }

    .faq-item.active .faq-answer {
        padding: 0 12px 12px;
    }
}