.am-topic-wrapper {
    /* background: #efefef;
    border: 1px solid #e4e4e4; */
    border-radius: 10px;
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
}

.am-topic-date {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
}

.am-topic-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
    line-height: 1.4;
}

.am-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
        padding: 8px;
    background: #EEF1F3;
}

.am-topic-card {
    background: #f7f7f7;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 12px 12px 16px;
    box-sizing: border-box;
    min-height: 240px;
}

.am-topic-card-top {
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 12px;
    box-sizing: border-box;
}

.am-topic-icon-img {
    max-width: 58px;
    max-height: 58px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.am-topic-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    
    margin-bottom: 10px;
    line-height: 1;
}
/* Default (1st, 3rd, 5th...) */
.am-topic-card:nth-child(odd) .am-topic-badge {
    background: #e9e9ef;
    color: #5a5ce2;
}

/* 2nd, 4th, 6th... */
.am-topic-card:nth-child(even) .am-topic-badge {
    background: #FF9099;
    color: #68001B;
}

.am-topic-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #223049;
    line-height: 1.45;
    margin: 0 0 8px;
}

.am-topic-actions {
    margin-top: 0;
}

.am-topic-btn {
   display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 31px;
    padding: 0 20px;
    border-radius: 10px;
    background: #FF9A00;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    border: none;
    box-shadow: none;
    transition: background 0.2s ease;
}

.am-topic-btn:hover,
.am-topic-btn:focus {
    background: #da6200;
    color: #fff !important;
    outline: none;
}

@media (max-width: 1199px) {
    .am-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .am-topic-wrapper {
        padding: 14px;
    }

    .am-topic-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .am-topic-date {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .am-topic-title {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .am-topic-card {
        min-height: auto;
    }

    .am-topic-card-top {
        height: 90px;
    }

    .am-topic-icon-img {
        max-width: 48px;
        max-height: 48px;
    }
}