@font-face {
    font-family: 'Google Sans';
    src: url('/assets/fonts/Google_Sans/static/GoogleSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('/assets/fonts/Google_Sans/static/GoogleSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('/assets/fonts/Google_Sans/static/GoogleSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('/assets/fonts/Google_Sans/static/GoogleSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('/assets/fonts/Google_Sans/static/GoogleSans-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Google Sans', Arial, sans-serif;
    font-size: 10.5px;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    letter-spacing: 0.01em;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

* {
    font-weight: 400 !important;
}

.workspace {
    flex: 1;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    background: #f0f0f0; /* Memberi kontras sedikit agar terlihat center */
}

[data-theme="dark"] .workspace {
    background: #121212 !important;
}

.workspace-center {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Memenuhi tinggi layar penuh */
    overflow: hidden; /* Mencegah scroll di level ini */
    box-shadow: var(--shadow);
    margin: 0px auto;
    width: 95%;
    max-width: 1200px;
    background: var(--background);
    border-radius: 0; 
}

header {
    flex-shrink: 0;
    background: var(--header-bg);
    padding: 10px 0;
    font-size: 13px;
    z-index: 1000;
    border-bottom: 1px solid var(--garis);
}

.logoexamio {
    width: 100px;
    height: auto;
}

.header-divider {
    width: 1px;
    height: 30px;
    background-color: #878282;
    margin-left: 15px;
    opacity: 0.5;
}

.header-sub-brand {
    font-size: 15px;
    color: var(--text);
    margin: 0 !important;
}

.theme-icon-header {
    width: 23px;
    margin-right: 8px;
}

.header-utility-links {
    margin-left: 10px;
    padding-left: 10px;
}

.world-icon {
    width: 20px;
    transition: opacity 0.2s;
}

.world-icon:hover {
    opacity: 0.7;
}

.vertical-link-separator {
    display: inline-block;
    width: 1px;
    height: 20px;
    background-color: #878282;
    margin: -6px 10px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
    text-align: center;
    background: #D9D9D9 !important;
    color: #333 !important;
    padding: 5px !important;
    width: 95%;
    max-width: 1200px;
    font-size: 10px;
    border-top: 1px solid var(--garis);
    z-index: 100;
}

[data-theme="dark"] footer {
    background: var(--header-bg) !important;
    color: #9aa0a6 !important;
    border-top-color: #3c4043;
}

.container {
    flex: 1; /* Mengambil sisa ruang yang ada */
    display: flex;
    overflow-y: auto; /* Area ini yang bisa di-scroll */
    padding: 0;
    padding-bottom: 40px; /* reserve room so content doesn't sit under the fixed footer */
    margin: 0;
    max-width: 100%;
    /* Hide Scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.content {
    width: 100% !important;
    max-width: 1000px;
    margin: 0 auto !important;
    padding: 20px 40px !important;
}

/* Sidebar Mockup Sticky */
.article-sidebar {
    width: 280px;
    position: relative;
}
.article-main {
    flex: 1;
    max-width: 650px;
    border: 1px solid #dadce0;
    padding: 30px;
    border-radius: 8px;
    background: transparent !important;
}

.sidebar-box {
    padding: 0px 20px;
    background: transparent !important;
    border: none;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.article-image-wrapper {
    margin: 32px 0;
    text-align: center;
    background: transparent !important;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dadce0;
}

/* ==================== RESPONSIVE: MOBILE ==================== */
@media screen and (max-width: 768px) {
    body {
        font-size: 11px;
    }

    header {
        font-size: 11px;
        padding: 6px 10px;
    }

    .logoexamio {
        width: 80px !important;
    }

    .header-divider, 
    .header-sub-brand {
        display: none !important;
    }

    .container {
        flex-direction: column;
        padding: 0;
    }

    .content {
        padding: 15px !important;
    }

    .category-section {
        padding: 10px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-category {
        min-height: 100px;
        flex-direction: column;
        padding: 15px 10px;
        justify-content: center;
        align-items: center;
    }

    .card-category img {
        margin-bottom: 10px;
        margin-right: 0;
        width: 32px !important;
        height: 32px !important;
    }

    .article-layout {
        flex-direction: column;
        gap: 20px;
    }

    .article-main {
        padding: 15px;
        border: none;
    }

    .article-sidebar {
        width: 100%;
    }

    .hero-section {
        margin: 10px;
        padding: 40px 15px;
    }

    .banner-main-title {
        font-size: 24px;
    }

    .hero-title {
        font-size: 12px;
    }
    
    .workspace-center {
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none;
    }
  
    .custom-modal .modal-content {
        height: auto !important;
        max-height: 95vh !important;
    }

    .contact-list {
        padding: 25px 20px !important;
    }
}

/* ==================== GOOGLE HELP STYLE (GLOBAL) ==================== */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/banner/banner-search-topic.jpg') no-repeat center;
    background-size: cover;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    margin: 20px;
    position: relative;
    color: white !important;
}

.banner-main-title {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
    color: white !important;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.banner-info-text {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 13px;
    margin-bottom: 15px;
    color: white !important;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.search-wrapper {
    max-width: 460px; /* Diperkecil lagi secara signifikan sesuai permintaan */
    margin: 0 auto;
    position: relative;
}

.search-input-group {
    background: white;
    border-radius: 24px;
    padding: 2px 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.search-input-group:focus-within {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-input {
    border: none;
    padding: 8px 10px;
    width: 100%;
    font-size: 13.5px;
    outline: none;
    color: #333;
}

.search-icon {
    color: #70757a;
    font-size: 16px;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px); /* Memberi jarak agar tidak menempel */
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px; /* Memberikan radius di semua sudut agar rapih */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    text-align: left;
    border: 1px solid #dadce0;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #1a73e8;
}

.search-result-item:last-child {
    border-bottom: none;
}

.category-section {
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.card-category {
    background: var(--background);
    border: 1px solid var(--garis);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 100px;
}

.card-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #1a73e8;
}

.card-category img {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 12px;
    object-fit: contain;
}

.card-category h3 {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* Sidebar Removal */
.sidebar, #sidebarToggle, #sidebarOverlay {
    display: none !important;
}

.content {
    width: 100% !important;
    max-width: 1000px;
    margin: 0 auto !important;
    padding: 20px !important;
}

.doc-container {
    display: block !important;
}

.sidebar-right {
    display: none !important;
}

/* Content Icon Optimization */
.doc-container iframe {
    height: 80vh;
    border: none;
    width: 100%;
}

.article-body-text img {
    /* width: 100%; */
    max-width: 600px; /* Lebar maksimal agar tidak terlalu memenuhi layar lebar */
    /* height: 300px; */
    object-fit: cover; /* Memastikan gambar terpotong rapi di tengah */
    display: block;
    margin: 20px auto;
    background-color: #D9D9D9; 
    padding: 12px; 
    border: 3px solid #D9D9D9; 
    border-radius: 12px; 
    cursor: pointer;
    transition: transform 0.2s ease;
}

.article-body-text img:hover {
    transform: scale(1.02); /* Efek sedikit membesar saat di-hover */
}

/* Dark Mode Adjustments */
[data-theme="dark"] .search-input-group,
[data-theme="dark"] .search-results {
    background-color: #3c4043;
}

[data-theme="dark"] .search-input-group {
    border: 1px solid #5f6368;
}

[data-theme="dark"] .search-input-group:focus-within {
    border-color: #8ab4f8;
}

[data-theme="dark"] .search-input {
    background: transparent;
    color: white;
}

[data-theme="dark"] .search-input::placeholder {
    color: #9aa0a6;
}

[data-theme="dark"] .form-control {
    background-color: #3c4043;
    border-color: #5f6368;
    color: #e8eaed;
}

[data-theme="dark"] .form-control::placeholder {
    color: #9aa0a6;
}

[data-theme="dark"] .form-control:focus {
    background-color: #3c4043;
    color: #e8eaed;
}

[data-theme="dark"] .search-result-item {
    border-color: #5f6368;
    color: #e8eaed;
}

[data-theme="dark"] .search-result-item:hover {
    background-color: #4c5054;
    color: #8ab4f8;
}

/* ==================== RESPONSIVE: LAPTOP (<= 1366px) ==================== */
@media screen and (max-width: 1366px) {
    .article-layout {
        gap: 30px;
    }
    
    .article-main {
        padding: 20px;
    }

    .hero-section {
        padding: 40px 20px;
    }
}

/* ==================== RESPONSIVE: TABLET (<= 1024px) ==================== */
@media screen and (max-width: 1024px) {
    body {
        font-size: 10px;
    }

    header {
        font-size: 11px;
        padding: 8px;
    }
    
    .workspace-center {
        width: 100% !important;
        margin: 0 !important;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .article-layout {
        gap: 20px;
        padding: 0 10px;
    }

    .article-sidebar {
        width: 240px;
    }
}

.logoexamio {
    width: 100px;
}

.header-divider {
    width: 1px;
    height: 30px;
    background-color: #878282;
    margin-left: 15px;
    opacity: 0.5;
}

.header-sub-brand {
    font-size: 15px;
    color: var(--text);
}

.theme-icon-header {
    width: 23px;
    margin-right: 8px;
}

.header-utility-links {
    margin-left: 10px;
    padding-left: 10px;
    margin-right: 20px;
}

.header-link-item {
    transition: opacity 0.2s;
    text-decoration: none;
}

.header-link-item.trash-button {
    opacity: 0.6;
}

.header-link-item:hover {
    opacity: 1;
}

.kontak-personil {
    margin-top: 18px;
}

.kontencbt {
    padding:20px;
}

.bannercbt {
    border:1px solid white;
    width:83%;
    border-radius:10px;
    position:relative;
    overflow:hidden;
}

.descbt {
    width: 929px;
}

header {
    background: var(--header-bg);
    padding: 10px;
    font-size: 13px;
    z-index: 1000 !important;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 0px;
    margin-bottom: 0px;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
}

.nav-link:hover {
    color: #D0312D;
}

.nav-item:hover {
    color: #676B6D;
}

.nav-item:active {
    color: #676B6D;
}

.container {
    display: flex;
    padding: 10px;
    margin: 0px;
    max-width: 100%;
}

.scroll {
    height: 79.5vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #555 #f1f1f1;
    scrollbar-width: none;
    -ms-overflow-style: none;

}

.scroll::-webkit-scrollbar {
    width: 8px;
    display: none !important;
}

.scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scroll::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.scroll::-webkit-scrollbar-thumb:hover {
    background: #333;
}

.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    padding: 15px;
    border-right: 1px solid var(--garis) !important;
    padding-left: 6px;
}

.sidebar h2 {
    border-bottom: 1px solid #444;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.sidebar ul ul {
    margin-left: 0;
    padding-left: 0;
}


.sidebar ul li {
    margin: 0px 0;
}

.sidebar ul li a {
    color: var(--link-color);
    text-decoration: none;
}

.content {
    flex-grow: 1;
    padding: 15px;
    padding-top: 1px;
    height: fit-content;
}

footer {
    text-align: center;
    background: #282c34;
}

iframe {
    flex: 1;
    height: 100%;
    width: 100%;
    border: none;
}

.sidebar-right {
    width: 250px;
    background: #f3f4f6;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid var(--garis) !important;
}

.sidebar-right h3 {
    margin-top: 0;
}

.sidebar-right a {
    display: block;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 0;
    color: white;
}

.sidebar-right a.active {
    font-weight: bold;
    color: #2563eb;
}

.doc-container {
    display: flex;
    height: 520px;
}

.doc-container iframe {
    flex: 1;
    height: 79.5vh;
}

.sidebar-right {
    width: 250px;
    background: var(--background);
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid #ccc;
    height: 79.5vh;
}

/* ==================== BROWSE TOPICS (ACCORDION GOOGLE STYLE) ==================== */
.browse-topics-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.google-breadcrumbs {
    margin-bottom: 32px;
    font-size: 12px;
    color: #5f6368;
}

.google-breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
}

.google-breadcrumbs a:hover {
    text-decoration: underline;
}

.google-breadcrumbs span {
    margin: 0 8px;
    color: #bdc1c6;
}

.browse-title {
    font-size: 13px;
    margin-bottom: 24px;
    color: #202124;
}

.accordion-topics {
    border: 1px solid #dadce0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item-topic {
    border-bottom: 1px solid #dadce0;
}

.accordion-item-topic:last-child {
    border-bottom: none;
}

.accordion-header-topic {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-header-topic:hover {
    background: #f8f9fa;
}

.folder-icon-google {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    background: url('/assets/folder.png') no-repeat center;
    background-size: contain;
    opacity: 0.7;
}

.section-title-text {
    font-size: 12px;
    color: #3c4043;
    flex-grow: 1;
}

.accordion-arrow-google {
    width: 10px;
    height: 10px;
    margin-left: 12px;
    background: url('/assets/arrow-right.png') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.accordion-item-topic.active .folder-icon-google {
    background-image: url('/assets/open-folder.png');
}

.accordion-item-topic.active .accordion-arrow-google {
    transform: rotate(90deg);
}

.accordion-content-topic {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, background 0.2s;
    background: var(--surface);
}

/* Light mode: --surface (#f8f9fa) is almost identical to the page
   --background (#f9f9f9), so the expanded content would be invisible.
   Use a clearly distinct white background instead. */
:root[data-theme="light"] .accordion-content-topic {
    background: #ffffff;
}

.topic-list-links {
    padding: 8px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topic-link-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #3c4043;
    font-size: 10.5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.topic-link-item:hover {
    background: #f1f3f4;
    color: #202124;
    text-decoration: none;
}

.topic-dot {
    width: 4px;
    height: 4px;
    background: #bdc1c6;
    border-radius: 50%;
    margin-right: 10px;
}

/* Dark Mode for Accordion */
[data-theme="dark"] .section-title-text,
[data-theme="dark"] .browse-title {
    color: #e8eaed;
}

[data-theme="dark"] .accordion-header-topic:hover {
    background: #3c4043;
}

[data-theme="dark"] .topic-link-item {
    color: #8ab4f8;
}

[data-theme="dark"] .topic-link-item:hover {
    background: #3c4043;
    color: #aecbfa;
}

[data-theme="dark"] .topic-dot {
    background: #5f6368;
}

[data-theme="dark"] .accordion-topics,
[data-theme="dark"] .accordion-item-topic {
    border-color: #5f6368;
}

/* Icons in Dark Mode */
[data-theme="dark"] .folder-icon-google {
    filter: none; /* Icon folder tetap seperti biasa */
}

[data-theme="dark"] .sidebar-link-icon {
    filter: brightness(0) invert(1); /* Icon pelaporan.png jadi putih */
}

[data-theme="dark"] .accordion-arrow-google {
    filter: invert(1);
}

/* ==================== FILE ITEM ==================== */
.file-item a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    padding-left: 23px;
    width: 100%;
    box-sizing: border-box;
    min-height: 28px;
    color: white;
    text-decoration: none;
}

.file-item a:hover {
    background-color: #8d9195;
    color: white;
}

.file-item.active a {
    background-color: #65696C;
    color: white;
}

.file-icon {
    font-size: 15px;
    /*margin-right: 2px;*/
    vertical-align: middle;
}


/* ==================== TABLE OF CONTENT (TOC) ==================== */
#toc a.toc-link {
    font-size: 11px !important;
    display: block;
    padding: 4px 4px;
    text-decoration: none;
    color: var(--link-color);
    border-radius: 3px;
}

#toc a.toc-link:hover {
    background-color: var(--link-hover-bg);
    color: var(--text);
}

#toc a.toc-link.active {
    background-color: var(--link-hover-bg);
    color: var(--text);
    font-weight: bold;
}

.folder-toggle, .file-item a {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
    min-height: 28px;
    transition: background 0.2s;
}
/* ==================== FOLDER TOGGLE ==================== */
.folder-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    width: 100%;
    box-sizing: border-box;
    min-height: 28px;
    transition: background 0.2s, color 0.2s;
}

.folder-toggle:hover {
    background-color: #8d9195;
    color: white;
}

.folder-toggle .folder-icon {
    width: 18px;
    height: 18px;
    background: url("/assets/folder.png") no-repeat center;
    background-size: contain;
}
.folder-item.open > .folder-toggle .folder-icon {
    background-image: url("/assets/open-folder.png");
}

.folder-item.active > .folder-toggle {
    background-color: #65696C;
    color: white;
}


/* ==================== ARROW ICON ==================== */
.folder-toggle .arrow {
    width: 10px !important;
    height: 10px !important;
    background: url("/assets/arrow-right.png") no-repeat center !important;
    background-size: contain !important;
    transition: transform 0.2s ease !important;
}

.folder-item.open > .folder-toggle .arrow {
    background-image: url("/assets/arrow-down.png") !important;
}

.folder-toggle:hover .arrow {
    background-image: url("/assets/arrow-right-putih.png") !important;
}
.folder-item.open > .folder-toggle:hover .arrow {
    background-image: url("/assets/arrow-down-putih.png") !important;
}

.folder-item.active > .folder-toggle .arrow {
    background-image: url("/assets/arrow-right-putih.png") !important;
}
.folder-item.open.active > .folder-toggle .arrow {
    background-image: url("/assets/arrow-down-putih.png") !important;
}

[data-theme="dark"] .folder-toggle .arrow {
    background-image: url("/assets/arrow-right-putih.png") !important;
}
[data-theme="dark"] .folder-item.open > .folder-toggle .arrow {
    background-image: url("/assets/arrow-down-putih.png") !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 15px;
  left: 3px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.highlight-examio {
    background-color: #D0312D;
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
}

.p-judul:hover {
    color: inherit;
    text-decoration: none;
    background: none;
    cursor: default;       
}

.toc-title {
    font-size: 13px !important;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 46%;
    transform: translate(-0%, -39%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: right;
    padding: 10px 20px;
    /*background: rgba(0, 0, 0, 0.5);*/
    border-radius: 8px;
}

.banner-button {
    position: absolute;
    top: 35%;
    left: -25px;
    transform: translate(-0%, -39%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: right;
    padding: 10px 20px;
    /*background: rgba(0, 0, 0, 0.5);*/
    border-radius: 0px;
}

.banner-buttons {
    margin-top: 15px;
}

.btn-banner {
    padding: 8px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #495057;
}

.btn-banner.btn-primary:hover {
    background: #007bff;
    color: white;
    cursor: default;
    filter: none;
    opacity: 1;
}

.contact-list {
    /*max-width: 350px;*/
}

.contact-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 5px;
    gap: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

.contact-name {
    min-width: 40px;
    display: inline-block;
}

.contact-number {
    white-space: nowrap;
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    gap: 8px;
}

.contact-link:hover {
    border-radius: 10px 0px 0px 10px;
    background-color: #bdbbbb;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 200px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.text-overlay {
    position: absolute;
    top: -17%;
    left: 50%;
    transform: translate(-98%, 140%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.text-overlay-kelebihan {
    position: absolute;
    top: -68%;
    left: 55%;
    transform: translate(5%, 140%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.text-overlay-kelebihan .item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.text-overlay-kelebihan .icon-left {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}


/* ==================== CENTER HELP MODAL (GUARANTEED FIX) ==================== */
.custom-modal {
    max-width: 920px !important;
    width: 95% !important;
}

.custom-modal .modal-content {
    border: none !important;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4) !important;
    background: var(--background) !important;
    height: 100%; /* Reduced height to show more landscape image width */
}

.modal-body {
    height: 100%;
}

.modal-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ANTI GEPENG */
    object-position: center;
    display: block;
}

.contact-list {
    padding: 35px 40px !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    background: var(--background);
}

.kontak-personil {
    border-bottom: 1px solid #dadce0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.contact-item-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 14px;
    text-decoration: none;
    color: #3c4043;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.contact-item-link:hover {
    background: #ffffff;
    border-color: #bcc1c8;
    color: #1a73e8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-icon-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-name-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #202124;
}

.contact-number-label {
    display: block;
    font-size: 11.5px;
    color: #5f6368;
    margin-top: 1px;
}

.btn-close.custom-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10;
}

[data-theme="dark"] .modal-main-img {
    filter: brightness(0.8);
    border-right-color: #3c4043;
}

[data-theme="dark"] .contact-item-link {
    background: #2c3135;
    color: #e8eaed;
}

[data-theme="dark"] .contact-item-link:hover {
    background: #3c4043;
}

[data-theme="dark"] .contact-name-label {
    color: #e8eaed;
}

[data-theme="dark"] .contact-number-label {
    color: #9aa0a6;
}

/* "Batal" button in the feedback section: avoid a stark white button on dark */
[data-theme="dark"] .helpful-section-google .btn-light {
    background: transparent;
    color: #bdc1c6;
    border-color: #5f6368 !important;
}

[data-theme="dark"] .helpful-section-google .btn-light:hover {
    background: #3c4043;
    color: #e8eaed;
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}


.border-right-custom {
  border-right: 1px solid #aba9a9;
  height: 10px !important;
  margin-right: 10px;
}

.world-icon {
  width: 28px;
  transition: 0.3s ease-in-out;
}

:root[data-theme="light"] .world-icon {
  content: url('/assets/world-wide-web-light.png');
}

:root[data-theme="light"] .world-icon:hover {
  content: url('/assets/world-wide-web-hitam.png');
}

/* ==================== ARTICLE MOCKUP (GOOGLE STYLE) ==================== */
.article-mockup-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.article-layout {
    display: flex;
    gap: 60px;
    margin-top: 20px;
}

.article-main {
    flex: 1;
    max-width: 650px;
    border: 1px solid #dadce0;
    padding: 30px;
    border-radius: 8px;
}

.article-title {
    font-size: 16px;
    margin-bottom: 24px;
    color: #202124;
}

.article-body-text {
    font-size: 10.5px;
    line-height: 1.6;
    color: #3c4043;
}

.article-body-text h2 {
    font-size: 12px;
    margin: 24px 0 12px 0;
    color: #202124;
}

.article-body-text h6 {
    font-size: 14px;
}

.article-body-text p, .article-body-text li {
    margin-bottom: 12px;
}

.tag-baru {
    display: inline-block;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 8.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    border: 1px solid #1a73e8;
    vertical-align: middle;
    margin-left: 5px;
    margin-bottom: 5px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.helpful-section-google {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #dadce0;
    text-align: center; /* Center the text */
}

.helpful-section-google p {
    font-size: 10.5px;
    margin-bottom: 12px;
    color: #5f6368;
}

.helpful-buttons {
    display: flex;
    gap: 8px;
    justify-content: center; /* Center the buttons */
}

#feedback-form .d-flex {
    justify-content: center; /* Center form buttons */
}

#feedback-text-area {
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
}

.btn-helpful {
    padding: 6px 16px;
    border: 1px solid #dadce0;
    background: #fff;
    border-radius: 4px;
    font-size: 10.5px;
    color: #1a73e8;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-helpful:hover {
    background: #f1f3f4;
}

.article-sidebar {
    width: 280px;
}

.sidebar-box {
    padding: 0px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sidebar-box h3 {
    font-size: 12px;
    margin-bottom: 16px;
    color: #202124;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box li {
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 10.5px;
    color: #3c4043; /* Warna netral default */
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-link-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    object-fit: contain;
}

.sidebar-link:hover {
    background-color: #dbdbdb;
    color: #202124;
    text-decoration: none;
}

.sidebar-link.active {
    color: #1558b0 !important;
    background-color: #e8f0fe;
    font-weight: 600;
}

.sidebar-link.active .tag-baru {
    background: #1a73e8;
    color: #fff;
    border-color: #1558b0;
}

.sidebar-link.active .sidebar-link-icon {
    /* Menghapus filter biru agar icon tetap netral */
    filter: none;
}

[data-theme="dark"] .sidebar-link.active .sidebar-link-icon {
    filter: brightness(0) invert(1) !important;
}

[data-theme="dark"] .sidebar-link {
    color: #bdc1c6;
}

[data-theme="dark"] .sidebar-link:hover {
    background-color: #3c4043;
    color: #8ab4f8;
}

[data-theme="dark"] .sidebar-link.active {
    background-color: rgba(138, 180, 248, 0.12);
    color: #8ab4f8 !important;
}

[data-theme="dark"] .tag-baru {
    background: #1e3a5f;
    color: #8ab4f8;
    border-color: #4285f4;
}

[data-theme="dark"] .sidebar-link.active .tag-baru {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
}

[data-theme="dark"] .article-title,
[data-theme="dark"] .article-body-text h2,
[data-theme="dark"] .sidebar-box h3 {
    color: #e8eaed;
}

[data-theme="dark"] .article-body-text {
    color: #bdc1c6;
}

[data-theme="dark"] .article-main {
    border-color: #5f6368;
}

[data-theme="dark"] .google-breadcrumbs {
    color: #9aa0a6;
}

[data-theme="dark"] .google-breadcrumbs a {
    color: #8ab4f8;
}

[data-theme="dark"] .google-breadcrumbs span {
    color: #5f6368;
}

[data-theme="dark"] .sidebar-box {
    background: #2c3135;
}

[data-theme="dark"] .btn-helpful {
    background: transparent;
    border-color: #5f6368;
    color: #8ab4f8;
}

[data-theme="dark"] .helpful-section-google {
    border-color: #5f6368;
}

[data-theme="dark"] .helpful-section-google p {
    color: #9aa0a6;
}

[data-theme="dark"] #feedback-text-area {
    background-color: #3c4043;
    border-color: #5f6368;
    color: #e8eaed;
}

[data-theme="dark"] #feedback-text-area::placeholder {
    color: #9aa0a6;
}

/* ==================== ARTICLE NAV TABS ==================== */
.nav-tabs .nav-link {
    color: var(--text);
    cursor: pointer;
}

[data-theme="dark"] .nav-tabs {
    border-bottom-color: var(--surface-border);
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: #9aa0a6;
    background: transparent;
}

[data-theme="dark"] .nav-tabs .nav-link:hover {
    border-color: var(--surface-border);
    color: var(--text);
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    color: var(--link-blue);
    background-color: var(--surface);
    border-color: var(--surface-border) var(--surface-border) var(--surface);
}

[data-theme="dark"] .tab-content {
    color: var(--text);
}

/* Mockup Image Styles */
.article-image-wrapper {
    margin: 32px 0;
    text-align: center;
    background: transparent !important;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dadce0;
}

.article-img-mockup {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Images embedded inside nav-tab content (e.g. mobile screenshots inserted
   via TinyMCE) should keep the exact size set in the editor instead of the
   forced 600x300 landscape crop that .article-body-text img applies by
   default. "revert" (not "auto") is required here: "auto" recomputes the
   image at its native intrinsic size, discarding the width/height attributes
   TinyMCE wrote into the <img> tag; "revert" rolls back to the user-agent
   default, which is what actually honors those attributes. !important is
   needed to beat the later, equal-specificity responsive-overhaul rule
   below (.article-body-text img, ... { height: auto }). */
.tab-pane img {
    /* width: revert !important;
    max-width: 100%; */
    height: revert !important;
    object-fit: contain;
    background: none;
    padding: 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: block;
    margin: 20px auto;
}

.image-caption {
    margin-top: 12px;
    font-size: 10px;
    color: #5f6368;
    font-style: italic;
}

[data-theme="dark"] .article-image-wrapper {
    background: #2c3135;
    border-color: #5f6368;
}

[data-theme="dark"] .image-caption {
    color: #9aa0a6;
}

@media screen and (max-width: 900px) {
    .article-layout {
        flex-direction: column;
    }
    .article-sidebar {
        width: 100%;
    }
}

[data-theme="dark"] .modal-title-custom {
    color: #e8eaed !important;
}

[data-theme="dark"] .modal-desc-custom {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .contact-desc {
    color: #9aa0a6 !important;
}

[data-theme="dark"] .text-muted {
    color: #9aa0a6 !important;
}

/* === DARK THEME === */
:root[data-theme="dark"] .world-icon {
  content: url('/assets/world-wide-web-dark.png');
}

:root[data-theme="dark"] .world-icon:hover {
  content: url('/assets/world-wide-web-putih.png');
}

/* ============================================================
   RESPONSIVE OVERHAUL  —  PC / Laptop / Tablet / Mobile
   Appended last so these rules win wherever they overlap with
   the older, scattered media queries above.
   Breakpoints:
     - Large desktop : default (>= 1200px, app-shell scroll)
     - Laptop        : <= 1366px
     - Tablet & below: <= 1024px  (switches to natural page scroll)
     - Phone         : <= 768px
     - Small phone   : <= 480px
   ============================================================ */

/* ---- Fluid media: never let images/tables force horizontal scroll ---- */
/* .article-body-text img,
.article-img-mockup,
.modal-main-img {
    max-width: 100%;
    height: auto;
} */

.article-body-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ==================== LAPTOP (<= 1366px) ==================== */
@media screen and (max-width: 1366px) {
    .workspace-center {
        width: 100%;
        max-width: 1200px;
    }

    .article-layout {
        gap: 40px;
    }

    .article-main {
        max-width: none;
    }
}

/* ==================== TABLET & BELOW (<= 1024px) ====================
   Touch devices: drop the fixed 100vh app-shell and let the whole
   document scroll naturally (avoids mobile-toolbar / nested-scroll bugs). */
@media screen and (max-width: 1024px) {
    html, body {
        overflow-x: hidden;
    }

    body {
        font-size: 10.5px;
        min-height: 100vh;
    }

    .workspace {
        display: block;
        background: var(--background);
    }

    .workspace-center {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }

    /* .workspace-center drops its centered card width here, so the fixed
       footer should span the full viewport width to match. */
    footer {
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }

    /* Inner scroll-region becomes a normal block in the page flow */
    .container {
        display: block;
        flex: none;
        overflow: visible;
        padding: 0;
        padding-bottom: 40px; /* reserve room so content doesn't sit under the fixed footer */
        margin: 0;
    }

    .content {
        flex: none;
        width: 100% !important;
        max-width: 860px;
        margin: 0 auto !important;
        padding: 18px 22px !important;
    }

    header {
        font-size: 11px;
        padding: 8px 12px;
    }

    /* Stack the article + related sidebar on tablets for breathing room */
    .article-mockup-container {
        padding: 22px 16px;
    }

    .article-layout {
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }

    .article-main {
        max-width: none;
        width: 100%;
        padding: 22px;
    }

    .article-sidebar {
        width: 100%;
        position: static;
    }

    .sidebar-box {
        position: static;
        top: auto;
    }

    .browse-topics-container {
        padding: 28px 16px;
    }

    .category-section {
        max-width: 640px;
        padding: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* ==================== PHONE (<= 768px) ==================== */
@media screen and (max-width: 768px) {
    body {
        font-size: 11px;
    }

    /* Promo bar: keep the short text + CTA button on a single line */
    .admin-top-promo-bar {
        height: auto;
        min-height: 36px;
        padding: 5px 0;
    }

    .promo-center {
        font-size: 10px;
        flex-wrap: nowrap;
        gap: 0;
        white-space: nowrap;
    }

    .promo-highlight-text {
        width: auto;
        margin-right: 8px !important;
    }

    .navbar-right {
        width: auto !important;
        margin-right: 18px !important;
    }

    /* Header: hide secondary brand text, shrink logo */
    .logoexamio {
        width: 78px !important;
    }

    .header-divider,
    .header-sub-brand {
        display: none !important;
    }

    .content {
        padding: 14px 16px !important;
    }

    /* Hero / search */
    .hero-section {
        margin: 12px;
        padding: 36px 16px;
        border-radius: 16px;
    }

    .banner-main-title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .banner-info-text {
        font-size: 9.5px;
        margin-bottom: 22px;
    }

    .hero-title {
        font-size: 12px;
    }

    .search-wrapper {
        max-width: 100%;
    }

    /* Categories: 2-up grid on phones */
    .category-section {
        padding: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .card-category {
        min-height: 110px;
        padding: 16px 10px;
    }

    /* Article */
    .article-mockup-container {
        padding: 16px 12px;
    }

    .article-main {
        padding: 16px;
        border: none;
    }

    .article-title {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .google-breadcrumbs {
        margin-bottom: 20px;
        font-size: 11px;
        line-height: 1.6;
        word-break: break-word;
    }

    .google-breadcrumbs span {
        margin: 0 5px;
    }

    /* Article images: show full image (no fixed-height crop) on phones */
    .article-body-text img {
        height: auto !important;
        max-height: 360px;
        object-fit: contain;
        padding: 8px;
    }

    .article-image-wrapper {
        margin: 22px 0;
        padding: 12px;
    }

    /* Browse accordion */
    .browse-topics-container {
        padding: 20px 12px;
    }

    .accordion-header-topic {
        padding: 12px;
    }

    .subtopic-list-links .topic-link-item {
        padding-left: 1.75rem !important;
    }

    /* Helpful / feedback buttons stack nicely */
    .helpful-buttons {
        flex-wrap: wrap;
    }

    /* Contact modal: single column, full-width sheet */
    .custom-modal {
        width: 96% !important;
        margin: 0.5rem auto;
    }

    .custom-modal .modal-content {
        border-radius: 18px !important;
        height: auto !important;
        max-height: 92vh !important;
        overflow-y: auto;
    }

    .contact-list {
        padding: 24px 20px !important;
    }
}

/* ==================== SMALL PHONE (<= 480px) ==================== */
@media screen and (max-width: 480px) {
    body {
        font-size: 11px;
    }

    .promo-center {
        font-size: 9px;
    }

    .btn-cta {
        font-size: 9px !important;
        padding: 0 10px;
    }

    .content {
        padding: 12px 12px !important;
    }

    .hero-section {
        margin: 8px;
        padding: 30px 14px;
    }

    .banner-main-title {
        font-size: 19px;
    }

    /* Categories: single column on the narrowest screens */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-category {
        min-height: 92px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 14px;
        padding: 14px 16px;
    }

    .card-category img {
        margin: 0 !important;
        width: 30px !important;
        height: 30px !important;
    }

    .article-title {
        font-size: 14px;
    }

    .article-body-text img {
        max-height: 280px;
    }

    .footer,
    footer {
        font-size: 9px;
    }
}

/* The two phone-breakpoint blocks above clamp .article-body-text img to
   max-height: 360px / 280px. A tab-pane is also .article-body-text, so on
   phone-width screens that clamp squashed tab images below their editor
   height even though width stayed at the editor's value — undoing the
   actual-size fix. Placed last (outside any @media) so it wins the cascade
   at every viewport regardless of which breakpoint rule also matched. */
/* .tab-pane img {
    max-height: revert !important;
    height: revert !important;
    width: revert !important;
} */
