/* ------------------- Body and Layout ------------------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full viewport height */
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4; /* optional light background */
}

main {
    flex: 1;
}

/* ------------------- Header ------------------- */
header {
    background-color: #2596be;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.8em;
    font-weight: bold;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #d0e8f2;
}

/* ------------------- Intro Section (Shorter Version) ------------------- */
.intro {
    background: linear-gradient(90deg, #2596be 0%, #1f7ba1 100%);
    color: #fff;
    text-align: center;
    padding: 20px 20px; /* reduced from previous larger padding */
}

.intro h1 {
    font-size: 2em; /* slightly smaller */
    margin-bottom: 10px; /* reduce spacing */
    font-weight: bold;
}

.intro p {
    font-size: 1em; /* slightly smaller */
    max-width: 700px;
    margin: 0 auto;
}

/* ------------------- Tools Section ------------------- */
.tools {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.tools h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2596be;
}

.tool-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.tool-buttons a {
    text-decoration: none;
}

.tool-buttons button {
    background-color: #2596be;
    color: #fff;
    border: none;
    padding: 18px 12px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);

    /* Wrap long text */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;

    /* Animation */
    transform: translateY(0);
}

.tool-buttons button:hover {
    background-color: #1f7ba1;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ------------------- Footer ------------------- */
footer {
    background-color: #2596be;
    color: #fff;
    text-align: center;
    padding: 10px 10px;
    margin-top: auto; /* keeps footer at bottom */
    font-weight: bold;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

/* ------------------- Responsive tweaks ------------------- */
@media (max-width: 600px) {
    .tool-buttons {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .tool-buttons button {
        font-size: 0.9em;
        padding: 15px 10px;
    }

    .intro h1 {
        font-size: 2em;
    }

    .intro p {
        font-size: 1em;
    }
}
