/* Custom Properties */
:root {
    --background-primary: #b0f5cd;
    --background-secondary: #7ca9e4;
    --card-gradient-start: #99d8f1;
    --card-gradient-end: #ccdff1;
    --accent-color: #5957d6;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --button-hover: #4a48c7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f0f2f5;
    padding: 20px;
    min-height: 100vh;
}

.back-button {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: #2196F3;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #1976D2;
}

h1 {
    text-align: center;
    color: #333;
    margin: 20px 0 40px;
    font-size: 2.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 10px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #1565C0;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card a {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.card a:hover {
    background-color: #388E3C;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin: 15px 0 30px;
    }

    .container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
        margin: 10px 0 20px;
    }

    .container {
        grid-template-columns: 1fr;
    }

    .card h3 {
        font-size: 1.1rem;
    }
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* Stagger the animation for each card */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

.card:nth-child(5) {
    animation-delay: 0.5s;
}

.card:nth-child(6) {
    animation-delay: 0.6s;
}

.card:nth-child(7) {
    animation-delay: 0.7s;
}

.card:nth-child(8) {
    animation-delay: 0.8s;
}

.card:nth-child(9) {
    animation-delay: 0.9s;
}