
/* =========================================================
   AJEEB EXPRESS — BLOG DETAILS
   Breadcrumb > Article Header > Image > Content
========================================================= */

.blog-details-page {
    --bd-primary: var(--primary, #B11917);
    --bd-bg: var(--bg, #f8f8f7);
    --bd-surface: var(--surface, #ffffff);
    --bd-text: var(--text, #202936);
    --bd-muted: var(--text-secondary, #697586);
    --bd-border: var(--border, rgba(32, 41, 54, .09));
    --bd-soft: rgba(177, 25, 23, .055);

    background: var(--bd-bg);
    color: var(--bd-text);
    overflow: clip;
    padding-top: 80px;
}

html[data-theme="dark"] .blog-details-page {
    --bd-bg: #111923;
    --bd-surface: #182331;
    --bd-text: #edf1f5;
    --bd-muted: #a1adba;
    --bd-border: rgba(255, 255, 255, .09);
    --bd-soft: rgba(177, 25, 23, .13);
}

.blog-details,
.blog-details * {
    box-sizing: border-box;
}

.blog-details {
    width: 100%;
    padding: 25px 0 85px;
    color: var(--bd-text);
}

.blog-details__container {
    width: min(1180px, calc(100% - 48px));
    max-width: 100%;
    margin-inline: auto;
    min-width: 0;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.blog-details__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
    color: var(--bd-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.8;
}

.blog-details__breadcrumb a {
    color: var(--bd-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.blog-details__breadcrumb a:hover {
    color: var(--bd-primary);
}

.blog-details__breadcrumb-separator {
    opacity: .45;
}

.blog-details__breadcrumb-current {
    max-width: 350px;
    overflow: hidden;
    color: var(--bd-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   ARTICLE HEADER
========================================================= */

.bd-hero {
    width: 100%;
    min-width: 0;
    margin: 0 0 30px;
    padding: 0;
}

.bd-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 20px;
    color: var(--bd-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.6px;
}

.bd-eyebrow__line {
    display: inline-block;
    width: 29px;
    height: 2px;
    flex: 0 0 29px;
    border-radius: 5px;
    background: var(--bd-primary);
}

.bd-hero__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 7px 12px;
    border: 1px solid rgba(177, 25, 23, .15);
    border-radius: 30px;
    background: var(--bd-soft);
    color: var(--bd-primary);
    font-size: 11px;
    font-weight: 800;
}

.bd-hero__category-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--bd-primary);
}

.bd-hero__title {
    width: 100%;
    max-width: 950px;
    margin: 0;
    color: var(--bd-text);
    font-size: clamp(30px, 3.5vw, 43px);
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: -.7px;
    overflow-wrap: anywhere;
}

.bd-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.bd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bd-muted);
    font-size: 12px;
    font-weight: 600;
}

.bd-meta-item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bd-meta-divider {
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: var(--bd-muted);
    opacity: .5;
}

.bd-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 25px;
}

.bd-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 21px;
    border: 1px solid var(--bd-primary);
    border-radius: 11px;
    background: var(--bd-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}

.bd-primary-btn:hover {
    transform: translateY(-2px);
    background: #941816;
    border-color: #941816;
    color: #fff;
}

.bd-primary-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bd-hero__note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bd-muted);
    font-size: 11px;
    font-weight: 600;
}

.bd-hero__note i {
    color: var(--bd-primary);
    font-size: 13px;
}

/* =========================================================
   FEATURED IMAGE
   INSIDE THE SAME CONTAINER
========================================================= */

.bd-featured {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 50px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--bd-border);
    border-radius: 22px;
    background: var(--bd-surface);
    box-shadow: 0 12px 35px rgba(20, 30, 45, .07);
}

.bd-featured img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    border-radius: inherit;
}

/* =========================================================
   ARTICLE LAYOUT
========================================================= */

.bd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 30px;
    width: 100%;
    min-width: 0;
    scroll-margin-top: 30px;
}

.bd-content {
    width: 100%;
    min-width: 0;
    padding: 38px 40px;
    border: 1px solid var(--bd-border);
    border-radius: 21px;
    background: var(--bd-surface);
    box-shadow: 0 8px 30px rgba(20, 30, 45, .035);
}

.bd-content__inner {
    width: 100%;
    min-width: 0;
    color: var(--bd-text);
    font-size: 15px;
    line-height: 2.05;
    overflow-wrap: anywhere;
}

/* =========================================================
   ARTICLE TYPOGRAPHY
========================================================= */

.bd-content__inner > *:first-child {
    margin-top: 0;
}

