/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333; /* Dark text for lighter theme */
    background: #f5f5f5; /* Light gray background */
    overflow-x: hidden;
}

/* Background Video Placeholder */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
    filter: brightness(70%) contrast(1.1); /* Subtle brightness for readability */
    background: #e9ecef; /* Light gray as fallback if video is not loaded */
}

/* Content Container */
.container {
    position: relative;
    z-index: 1;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    border-radius: 15px;
    max-width: 1100px;
    margin: 80px auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* Adds subtle glassmorphism effect */
    overflow: hidden; /* Prevent content from spilling out */
}

/* Title */
.title {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #007bff, #00c9a7); /* Bright gradient for text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Gradient text effect */
    text-shadow: 0px 2px 10px rgba(0, 123, 255, 0.3);
}

/* Top Rows */
.top-row, .district-row {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Ensure items wrap within the container */
    justify-content: center; /* Center-align the cards */
    gap: 25px; /* Maintain spacing between items */
    margin-bottom: 30px;
}

/* Card Styles */
.card {
    background: linear-gradient(145deg, #ffffff, #e9ecef);
    color: #333;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: calc(25% - 30px); /* Adjust width dynamically for up to 4 cards per row */
    max-width: 280px; /* Prevent cards from growing too large */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.6em;
    margin-bottom: 12px;
    color: #007bff; /* Bright blue for names */
}

.card p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #666; /* Subtle gray for PPD text */
}

/* Button Styles */
.card button {
    background: linear-gradient(90deg, #007bff, #00c9a7);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3), 0 0 15px rgba(0, 201, 167, 0.3);
}

.card button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5), 0 0 20px rgba(0, 201, 167, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .card {
        width: calc(33.33% - 20px); /* 3 cards per row */
    }
}

@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px); /* 2 cards per row */
    }

    .container {
        padding: 30px;
    }

    .title {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%; /* 1 card per row */
    }

    .container {
        padding: 20px;
    }

    .title {
        font-size: 2em;
    }

    .card button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}
