:root {
    --primary-color: #02ad50;
    --border-color: #ddd;
    --text-color: #333;
    --bg-gray: #f8f9fa;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg-gray);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Main Content */
main {
    margin-top: 30px;
    padding: 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}
main .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
    padding-top: 20px;
}
/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.top-header {
    background: var(--bg-gray);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.language-select {
    display: flex;
    align-items: center;
    gap: 5px;
}
.language-select select {
    border: none;
    background: transparent;
    cursor: pointer;
}
.top-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 15px;
}

.main-nav {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    text-align: center;
    flex: 1;
    margin: 0 15px;
}
.logo-img {
    height: 40px;
}
.logo-text {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}
.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}
.search-box .search-form {
    display: flex;
    width: 100%;
}
.search-box input[type="text"] {
    flex: 1;
    height: 42px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}
.search-button {
    height: 42px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-button:hover {
    background-color: #029045;
}
.search-button i {
    font-size: 16px;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.nav-links a.active {
    color: var(--primary-color);
}
.main-content h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}
/* Section styles */
.section {
    margin-bottom: 30px;
}
.section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}
/* Grid untuk app cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;

    /* Scrollbar untuk Firefox */
    scrollbar-width: thin;
    scrollbar-color: #ddd #f1f1f1;
}
.meta, .version {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}
.app-grid::-webkit-scrollbar, 
.game-grid::-webkit-scrollbar {
    height: 6px;
}
.app-grid::-webkit-scrollbar-track, 
.game-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.app-grid::-webkit-scrollbar-thumb, 
.game-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}
.app-grid::-webkit-scrollbar-thumb:hover,
.game-grid::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}
/* Navigation arrows */
.nav-arrows {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}
.nav-arrow {
    padding: 8px 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}
.nav-arrow:hover {
    background: var(--bg-gray);
}
.logo-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}
.menu-toggle {
    font-size: 20px;
    color: #666;
    cursor: pointer;
}
.search-icon {
    font-size: 20px;
    color: #666;
    cursor: pointer;
}
.sub-nav {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 8px 0;
}
.sub-nav.active {
    display: block;
}
.sub-nav a {
    display: block;
    padding: 15px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}
.sub-nav a.active {
    color: #02ad50;
    background: #f8f9fa;
}
.mobile-search {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1001;
}
.mobile-search.active {
    display: block;
}
.mobile-search-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-bottom: 1px solid #eee;
}
.mobile-search-header i {
    font-size: 20px;
    padding: 10px;
    color: #666;
    cursor: pointer;
}
.mobile-search-header input {
    flex: 1;
    padding: 8px;
    margin: 0 10px;
    border: none;
    font-size: 16px;
    outline: none;
}
.mobile-search-header button {
    background: none;
    border: none;
    padding: 10px;
    color: var(--primary-color);
    cursor: pointer;
}
/* Mobile Styles */
.mobile-only .main-nav {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.mobile-only .main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-only .menu-toggle {
    width: 40px;
    text-align: left;
}
.mobile-only .logo {
    flex: 1;
    text-align: center;
    text-decoration: none;
    margin: 0;
}
.mobile-only .logo-text {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}
.mobile-only .search-icon {
    width: 40px;
    text-align: right;
}
.mobile-only .menu-toggle i,
.mobile-only .search-icon i {
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 10px;
}
/* Desktop Header Styles */
.desktop-only {
    display: none;
    padding: 10px 0;
}
.desktop-only .container {
    display: flex;
    align-items: center;
    gap: 20px;
}
.desktop-only .logo {
    text-decoration: none;
    min-width: 150px;
    text-align: left;
}
.desktop-only .logo-text {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}
.desktop-only .desktop-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
}
.desktop-only .search-box {
    width: 300px;
    margin-left: auto;
}
.desktop-only .search-box form {
    display: flex;
}
.desktop-only .search-box input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}
.desktop-only .search-box .search-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.desktop-nav a:hover {
    color: var(--primary-color);
}
.desktop-nav a i {
    margin-right: 5px;
}
/* Category Styles */
.categories {
    margin: 30px 0;
}
.category-section {
    margin-bottom: 30px;
}
.category-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
}
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    width: calc(16.666% - 13px); /* 6 items per row */
    transition: all 0.3s ease;
}
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--primary-color);
}
.category-card i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary-color);
}
.category-card span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
/* Login Page Styles */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
    padding: 0 20px;
}
.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-header .site-logo {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}
.login-header h2 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 10px;
}
.login-header p {
    color: #666;
    font-size: 14px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
}
.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}
.remember-forgot a {
    color: var(--primary-color);
    text-decoration: none;
}
.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.social-login {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.google-btn {
    color: #DB4437;
}
.facebook-btn {
    color: #4267B2;
}
.register-link {
    text-align: center;
    font-size: 14px;
}
.register-link a {
    color: var(--primary-color);
    text-decoration: none;
}
/* Footer Styles */
.site-footer {
    background: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-section h3 {
    color: var(--text-color);
    font-size: 18px;
    margin-bottom: 15px;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li {
    margin-bottom: 10px;
}
.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-section ul li a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.footer-bottom p {
    color: #666;
    font-size: 14px;
}
/* Remember Forgot Styles */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}
.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}
.remember input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}
.forgot-link {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}
/* Login Divider */
.login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--border-color);
}
.login-divider::before {
    left: 0;
}
.login-divider::after {
    right: 0;
}
.login-divider span {
    background: white;
    padding: 0 10px;
    color: #666;
    font-size: 14px;
}
/* Admin Link Style */
.admin-link {
    text-decoration: none;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}
