#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 6px 12px;
}

main {
    margin-top: 69px;
    min-height: 70vh;
}

.gray-gradient {
    background: radial-gradient(circle at top left, #ebebeb 30%, #cccccc 100%);
}

.gray-bottom-gradient {
    background: radial-gradient(circle at bottom, #e0e0e0 30%, #f0f0f0 70%);
}

.light-gray-gradient {
    background: radial-gradient(circle at top right, #ebebeb 100%, #efefef 30%);
}

.red-gradient {
    background: radial-gradient(circle at top right, #1976D2 30%, #0D47A1 100%);
}

.red-gradient-reverse {
    background: radial-gradient(circle at top right, #0D47A1 20%, #1976D2 100%);
}

.baca-juga-container {
    border-left: 4px solid #1565C0;
    background-color: rgb(249 250 251);
    padding: 0 10px;
    padding-top: 5px;
    font-weight: 600;
    margin: 18px 0;
}

.baca-juga-container span {
    display: block;
}

.baca-juga-container a {
    padding-top: 2px;
    padding-bottom: 5px;
    display: block;
}

@media (max-width: 992px) {
    #header {
        padding: 4px 12px;
    }

    main {
        margin-top: 58px;
    }
}

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

.post-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
}

.post-category {
    color: #1565C0;
    font-weight: 700;
    text-transform: uppercase;
}

.post-timestamp {
    color: rgb(92, 91, 91);
    font-size: 13px;
    font-weight: 400;
}

.post-content-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.post-title {
    font-weight: 500;
    font-size: 22px;
    line-height: 28px;
}

.post-title-lg {
    font-size: 28px;
    line-height: 35px;
}

.post-description {
    font-weight: 400;
    color: rgb(92, 90, 90);
    font-size: 16px;
    line-height: 24px;
}

.post-similar-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.search-container {
    position: absolute;
    width: 100%;
    top: 0;
    /* Overflow ke atas */
    left: 0;
    /* transform: translateX(-50%); */
    background: white;
    /* padding: 10px; */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: none;
    /* Awalnya disembunyikan */
}

.post-similar-home {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-similar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-similar-thumbnail {
    width: 196px;
    min-width: 196px;
    aspect-ratio: 16/11;
}

.post-similar-title {
    font-weight: 400;
    color: rgb(92, 90, 90);
    font-size: 16px;
    line-height: 24px;
}

.category-post-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-top: 8px;
}

.category-post-content-top {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.category-post-content-bottom {
    margin-top: 10px;
    margin-bottom: 4px;
}

.video-section-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding-top: 8px;
}

@media (max-width: 576px) {
    .post-title-lg {
        font-size: 24px;
        line-height: 30px;
    }

    .post-title {
        font-weight: 500;
        font-size: 18px;
        line-height: 24px;
    }

    .post-description {
        font-size: 14px;
        line-height: 22px;
    }

    .post-content-top {
        margin-top: 10px;
        margin-bottom: 3px;
    }

    .post-category {
        font-size: 12px;
    }

    .category-post-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 18px;
    }

    .category-post-content-top {
        margin-top: 8px;
        margin-bottom: 2px;
    }

    .category-post-content-bottom {
        margin-top: -4px;
    }

    .sorotan .post-similar-container {
        margin-top: 16px;
    }

    .post-similar-home {
        flex-direction: column;
    }

    .post-similar-thumbnail {
        width: 100%;
        min-width: none;
        margin-bottom: -24px;
    }

    .post-similar-home .post-description {
        margin-top: -4px;
    }

    .video-section-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 22px;
    }
}

.truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.see-more a {
    text-decoration: none;
    display: flex;
    font-weight: 500;
    color: #1565C0;
}


/* TIME */
.border-section-bottom {
    border-bottom: 1px solid rgb(146, 144, 144);
}

.sidebar-section {
    margin-top: 24px;
    border-bottom: 1px solid rgb(146, 144, 144);
    padding-bottom: 22px;
}

.local-time-container {
    /* background-color: rgb(238, 235, 235); */
    padding: 10px 16px;
    padding-bottom: 17px;
    border-radius: 4px;
}

.local-time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid gray;
    padding-bottom: 6px;
}

.local-time-header span {
    font-size: 13px;
    color: rgb(101, 101, 101);
}

.local-time-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.local-time-date {
    font-size: 19px;
    font-weight: 400;
    color: rgb(101, 101, 101);
    line-height: 24px;
}

