/* Blog details (/blogs/details/{slug}). Loaded only on blog-details.blade.php.
   Layout only: no heading tags, text, meta or schema are changed here.
   Everything is scoped under .bd-page. */

.bd-page {
    --bd-accent: #ff3c3c;
    --bd-accent-2: #ff7a2f;
    --bd-ink: #111111;
    --bd-text: #444444;
    --bd-muted: #888888;
    --bd-line: #ececec;
    background: #fff;
}

/* ---------- Breadcrumb hero (shared breadcrumb markup, restyled) ---------- */
.bd-page .breadcrumb-area {
    position: relative;
    padding: 28px 0 40px;
    border-bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff6f1 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
}

.bd-page .breadcrumb-area::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bd-accent), var(--bd-accent-2));
}

.bd-page .breadcrumb-area .breadcrumb-index {
    justify-content: flex-start !important;
}

/* ---------- Article layout ---------- */
.bd-page .article-area {
    padding-top: 40px;
    padding-bottom: 72px;
}

/* Cover image: real 1.75:1 ratio, angled corner, HUD brackets, date chip */
.bd-page .blog-image {
    position: relative;
    margin-bottom: 32px !important;
    aspect-ratio: 512 / 293;
    overflow: hidden;
    background: #f4f4f4;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 0 100%);
}

.bd-page .blog-image > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.bd-page .blog-image::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(var(--bd-accent), var(--bd-accent)) left top / 22px 2px no-repeat,
        linear-gradient(var(--bd-accent), var(--bd-accent)) left top / 2px 22px no-repeat,
        linear-gradient(var(--bd-accent-2), var(--bd-accent-2)) right top / 22px 2px no-repeat,
        linear-gradient(var(--bd-accent-2), var(--bd-accent-2)) right top / 2px 22px no-repeat;
}

.bd-page .blog-overlay {
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: max-content !important;
    z-index: 2;
    padding: 6px 14px 6px 12px !important;
    border-radius: 0 !important;
    background: linear-gradient(90deg, var(--bd-accent), var(--bd-accent-2)) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.bd-page .blog-overlay .date-time {
    color: #fff;
}

/* Article card */
.bd-page .blog-article-wrapper {
    padding: 34px 36px !important;
    border: 1px solid var(--bd-line);
    border-radius: 10px !important;
    box-shadow: none !important;
}

/* ---------- Article body (CMS HTML; headings and text are untouched) ---------- */
.bd-page .full-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--bd-text);
    overflow-wrap: anywhere;
}

.bd-page .full-desc p {
    margin: 0 0 1.1em;
}

/* Editors leave <p><br></p> spacers behind; keep them as small gaps */
.bd-page .full-desc p:has(> br:only-child) {
    margin: 0;
    height: 0.6em;
}

/* Keep inline spans and links inline, as the original page did */
.bd-page .full-desc span,
.bd-page .full-desc a {
    display: inline;
}

.bd-page .full-desc a {
    color: var(--bd-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bd-page .full-desc h1,
.bd-page .full-desc h2,
.bd-page .full-desc h3,
.bd-page .full-desc h4 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    color: var(--bd-ink);
    line-height: 1.3;
}

/* H1 inside the article body is the post title: make it the headline */
.bd-page .full-desc h1 {
    margin: 0 0 0.7em;
    padding-bottom: 14px;
    position: relative;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 700;
}

.bd-page .full-desc h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--bd-accent), var(--bd-accent-2));
}

.bd-page .full-desc h2 {
    margin: 2em 0 0.7em;
    padding-left: 14px;
    border-left: 4px solid var(--bd-accent);
    font-size: 24px;
}

.bd-page .full-desc h3 {
    margin: 1.8em 0 0.6em;
    font-size: 19px;
}

.bd-page .full-desc h4 {
    margin: 1.5em 0 0.5em;
    font-size: 17px;
}

.bd-page .full-desc ul,
.bd-page .full-desc ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.bd-page .full-desc li {
    margin-bottom: 0.4em;
}

.bd-page .full-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.bd-page .full-desc blockquote {
    margin: 1.5em 0;
    padding: 14px 20px;
    border-left: 3px solid var(--bd-accent);
    background: #fff6f1;
    color: var(--bd-ink);
}

.bd-page .full-desc table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.bd-page .full-desc th,
.bd-page .full-desc td {
    padding: 8px 10px;
    border: 1px solid var(--bd-line);
}

.bd-page .full-desc pre {
    overflow-x: auto;
    padding: 14px;
    background: #f7f7f7;
    border-radius: 6px;
}

/* ---------- Recent blogs sidebar (markup unchanged: h4 title, h6 post titles) ---------- */
.bd-page .article-area .col-lg-4 h4 {
    position: relative;
    margin: 0 0 18px !important;
    padding-bottom: 12px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bd-ink);
    border-bottom: 1px solid var(--bd-line);
}

.bd-page .article-area .col-lg-4 h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--bd-accent), var(--bd-accent-2));
}

.bd-page .recent-blog {
    background: #fff !important;
    border: 1px solid var(--bd-line) !important;
    border-radius: 6px !important;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bd-page .recent-blog:hover {
    border-color: rgba(255, 60, 60, 0.45) !important;
    box-shadow: 0 10px 24px rgba(255, 60, 60, 0.1);
    transform: translateX(3px);
}

.bd-page .recent-blog .shadow-lg,
.bd-page .recent-blog .shadow-lgx {
    box-shadow: none !important;
}

.bd-page .recent-blog img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.bd-page .recent-blog .col-4 img {
    aspect-ratio: 512 / 293;
    border-radius: 4px;
}

.bd-page .recent-blog h6 {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bd-ink);
}

.bd-page .recent-blog:hover h6 {
    color: var(--bd-accent);
}

.bd-page .recent-blog small {
    font-size: 12px;
    color: var(--bd-muted) !important;
}

@media (min-width: 992px) {
    .bd-page .article-area .col-lg-4 {
        position: sticky;
        top: 90px;
        align-self: flex-start;
    }
}

@media (max-width: 767px) {
    .bd-page .breadcrumb-area {
        padding: 20px 0 36px;
    }

    /* The breadcrumb sits inside a <nav>, which grew to fit the long title and
       pushed the page sideways. Let the list wrap within the screen width instead. */
    .bd-page .breadcrumb-index,
    .bd-page .breadcrumb-index nav {
        min-width: 0;
        max-width: 100%;
    }

    .bd-page .breadcrumb-index ul.breadcrumb-ul {
        flex-wrap: wrap;
        overflow: visible;
    }

    .bd-page .breadcrumb-index ul.breadcrumb-ul li.breadcrumb-li {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .bd-page .blog-article-wrapper {
        padding: 22px 18px !important;
    }

    .bd-page .full-desc {
        font-size: 15px;
    }

    .bd-page .full-desc h2 {
        font-size: 21px;
    }

    .bd-page .article-area .col-lg-4 {
        margin-top: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bd-page .recent-blog {
        transition: none;
    }

    .bd-page .recent-blog:hover {
        transform: none;
    }
}
