/* ==========================================================================
   Blog detail page only.
   Loaded from resources/views/frontend/blog-detail.blade.php through the
   layout's styles section, so every rule here is scoped to its bd-* classes.
   ========================================================================== */

.bd-main {
    background-color: #f7f6f4;
    padding: 34px 0 90px;
    color: #1f2328;
}

/* The theme makes the header static on this page (.no-position .header), and a static
   header paints below positioned content, so the nav dropdowns ended up behind the
   sticky sidebar. Give the header its own stacking level again. */
.post-pg-style1 .header {
    position: relative !important;
    z-index: 100;
}

/* --------------------------------------------------- breadcrumb */
.bd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7c8089;
}

.bd-breadcrumb a {
    color: #7c8089;
    transition: color 0.25s ease;
}

.bd-breadcrumb a:hover {
    color: var(--color-orange1);
}

.bd-breadcrumb-current {
    color: #14181d;
    font-weight: 600;
}

/* --------------------------------------------------- layout */
.bd-layout {
    --bs-gutter-x: 32px;
    row-gap: 28px;
}

/* --------------------------------------------------- article */
.bd-article {
    background-color: #fff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
}

.bd-figure {
    margin: 0 0 24px;
}

.bd-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.bd-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    margin-bottom: 18px;
    font-size: 15px;
    color: #6b7280;
}

.bd-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bd-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.bd-author-name {
    color: #14181d;
    font-weight: 700;
}

.bd-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bd-date i {
    color: var(--color-orange1);
}

.bd-title {
    margin: 0 0 22px;
    font-family: "Lora", serif;
    font-size: 40px;
    line-height: 1.25;
    font-weight: 600;
    color: #14181d;
}

/* --------------------------------------------------- post body (editor output) */
.bd-content {
    font-size: 17px;
    line-height: 1.85;
    color: #454b54;
}

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

.bd-content p {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.85;
}

.bd-content h2,
.bd-content h3,
.bd-content h4,
.bd-content h5,
.bd-content h6 {
    font-family: "Lora", serif;
    color: #14181d;
    font-weight: 600;
    line-height: 1.35;
}

.bd-content h2 {
    margin: 36px 0 14px;
    font-size: 28px;
}

.bd-content h3 {
    margin: 30px 0 12px;
    font-size: 23px;
}

.bd-content h4 {
    margin: 26px 0 10px;
    font-size: 20px;
}

.bd-content h5,
.bd-content h6 {
    margin: 22px 0 10px;
    font-size: 18px;
}

/* the theme strips list markers site-wide; the post body needs them back */
.bd-content ul,
.bd-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

/* beats the theme's "body ul:not(.list-styled) { list-style-type: none }" reset */
.bd-main .bd-content ul {
    list-style: disc outside;
}

.bd-main .bd-content ol {
    list-style: decimal outside;
}

.bd-content li {
    display: list-item;
    margin-bottom: 10px;
}

.bd-content li::marker {
    color: var(--color-orange1);
}

.bd-content li > ul,
.bd-content li > ol {
    margin: 10px 0 0;
}

.bd-content a {
    color: var(--color-orange1);
    text-decoration: underline;
}

.bd-content strong,
.bd-content b {
    color: #14181d;
}

.bd-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 6px 0 24px;
}

.bd-content figure {
    margin: 0 0 24px;
    max-width: 100%;
}

.bd-content figure.table {
    overflow-x: auto;
}

.bd-content figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #8a8f98;
}

.bd-content blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--color-orange1);
    border-radius: 0 12px 12px 0;
    background-color: #faf7f7;
    font-size: 18px;
    color: #2d3238;
}

.bd-content table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
}

.bd-content th,
.bd-content td {
    padding: 10px 14px;
    border: 1px solid #e7e7e7;
    text-align: left;
}

.bd-content iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* the theme hides every <br> below 991px; keep the editor's line breaks in the post */
.bd-content br {
    display: initial;
}

/* --------------------------------------------------- share row */
.bd-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #ececec;
}

.bd-share-label {
    font-weight: 700;
    color: #14181d;
}

.bd-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bd-share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f2f2f0;
    color: #3a3f46;
    font-size: 15px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.bd-share-links a:hover {
    background-color: var(--color-orange1);
    color: #fff;
    transform: translateY(-2px);
}

/* --------------------------------------------------- sidebar */
.bd-sticky {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bd-card {
    background-color: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
}

.bd-card-title {
    margin: 0 0 16px;
    font-family: "Lora", serif;
    font-size: 22px;
    font-weight: 600;
    color: #14181d;
}

.bd-latest {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.bd-latest-item {
    display: block;
    overflow: hidden;
    border: 1px solid #efefee;
    border-radius: 14px;
    background-color: #fbfbfa;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.bd-latest-item:hover {
    border-color: #e3e3e1;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
    transform: translateY(-2px);
}

.bd-latest-img img {
    display: block;
    width: 100%;
    height: auto;
}

.bd-latest-body {
    display: block;
    padding: 12px 14px 14px;
}

.bd-latest-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #14181d;
    transition: color 0.25s ease;
}

.bd-latest-item:hover .bd-latest-title {
    color: var(--color-orange1);
}

.bd-latest-date {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #8a8f98;
}

.bd-see-all {
    display: block;
    padding: 12px 18px;
    border-radius: 12px;
    background-color: var(--color-orange1);
    color: #fff;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.25s ease;
}

.bd-see-all:hover {
    background-color: #c20f18;
    color: #fff;
}

.bd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bd-tag {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    background-color: #f3f3f1;
    color: #4a4f56;
    font-size: 14px;
}

.bd-connect {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bd-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.bd-social:hover {
    color: #fff;
    opacity: 0.9;
    transform: translateY(-2px);
}

.bd-social-facebook {
    background-color: #1877f2;
}

.bd-social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.bd-social-twitter {
    background-color: #000;
}

.bd-social-youtube {
    background-color: #ff0000;
}

.bd-social-linkedin {
    background-color: #0a66c2;
}

/* --------------------------------------------------- sidebar call to action */
.bd-cta {
    position: relative;
    z-index: 1;
    padding: 26px 24px;
    border-radius: 18px;
    background-image: url(../img/projects/royal-woods.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.bd-cta::before {
    position: absolute;
    content: "";
    inset: 0;
    z-index: -1;
    border-radius: 18px;
    background-color: rgba(0, 0, 0, 0.55);
}

.bd-cta-title {
    margin: 0 0 10px;
    font-family: "Lora", serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.bd-cta p {
    margin: 0 0 18px;
    font-size: 15px;
    color: #f1f1f1;
}

.bd-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 30px;
    background-color: var(--color-orange1);
    color: #fff;
    font-weight: 700;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.bd-cta-btn:hover {
    background-color: #fff;
    color: var(--color-orange1);
}

/* --------------------------------------------------- responsive */
@media (min-width: 992px) {
    .bd-sticky {
        position: sticky;
        top: 24px;
    }
}

@media (max-width: 991px) {
    .bd-main {
        padding: 24px 0 60px;
    }

    .bd-article {
        padding: 18px;
        border-radius: 16px;
    }

    .bd-title {
        font-size: 30px;
    }

    .bd-content,
    .bd-content p {
        font-size: 16px;
    }

    .bd-content h2 {
        font-size: 24px;
    }

    .bd-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .bd-article {
        padding: 14px;
    }

    .bd-title {
        font-size: 26px;
    }

    .bd-byline {
        gap: 12px 18px;
    }

    .bd-card,
    .bd-cta {
        padding: 18px;
    }
}