.local-time-label {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.local-time-label .clock-number {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(247, 244, 244);
    border-radius: 6px;
}

.clock-number span {
    font-size: 26px;
    padding: 2px 6px;
    font-stretch: 10%;
    font-weight: 500;
    color: rgb(101, 101, 101);
}

.news-heading h2 {
    font-size: 24px !important;
    font-weight: 500 !important;
    border-bottom: 0px !important;
}

.popular-tags {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* margin-top: -4px; */
}

.popular-tags a {
    font-size: 14px;
    font-weight: 400;
    color: rgb(40, 39, 39);
}

@media (max-width: 576px) {

    /* .popular-tags {
        gap
    } */
    .popular-tags a {
        font-size: 16px;
    }
}

/* FOOTER */
footer {
    /* background-color: #ebebeb; */
    margin-top: 24px;
    padding: 0 16px;
    padding-bottom: 50px;
    padding-top: 1px;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-top: 26px !important;
    margin-top: 26px !important;
}

/* Kolom generik */
.footer-col {
    flex: 0 0 auto;
}

/* Kolom 1: Logo */
.footer-col-logo img {
    width: 80px;
    height: auto;
    display: block;
}

/* Kolom 2: Sosmed — ikon horizontal */
.footer-col-social .footer-social-label {
    font-size: 13px;
    font-weight: 600;
    color: rgb(86, 86, 86);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-social-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

/* Kolom 3: Link navigasi */
.footer-col-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.footer-col-links ul li a {
    text-decoration: none;
    color: #1565C0;
    font-weight: 500;
    font-size: 15px;
}

/* Kolom 4: Alamat & kontak — pojok kanan */
.footer-col-contact {
    flex: 0 0 auto;
    margin-left: auto;
}

.footer-col-contact .address {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: rgb(86, 86, 86);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
}

.footer-contacts div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contacts a {
    color: rgb(86, 86, 86);
    text-decoration: none;
}

.copyright {
    font-size: 13px;
    color: rgb(114, 113, 113);
    font-weight: 500;
}

/* Ikon sosmed — bulat */
.social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: #1565C0;
}

.social li a i {
    font-size: 16px;
    color: white;
}

/* Tablet: logo+sosmed+links satu baris, kontak turun */
@media (max-width: 1024px) {
    .footer-content {
        flex-wrap: wrap;
        gap: 28px;
    }

    .footer-col-contact {
        flex: 0 0 100%;
    }
}

/* Mobile: semua stack vertikal */
@media (max-width: 576px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-col-contact {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* TAG SECTION */
.tag-section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* HOME SECTION */

.search-inner {
    margin: 24px 0;
    margin-bottom: 28px;
}

.headline {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 4px 16px;
}

.typing-container {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 600px;
    font-size: 16px !important;
}

.daerah-container {
    padding: 8px 0px;
}

.daerah-container ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.daerah-container ul a {
    text-decoration: none;
    color: black;
    font-weight: 400;
}

.daerah-content {
    padding: 0 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.daerah-more {
    gap: 10px;
}

.daerah-more span {
    color: #1565C0;
    font-weight: 400;
}

.daerah-more button {
    border: none;
    background: white;
    aspect-ratio: 1/1;
    border-radius: 4px;
}

.headline-container {
    padding: 0px 8px;
}

.headline-container .headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.headline-label {
    flex-basis: fit-content;
    padding: 8px 18px;
    border-radius: 2px;
}

.headline-label span {
    display: inline-block;
    font-weight: 400;
    word-spacing: 4px;
    font-size: 13px;
}

.headline-post {
    flex: 1;
    margin-left: 20px;
    overflow: hidden;
    position: relative;
    height: 26px;
}

.truncate-1 {
    width: 612px;
}

@media (max-width: 992px) {
    .home-content {
        margin-top: 32px;
    }

    .daerah-content {
        padding: 0;
    }

    .headline-container {
        padding: 4px 8px;
    }

    .headline-container .headline {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .headline-post {
        flex: none;
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-top: 4px;
    }

    .headline-label {
        padding: 4px 12px;
    }

    .headline-label span {
        font-size: 12px;
    }

    .truncate-1 {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .home-content {
        margin-top: 24px;
    }

    .daerah-container {
        display: none;
    }
}

.date-user-2 {
    display: flex;
    margin-top: 5px;
    margin-bottom: 5px;
}

.date-user-2 .user {
    margin-right: 20px;
    position: relative;
    padding-left: 12px;
    color: #898989;
    font-size: 12px;
}

.date-user-2 .date {
    position: relative;
    padding-left: 12px;
    color: #898989;
    font-size: 12px;
}

.date-user-2 .time {
    position: relative;
    padding-left: 4px;
    color: #898989;
    font-size: 12px;
}

.date-user-2 .user:before,
.date-user-2 .date:before {
    font-family: "Font Awesome 5 Free";
    position: absolute;
    top: 1px;
    left: 0;
    font-size: 10px;
}

.date-user-2 .user a,
.date-user-2 .date a,
.date-user-2 .time a {
    color: #898989;
}

.date-user-2 .user a:hover,
.date-user-2 .date a:hover,
.date-user-2 .time a:hover {
    color: #5374d3;
}

.date-user-2 .user:before {
    content: "\f007";
}

.date-user-2 .date:before {
    content: "\f073";
}


/* Loading Spinner */
.loading-spinner-container {
    display: flex;
    align-items: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1565C0;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    animation: spin 2s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
