/* =========================
   HEADER
========================= */
.bar-menu{
    background: #fff;
    border-radius: 20px;
    padding: 15px 0;
}

/* =========================
   LOGO
========================= */
.bar-menu img{
    height: 75px;
    transition: .3s;
}

.bar-menu img:hover{
    transform: scale(1.03);
}

/* =========================
   SEARCH
========================= */
.bar-menu .form-control{
    border-radius: 50px 0 0 50px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    padding: 12px 18px;
}

.bar-menu .form-control:focus{
    border-color: #dc3545;
    box-shadow: 0 0 0 .2rem rgba(220,53,69,.1);
}

.bar-menu .input-group .btn{
    border-radius: 0 50px 50px 0;
    padding: 0 18px;
}

/* =========================
   LOGIN
========================= */
.bar-menu .btn-outline-danger{
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 18px;
    transition: .3s;
}

.bar-menu .btn-outline-danger:hover{
    transform: translateY(-2px);
}

/* =========================
   KATEGORI
========================= */
.kat{
    margin-top: 20px;
    padding: 12px;
    border-radius: 18px;
    overflow-x: auto;
    white-space: nowrap;
}

.kat::-webkit-scrollbar{
    height: 5px;
}

.kat::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,.3);
    border-radius: 20px;
}

.kat a{
    color: rgba(255,255,255,.85);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 50px;
    transition: .3s;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kat a:hover{
    background: rgba(255,255,255,.15);
    color: white;
}

.kat a.active{
    background: white;
    color: #dc3545;
    font-weight: 600;
}

/* =========================
   BREAKING NEWS
========================= */
.breaking-wrapper{
    background: #fff;
    border: 1px solid #f1f5f9;
}

.breaking-label{
    background: linear-gradient(135deg,#dc3545,#ef4444);
    color: white;
    min-width: 180px;
    height: 55px;
    font-weight: 700;
}

.breaking-content{
    overflow: hidden;
    height: 55px;
    display: flex;
    align-items: center;
}

.breaking-track{
    white-space: nowrap;
    animation: marquee 40s linear infinite;
}

.breaking-track a{
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

.breaking-track a:hover{
    color: #dc3545;
}

.separator{
    margin: 0 20px;
    color: #dc3545;
}

@keyframes marquee{
    from{
        transform: translateX(100%);
    }
    to{
        transform: translateX(-100%);
    }
}

/* =========================
   MOBILE
========================= */
@media(max-width:768px){

    .bar-menu img{
        height: 60px;
    }

    .kat{
        gap: 8px;
        padding: 10px;
    }

    .kat a{
        font-size: 13px;
        padding: 8px 14px;
    }

    .breaking-label{
        min-width: 120px;
        font-size: 13px;
    }

}



/* BERITA UTAMA */

.utama {
    height: 420px;
}

.utama-img {
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.carousel-item:hover .utama-img {
    transform: scale(1.05);
}

.utama-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.25),
        rgba(0,0,0,0)
    );
}

.utama-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
}

.utama-judul {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.utama-judul:hover {
    text-decoration: underline;
}

.tag {
    font-size: 12px;
    color: #ffc107;
    text-decoration: none;
    margin-right: 8px;
}

.tag:hover {
    text-decoration: underline;
}

.utama-tanggal {
    font-size: 12px;
    color: rgba(255,255,255,.8);
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.utama-thumb {
    height: 160px;
    text-decoration: none;
    color: #fff;
}

.utama-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.utama-thumb:hover .utama-thumb-img {
    transform: scale(1.08);
}

/* Overlay gradasi */
.utama-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.35),
        rgba(0,0,0,0)
    );
}

/* Caption */
.utama-thumb-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
}

