html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

#backToTop {
    position: fixed;
    right: 16px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #DC0000;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    z-index: 2147483647;
}


.animate-item {
    opacity: 0;
    animation: slideUpSlow 2.8s ease-out forwards;
}

@keyframes slideUpSlow {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }

    60% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


:root {
    --main-nav-height: 48px;
    --sub-nav-height: 60px;
}

.navbar-main {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px calc((100% - 1200px) / 2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    box-sizing: border-box;
}

body {
    padding-top: calc(var(--main-nav-height) + var(--sub-nav-height));
}

.navbar-padding {
    padding: 10px;
    display: flex;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
}

.navbar-main .logo {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;

    flex: 1;
}

.logo-img {
    width: 180px;
    height: 40px;
    margin-right: 20px;
    object-fit: contain;
}

.button-user {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.navbar-main ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar-main ul li a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    text-decoration: none;
}

.navbar-main ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background-color: #d10000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar-main ul li a:hover::after {
    transform: scaleX(1);
}

.navbar-sub {
    position: fixed;
    top: 68.5px;
    left: 0;
    width: 100%;
    z-index: 9001;
    background-color: #fff;
    padding: 15px calc((100% - 1200px) / 2);
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.navbar-sub ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0 10px;
}

.navbar-sub ul li a {
    color: #858181;
    text-decoration: none;
    font-size: 14px;
}

.navbar-sub ul li {
    position: relative;
}