.admin-link:hover {
    color: var(--primary-color);
}
.admin-link span {
    margin-right: 5px;
}
/* Mobile Admin Link */
.mobile-user-menu .admin-link {
    padding: 10px 0;
    display: block;
}
.content-wrapper {
    margin-top: 0;
    display: block;
}
.sidebar {
    width: 350px;
    background: #f8f9fa;
    padding: 5px;
    border-right: 1px solid #dee2e6;
}
.main-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 10px;
    margin-bottom: 20px;
}
.category-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.category-box h3 {
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 16px;
    color: #333;
}
.category-box ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}
.category-box li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}
.category-box li a:hover,
.category-box li a.active {
    background: #e8f5e9;
    color: var(--primary-color);
}
.app-icon[src=""] {
    display: none;
}
.rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
}
.rating i {
    color: #ffd700;
    font-size: 12px;
}
/* Download Detail Page */
.download-detail {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}
.detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.detail-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}
.detail-info {
    flex: 1;
}
.detail-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}
.detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.detail-rating i {
    color: #ffd700;
}
.detail-meta {
    margin-bottom: 20px;
}
.detail-meta p {
    margin-bottom: 8px;
    color: #666;
}
.download-now-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.detail-content h2 {
    font-size: 25px;
    margin-bottom: 15px;
    color: var(--text-color);
}
/* Description Styles */
.description {
    position: relative;
    margin-bottom: 30px;
}
.description-preview {
    position: relative;
    line-height: 1.6;
    color: #666;
}
.description-full {
    line-height: 1.6;
    color: #666;
}
.show-more-btn {
    display: inline-block;
    margin-top: 10px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.screenshots {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}
.changelog-item {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}
.version-number {
    font-weight: bold;
    color: var(--primary-color);
}
.version-date {
    color: #666;
    font-size: 14px;
}
.changelog-content {
    padding: 15px;
    background: white;
    border-bottom: 1px solid var(--border-color);
}
.changelog-entry {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    color: #666;
}
.changelog-entry:last-child {
    margin-bottom: 0;
}
.bullet {
    color: var(--primary-color);
}
.change-text {
    flex: 1;
}
/* Download Page Styles */
.download-header {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}
.download-content {
    display: flex;
    gap: 24px;
}
.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8f9fa; /* Warna background default */
    border: 1px solid var(--border-color);
}
.app-title-section {
    margin-bottom: 16px;
}
.app-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-color);
}
.developer {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.views-box, .downloads-box {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}
.views-box i, .downloads-box i {
    color: var(--primary-color);
}
.rating-box, .downloads-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}
.rating-box i {
    color: #ffd700;
}
.app-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}
.meta-item i {
    color: var(--primary-color);
    width: 16px;
}
.download-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}
.download-btn, 
.playstore-btn,
.download-old-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.download-btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}
.playstore-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.download-old-btn {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.download-btn:hover {
    background: #029045;
    transform: translateY(-2px);
}
.playstore-btn:hover,
.download-old-btn:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}
/* Screenshots Section */
.screenshots-section {
    margin-top: 24px;
}
.screenshots-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.screenshot-img {
    height: 400px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s;
}
.screenshot-img:hover {
    transform: scale(1.02);
}
/* Image Popup */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}
.popup-content {
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    cursor: default;
}
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    transition: background-color 0.3s;
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
.prev {
    left: 20px;
}
.next {
    right: 20px;
}
/* Stats Container Styles */
.stats-container {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 5px 10px;
    display: flex;
    gap: 10px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 0.9em;
}
.stat-item i {
    color: #ffd700;
}
.app-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
/* Show More Button Styles */
.show-more-container {
    text-align: center;
    margin-top: 20px;
}
.show-more-btn:hover {
    color: #174ea6;
    text-decoration: underline;
    background: #029045;
}
.show-more-btn i {
    font-size: 1.1em;
}
/* Section Header Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.section-header h2 {
    margin-bottom: 0;
    position: relative;
    padding-left: 15px;
}
.section-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}
.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}
.page-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}
.page-link:hover {
    background: var(--bg-gray);
}
.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.page-link i {
    font-size: 0.9em;
}
/* Load More Button Styles */
.load-more {
    text-align: center;
    margin-top: 30px;
}
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-size: 1em;
}
.load-more-btn:hover {
    background: #029045;
}
.load-more-btn i {
    font-size: 1.1em;
}
.app-grid.static {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
/* Version Info Styles */
.version-meta {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin: 15px 0;
}
.version-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.version-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}
.version-info p strong {
    color: var(--text-color);
}
/* Error Page Styles */
.error-page {
    padding: 60px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}
.error-page h1 {
    font-size: 120px;
    color: #e74c3c;
    margin: 0;
    line-height: 1;
    font-weight: 700;
}
.error-page h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 20px 0;
}
.error-page p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.error-actions .btn-primary,
.error-actions .btn-secondary {
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.error-actions .btn-primary {
    background: #3498db;
    color: white;
}
.error-actions .btn-secondary {
    background: #ecf0f1;
    color: #34495e;
}
.error-actions .btn-primary:hover {
    background: #2980b9;
}
.error-actions .btn-secondary:hover {
    background: #bdc3c7;
}
/* Komentar Styles dengan Latar Belakang Coklat */
.comments-section {
    margin-top: 30px;
    background: #f5f0e6; /* Warna coklat muda untuk latar belakang */
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
}
.comments-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #5c4b3a; /* Warna teks coklat tua */
    border-bottom: 1px solid #e0d6c8; /* Border coklat yang lebih terang */
    padding-bottom: 10px;
}
.rating-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #e9e1d4; /* Warna coklat lebih terang untuk rating summary */
    border-radius: 8px;
}
.average-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}
.rating-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}
.rating-stars {
    color: #ffc107;
    font-size: 24px;
}
.rating-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rating-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}
.star-label {
    width: 70px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}
