* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #ff6b6b;
    --accent-dark: #ff5252;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #0f172a 0%, #1a2847 50%, #0f172a 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

header {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
}

.logo-video {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.logo-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-fallback {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 8px;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

nav a:hover {
    color: white;
}

nav a:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(102, 126, 234, 0.2);
}

.auth-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.login-btn-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.login-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.logout-btn-header {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.logout-btn-header:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

.settings-btn-header {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.settings-btn-header:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
    /* Improve touch responsiveness and stacking */
    touch-action: manipulation;
    position: relative;
}

.home-btn-header {
    display: none;
    background: rgba(102, 126, 234, 0.1);
    color: white;
    border: 1px solid rgba(102,126,234,0.25);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

#nav-menu {
    display: flex;
    gap: 40px;
}

.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 120px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero > * {
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    animation: slideDown 0.8s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    animation: slideUp 0.8s ease;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.main-content {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    color: white;
    position: relative;
    padding-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    margin: 20px auto 0;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.news-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease;
}

.news-card:hover {
    transform: translateY(-15px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card:hover .news-image::before {
    opacity: 0.1;
}

.news-content {
    padding: 24px;
}

.news-date {
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0;
    color: white;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    color: #764ba2;
    margin-left: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-15px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    animation: scaleIn 0.6s ease;
}

.feature-card:hover .feature-icon {
    animation: bounce 0.6s ease;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.feature-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.1) translateY(-10px);
    }
}

.trending-section {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease;
}

.trending-list {
    list-style: none;
}

.trending-item {
    padding: 25px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-item:hover {
    padding-left: 15px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    border-radius: 8px;
    transform: translateX(5px);
}

.trending-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.trending-content h3 {
    color: white;
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
}

.trending-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.5;
}

footer {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 18px;
    color: #667eea;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.footer-section {
    animation: fadeInUp 0.8s ease;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
    margin-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding-top: 25px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    nav {
        gap: 20px;
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .header {
        padding: 12px 0;
    }

    .header-content {
        position: relative;
    }

    .hamburger {
        display: flex;
        z-index: 1003; /* Pastikan tombol berada di atas */
        touch-action: manipulation;
        position: absolute;
        right: 16px;
        top: 12px;
    }

    .home-btn-header {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        padding: 8px 12px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 12px;
        z-index: 1004;
    }

    /* keep logo on the left for mobile */
    .logo-video {
        margin-left: 8px;
    }

    #nav-menu {
        display: flex;
        position: fixed;
        z-index: 1002; /* Pastikan menu berada di atas header */
        left: 0;
        top: 60px;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        overflow-y: auto;
    }

    #nav-menu.active {
        transform: translateX(0) !important;
    }

    #nav-menu a {
        padding: 16px 20px;
        color: rgba(255, 255, 255, 0.8);
        display: block;
        border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        transition: all 0.3s ease;
    }

    #nav-menu a:hover {
        background: rgba(102, 126, 234, 0.1);
        color: white;
        padding-left: 30px;
    }

    #nav-menu a::after {
        display: none;
    }
}

/* Page Title Section */
.page-title-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.page-title-section h1 {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.page-title-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Berita Controls */
.berita-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
}

