.page-layout {
display: grid;
grid-template-columns: minmax(280px, 392px) 1fr;
gap: 2rem;
max-width: 1226px;
margin: 100px auto;
padding: calc(50px + 2.5rem) 36px 0;
align-items: start;
} .sidebar {
position: sticky;
top: calc(120px + 1.5rem);
background: var(--bg-white);
border-radius: 24px;
padding: 24px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
.sidebar h3 {
color: var(--text-light);
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1.5px solid var(--text-softer);
}
.sidebar ol {
list-style: none;
counter-reset: faq-counter;
display: flex;
flex-direction: column;
gap: 2px;
}
.sidebar ol li {
counter-increment: faq-counter;
}
.sidebar ol li a {
display: flex;
gap: 10px;
align-items: flex-start;
padding: 8px 10px;
text-decoration: none;
font-family: 'SukhumvitSet', sans-serif;
font-weight: 500;
font-style: normal;
font-size: 16px;
line-height: 1.5;
letter-spacing: -1.1%;
text-transform: capitalize;
color: var(--text-light);
;
transition: background 0.15s, color 0.15s;
}
:lang(my) .sidebar ol li a {
line-height: 1.8;
}
.sidebar ol li a::before {
content: counter(faq-counter) ".";
color: var(--text-light);
;
font-weight: 700;
font-size: 13px;
flex-shrink: 0;
min-width: 18px;
}
.sidebar ol li a:hover,
.sidebar ol li a.active {
color: var(--primary);
}
.sidebar ol li a:hover::before,
.sidebar ol li a.active::before {
color: var(--primary);
} .main-content {
display: flex;
flex-direction: column;
gap: 3.5rem;
} .faq-section {
scroll-margin-top: calc(120px + 2rem);
max-width: 784px;
}
.faq-section h2 {
font-family: 'SukhumvitSet', sans-serif;
margin-bottom: 1.25rem;
} .illus-card {
background: var(--bg-white);
border-radius: 24px;
overflow: hidden;
margin-bottom: 1.25rem;
}
.illus-card img {
width: 100%;
display: block;
object-fit: contain;
height: auto;
} .faq-section p,
.faq-section ul li {
margin-bottom: 0.75rem;
}
.faq-section a {
color: var(--primary);
}
.faq-section p:last-child {
margin-bottom: 0;
}
.faq-section ul {
margin: 0.5rem 0 0.75rem 1.25rem;
display: flex;
flex-direction: column;
gap: 6px;
}
.faq-section ul li::marker {
color: var(--text-light);
}
.faq-section .highlight {
background: var(--primary-hover);
border-left: 4px solid var(--primary);
border-radius: 0 10px 10px 0;
padding: 0.9rem 1.1rem;
font-size: 14px;
color: var(--primary-dark);
line-height: 1.7;
margin: 0.75rem 0;
}
.read-more-link {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 600;
color: var(--primary);
margin-top: 0.5rem;
text-decoration: none;
}
.read-more-link:hover {
text-decoration: underline;
} .section-divider {
border: none;
border-top: 1.5px solid var(--text-softer);
} @media (max-width: 768px) {
.page-layout {
grid-template-columns: 1fr;
padding: 1.5rem 1.25rem 3rem;
gap: 1.5rem;
}
.main-content {
margin-top: 5rem;
}
.faq-section {
scroll-margin-top: calc(120px + 2.5rem);
} .sidebar {
display: none;
} .fab-questions {
display: flex;
align-items: center;
gap: 8px;
position: fixed;
bottom: 24px;
left: 20px;
z-index: 900;
background: var(--primary);
color: var(--text-white);
;
border: none;
border-radius: 50px;
padding: 12px 20px;
font-family: "Sukhumvit Set", sans-serif;
font-size: 14px;
font-weight: 700;
box-shadow: 0 4px 18px rgba(233, 30, 140, 0.35);
cursor: pointer;
transition: background 0.2s, box-shadow 0.2s;
}
.fab-questions:hover {
background: var(--primary-hover);
}
.fab-questions svg {
flex-shrink: 0;
} .questions-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.35);
z-index: 950;
align-items: flex-end;
}
.questions-overlay.open {
display: flex;
}
.questions-sheet {
background: var(--bg-white);
border-radius: 20px 20px 0 0;
padding: 1.5rem 1.25rem 2rem;
width: 100%;
max-height: 75vh;
overflow-y: auto;
box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.12);
animation: slideUp 0.25s ease;
}
@keyframes slideUp {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.questions-sheet h3 {
font-size: 16px;
font-weight: 700;
color: var(--text-light);
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1.5px solid var(--text-softer);
}
.questions-sheet ol {
list-style: none;
counter-reset: faq-counter;
display: flex;
flex-direction: column;
gap: 2px;
}
.questions-sheet ol li {
counter-increment: faq-counter;
}
.questions-sheet ol li a {
display: flex;
gap: 10px;
align-items: flex-start;
padding: 10px 10px;
border-radius: 10px;
text-decoration: none;
font-family: 'SukhumvitSet', sans-serif;
font-weight: 500 font-style: normal;
font-size: 16px;
line-height: 24px;
letter-spacing: -1.1%;
text-transform: capitalize;
color: var(--text-light);
transition: background 0.15s, color 0.15s;
}
.questions-sheet ol li a::before {
content: counter(faq-counter) ".";
color: var(--primary);
font-weight: 700;
font-size: 14px;
flex-shrink: 0;
min-width: 18px;
}
.questions-sheet ol li a:hover,
.questions-sheet ol li a.active-sheet {
color: var(--primary);
}
} @media (min-width: 769px) {
.fab-questions,
.questions-overlay {
display: none !important;
}
}