.progress-container {
    width: 150px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: #ffc107;
}
.rating-count {
    color: #888;
    font-size: 0.9rem;
    min-width: 30px;
    text-align: right;
}
.comment-form {
    background: #f5f0e6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
/* Form Group Styles */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #5c4b3a;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
.rating-group {
    margin-bottom: 15px;
}
.rating-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #5c4b3a;
}
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.rating-input input {
    display: none;
}
.rating-input label {
    cursor: pointer;
    font-size: 25px;
    color: #c8b49d;
    margin-right: 5px;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #FFD700;
}
.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}
.submit-btn:hover {
    background: #029045;
}
.comments-list {
    margin-top: 20px;
}
.comment-item {
    background: #fffaf2; /* Warna latar belakang lebih terang untuk komentar */
    border-left: 3px solid #c8b49d; /* Border kiri dengan warna coklat */
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.comment-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.comment-user i {
    font-size: 1.2rem;
    color: #666;
}
.user-name {
    font-weight: bold;
    color: #333;
}
.comment-rating {
    color: #ffc107;
}
.comment-date {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}
.comment-content {
    color: #444;
    line-height: 1.5;
}
.no-comments {
    background: #f0e8da; /* Warna coklat lebih terang */
    color: #6b573e; /* Warna teks yang kontras */
    text-align: center;
    padding: 2rem;
    font-style: italic;
}
.error-container {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.error-message {
    color: #721c24;
    margin: 0;
}
/* Success Popup */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.success-popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.success-icon {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.success-message {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #333;
}
.close-popup {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}
.app-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}
.app-card-link:hover {
    transform: translateY(-3px);
}
.app-card-link:hover .app-card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.section-header-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1rem;
}
.section-header-link:hover .section-header {
    background-color: #f0f0f0;
}
.section-header-link:hover .show-more-btn {
    background-color: var(--primary-color);
    color: white;
}
/* Desktop navigation */
.desktop-nav {
    display: flex;
    gap: 20px;
}
.desktop-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 4px;
}
.desktop-nav a.active {
    color: var(--primary-color);
    background: var(--bg-gray);
}
/* Mobile menu styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px; /* Tersembunyi secara default */
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1005;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}
.mobile-menu.active {
    left: 0;
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.mobile-menu-content {
    padding: 15px;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
}
.mobile-nav a {
    display: block;
    padding: 15px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}
.mobile-nav a.active {
    color: var(--primary-color);
}
.mobile-menu-overlay.active {
    display: block;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.video-card.highlight {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(2, 173, 80, 0.3);
}
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0.8;
    transition: opacity 0.3s, background-color 0.3s;
}
.video-card:hover .video-play-icon {
    opacity: 1;
    background-color: rgba(2, 173, 80, 0.8);
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 5px;
    margin-top: 30px;
    margin: 40px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}
.pagination a:hover, .pagination span.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.pagination a i {
    font-size: 0.9em;
}
/* Pesan notifikasi */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.message.success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-left: 4px solid #4caf50;
}
.message.info {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-left: 4px solid #2196f3;
}
.message.error {
    background-color: #ffebee;
    color: #b71c1c;
    border-left: 4px solid #f44336;
}
/* Perbaikan untuk card video */
.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: auto; /* Biarkan tinggi menyesuaikan konten */
}
.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Rasio 16:9 */
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-info {
    padding: 5px;
    background: white;
}
.video-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi ke 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto; /* Biarkan tinggi menyesuaikan konten */
}
.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}
/* Styling Rol untuk Game, Apps, Artikel, Populer */
.article-recent-posts-section,
.popular-recent-posts-section,
.app-recent-posts-section,
.game-recent-posts-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.article-section-header,
.popular-section-header,
.app-section-header,
.game-section-header {
    display: block;
    padding: 8px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
}
.article-section-header {
    background: linear-gradient(to right, #FF9800, #FFB74D); /* Gradien oranye untuk artikel */
}
.popular-section-header {
    background: linear-gradient(to right, #1976D2, #64B5F6, #4CAF50, #ff6b6b, #E53935);
}
.app-section-header {
    background: linear-gradient(to right, #1976D2, #64B5F6); /* Gradien hijau untuk aplikasi baru */
}
.game-section-header {
    background: linear-gradient(to right, #E53935, #ff6b6b);
}
.article-header-link,
.popular-header-link,
.app-header-link,
.game-header-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.article-section-header h2,
.app-section-header h2,
.game-section-header h2,
.popular-section-header h2 {
    margin: 0;
    font-size: 18px;
    color: white;
    text-align: left;
}
.article-view-all-link,
.app-view-all-link,
.game-view-all-link,
.popular-view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 16px;
    font-weight: 500;
}
.article-header-link:hover .article-view-all-link,
.app-header-link:hover .app-view-all-link,
.game-header-link:hover .game-view-all-link,
.popular-header-link:hover .popular-view-all-link {
    text-decoration: underline;
    color: rgba(255, 255, 255, 0.9);
}
.article-nav-button,
.app-nav-button,
.game-nav-button,
.popular-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255,255,255,0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

.prev-button,
.article-prev-button,
.app-prev-button,
.game-prev-button,
.popular-prev-button {
    left: 5px;
}
.next-button,
.article-next-button,
.app-next-button,
.popular-next-button,
.game-next-button {
    right: 5px;
}
.article-posts-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
    padding-right: 20px;
}
.app-posts-slider,
.popular-posts-slider,
.game-posts-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;

    position: relative;
}
.article-posts-slider::-webkit-scrollbar,
.app-posts-slider::-webkit-scrollbar,
.popular-posts-slider::-webkit-scrollbar,
.game-posts-slider::-webkit-scrollbar {
    display: none;
}
.article-post-card {
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 250px;
    max-width: 250px;
    flex-shrink: 0;
}
.app-card,
.popular-card,
.game-card {
    flex: 0 0 auto;
    width: 200px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 120px;
    max-width: 120px;
    flex-shrink: 0;
}
.article-post-card-inner,
.app-card-inner,
.popular-card-inner,
.game-card-inner {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s;
}
.article-post-card:hover .article-post-card-inner,
.app-card:hover .app-card-inner,
.popular-card:hover .popular-card-inner,
.game-card:hover .game-card-inner {
    transform: translateY(-3px);
}
.article-post-image-container,
.app-image-container,
.popular-image-container,
.game-image-container {
    position: relative;
}
.article-post-image-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}
.app-image-container img,
.popular-image-container img,
.game-image-container img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}
.article-post-category {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(76, 175, 80, 0.8);
    border-radius: 3px;
    padding: 2px 6px;
}
.app-category,
.popular-category,
.game-category {
    position: absolute;
    top: 3px;
    left: 3px;
    background: rgba(0,0,0,0.7);
    border-radius: 3px;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.article-post-category span {
    color: white;
    font-size: 10px;
    font-weight: 500;
}
.article-post-info {
    padding: 15px;
}
.article-post-info h3 {
    font-size: 16px;
    margin: 0 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.article-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #777;
}
.article-post-date i {
    font-size: 12px;
    color: #4CAF50;
}
.article-post-image-container .article-no-image-placeholder {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 24px;
}
.app-category i,
.popular-category i,
.game-category i {
    color: #ffc107;
    font-size: 10px;
}
.app-category span,
.popular-category span,
.game-category span {
    color: white;
    font-size: 10px;
}
.app-type,
.popular-type,
.game-type {
    position: absolute;
    top: 3px;
    right: 3px;
    color: white;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 9px;
    text-transform: uppercase;
}
.game-type-label {
    background: #E53935;
}
.app-type {
    background: #1976D2;
}
.app-type.game-type {
    background: #E53935 !important;
}
.app-info,
.popular-info,
.game-info {
    padding: 5px;
    text-align: center;
}
.app-info-download {
    padding: 15px;
    flex: 1;
}
.app-stats-download {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}
.app-info h3,
.popular-info h3,
.game-info h3 {
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.app-stats,
.popular-stats,
.game-stats {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 3px;
}
.app-downloads,
.popular-downloads,
.game-downloads {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: #777;
}
.app-downloads i,
.popular-downloads i,
.game-downloads i {
    font-size: 10px;
}
.old-versions-section {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.version-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}
.version-header h3 {
    margin: 0;
    color: #333;
}
.version-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
}
.changelog {
    margin-bottom: 30px;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}
.changelog h4 {
    margin-top: 0;
    color: #333;
}
.changelog ul {
    margin: 0;
    padding-left: 1.5rem;
}
.changelog li {
    margin-bottom: 0.5rem;
    color: #555;
}
.download-section {
    margin-top: 1rem;
    text-align: right;
}
.detail-content {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.description-download {
    margin-bottom: 2rem;
    font-size: 1.5em;
    line-height: 1.7;
}
.nav-btn.prev { left: 30px; }
.nav-btn.next { right: 30px; }

/* =======================download-page-h3====================== */
.download-page {
    max-width: 600px;
    margin: 0.1rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.download-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}
.download-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}
.download-info {
    margin-bottom: 2rem;
    color: #666;
}
.download-info p {
    margin: 0.5rem 0;
}
.download-btn-h3 {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}
.download-btn-h3:hover {
    background-color: #45a049;
}
.download-btn-h3.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.timer {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}
.download-notice {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}
.error-message-h3 {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: left;
}
.comment-link {
    color: #007bff;
    text-decoration: underline;
}
.try-again-btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 0.5rem;
}
.try-again-btn:hover {
    background-color: #0069d9;
}
.mod-badge {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ============ Style untuk tampilan Artikel Header ================= */
/* .article-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 55px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
} */
.section-description {
    text-align: center;
    margin-bottom: 20px;
}
.section-description p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
.section-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #FF9800, #FFB74D);
    border-radius: 8px;
    padding: 10px 15px;
}

