/* css/style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

.navbar {
    background-color: #000000; /* Primary color */
}

.navbar-brand, .navbar-nav .nav-link {
    color: #fff !important;
}

.navbar-nav .nav-link:hover {
    color: #e2e6ea !important;
}

.footer {
    background-color: #343a40;
    color: #fff;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

.container {
    padding-top: 20px;
    padding-bottom: 20px;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 20px;
}

.card-header {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.form-label {
    font-weight: bold;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.table th {
    background-color: #e9ecef;
}

/* Custom styles for messages */
.alert {
    margin-top: 20px;
}

/* Specific styles for login page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

/* css/style.css */
/* ... (kode CSS yang sudah ada) ... */

.carousel-img {
    height: 400px; /* Atur tinggi slider */
    object-fit: cover; /* Pastikan gambar mengisi area tanpa terdistorsi */
    filter: brightness(70%); /* Sedikit gelap agar teks caption lebih jelas */
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.4); /* Latar belakang semi-transparan untuk caption */
    padding: 15px 20px;
    border-radius: 5px;
    bottom: 20px; /* Posisikan caption lebih tinggi sedikit */
}

.carousel-caption h5 {
    font-size: 2rem;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 1.1rem;
}

.news-thumbnail {
    height: 250px; /* Tinggi tetap untuk gambar thumbnail berita */
    object-fit: cover;
    width: 100%; /* Pastikan mengisi lebar card */
}

/* Untuk membatasi teks konten berita di index agar tidak terlalu panjang */
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Batasi hingga 3 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}






/* css/style.css */
/* ... (kode CSS yang sudah ada) ... */

.news-thumbnail-related {
    height: 150px; /* Tinggi thumbnail untuk artikel terkait */
    object-fit: cover;
    width: 100%;
}

.card-title a {
    /* Gaya untuk link judul di card */
    color: #007bff;
    font-weight: 500;
}

.card-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}