/* Front-end styles for admin page-constructor blocks (site/_blocks.blade.php).
   Scoped .blk-* — the whole point of the constructor is that operators get
   these brand-styled sections and cannot produce off-design markup. */

:root { --blk-brand: #E32D44; --blk-ink: #2c2c38; --blk-muted: #5A5A67; }

.blk { display: flow-root; }
.blk > * + * { margin-top: 26px; }

/* ---------- heading ---------- */
.blk-heading {
    margin: 40px 0 4px;
    padding-left: 14px;
    border-left: 4px solid var(--blk-brand);
    font-size: 23px;
    line-height: 1.3;
    color: var(--blk-ink);
}
.blk > .blk-heading:first-child { margin-top: 0; }
.blk-heading--sm { font-size: 18px; border-left-width: 3px; }

/* ---------- rich text ---------- */
.blk-text { font-size: 16px; line-height: 1.8; color: var(--blk-muted); }
.blk-text p { margin-bottom: 14px; }
.blk-text a { color: var(--blk-brand); text-decoration: underline; }
.blk-text ul, .blk-text ol { margin: 0 0 14px; padding-left: 22px; }
.blk-text li { margin-bottom: 7px; }
.blk-text li::marker { color: var(--blk-brand); }
.blk-text h2, .blk-text h3, .blk-text h4 { margin: 24px 0 10px; color: var(--blk-ink); line-height: 1.35; }
.blk-text img { max-width: 100%; height: auto; border-radius: 10px; }
.blk-text table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.blk-text table td, .blk-text table th { border: 1px solid #e8e8ee; padding: 9px 12px; vertical-align: top; }
.blk-text p[style*="justify"], .blk-text div[style*="justify"] { text-align: left !important; }

/* ---------- image ---------- */
.blk-image { margin: 0; }
.blk-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(30, 22, 40, .1);
}
.blk-image--medium { max-width: 620px; margin: 0 auto; }
.blk-image figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 13.5px;
    color: var(--blk-muted);
}

/* ---------- image + text ---------- */
.blk-imagetext {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 26px;
    align-items: start;
    background: #fff;
    border: 1px solid #ebebf0;
    border-radius: 14px;
    padding: 24px;
}
.blk-imagetext--right .blk-imagetext__media { order: 2; }
.blk-imagetext__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.blk-imagetext__body { font-size: 15.5px; line-height: 1.75; color: var(--blk-muted); }
.blk-imagetext__body p { margin-bottom: 12px; }
.blk-imagetext__body a { color: var(--blk-brand); }
.blk-imagetext__body li::marker { color: var(--blk-brand); }

/* ---------- two columns ---------- */
.blk-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}
.blk-columns__col { font-size: 15.5px; line-height: 1.75; color: var(--blk-muted); }
.blk-columns__col p { margin-bottom: 12px; }
.blk-columns__col a { color: var(--blk-brand); }
.blk-columns__col li::marker { color: var(--blk-brand); }

/* ---------- cards ---------- */
.blk-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.blk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #ebebf0;
    border-left: 4px solid var(--blk-brand);
    border-radius: 12px;
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(30, 22, 40, .05);
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
a.blk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(30, 22, 40, .12);
    border-color: rgba(227, 45, 68, .35);
    border-left-color: var(--blk-brand);
}
.blk-card__title { font-size: 16px; line-height: 1.35; color: var(--blk-ink); }
a.blk-card:hover .blk-card__title { color: var(--blk-brand); }
.blk-card__text { font-size: 14px; line-height: 1.55; color: var(--blk-muted); }
.blk-card__go { position: absolute; top: 20px; right: 18px; color: var(--blk-brand); }

/* ---------- button ---------- */
.blk-btnrow { display: flex; }
.blk-btnrow--center { justify-content: center; }
.blk-btnrow--right { justify-content: flex-end; }
.blk-btn {
    display: inline-block;
    padding: 13px 36px;
    border-radius: 10px;
    background: var(--blk-brand);
    border: 2px solid var(--blk-brand);
    color: #fff !important;
    font-size: 15px;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.blk-btn:hover { background: #c92238; border-color: #c92238; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(227, 45, 68, .28); }
.blk-btn--outline { background: transparent; color: var(--blk-brand) !important; }
.blk-btn--outline:hover { background: var(--blk-brand); color: #fff !important; }

/* ---------- quote ---------- */
.blk-quote {
    margin: 0;
    padding: 26px 30px;
    background: #fff;
    border-left: 4px solid var(--blk-brand);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(30, 22, 40, .05);
}
.blk-quote p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--blk-ink);
}
.blk-quote footer { margin-top: 12px; font-size: 14px; color: var(--blk-brand); }
.blk-quote footer::before { content: "— "; }

/* ---------- video ---------- */
.blk-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(30, 22, 40, .12);
    background: #000;
}
.blk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- files ---------- */
.blk-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.blk-files__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: #fff;
    border: 1px solid #ebebf0;
    border-radius: 11px;
    color: var(--blk-ink);
    font-size: 14.5px;
    line-height: 1.4;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(30, 22, 40, .05);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.blk-files__item a:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 45, 68, .32);
    box-shadow: 0 11px 24px rgba(30, 22, 40, .1);
}
.blk-files__item svg { flex: 0 0 auto; color: var(--blk-brand); }

/* ---------- accordion ---------- */
.blk-acc { display: flex; flex-direction: column; gap: 10px; }
.blk-acc__item {
    background: #fff;
    border: 1px solid #ebebf0;
    border-radius: 12px;
    overflow: hidden;
}
.blk-acc__item summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 46px 17px 20px;
    position: relative;
    font-size: 15.5px;
    color: var(--blk-ink);
    transition: color .2s ease;
}
.blk-acc__item summary::-webkit-details-marker { display: none; }
.blk-acc__item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(227, 45, 68, .08);
    color: var(--blk-brand);
    font-size: 17px;
}
.blk-acc__item[open] summary { color: var(--blk-brand); }
.blk-acc__item[open] summary::after { content: "−"; background: var(--blk-brand); color: #fff; }
.blk-acc__body {
    padding: 2px 20px 18px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--blk-muted);
}
.blk-acc__body a { color: var(--blk-brand); }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
    .blk > * + * { margin-top: 20px; }
    .blk-heading { font-size: 19px; margin-top: 28px; }
    .blk-imagetext { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
    .blk-imagetext--right .blk-imagetext__media { order: 0; }
    .blk-columns { grid-template-columns: 1fr; gap: 18px; }
    .blk-cards, .blk-files { grid-template-columns: 1fr; }
    .blk-image img, .blk-video { border-radius: 10px; }
}
