/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar-brand span {
    color: #0d6efd;
}
.nav-link {
    font-weight: 500;
}
.nav-link:hover {
    color: #0d6efd !important;
}

/* Carousel Hero */
#heroCarousel .carousel-item {
    height: 85vh;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}
#heroCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}
#heroCarousel .carousel-caption {
    bottom: 20%;
    z-index: 2;
}

/* Sections */
section {
    padding: 80px 0;
}

/* Cards */
.card-hover {
    transition: transform .3s ease, box-shadow .3s ease;
}
.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}
.card-img-top {
    height: 250px;
    object-fit: cover;
}
.badge.bg-primary-soft {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}
.badge.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}
.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Footer */
footer a.text-white:hover {
    color: #0d6efd !important;
}

/* Styling untuk konten artikel dari CKEditor (Desktop Default) */
.article-content {
    font-size: 1.08rem;
    line-height: 1.7;
    text-align: justify;
}
.article-content p {
    margin-bottom: 1rem;
}
.article-content ul, .article-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}
.article-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #6c757d;
}

/* ===================================================
   Perbaikan Tampilan Mobile (Responsiveness)
   =================================================== */
@media (max-width: 767.98px) {

    /* Ukuran font untuk judul besar di mobile */
    .display-4 { font-size: 2.5rem; }
    .display-5 { font-size: 2rem; }

    /* Padding section di mobile agar tidak terlalu lebar */
    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Perbaikan agar teks di dalam kartu rata kiri di mobile */
    .card-hover .card-body { text-align: left; }
    
    /* Mengurangi tinggi slider di mobile */
    #heroCarousel .carousel-item {
        height: 60vh; 
        min-height: 350px;
    }

    /* Atur ulang posisi dan ukuran font caption slider di mobile */
    #heroCarousel .carousel-caption {
        display: block !important; 
        bottom: 15%;
        left: 8%;
        right: 8%;
        text-align: center;
    }
    #heroCarousel .carousel-caption h1 {
        font-size: 1.6rem;
        font-weight: 700;
    }
    #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    #heroCarousel .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    /* Perbaikan pada halaman pendaftaran di mobile */
    .list-group-item.d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .list-group-item span:last-child {
        text-align: left !important;
        margin-top: 4px;
    }

    /* Perbaikan spesifik untuk detail berita di mobile */
    .detail-berita-container .display-5 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    .detail-berita-container .text-muted {
        font-size: 0.8rem;
    }

    /* ============================================= */
    /* === PERBAIKAN SPASI DAN BACA ARTIKEL MOBILE == */
    /* ============================================= */
    .article-content {
        font-size: 1rem;
        line-height: 1.5;              /* Lebih nyaman untuk mobile */
        text-align: left !important;    /* Hindari justify di mobile */
    }
    .article-content p {
        margin-bottom: 0.5rem;         /* Paragraf lebih rapat */
        text-align: left !important;    /* Hindari justify di mobile */
        line-height: 1.5;               /* Konsisten dengan parent */
    }
    .article-content ul,
    .article-content ol {
        padding-left: 1.2rem;          /* List lebih rapat ke kiri */
        margin-bottom: 0.8rem;
    }
    .article-content blockquote {
        padding-left: 0.7rem;
        font-size: 0.97rem;
    }
}