@font-face {
    font-family: 'Poppins';
    src: url('Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 11px;
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    letter-spacing: 0.01em;
    width : 100%;
    height : 100%;
}

@media screen and (max-width: 1366px) {
    .workspace-left,
    .workspace-right {
        width: 0% !important;
        display: none !important;
    }
    
    .workspace-center {
        width: 100% !important;
    }
}

/* ==================== RESPONSIVE: MOBILE ==================== */
@media screen and (max-width: 768px) {
    body {
        font-size: 12px;
    }

    header {
        font-size: 12px;
        padding: 8px;
    }

    nav ul li {
        margin: 0 5px;
    }

    .container {
        flex-direction: column;
        padding: 5px;
    }

    .sidebar-right,
    .workspace-left,
    .workspace-right {
        display: none !important;
        width: 0 !important;
        opacity: 0 !important;
    }

    .workspace-center {
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none;
    }
  
    #sidebarToggle {
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 6px 10px;
      font-size: 14px;
      cursor: pointer;
    }
    
    #sidebarOverlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out;
      z-index: 9998;
    }
    
    #sidebarOverlay.active {
      opacity: 1;
      visibility: visible;
    }

    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: 75%;
      max-width: 280px;
      height: 100% !important;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--sidebar-border);
      padding: 15px;
      z-index: 9999;
      overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.show {
      transform: translateX(0);
    }

    .doc-container {
        flex-direction: column;
        height: auto;
    }

    .doc-container iframe {
        height: 60vh;
    }
  
    .banner-text {
        position: relative;
        top: 68% !important;
        left: 30% !important;
        transform: translate(5%, -39%) !important;
        color: white;
        font-size: 12px !important;
        font-weight: bold;
        text-align: right;
        padding: 5px 10px;
        border-radius: 8px;
    }

    .banner-button {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: 16px;
        margin: 10px auto;
        display: block;
        text-align: center;
    }

    .banner-buttons {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .btn-banner {
        font-size: 12px !important;
        padding: 6px 12px;
        width: 100%;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .contact-name {
        min-width: auto;
    }

    .custom-modal {
        max-width: 95% !important;
        width: 95% !important;
    }
  
    .custom-modal .modal-content {
        height: auto !important;
        max-height: 100% !important;
    }

    #toc a.toc-link {
        font-size: 10px !important;
        padding: 3px 2px;
    }
  
    .descbt {
        width: 100% !important;
    }
    
    .bannercbt {
        width:100% !important;
    }
    
    .kontencbt {
        padding: 0px !important;
    }
    
    .logoexamio {
        width: 90px !important;
    }
    
    .container-fluid {
        flex-wrap: unset !important;
        padding-left: 1px !important;
        padding-right: 1px !important;
    }
    
    .modal-konten-kiri{
        display: none !important;
    }
    
    .contact-item {
        display: flex;
        justify-content: flex-start;
        align-items: start !important;
        margin-bottom: 5px;
        gap: 10px;
    }
    
    .kontak-personil {
        margin-top: 15px !important;
        margin-left: 15px !important;
    }
    
    .garis-header {
        margin-top:10px !important;
        margin-bottom:10px !important;
    }
    
    .logobanner {
        content: url("/assets/banner-panduan 1.png");
        width: 100% !important;
        border-radius: 10px;
        display: block;
      }
}

/* ==================== RESPONSIVE: TABLET ==================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 13px;
    }

    header {
        font-size: 13px;
        padding: 10px;
    }
    
    .container-fluid {
        flex-wrap: unset !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .container {
        flex-direction: row;
        padding: 10px;
    }

    .sidebar-right,
    .workspace-left {
        display: none !important;
        width: 0 !important;
        opacity: 0 !important;
    }

    .workspace-center {
        width: 100% !important;
        margin: 0 auto !important;
        box-shadow: none;
    }

    #sidebarToggle {
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 6px 10px;
      font-size: 14px;
      cursor: pointer;
    }
    
    #sidebarOverlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out;
      z-index: 9998;
    }
    
    #sidebarOverlay.active {
      opacity: 1;
      visibility: visible;
    }

    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: 75%;
      max-width: 280px;
      height: 100% !important;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--sidebar-border);
      padding: 15px;
      z-index: 9999;
      overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.show {
      transform: translateX(0);
    }

    .doc-container {
        flex-direction: column;
        height: 960px !important;
    }

    .doc-container iframe {
        height: 70vh;
    }

    .banner-text {
        font-size: 14px !important;
        left: 35% !important;
        transform: translate(5%, -40%) !important;
    }

    .btn-banner {
        font-size: 14px !important;
        padding: 8px 16px;
    }

    .logobanner {
        content: url("/assets/banner-panduan.jpg");
        width: 100% !important;
        border-radius: 10px;
        display: block;
    }
}

.kontak-personil {
    margin-top: 40px;
    margin-left: 15px;
}
    
.logoexamio {
    width: 130px;
}

.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: 9999 !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;
}

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;
}

.workspace-left,
.workspace-right {
    width: 15%;
    opacity: 0;
    display: block;
    color: transparent !important;
}

.workspace-center {
    box-shadow: var(--shadow);
    margin-left: 3px;
    margin-right: 3px;
    width: 95%;
}

/* ==================== 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;
}


.custom-modal {
    max-width: 40%;
    width: 40%;
    height: auto;
    max-height: 90vh;
}

.custom-modal .modal-content {
    height: 385px;
    max-height: 90vh;
}

.btn-close.custom-close {
  border: 1px solid #777373 !important;
  border-radius: 100px !important;
  background-color: white;
  --bs-btn-close-bg: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cline x1='2' y1='2' x2='14' y2='14' stroke='red' stroke-width='2'/%3E%3Cline x1='14' y1='2' x2='2' y2='14' stroke='red' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1em 1em;
}


.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');
}

/* === 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');
}