.navbar-sub ul li .sub-menu { 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 270px;
    padding: 10px 0;
    border: 1px solid #e5e7eb;
    display: none;
    flex-direction: column;
    z-index: 999;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar-sub ul li .sub-menu::-webkit-scrollbar {
    display: none;
}


/* item submenu */
.navbar-sub ul li .sub-menu li a {
    padding: 8px 15px;
    display: block;
    color: #000;
    position: relative;
    z-index: 9999;
}


.langganan {
    background-color: #DC0000;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
}

.login {
    border: 1px solid #000;
    padding: 10px 20px;
    text-decoration: none;
    color: #000;
    display: flex;
    gap: 5px;
    font-weight: 500;
}

.login-mobile,
.menu-mobile {
    display: none;
}

.card-berita {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.card {
    flex: 1;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
    padding: 10px;
}

.card img {
    width: 100%;
    object-fit: contain;
}

.card p {
    font-weight: bold;
    margin-bottom: 0;
}

.card-detail {
    margin-top: 15px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-image {
    flex: 0 0 40%;
    height: 100%;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-text {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.detail-text::-webkit-scrollbar {
    display: none;
}

.detail-text h2 {
    margin: 0 0 10px;
}

.detail-text p {
    margin: 0;
    line-height: 1.6;
}

.iklan {
    padding: 10px;
    flex: 1;
    position: sticky;
    top: 10px;
}

/* .tagar {
    border: 1px solid #e5e7eb;
}

.tagar p {
    font-size: 15px;
    color: #4d4d4d;
    font-weight: bold;
} */

.detail-btn {
    border: none;
    text-decoration: none;
    font-weight: bold;
    color: #DC0000;
    background-color: transparent;
    font-size: 15px;
    padding: 0;
    margin-top: 10px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 24rem;
    height: 100vh;
    background: #fff;
    color: #000;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-isi {
    padding: 0 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li a {
    color: #555555;
    border-bottom: 1px solid #e5e7eb;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    padding: 15px 0;
}

.sidebar ul li a i {
    margin-right: 5px;
}


.search-sidebar {
    padding: 15px 25px;
    border-bottom: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    align-items: center;
}

.input-menu {
    border: 1px solid #555555;
    display: flex;
}

#btn-sidebar-search {
    margin-left: auto;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#input-sidebar {
    background-color: #fff;
    outline: none;
    font-size: 14px;
    border: none;
    padding: 10px;
}

.search-input:focus {
    border-color: #555555;
}

.info {
    padding: 20px 10px;
}

.info a,
.populer-mobile a {
    display: flex;
    padding: 10px;
    gap: 10px;
    text-decoration: none;
}

/* ================================
   HOVER EFFECT : LIFT + SHADOW
   ================================ */
.home a:hover,
.Pendidikan a:hover,
.ubl-lanjutan a:hover,
.info a:hover,
.populer-mobile a:hover {
    position: relative;
    z-index: 10;
    transform: translateY(-3px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.10);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* ================================
   GARIS ATAS & BAWAH
   ================================ */
.home a:hover::before,
.home a:hover::after,
.Pendidikan a:hover::before,
.Pendidikan a:hover::after,
.ubl-lanjutan a:hover::before,
.ubl-lanjutan a:hover::after,
.info a:hover::before,
.info a:hover::after,
.populer-mobile a:hover::before,
.populer-mobile a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #d10000;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
}

.home a:hover::before,
.Pendidikan a:hover::before,
.ubl-lanjutan a:hover::before,
.info a:hover::before,
.populer-mobile a:hover::before {
    top: -6px;
    animation: lineTopLeftFade 0.7s ease forwards;
}

.home a:hover::after,
.Pendidikan a:hover::after,
.ubl-lanjutan a:hover::after,
.info a:hover::after,
.populer-mobile a:hover::after {
    bottom: -6px;
    animation: lineBottomRightFade 0.7s ease forwards;
}

@keyframes lineTopLeftFade {
    0% {
        transform: translateX(30%);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 0;
    }
}

@keyframes lineBottomRightFade {
    0% {
        transform: translateX(-30%);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 0;
    }
}


.info a img {
    width: 150px;
    object-fit: contain;
}

.judul {
    color: #000;
    font-weight: bold;
}

#utama {
    margin-top: 0;
}

.info h4 {
    color: #DC0000;
    font-weight: bold;
    font-size: 12px;
}

.footer {
    background: #4f4f4f;
    background: radial-gradient(circle, rgba(79, 79, 79, 1) 0%, rgba(51, 51, 51, 1) 100%);
    color: #e5e7eb;
    font-size: 15px;
}

.footer-container {
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e7eb;
    max-width: calc(100% - (100% - 1200px));
    margin: auto;
    padding: 0 20px;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    padding: 30px 20px;
    box-sizing: border-box;
}

.footer-center,
.footer-right {
    text-align: center;
}

.footer-left {
    border-right: 1px solid #e5e7eb;
}

.footer-right {
    border-left: 1px solid #e5e7eb;
    display: grid;
}

.footer-right a {
    color: #fff;
    text-decoration: none;
}

/* footer bottom */
.footer-bottom {
    padding: 20px;
    text-align: center;
    max-width: 1200px;
    margin: auto;
}

.footer-bottom h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.footer-bottom p {
    color: #fff;
    margin: 5px 0;
    line-height: 1.6;
}

.footer-bottom small {
    color: #9ca3af;
}

.sosmed {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.sosmed a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
}

.sosmed a i {
    margin-right: 5px;
}

.has-sub {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    padding: 10px;
    z-index: 999;
}

.has-sub:hover .sub-menu {
    display: block;
}

.sub-menu li {
    list-style: none;
}

.img-harian {
    width: 100%;
}

.iklan-gambar {
    padding: 10px calc((100% - 1200px) / 2);
    margin-top: 10px;
}

.gambar {
    width: 100%;
}

.iklan-showcase {
    margin-top: 15px;
}

.iklan-image {
    width: 100%;
    border: 1px solid #000;
}

.epaper-image {
    width: 100%;
}

.detail-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kategori {
    font-size: 12px;
    color: #DC0000;
    margin-bottom: 0;
}

.tanggal {
    font-size: 12px;
    color: #000;
}

h2 {
    font-weight: 900;
    position: relative;
    padding-left: 16px;
    margin-bottom: 20px;
    font-size: 18px;
    background: radial-gradient(circle at 109.67% 60.52%,
            #aa7900 0%,
            #b06f00 8.33%,
            #b56300 16.67%,
            #b95503 25%,
            #bb450b 33.33%,
            #bc2f13 41.67%,
            #bb071a 50%,
            #b90021 58.33%,
            #b6002a 66.67%,
            #b20033 75%,
            #ad003e 83.33%,
            #a6004a 91.67%,
            #9d0058 100%);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(180deg, #ff0000, #ff4d4d);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.hero-right h2,
h2.card-text,
h2.detail-title,
.sidebar h2,
.isi-berita h2 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    padding-left: 0 !important;
}

.hero-right h2::before,
h2.card-text::before,
h2.detail-title::before,
.sidebar h2::before,
.isi-berita h2::before {
    content: none !important;
}

.line-accent {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right,
            #d10000 0%,
            #d10000 15%,
            #d1d5db 15%,
            #d1d5db 100%);
    margin-bottom: 20px;
}

.berita-mobile {
    display: none;
}

.meta {
    margin-bottom: 15px;
}

#kolom {
    min-width: 150px;
}

#vidio {
    min-width: 170px;
}

.load-more {
    margin-top: 15px;
    height: 30px;
    width: 250px;
    border: 1px solid #e5e7eb;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #6b7280;
    font-size: 14px;
}

/* garis kiri & kanan di luar border */
.load-more::before,
.load-more::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background-color: #e5e7eb;
}

/* garis kiri */
.load-more::before {
    right: 100%;
    margin-right: 10px;
}

/* garis kanan */
.load-more::after {
    left: 100%;
    margin-left: 10px;
}

.berita-dua {
    padding: 10px calc((100% - 1200px) / 2);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.gaya-hidup {
    flex: 1;
    padding: 10px;
    position: sticky;
    top: 0;
}

.olahraga {
    width: 30%;
    padding: 10px;
}

.card-terbaru {
    width: 100%;
    object-fit: cover;
    height: calc(100vh * 0.50);
}

.menu-sidebar {
    width: 100%;
}

.menu-sidebar>a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    gap: 8px;
}

.icon-left {
    font-size: 16px;
}

.menu-text {
    flex: 1;
}

.icon-toggle {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-toggle i {
    position: absolute;
    font-size: 14px;
    line-height: 1;
}

.icon-up {
    opacity: 0;
}

.menu-sidebar.active .icon-down {
    opacity: 0;
}

.menu-sidebar.active .icon-up {
    opacity: 1;
}

.dropdown-sidebar {
    max-height: 0;
    overflow: hidden;
    padding-left: 15px;
    transition: max-height 0.3s ease;
}

.menu-sidebar.active .dropdown-sidebar {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-sidebar.active .dropdown-sidebar::-webkit-scrollbar {
    display: none;
}

.dropdown-sidebar li {
    list-style: none;
}

.dropdown-sidebar li a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
}

.dropdown-sidebar a {
    font-size: 15px;
}

#link-mobile {
    display: none;
}

@media (max-width: 768px) {

    .navbar-main {
        padding: 14px 15px;
    }

    .navbar-padding {
        padding: 0;
    }

    .berita-dua {
        padding: 10px;
        display: block;
    }

    .gaya-hidup {
        width: 100%;
        padding: 0;
    }

    .olahraga {
        display: none;
    }

    .berita-mobile {
        display: block;
    }

    .card {
        padding: 0;
    }

    .logo ul {
        display: none;
    }

    .logo-img {
        width: 140px;
        height: 30px;
    }

    .button-user {
        gap: 8px;
    }

    .langganan {
        padding: 10px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .info {
        padding: 0;
    }

    .sosmed a {
        font-size: 0;
    }

    .sosmed a i {
        font-size: 23px;
    }

    .footer-left,
    .footer-right {
        display: none;
    }

    .footer-container {
        padding: 0;
        border: none;
    }

    .footer-center {
        border-top: 1px solid #1e293b;
    }

    .footer-bottom {
        border-top: 1px solid #1e293b;
    }

    .info a img,
    .populer-mobile a img {
        width: 130px;
        height: 130px;
        object-fit: cover;
    }

    .judul,
    .judul-terbaru {
        font-weight: normal;
        font-size: 12px;
    }

    .sidebar {
        max-width: 18rem;
    }

    .iklan-gambar {
        padding: 10px;
    }

    #btn-sidebar-search {
        flex: 1;
    }

    #input-sidebar {
        font-size: 12px;
    }

    .card-terbaru {
        height: calc(100vh * 0.30);
    }

    .navbar-sub {
        display: flex;
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 16px;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        z-index: 999;
        background: #fff;
    }

    .navbar-sub::-webkit-scrollbar {
        display: none;
    }

    .navbar-sub ul {
        display: flex;
        gap: 22px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .navbar-sub ul li a {
        font-size: 13px;
    }

    .navbar-sub ul li {
        position: relative;
    }

    .navbar-sub ul li .sub-menu {
        position: fixed;
        display: none;
        flex-direction: column;
        min-width: 180px;
        padding: 10px 0;
        background: #fff;
        border: 1px solid #e5e7eb;
        z-index: 100000;
    }

    .navbar-sub ul li.active>.sub-menu {
        display: flex;
    }

    .has-sub {
        display: none;
    }

    .dropdown-sidebar a {
        font-size: 13px;
    }

    #link-mobile {
        display: block;
    }

    .news-title,
    .deskripsi-unila-lanjutan,
    .deskripsi-unila-lanjutan,
    .judul-unila,
    .deskripsi,
    .judul-ekonomi,
    .teknologi a p {
        font-size: 13px;
    }
}

@media (max-width: 847px) {
    .logo ul {
        display: none;
    }

    .login-mobile,
    .menu-mobile {
        display: block;
        padding: 10px;
        text-decoration: none;
        color: #000;
        font-size: 20px;
        gap: 5px;
    }

    .login {
        display: none;
    }

}