:root {
    --small-font: 12px;
    --normal-font: 14px;
    --large-font: 16px;
    --x-large-font: 18px
}
    
@media (prefers-reduced-motion:no-preference) {
	:root {
		scroll-behavior: smooth
	}
}
	
@font-face {
    font-family: "Helvetica Neue";
    src: url('/fonts/digital_sans_ef_medium.woff2') format('woff2'), url('/fonts/digital_sans_ef_medium.woff') format('woff');
    font-weight: normal;
    font-style: normal
}
    
@font-face {
    font-family: 'advanced_dot_digital7';
    src: url('/fonts/advanced_dot_digital7.woff2') format('woff2'), url('/fonts/advanced_dot_digital7.woff') format('woff')
}
    
body {
    font-size: var(--small-font);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-bottom: 52px;
    background-color: #080808;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html, 
body {
    overflow-x: hidden;
    max-width: 100%;
}

.container, 
.footer-container, 
.logo-container, 
.fixed-footer {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

a {
    text-decoration: none
}
    
summary {
    outline: none;
    list-style-type: none
}
    
summary::-webkit-details-marker {
    display: none
}
    
.container {
    width: 100%;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    padding-right: calc(var(--bs-gutter-x) * .5);
	padding-left: calc(var(--bs-gutter-x) * .5);
}
    
.logo-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    height: 70px;
    background: linear-gradient(to bottom, #15000f 22%, #0e071a 100%);
}
    
.logo-container .logo {
    display: block;
    position: relative;
    max-width: 250px;
    height: auto;
}


    
.hamburger {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 10000;
    cursor: pointer;
}

.hamburger img {
    width: 30px;
    height: 30px;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 200px;
    height: 100%;
    background: #111;
    transition: right 0.3s ease;
    z-index: 9999;
}

.sidebar.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 9998;
}

.overlay.active {
    display: block;
}

.sidebar ul {
    list-style: none;
    margin: 60px 0 0 0;
    padding: 0;
}

.sidebar ul li {
    padding: 20px;
    border-bottom: 1px solid #333;
}

.sidebar li a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    gap: 10px;
    width: 100%;
}

.link-container {
    display: flex;
    justify-content: center;
    font-size: var(--x-large-font);
    padding: 0;
    width: 100%
}

.link-container a {
    flex-basis: 50%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none
}

.login-button,
.register-button {
    color: #fff
}

