/* Tabs */
.service-tabs {
    text-align: center;
    margin-bottom: 40px;
}

.rvTab {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    list-style: none;
}

.rvTab .tab_item button {
    background-color: var(--rv-white);
    border: 2px solid var(--rv-secondary);
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 600;
    color: var(--rv-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.rvTab .tab_item button.activelink,
.rvTab .tab_item button:hover {
    background-color: var(--rv-secondary);
    color: var(--rv-white);
}

/* Tab Content Area */
.rvTabContent .tab_list {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.rvTabContent .tab_list.active {
    display: block;
}

/* News Carousel Items */
.news-carousel .item {
    padding: 15px;
}

.news-box {
    background-color: var(--rv-white);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* News Image */
.news-box .image {
    position: relative;
    overflow: hidden;
}

.news-box .image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Date Badge */
.news-box .image .date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: var(--rv-bg-primary);
    color: var(--rv-white);
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 20px;
}

/* News Content */
.news-box .content {
    padding: 20px;
}

.news-box .content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--rv-secondary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-box .content p {
    font-size: 14px;
    color: var(--rv-gray);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-box .image img {
        height: 160px;
    }

    .rvTab .tab_item button {
        font-size: 14px;
        padding: 8px 18px;
    }

    .news-box .content h4 {
        font-size: 16px;
    }

    .news-box .content p {
        font-size: 13px;
    }
}

/* Fade-in animation for tabs */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
