/* Tema Bintang Dua Perkasa: Hitam, Putih, Merah */

/* Flexbox untuk memastikan footer di bawah */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

main {
    flex: 1 0 auto; /* Konten utama mengambil ruang yang tersedia */
}

footer {
    flex-shrink: 0; /* Footer tidak menyusut */
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 0.5rem 0;
    border-top: 2px solid #cc0000;
}

footer a {
    color: #cc0000;
    text-decoration: none;
}

footer a:hover {
    color: #990000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    box-shadow: none;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-brand:hover {
    color: #cc0000 !important;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #cc0000 !important;
}

.navbar-toggler {
    border-color: #ffffff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}

#hero {
    margin-top: 0;
}

#hero .carousel-item {
    height: 90vh;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 25px;
    border-radius: 8px;
}

.carousel-caption h1 {
    font-size: 2.5rem;
}

.carousel-caption .lead {
    font-size: 1.25rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p.lead {
    font-size: 1.5rem;
    color: #cccccc;
}

.hero .btn-primary {
    background-color: #cc0000;
    border-color: #cc0000;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero .btn-primary:hover {
    background-color: #990000;
    border-color: #990000;
}

/* Cards */
.card {
    border: 1px solid #1a1a1a;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 300px;
    object-fit: cover;
}

#articles .card-img-top {
    height: 100%;
    object-fit: cover;
}

.card-title {
    color: #1a1a1a;
    font-weight: bold;
}

.card-text {
    color: #333333;
}

.card .btn-primary {
    background-color: #cc0000;
    border-color: #cc0000;
}

.card .btn-primary:hover {
    background-color: #990000;
    border-color: #990000;
}

/* Buttons */
.btn-primary {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #ffffff;
    font-weight: 500;
    padding: 10px 20px;
}

.btn-primary:hover {
    background-color: #990000;
    border-color: #990000;
}

.btn-outline-primary {
    color: #cc0000;
    border-color: #cc0000;
}

.btn-outline-primary:hover {
    background-color: #cc0000;
    color: #ffffff;
}

/* Sections */
section {
    padding: 0px 0;
}

.bg-light {
    background-color: #f5f5f5 !important;
}

.bg-dark {
    background-color: #1a1a1a !important;
    color: #ffffff;
}

/* About Section */
#about .image-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#about img {
    height: 600px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

#about .about-info-text {
    padding: 0 15px;
}

#about .about-stats {
    gap: 1.5rem;
}

#about .stats-item {
    flex: 1;
    min-width: 100px;
}

#about .stats-item h3 {
    font-size: 2rem;
    color: #cc0000;
}

#about .stats-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* Contact Section */
#contact {
    background-color: rgb(255, 255, 255);
}

#contact .contact-text {
    padding: 0 15px;
}

#contact .contact-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact img {
    max-height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Admin Dashboard */
.table {
    background-color: #ffffff;
    border: 1px solid #1a1a1a;
}

.table th {
    background-color: #1a1a1a;
    color: #ffffff;
}

.table td {
    color: #1a1a1a;
}

.btn-warning {
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #1a1a1a;
}

.btn-warning:hover {
    background-color: #e6b800;
    border-color: #e6b800;
}

.btn-danger {
    background-color: #cc0000;
    border-color: #cc0000;
}

.btn-danger:hover {
    background-color: #990000;
    border-color: #990000;
}

/* Forms */
.form-control {
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
}

.form-control:focus {
    border-color: #cc0000;
    box-shadow: 0 0 5px rgba(204, 0, 0, 0.5);
}

.form-label {
    color: #1a1a1a;
    font-weight: 500;
}

.carousel-item img {
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    #hero .carousel-item {
        height: 80vh;
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem;
    }

    #hero .carousel-item {
        height: 70vh;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption .lead {
        font-size: 1.1rem;
    }

    #about img {
        max-height: 300px;
    }

    #about .image-container {
        margin-bottom: 1.5rem;
    }

    #about .about-stats {
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    #contact .contact-image {
        margin-bottom: 1.5rem;
    }

    #contact img {
        max-height: 250px;
    }

    #contact .section-title {
        font-size: 1.75rem;
    }

    #contact .lead {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p.lead {
        font-size: 1.2rem;
    }

    .card-img-top {
        height: 150px;
    }

    #hero .carousel-item {
        height: 60vh;
    }

    .carousel-caption {
        padding: 10px 15px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption .lead {
        font-size: 0.9rem;
    }

    .carousel-caption .btn-lg {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    #services .card-img-top {
        max-height: 200px;
        object-fit: cover;
    }

    #testimonials .testimonial-card {
        max-width: 90%;
    }

    #contact form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    #hero .carousel-item {
        height: 50vh;
    }

    #contact img {
        max-height: 200px;
    }

    #contact .section-title {
        font-size: 1.5rem;
    }

    #contact .lead {
        font-size: 0.9rem;
    }

    #contact .btn-primary {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .carousel-caption h1 {
        font-size: 1.2rem;
    }

    .carousel-caption .lead {
        font-size: 0.8rem;
    }

    .carousel-caption .btn-lg {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    #about .stats-item h3 {
        font-size: 1.5rem;
    }

    #about .stats-item p {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    footer {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
}