/* ======================= Travel Tools Page Styles ======================= */

/* This section creates the overlapping effect for the content over the hero image */
.tools-main-section {
    background-color: #fff;
    margin-top: -80px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    position: relative;
    z-index: 2;
    padding: 4rem 1rem;
}

.tools-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    font-size: 1.1rem;
    color: var(--light-text);
}

.tool-category {
    margin-bottom: 4rem;
}

.tool-category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.tool-category-title i {
    margin-right: 1rem;
}

.tool-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: box-shadow var(--transition-fast);
}

.tool-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.tool-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tool-content p {
    color: var(--light-text);
    line-height: 1.7;
}

.tool-action .btn-primary {
    width: 100%;
    text-align: center;
}


/* Responsive adjustments for the tools page */
@media (min-width: 768px) {
    .tool-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .tool-content {
        flex-basis: 70%;
    }

    .tool-action {
        flex-basis: 25%;
    }

    .tool-action .btn-primary {
        width: auto;
        padding: 0.8rem 1.5rem;
    }
}
