/*
 * The seminar FAQ page (resources/views/seminar/faqs.blade.php), laid out as
 * the Grand Conference template's FAQs page: a band, the questions under
 * their headings on the left, the "ask us" panel on the right.
 *
 * Loaded only by that page. The colours come from ibrothers.css
 * (--wb-accent, --wb-deep), so the page follows the rest of the theme.
 */

.wb-faq-band {
    padding: 150px 0 90px;
    background-color: #111111;
    background-position: center;
    background-size: cover;
}

.wb-faq-head { text-align: left; }

/* ---------- the two columns ---------- */

.wb-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 60px;
    align-items: start;
    text-align: left;
}

/* ---------- the questions ---------- */

.wb-faq-group { margin-bottom: 55px; }
.wb-faq-group:last-child { margin-bottom: 0; }

.wb-faq-group-title {
    margin: 0 0 18px;
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.wb-faq-list { margin: 0; padding: 0; list-style: none; }

.wb-faq-item + .wb-faq-item { border-top: 1px solid rgba(0, 0, 0, 0.08); }

.wb-faq-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    list-style: none;
    cursor: pointer;
}

.wb-faq-item summary::-webkit-details-marker { display: none; }

/* the round accent chevron the template puts before each question */
.wb-faq-mark {
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--wb-accent);
    transition: transform 0.25s, background-color 0.25s;
}

.wb-faq-mark::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #FFFFFF;
    border-right: 2px solid #FFFFFF;
    transform: rotate(45deg);
}

.wb-faq-item details[open] .wb-faq-mark { transform: rotate(90deg); background: var(--wb-deep); }
.wb-faq-item summary:hover .wb-faq-mark { background: var(--wb-deep); }

.wb-faq-question {
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.wb-faq-item summary:hover .wb-faq-question { color: var(--wb-accent); }

.wb-faq-item summary:focus-visible {
    outline: 2px solid var(--wb-accent);
    outline-offset: 4px;
}

.wb-faq-answer {
    padding: 0 0 20px 50px;
    color: #555555;
    font-size: 16px;
    line-height: 1.75;
    white-space: pre-line;
}

/* An answer written in the editor carries its own paragraphs and line breaks. */
.wb-faq-answer.rich-text { white-space: normal; }

.wb-faq-empty { color: #666666; font-size: 16px; }

/* ---------- ask us ---------- */

.wb-faq-side { position: sticky; top: 100px; }

.wb-faq-side-title {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #111111;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.wb-faq-side .wb-faq-side-title + .wb-faq-side-title,
.wb-faq-side .wb-faq-form + .wb-faq-side-title { margin-top: 45px; }

.wb-faq-label {
    display: block;
    margin-bottom: 6px;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

.wb-faq-form input.input1,
.wb-faq-form textarea.input1 {
    width: 100%;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    background: #FFFFFF;
    font-family: 'Work Sans', Arial, sans-serif;
    font-size: 15px;
    color: #111111;
}

.wb-faq-form textarea.input1 { min-height: 150px; resize: vertical; }

.wb-faq-form input.input1:focus,
.wb-faq-form textarea.input1:focus {
    outline: none;
    border-color: var(--wb-accent);
    box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.15);
}

.wb-faq-form .button { margin-top: 4px; }

/* the honeypot: off the page for people, reachable for robots */
.wb-faq-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wb-faq-contact { margin: 0; padding: 0; list-style: none; }

.wb-faq-contact li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
}

.wb-faq-contact span { color: var(--wb-accent); }
.wb-faq-contact a { color: #111111; }
.wb-faq-contact a:hover { color: var(--wb-accent); }

@media (max-width: 991px) {
    .wb-faq-layout { grid-template-columns: 1fr; gap: 50px; }
    .wb-faq-side { position: static; }
}

@media (max-width: 767px) {
    .wb-faq-band { padding: 110px 0 70px; }
    .wb-faq-group-title { font-size: 22px; }
    .wb-faq-question { font-size: 16px; }
    .wb-faq-answer { padding-left: 0; }
}