.section-header-article {
    margin: 0;
    padding: 0;
}
.section-header-articl h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
    font-weight: 600;
}
.section-nav {
    margin: 0;
    position: relative;
    display: flex;
    justify-content: flex-end;
}
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-right: 15px;
    z-index: 101;
    position: relative;
}
.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
.nav-tabs {
    display: none;
    position: absolute;
    top: 40px;
    right: auto;
    left: -150px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 100;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 5px;
    list-style: none;
    min-width: 180px;
}
.nav-tabs.show {
    display: flex;
}
.nav-tabs li {
    margin: 0;
    width: 100%;
}
.nav-tabs li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    font-weight: 500;
}
.nav-tabs li:last-child a {
    border-bottom: none;
}
.nav-tabs li.active a {
    color: #4CAF50;
    background: #f5f5f5;
}
.nav-tabs li a:hover {
    color: #4CAF50;
    background: #f9f9f9;
}
#pageTitle {
    color: white;
}

/* ========== Style untuk tampilan Artikel ============= */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.article-card-beranda:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.article-card-video,
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.article-card-video:hover,
.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}
.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card-video:hover .article-image img,
.article-card-beranda:hover .article-image img,
.article-card:hover .article-image img {
    transform: scale(1.05);
}
/* Video thumbnail styling */
.video-thumbnail-video,
.video-thumbnail-tutorial,
.video-thumbnail-berita,
.video-thumbnail-beranda,
.video-thumbnail-article {
    position: relative;
}
.video-thumbnail-video .play-button,
.video-thumbnail-tutorial .play-butto,
.video-thumbnail-berita .play-button,
.video-thumbnail-beranda .play-button,
.video-thumbnail-article .play-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}
.video-thumbnail-video .play-button i,
.video-thumbnail-tutorial .play-button i,
.video-thumbnail-berita .play-button i,
.video-thumbnail-beranda .play-button i,
.video-thumbnail-article .play-button i {
    font-size: 48px;
    color: #fff;
    opacity: 0.9;
    background-color: rgba(255, 0, 0, 0.7);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.article-card-video:hover .video-thumbnail-video .play-button,
.article-card:hover .video-thumbnail-tutorial .play-button,
.article-card:hover .video-thumbnail-berita .play-button,
.article-card:hover .video-thumbnail-beranda .play-button,
.article-card:hover .video-thumbnail-article .play-button {
    background-color: rgba(0, 0, 0, 0.5);
}
.article-card-video:hover .video-thumbnail-video .play-button i,
.article-card:hover .video-thumbnail-tutorial .play-button i,
.article-card:hover .video-thumbnail-berita .play-button i,
.article-card:hover .video-thumbnail-beranda .play-button i,
.article-card:hover .video-thumbnail-article .play-button i {
    opacity: 1;
    transform: scale(1.1);
}
.article-info {
    padding: 20px;
    flex-grow: 1;
}
.article-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.article-meta i {
    color: #4CAF50;
}
.video-indicator i {
    color: #f00;
}
.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    font-size: 15px;
}
.page-link-video,
.page-link-tutorial,
.page-link-berita,
.page-link-beranda,
.page-link-article {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.page-link-video:hover, .page-link-video.active,
.page-link-tutorial:hover, .page-link-tutorial.active,
.page-link-berita:hover, .page-link-berita.active,
.page-link-beranda:hover, .page-link-beranda.active,
.page-link-article:hover, .page-link-article.active {
    background: #4CAF50;
    color: white;
}

/* ============ Style untuk tombol Lihat Video Lainnya ============== */
.view-more-container {
    text-align: center;
    margin: 30px 0;
}
.view-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}
.view-more-button:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}
.view-more-button i {
    font-size: 18px;
}
/* ============== Style untuk container iklan beranda =============== */
#native-ad-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
/* Override untuk elemen Adsterra */
#native-ad-container > div,
#native-ad-container > ins,
#native-ad-container iframe,
#native-ad-container a,
#native-ad-container img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover !important;
}
/* Pastikan iklan tidak merusak layout */
.article-card-video .article-image,
.article-card-beranda .article-image {
    position: relative;
    overflow: hidden;
}
/* Pastikan link tidak berfungsi untuk menghindari navigasi */
.article-card-video a.article-link,
.article-card-beranda a.article-link {
    cursor: default;
}

/* ======================= Halaman View Video ======================== */
.video-page-content {
    display: flex;
    flex-direction: column;
    margin: 5px 0;
    gap: 10px;
    padding-top: 20px;
}

