/* =========================================================
   Page Blocks — public styles for the visual page builder
   Loaded by page.php (about / contact / disclaimer / …).
   Colours follow the admin theme via --primary-color.
   ========================================================= */

.page-blocks {
    padding: 4px 0 8px;
    color: #1a202c;
    line-height: 1.7;
    font-size: 14px;
}

/* ---------- shared alignment helpers ---------- */
.pb-align--left    { text-align: left; }
.pb-align--center  { text-align: center; }
.pb-align--right   { text-align: right; }
.pb-align--justify { text-align: justify; text-justify: inter-word; }

/* ---------- headings ---------- */
.pb-heading {
    color: #111827;
    font-weight: 700;
    line-height: 1.35;
    margin: 26px 0 12px;
}
.pb-heading:first-child { margin-top: 4px; }
h2.pb-heading { font-size: 19px; }
h3.pb-heading { font-size: 16px; }
h4.pb-heading { font-size: 14.5px; }

.pb-heading--underline {
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}
.pb-heading--underline::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 56px; height: 2px;
    background: var(--primary-color, #fb3737);
}
.pb-heading--center { text-align: center; }

/* ---------- body text ---------- */
.pb-text { margin: 0 0 14px; }
.pb-text p { margin: 0 0 14px; }
.pb-text p:last-child { margin-bottom: 0; }
.pb-text a {
    color: var(--primary-color, #fb3737);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}
.pb-text a:hover { opacity: 0.85; }
.pb-text ul, .pb-text ol { padding-left: 22px; margin: 0 0 14px; }
.pb-text li { margin-bottom: 6px; }
.pb-text li::marker { color: var(--primary-color, #fb3737); font-weight: 700; }
.pb-text strong { color: #111827; }
.pb-text h2, .pb-text h3, .pb-text h4 { color: #111827; margin: 20px 0 10px; }
.pb-text img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- notice / callout box ---------- */
.pb-notice {
    border-left: 4px solid #d1d5db;
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.65;
    text-align: justify;
}
.pb-notice__title {
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    text-align: left;
}
.pb-notice__body p { margin: 0 0 10px; }
.pb-notice__body p:last-child { margin-bottom: 0; }
.pb-notice__body ul, .pb-notice__body ol { padding-left: 20px; margin: 0 0 10px; }
.pb-notice a { color: inherit; font-weight: 600; text-decoration: underline; }

.pb-notice--yellow { background: #fffbeb; border-left-color: #f59e0b; color: #78350f; }
.pb-notice--yellow .pb-notice__title { color: #92400e; }
.pb-notice--blue   { background: #eff6ff; border-left-color: #3b82f6; color: #1e3a8a; }
.pb-notice--blue .pb-notice__title { color: var(--primary-color, #fb3737); }
.pb-notice--red    { background: #fef2f2; border-left-color: #ef4444; color: #7f1d1d; }
.pb-notice--red .pb-notice__title { color: #b91c1c; }
.pb-notice--green  { background: #ecfdf5; border-left-color: #10b981; color: #065f46; }
.pb-notice--green .pb-notice__title { color: #047857; }
.pb-notice--grey   { background: #f3f4f6; border-left-color: #9ca3af; color: #374151; }

/* ---------- big highlight card ---------- */
.pb-hero {
    border-radius: 14px;
    padding: 22px 20px;
    margin: 18px 0;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}
.pb-hero__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}
.pb-hero__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    opacity: 0.95;
}
.pb-hero--teal   { background: linear-gradient(120deg, #0b1220 0%, #0f766e 55%, #06d6c4 100%); }
.pb-hero--red    { background: linear-gradient(120deg, var(--primary-color, #fb3737), var(--secondary-color, #ff0000)); }
.pb-hero--purple { background: linear-gradient(120deg, #1e1b4b, #4c1d95, #7c3aed); }
.pb-hero--blue   { background: linear-gradient(120deg, #0c1a3a, #1d4ed8, #38bdf8); }
.pb-hero--dark   { background: linear-gradient(120deg, #0f172a, #1e293b, #334155); }

/* ---------- feature cards grid ---------- */
.pb-features {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
.pb-features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) {
    .pb-features--3, .pb-features--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pb-feature {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pb-feature:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
.pb-feature__icon {
    font-size: 22px;
    color: var(--primary-color, #fb3737);
    margin-bottom: 8px;
    line-height: 1;
}
.pb-feature__title { font-weight: 700; font-size: 13.5px; color: #111827; margin-bottom: 4px; }
.pb-feature__text  { font-size: 12px; color: #6b7280; line-height: 1.5; }

/* ---------- content card ---------- */
.pb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin: 0 0 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pb-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}
.pb-card__title i { color: var(--primary-color, #fb3737); font-size: 15px; }
.pb-card__body { font-size: 13.5px; line-height: 1.7; text-align: justify; }
.pb-card__body p { margin: 0 0 12px; }
.pb-card__body p:last-child { margin-bottom: 0; }
.pb-card__body ul, .pb-card__body ol { padding-left: 20px; margin: 0 0 12px; }
.pb-card__body li { margin-bottom: 6px; }
.pb-card__body li::marker { color: var(--primary-color, #fb3737); font-weight: 700; }
.pb-card__body li strong { color: #111827; }
.pb-card__body a { color: var(--primary-color, #fb3737); text-decoration: underline; word-break: break-word; }

/* ---------- FAQ ---------- */
.pb-faq__item { padding: 10px 0; border-bottom: 1px dashed #e5e7eb; }
.pb-faq__item:last-child { border-bottom: 0; padding-bottom: 0; }
.pb-faq__q { font-weight: 700; color: #111827; font-size: 13.5px; margin-bottom: 4px; }
.pb-faq__a { font-size: 13px; color: #4b5563; line-height: 1.65; text-align: justify; }

/* ---------- lists ---------- */
.pb-list { margin: 0 0 16px; padding: 0; list-style: none; }
.pb-list__item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 13.5px;
    line-height: 1.65;
}
.pb-list__lead { display: block; color: #111827; font-weight: 700; margin-bottom: 2px; }
.pb-list__text { color: #4b5563; }

.pb-list--bullet .pb-list__item::before,
.pb-list--dot .pb-list__item::before {
    content: "";
    position: absolute;
    left: 4px; top: 8px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-color, #fb3737);
}
.pb-list--check .pb-list__item::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0; top: 1px;
    color: #10b981;
    font-size: 11px;
}
ol.pb-list { counter-reset: pbnum; }
.pb-list--numbered .pb-list__item { padding-left: 26px; }
.pb-list--numbered .pb-list__item::before {
    counter-increment: pbnum;
    content: counter(pbnum) ".";
    position: absolute;
    left: 0; top: 0;
    font-weight: 700;
    color: var(--primary-color, #fb3737);
    font-size: 13px;
}

/* ---------- table ---------- */
.pb-table-wrap { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.pb-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    font-size: 13.5px;
    border: 1px solid #e5e7eb;
}
.pb-table thead th {
    background: linear-gradient(135deg, var(--primary-color, #fb3737), var(--secondary-color, #ff0000));
    color: #fff;
    text-align: left;
    padding: 11px 14px;
    font-weight: 700;
}
.pb-table tbody td {
    padding: 11px 14px;
    border-top: 1px solid #e5e7eb;
    vertical-align: middle;
    word-break: break-word;
}
.pb-table tbody tr:nth-child(even) { background: #fafafa; }
.pb-table td a { color: #111827; font-weight: 700; text-decoration: none; }
.pb-table td a:hover { color: var(--primary-color, #fb3737); text-decoration: underline; }

/* ---------- button ---------- */
.pb-btn-wrap { margin: 16px 0; }
.pb-btn-wrap.pb-align--center { text-align: center; }
.pb-btn-wrap.pb-align--right  { text-align: right; }
.pb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    border: 2px solid transparent;
}
.pb-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15); }
.pb-btn--primary   { background: linear-gradient(135deg, var(--primary-color, #fb3737), var(--secondary-color, #ff0000)); color: #fff; }
.pb-btn--secondary { background: #1e293b; color: #fff; }
.pb-btn--outline   { background: transparent; color: var(--primary-color, #fb3737); border-color: var(--primary-color, #fb3737); }

/* ---------- image ---------- */
.pb-figure { margin: 16px 0; }
.pb-figure img { max-width: 100%; height: auto; border-radius: 12px; display: inline-block; }
.pb-figure--medium img { max-width: 70%; }
.pb-figure--small img  { max-width: 45%; }
.pb-figure figcaption { font-size: 12px; color: #6b7280; margin-top: 6px; }

/* ---------- divider ---------- */
.pb-divider { border: 0; border-top: 1px solid #e5e7eb; }
.pb-divider--small  { margin: 12px 0; }
.pb-divider--normal { margin: 22px 0; }
.pb-divider--large  { margin: 34px 0; }

@media (max-width: 480px) {
    .page-blocks { font-size: 13.5px; }
    .pb-card { padding: 15px; }
    .pb-figure--medium img, .pb-figure--small img { max-width: 100%; }
}
