/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    margin: 0;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-layout {
    display: flex;
    flex: 1;
    margin-top: 100px;
}

main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    margin-bottom: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-bottom: 1px solid #222;
}

/* Logo */
.logo-desktop {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 1001;
    display: none;
}

.logo-mobile {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: block;
    text-align: center;
}

.logo-desktop img,
.logo-mobile img {
    height: 40px;
    object-fit: contain;
}

/* Hamburger */
.hamburger {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    background: none;
    color: white;
    border: none;
    z-index: 1001;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

/* Sidebar */
aside {
    width: 220px;
    background: #1a1a1a;
    padding: 40px 20px 20px;
    flex-shrink: 0;
    min-height: calc(100vh - 100px);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    aside {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 998;
        transition: left 0.3s ease-in-out;
        padding-top: 100px;
    }

    aside.active {
        left: 0;
    }
}

aside h2 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

aside input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 12px 0 20px;
    border: none;
    border-radius: 4px;
    background-color: white;
    color: black;
    font-size: 14px;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside ul li {
    margin-bottom: 10px;
}

aside ul li a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

/* Marquee */
.marquee-container {
    width: 100%;
    text-align: center;
    background: #222;
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 998;
}

/* Main content */
.video-thumb a {
    text-decoration: none;
    color: white;
}

.video-thumb a:visited {
    color: white;
}

.video-thumb h4 {
    margin-top: 8px;
    font-size: 14px;
    font-weight: normal;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.video-thumb {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.video-thumb img,
.video-thumb video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.video-thumb h4 {
    padding: 8px;
    font-size: 16px;
}

/* Full video view */
.full-video-container {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.full-video-container.active {
    display: flex;
}

.full-video video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0 1rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page,
.pagination .next {
    background-color: #222;
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.pagination .page.active {
    background-color: white;
    color: black;
}

.pagination .page:hover,
.pagination .next:hover {
    opacity: 0.85;
}

/* Footer */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 20px;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

.site-footer .footer-links {
    margin-bottom: 10px;
}

.site-footer .footer-links a {
    color: crimson;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.site-footer .footer-links a:hover {
    text-decoration: underline;
}

.site-footer .footer-copy {
    font-size: 13px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .content-layout {
        flex-direction: column;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }

    .judul-wrapper {
        margin-bottom: 16px;
    }

    .pagination-container {
        padding-bottom: 10px;
    }

    .site-footer {
        padding-top: 10px;
    }
}

@media (min-width: 769px) {
    aside {
        padding-top: 20px;
    }

    .logo-desktop {
        display: block;
    }

    .logo-mobile {
        display: none;
    }

    .judul-wrapper {
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 20px;
    }
}

.judul-section {
    font-size: 20px;
    font-weight: bold;
}