/* =========================================================
   GLOSSAR DETAIL PAGE — REDESIGN
   ========================================================= */

/* --- Post Container --- */
.glossar-post-container {
    max-width: 100%;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Breadcrumb --- */
.glossar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    font-size: 13px;
    color: #6B6D72;
    max-width: 1200px;
    margin: 0 auto;
}

.glossar-breadcrumb a {
    color: #6B6D72;
    text-decoration: none;
    transition: color 0.2s;
}

.glossar-breadcrumb a:hover {
    color: #2271B1;
}

.glossar-breadcrumb-sep {
    color: #B0B3BA;
    font-size: 14px;
}

.glossar-breadcrumb-current {
    color: #1D2327;
    font-weight: 500;
}

/* --- Hero --- */
.glossar-detail-hero {
    text-align: center;
    padding: 32px 24px 48px;
    background: #F3F8FB;
    max-width: 100%;
}

.glossar-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #6B6D72;
    margin-bottom: 16px;
}

.glossar-detail-dot {
    color: #B0B3BA;
}

.glossar-detail-title {
    font-size: 56px;
    font-weight: 500;
    color: #1D2327;
    line-height: 1.1;
    margin: 0 auto 24px;
    max-width: 900px;
    letter-spacing: -0.5px;
}

.glossar-detail-intro {
    max-width: 760px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #1D2327;
    text-align: center;
}

.glossar-detail-intro strong {
    font-weight: 700;
}

/* --- Layout (main + sidebar) --- */
.glossar-detail-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 0 24px 64px;
    align-items: flex-start;
}

/* --- Main content column --- */
.glossar-detail-main {
    flex: 1;
    min-width: 0;
}

.glossar-detail-main.glossar-full-width {
    max-width: 100%;
}

/* --- Sections --- */
.glossar-section {
    margin-bottom: 48px;
}

.glossar-section-title {
    font-size: 28px;
    font-weight: 600;
    color: #1D2327;
    line-height: 1.25;
    margin: 0 0 20px;
}

.glossar-section-content p {
    font-size: 16px;
    line-height: 1.75;
    color: #3C3F44;
    margin-bottom: 16px;
}

.glossar-section-content p:last-child {
    margin-bottom: 0;
}

/* legacy wrapper — no longer used but keep for safety */
.glossar-post-content {
    flex: 1;
    min-width: 0;
}

/* --- FAQ wrap (outside layout, full width) --- */
.glossar-faq-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glossar-faq-inner {
    max-width: 100%;
}

/* --- Sidebar --- */
.glossar-detail-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glossar-sidebar-box {
    background: #F8FAFC;
    border: 1px solid #E7E9EE;
    border-radius: 16px;
    padding: 20px;
}

.glossar-sidebar-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B6D72;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

/* Share buttons */
.glossar-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.glossar-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EFF2F5;
    color: #3C3F44;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    text-decoration: none;
    flex-shrink: 0;
}

.glossar-share-btn:hover {
    transform: translateY(-2px);
}

.glossar-share-btn--whatsapp:hover  { background: #25D366; color: #fff; }
.glossar-share-btn--twitter:hover   { background: #000; color: #fff; }
.glossar-share-btn--facebook:hover  { background: #1877F2; color: #fff; }
.glossar-share-btn--messenger:hover { background: #0084FF; color: #fff; }
.glossar-share-btn--linkedin:hover  { background: #0A66C2; color: #fff; }

/* TOC */
.glossar-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.glossar-toc-item {
    margin: 0 !important;
    padding: 0 !important;
    position: unset !important;
}

.glossar-toc-link {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: #3C3F44;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.glossar-toc-link:hover {
    background: #EEF4FB;
    color: #2271B1;
    border-left-color: #2271B1;
}

.glossar-toc-link.active {
    background: #EEF4FB;
    color: #2271B1;
    border-left-color: #2271B1;
    font-weight: 600;
}

/* --- FAQ Section --- */
.glossar-faq-section {
    margin-top: 56px;
    padding-top: 8px;
}

.glossar-faq-title {
    font-size: 36px;
    font-weight: 600;
    color: #1D2327;
    margin: 0 0 32px;
}

.glossar-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.glossar-faq-item {
    border: 1px solid #E7E9EE;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.glossar-faq-item.is-open {
    border-color: #2271B1;
}

.glossar-faq-question {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px !important;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #1D2327;
    text-align: left;
    gap: 16px;
    transition: background 0.15s;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.glossar-faq-question:hover {
    background: #F8FAFC;
}

.glossar-faq-item.is-open .glossar-faq-question {
    background: #EEF4FB;
    color: #2271B1;
}

.glossar-faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: #6B6D72;
    transition: transform 0.25s ease;
}

.glossar-faq-item.is-open .glossar-faq-icon {
    transform: rotate(180deg);
    color: #2271B1;
}

.glossar-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
    overflow: hidden;
}

.glossar-faq-answer-inner {
    overflow: hidden;
    padding: 0 24px;
}

.glossar-faq-item.is-open .glossar-faq-answer {
    grid-template-rows: 1fr;
}

.glossar-faq-item.is-open .glossar-faq-answer-inner {
    padding: 4px 24px 20px;
}

.glossar-faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: #3C3F44;
    margin: 0;
}

/* --- Related Posts --- */
.glossar-related-section {
    background: #F3F8FB;
    padding: 64px 24px;
    margin-top: 0;
}

.glossar-related-title {
    font-size: 40px;
    font-weight: 500;
    color: #1D2327;
    text-align: center;
    margin: 0 auto 40px;
    max-width: 1200px;
}

.glossar-related-carousel-wrap {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.glossar-related-carousel {
    display: flex;
    gap: 24px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glossar-related-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
    background: #fff;
    border: 1px solid #E7E9EE;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.glossar-related-card:hover {
    box-shadow: 0 8px 32px rgba(34, 113, 177, 0.10);
    transform: translateY(-2px);
}

.glossar-related-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1D2327;
    margin: 0 0 8px;
    line-height: 1.3;
}

.glossar-related-card-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #6B6D72;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.glossar-related-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2271B1;
    text-decoration: none;
    transition: gap 0.15s;
    margin-top: 4px;
}

.glossar-related-card-link:hover {
    gap: 10px;
}

.glossar-related-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.glossar-related-prev,
.glossar-related-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #E7E9EE !important;
    background: #fff;
    color: #3C3F44;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    box-shadow: none !important;
    flex-shrink: 0;
    padding: 0 !important;
}

.glossar-related-prev:hover,
.glossar-related-next:hover {
    background: #2271B1;
    color: #fff;
    border-color: #2271B1 !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .glossar-detail-layout {
        flex-direction: column-reverse;
        padding-bottom: 40px;
    }

    .glossar-detail-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .glossar-sidebar-box {
        flex: 1;
        min-width: 200px;
    }

    .glossar-related-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .glossar-detail-title {
        font-size: 32px;
    }

    .glossar-detail-hero {
        padding: 24px 16px 40px;
    }

    .glossar-detail-layout {
        padding: 0 16px 40px;
        margin-top: 32px;
        gap: 24px;
    }

    .glossar-faq-wrap {
        padding: 0 16px;
    }

    .glossar-detail-sidebar {
        flex-direction: column;
    }

    .glossar-sidebar-box {
        min-width: unset;
    }

    .glossar-related-card {
        flex: 0 0 80vw;
    }

    .glossar-related-title {
        font-size: 28px;
    }

    .glossar-faq-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .glossar-related-card {
        flex: 0 0 90vw;
    }
}