:root {
    --bg-color: #128c8e; /* Teal background */
    --border-color: #f75d31; /* Bright orange border */
    --text-primary: #333333;
    --text-header: #f2ceb3; /* Peach color for the main headers */
    --box-text-bg: #f5bba3; /* Peach color for the card text background */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.header-container {
    text-align: center;
    margin-bottom: 20px;
}

.header-container h1 {
    color: var(--text-header);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.header-container h2 {
    color: var(--text-header);
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 5px;
}

.main-container {
    background-color: white;
    border: 6px solid var(--border-color);
    padding: 30px;
    max-width: 900px;
    width: 100%;
    /* Subtle shadow for a premium feel */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); 
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
}

.card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    cursor: pointer;
    background: transparent;
}

/* Hover and active animations */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.card:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.card-img-wrapper {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Maintain nice proportion for images */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 0; 
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ensures the illustration is fully visible */
}

.card-text {
    background-color: var(--box-text-bg);
    padding: 15px 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
}

.card-text small {
    font-size: 0.8rem;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .header-container h1 {
        font-size: 2.2rem;
    }
    .header-container h2 {
        font-size: 1.4rem;
    }
    .main-container {
        padding: 20px;
        border-width: 4px;
    }
}
