.ai-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.ai-popup-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.ai-close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    padding: revert;
}

.ai-popup-content > h2 {
    font-size: 40px;
}
.ai-popup-content, .ai-popup-content > h2{
    text-align: center;
}

/*.ai-program-card {
    background: antiquewhite;
    padding: 20px;
    border-radius: 5px;
}

.ai-program-card h3 {
    font-size: 20px;
    line-height: normal;
}

.result-lay-recom{
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px;
}
*/
.result-lay-recom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.ai-program-card {
    width: 200px;
    background: #f4e8d8;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ai-program-card h3 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 10px;
    word-break: normal;
}

.ai-program-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}