body.blogs-page,
body.blog-detail-page {
    background: #f8f3e8;
}

body.blogs-page .blog-list-hero,
body.blog-detail-page .blog-detail-hero {
    padding: 130px 0 48px;
}

body.blog-detail-page .blog-detail-body,
body.blogs-page .blog-list-section {
    padding: 58px 0 76px;
}

body.blog-detail-page .blog-detail-hero__inner {
    max-width: 1040px;
    text-align: center;
}

body.blog-detail-page .blog-detail-hero h1 {
    max-width: 980px;
    margin-bottom: 16px;
    font-size: clamp(42px, 4.6vw, 72px);
    line-height: 1.05;
}

body.blog-detail-page .blog-detail-hero p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.65;
}

body.blog-detail-page .blog-breadcrumb {
    margin-bottom: 18px;
}

body.blog-detail-page .blog-category-pill {
    margin-bottom: 16px;
}

body.blog-detail-page .blog-detail-meta {
    margin-top: 22px;
    padding-top: 16px;
    justify-content: center;
}

body.blog-detail-page .blog-share-row {
    margin-top: 14px;
    justify-content: center;
}

body.blog-detail-page .blog-detail-layout {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

body.blog-detail-page .blog-detail-content {
    padding: 34px;
    text-align: left;
}

body.blog-detail-page .blog-detail-featured {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

body.blog-detail-page .blog-detail-section {
    margin-bottom: 28px;
}

body.blog-detail-page .blog-detail-section h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 3.2vw, 56px);
    text-align: left;
}

body.blog-detail-page .blog-detail-section p {
    max-width: 780px;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 14px;
    text-align: left;
}

body.blog-detail-page .blog-toc-card,
body.blog-detail-page .blog-side-card {
    padding: 22px;
}

body.blog-detail-page .blog-detail-sidebar {
    display: none;
}

body.blog-detail-page .blog-top-posts a {
    grid-template-columns: 86px minmax(0, 1fr);
}

body.blog-detail-page .blog-top-posts img {
    width: 86px;
}

body.blog-detail-page .blog-author-box {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 26px;
    padding: 24px;
    text-align: left;
}

body.blog-detail-page .blog-related-posts {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 26px;
}

body.blog-detail-page .blog-comment-button {
    margin-top: 26px;
}

body.blog-detail-page .blog-detail-cta {
    margin-top: 26px;
    padding: 28px;
}

@media (max-width: 1199px) {
    body.blogs-page .blog-list-hero,
    body.blog-detail-page .blog-detail-hero {
        padding-top: 118px;
    }
}

@media (max-width: 767px) {
    body.blogs-page .blog-list-hero,
    body.blog-detail-page .blog-detail-hero {
        padding: 105px 0 40px;
    }

    body.blog-detail-page .blog-detail-body,
    body.blogs-page .blog-list-section {
        padding: 42px 0 58px;
    }

    body.blog-detail-page .blog-detail-content {
        padding: 24px;
    }

    body.blog-detail-page .blog-detail-section p,
    body.blog-detail-page .blog-author-box {
        text-align: center;
    }
}

body.blog-detail-page {
    background: #ffffff;
}

body.blog-detail-page .blog-hero-banner {
    padding: clamp(145px, 11vw, 185px) 0 clamp(72px, 7vw, 112px);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 10%, rgba(246, 166, 35, 0.28), transparent 25%),
        linear-gradient(180deg, #1e4f43 0%, #173f36 52%, #0f2f28 100%);
}

body.blog-detail-page .blog-hero-banner::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 58px;
    background: #ffffff;
    clip-path: ellipse(56% 100% at 50% 100%);
}

body.blog-detail-page .blog-hero-banner .custom_container {
    position: relative;
    z-index: 2;
}

body.blog-detail-page .blog-hero-banner .blog-breadcrumb {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
}

body.blog-detail-page .blog-hero-banner .blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.82);
}

body.blog-detail-page .blog-hero-banner .blog-breadcrumb .current {
    max-width: min(420px, 100%);
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.blog-detail-page .blog-hero-banner .blog-category-pill {
    background: rgba(246, 166, 35, 0.18);
    border: 1px solid rgba(246, 166, 35, 0.38);
    color: var(--primeColor);
}

body.blog-detail-page .blog-hero-title {
    max-width: 980px;
    margin: 0 0 22px;
    color: #ffffff;
    font-family: 'Stika', serif;
    font-size: clamp(34px, 4.3vw, 68px);
    font-weight: 400;
    line-height: 1.08;
}

body.blog-detail-page .blog-hero-excerpt {
    max-width: 820px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.75;
}

body.blog-detail-page .blog-hero-meta,
body.blog-detail-page .blog-author-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

body.blog-detail-page .blog-hero-meta {
    margin-bottom: 22px;
}

body.blog-detail-page .blog-hero-meta .meta-item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
}

body.blog-detail-page .blog-hero-meta i {
    color: var(--primeColor);
}

body.blog-detail-page .blog-author-avatar-placeholder {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--primeColor);
    font-size: 12px;
    font-weight: 900;
}

body.blog-detail-page .blog-author-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

body.blog-detail-page .blog-author-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

body.blog-detail-page .blog-detail-body {
    padding: 52px 0 86px;
    background: #ffffff;
}

body.blog-detail-page .blog-detail-layout {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 300px;
    gap: 38px;
    align-items: start;
    max-width: 100%;
}

body.blog-detail-page .blog-share-sidebar,
body.blog-detail-page .blog-right-sidebar {
    position: sticky;
    top: 104px;
}

