body {
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f8ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 2em;
    margin-bottom: 10px;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    text-align: center;
}

.card p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9em;
    text-align: center;
}

/* Màu sắc và icon cho từng thẻ */
.card.weather { background-color: #e0f7fa; color: #03a9f4; }
.card.unit-converter { background-color: #fce4ec; color: #e91e63; }
.card.bmi { background-color: #ede7f6; color: #673ab7; }
.card.lunar-calendar { background-color: #fff3e0; color: #ff9800; }
.card.time-distance { background-color: #e8f5e9; color: #4caf50; }
.card.news-summary { background-color: #f3e5f5; color: #9c27b0; }
.card.text-summary { background-color: #e1f5fe; color: #00bcd4; }
.card.article-summary { background-color: #fff8e1; color: #ffc107; }
.card.crypto { background-color: #fbe9e7; color: #ff5722; }
.card.exchange-rate { background-color: #f8bbd0; color: #e91e63; }
.card.loan-calculator { background-color: #bbdefb; color: #2196f3; }
.card.credit-card-calculator { background-color: #dcedc8; color: #8bc34a; }

/* Màu sắc và icon cho 8 thẻ mới */
.card.bank-interest { background-color: #ffe0b2; color: #f57c00; }
.card.business-news { background-color: #f0fff0; color: #2e7d32; }
.card.daily-expense { background-color: #e0e0e0; color: #616161; }
.card.quote { background-color: #fffde7; color: #ffeb3b; }
.card.mindmap-summary { background-color: #e3f2fd; color: #1976d2; }
.card.aqi { background