@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700&display=swap');

/* Full-width background container */
.thsf-press-news-outer {
    width: 100%;
    background-color: #f0f0f0; /* Light gray background for the section */
    padding: 60px 0; /* Vertical padding for spaciousness */
    margin: 18px 0 40px; /* Vertical margins only */
    overflow-x: hidden;
}

/* Inner content wrapper with max-width */
.thsf-press-news-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box; /* Include padding in width calculation */
    font-family: 'Urbanist', sans-serif;
}

@media (min-width: 1520px) {
    .thsf-press-news-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .thsf-press-news-outer {
        padding: 40px 0; /* Less vertical padding on mobile */
    }
}

.thsf-press-news-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    min-height: 45px;
    margin-bottom: 16px;
    width: 100%;
}

@media (max-width: 768px) {
    .thsf-press-news-header {
        gap: 12px;
    }
}

.thsf-press-news-title {
    margin: 0;
    color: #BA1B1B;
    font-family: "Urbanist", sans-serif;
    font-size: 40px;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0;
    line-height: 100%;
}

.thsf-press-news-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    margin-left: auto;
}

@media (max-width: 768px) {
    .thsf-press-news-controls {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

.thsf-press-news-see-all {
    color: #BA1B1B;
    text-decoration: underline;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.thsf-press-news-see-all:hover {
    color: #8b1515;
    text-decoration-thickness: 2px;
}

.thsf-press-news-nav {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-left: 12px;
}

.thsf-press-news-prev,
.thsf-press-news-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #BA1B1B;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(186, 27, 27, 0.2);
    flex-shrink: 0;
    color: #fff;
}

.thsf-press-news-prev:hover,
.thsf-press-news-next:hover {
    background-color: #9a1616;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(186, 27, 27, 0.3);
}

.thsf-press-news-prev:active,
.thsf-press-news-next:active {
    transform: scale(0.95);
}

.thsf-press-news-prev svg,
.thsf-press-news-next svg {
    width: 26px;
    height: 26px;
}

.thsf-press-news-counter {
    font-family: "Urbanist", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0;
    color: #373738;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 6px;
    white-space: nowrap;
}

.thsf-press-news-counter .current {
    color: #373738;
}

.thsf-press-news-slider-container {
    overflow: hidden;
}

.thsf-press-news-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    flex-wrap: nowrap;
}

.thsf-press-news-card {
    flex: 0 0 calc(25% - 15px); /* 4 items per row with gap */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.thsf-press-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.thsf-press-news-image {
    height: 200px;
    overflow: hidden;
}

.thsf-press-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thsf-press-news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.thsf-press-news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.thsf-press-news-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thsf-press-news-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #b91c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.thsf-press-news-card-arrow svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1024px) {
    .thsf-press-news-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 1100px) {
    .thsf-press-news-prev,
    .thsf-press-news-next {
        width: 42px;
        height: 42px;
    }
    
    .thsf-press-news-counter {
        font-size: 15px;
    }
}

@media (max-width: 900px) {
    .thsf-press-news-title {
        font-size: 2.2rem;
    }
    
    .thsf-press-news-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .thsf-press-news-controls {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .thsf-press-news-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .thsf-press-news-header {
        align-items: flex-start;
    }
    
    .thsf-press-news-title {
        font-size: 1.9rem;
    }
    
    .thsf-press-news-prev,
    .thsf-press-news-next {
        width: 40px;
        height: 40px;
    }
    
    .thsf-press-news-prev svg,
    .thsf-press-news-next svg {
        width: 20px;
        height: 20px;
    }
    
    .thsf-press-news-counter {
        font-size: 14px;
    }
    
    .thsf-press-news-see-all {
        font-size: 0.9rem;
    }
    
    .thsf-press-news-controls {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .thsf-press-news-card {
        flex: 0 0 100%;
    }
}
