/* ========================================
   The Atelier Index – FAQ Page Styles
   page-faq.php
======================================== */

/* ---- Hero ---- */
.atelier-index-hero {
    position: relative;
    overflow: hidden;
    background-color: #f5f2ee;
}

.atelier-index-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    z-index: 1;
}

.atelier-index-hero .edgtf-title-wrapper {
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atelier-index-hero-content {
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.atelier-index-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0 0 20px;
}

.atelier-index-subtitle {
    font-size: 20px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.5;
    font-weight: 600;
}

/* ---- Section ---- */
.atelier-faq-section {
    padding: 80px 0 100px;
    background: #ffffff;
    margin-top: 0 !important;
}

.atelier-faq-intro {
    margin-bottom: 60px;
}

/* ---- Accordion — 2-column on desktop ---- */
.atelier-faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 56px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Each column holds its own stack of items */
.atelier-faq-column {
    display: block;
}

.atelier-faq-column .atelier-faq-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.atelier-faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.atelier-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 26px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
}

.atelier-faq-question-text {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #1a1a1a;
    line-height: 1.5;
    flex: 1;
}

.atelier-faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: #1a1a1a;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
    font-style: normal;
    line-height: 1;
}

.atelier-faq-item.is-open .atelier-faq-icon {
    transform: rotate(45deg);
}

.atelier-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.atelier-faq-item.is-open .atelier-faq-answer {
    max-height: 1000px;
}

.atelier-faq-answer-inner {
    padding: 0 0 28px;
}

.atelier-faq-answer-inner p {
    font-size: 14px;
    line-height: 1.85;
    color: #666;
    margin: 0;
    letter-spacing: 0.02em;
}

.atelier-faq-answer-inner p:not(:last-child) {
    margin-bottom: 18px;
}

/* ========================================
   Responsive Fixes
======================================== */
@media only screen and (max-width: 768px) {
    .atelier-index-hero.lia-hero-fix {
        height: 60vh !important;
        min-height: 400px !important;
        background-color: #f5f2ee !important;
    }

    /* Target the exact wrapper to center EVERYTHING vertically */
    .atelier-index-hero.lia-hero-fix .edgtf-title-wrapper {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 50px !important;
        /* Reduced offset for better visual balance */
        margin: 0 !important;
        position: relative !important;
        width: 100% !important;
        transform: none !important;
        text-align: center !important;
    }

    /* Reset potential table-cell or top-alignment from theme */
    .atelier-index-hero.lia-hero-fix .edgtf-title-inner {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        vertical-align: middle !important;
    }

    .atelier-index-hero.lia-hero-fix .edgtf-grid {
        width: 100% !important;
        display: block !important;
        padding: 0 !important;
    }

    .atelier-index-hero-content {
        padding: 0 25px !important;
        margin: 0 auto !important;
        display: inline-block !important;
        /* Keep it centered as a block */
        width: 100% !important;
        box-sizing: border-box !important;
        margin-top: 100px !important; /* Manual adjustment for perfect centering */
    }

    .atelier-index-title {
        font-size: 34px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        color: #ffffff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .atelier-index-subtitle {
        font-size: 18px !important;
        /* Slightly smaller for mobile balance */
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        color: #ffffff !important;
        visibility: visible !important;
        opacity: 0.9 !important;
    }

    .atelier-faq-section {
        padding: 50px 0 70px;
    }

    .atelier-faq-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

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