.bd-content__inner h1,
.bd-content__inner h2,
.bd-content__inner h3,
.bd-content__inner h4,
.bd-content__inner h5,
.bd-content__inner h6 {
    color: var(--bd-text);
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.bd-content__inner h1 {
    margin: 30px 0 16px;
    font-size: 27px;
}

.bd-content__inner h2 {
    margin: 34px 0 16px;
    padding-inline-start: 15px;
    border-inline-start: 3px solid var(--bd-primary);
    font-size: 23px;
}

.bd-content__inner h3 {
    margin: 28px 0 13px;
    font-size: 19px;
}

.bd-content__inner h4 {
    margin: 24px 0 12px;
    font-size: 17px;
}

.bd-content__inner p {
    margin: 0 0 19px;
    color: var(--bd-muted);
}

.bd-content__inner strong,
.bd-content__inner b {
    color: var(--bd-text);
    font-weight: 800;
}

.bd-content__inner a {
    color: var(--bd-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(177, 25, 23, .3);
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.bd-content__inner a:hover {
    text-decoration-color: var(--bd-primary);
}

.bd-content__inner ul,
.bd-content__inner ol {
    margin: 18px 0 24px;
    padding-inline-start: 25px;
    color: var(--bd-muted);
}

.bd-content__inner li {
    margin-bottom: 9px;
    padding-inline-start: 5px;
}

.bd-content__inner li::marker {
    color: var(--bd-primary);
}

.bd-content__inner blockquote {
    margin: 27px 0;
    padding: 19px 23px;
    border-inline-start: 3px solid var(--bd-primary);
    border-radius: 0 12px 12px 0;
    background: var(--bd-soft);
    color: var(--bd-text);
    font-weight: 600;
}

.bd-content__inner img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 14px;
}

.bd-content__inner figure {
    max-width: 100%;
    margin: 25px 0;
}

.bd-content__inner figcaption {
    margin-top: 10px;
    color: var(--bd-muted);
    font-size: 12px;
    text-align: center;
}

.bd-content__inner iframe,
.bd-content__inner video,
.bd-content__inner embed {
    display: block;
    max-width: 100%;
}

.bd-content__inner iframe {
    width: 100%;
}

.bd-content__inner table {
    width: 100%;
    max-width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    border: 1px solid var(--bd-border);
    font-size: 13px;
}

.bd-content__inner th,
.bd-content__inner td {
    padding: 12px 14px;
    border: 1px solid var(--bd-border);
    text-align: start;
    vertical-align: middle;
}

.bd-content__inner th {
    background: var(--bd-soft);
    color: var(--bd-text);
    font-weight: 800;
}

.bd-content__inner td {
    color: var(--bd-muted);
}

.bd-content__inner hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid var(--bd-border);
}

.bd-content__inner pre {
    max-width: 100%;
    padding: 18px;
    overflow-x: auto;
    border-radius: 12px;
    background: #17212d;
    color: #e7edf5;
    direction: ltr;
    text-align: left;
    font-size: 13px;
}

.bd-content__inner code {
    font-family: Consolas, monospace;
}

/* =========================================================
   ARTICLE FOOTER
========================================================= */

.bd-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--bd-border);
}

.bd-article-footer__text span {
    display: block;
    margin-bottom: 6px;
    color: var(--bd-muted);
    font-size: 11px;
    font-weight: 600;
}

.bd-article-footer__text strong {
    display: block;
    color: var(--bd-text);
    font-size: 14px;
    font-weight: 800;
}

.bd-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(177, 25, 23, .2);
    border-radius: 10px;
    background: var(--bd-soft);
    color: var(--bd-primary);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: .25s ease;
}

.bd-back-link:hover {
    transform: translateY(-2px);
    border-color: var(--bd-primary);
    background: var(--bd-primary);
    color: #fff;
}

.bd-back-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease;
}

.blog-details[dir="rtl"] .bd-back-link:hover svg {
    transform: translateX(-3px);
}

.blog-details[dir="ltr"] .bd-back-link:hover svg {
    transform: translateX(3px);
}

/* =========================================================
   SIDEBAR
========================================================= */

/* =========================================================
   SIDEBAR CTA — LIGHT DESIGN
========================================================= */

.bd-sidebar__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 24px;
    border: 1px solid var(--bd-border);
    border-radius: 20px;
    background: var(--bd-surface);
    color: var(--bd-text);
    box-shadow: 0 8px 28px rgba(20, 30, 45, .045);
    margin-bottom: 5px;
}

.bd-sidebar__glow {
    display: none;
}

.bd-sidebar__eyebrow {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--bd-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.4px;
}

.bd-sidebar__card h3 {
    margin: 0 0 13px;
    color: var(--bd-text);
    font-size: 21px;
    font-weight: 850;
    line-height: 1.55;
}

.bd-sidebar__card p {
    margin: 0 0 22px;
    color: var(--bd-muted);
    font-size: 12px;
    line-height: 1.9;
}

.bd-sidebar__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 45px;
    padding: 0 15px;
    border: 1px solid var(--bd-primary);
    border-radius: 10px;
    background: var(--bd-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: .25s ease;
}

.bd-sidebar__button:hover {
    transform: translateY(-2px);
    background: #941816;
    border-color: #941816;
    color: #fff;
}

