/* ===== Happened This Week – FULL STYLE OVERRIDE ===== */

.happened-this-week-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Grid */
.happened-this-week {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* Card */
.htw-item {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Image link */
.htw-thumb {
    display: block;
    flex-shrink: 0;
}

.htw-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Title link container */
.htw-title {
    display: block;
    padding: 0.75rem;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

.htw-title:visited,
.htw-title:hover,
.htw-title:active {
    color: #ffffff !important;
}

/* Year */
.htw-year {
    display: block;
    font-size: 0.85em;
    opacity: 0.8;
    margin-top: 0.25rem;
    color: #ffffff;
}

/* See all link */
.htw-more {
    margin-top: 1.5rem;
    text-align: center;
}

.htw-more a {
    color: #000000 !important;
    font-weight: 600;
    text-decoration: none !important;
}

.htw-more a:visited,
.htw-more a:hover,
.htw-more a:active {
    color: #000000 !important;
}

/* Mobile */
@media (max-width: 767px) {
    .happened-this-week-wrapper {
        padding: 0 0.5rem;
        width: 100%;
    }
    
    .happened-this-week {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .htw-item {
        width: 100%;
        max-width: 100%;
    }
    
    .htw-thumb img {
        width: 100%;
        max-width: 100%;
    }
    
    .htw-more {
        margin-top: 1.5rem;
        width: 100%;
    }
}
