
/* =================================================
   MY UTILITY HUB - CALCULATOR CATEGORY UI
   ================================================= */

.calculator-hub {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 18px 50px;
}

.calculator-hub-hero {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-hub-hero .hub-icon {
    font-size: 54px;
    margin-bottom: 8px;
}

.calculator-hub-hero h2 {
    margin: 0 0 10px;
    font-size: 32px;
}

.calculator-hub-hero p {
    max-width: 650px;
    margin: auto;
    line-height: 1.6;
    opacity: .75;
}

/* Main 4 category cards */

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    display: block;
    min-height: 190px;
    padding: 26px;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    overflow: hidden;
    transition: transform .2s ease,
                box-shadow .2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0,0,0,.14);
}

.category-number {
    position: absolute;
    top: 8px;
    right: 18px;
    font-size: 58px;
    font-weight: 900;
    opacity: .07;
}

.category-icon {
    font-size: 46px;
    margin-bottom: 12px;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 25px;
}

.category-card p {
    margin: 0;
    line-height: 1.55;
    opacity: .72;
}

.category-action {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
}

/* Category page */

.category-page {
    max-width: 1100px;
    margin: auto;
    padding: 28px 18px 50px;
}

.category-page-header {
    text-align: center;
    margin-bottom: 28px;
}

.category-page-header .big-icon {
    font-size: 54px;
}

.category-page-header h2 {
    margin: 8px 0;
    font-size: 32px;
}

.category-page-header p {
    max-width: 680px;
    margin: auto;
    line-height: 1.6;
    opacity: .75;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tool-card {
    display: block;
    padding: 20px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.07);
    transition: transform .2s ease,
                box-shadow .2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.tool-card-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.tool-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.tool-card p {
    margin: 0;
    line-height: 1.45;
    opacity: .7;
}

.category-back {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 700;
    text-decoration: none;
}

/* Mobile */

@media (max-width: 700px) {

    .calculator-hub {
        padding: 22px 14px 40px;
    }

    .calculator-hub-hero h2,
    .category-page-header h2 {
        font-size: 27px;
    }

    .category-grid,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 170px;
        padding: 22px;
    }

    .category-icon,
    .category-page-header .big-icon {
        font-size: 42px;
    }

    .category-card h3 {
        font-size: 22px;
    }
}
