/* htdocs/data/assets/css/index_styles.css */

/* Hero Carousel Styles */
#mainCarousel .carousel-item img {
    height: 400px; /* Or whatever height you prefer */
    object-fit: cover; /* Ensures image covers the area without stretching */
    width: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text readability */
    bottom: 30%; /* Position it higher up on the slide */
    text-align: left; /* Align text to the left */
    padding: 1rem; /* Add padding inside the caption */
    border-radius: 4px; /* Slightly round the corners */
    /* Ensure text color is legible over the background */
    color: white;
}

/* ========= ADDED/UPDATED: Smaller, Lighter Text for Carousel Captions ========= */
.carousel-caption h5 {
    font-size: 1.5rem; /* Smaller font size for title */
    font-weight: 400;   /* Normal weight (less bulky) */
    margin-bottom: 0.5rem; /* Less space below title */
}

.carousel-caption p {
    font-size: 1rem;    /* Smaller font size for description */
    font-weight: 300;   /* Lighter weight (less bulky) */
    margin-bottom: 1rem; /* Less space below description */
}

/* Intro Section Styles */
.intro-section {
    padding: 3rem 0; /* Top and bottom padding */
    background: linear-gradient(to bottom, #006b3f, #005a32); /* Parliament Green gradient */
    color: white; /* White text color */
    text-align: center; /* Center align text */
}

.intro-section h1 {
    font-size: 2.5rem; /* Large font size for the main heading */
    margin-bottom: 1rem; /* Space below the heading */
}

.intro-section p {
    font-size: 1.2rem; /* Slightly larger than default paragraph */
    max-width: 700px; /* Limit width for readability */
    margin: 0 auto 1.5rem; /* Center the paragraph and add space below */
}

.btn-explore-data {
    background-color: #fbbf24; /* Amber color */
    color: #1f2937; /* Darker text color */
    font-weight: 600; /* Bold font */
    padding: 0.75rem 2rem; /* Padding for the button */
    border-radius: 30px; /* Pill-shaped button */
    transition: all 0.3s; /* Smooth transition for hover effects */
    text-decoration: none; /* Remove underline from link */
}

.btn-explore-data:hover {
    background-color: #f59e0b; /* Slightly darker amber on hover */
    color: #111827; /* Slightly darker text on hover */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Quick Links Section Styles */
.quick-links-section {
    padding: 2.5rem 0; /* Top and bottom padding */
    background-color: #f0f7f4; /* Light greenish background */
}

.quick-links-section h2 {
    text-align: center; /* Center the section heading */
    color: #006b3f; /* Parliament Green */
    margin-bottom: 2rem; /* Space below the heading */
}

.data-hub-card {
    background-color: white; /* White card background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Subtle shadow */
    padding: 1.5rem; /* Inner padding */
    text-align: center; /* Center align content */
    height: 100%; /* Make cards equal height */
    transition: transform 0.2s, box-shadow 0.2s; /* Smooth transition for hover effects */
    border: 1px solid #e2e8f0; /* Light border */
}

.data-hub-card:hover {
    transform: translateY(-5px); /* Lift card slightly on hover */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* Increase shadow on hover */
}

.hub-icon {
    font-size: 2.5rem; /* Large icon size */
    color: #006b3f; /* Parliament Green icon color */
    margin-bottom: 1rem; /* Space below the icon */
}

.hub-name {
    font-weight: 600; /* Bold name */
    color: #1f2937; /* Darker text color */
    margin-bottom: 0.5rem; /* Space below the name */
}

.hub-desc {
    color: #6b7280; /* Muted text color for description */
    font-size: 0.9rem; /* Smaller font size */
}

/* Recent Updates Section Styles */
.recent-data-news-section {
    padding: 2.5rem 0; /* Top and bottom padding */
    background-color: white; /* White background */
}

.recent-data-news-section h2 {
    text-align: center; /* Center the section heading */
    color: #006b3f; /* Parliament Green */
    margin-bottom: 2rem; /* Space below the heading */
}

.update-column {
    margin-bottom: 1.5rem; /* Space between columns on small screens */
}

.update-column h3 {
    font-size: 1.25rem; /* Font size for column headings */
    color: #006b3f; /* Parliament Green */
    border-bottom: 2px solid #e2e8f0; /* Light bottom border */
    padding-bottom: 0.5rem; /* Space below the border */
    margin-bottom: 1rem; /* Space below the heading */
}

.update-item {
    padding: 0.75rem 0; /* Vertical padding for each item */
    border-bottom: 1px solid #e2e8f0; /* Light separator line */
}

.update-item:last-child {
    border-bottom: none; /* Remove border from the last item */
}

.update-item .list-title a {
    color: #006b3f; /* Link color matching Parliament Green */
    text-decoration: none; /* Remove default underline */
    font-weight: 500; /* Medium font weight */
}

.update-item .list-title a:hover {
    text-decoration: underline; /* Underline on hover */
}

.update-item .list-meta {
    color: #9ca3af; /* Muted color for metadata */
    font-size: 0.85rem; /* Smaller font size */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #mainCarousel .carousel-item img {
        height: 250px; /* Smaller height on mobile */
    }
    .carousel-caption {
        bottom: 15%; /* Adjust caption position on mobile */
        padding: 0.5rem; /* Smaller padding on mobile */
    }
    .carousel-caption h5 {
        font-size: 1.2rem; /* Smaller heading in caption on mobile */
    }
    .intro-section h1 {
        font-size: 2rem; /* Smaller heading on mobile */
    }
    .intro-section p {
        font-size: 1rem; /* Smaller text on mobile */
    }
}