/* ==========================================================
   ASPIRE TO CHANGE THERAPY, LLC
   BLOG-SPECIFIC STYLES

   Loaded after /newsite/assets/css/style.css.
   Keep sitewide navigation, buttons, footer, preloader,
   typography variables, and Back to Top styles in style.css.
   ========================================================== */


/* ==========================================================
   BLOG PAGE HERO / BREADCRUMB
   Matches the live site treatment: full-width background image,
   dark overlay, and large peach translucent circle on the left.
   ========================================================== */

.blog-page-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-image: url('../images/page-title.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.blog-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(15, 24, 42, 0.54);
    pointer-events: none;
}

/* Hide the previous abstract circles/vertical line. */
.blog-page-hero-overlay,
.blog-page-shape {
    display: none;
}

.blog-page-hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 38px;
    padding-bottom: 38px;
}

/* Peach translucent circle behind the title, as on the live site. */
.blog-page-hero-inner::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 50%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(239, 162, 134, 0.50);
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
}

.blog-page-home-link {
    display: inline-block;
    margin: 0 0 8px 78px;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.45s ease;
}

.blog-page-home-link:hover,
.blog-page-home-link:focus-visible {
    color: #ffffff;
}

.blog-page-hero h1 {
    margin: 0 0 0 78px;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(58px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.02;
}

/* ==========================================================
   BLOG LIST HEADING
   ========================================================== */

.blog-list-section {
    padding: 95px 0 110px;
    background: #ffffff;
}

.blog-list-heading {
    max-width: 900px;
    margin: 0 auto 58px;
    text-align: center;
}

.blog-list-heading .section-kicker {
    margin-bottom: 12px;
    color: var(--peach, #efa286);
    letter-spacing: 0.18em;
}

.blog-list-heading h2 {
    margin: 0;
    color: var(--dark-navy, #10192c);
    font-family: 'Playfair Display', serif;
    font-size: clamp(46px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.1;
}


/* ==========================================================
   BLOG CARDS
   ========================================================== */

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 42px 30px;
    align-items: start;
}

.blog-list-card {
    min-width: 0;
}

.blog-list-image-link {
    display: block;
    overflow: hidden;
    border-radius: 14px;
}

.blog-list-image {
    display: block;
    width: 100%;
    aspect-ratio: 1.47 / 1;
    object-fit: cover;
    border-radius: inherit;
    transform: scale(1);
    transition: transform 0.8s ease;
}

.blog-list-card:hover .blog-list-image,
.blog-list-image-link:focus-visible .blog-list-image {
    transform: scale(1.035);
}

.blog-list-content {
    padding-top: 22px;
}

.blog-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 10px;
    color: #777a80;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.blog-list-category {
    color: #4d5260;
    font-weight: 600;
}

.blog-list-divider,
.blog-list-meta time {
    color: var(--peach, #efa286);
}

.blog-list-card h3 {
    margin: 0 0 24px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 400;
    line-height: 1.35;
}

.blog-list-card h3 a {
    color: var(--dark-navy, #10192c);
    text-decoration: none;
    transition: color 0.45s ease;
}

.blog-list-card h3 a:hover,
.blog-list-card h3 a:focus-visible {
    color: var(--peach, #efa286);
}

.blog-list-read-more {
    position: relative;
    display: inline-block;
    padding: 11px 18px;
    border: 1px solid rgba(16, 25, 44, 0.16);
    color: #4d5260;
    background: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 0.45s ease,
        border-color 0.45s ease,
        background-color 0.45s ease;
}

.blog-list-read-more:hover,
.blog-list-read-more:focus-visible {
    color: var(--peach, #efa286);
    border-color: var(--peach, #efa286);
}


/* ==========================================================
   CLOSING NOTE FROM LIVE BLOG PAGE
   ========================================================== */

.blog-closing-note {
    padding: 0 0 110px;
    background: #ffffff;
}

.blog-closing-note blockquote {
    max-width: 950px;
    margin: 0 auto;
    padding: 36px 42px;
    border-left: 6px solid var(--peach, #efa286);
    background: #fafafa;
}

.blog-closing-note p {
    margin: 0;
    color: #555b63;
    font-size: 18px;
    line-height: 1.85;
}

.blog-closing-note cite {
    display: block;
    margin-top: 20px;
    color: var(--purple, #5d6591);
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1000px) {
    .blog-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .blog-page-hero {
        min-height: 300px;
        background-position: center center;
    }

    .blog-page-hero-inner {
        min-height: 300px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .blog-page-hero-inner::before {
        left: -36px;
        width: 270px;
        height: 270px;
    }

    .blog-page-home-link {
        margin-left: 34px;
        font-size: 15px;
    }

    .blog-page-hero h1 {
        margin-left: 34px;
        font-size: clamp(46px, 13vw, 58px);
    }

    .blog-list-section {
        padding: 72px 0 82px;
    }

    .blog-list-heading {
        margin-bottom: 42px;
    }

    .blog-list-heading h2 {
        font-size: clamp(40px, 12vw, 54px);
    }

    .blog-list-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .blog-list-card h3 {
        font-size: 27px;
    }

    .blog-closing-note {
        padding-bottom: 82px;
    }

    .blog-closing-note blockquote {
        padding: 28px 25px;
    }
}

@media (max-width: 480px) {
    .blog-page-hero {
        min-height: 280px;
    }

    .blog-page-hero-inner {
        min-height: 280px;
    }

    .blog-page-hero-inner::before {
        left: -54px;
        width: 250px;
        height: 250px;
    }

    .blog-page-home-link,
    .blog-page-hero h1 {
        margin-left: 24px;
    }

    .blog-list-section {
        padding-top: 62px;
    }

    .blog-list-card h3 {
        font-size: 25px;
    }

    .blog-list-meta {
        font-size: 14px;
    }
}


/* ==========================================================
   DATABASE-DRIVEN BLOG ARTICLE
   These rules belong in blog.css because they are blog-only.
   ========================================================== */

.blog-post-hero .blog-page-hero-inner {
    padding-right: 28px;
}

.blog-post-hero .blog-page-hero-inner::before {
    width: 390px;
    height: 390px;
}

.blog-post-hero h1 {
    max-width: 1050px;
    font-size: clamp(42px, 4.4vw, 68px);
    line-height: 1.08;
}

.blog-post-section {
    padding: 90px 0 110px;
    background: #ffffff;
}

.blog-post-container {
    max-width: 960px;
}

.blog-post-back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--purple, #5d6591);
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.35s ease;
}

.blog-post-back-link:hover,
.blog-post-back-link:focus-visible {
    color: var(--peach, #efa286);
}

.blog-post-featured-image {
    margin: 0 0 24px;
}

.blog-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 38px;
    color: #777a80;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.blog-post-category {
    color: #4d5260;
    font-weight: 600;
}

.blog-post-meta-divider,
.blog-post-meta time {
    color: var(--peach, #efa286);
}

.blog-post-content {
    color: #555b63;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.85;
}

.blog-post-content h2 {
    margin: 48px 0 18px;
    color: var(--dark-navy, #10192c);
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 400;
    line-height: 1.18;
}

.blog-post-content p {
    margin: 0 0 22px;
}

.blog-post-content strong {
    color: var(--dark-navy, #10192c);
    font-weight: 700;
}

.blog-post-content blockquote {
    margin: 0 0 46px;
    padding: 30px 34px;
    border-left: 6px solid var(--peach, #efa286);
    background: #fafafa;
}

.blog-post-content blockquote p {
    margin: 0;
    color: var(--dark-navy, #10192c);
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.55;
}

.blog-post-footer-link {
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid rgba(16, 25, 44, 0.12);
}

.blog-post-footer-link .blog-post-back-link {
    margin-bottom: 0;
}

.blog-empty-message {
    margin: 0;
    text-align: center;
    color: #555b63;
    font-size: 18px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .blog-post-hero .blog-page-hero-inner::before {
        width: 285px;
        height: 285px;
    }

    .blog-post-hero h1 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .blog-post-section {
        padding: 65px 0 80px;
    }

    .blog-post-content {
        font-size: 17px;
        line-height: 1.8;
    }

    .blog-post-content blockquote {
        padding: 24px 22px;
    }

    .blog-post-content blockquote p {
        font-size: 22px;
    }
}


/* ==========================================================
   BLOG ARTICLE SHARE BUTTONS
   ========================================================== */

.blog-share {
    margin-top: 52px;
    padding: 32px 0 4px;
    border-top: 1px solid rgba(16, 25, 44, 0.12);
}

.blog-share h2 {
    margin: 0 0 20px;
    color: var(--dark-navy, #10192c);
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
}

.blog-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-share-button {
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(16, 25, 44, 0.16);
    color: #4d5260;
    background: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color 0.45s ease,
        border-color 0.45s ease;
}

.blog-share-button::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--purple, #5d6591);
    transform: translateX(-101%);
    transition: transform 0.45s ease;
}

.blog-share-button:hover,
.blog-share-button:focus-visible {
    color: #ffffff;
    border-color: var(--purple, #5d6591);
}

.blog-share-button:hover::before,
.blog-share-button:focus-visible::before {
    transform: translateX(0);
}

.blog-copy-status {
    min-height: 24px;
    margin: 10px 0 0;
    color: var(--purple, #5d6591);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .blog-share-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-share-button {
        width: 100%;
    }
}
