body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e6f7ff; /* Light Blue Background */
    color: #333;
}

/* --- Header & Navigation --- */
header {
    background-color: #004d99; /* Deep Blue */
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 32px;
}

/* --- Main Content Container --- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

h2 {
    color: #004d99;
    margin-bottom: 30px;
}

/* --- Calculator Cards Layout --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-top: 5px solid #007bff; /* Accent color */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: #007bff;
    font-size: 22px;
    margin-top: 0;
}

.card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.card a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.card a:hover {
    background-color: #0056b3;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 15px;
    background-color: #333;
    color: white;
    margin-top: 50px;
}
/* --- New Sections for Index Page --- */
.content-section {
    margin-top: 40px;
    text-align: left;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
    text-align: center;
    color: #cc0000; /* Red color for attention */
    margin-bottom: 25px;
    border-bottom: 2px solid #ffcccc;
    padding-bottom: 10px;
}

.media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

.media-item {
    flex-basis: calc(50% - 20px); /* Two items per row on large screens */
    max-width: 400px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.media-item h4 {
    color: #004d99;
    margin-top: 0;
}

.media-item ul {
    list-style: none;
    padding: 0;
}

.media-item ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.media-item ul li::before {
    content: "📚"; /* Emojis for better look */
    position: absolute;
    left: 0;
}

.media-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.media-item a:hover {
    text-decoration: underline;
}

/* For smaller screens, make items stack vertically */
@media (max-width: 768px) {
    .media-item {
        flex-basis: 100%;
        max-width: 100%;
    }
}