/*
Theme Name: Jumpstart English Theme
Theme URI: https://jumpstartenglish.education
Description: Custom theme for Jumpstart English Column
Version: 1.0.1
Author: Jumpstart English
*/

:root {
    --primary-color: #0c7cc4;
    --text-color: #333;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    padding-top: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

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

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    position: relative;
    list-style: none;
    /* Hide default triangle */
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::-webkit-details-marker {
    display: none;
}

/* Hide external arrow icon (often added via pseudo-elements in blog.css) */
.faq-question::before,
.faq-question::after {
    display: none !important;
}

.faq-question h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.faq-icon::before {
    width: 16px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 16px;
    transition: transform 0.3s ease;
}

details[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    /* Turn into minus */
}

/* For better animation, we might need JS, but purely CSS: */
.faq-answer-container {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer {
    padding: 0 24px 24px;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer p {
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .faq-section h2 {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }
}

/* Article Table Styles (Preserving layout after removing wp-block-table classes) */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Article Body Links */
.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-body a:hover {
    text-decoration: none;
    opacity: 0.8;
}