/* About Page Styles - Formal school aesthetic */
:root {
    --primary: #20246b;
    --secondary: #ebf5ff;
    --tertiary: #ffcf01;
    --muted: #6b7280;
    --border: rgba(32, 36, 107, 0.08);
}

body {
    min-height: 100vh;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.about-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.about-container:hover {
    box-shadow: 0 8px 24px rgba(15, 35, 71, 0.08);
}

.about-image {
    flex: 1 1 45%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9fafb;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex: 1 1 55%;
    padding: 2.5rem 2.5rem;
}

.about-content h2 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
    border-bottom: 3px solid var(--tertiary);
    padding-bottom: 0.5rem;
}

.about-content p {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.feature-list {
    margin-top: 1.5rem;
    padding-left: 0;
    list-style: none;
    background: var(--secondary);
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--tertiary);
}

.feature-list li {
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--tertiary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* FAQ Section Styles - updated to match pasted design */
.faq-section {
    margin-top: 3rem;
    padding: 2.5rem 0;
    border-top: 2px solid var(--border);
}

.faq-section h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.faq-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--tertiary);
    border-radius: 2px;
}

.faq-accordion-container {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 18px rgba(15, 35, 71, 0.06);
    transform: translateY(-4px);
}

.faq-item button {
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: #fff;
    border: none;
    text-align: left;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.faq-item button:hover {
    background: #fbfbfc;
    color: var(--tertiary);
}

.faq-item button::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--tertiary);
    font-weight: 700;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Ensure the question text stays left-aligned and can wrap */
.faq-item button > span {
    display: inline-block;
    flex: 1 1 auto;
    text-align: left;
    white-space: normal;
}

/* use plus/minus via data attribute change instead of glyph switching to keep simple */
.faq-item.active button::before {
    content: "-";
}

.faq-item:not(.active) button::before {
    content: "+";
}

.faq-item.active button {
    background: #fbfbfc;
    color: var(--tertiary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer-content {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    color: #374151;
    line-height: 1.7;
    background: #fafbfc;
}

.faq-answer-content p {
    margin-bottom: 0.75rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ol,
.faq-answer-content ul {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
    color: #374151;
}

@media (max-width: 991px) {
    .about-wrapper {
        padding: 1.5rem 1rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        min-height: 300px;
    }

    .about-content {
        padding: 1.5rem 1.25rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
    }
}
