/* Content Detail Page Styles (Figma MOBILE 8) */

/* Detail Glass Container (Frame 29) */
.detail-glass-card {
    width: 100%;
    height: 800px;
    max-height: calc(100vh - 156px);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #FFFFFF;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 24px 20px 24px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 5;
    margin-bottom: 17px;
    /* Hide scrollbar for seamless pixel-perfection matching Figma */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.detail-glass-card::-webkit-scrollbar {
    display: none;
}

/* Detail Title Badge */
.detail-badge-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.detail-badge-img {
    height: 42px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    display: block;
}

/* Gold CSS Badge (for subpages without static image badge) */
.gold-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border-radius: 25px;
    border: 1px solid #FFEE83;
    background: linear-gradient(90deg, #DFBE78 0%, #FBEBA3 47.5%, #DFBE78 100%);
    box-shadow: 0px 1.2px 0.4px 0px rgba(165, 125, 67, 0.86),
                inset 1.8px 3px 1px 0px rgba(137, 102, 50, 0.56),
                inset -0.6px -1.2px 1.8px 0px rgba(0, 0, 0, 0.20);
    color: #333333;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.2px;
}

/* Illustration Image */
.illustration-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.illustration-img {
    width: 100%;
    max-width: 266px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Article Content & Typography */
.detail-body {
    width: 100%;
    color: #272727;
    font-family: 'Roboto', sans-serif;
}

b,
strong,
.the-content b,
.the-content strong,
.detail-body b,
.detail-body strong {
    font-weight: 700;
}

.detail-body p,
.the-content p {
    color: #272727;
    font-size: 16px;
    line-height: 1.65;
    text-align: justify;
    margin-bottom: 12px;
    letter-spacing: -0.05px;
}

.the-content ul.list-info,
.the-content ul:not(.toc ul) {
    padding-left: 20px;
    margin: 10px 0 14px 0;
}

.the-content ul.list-info li,
.the-content ul:not(.toc ul) li {
    list-style-type: disc;
    line-height: 1.65;
    font-size: 16px;
    color: #272727;
    margin-bottom: 8px;
    text-align: justify;
}

.the-content ol {
    padding-left: 20px;
    margin: 10px 0 14px 0;
}

.the-content ol li {
    list-style-type: decimal;
    line-height: 1.65;
    font-size: 16px;
    color: #272727;
    margin-bottom: 8px;
    text-align: justify;
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 14px 0;
    border-radius: 8px;
}

.table-responsive::-webkit-scrollbar {
    height: 5px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #F27121;
    border-radius: 4px;
}

.table-responsive .table {
    min-width: 580px;
    margin: 0;
}

.table th {
    white-space: nowrap;
}

.highlight-orange,
.the-content .hightline {
    color: #F27121;
    font-weight: 700;
}

a.highlight-orange,
a.link-orange,
.the-content a {
    color: #F27121;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
}

a.highlight-orange:hover,
a.link-orange:hover,
.the-content a:hover {
    color: #d85c10;
}

.the-content p[id] {
    font-family: 'Roboto', sans-serif;
    color: #F27121;
    font-size: 18px;
    font-weight: 700;
    margin-top: 22px;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: left;
}

/* Section Headings */
.section-title,
.the-content .title h2,
.the-content h2,
.the-content p[id],
.the-content .section-title,
.the-content .toc-title,
.the-content .toc > p:first-child {
    font-family: 'Roboto', sans-serif;
    color: #F27121 !important;
    font-size: 18px;
    font-weight: 700;
    margin-top: 22px;
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: left;
}

.the-content .title h2 {
    font-size: 19px;
    text-align: center;
}

.the-content .toc-title,
.the-content .toc > p:first-child {
    margin-top: 0;
    margin-bottom: 12px;
}

.nowrap,
.table td.nowrap,
.table th.nowrap {
    white-space: nowrap !important;
}

/* Image content inside articles */
.img-content {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.img-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Legacy subpage compatibility wrapper */
.the-content {
    width: 100%;
    height: 800px;
    max-height: calc(100vh - 156px);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #FFFFFF;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 24px 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden !important;
    word-break: break-word;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 17px;
}

.the-content::-webkit-scrollbar {
    display: none;
}

.add-border {
    display: none !important;
}

.titlep-top {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    border: none;
    background: none;
    box-shadow: none;
    padding: 0;
}

.titlep-top h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border-radius: 25px;
    border: 1px solid #FFEE83;
    background: linear-gradient(90deg, #DFBE78 0%, #FBEBA3 47.5%, #DFBE78 100%);
    box-shadow: 0px 1.2px 0.4px 0px rgba(165, 125, 67, 0.86),
                inset 1.8px 3px 1px 0px rgba(137, 102, 50, 0.56),
                inset -0.6px -1.2px 1.8px 0px rgba(0, 0, 0, 0.20);
    color: #333333;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}



/* Tab switcher */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}