/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Chinese reading rhythm: natural wrapping and consistent character spacing. */
html[lang="zh-CN"] body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    line-break: strict;
    word-break: normal;
}
html[lang="zh-CN"] #main p,
html[lang="zh-CN"] #main li,
html[lang="zh-CN"] #footer p {
    line-height: 1.85;
    letter-spacing: normal;
    overflow-wrap: break-word;
}
html[lang="zh-CN"] #main h1,
html[lang="zh-CN"] #main h2,
html[lang="zh-CN"] #main h3 {
    line-height: 1.4;
    word-break: normal;
    text-wrap: balance;
    letter-spacing: normal;
}
html[lang="zh-CN"] #main .stk-block-text__text {
    text-align: start;
}

/* Keep contact details and body copy readable against the dark footer. */
#footer {
    --theme-text-color: #dbe1ee;
    --theme-link-initial-color: #dbe1ee;
    --theme-link-hover-color: #1ad48d;
}
#footer p,
#footer .ct-contact-info-block li,
#footer .ct-contact-info-block span,
#footer .ct-contact-info-block a {
    color: #dbe1ee;
}

/* Presentation section stays in document flow and has no overlay. */
.bcl-presentations {
    margin: 64px auto;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid #d9eee6;
    border-radius: 18px;
    background: #f0faf6;
    scroll-margin-top: 120px;
}
.bcl-presentation-lang {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}
.bcl-presentation-zh { display: none; }
html[lang="zh-CN"] .bcl-presentation-es { display: none; }
html[lang="zh-CN"] .bcl-presentation-zh { display: grid; }
.bcl-presentation-copy { min-width: 0; text-align: start; }
.bcl-presentation-kicker {
    color: #087f5b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    margin: 0 0 12px;
}
.bcl-presentations h2 { color: #21164f; margin: 0 0 16px; }
.bcl-presentations p { color: #4c5062; margin-bottom: 20px; }
.bcl-presentations .bcl-presentation-meta { font-size: 14px; margin-bottom: 24px; }
.bcl-presentation-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bcl-presentation-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #21164f;
    border-radius: 6px;
    color: #21164f;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    text-align: center;
}
.bcl-presentation-actions a:first-child { background: #21164f; color: white; }
.bcl-presentation-actions a:hover { background: #087f5b; border-color: #087f5b; color: white; }
.bcl-presentation-actions a:focus-visible { outline: 3px solid #00cc8f; outline-offset: 4px; }
.bcl-presentation-cover {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e3e7e5;
    box-shadow: 0 12px 30px rgb(33 22 79 / 8%);
}
@media (max-width: 689.98px) {
    .bcl-presentations { margin: 40px auto; }
    .bcl-presentation-lang,
    html[lang="zh-CN"] .bcl-presentation-zh { grid-template-columns: minmax(0, 1fr); }
    .bcl-presentation-actions { flex-direction: column; }
    .bcl-presentation-actions a { width: 100%; }
}
