﻿/* MODULES - compact, isolated styles */
.home-modules-section {
    padding: 3.1rem 0;
    background: #f8fafc;
}

    .home-modules-section .home-modules-header {
        max-width: 900px;
        margin: 0 auto 1.9rem;
    }

        .home-modules-section .home-modules-header > span {
            padding: .35rem .75rem;
            margin-bottom: .7rem;
            font-size: .72rem;
            letter-spacing: .045em;
        }

        .home-modules-section .home-modules-header h2 {
            max-width: 850px;
            margin-bottom: .7rem;
            font-size: clamp(1.65rem, 2.6vw, 2.45rem);
            line-height: 1.2;
            letter-spacing: -.025em;
        }

        .home-modules-section .home-modules-header p {
            max-width: 880px;
            font-size: .95rem;
            line-height: 1.6;
        }

    .home-modules-section .home-modules-grid {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .home-modules-section .home-large-module-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 1.15rem;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .home-modules-section a:hover .home-large-module-card {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(15, 23, 42, .09);
        border-color: rgba(13, 110, 253, .25);
    }

    .home-modules-section .home-large-module-header {
        display: flex;
        align-items: center;
        gap: .75rem;
        margin-bottom: .7rem;
    }

    .home-modules-section .home-large-module-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border-radius: 12px;
        background: #eff6ff;
        color: #0d6efd;
        transition: background .2s ease, color .2s ease;
    }

        .home-modules-section .home-large-module-icon i {
            font-size: 1.05rem;
            color: inherit;
        }

    .home-modules-section a:hover .home-large-module-icon {
        background: #0d6efd;
        color: #fff;
    }

    .home-modules-section .home-large-module-title {
        margin: 0;
        color: #111827;
        font-size: 1.02rem;
        font-weight: 800;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .home-modules-section .home-large-module-description {
        margin: 0 0 1rem;
        color: #64748b;
        font-size: .9rem;
        line-height: 1.6;
    }

    .home-modules-section .home-module-action {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        gap: .4rem;
        margin-top: auto;
        padding: .48rem .72rem;
        border-radius: 9px;
        background: #0d6efd;
        color: #fff;
        font-size: .8rem;
        font-weight: 700;
        line-height: 1.3;
        transition: background .2s ease, transform .2s ease;
    }

    .home-modules-section a:hover .home-module-action {
        background: #0b5ed7;
        transform: translateX(2px);
    }

    .home-modules-section .home-module-action i {
        display: inline-block;
        width: auto;
        height: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        color: inherit;
        font-size: .75rem;
    }

@media (max-width: 767.98px) {
    .home-modules-section {
        padding: 2.65rem 0;
    }

        .home-modules-section .home-modules-header {
            margin-bottom: 1.5rem;
        }

            .home-modules-section .home-modules-header h2 {
                font-size: 1.75rem;
            }

            .home-modules-section .home-modules-header p {
                font-size: .9rem;
            }
}

@media (max-width: 575.98px) {
    .home-modules-section {
        padding: 2.3rem 0;
    }

        .home-modules-section .home-large-module-card {
            padding: 1rem;
            border-radius: 14px;
        }

        .home-modules-section .home-large-module-icon {
            width: 40px;
            height: 40px;
            flex-basis: 40px;
        }

        .home-modules-section .home-large-module-title {
            font-size: .98rem;
        }

        .home-modules-section .home-large-module-description {
            font-size: .88rem;
        }
}
