/**
 * Blog Single 2025 (template-blog-single.php)
 * Layout and typography for .blog-single-2025 and related elements.
 */

/* Account for sticky megaNav clearfix when anchor links are clicked */
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
.blog-single-2025 section[id],
.blog-single-2025 h2[id],
.blog-single-2025 h3[id] { scroll-margin-top: 70px; }

body {
    background: #F9FAF8;
}

.blog-single-2025 {
    background: #fff;
    padding: 12px 0 50px 0;
}

.blog-single-inner {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Breadcrumb */
.blog-single-breadcrumb {
    margin-bottom: 16px;
}

.blog-single-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    color: #767A4C;
}

.blog-single-breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

.blog-single-breadcrumb__item:not(:last-child)::after {
    content: '\00a0/\00a0';
    margin-left: 2px;
    opacity: .8;
}

.blog-single-breadcrumb__item a {
    color: #767A4C;
    text-decoration: none;
}

.blog-single-breadcrumb__item a:hover {
    text-decoration: underline;
}

.blog-single-breadcrumb__item span[aria-current="page"] {
    opacity: .9;
}

.blog-single-category {
    display: inline-block;
    background: #FFD26D;
    color: #45483b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    text-decoration: none;
}

.blog-single-title {
    font-size: 48px;
    font-weight: 700;
    color: #767A4C;
    line-height: 1.2;
    margin-bottom: 36px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-title + .bsf-rt-reading-time,
.blog-single-head .bsf-rt-reading-time {
    display: block;
    margin-top: 0;
    margin-bottom: 22px;
}

.blog-single-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
}

.blog-single-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.blog-single-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
    flex: 0 0 42px;
}

.blog-single-author-name {
    display: inline-block;
    line-height: 1.1;
    margin: 0;
}

.blog-single-rating {
    margin-bottom: 40px;
    padding: 20px;
    background: #F8F8F6;
    border-radius: 8px;
    font-size: 14px;
    color: #767A4C;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-content {
    max-width: 100%;
    margin: 0 0 60px;
}

.blog-single-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #767A4C;
    margin: 40px 0 20px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #767A4C;
    margin: 30px 0 15px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #767A4C;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-content ul,
.blog-single-content ol {
    margin: 20px 0;
    padding-left: 30px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #767A4C;
    margin-bottom: 10px;
}

.blog-single-content strong {
    font-weight: 700;
    color: #767A4C;
}

.blog-single-content a:not([class*="cta"]):not([class*="button"]) {
    color: #F2CA64;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.blog-single-content a:not([class*="cta"]):not([class*="button"]):hover,
.blog-single-content a:not([class*="cta"]):not([class*="button"]):focus {
    color: #EABD4B;
    text-decoration: underline;
}

/* Blog content CTAs: make Gutenberg and legacy buttons yellow site-wide for blog posts. */
.blog-single-content .wp-block-button.is-style-fill .wp-block-button__link.wp-element-button,
.blog-single-content a.button {
    background: #ffd26c !important;
    border: 2px solid #ffd26c !important;
    color: #000 !important;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
}

.blog-single-content .wp-block-button.is-style-fill .wp-block-button__link.wp-element-button:hover,
.blog-single-content .wp-block-button.is-style-fill .wp-block-button__link.wp-element-button:focus,
.blog-single-content a.button:hover,
.blog-single-content a.button:focus {
    background: #ffc84a !important;
    border-color: #ffc84a !important;
    color: #000 !important;
    text-decoration: none !important;
}

/* Blog YouTube embeds: click-to-load facade to avoid loading player JS at first paint. */
.blog-single-content .blog-single-youtube-facade {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    cursor: pointer;
    margin: 24px 0;
}

.blog-single-content .blog-single-youtube-facade .youtube-facade__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.blog-single-content .blog-single-youtube-facade .youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: rgba(255, 0, 0, 0.9);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.blog-single-content .blog-single-youtube-facade .youtube-play-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-42%, -50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
}

.blog-single-content .blog-single-youtube-facade:hover .youtube-facade__poster,
.blog-single-content .blog-single-youtube-facade:focus .youtube-facade__poster {
    transform: scale(1.03);
}

.blog-single-content .blog-single-youtube-facade.active .youtube-facade__poster,
.blog-single-content .blog-single-youtube-facade.active .youtube-play-button {
    opacity: 0;
    visibility: hidden;
}

/* Professional Help Section */
.blog-single-help-section {
    background: #F8F8F6;
    padding: 60px 0;
    margin: 60px 0;
}

.blog-single-help-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.blog-single-help-title {
    font-size: 32px;
    font-weight: 700;
    color: #767A4C;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-help-text {
    font-size: 16px;
    line-height: 1.8;
    color: #767A4C;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-help-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #767A4C;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-single-help-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #767A4C;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-help-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #767A4C;
    font-weight: 700;
    font-size: 20px;
}

.blog-single-help-list li strong {
    color: #767A4C;
    font-weight: 700;
}

.blog-single-need-help {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.blog-single-need-help-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-single-need-help-title {
    font-size: 20px;
    font-weight: 700;
    color: #767A4C;
    margin-top: 15px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-need-help-text {
    font-size: 16px;
    line-height: 1.8;
    color: #767A4C;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-need-help-cta {
    display: inline-block;
    background: #FFD26D;
    color: #45483b;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

.blog-single-latest-category {
    padding: 10px 0 60px;
    background: #ffffff;
}

.blog-single-latest-category__title {
    font-size: 32px;
    font-weight: 700;
    color: #767A4C;
    margin: 0 0 20px;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
}

.blog-single-latest-category__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.blog-single-latest-category__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-single-latest-category__image-link {
    display: block;
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
    background: #ecece7;
}

.blog-single-latest-category__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-single-latest-category__content {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-single-latest-category__meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #3d4235;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

.blog-single-latest-category__card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.blog-single-latest-category__card-title a {
    color: #2f3440;
    text-decoration: none;
}

.blog-single-latest-category__card-title a:hover {
    text-decoration: underline;
}

.blog-single-latest-category__excerpt {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #3d4235;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
}

.blog-single-latest-category__author {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #5c6154;
    margin: 4px 0 0;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.blog-single-latest-category__author-avatar-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.blog-single-latest-category__author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .blog-single-help-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .blog-single-title {
        font-size: 36px;
    }

    .blog-single-latest-category__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .blog-single-latest-category__title {
        font-size: 32px;
        margin-bottom: 24px;
    }
}

@media (max-width: 640px) {
    .blog-single-latest-category__grid {
        grid-template-columns: 1fr;
    }
}