.main-video-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}
.video-title-view {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 5px;
    line-height: 1.3;
    border-bottom: 10px solid #f0f0f0;
}
.view-video-container {
    position: relative;
    width: 100%;
    background: #000;
}
.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Rasio 16:9 */
    height: 0;
}
.video-thumbnail-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}
.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-thumbnail-wrapper:hover img {
    transform: scale(1.05);
}
.play-button-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.play-button-video i {
    color: white;
    font-size: 30px;
}
.video-thumbnail-wrapper:hover .play-button-video {
    background: rgba(255, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}
.video-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}
.video-meta-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 15px;
}
.video-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 0;
    margin: 0 -20px;
    width: calc(100% + 40px);
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid white;
    flex-shrink: 0;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-avatar i {
    font-size: 22px;
    color: var(--primary-color);
}
.author-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.author-name-video {
    font-weight: 650;
    color: #02ad50;
    transition: color 0.2s;
    font-size: 20px;
    line-height: 1.2;
}
.author-subscribers {
    font-size: 12px;
    color: rgba(0,0,0,0.1);
}
a.author-name {
    color: #333;
    text-decoration: none;
}
a.author-name:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.video-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 0 15px;
}
.video-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 14px;
    padding: 6px 12px;
    background-color: #f8f8f8;
    border-radius: 4px;
}
.video-detail-item i {
    color: var(--primary-color);
    font-size: 16px;
}
.video-downloads {
    color: #555;
}
.video-downloads .count {
    font-weight: bold;
    color: #0f9d58;
}
.view-count {
    color: #555;
}
.view-count span {
    font-weight: bold;
    color: #4285f4;
}
.publish-date {
    color: #555;
}
.video-download-options {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}
.video-download-options h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}
.download-buttons-video {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}
.download-btn-video {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.download-video {
    background-color: #2196F3;
}
.download-video {
    background-color: #2196F3;
}
.download-audio {
    background-color: #9C27B0;
}
.download-btn-video:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.download-btn-video i {
    font-size: 28px;
    margin-bottom: 10px;
}

.download-btn-video span {
    font-weight: bold;
    font-size: 16px;
}

.download-btn-video small {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 5px;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.modal-header h3 {
    margin: 0;
    font-size: 18px;
}
.close-modal {
    cursor: pointer;
    font-size: 24px;
    color: #aaa;
}
.modal-body {
    padding: 20px;
}
.quality-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quality-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    background: #f9f9f9;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.quality-option:hover {
    background: #f0f0f0;
}
.quality-option i {
    font-size: 18px;
    margin-right: 15px;
    color: #2196F3;
}
.quality-option .quality-info {
    flex: 1;
}
.quality-title {
    display: block;
    font-weight: 500;
    margin-bottom: 3px;
}
.quality-desc {
    display: block;
    font-size: 12px;
    color: #666;
}
/* Sidebar video */
.video-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 15px;
}
/* Header Video Terkait */
.video-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a73e8;
    position: relative;
    display: flex;
    align-items: center;
}
.video-sidebar h3:before {
    content: '';
    width: 60px;
    height: 2px;
    background: #ff0000;
    position: absolute;
    bottom: -2px;
    left: 0;
}
/* Container untuk video terkait */
.video-list {
    display: grid;
    grid-gap: 15px;
    margin-top: 15px;
}
/* Kartu video terkait */
.video-card-view {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.video-card-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
/* Thumbnail video */
.video-thumbnail-view {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect ratio 16:9 */
    background: #f0f0f0;
    overflow: hidden;
}
.video-thumbnail-view img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-card-view:hover .video-thumbnail-view img {
    transform: scale(1.05);
}
/* Ikon play */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}
.play-icon i {
    color: white;
    font-size: 16px;
}
.video-card-view:hover .play-icon {
    opacity: 1;
    background: rgba(255, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}
/* Informasi video */
.video-info-view {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.video-info-view h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Container untuk video-channel dan video-stats */
.video-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
/* Informasi channel */
.video-channel {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    margin-right: 5px; /* Memberi jarak dengan video-stats */
    flex: 1; /* Memberi ruang untuk mengisi space */
}
.video-channel i {
    color: #ff0000;
    font-size: 10px;
    margin-right: 4px;
}
/* Statistik video */
.video-stats {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}
.video-stats span {
    display: flex;
    align-items: center;
}
.video-stats i {
    font-size: 11px;
    margin-right: 4px;
    color: #1a73e8;
}
/* Pesan tidak ada video */
.no-related-videos {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 15px;
    color: #666;
}
/* Highlight untuk video yang sedang diputar */
.video-card.active {
    border-left: 3px solid #ff0000;
}
/* Styling untuk section komentar */
.video-comments {
    margin-top: 25px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* Header untuk bagian komentar */
.comments-count i {
    color: #1a73e8;
    font-size: 20px;
}
/* Badge untuk jumlah komentar */
.comment-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background-color: #f0f3f7;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
}
/* Styling untuk form komentar */
.comment-form-video {
    margin-bottom: 30px;
}
.comment-form-video h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}
.form-group-video {
    margin-bottom: 15px;
}
.form-group-video label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.form-group-video label .required {
    color: #e53935;
}
.form-control-view-video {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.form-control-view-video:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}
/* Button styling */
.download-btn-video {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary-video {
    background-color: #1a73e8;
    color: white;
}
.btn-primary-video:hover {
    background-color: #1765cc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* Status message styling */
#commentStatus {
    margin-top: 15px;
    display: none;
}
/* No comments message */
.no-comments-video {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #666;
}
.no-comments-video p {
    margin: 0;
}
/* List komentar */
.comments-list-video {
    margin-top: 20px;
}
.comment-item-video {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border-left: 3px solid #1a73e8;
}
.comment-header-video {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-author i {
    color: #666;
    font-size: 16px;
}
.author-name {
    font-weight: 600;
    color: #333;
}
.comment-date-video {
    font-size: 12px;
    color: #777;
}
.comment-body {
    color: #333;
    line-height: 1.5;
}
/* Style untuk meta_description dengan dropdown */
.video-description {
    position: relative;
    margin-top: 10px;
    width: 100%;
}
.description-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    background-color: #f5f0e6;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e0d6c8;
    transition: all 0.2s ease;
}
.description-toggle i {
    transition: transform 0.3s ease;
}
.description-toggle:hover {
    background-color: #e9e1d4;
}
.description-content {
    display: none;
    padding: 10px;
    background-color: #f5f0e6;
    border: 1px solid #e0d6c8;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 12px;
    color: #5c4b3a;
    line-height: 1.5;
}
.description-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
}
.description-toggle.active + .description-content {
    display: block;
}

/* ========================== Halaman View =========================== */
.page-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 5px;
    max-width: 1250px;
    margin: 0 auto;
    padding: 5px;
}
.main-content-view {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.main-content-view article {
    width: 100%;
    overflow: hidden;
}
.article-info-view {
    padding: 20px 5px 2px;
    border-bottom: 1px solid #f0f0f0;
}
.article-info-view h1 {
    font-size: 25px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}
.article-meta-view {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    line-height: normal;
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.article-meta-view span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 14px;
}
.article-meta-view i {
    color: #4CAF50;
}
.article-featured-media {
    margin-bottom: 30px;
}
.article-featured-media img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0;
}
.article-video {
    margin-bottom: 30px;
}
.video-container-view {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}
.video-container-view iframe, 
.video-container-view video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    align-items: center;
}
.article-tag {
    background: #f5f5f5;
    color: #555;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}
.article-tag:hover {
    background: #e9e9e9;
}
/* sidebar-view styling */
.sidebar-view {
    align-self: flex-start;
    position: sticky;
    top: 80px;
    z-index: 10;
}
.widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 5px;
    margin-bottom: 25px;
}
.widget h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.popular-article {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.popular-article:hover {
    transform: translateY(-3px);
}
.popular-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.popular-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.popular-article:hover .popular-thumbnail img {
    transform: scale(1.05);
}
.popular-info-view {
    flex-grow: 1;
}
.popular-info-view h4 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 5px;
    line-height: 1.4;
    transition: color 0.2s;
}
.popular-article:hover .popular-info-view h4 {
    color: #4CAF50;
}
.popular-views {
    font-size: 12px;
    color: #888;
}
/* Styling untuk thumbnail tanpa gambar */
.popular-thumbnail.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #aaa;
    font-size: 24px;
}
.popular-thumbnail.no-image i {
    opacity: 0.7;
}
/* Styling untuk featured image yang tidak ada */
.no-featured-image {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #aaa;
    font-size: 48px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.no-featured-image i {
    opacity: 0.7;
}
/* Styling untuk konten artikel */
.article-content {
    padding: 5px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}
.article-content a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600; /* Membuat link sedikit tebal */
}
.article-content a:hover {
    text-decoration: underline;
}
/* Menjaga format paragraf */
.article-content p {
    margin-bottom: 20px;
    white-space: pre-line;
}
/* Styling untuk heading */
.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}
.article-content h2 {
    font-size: 24px;
}
.article-content h3 {
    font-size: 20px;
}
/* Menjaga spasi list */
.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}
.article-content li {
    margin-bottom: 10px;
}
/* Styling untuk gambar dalam konten */
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}
/* Menjaga format blockquote */
.article-content blockquote {
    border-left: 4px solid #4CAF50;
    padding-left: 20px;
    margin: 0 0 20px;
    color: #666;
    font-style: italic;
}
/* Menjaga format pre dan code */
.article-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: monospace;
    margin-bottom: 20px;
    white-space: pre-wrap;
}
.article-content code {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: Consolas, Monaco, monospace;
    margin-bottom: 20px;
    white-space: pre;
}