.register-button {
    background: linear-gradient(to right, #77bd1f 0%, #70b921 13%, #70b61f 15%, #67b31d 31%, #44a115 80%, #45a118 81%, #42a018 85%, #3c9c14 91%, #3d9d15 94%, #399911 98%, #3b9b13 100%);
        border: 1px solid #77bd1f;
}
    
.register-button:hover {
    background: linear-gradient(0deg, #77bd1f 0%, #70b921 13%, #70b61f 15%, #67b31d 31%, #44a115 80%, #45a118 81%, #42a018 85%, #3c9c14 91%, #3d9d15 94%, #399911 98%, #3b9b13 100%);
        border: 1px solid #77bd1f;
}
    
.login-button {
    background: linear-gradient(to right, rgb(32, 122, 185) 0%, rgb(30, 120, 183) 17%, rgb(27, 106, 172) 54%, rgb(22, 102, 165) 76%, rgb(24, 100, 162) 78%, rgb(22, 96, 157) 100%);
        border: 1px solid #207ab9;
}
    
.login-button:hover {
    background: linear-gradient(0deg, rgb(32, 122, 185) 0%, rgb(30, 120, 183) 17%, rgb(27, 106, 172) 54%, rgb(22, 102, 165) 76%, rgb(24, 100, 162) 78%, rgb(22, 96, 157) 100%);
        border: 1px solid #207ab9;
}
    
.site-description {
    text-align: center;
    overflow: hidden;
    font-size: var(--normal-font);
    text-align: center;
}

.site-description h1 {
    text-align: center;
    color: #fff;
    font-size: 35px;
    text-transform: uppercase
}

.site-description h2 {
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-size: 30px
}

.site-description h3 {
    text-align: left;
    color: #fff;
    text-transform: uppercase;
    font-size: 19px
}

.site-description p {
    text-align: justify;
    color: #fff;
    font-size: 18px
}

.site-description a {
    background: linear-gradient(to bottom, #ffdf07, #fb7d31); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    text-decoration: none;
}

.site-description b {
    background-color: #ffdf07;
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    text-decoration: none;
}

.site-description ul {
    text-align: left;
    font-size: 18px
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    list-style-type: none;
    text-align: center;
    color: #fff;
    background-color: #000;
}

.footer-container h1,
.footer-container h2 {
    text-align: center;
    color: #fff
}

.fixed-footer {
    display: flex;
    justify-content: space-around;
    position: fixed;
    background-color: #1d1d1d;
    padding-top: 8px;
    padding-bottom: 8px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    text-transform: uppercase;
}

.fixed-footer a {
    flex-basis: calc((100% - 15px*6)/5);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    background-color: inherit;
    padding: 5px 0;
    max-width: 75px;
    font-size: 15px;
}

.fixed-footer a.active {
    color: #ff00b2
}

.fixed-footer img {
    height: 24px;
    width: auto;
    margin-bottom: 6px;
    vertical-align: middle;
}

.fixed-footer .live-chat-icon {
    animation: pulse 3s infinite
}

.copyright-section {
    text-align: center;
    color: #fff;
    font-size: 18px;
    padding: 15px 0 25px 0;
    background: transparent; 
    text-transform: uppercase;
}

.copyright-section a {
    background: linear-gradient(to bottom, #ffdf07, #fb7d31); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    text-decoration: none;
}

.hidden-content {
    display: none; 
    margin-top: 10px;
}

.toggle-checkbox:checked ~ .hidden-content {
    display: block;
}

.read-more-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
    display: block;
    align-items: center;
    text-transform: uppercase;
}

.read-more-btn:hover {
    background-color: #0056b3;
}

.toggle-checkbox {
    display: none;
}

.close-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
    display: block;
    align-items: center;
    text-transform: uppercase;
}

.close-btn:hover {
    background-color: #a71d2a;
}

.toggle-checkbox:checked ~ .read-more-btn {
    display: none;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    margin-top: 10px
}

.faq-toggle-checkbox:checked ~ .faq-content {
    max-height: 1000px; 
    padding: 15px;
    background: #080808;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.faq-view-btn {
    background: #007BFF;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    font-size: 16px;
    text-align: center;
    align-items: center;
    text-transform: uppercase;
}

.faq-view-btn:hover {
    background: #0056b3;
}

.faq-close-btn {
    display: block;
    margin-top: 15px;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

.faq-close-btn:hover {
    background: #a71d2a;
}

.faq-toggle-checkbox:checked ~ .faq-header .faq-view-btn {
    display: none;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #222;
    color: #FFF;
    font-size: 16px;
    text-align: left;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 5px 0
}

.arrow {
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.faq-checkbox:checked ~ .faq-question .arrow {
    transform: rotate(-135deg);
}
    
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px
}

.faq-answer p {
    font-size: 15px
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 200px; /* Sesuaikan dengan tinggi konten maksimal */
    padding: 10px 15px;
}

.faq-toggle-checkbox {
    display: none;
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-decoration: none; /* Hapus underline */
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 3000;
}

.back-to-top:hover {
    background: #0056b3;
    transform: scale(1.05);
}

body:not(:target) .back-to-top {
    opacity: 1;
    visibility: visible;
}

#blog-preview {
    width: 100%;
    margin: 0;
    padding: 0;
}

#blog-preview h2 {
    font-size: 30px;
    color: #fff;
    margin: 20px 0 10px 10px;
    text-align: center;
    text-transform: uppercase;
}

.blog-card h3 {
    font-size: 14px;
    padding: 10px;
    margin: 0;
    color: #000;
    text-align: center;
    white-space: normal;
}

.scroll-wrapper {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #e0f0ff;
}

.scroll-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    scroll-snap-type: x mandatory;
    width: max-content;
}

.blog-card {
    flex: 0 0 29.1%;
    vertical-align: top;
    width: 250px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #FFF;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.baca-card:hover {
    transform: translateY(-5px);
}

#apk-section {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

#apk-section img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.main-menu {
    background-color: #111; /* abu gelap, beda dari header #000 */
    text-align: center;
    padding-left: 20px;
    margin-bottom: 5px;
}

.main-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 30px;
}

.main-menu li {
    position: relative;
}

.main-menu li:hover > .dropdown-content {
    display: block;
}

.main-menu a {
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 25px;
}

.main-menu a:hover {
    background-color: orange;
    color: #000;
}

.main-menu .dropdown-content li a:hover {
    background-color: orange;
    color: black !important;
}

.main-menu .dropdown-content {
    display: none;
    position: absolute;
    background-color: #1c1c1c;
    min-width: 220px;
    z-index: 1000;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 !important;
}

.main-menu .dropdown-content .dropdown .dropdown-content,
.main-menu .dropdown-content .dropdown .dropdown-content li,
.main-menu .dropdown-content .dropdown .dropdown-content li a {
    background-color: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* dropdown di dalam dropdown (Turnamen MLBB → MPL) */
.main-menu .dropdown-content .dropdown {
    position: relative;
}

/* submenu level 2 agar keluar ke bawah, bukan ke samping */
.main-menu .dropdown-content .dropdown .dropdown-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: none; /* default */
    background-color: #1c1c1c;
    z-index: 1001;
    padding: 0;
}

.main-menu .dropdown-content li:last-child {
    border-bottom: none;
}

.main-menu .dropdown-content li a {
    color: white;
    display: block;
    padding-left: 25px;
}

.nav-container {
    display: block;
    align-items: center;
    justify-content: space-between;
}

/* Navbar links tetap horizontal */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

