
/* =========================================
   HERCULES SINGLE BLOG DETAIL
========================================= */

.blog-detail-page {
    --brand: #F47B20;
    --brand-dark: #D96312;
    --ink: #111827;
    --text: #273444;
    --muted: #667085;
    --cream: #F4F6F8;
    --white: #FFFFFF;
    --line: #D9E0E7;
    --dark: #101C2C;

    color: var(--text);
    background: var(--white);
}

.blog-detail-page *,
.blog-detail-page *::before,
.blog-detail-page *::after {
    box-sizing: border-box;
}

.blog-detail-page a {
    text-decoration: none;
}

/* Breadcrumb */

.detail-breadcrumb-section {
    padding: 18px 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.detail-breadcrumb a {
    color: var(--text);
    transition: color 0.2s ease;
}

.detail-breadcrumb a:hover {
    color: var(--brand-dark);
}

.detail-breadcrumb > span[aria-hidden="true"] {
    color: #A0A8B3;
}

.detail-breadcrumb-current {
    max-width: 350px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Article hero */

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 65px 0 54px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.detail-hero::after {
    position: absolute;
    top: -160px;
    right: -90px;
    width: 380px;
    height: 380px;
    border: 65px solid rgba(244, 123, 32, 0.07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.detail-category {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 8px 13px;
    color: var(--brand-dark);
    background: rgba(244, 123, 32, 0.12);
    border-left: 3px solid var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.4;
    text-transform: uppercase;
}

.detail-title {
    max-width: 900px;
    margin: 0 0 22px;
    color: var(--ink);
    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
}

.detail-excerpt {
    max-width: 800px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.detail-excerpt p {
    margin: 0;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}

.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.detail-meta-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-meta-divider {
    width: 1px;
    height: 34px;
    background: var(--line);
}

/* Featured image */

.detail-featured-section {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    padding: 0 0 15px;
    background: var(--white);
}

.detail-featured-image {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    background: var(--cream);
    border-bottom: 4px solid var(--brand);
    border-radius: 3px;
}

.detail-featured-img {
    display: block;
    width: 100%;
    max-height: 620px;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

/* Article and sidebar layout */

.detail-body-section {
    padding: 55px 0 90px;
}

.detail-layout {
    display: flex;
}

.detail-article {
    min-width: 0;
    flex: 0 0 65%;
    margin-right: 40px;
}

.detail-content {
    color: var(--text);
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.detail-content > *:first-child {
    margin-top: 0;
}

.detail-content p {
    margin: 0 0 24px;
}

.detail-content h2 {
    margin: 44px 0 18px;
    color: var(--ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.6px;
}

.detail-content h3 {
    margin: 34px 0 14px;
    color: var(--ink);
    font-size: 23px;
    font-weight: 750;
    line-height: 1.4;
}

.detail-content h4,
.detail-content h5,
.detail-content h6 {
    margin: 28px 0 12px;
    color: var(--ink);
    font-weight: 750;
    line-height: 1.5;
}

.detail-content ul,
.detail-content ol {
    margin: 0 0 26px;
    padding-left: 26px;
}

.detail-content li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.detail-content li::marker {
    color: var(--brand);
}

.detail-content a {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-content a:hover {
    color: var(--ink);
}

.detail-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    color: var(--ink);
    background: var(--cream);
    border-left: 4px solid var(--brand);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.8;
}

.detail-content blockquote p:last-child {
    margin-bottom: 0;
}

.detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

.detail-content figure {
    max-width: 100%;
    margin: 32px 0;
}

.detail-content figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.detail-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.detail-content th,
.detail-content td {
    padding: 12px 14px;
    border: 1px solid var(--line);
    text-align: left;
}

.detail-content th {
    color: var(--ink);
    background: var(--cream);
}

.detail-content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 22px;
    color: var(--white);
    background: var(--dark);
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.7;
}

.detail-content code {
    overflow-wrap: anywhere;
}

.detail-content iframe,
.detail-content video {
    max-width: 100%;
}

.detail-content .wp-block-embed__wrapper {
    max-width: 100%;
}

.detail-content hr {
    height: 1px;
    margin: 38px 0;
    background: var(--line);
    border: 0;
}

/* Tags */

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.detail-tags-title {
    margin-right: 4px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.detail-tags a {
    display: inline-block;
    padding: 7px 11px;
    color: var(--text);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 11px;
    transition: all 0.2s ease;
}

.detail-tags a:hover {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

/* Previous and next posts */

.detail-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.detail-post-nav-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
}

.detail-post-next {
    text-align: right;
}

.detail-post-nav-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-post-nav-item a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.65;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.detail-post-nav-item a:hover {
    color: var(--brand-dark);
}

/* Sidebar */

.detail-sidebar {
    position: sticky;
    top: 30px;
    min-width: 0;
}

.detail-sidebar-card,
.detail-sidebar .widget {
    margin-bottom: 25px;
    padding: 25px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 3px;
}

.detail-sidebar-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.detail-sidebar-card h2,
.detail-sidebar .widget-title {
    margin: 0 0 20px;
    color: var(--ink);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
}

.detail-recent-posts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-recent-posts li {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.detail-recent-posts li:first-child {
    padding-top: 0;
}

.detail-recent-posts li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-recent-posts a {
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.7;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.detail-recent-posts a:hover {
    color: var(--brand-dark);
}

.detail-recent-posts li > span {
    color: var(--muted);
    font-size: 11px;
}

.detail-no-posts {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* WordPress sidebar widget support */

.detail-sidebar .widget ul {
    margin: 0;
    padding-left: 18px;
}

.detail-sidebar .widget li {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.detail-sidebar .widget li a {
    color: var(--text);
}

.detail-sidebar .widget li a:hover {
    color: var(--brand-dark);
}

/* Page links */

.detail-page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.detail-page-links > span {
    color: var(--ink);
    font-weight: 700;
}

.detail-page-links a,
.detail-page-links > span:not(:first-child) {
    padding: 7px 12px;
    color: var(--ink);
    border: 1px solid var(--line);
}

/* Not found */

.detail-not-found {
    padding: 90px 0;
    text-align: center;
}

.detail-not-found h1 {
    margin: 0 0 20px;
    color: var(--ink);
}

.detail-not-found a {
    display: inline-flex;
    padding: 14px 22px;
    color: var(--white);
    background: var(--brand);
    font-weight: 750;
}

.detail-not-found a:hover {
    background: var(--brand-dark);
}


/* Custom Recent Articles Sidebar */

.detail-sidebar {
    display: block;
    width: 100%;
    min-width: 0;
    align-self: start;
}

.detail-sidebar-card {
    padding: 25px 22px;
    background: #FFFFFF;
    border: 1px solid #D9E0E7;
    border-top: 4px solid #F47B20;
    border-radius: 3px;
}

.detail-sidebar-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #D96312;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.detail-sidebar-heading {
    margin: 0 0 22px;
    color: #111827;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.35;
}

.detail-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.detail-recent-post {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding-bottom: 19px;
    border-bottom: 1px solid #D9E0E7;
}

.detail-recent-post:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.detail-recent-thumb {
    display: block;
    width: 92px;
    height: 82px;
    overflow: hidden;
    background: #F4F6F8;
    border-radius: 3px;
}

.detail-recent-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.detail-recent-thumb:hover img {
    transform: scale(1.06);
}

.detail-recent-thumb-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: #101C2C;
    font-size: 27px;
    font-weight: 800;
}

.detail-recent-info {
    min-width: 0;
}

.detail-recent-date {
    display: block;
    margin-bottom: 7px;
    color: #667085;
    font-size: 11px;
    line-height: 1.4;
}

.detail-recent-title {
    margin: 0;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.detail-recent-title a {
    color: #273444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-recent-title a:hover {
    color: #D96312;
}

.detail-no-posts {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .detail-sidebar-card {
        padding: 22px 18px;
    }

    .detail-recent-post {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 12px;
    }

    .detail-recent-thumb {
        width: 85px;
        height: 75px;
    }
}

/* Responsive */

@media (max-width: 1024px) {

    .detail-hero {
        padding: 55px 0 45px;
    }

    .detail-body-section {
        padding: 45px 0 70px;
    }
    .detail-sidebar{
        margin-top: 40px;
    }

    .detail-layout {
        display: block;
    }
}

@media (max-width: 767px) {
    .detail-hero {
        padding: 42px 0 35px;
    }

    .detail-hero::after {
        right: -230px;
    }

    .detail-title {
        font-size: 35px;
        letter-spacing: -0.8px;
    }

    .detail-excerpt {
        font-size: 15px;
        line-height: 1.8;
    }

    .detail-meta {
        gap: 15px;
    }

    .detail-featured-img {
        min-height: 220px;
        aspect-ratio: 4 / 3;
    }


    .detail-sidebar {
        position: static;
    }

    .detail-body-section {
        padding: 35px 0 55px;
    }

    .detail-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .detail-content h2 {
        margin-top: 34px;
    }

    .detail-post-navigation {
        gap: 14px;
    }

    .detail-post-nav-item a {
        font-size: 12px;
    }



}

@media (max-width: 420px) {
    .detail-title {
        font-size: 30px;
    }

    .detail-breadcrumb {
        gap: 7px;
        font-size: 11px;
    }

    .detail-meta {
        align-items: flex-start;
    }

    .detail-post-navigation {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-post-next {
        text-align: left;
    }
}
