/*
 * style-index-utama.css
 *
 * This stylesheet contains custom styles for the Komsos Project website,
 * enhancing the appearance of the main index page and ensuring responsiveness.
 */

/* --- General Body and Layout --- */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 56px; /* Adjust for fixed Bootstrap navbar height */
    background-color: #e9ecef; /* Light grey background for the whole page */
    color: #343a40; /* Dark grey for default text */
    line-height: 1.6;
}

/* --- Hero Section Styling --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1500x500?text=Hero+Image+Komsos') no-repeat center center/cover;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px; /* Slightly rounded corners for a modern feel */
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p.lead {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn-primary {
    background-color: #007bff; /* Bootstrap primary color */
    border-color: #007bff;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px; /* Pill-shaped button */
    transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px); /* Slight lift on hover */
}

/* --- Content Sections (Berita Harian, Rilis Pimpinan, etc.) --- */
.content-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* Soft shadow */
    margin-bottom: 40px; /* Space between content sections */
    border: 1px solid #dee2e6; /* Light border */
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

.content-section hr {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* --- Card Specific Styles (for news articles) --- */
.card {
    border: none; /* Remove default Bootstrap card border */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px); /* Lift card on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important; /* Enhanced shadow on hover */
}

.card-img-top {
    width: 100%;
    height: 250px; /* Consistent height for images */
    object-fit: cover; /* Ensure images fill the area without distortion */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content nicely */
    flex-grow: 1;
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 10px;
}

.card-text.text-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d; /* Muted grey for description */
    margin-bottom: 15px;
    flex-grow: 1; /* Allow description to take available space */
}

.card-footer {
    background-color: #f8f9fa; /* Light grey footer */
    border-top: 1px solid #e9ecef;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #6c757d;
}

.card-footer small {
    display: block; /* Ensure date takes full width */
    text-align: right;
}

/* --- Badges for Categories --- */
.badge {
    font-size: 0.75em;
    padding: 0.4em 0.6em;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Custom badge colors if needed, otherwise Bootstrap defaults are fine */
.badge.bg-secondary { background-color: #6c757d !important; }
.badge.bg-info { background-color: #17a2b8 !important; }
.badge.bg-primary { background-color: #007bff !important; }
.badge.bg-success { background-color: #28a745 !important; }


/* --- Call to Action Buttons (e.g., "Lihat Semua Berita Harian") --- */
.content-section .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.content-section .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

/* --- Sidebar Styling --- */
.sidebar-section {
    margin-top: 0; /* Align with main content */
}

.sidebar-section .card {
    border: 1px solid #dee2e6; /* Give sidebar cards a subtle border */
}

.sidebar-section .card-header {
    font-size: 1.15rem;
    font-weight: bold;
    color: #fff; /* Ensure text is white as background is dark */
    padding: 15px 20px;
    border-top-left-radius: 7px; /* Slightly less than card for header */
    border-top-right-radius: 7px;
}

.sidebar-section .list-group-item {
    border-left: none;
    border-right: none;
    transition: background-color 0.2s ease;
}

.sidebar-section .list-group-item:first-child {
    border-top: none;
}

.sidebar-section .list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.sidebar-section .list-group-item:hover {
    background-color: #f0f0f0; /* Light hover effect */
}

.sidebar-section .list-group-item a {
    color: #343a40; /* Dark text for links */
    display: block; /* Make the whole list item clickable */
    padding: 8px 0; /* Padding inside the link */
}


@media (min-width: 768px) and (max-width: 991.98px) { /* For medium devices (tablets) */
    footer .col-md-5.col-lg-4 {
        text-align: center !important; /* Center social icons if needed on tablets */
    }
}



/* Add to your existing css/style-index.css or a new file if preferred */

/* --- Common Banner Container Styling --- */
.banner-container {
    text-align: center;
    min-height: 100px; /* Minimum height while loading or if no banners */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.banner-container img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.banner-container img:hover {
    transform: scale(1.03); /* Slightly enlarge on hover */
}

/* --- Specific Banner Container Adjustments --- */
#bannerAtasContainer {
    gap: 15px; /* Specific gap for top banner */
}

#bannerAtasContainer img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
#bannerAtasContainer img:hover {
    transform: scale(1.02); /* Slightly less enlarge on hover for top */
}

#bannerTengahContainer,
#bannerBawahContainer {
    gap: 15px; /* Slightly larger gap for middle/bottom banners */
    min-height: 100px; /* Redundant with .banner-container but keeping for clarity */
}

#bannerTengahContainer img,
#bannerBawahContainer img {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* A bit more prominent shadow */
}

#bannerTengahContainer img:hover,
#bannerBawahContainer img:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}

/* --- Responsive Adjustments for Banners --- */
/* Apply to all banner containers if they stack identically on smaller screens */
@media (max-width: 768px) { /* Adjust breakpoint as needed, 100% is not a valid media query unit */
    .banner-container {
        flex-direction: column; /* Stack banners vertically */
        gap: 10px; /* Adjust gap for mobile */
    }
}

@media (max-width: 576px) {
    /* If you need even finer control for very small screens for banners */
    .banner-section.mt-5 { /* This targets the outer div if banners are wrapped in it */
        padding: 15px 0;
    }
    .banner-container {
        gap: 10px; /* Further reduce gap for very small screens */
    }
}