body.blog-detail-page .share-label {
    margin: 0 0 12px;
    color: #8a928e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

body.blog-detail-page .share-btn {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.blog-detail-page .share-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(18, 63, 54, 0.18);
}

body.blog-detail-page .share-btn.fb { background: #1877f2; }
body.blog-detail-page .share-btn.li { background: #0a66c2; }
body.blog-detail-page .share-btn.tw { background: #101010; }
body.blog-detail-page .share-btn.mail { background: var(--secondColor); }

body.blog-detail-page .blog-article {
    min-width: 0;
}

body.blog-detail-page .blog-featured-img {
    display: block;
    width: 100%;
    max-height: 470px;
    margin-bottom: 34px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(18, 63, 54, 0.12);
}

body.blog-detail-page .blog-article-content {
    color: #37433f;
    font-size: 16px;
    line-height: 1.86;
}

body.blog-detail-page .blog-article-content h2,
body.blog-detail-page .blog-article-content h3,
body.blog-detail-page .blog-article-content h4 {
    color: var(--secondColor);
    font-family: inherit;
    font-weight: 800;
    line-height: 1.3;
    scroll-margin-top: 120px;
}

body.blog-detail-page .blog-article-content h2 {
    margin: 40px 0 14px;
    font-size: clamp(25px, 2vw, 32px);
}

body.blog-detail-page .blog-article-content h3 {
    margin: 32px 0 12px;
    font-size: 22px;
}

body.blog-detail-page .blog-article-content h4 {
    margin: 26px 0 10px;
    font-size: 18px;
}

body.blog-detail-page .blog-article-content p {
    margin-bottom: 20px;
}

body.blog-detail-page .blog-article-content a {
    color: var(--secondColor);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(246, 166, 35, 0.55);
}

body.blog-detail-page .blog-article-content ul,
body.blog-detail-page .blog-article-content ol {
    margin-bottom: 22px;
    padding-left: 24px;
}

body.blog-detail-page .blog-article-content li {
    margin-bottom: 8px;
}

body.blog-detail-page .blog-article-content img {
    max-width: 100%;
    height: auto;
    margin: 22px 0;
    border-radius: 10px;
}

body.blog-detail-page .blog-article-content blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--primeColor);
    border-radius: 0 10px 10px 0;
    background: #fff8e9;
    color: #5c4930;
    font-style: italic;
}

body.blog-detail-page .blog-back-btn {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: 28px;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondColor), #245c4e);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.blog-detail-page .blog-back-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18, 63, 54, 0.18);
}

body.blog-detail-page .blog-right-sidebar {
    display: grid;
    gap: 22px;
}

body.blog-detail-page .toc-widget,
body.blog-detail-page .cta-widget {
    overflow: hidden;
    border: 1px solid #e4ebe8;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(18, 63, 54, 0.08);
}

body.blog-detail-page .toc-widget-header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid #edf2ef;
    background: #ffffff;
    color: var(--secondColor);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    text-align: left;
}

body.blog-detail-page .toc-widget-header[aria-expanded="false"] i {
    transform: rotate(180deg);
}

body.blog-detail-page .toc-widget-body {
    max-height: 330px;
    overflow-y: auto;
    padding: 12px 0;
}

body.blog-detail-page .toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.blog-detail-page .toc-list a {
    display: block;
    padding: 8px 20px;
    border-left: 3px solid transparent;
    color: #4d5c57;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

body.blog-detail-page .toc-list a:hover,
body.blog-detail-page .toc-list a.active {
    border-left-color: var(--primeColor);
    background: #fff8e9;
    color: var(--secondColor);
}

body.blog-detail-page .toc-list .toc-h3 a {
    padding-left: 32px;
    font-size: 12px;
}

body.blog-detail-page .toc-list .toc-h4 a {
    padding-left: 44px;
    font-size: 11px;
}

body.blog-detail-page .cta-widget {
    padding: 24px 20px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(246, 166, 35, 0.16), rgba(18, 63, 54, 0.08)),
        #ffffff;
}

body.blog-detail-page .cta-widget h2 {
    margin: 0 0 8px;
    color: var(--secondColor);
    font-size: 20px;
    font-weight: 900;
}

body.blog-detail-page .cta-widget p {
    margin-bottom: 16px;
    color: #5f6b67;
    font-size: 13px;
    line-height: 1.55;
}

body.blog-detail-page .cta-widget a {
    display: inline-flex;
    padding: 11px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondColor), #245c4e);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

body.blog-detail-page .blog-author-box,
body.blog-detail-page .blog-related-posts {
    max-width: 100%;
}

@media (max-width: 1199px) {
    body.blog-detail-page .blog-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    body.blog-detail-page .blog-share-sidebar,
    body.blog-detail-page .blog-right-sidebar {
        position: static;
    }

    body.blog-detail-page .blog-share-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    body.blog-detail-page .share-label,
    body.blog-detail-page .share-btn {
        margin: 0;
    }

    body.blog-detail-page .blog-right-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    body.blog-detail-page .blog-hero-banner {
        padding: 128px 0 72px;
    }

    body.blog-detail-page .blog-hero-title,
    body.blog-detail-page .blog-hero-excerpt,
    body.blog-detail-page .blog-author-row,
    body.blog-detail-page .blog-hero-meta,
    body.blog-detail-page .blog-hero-banner .blog-breadcrumb {
        justify-content: center;
        text-align: center;
    }

    body.blog-detail-page .blog-right-sidebar,
    body.blog-detail-page .blog-related-grid,
    body.blog-detail-page .blog-author-box {
        grid-template-columns: 1fr;
    }

    body.blog-detail-page .blog-share-sidebar {
        justify-content: center;
    }
}
