/* index.css - Styles specific to index.html */

/* Header overlay styles */
header {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#navbar-placeholder {
    margin: 0;
    padding: 0;
}

header .banner-image {
    width: 100%;
    height: 400px; /* Can be changed to any height */
    object-fit: cover;
    display: block;
    margin-top: -70px; /* Negative margin to offset body padding-top */
    padding: 0;
}

/* Create a container for the text that accounts for the navbar */
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* Allow clicks to pass through */
}

/* Center headings in the image */
header h1, 
header h2 {
    position: absolute;
    text-align: center;
    width: 100%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 0;
    z-index: 10;
    left: 0;
    right: 0;
}

/* Dynamically position h1 in the middle */
header h1 {
    top: calc(50% - 15px); /* Centered vertically in the visible portion */
    transform: translateY(-50%); /* Adjust for text height */
    font-size: 2.5rem;
}

/* Position h2 relative to h1 */
header h2 {
    top: calc(50% + 20px); /* Position below h1 */
    font-size: 1.8rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.5rem;
    }
}

/* Card container styles */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
}

/* Card link styles */
.card-link {
    text-decoration: none;
    color: inherit;
    flex: 1 1 100%; /* Full width on mobile (stack vertically) */
    min-width: 150px;
    display: flex;
}

/* Base card styles */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* For screens wider than 768px, display cards in 3 columns */
@media (min-width: 768px) {
    .card-link {
        flex: 1 1 30%; /* Take up roughly a third of container width */
    }
}

/* Add specific styles for the numbers section to ensure it stays in one row */
.numbers .card-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
}

.numbers .card {
    text-align: center;
    flex: 1 1 0; /* Equal width distribution */
}

.numbers .card p {
    font-size: 2rem;
    font-weight: bold;
    color: #0077cc;
}

/* Keep numbers in a row even on small screens */
@media (max-width: 767px) {
    .numbers .card-container {
        flex-wrap: nowrap;
    }
    
    .numbers .card {
        min-width: 0;
        flex: 1;
    }
}