.utama-thumb-judul {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 4px 0 0;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* BERITA TERKINI */

.section-title {
    gap: 12px;
}

.section-label {
    background: #dc3545;
    color: #fff;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.section-line {
    height: 2px;
    background: linear-gradient(
        to right,
        #dc3545,
        rgba(220,53,69,0.15)
    );
}

.berita-terkini {
    background: #fff;
}

.terkini-img {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.terkini-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .4s ease;
}

.terkini-img:hover img {
    transform: scale(1.05);
}

.terkini-kategori {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
}

.terkini-judul {
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.terkini-judul:hover {
    text-decoration: underline;
}

.terkini-ringkas {
    font-size: 13px;
    color: #555;
    margin: 6px 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.terkini-meta {
    font-size: 12px;
    color: #888;
}



/* UNTUK SLIDE BERITA */

.bg-populer-dark {
    background: linear-gradient(135deg, #0f0f0f, #1c1c1c);
}

/* SECTION TITLE */
.section-title-populer {
    position: relative;
}

.section-title-populer span {
    background: rgba(220, 53, 69, 0.15); /* merah transparan */
    color: #f1f1f1;
    padding: 8px 28px;
    font-weight: 600;
    border-radius: 30px;
    display: inline-block;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(220, 53, 69, 0.4);
    backdrop-filter: blur(3px);
}

.section-title-populer::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.15);
    z-index: 1;
}


/* CARD */
.populer-card {
    background: #1f1f1f;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all .3s ease;
}

.populer-card:hover {
    transform: translateY(-6px);
}

.populer-card img {
    height: 160px;
    object-fit: cover;
}

/* TITLE LINK */
.populer-link {
    color: #fff;
    text-decoration: none;
}

.populer-link:hover {
    color: #dc3545;
}

/* CAROUSEL BUTTON */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #dc3545;
    border-radius: 50%;
    background-size: 55%;
    padding: 15px;
}



/* UNTUK FOOTER */

.footer {
    background: #0f0f0f;
    color: #ccc;
}

.footer-logo {
    height: 80px;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #aaa;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .3s;
}

.footer-list a:hover {
    color: #dc3545;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1f1f1f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all .3s ease;
}

.footer-social a:hover {
    background: #dc3545;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #090909;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
}



/* UNTUK IKLAN */

.sticky-iklan {
    position: sticky;
    top: 200px; /* jarak dari atas (sesuaikan dengan tinggi navbar) */
}

.iklan-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Placeholder */
.ads-placeholder {
    height: 250px;
    border: 2px dashed #ced4da;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
}

.ads-placeholder i {
    font-size: 2rem;
    margin-bottom: 6px;
    color: #adb5bd;
}

.ads-placeholder span {
    font-weight: 600;
    font-size: 0.95rem;
}

.ads-placeholder small {
    font-size: 0.75rem;
}




/* TRENDING BOX */

.trending-box {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

/* LIST */
.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trending-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.trending-list li:last-child {
    border-bottom: none;
}

/* NOMOR */
.trending-no {
    font-weight: 700;
    color: #dc3545;
    font-size: 1.1rem;
    min-width: 22px;
}

/* LINK */
.trending-list a {
    color: #212529;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.3;
}

.trending-list a:hover {
    color: #dc3545;
}





/* TRENDING TOPIK BOX */

.trending-topic-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

/* LIST GRID */
.trending-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ITEM */
.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #212529;
    text-decoration: none;
    width: calc(50% - 4px);
}

.topic-item span {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.75rem;
}

/* HOVER */
.topic-item:hover {
    background: #dc3545;
    color: #fff;
}

.topic-item:hover span {
    color: #fff;
}

/* MOBILE */
@media (max-width: 575px) {
    .topic-item {
        width: 100%;
    }
}






/* BERITA BANYAK DICARI  */

.popular-search-box {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

/* BERITA UTAMA */
.popular-main img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.popular-main-title {
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #212529;
}

/* LIST */
.popular-list-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px dashed #eee;
}

.popular-list-item span {
    color: #dc3545;
    font-weight: 700;
    min-width: 18px;
}

.popular-list-item:hover {
    color: #dc3545;
}

/* MOBILE */
@media (max-width: 575px) {
    .popular-main img {
        height: 140px;
    }
}

/* BADGE PALING DICARI */
.badge-paling-dicari {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    z-index: 2;
}





/* CSS di HP */

@media (max-width: 576px) {

	/* BREAKING NEWS */

    .breaking-label span {
        display: none;
    }


    /* BERITA UTAMA */

    .utama {
        height: 260px;
    }

    .utama-judul {
        font-size: 1.05rem;
    }

    .utama-thumb {
        height: 120px;
    }

    .utama-thumb-judul {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
}