/* Basic Reset and Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: lexend;
    background-color: #1a1a1a;
    /* Dark background */
    color: #eeeeee;
    /* Light text color */
    line-height: 1.6;
    padding: 20px;
}

/* Header Styling */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1,
h2 {
    color: #aaaaaa;
    /* White for the main title */
    font-family: Patua One;
}



/* Card Container (Grid Layout) */
.card-container {
    display: grid;
    gap: 20px;
    /* Space between cards */
    /* Default: single column for mobile */
    grid-template-columns: 1fr;
    max-width: 1200px;
    /* Limit container width */
    margin: 0 auto;
    /* Center the container */
}

/* Responsive Grid for larger screens */
@media (min-width: 768px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on medium screens */
    }
}

@media (min-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns on large screens */
    }
}


/* Individual Card Styling */
.card {
    background-color: #2a2a2a;
    /* Slightly lighter dark background for cards */
    border-radius: 30px;
    /* Border radius */
    overflow: hidden;
    /* Ensures image respects border-radius */
    display: flex;
    flex-direction: column;
    /* Stack image and content vertically */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    /* Subtle shadow */
    border: 5px solid;
    /* Base border style - color will be set by nth-child */
}

/* Image Styling */
.card img {
    display: block;
    /* Remove extra space below image */
    width: 100%;
    /* Image takes up the full width of the card */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: cover;
    /* Cover the area if height was fixed */
}

/* Card Content Styling */
.card-content {
    padding: 20px;
    /* Padding inside the card content area */
    flex-grow: 1;
    /* Allows content to take up available space */
    display: flex;
    flex-direction: column;
    /* Arrange title, text, button vertically */
}

.card-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #aaaaaa;
    /* White for card titles */
}

.card-content p {
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #cccccc;
    /* Lighter grey for description text */
    flex-grow: 1;
    /* Allow paragraph to push button down if needed */
}

/* Button Styling */
.card-button {
    display: inline-block;
    /* Allows padding and margins */
    background-color: #648dbb;
    /* Default button color */
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    /* Remove underline */
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
    /* Push button to the bottom of card-content */
    align-self: flex-start;
    /* Align button to the left */
}

.card-button:hover {
    background-color: #0056b3;
    /* Darker on hover */
}

/* Individual Card Border Colors (Bold Primary Colors) */
/* Using :nth-child to select cards based on their order */
.card-container .card:nth-child(1) {
    border-color: #002cbb;
    /* BlueViolet (Purple-ish) #8A2BE2 */
}

.card-container .card:nth-child(2) {
    border-color: #a50000;
    /* Blue (Dark Blue) #72a2c9*/
}

.card-container .card:nth-child(3) {
    border-color: #a77a00;
    /* OrangeRed (Bold Red) */

}

.card-container .card:nth-child(4) {
    border-color: #00BFFF;
    /* DeepSkyBlue (Bold Blue) */
}

.card-container .card:nth-child(5) {
    border-color: #32CD32;
    /* LimeGreen (Bold Green) */
}

.card-container .card:nth-child(6) {
    border-color: #FFD700;
    /* Gold (Bold Yellow) */
}