body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #1e3a8a;
    color: white;
    padding: 2rem;
    text-align: center;
}

.intro {
    text-align: center;
    padding: 1rem 2rem;
    background: #f3f4f6;
}

.tool-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 2rem;
}

    .tool-section:nth-child(even) {
        background-color: #ffffff;
    }

    .tool-section:nth-child(odd) {
        background-color: #f9f9f9;
    }

.tool-image {
    flex: 1 1 45%;
    max-height: 500px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-image img {
    width: 100%;
    max-height: 120px;
    height: auto;
    aspect-ratio: 1;
    display: block;
    object-fit: contain;
}

@media (min-width: 1200px) {
    .tool-image img {
        max-height: 150px;
    }
}

@media (max-width: 768px) {
    .tool-image img {
        max-height: 100px;
    }
}

.tool-text {
    flex: 1 1 45%;
    max-width: 500px;
    padding: 1rem;
}

    .tool-text h2 a {
        color: #1e3a8a;
        text-decoration: none;
    }

        .tool-text h2 a:hover {
            text-decoration: underline;
        }

footer {
    text-align: center;
    padding: 1rem;
    background: #1e3a8a;
    color: white;
}

@media (min-width: 769px) {
    .tool-section:nth-of-type(even) {
        flex-direction: row-reverse;
    }
}

@media (max-width: 768px) {
    .tool-section {
        flex-direction: column;
        justify-content: center;
    }

    .tool-text {
        text-align: center;
    }
}
