/* ==========================================================
   Single Story page  —  append to the end of style.css
   Reuses the site's existing tokens:
   navy #12304D | teal #39A4B1 / #187D9D | news #2B8C9D
   community #094C70 | cream #FFFCF5 | page bg #F8F8F2
   ========================================================== */

/* ---------- Hero: mirrors the standalone project pages ----------
   back arrow, big title, text column left / image right, text top-aligned.
   The header is position:absolute, so the top padding clears the nav bar and leaves a gap
   before the image (headline stays above the fold); bottom padding gives the image room
   before the next section. No rules/lines inside the hero. */
.storyHero {
    padding: 140px 0 100px;
    background: #187D9D;
    color: #FFFCF5;
}
.storySingle.is-news .storyHero { background: #094C70; }
.storySingle.is-community .storyHero { background: #094C70; }

.storyHero .row { align-items: flex-end; }

.storyBackLink {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1;
    color: #FFFCF5;
}
.storyBackLink:hover,
.storyBackLink:focus-visible { color: #FFFFFF; opacity: 0.75; }

.storyHero .storyCat {
    display: block;
    margin: 0 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFCF5;
}

.storyHero h1 {
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 40px; 
    transition: all 0.3s ease;
    margin-bottom: 16px;
    line-height: 1.15;
    color: #FFFCF5;
}

.storyMeta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 19px;
}
.storyMetaTop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}
.storyMetaTop .separator {
    margin: 0 8px;
    font-weight: 200;
    color: #FFFFFF;
}
.storyMeta .story-author {
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    color: #FFFFFF;
}
.storyMeta .story-source {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF;
}
.storyMeta .story-date {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 200;
    color: #FFFFFF;
}

.storyHero .storySubtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 200;
    line-height: 31.9px;
    color: #FFFCF5;
}
.storyHero .storySubtitle p {
    margin: 0 0 16px;
    font: inherit;
    color: inherit;
}
.storyHero .storySubtitle p:last-child { margin-bottom: 0; }

.storyHeroImg {
    position: relative;
    width: 100%;
    margin: 0;
}
.storyHeroImg img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}
.storyHeroImg i {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 16px;
    color: #12304D;
    background: #FFFCF5;
    border-radius: 10px;
}

.storyHeroImg i img,
.storyCard > a i img {
    display: inline-block;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
    vertical-align: middle;
    transform: none;
}

/* ---------- Body ---------- */
.storyBodySec {
    padding: 80px 0 90px;
    background: #F8F8F2;
}
.storyBody { 
    margin: 0 auto;
    color: #12304D;
}
.storyBody p {
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 200;
    line-height: 1.6;
    color: #12304D;
}
.storyBody strong,
.storyBody b { font-weight: 600; }
.storyBody a {
    color: #187D9D; 
}
.storyBody a:hover { color: #12304D; }

.storyBody h2,
.storyBody h3,
.storyBody h4 {
    margin: 40px 0 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.2;
    color: #12304D;
}
.storyBody h2 { font-size: 40px; }
.storyBody h3 { font-size: 32px; }
.storyBody h4 { font-size: 26px; }

.storyBody ul,
.storyBody ol { margin: 0 0 24px; padding-left: 24px; }
.storyBody ul { list-style: disc; }
.storyBody ol { list-style: decimal; }
.storyBody ul li,
.storyBody ol li {
    list-style: inherit;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 200;
    line-height: 1.6;
}

.storyBody blockquote {
    margin: 32px 0;
    padding-left: 24px;
    border-left: 3px solid #39A4B1;
}
.storyBody blockquote p {
    font-size: 28px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
}

.storyBody img,
.storyBody figure img {
    height: auto;
    border-radius: 10px;
}
.storyBody figure { margin: 32px 0; }
.storyBody figcaption {
    margin-top: 8px;
    font-size: 15px;
    font-style: italic;
    font-weight: 200;
}

/* ---------- Actions ---------- */
.storyActions {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #12304D;
}
.storyActions p { margin: 0 0 24px; }
/* Same treatment as the popup's "Read the full article here." link: italic, underlined */
.storyBody .storyReadLink {
    font-style: italic;
    text-decoration: underline;
}
.storyBack {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #187D9D;
}
.storyBack:hover { color: #12304D; }
.storyBack i { margin-right: 6px; font-size: 12px; }

/* ---------- Related ---------- */
/* Own class names on purpose: .communityCard / .commCat / .ourCommunity are
   bound to the popup script, so reusing them would open the modal. */
.storyRelated {
    padding: 77px 0 72px;
    background: #FFFFFF;
}
.storyRelated h5 {
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #12304D;
}
.storyRelated h3 {
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-style: italic;
    line-height: 52px;
    color: #12304D;
}
.storyCard { margin-bottom: 32px; }
.storyCard > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}
.storyCard > a img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    border-radius: 10px;
    transition: all 0.5s ease;
}
.storyCard > a:hover img { transform: scale(1.1); }
.storyCard > a i {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 16px;
    color: #12304D;
    background: #FFFCF5;
    border-radius: 10px;
}
.storyCardCat {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    text-transform: uppercase;
    color: #12304D;
}
.storyCard h4 a {
    position: relative;
    display: inline-block;
    font-size: 32px;
    color: #12304D;
}
.storyCard h4 a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 1px;
    background: #12304D;
    transition: all 0.5s ease;
}
.storyCard h4 a:hover::before { right: 0; }

/* ---------- Breakpoints (same steps the site uses) ---------- */
@media (max-width: 1399px) {
    .storyHero h1 { font-size: 48px; }
    .storyRelated h3 { font-size: 36px; }
}
@media (max-width: 1199px) {
    .storyHero { padding: 120px 0 80px; }
    .storyHero h1 { font-size: 42px; }
    .storyBodySec { padding: 60px 0 70px; }
    .storyBody p,
    .storyBody ul li,
    .storyBody ol li { font-size: 20px; }
}
@media (max-width: 979px) {
    .storyCard h4 a { font-size: 22px; }
    .storyCardCat { font-size: 12px; }
    .storyRelated h3 { font-size: 34px; line-height: 38px; margin-bottom: 12px; }
    .storyHero h1 { font-size: 34px; }
    .storyHero .storySubtitle { font-size: 18px; line-height: 1.5; }
    .storyBackLink { font-size: 20px; margin-bottom: 16px; }
    .storyBody p,
    .storyBody ul li,
    .storyBody ol li { font-size: 18px; }
    .storyBody blockquote p { font-size: 22px; }
    .storyBody h2 { font-size: 32px; }
    .storyBody h3 { font-size: 26px; }
}
@media (max-width: 767px) {
    .storyRelated { padding: 47px 0 42px; }
    .storyRelated h3 { font-size: 26px; }
    .storyHero { padding: 94px 0 54px; }
    .storyHero h1 { font-size: 28px; }
    .storyHeroImg { margin-top: 32px; }
    .storyMeta { font-size: 16px; }
    .storyBodySec { padding: 40px 0 54px; }
    .storyBody p,
    .storyBody ul li,
    .storyBody ol li { font-size: 16px; }
    .storyBody blockquote p { font-size: 20px; }
    .storyBody h2 { font-size: 26px; }
    .storyBody h3 { font-size: 22px; }
    .storyActions { margin-top: 32px; }
}