﻿/* Full-bleed recreation of stemcancer.ca's single landing page.
   Divi "boxed layout": the whole page (logo header + content) sits inside a
   centered WHITE box on top of the repeating blue bokeh background. The logo
   artwork has dark text, so it must sit on white to be legible â€” matching the
   original. */

.sc-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    /* Original body.custom-background: this image, center top, fixed. */
    background-color: #1f6fd0;
    background-image: url("../stem-cancer/blue-background.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: auto;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    color: #15354a;
    padding: 2.5rem 1rem;
}

/* --- The centered white boxed layout (Divi et_boxed_layout) --- */
.sc-box {
    width: 100%;
    max-width: 1080px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* --- Logo banner, on white --- */
.sc-header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 1.25rem 2.75rem 0;
}

.sc-logo-link {
    display: inline-block;
    line-height: 0;
    width: 100%;
}

.sc-logo {
    /* Native asset is 1920x330 (a wide banner). Fit to its container width. */
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Content --- */
.sc-main {
    width: 100%;
}

.sc-content {
    padding: 1.5rem 2.75rem 3rem;
    text-align: left;
}

/* The body comes from WordPress as markup, so it is styled with ::deep. */
.sc-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.sc-body p {
    margin: 0 0 1.5rem;
}

.sc-body p:last-child {
    margin-bottom: 0;
}

.sc-body a {
    color: #4fb3ac;
    text-decoration: none;
    font-weight: 600;
}

.sc-body a:hover,
.sc-body a:focus {
    text-decoration: underline;
    color: #15354a;
}

/* --- Footer bar (Divi #footer-bottom) --- */
.sc-footer {
    width: 100%;
    background: #15354a;
}

.sc-footer-info,
.sc-footer .site-footer-text {
    padding: 1.25rem 2.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

@media (max-width: 600px) {
    .sc-header {
        padding: 1rem 1.25rem 0;
    }

    .sc-content {
        padding: 1.25rem 1.25rem 2rem;
    }

    .sc-body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .sc-footer-info,
.sc-footer .site-footer-text {
        padding: 1.25rem;
    }
}

/* ---- Headings in posts ---- */
.sc-body h2 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #15354a;
}

.sc-body h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #4fb3ac;
}

.sc-body :is(h4, h5, h6) {
    margin: 1rem 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #15354a;
}

/* ---- Boxed layout, like Wericle.com (overrides the layout above) ----
   Blue bokeh background; a white box about two-thirds of the window wide (full width under 980px);
   a small logo in the top-left corner of the box's header; content and footer use the same side margins. */
.sc-page {
    padding: 0;
    /* One image covering the whole window, as on Wericle. At its natural size it left a band of
       plain blue below it, which looked like a second background. */
    background-size: cover;
}

.sc-box {
    width: 64%;
    max-width: 1200px;
    align-self: flex-start;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
}

.sc-header {
    justify-content: flex-start;
    align-items: center;
    padding: 14px 5%;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

.sc-logo-link {
    width: auto;
}

.sc-logo {
    width: auto;
    height: 43px;
    max-height: none;
    max-width: 70vw;
}

.sc-content {
    padding: 58px 5% 60px;
}

.sc-footer-info,
.sc-footer .site-footer-text {
    padding: 15px 5%;
}

@media (max-width: 980px) {
    .sc-box {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .sc-header {
        padding: 12px 6%;
    }

    .sc-logo {
        height: 34px;
        max-width: 80vw;
    }

    .sc-content {
        padding: 36px 6% 40px;
    }

    .sc-footer-info,
    .sc-footer .site-footer-text {
        padding: 15px 6%;
    }
}
