initial commit
This commit is contained in:
@@ -0,0 +1,117 @@
|
||||
/* ============================================================
|
||||
FAQ — LAYOUT B
|
||||
Full-width centered accordion. No sidebar heading.
|
||||
Heading centered above the list. Clean and open.
|
||||
============================================================ */
|
||||
|
||||
.faq-b {
|
||||
padding: 6rem 0;
|
||||
background-color: var(--color-bg);
|
||||
transition: background-color 0.4s ease;
|
||||
}
|
||||
|
||||
.faq-b-header {
|
||||
text-align: center;
|
||||
max-width: 600px;
|
||||
margin: 0 auto 4rem;
|
||||
}
|
||||
|
||||
.faq-b-header .section-subtitle { margin: 0 auto; }
|
||||
|
||||
.faq-b-contact-nudge {
|
||||
font-size: 0.88rem;
|
||||
color: var(--color-text-muted);
|
||||
line-height: 1.6;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.faq-b-contact-nudge a {
|
||||
color: var(--color-primary);
|
||||
font-weight: 600;
|
||||
text-decoration: underline;
|
||||
text-decoration-color: transparent;
|
||||
transition: text-decoration-color 0.2s ease;
|
||||
}
|
||||
|
||||
.faq-b-contact-nudge a:hover {
|
||||
text-decoration-color: var(--color-primary);
|
||||
}
|
||||
|
||||
/* ── Accordion list ────────────────────────────────────── */
|
||||
.faq-b-list {
|
||||
max-width: 760px;
|
||||
margin: 0 auto;
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.faq-b-item {
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
transition: border-color 0.3s ease;
|
||||
}
|
||||
|
||||
.faq-b-item.is-open { border-bottom-color: var(--color-primary); }
|
||||
|
||||
.faq-b-question {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 1.5rem 0;
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: none;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.faq-b-question-text {
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.05rem;
|
||||
font-weight: 700;
|
||||
color: var(--color-heading);
|
||||
line-height: 1.4;
|
||||
transition: color 0.2s ease;
|
||||
}
|
||||
|
||||
.faq-b-item.is-open .faq-b-question-text { color: var(--color-primary); }
|
||||
|
||||
.faq-b-icon {
|
||||
flex-shrink: 0;
|
||||
width: 28px; height: 28px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid var(--color-border);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
transition: all 0.3s ease;
|
||||
background-color: var(--color-surface);
|
||||
}
|
||||
|
||||
.faq-b-item.is-open .faq-b-icon {
|
||||
background-color: var(--color-primary);
|
||||
border-color: var(--color-primary);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
.faq-b-icon svg {
|
||||
width: 12px; height: 12px;
|
||||
stroke: var(--color-text-muted); fill: none;
|
||||
stroke-width: 2.5; stroke-linecap: round;
|
||||
transition: stroke 0.3s ease;
|
||||
}
|
||||
|
||||
.faq-b-item.is-open .faq-b-icon svg { stroke: var(--color-btn-text); }
|
||||
|
||||
.faq-b-answer {
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
transition: max-height 0.4s ease;
|
||||
}
|
||||
|
||||
.faq-b-item.is-open .faq-b-answer { max-height: 300px; }
|
||||
|
||||
.faq-b-answer-inner {
|
||||
padding-bottom: 1.5rem;
|
||||
font-size: 0.93rem;
|
||||
color: var(--color-text-muted);
|
||||
line-height: 1.8;
|
||||
}
|
||||
Reference in New Issue
Block a user