/* Styling untuk iklan dalam artikel */
.ad-placeholder {
    margin: 30px 0;
}
.ad-banner {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    position: relative;
}
.ad-banner span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #eee;
    color: #999;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}
.ad-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}
.popular-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}
.popular-category-view {
    color: #4CAF50;
}
/* Styling untuk komentar */
.article-comments {
    margin-top: 5px;
    padding: 20px 10px;
    border-top: 1px solid #f0f0f0;
}
.comments-count-view {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}
.comments-count-view i {
    color: #4CAF50;
    margin-right: 5px;
}
.comment-form-view {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.comment-form-view h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}
.form-group-view {
    margin-bottom: 15px;
}
.form-group-view label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group-view .required {
    color: #e53935;
}
.form-control-view {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
textarea.form-control-view {
    resize: vertical;
}
.btn-view {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.btn-primary-view {
    background-color: #4CAF50;
    color: white;
}
.btn-primary-view:hover {
    background-color: #388E3C;
}
.comments-list-view {
    margin-top: 30px;
}
.comment-item-view {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}
.comment-header-view {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.comment-author-view {
    display: flex;
    align-items: center;
    gap: 8px;
}
.comment-author-view i {
    font-size: 18px;
    color: #757575;
}
.author-name-view {
    font-weight: 500;
    color: #333;
}
.comment-date-view {
    color: #888;
    font-size: 13px;
}
.comment-body-view {
    color: #555;
    line-height: 1.6;
}
.no-comments-view {
    text-align: center;
    padding: 10px;
    color: #888;
    background: #f9f9f9;
    border-radius: 8px;
}
/* Alert styles */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.alert-info {
    background-color: #e3f2fd;
    color: #0d47a1;
}
.alert-success {
    background-color: #e8f5e9;
    color: #1b5e20;
}
.alert-danger {
    background-color: #ffebee;
    color: #b71c1c;
}
/* Tambahkan styling untuk semi-bold */
.semi-bold {
    font-weight: 600; /* Semi-bold weight */
    color: #222; /* Warna lebih gelap */
}
strong {
    font-weight: 800; /* Extra bold weight */
    color: #000; /* Warna hitam penuh */
}
/* Styling untuk Postingan Terbaru */
.recent-posts-section {
    padding: 8px 0;
    margin: 20px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}
.section-header-view {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 8px;
}
.section-header-view h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}
.section-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px;
    margin-top: 8px;
    background: #f5f5f5;
    border-radius: 8px;
}
.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.view-all-link:hover {
    text-decoration: underline;
}
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255,255,255,0.8);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}
.posts-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 5px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%; /* Batasi lebar maksimum */
}
.posts-slider::-webkit-scrollbar {
    display: none;
}
.post-card {
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 150px;
    max-width: 150px;
    flex-shrink: 0;
}
.post-card-inner {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s;
}
.post-card:hover .post-card-inner {
    transform: translateY(-3px);
}
.post-image-container {
    position: relative;
}
.post-image-container img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}
.post-category {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(76, 175, 80, 0.8);
    border-radius: 3px;
    padding: 2px 6px;
}
.post-category span {
    color: white;
    font-size: 10px;
    font-weight: 500;
}
.post-info {
    padding: 8px;
}
.post-info h3 {
    font-size: 13px;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.post-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #777;
}
.post-date i {
    font-size: 10px;
    color: #4CAF50;
}
.post-image-container .no-image-placeholder {
    width: 100%;
    height: 120px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 24px;
}
.author-avatar-view {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 7px;
}
/* ================ Styling untuk halaman galeri video =============== */
.page-title {
font-size: 2.5rem;
font-weight: bold;
color: #333;
margin: 0rem 0;
position: relative;
}