.search-input {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.filter-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    color: white;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* News Grid Berita */
.news-grid-berita {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card-berita {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease;
    display: block;
    opacity: 1;
}

.news-card-berita.visible {
    animation: fadeInUp 0.4s ease;
}

.news-card-berita:hover {
    transform: translateY(-15px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.news-card-berita .news-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.news-card-berita .news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news-card-berita:hover .news-image::before {
    opacity: 0.1;
}

.news-card-berita .news-content {
    padding: 24px;
}

.news-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.news-card-berita .news-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    margin-bottom: 8px;
}

.news-card-berita .news-title {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0;
    color: white;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.news-card-berita .news-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.reading-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.news-card-berita .read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-card-berita .read-more:hover {
    color: #764ba2;
    margin-left: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 60px 0;
    flex-wrap: wrap;
    align-items: center;
    padding: 30px 20px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 16px;
}

.pagination-btn {
    padding: 10px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.pagination-prev,
.pagination-next {
    padding: 10px 20px;
    min-width: auto;
}

.pagination-prev:disabled,
.pagination-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Berita Modal Styles */
.berita-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.berita-modal.active {
    display: flex;
}

.berita-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    cursor: pointer;
}

.berita-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(102, 126, 234, 0.3);
    z-index: 2001;
    transform: translate(-50%, -50%);
}

.berita-modal.closing .berita-modal-content {
    animation: popOut 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.berita-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: white;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
}

.berita-modal-close:hover {
    background: rgba(102, 126, 234, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.berita-detail-container {
    padding: 40px;
    color: white;
}

.berita-detail-header {
    margin-bottom: 30px;
    text-align: center;
}

.berita-detail-emoji {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotateX(-90deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1) rotateX(0);
        opacity: 1;
    }
}

.berita-detail-title {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    margin: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.berita-detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

.berita-detail-date,
.berita-detail-category,
.berita-detail-reading-time {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.berita-detail-category {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #667eea;
    font-weight: 600;
    text-transform: capitalize;
}

.berita-detail-body {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.berita-detail-body p {
    margin-bottom: 16px;
}

.berita-detail-body p:last-child {
    margin-bottom: 0;
}

/* Scrollbar styling untuk modal */
.berita-modal-content::-webkit-scrollbar {
    width: 8px;
}

.berita-modal-content::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.berita-modal-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.berita-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    .page-title-section {
        padding: 60px 20px;
        margin-top: 50px;
    }

    .page-title-section h1 {
        font-size: 36px;
    }

    .page-title-section p {
        font-size: 16px;
    }

    .berita-controls {
        padding: 20px;
    }

    .news-grid-berita {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .nav-auth {
        display: none;
    }

    #nav-menu.active .nav-auth {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
        border: none;
        border-top: 1px solid rgba(102, 126, 234, 0.1);
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .auth-btn {
        width: 100%;
        text-align: center;
    }

    .login-btn-header {
        display: block !important;
    }
}

/* Bank / Top-up modern overrides */
.bank-page header { background: rgba(255,255,255,0.6); color: var(--dark); border-bottom: 1px solid rgba(2,6,23,0.04); box-shadow: none; }
.bank-page nav a { color: var(--text); }
.bank-page .logo-fallback { display:block }

/* Buttons */
.btn { padding:10px 14px; border-radius:10px; background: linear-gradient(90deg,var(--primary),var(--secondary)); color:#fff; text-decoration:none; display:inline-block; border:none; box-shadow:0 8px 24px rgba(102,126,234,0.12); font-weight:700 }
.btn.secondary { background:#111827; box-shadow:none }

/* Table modern */
.table-modern { width:100%; border-collapse:collapse; box-shadow:0 8px 20px rgba(2,6,23,0.04); border-radius:10px; overflow:hidden; }
.table-modern th, .table-modern td { padding:12px 14px; border-bottom:1px solid var(--border); background: rgba(255,255,255,0.78); }
.table-modern th { background: linear-gradient(90deg,var(--primary),var(--secondary)); color:#fff; font-weight:700; }

/* Card hover */
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(2,6,23,0.08); }
/* Bank page cards should be slightly translucent to show background image */
.bank-page .card { background: rgba(255,255,255,0.60); }

/* Theme support */
.theme-dark {
  --primary: #2dd4bf;
  --primary-dark: #14b8a6;
  --secondary: #7c3aed;
  --accent: #fb7185;
  --dark: #e6eef6;
  --light: #0b1220;
  --text: #e6eef6;
  --text-light: #9aa7b5;
  --border: rgba(255,255,255,0.06);
  background: linear-gradient(180deg,#041124 0%, #08172a 100%);
}

/* toast */
#toastContainer { position: fixed; right: 18px; bottom: 18px; z-index: 2000; display:flex; flex-direction:column; gap:10px; }
.toast { background: rgba(2,6,23,0.95); color: #fff; padding:10px 14px; border-radius:10px; box-shadow: 0 8px 24px rgba(2,6,23,0.2); animation: slideUp .36s ease; }
.toast.success { background: linear-gradient(90deg,#16a34a,#22c55e); }
.toast.error { background: linear-gradient(90deg,#ef4444,#fb7185); }
.toast.info { background: linear-gradient(90deg,#0ea5a4,#06b6d4); }

@media (max-width:900px) {
    .bank-page  { padding: 24px 16px }
}

/* Mobile-friendly adjustments for bank & topup pages */
@media (max-width:768px) {
    .main-content { padding: 12px 8px; }
    .container { padding-left: 8px; padding-right: 8px; max-width: 100%; }
    .bank-dashboard { padding: 14px; border-radius: 10px; margin: 8px 0; }
    .dashboard-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .dashboard-title h2 { font-size: 1.05rem; margin:0; }

    .bank-page .small { font-size: 0.95rem; }
    .bank-page .form-group { margin-bottom: 12px; }
    .bank-page .input-group { gap: 8px; align-items: center; }
    .bank-page .input-prefix { padding: 8px 10px; font-size: 0.95rem; }
    .bank-page input[type=number], .bank-page input[type=text] { padding:10px 12px; font-size:15px; }

    /* Buttons stack and occupy full width on mobile */
    .bank-page .btn { display:block; width:100%; box-sizing:border-box; }
    .bank-page .btn + .btn { margin-top:10px; }

    /* Tables and cards more compact */
    .table-modern th, .table-modern td { padding:10px; }
    .bank-page .card { margin-bottom: 12px; }

    /* Make saldo amount smaller and responsive */
    .saldo-amount { font-size: 2.0rem; }

    /* Grid columns collapse to single column */
    .rekening-info { grid-template-columns: 1fr; gap: 14px; }

    /* Hide heavy header video and logo block on small screens to save space */
    #header-video, .logo-video, .logo-video video { display:none !important; }

    /* Ensure floating FAB does not overlap header icons */
    .topup-btn { top: 12px; right: 12px; }

    /* Avoid horizontal overflow */
    html, body { overflow-x: hidden; }

    #nav-menu {
        overflow: visible !important;
    }

    /* Ensure no unexpected left offset */
    .container, .bank-container { transform: none !important; margin-left: 0 !important; margin-right: 0 !important; }
}

@media (max-width:480px) {
    header { padding: 8px 0; }
    .header-content { gap: 8px; }
    .dashboard-title h2 { font-size: clamp(1rem, 6vw, 1.15rem); }
    .bank-page .small { font-size: 0.88rem; }
    .bank-page input[type=number], .bank-page input[type=text] { font-size: 15px; padding:10px; }
    .bank-page .btn { padding:10px; font-size: 15px; }
    .container { padding-left: 10px; padding-right: 10px; }
    .saldo-amount { font-size: clamp(1.4rem, 8vw, 1.9rem); }
    .rekening-value { font-size: 1rem; }
    .bank-dashboard, .card { width: 100%; max-width: 100%; padding: 12px; border-radius: 10px; }
    .bank-container { margin: 12px 0; }
    .topup-btn { width:44px; height:44px; top: 10px; right: 10px; font-size: 14px; }
    .logo-fallback { font-size: 11px; }
    /* Hide some header controls that cause layout shifts on very small screens */
    .home-btn-header { display:none !important; }
    #header-video, .logo-video, .logo-video video { display:none !important; }
    /* Ensure content fits height better and avoid accidental overflow */
    .main-content { padding-bottom: 80px; }
    html, body { overflow-x: hidden; }

    #nav-menu {
        overflow: visible !important;
    }
}

/* When an image background is present we can add a subtle overlay for readability */
.bank-bg-overlay::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)); z-index: 0; }

/* Admin-like theme for bank pages */
.bank-page.bank-admin-theme { background: linear-gradient(180deg,#081228 0%, #0b1830 100%); color: #e6eef6; }
.bank-page.bank-admin-theme header { background: linear-gradient(90deg,#0f172a,#0b1220); color: #e6eef6; border-bottom: none; }
.bank-page.bank-admin-theme nav a { color: rgba(230,238,246,0.9); }
.bank-page.bank-admin-theme .bank-dashboard { background: rgba(30,41,59,0.95); border:1px solid rgba(102,126,234,0.12); color:#e6eef6; }
.bank-page.bank-admin-theme .dashboard-title h2 { color:#e6eef6; }
.bank-page.bank-admin-theme .dashboard-status, .bank-page.bank-admin-theme .small { color: rgba(230,238,246,0.75); }
.bank-page.bank-admin-theme .rekening-item { background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.03); }
.bank-page.bank-admin-theme .saldo-amount { color: #e6eef6; }
.bank-page.bank-admin-theme .btn { background: linear-gradient(135deg,#667eea 0%, #764ba2 100%); color:#fff; box-shadow: none; }
.bank-page.bank-admin-theme .btn.secondary { background: rgba(255,255,255,0.06); color: #e6eef6; border:1px solid rgba(255,255,255,0.04); }
.bank-page.bank-admin-theme .table-modern th, .bank-page.bank-admin-theme .table-modern td { background: rgba(255,255,255,0.03); color: #e6eef6; border-bottom:1px solid rgba(255,255,255,0.04); }
.bank-page.bank-admin-theme .card { background: rgba(30,41,59,0.9); box-shadow: 0 12px 40px rgba(2,6,23,0.6); }
.bank-page.bank-admin-theme .notice { background: rgba(255,255,255,0.04); color:#e6eef6; border:1px solid rgba(255,255,255,0.04); }

/* Floating Top-up button (FAB) */
.bank-page .topup-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--primary),var(--secondary));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(2,6,23,0.2);
  border: 2px solid rgba(255,255,255,0.08);
}
.topup-btn .rp { font-size: 16px; line-height: 1; }
.topup-btn .plus { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #0b1220; font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 6px 12px rgba(2,6,23,0.12); border: 1px solid rgba(0,0,0,0.06); }

.bank-page.bank-admin-theme .topup-btn { background: linear-gradient(135deg,#667eea,#7c3aed); border: 1px solid rgba(255,255,255,0.06); }
.bank-page.bank-admin-theme .topup-btn .plus { background: #fff; color: #0b1220; }

/* Inline Top-up button (placed near balance) */
.topup-inline { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:8px; background: linear-gradient(90deg,var(--primary),var(--secondary)); color:#fff; text-decoration:none; font-weight:800; box-shadow:0 8px 20px rgba(2,6,23,0.08); }
.topup-inline .rp { background: rgba(255,255,255,0.12); padding:6px 8px; border-radius:6px; font-weight:800; }
.topup-inline .plus { background: #fff; color: #0b1220; width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.topup-inline .label { font-weight:700; }

.bank-page.bank-admin-theme .topup-inline { background: linear-gradient(135deg,#667eea,#7c3aed); color:#fff; }
.bank-page.bank-admin-theme .topup-inline .rp { background: rgba(255,255,255,0.08); }
.bank-page.bank-admin-theme .topup-inline .plus { background: #fff; color: #0b1220; }

@media (max-width: 768px) {
  .topup-btn { width: 48px; height: 48px; top: 12px; right: 12px; }
  .topup-btn .rp { font-size: 14px; }
  .topup-btn .plus { width: 18px; height: 18px; top: -5px; right: -5px; font-size: 11px; }

  /* Make inline topup full-width on small screens and centre it */
  .topup-inline { width: 100%; justify-content: center; padding: 12px; margin-top: 8px; }
} 