/* Dropdown level 2 muncul ke bawah, bukan ke samping */
.main-menu .dropdown-content .dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* ⬅️ langsung di bawah */
    left: 0;    /* ⬅️ sejajar dengan parent */
    background-color: #1c1c1c;
    z-index: 1001;
    min-width: 220px;
    padding: 0;
    line-height: normal;
}

/* Style isi submenu biar konsisten */
.main-menu .dropdown-content .dropdown .dropdown-content li a {
    display: block;
    color: white;
    padding-left: 35px;
    text-align: left;
}

.main-menu .dropdown-content .dropdown .dropdown-content .dropdown .dropdown-content li a {
    padding-left: 45px;
}

.dropdown-toggle i {
    margin-left: 8px; /* ⬅️ atur jarak sesuai kebutuhan */
}

@media (min-width: 769px) {
    .mobile-bar,
    .mobile-search {
        display: none;
    }
    
    .featured {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .featured img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: unset;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .featured img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
        object-fit: contain !important;
    }

    /* ⛔ Semua isi dropdown hamburger wajib rata kiri */
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 15px;
        width: 100%;
    }

    .nav-links li,
    .nav-links a,
    .dropdown-toggle,
    .dropdown-content li a {
        text-align: left !important;
        justify-content: flex-start;
        width: 100%;
  } 

    /* ✅ SEMUA dropdown disembunyikan dulu secara default */
    .nav-links .dropdown-content {
        display: none !important;
    }

    /* ✅ Hanya dropdown yg dibuka (via .open) yang ditampilkan */
    .dropdown.open > .dropdown-content {
        display: block !important;
    }

    /* 🔧 Tekanan visual: dropdown aktif dikasih warna */
    .dropdown.open > .dropdown-toggle {
        background-color: orange !important;
        color: black !important;
    }

    /* Tambahan spacing agar tampilan antar item tidak terlalu mepet */
    .nav-links li {
        margin-bottom: 5px;
    }
    
    .nav-links .dropdown .dropdown-content .dropdown .dropdown-content {
        display: none !important;
    }

    /* Tampilkan hanya jika parent dan grandparent keduanya terbuka */
    .nav-links .dropdown.open > .dropdown-content > .dropdown.open > .dropdown-content {
        display: block !important;
    }

    main {
        max-width: 100%;
        padding: 16px;
    }
  
    .main-menu ul,
    .navbar-search {
        display: none;
    }
    
    .mobile-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #111;
        font-size: 30px;
    }
    
    .mobile-bar button {
        font-size: 40px;
        background: none;
        color: #03f724;
        border: none;
        padding: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        background: #111;
        width: 100%;
    }
    
    .main-menu ul {
        gap: 5px
    }
  
    .nav-links.active {
        display: flex;
    }
    
    .main-menu .dropdown-content {
        position: static !important; /* ⬅️ biar mendorong konten */
        display: none;
        background-color: #111;
        margin-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .dropdown.open .dropdown-content {
        display: block !important;
    }

    /* Tengahkan isi link dropdown */
    .dropdown-content li a {
        text-align: center;
        display: block;
    }
    
    .dropdown.open > .dropdown-toggle {
        background-color: orange;
        color: #000; /* opsional: warna teks biar kontras */
    }
    
    .dropdown.open .dropdown-content li a:hover {
        background-color: orange; 
        color: #000;
    }
  
    /* Optional: transisi agar lebih halus */
    .dropdown-toggle {
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .dropdown-toggle i {
        margin-left: 10px;
        font-size: 18px;
        cursor: pointer;
        display: inline-block;
        pointer-events: auto;
        position: relative;
    }
    
    .dropdown-toggle {
        position: relative;
    }

    .dropdown-content {
        display: none;
        background-color: #111;
        padding-left: 15px; /* lebih masuk ke dalam */
        margin-top: 5px;
    }
    
    .dropdown-content li a {
        display: block;
        color: #fff;
        padding: 10px 15px;
        background-color: #111;
        width: 100%; /* full width background */
        box-sizing: border-box;
    }

    .dropdown .dropdown-content {
        display: none;
    }
    
   .scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
 
    .scroll-inner {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        width: max-content;
    }

    .blog-card {
        flex: 0 0 calc(50vw - 16px);
        width: calc(50vw - 16px);
        scroll-snap-align: start;
    }
    
    .copyright {
        font-size: 13px;
        text-align: center;
        padding: 5px 0;
    }
    
    .sidebar {
        width: 80px; 
    }
    
    .sidebar ul {
        list-style: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sidebar ul li {
        width: 100%;
        text-align: center;
    }

    .sidebar ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px; 
        color: white; 
        font-size: 15px;
    }

    .sidebar ul li img {
        height: auto;
        display: block;
    }
}

@media (min-width: 720px) and (max-width: 1024px) {
    .blog-card {
        flex: 0 0 calc(33.333vw - 20px);
        width: calc(33.333vw - 20px);
    }
}

@media (min-width: 1367px) {
    .blog-card {
        flex: 0 0 calc(25vw - 20px);
        width: calc(25vw - 20px);
        scroll-snap-align: start;
    }
}