.page-title::after {
content: '';
display: block;
width: 60px;
height: 4px;
margin: 0.5rem auto 0;
border-radius: 2px;
}
.video-gallery {
    margin-top: 80px;
    padding: 20px 0;
}
.video-gallery-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}
.video-gallery-description {
    color: #666;
    margin-bottom: 20px;
}
.search-container {
    margin-bottom: 25px;
    width: 100%;
}
.video-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    max-width: 800px;
    width: 60%;
}
.search-input-container {
    display: flex;
    flex: 1;
    min-width: 300px;
}
.video-search-form input[type="text"] {
    flex: 1;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    font-size: 15px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.video-search-form button {
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.video-search-form button i {
    font-size: 16px;
}
.video-search-form button:hover {
    background-color: #029045;
}
.reset-search {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #f5f5f5;
    transition: all 0.3s;
}
.reset-search:hover {
    color: #d32f2f;
    background-color: #ffebee;
}
.video-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.video-category-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.video-category-link:hover, 
.video-category-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.category-filter a {
    display: inline-block;
    padding: 8px 15px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.category-filter a:hover, 
.category-filter a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.video-card-gallery {
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
    box-shadow: 0 2px 5px rgba(255, 1, 1, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: rgb(236, 234, 234);
    height: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.video-card-gallery:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.video-thumbnail-gallery {
    position: relative;
    overflow: hidden;
    padding-top: 50.00%; /* Rasio 16:9 */
    max-height: 180px;
}
.video-thumbnail-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 180px;
}
.play-button-gallery {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}
.play-button-gallery i {
    color: white;
    font-size: 16px;
    margin-left: 2px;
}
.video-category {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}
.video-category[data-category="video"] {
    background-color: rgba(255, 0, 0, 0.8);
}
.video-category[data-category="video"] {
    background-color: rgba(255, 0, 0, 0.8);
}
.video-category:not([data-category="video"]) {
    background-color: var(--primary-color);
}
.video-info-gallery {
    padding: 12px;
    flex: 0 1 auto;
    height: auto;
    max-height: 120px;
    display: flex;
    flex-direction: column;
}
.video-title-gallery {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #333;
    background-color: #f0e6e6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 39px; /* Paksa tinggi 2 baris meskipun teks 1 baris */
}
.video-meta-gallery {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #777;
    font-size: 12px;
}
.video-meta-gallery i {
    margin-right: 4px;
}
.video-date {
    display: flex;
    align-items: center;
    margin-right: 12px;
    color: #5c6bc0; 
}
.video-date i {
    color: #3949ab; 
}
.video-views {
    display: flex;
    align-items: center;
    margin-right: 12px;
    color: #00897b; 
}
.video-views i {
    color: #00897b; 
}
.video-excerpt {
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    color: #00897b;
    margin-top: 8px;
    text-decoration: none;
    border: none;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.video-card-gallery:hover .video-excerpt {
    background-color: rgba(255, 0, 0, 0.8);
    color: #fff;
}

.no-results {
    text-align: center;
    padding: 50px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.no-results i {
    color: #ddd;
    margin-bottom: 20px;
}
.no-results h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #666;
}
.no-results p {
    color: #999;
}
.highlight-video {
    position: relative;
    border: 2px solid var(--primary-color);
}
.video-card-gallery a {
    text-decoration: none;
}
/* =================================================================== */
/* ========================= HP sangat kecil ========================= */
/* =================================================================== */
@media (max-width: 360px) {
    /* ==== Styling untuk halaman galeri video ==== */
    .video-gallery-title {
        font-size: 20px;
    }
    .video-search-form input[type="text"] {
        height: 42px;
        font-size: 13px;
    }
    .video-category-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* =================================================================== */
/* ========================= HP sangat kecil ========================= */
/* =================================================================== */
@media (max-width: 375px) {
    .container {
        padding: 0 3px;
    }
    .app-image {
        height: 50px !important;
    }
    .app-info h3 {
        font-size: 10px;
        margin: 1px 0;
    }
    .stat-item, .stat-item i {
        font-size: 9px;
    }
    .stats-container {
        padding: 1px;
    }
}
/* =================================================================== */
/* ========================= HP sangat kecil ========================= */
/* =================================================================== */
@media (max-width: 480px) {
    .video-thumbnail-video .play-button i,
    .video-thumbnail-tutorial .play-button i,
    .video-thumbnail-berita .play-button i,
    .video-thumbnail-beranda .play-button i,
    .video-thumbnail-article .play-button i {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .article-image {
        height: 160px;
    }

    /* ====== Style untuk tampilan Artikel Header ========= */
    .section-header h1 {
        font-size: 20px;
    }
    .video-thumbnail .play-button i {
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    .article-image {
        height: 160px;
    }
    
    .nav-tabs {
        width: 100%;
        left: 50px;
        right: 0;
    }

    /* ================== Halaman View Video =================== */
    .video-meta-view {
        overflow-x: auto; 
        padding-bottom: 6px; 
    }
    .video-details {
        flex-wrap: nowrap; 
        margin-left: auto; 
    }
    .video-detail-item {
        flex: 0 0 auto; 
    }
    .video-meta-info {
        flex-wrap: nowrap;
    }
    .video-channel, .video-stats {
        font-size: 11px;
    }
    .video-list {
        grid-template-columns: 1fr;
    }
    .video-card-view {
        flex-direction: row;
        align-items: flex-start;
    }
    .video-thumbnail-view {
        width: 120px;
        min-width: 120px;
        height: 68px;
        padding-top: 0;
    }
    .video-info-view {
        padding: 8px 10px;
    }
    .video-info-view h4 {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    /* ==== Styling untuk halaman galeri video ==== */
    .search-input-container {
        height: 42px;
    }
    .video-categories {
        justify-content: center;
    }
}
/* =================================================================== */
/* ============ HP & tablet kecil (max-width: 768px) ================= */
/* =================================================================== */
@media (max-width: 768px) {
    main .container {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 5px;
        padding-top: 10px;
    }
    .search-box {
        display: none;
    }
    /* .container {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    } */
    .section {
        padding: 2px 0;
        margin: 2px 0;
    }
    .app-grid, 
    .app-grid.static {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 2px !important;
        padding: 2px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .app-card-link {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        float: none !important;
    }
    .app-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 3px !important;
        display: block !important;
        overflow: hidden !important;
        position: relative !important;
    }
    .app-image {
        width: 100% !important;
        height: 60px !important;
        object-fit: contain !important;
        display: block !important;
    }
    .stats-container {
        position: absolute !important;
        top: 1px !important;
        left: 1px !important;
        background: rgba(0,0,0,0.7) !important;
        border-radius: 3px !important;
        padding: 1px 2px !important;
        display: flex !important;
        gap: 2px !important;
    }
    .stat-item {
        font-size: 10px !important;
        color: white !important;
    }
    .stat-item i {
        font-size: 10px !important;
    }
    .app-info {
        padding: 2px !important;
        margin: 0 !important;
    }
    .app-info h3 {
        font-size: 11px !important;
        margin: 1px 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }
    .category-card {
        width: calc(33.333% - 10px); /* 3 items per row on mobile */
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section {
        padding: 0 20px;
    }
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    .main-content {
        padding: 15px;
    }
    .category-box {
        margin-bottom: 15px;
    }
    .category-box h3 {
        padding: 12px;
    }
    .category-box li a {
        padding: 8px 12px;
    }
    .detail-header {
        flex-direction: column;
    }
    .detail-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    .detail-info {
        text-align: center;
    }
    .version-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .changelog-content {
        padding: 12px;
    }
    .download-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .app-stats {
        justify-content: center;
    }
    .app-meta {
        grid-template-columns: 1fr;
    }
    .screenshot-img {
        height: 300px;
    }
    .nav-btn {
        padding: 10px;
        font-size: 16px;
    }
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .download-buttons {
        flex-direction: column;
    }
    .download-buttons-h1 {
        flex-direction: column;
    }
    .download-btn, 
    .playstore-btn,
    .download-old-btn {
        width: 100%;
    }
    .version-info {
        grid-template-columns: 1fr;
    }
    .error-page h1 {
        font-size: 80px;
    }
    .error-actions {
        flex-direction: column;
    }
    .error-content {
        padding: 20px;
    }
    .rating-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .success-popup-content {
        margin: 30% auto;
        padding: 1.5rem;
        max-width: 90%;
    }
    .video-info {
        padding: 8px;
    }
    .video-title {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    .video-meta {
        font-size: 11px;
    }

    /* ====== Style untuk tampilan Artikel Header ========= */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    /* .article-section {
        padding: 15px;
        padding-top: 25px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    } */
    .article-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .article-info {
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }
    .article-info h3 {
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .article-excerpt {
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .section-header h1 {
        font-size: 22px;
    }
    .section-header p {
        font-size: 14px;
    }
    .article-card {
        margin-bottom: 15px;
    }
    .article-image {
        height: 180px;
    }
    .article-info h3 {
        font-size: 18px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .article-meta {
        gap: 10px;
        font-size: 12px;
    }
    .article-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* =========== Style untuk tampilan Artikel =========== */
    .article-grid {
        grid-template-columns: 1fr;
    }
    .video-thumbnail-video .play-button i,
    .video-thumbnail-tutorial .play-button i,
    .video-thumbnail-berita .play-button i,
    .video-thumbnail-beranda .play-button i,
    .video-thumbnail-article .play-button i {
        font-size: 36px;
        width: 50px;
        height: 50px;
    }
    .article-info h3 {
        font-size: 18px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .article-meta {
        gap: 10px;
        font-size: 12px;
    }
    .article-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .article-card-video,
    .article-card {
        margin-bottom: 15px;
    }
    .article-image {
        height: 180px;
    }

    /* ============ Style untuk tombol Lihat Video Lainnya ============== */
    .view-more-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .view-more-button i {
        font-size: 16px;
    }
    /* ========================== Halaman View =========================== */
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    .page-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 1200px;
        margin: 0 auto;
        padding-top: 0px;
    }
    .sidebar-view {
        position: static;
        margin-top: 20px;
    }
    /* .widget {
        padding: 15px;
    } */
    .article-info-view h1 {
        font-size: 22px;
    }
    .article-meta-view {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 10px;
    }
    .article-meta-view span {
        font-size: 12px;
    }
    .article-content {
        padding: 1px;
        text-align: left;
    }
    /* ==== Styling untuk halaman galeri video ==== */
    .header-content {
        text-align: center;
    }
    .video-gallery {
        margin-top: 60px;
        padding: 15px 0;
    }
    .video-gallery-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .video-gallery-description {
        font-size: 14px;
        line-height: 1.4;
    }
    .search-container {
        width: 100%;
    }
    .search-input-container {
        position: relative;
        display: flex;
        width: 100%;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
    }
    .video-search-form {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .video-search-form input[type="text"] {
        flex: 1;
        width: calc(100% - 45px);
        height: 45px;
        border: none;
        border-radius: 4px 0 0 4px;
        padding: 0 10px 0 15px;
        font-size: 14px;
        background: white;
        box-shadow: none;
        z-index: 1;
    }
    .video-search-form button {
        position: absolute;
        right: 0;
        top: 0;
        height: 45px;
        width: 45px;
        min-width: 65px;
        border-radius: 0 4px 4px 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    .video-search-form button span {
        display: none;
    }
    .video-search-form button i {
        font-size: 18px;
    }
    .video-categories {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }
    .video-category-link {
        padding: 8px 15px;
        font-size: 13px;
        border-radius: 20px;
        min-width: 80px;
        text-align: center;
    }
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .video-card-gallery {
        margin-bottom: 5px;
    }
    .video-info-gallery {
        padding: 12px;
    }
    .video-title-gallery {
        font-size: 16px;
        line-height: 1.3;
        min-height: 40px; /* tetap 2 baris */
    }
    .video-meta-gallery {
        font-size: 11px;
    }
    .video-excerpt {
        font-size: 12px;
        line-height: 1.3;
        height: auto;
        max-height: 47px;
    }
    .reset-search {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    /* ================== Halaman View Video 768px =================== */
    .video-page-content {
        padding-top: 0px;
    }
    .video-author {
        margin: 0 -15px;
        width: calc(100% + 30px);
    }
    .video-details {
        width: 100%;
        justify-content: flex-start;
        padding-left: 0px; 
        overflow-x: auto; 
        padding-bottom: 5px;
    }
    .video-detail-item {
        font-size: 12px;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    .video-detail-item i {
        font-size: 14px;
    }
    .video-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .video-sidebar h3 {
        font-size: 16px;
        padding-bottom: 10px;
    }
    .video-comments {
        padding: 15px;
    }
    .comments-count {
        font-size: 16px;
    }
    .btn-video {
        width: 100%;
    }
    /* ==== Styling untuk halaman galeri video ==== */
    .category-filter {
        display: flex; /* WAJIB: aktifkan flex */
        justify-content: center; /* TENGAH horizontal */
        align-items: center; /* opsional: tengah secara vertikal */
        gap: 5px;
    }
}
/* =================================================================== */
/* ======================== HP & tablet kecil ======================== */
/* =================================================================== */
@media screen and (max-width: 768px) {
    /* Styling untuk Artikel Terbaru dengan namespace */
    .popular-section-header,
    .article-section-header,
    .game-section-header,
    .app-section-header {
        padding: 8px 12px;
    }
    .popular-section-header h2,
    .article-section-header h2,
    .game-section-header h2,
    .app-section-header h2 {
        font-size: 16px;
    }
    .popular-view-all-link,
    .article-view-all-link,
    .game-view-all-link,
    .app-view-all-link {
        font-size: 12px;
    }
}

/* =================================================================== */
/* ===================== Desktop & tablet besar ====================== */
/* =================================================================== */
@media (min-width: 769px) {
    /* .desktop-only {
        display: block;
    }
    .mobile-only {
        display: none;
    } */
    .mobile-only {
        display: none !important;
    }
    /* Pastikan desktop header ditampilkan dengan benar */
    .desktop-only {
        display: block !important;
    }
    .main-content {
        padding: 15px;
        max-width: 1200px;
        margin: 0 auto;
    }
    .main-content .container {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    .logo {
        text-decoration: none;
    }
    .logo-text {
        color: var(--primary-color);
        font-size: 24px;
        font-weight: bold;
    }
    .search-box {
        flex: 1;
        max-width: 600px;
    }
    .search-box form {
        display: flex;
    }
    .search-box input {
        flex: 1;
        padding: 12px 20px;
        border: 1px solid var(--border-color);
        border-right: none;
        border-radius: 4px 0 0 4px;
        font-size: 14px;
        outline: none;
    }
    .search-box input:focus {
        border-color: var(--primary-color);
    }
    .search-box .search-btn {
        padding: 0 30px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        height: 42px;
    }
    .menu-toggle,
    .search-icon,
    .mobile-search {
        display: none;
    }
    .sub-nav {
        display: block;
        position: static;
        background: white;
        border-bottom: 1px solid var(--border-color);
        box-shadow: none;
    }
    .sub-nav .container {
        display: flex;
        justify-content: flex-start;
        padding: 0;
    }
    .sub-nav a {
        display: inline-block;
        padding: 15px 25px;
        color: var(--text-color);
        text-decoration: none;
        font-weight: 500;
        border: none;
        position: relative;
    }
    .sub-nav a:hover {
        color: var(--primary-color);
    }
    .sub-nav a.active {
        color: var(--primary-color);
        background: transparent;
    }
    .sub-nav a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-color);
    }
    .category-box {
        background: white;
        border-radius: 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .category-box h3 {
        padding: 15px;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }
    .category-box ul {
        list-style: none;
        padding: 10px;
    }
    .category-box li a {
        display: block;
        padding: 10px 15px;
        color: var(--text-color);
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.2s;
    }
    .category-box li a:hover,
    .category-box li a.active {
        background: #e8f5e9;
        color: var(--primary-color);
    }
    .sidebar {
        background: white;
        border-radius: 4px;
        padding: 15px;
    }
    .category-box h3 {
        margin-bottom: 15px;
        font-size: 18px;
    }
    .category-box ul {
        list-style: none;
    }
    .category-box li a {
        display: block;
        padding: 10px;
        color: var(--text-color);
        text-decoration: none;
        border-radius: 4px;
    }
    .category-box li a:hover,
    .category-box li a.active {
        background: var(--bg-gray);
        color: var(--primary-color);
    }
    .app-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        overflow-x: auto;
        padding: 10px 0;
    }

    /* ================== Halaman View Video 769px =================== */
    .video-page-content {
        padding-top: 0px;
        flex-direction: row;
    }
    .main-video-content {
        flex: 1;
        max-width: 70%;
    }
    .video-sidebar {
        width: 28%;
        min-width: 300px;
    }
    .video-list {
        grid-template-columns: 1fr; /* Satu kolom di sidebar */
    }

    /* ======================= Halaman View ======================== */

}