﻿.csis-resource-search {
    justify-content: center;
}

/* ===== Empty State ===== */

.empty-state {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 0 auto 3rem;
    max-width: 1200px;
}

.empty-icon {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #f3f5ff;
    position: relative;
    flex-shrink: 0;
}

.calendar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.empty-copy h2 {
    margin: 0 0 1.5rem;
    color: #081b75;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
}

.empty-copy p {
    margin: 0;
    max-width: 850px;
    color: #1d275a;
    font-size: 1.5rem;
    line-height: 1.8;
}

/* ===== Cards ===== */

.training-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1700px;
}

.training-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 240px;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: .2s ease;
}

    .training-card:hover {
        transform: translateY(-3px);
    }

.catalog {
    border: 1px solid #c7d3ff;
    background: #fafbff;
}

.youtube {
    border: 1px solid #ffc7cc;
    background: #fff7f7;
    padding-top: 3.25rem;
}

.resources {
    border: 1px solid #c7ecea;
    background: #f7fdfd;
}

.card-icon {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.catalog .card-icon {
    background: #eef2ff;
}

.youtube .card-icon {
    background: #ffe6e8;
}

.resources .card-icon {
    background: #e5f8f6;
}

.training-card h3 {
    margin: 0 0 1rem;
    color: #081b75;
    font-size: 1.75rem;
    line-height: 1.25;
}

.training-card p {
    margin: 0;
    color: #1d275a;
    font-size: 1.1rem;
    line-height: 1.7;
}

.recommended {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #ff4b4b;
    color: #ff4b4b;
    background: #fff;
    border-radius: 999px;
    padding: 0 0.5rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
}

/* ===== Notice ===== */

.training-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #eef1ff;
    border-radius: 10px;
    padding: 1rem 2rem;
    color: #081b75;
    font-size: 1.25rem;
}

    .training-notice strong {
        width: 28px;
        min-width: 28px;
        height: 28px;
        flex: 0 0 28px;
        border-radius: 50%;
        background: #081b75;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-style: normal;
    }

/* ===== Responsive ===== */

/* Cards stack vertically before the text gets cramped */
@media (max-width: 1500px) {

    .training-card {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }

    .youtube {
        padding-top: 3.75rem;
    }

    .training-card h3 {
        font-size: 1.5rem;
    }

    .training-card p {
        font-size: 1rem;
    }
}

/* Tablet */
@media (max-width: 992px) {

    .empty-state {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .training-cards {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .training-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 2rem;
    }

    .youtube {
        padding-top: 2rem;
    }

    .recommended {
        top: 0.75rem;
    }

    .empty-copy h2 {
        font-size: 2.25rem;
    }

    .empty-copy p {
        font-size: 1.25rem;
    }

    .training-notice {
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        max-width: 650px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 650px) {

    .training-card {
        flex-direction: column;
        text-align: center;
    }

    .training-notice {
        font-size: 1rem;
        padding: 1rem;
    }

    .empty-copy h2 {
        font-size: 2rem;
    }

    .empty-copy p {
        font-size: 1.1rem;
    }

    .recommended {
        top: 0.25rem;
    }
}
