/* ===================================================
   DYORE EXPERIENCES - BLOG DETAIL PAGE STYLESHEET
   Scoped component styles for blog-detail.html
   (All base, typography, layout, header, map & footer
    styles are globally inherited from style.css)
   =================================================== */

/* ==========================================
   PAGE MAIN WRAPPER & CONTAINER
   ========================================== */
.blog-detail-main-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-top: 200px;
    padding-bottom: 90px;
    background-color: var(--color-white);
}

.blog-detail-container {
    max-width: var(--site-max-width, 1440px);
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* ==========================================
   1. MAIN 2-COLUMN ARTICLE LAYOUT
   ========================================== */
.blog-article-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 100px;
}

/* ------------------------------------------
   LEFT COLUMN: STICKY TABLE OF CONTENTS
   ------------------------------------------ */
.toc-sidebar {
    position: sticky !important;
    top: 100px;
    background-color: #fafafa;
    border: 1px solid #d4d4d4;
    padding: 32px 26px;
    box-sizing: border-box;
    border-radius: 0;
}

.toc-heading {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: var(--fw-medium);
    color: var(--color-dark);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 22px;
    line-height: 1.2;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.toc-item {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(112, 112, 112, 0.25);
    line-height: 1.45;
}

.toc-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.toc-link {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 13.5px;
    font-weight: var(--fw-regular);
    color: var(--color-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease, transform 0.25s ease;
    line-height: 1.45;
}

.toc-link:hover {
    color: #800020;
    transform: translateX(3px);
}

.toc-item-faq-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: var(--fw-medium);
    color: var(--color-dark);
    margin-bottom: 8px;
    display: block;
}

.toc-sublist {
    list-style: disc;
    padding-left: 20px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-sublink {
    font-family: var(--font-primary);
    font-size: 12.5px;
    font-weight: var(--fw-light);
    color: var(--color-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.25s ease;
}

.toc-sublink:hover {
    color: #800020;
}

/* ------------------------------------------
   RIGHT COLUMN: MAIN ARTICLE CONTENT
   ------------------------------------------ */
.article-main-col {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-hero-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9.5;
    max-height: 520px;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 24px;
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.article-meta-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 18px;
    border: 1px solid #c4c4c4;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: var(--fw-regular);
    color: #707070;
    margin-bottom: 24px;
    background: transparent;
    line-height: 1.2;
}

.article-main-title {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: var(--fw-regular);
    color: var(--color-dark);
    line-height: 1.25;
    letter-spacing: 0;
    margin: 0 0 22px 0;
    text-transform: none;
}

/* Article Typography */
.article-body-text {
    font-family: var(--font-primary);
    font-size: 14.5px;
    font-weight: var(--fw-light);
    line-height: 1.85;
    color: #333333;
    margin-bottom: 18px;
}

.article-body-text a {
    color: var(--color-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: var(--fw-medium);
}

.article-body-text a:hover {
    color: #800020;
}

/* Article Subheadings */
.article-section-block {
    margin-top: 36px;
    margin-bottom: 20px;
}

.article-h2-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: var(--fw-regular);
    color: var(--color-dark);
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0 0 18px 0;
    text-transform: none;
}

.article-list {
    margin: 16px 0 22px 20px;
    padding: 0;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-list li {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: var(--fw-light);
    line-height: 1.7;
    color: #444444;
}

.article-inline-img-wrap {
    width: 100%;
    max-height: 480px;
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    background-color: #f0f0f0;
    margin: 36px 0;
}

.article-inline-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* FAQs inside article */
.article-faq-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-faq-card {
    border: 1px solid #e8e8e8;
    background: #fdfdfd;
    padding: 22px 24px;
    box-sizing: border-box;
}

.article-faq-question {
    font-family: var(--font-primary);
    font-size: 17px;
    font-weight: var(--fw-medium);
    color: var(--color-dark);
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.article-faq-answer {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: var(--fw-light);
    line-height: 1.75;
    color: #555555;
    margin: 0;
}

/* ==========================================
   2. LATEST ARTICLES SECTION (BOTTOM 3 CARDS)
   ========================================== */
.latest-articles-section {
    padding-top: 60px;
    padding-bottom: 20px;
    border-top: 1px solid #ebebeb;
    margin-top: 60px;
}

.latest-articles-header {
    text-align: center;
    margin-bottom: 50px;
}

.latest-emblem-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.latest-emblem-svg {
    width: 28px;
    height: 38px;
    display: block;
}

.latest-articles-title {
    font-family: var(--font-primary);
    font-size: 38px;
    font-weight: var(--fw-regular);
    color: var(--color-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.latest-article-card {
    background-color: var(--color-white);
    border: 1px solid #e4e4e4;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.latest-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(21, 19, 18, 0.08);
    border-color: #c0c0c0;
}

.latest-card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background-color: #f2f2f2;
    margin-bottom: 22px;
}

.latest-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.latest-article-card:hover .latest-card-img {
    transform: scale(1.04);
}

.latest-card-title {
    font-family: var(--font-primary);
    font-size: 19px;
    font-weight: var(--fw-medium);
    line-height: 1.35;
    color: var(--color-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 14px 0;
    text-align: center;
}

.latest-card-title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.latest-article-card:hover .latest-card-title a {
    color: #800020;
}

.latest-card-desc {
    font-family: var(--font-primary);
    font-size: 13.5px;
    font-weight: var(--fw-light);
    line-height: 1.75;
    color: #555555;
    margin: 0;
    text-align: center;
}

/* ==========================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================== */
@media (max-width: 1200px) {
    .blog-article-layout {
        grid-template-columns: 290px 1fr;
        gap: 40px;
    }

    .article-main-title {
        font-size: 34px;
    }

    .article-h2-title {
        font-size: 28px;
    }

    .latest-card-title {
        font-size: 17px;
    }
}

@media (max-width: 991px) {
    .blog-detail-main-content {
        padding-top: 150px;
    }

    .blog-detail-container {
        padding: 0 30px;
    }

    .blog-article-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .toc-sidebar {
        position: relative;
        top: 0;
    }

    .latest-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .latest-articles-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .blog-detail-main-content {
        padding-top: 85px !important;
        padding-bottom: 45px !important;
    }

    .blog-detail-container {
        padding: 0 20px;
    }

    .article-main-title {
        font-size: 28px;
    }

    .article-h2-title {
        font-size: 23px;
    }

    .latest-articles-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .latest-articles-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .blog-detail-main-content {
        padding-top: 75px !important;
        padding-bottom: 40px !important;
    }

    .blog-detail-container {
        padding: 0 16px;
    }

    .article-main-title {
        font-size: 24px;
        line-height: 1.25;
    }

    .article-h2-title {
        font-size: 20px;
        line-height: 1.28;
    }

    .toc-card {
        padding: 20px 16px;
    }

    .latest-articles-title {
        font-size: 22px;
    }
}