/* --- Global Styles & Resets --- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9bdcc; /* Soft background color */
    color: #333;
}

/* --- Header --- */
.main-header {
    text-align: center;
    padding: 2rem 1rem;
}

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.main-header h1 {
    margin: 0;
    font-size: 2rem;
    color: #c7375d; /* A darker shade for contrast */
}

/* --- Tool Grid Layout --- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Tool Card Design --- */
.tool-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.tool-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 3. UPDATED ICON STYLES */
.tool-icon {
    /* Style icons using font-size and color */
    font-size: 50px;
    color: #c7375d; /* Use a brand color for the icons */
    margin-bottom: 1rem;
}

.tool-card h3 {
    margin: 0.5rem 0;
    font-size: 1.15rem;
}

.tool-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* --- Media Queries for fine-tuning on smaller screens --- */
@media (max-width: 600px) {
    .main-header h1 {
        font-size: 1.5rem;
    }

    .tool-grid {
        padding: 0 1rem 1rem 1rem;
    }
}