.bd-sidebar__button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   SIDEBAR NOTE
========================================================= */

.bd-sidebar__note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 19px;
    border: 1px solid var(--bd-border);
    border-radius: 17px;
    background: var(--bd-surface);
}

.bd-sidebar__note-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border-radius: 12px;
    background: var(--bd-soft);
    color: var(--bd-primary);
}

.bd-sidebar__note-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bd-sidebar__note-content {
    min-width: 0;
}

.bd-sidebar__note-content strong {
    display: block;
    margin-bottom: 6px;
    color: var(--bd-text);
    font-size: 12px;
    font-weight: 800;
}

.bd-sidebar__note-content p {
    margin: 0;
    color: var(--bd-muted);
    font-size: 11px;
    line-height: 1.8;
}

/* =========================================================
   RTL / LTR
========================================================= */

.blog-details[dir="rtl"] {
    text-align: right;
}

.blog-details[dir="ltr"] {
    text-align: left;
}

.blog-details[dir="rtl"] .bd-content__inner blockquote {
    border-radius: 12px 0 0 12px;
}

.blog-details[dir="ltr"] .bd-content__inner blockquote {
    border-radius: 0 12px 12px 0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
    .blog-details__container {
        width: calc(100% - 40px);
    }

    .bd-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 22px;
    }

    .bd-content {
        padding: 30px;
    }

    .bd-sidebar__card {
        padding: 24px 20px;
    }

    .bd-sidebar__card h3 {
        font-size: 19px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .blog-details {
        padding: 20px 0 55px;
    }

    .blog-details__container {
        width: calc(100% - 32px);
        max-width: 600px;
        margin-inline: auto;
    }

    .blog-details__breadcrumb {
        gap: 7px;
        margin-bottom: 23px;
        font-size: 10px;
    }

    .blog-details__breadcrumb-current {
        max-width: 130px;
    }

    .bd-hero {
        margin-bottom: 23px;
    }

    .bd-eyebrow {
        margin-bottom: 16px;
        font-size: 9px;
    }

    .bd-hero__category {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .bd-hero__title {
        font-size: clamp(25px, 7vw, 34px);
        line-height: 1.45;
        letter-spacing: -.3px;
    }

    .bd-hero__meta {
        gap: 11px;
        margin-top: 16px;
    }

    .bd-meta-item {
        gap: 6px;
        font-size: 10px;
    }

    .bd-meta-item svg {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

    .bd-hero__actions {
        gap: 13px;
        margin-top: 20px;
    }

    .bd-primary-btn {
        min-height: 44px;
        padding-inline: 16px;
        font-size: 11px;
    }

    .bd-hero__note {
        font-size: 10px;
    }

    /* Image remains inside the container */
    .bd-featured {
        width: 100%;
        max-width: 100%;
        margin: 0 0 30px;
        border-radius: 15px;
    }

    .bd-featured img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Article and sidebar */
    .bd-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        width: 100%;
        min-width: 0;
    }

    .bd-content {
        width: 100%;
        min-width: 0;
        padding: 23px 19px;
        border-radius: 17px;
    }

    .bd-content__inner {
        width: 100%;
        min-width: 0;
        font-size: 13px;
        line-height: 1.95;
    }

    .bd-content__inner h1 {
        font-size: 23px;
    }

    .bd-content__inner h2 {
        margin-top: 27px;
        font-size: 20px;
    }

    .bd-content__inner h3 {
        font-size: 17px;
    }

    .bd-content__inner h4 {
        font-size: 15px;
    }

    .bd-content__inner table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 11px;
    }

    .bd-content__inner th,
    .bd-content__inner td {
        padding: 9px 11px;
    }

    .bd-content__inner iframe {
        max-width: 100%;
    }

    .bd-article-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-top: 30px;
        padding-top: 22px;
    }

    .bd-article-footer__text strong {
        font-size: 13px;
    }

    .bd-back-link {
        width: 100%;
    }

    .bd-sidebar {
        position: static;
        width: 100%;
        min-width: 0;
        gap: 14px;
    }

    .bd-sidebar__card {
        padding: 24px 21px;
        border-radius: 17px;
    }

    .bd-sidebar__card h3 {
        font-size: 19px;
    }

    .bd-sidebar__note {
        padding: 16px;
        border-radius: 15px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .blog-details__container {
        width: calc(100% - 26px);
    }

    .bd-hero__title {
        font-size: 24px;
    }

    .bd-hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .bd-content {
        padding: 20px 15px;
    }

    .bd-sidebar__card h3 {
        font-size: 18px;
    }
}

/* =========================================================
   DARK MODE
========================================================= */

html[data-theme="dark"] .bd-content {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .13);
}

html[data-theme="dark"] .bd-featured {
    box-shadow: 0 12px 35px rgba(0, 0, 0, .2);
}

html[data-theme="dark"] .bd-sidebar__note {
    background: var(--bd-surface);
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .blog-details *,
    .blog-details *::before,
    .blog-details *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
