﻿.thapmuoi-slider-section {
    padding: 60px 0;
    background: var(--thapmuoi-gray-light);
}

.thapmuoi-section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

    .thapmuoi-section-title h2 {
        font-size: 2.5rem;
        color: var(--thapmuoi-blue);
        font-weight: 700;
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }

        .thapmuoi-section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--thapmuoi-red);
            border-radius: 2px;
        }

    .thapmuoi-section-title p {
        color: var(--thapmuoi-text-muted);
        font-size: 1.1rem;
    }

.thapmuoi-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.thapmuoi-slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.thapmuoi-slider-item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--thapmuoi-shadow);
    transition: var(--thapmuoi-transition);
}

    .thapmuoi-slider-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px var(--thapmuoi-shadow-hover);
    }

    .thapmuoi-slider-item img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

    .thapmuoi-slider-item:hover img {
        transform: scale(1.1);
    }

.thapmuoi-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(11,61,145,0.9));
    color: var(--thapmuoi-white);
    padding: 15px;
    text-align: center;
}

    .thapmuoi-slider-caption h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 500;
    }

.thapmuoi-slider-controls {
    text-align: center;
    margin-top: 30px;
}

.thapmuoi-slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--thapmuoi-blue);
    color: var(--thapmuoi-white);
    border: none;
    margin: 0 8px;
    cursor: pointer;
    transition: var(--thapmuoi-transition);
}

    .thapmuoi-slider-btn:hover {
        background: var(--thapmuoi-red);
        transform: scale(1.1);
    }

.thapmuoi-numbers-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--thapmuoi-blue), var(--thapmuoi-blue-dark));
    position: relative;
}

.thapmuoi-number-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--thapmuoi-transition);
}

    .thapmuoi-number-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        background: rgba(255,255,255,0.15);
    }

.thapmuoi-number-icon {
    font-size: 2.8rem;
    color: var(--thapmuoi-white);
    margin-bottom: 15px;
}

.thapmuoi-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--thapmuoi-white);
    margin-bottom: 5px;
}

.thapmuoi-number-label {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 1rem;
}

.thapmuoi-news-section {
    padding: 60px 0;
}

.thapmuoi-news-row {
    margin-bottom: 60px;
}

    .thapmuoi-news-row:last-child {
        margin-bottom: 0;
    }

.thapmuoi-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.thapmuoi-news-card {
    background: var(--thapmuoi-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--thapmuoi-shadow);
    transition: var(--thapmuoi-transition);
    cursor: pointer;
}

    .thapmuoi-news-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px var(--thapmuoi-shadow-hover);
    }

.thapmuoi-news-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}

    .thapmuoi-news-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.thapmuoi-news-card:hover .thapmuoi-news-image img {
    transform: scale(1.1);
}

.thapmuoi-news-content {
    padding: 20px 15px;
}

.thapmuoi-news-date {
    color: var(--thapmuoi-text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .thapmuoi-news-date i {
        color: var(--thapmuoi-blue);
    }

.thapmuoi-news-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--thapmuoi-text-dark);
    transition: color 0.3s ease;
    margin-bottom: 10px;
}

.thapmuoi-news-card:hover .thapmuoi-news-title {
    color: var(--thapmuoi-blue);
}

.thapmuoi-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thapmuoi-news-view {
    color: var(--thapmuoi-text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

    .thapmuoi-news-view i {
        color: var(--thapmuoi-blue);
    }

.thapmuoi-section-footer {
    text-align: center;
    margin-top: 30px;
}

.thapmuoi-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--thapmuoi-blue);
    color: var(--thapmuoi-white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--thapmuoi-transition);
    border: none;
    font-size: 1rem;
}

    .thapmuoi-view-all:hover {
        background: var(--thapmuoi-red);
        color: var(--thapmuoi-white);
        gap: 12px;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(230,57,70,0.3);
    }

.thapmuoi-history-section {
    padding: 60px 0;
    background: var(--thapmuoi-gray-light);
}

.thapmuoi-timeline {
    position: relative;
    padding: 20px 0;
}

    .thapmuoi-timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--thapmuoi-blue);
        transform: translateX(-50%);
    }

.thapmuoi-timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.thapmuoi-timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--thapmuoi-blue);
    color: var(--thapmuoi-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    z-index: 1;
    border: 2px solid var(--thapmuoi-white);
    white-space: nowrap;
}

.thapmuoi-timeline-content {
    width: 45%;
    padding: 20px;
    background: var(--thapmuoi-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--thapmuoi-shadow);
    position: relative;
    border-left: 4px solid var(--thapmuoi-blue);
}

.thapmuoi-timeline-item:nth-child(odd) .thapmuoi-timeline-content {
    margin-left: auto;
}

.thapmuoi-timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--thapmuoi-white);
    transform: rotate(45deg);
}

.thapmuoi-timeline-item:nth-child(even) .thapmuoi-timeline-content::before {
    right: -10px;
    box-shadow: 5px -5px 10px rgba(0,0,0,0.05);
    border-right: 4px solid var(--thapmuoi-blue);
    border-top: 4px solid var(--thapmuoi-blue);
}

.thapmuoi-timeline-item:nth-child(odd) .thapmuoi-timeline-content::before {
    left: -10px;
    box-shadow: -5px 5px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--thapmuoi-blue);
    border-bottom: 4px solid var(--thapmuoi-blue);
}

.thapmuoi-timeline-content h4 {
    color: var(--thapmuoi-blue);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.thapmuoi-timeline-content p {
    color: var(--thapmuoi-text-muted);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .thapmuoi-slider-item {
        flex: 0 0 calc(50% - 20px);
    }

    .thapmuoi-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .thapmuoi-slider-item {
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px;
    }

    .thapmuoi-slider-container {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .thapmuoi-slider-item {
        scroll-snap-align: center;
    }

        .thapmuoi-slider-item img {
            width: 100%;
            height: auto;
            object-fit: contain;
            background-color: var(--thapmuoi-gray-light);
        }

    .thapmuoi-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .thapmuoi-timeline::before {
        left: 30px;
    }

    .thapmuoi-timeline-year {
        left: 30px;
        transform: none;
        font-size: 0.9rem;
        padding: 6px 15px;
    }

    .thapmuoi-timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .thapmuoi-timeline-item:nth-child(even) .thapmuoi-timeline-content::before,
    .thapmuoi-timeline-item:nth-child(odd) .thapmuoi-timeline-content::before {
        left: -10px;
        border-left: 4px solid var(--thapmuoi-blue);
        border-bottom: 4px solid var(--thapmuoi-blue);
        border-right: none;
        border-top: none;
        right: auto;
    }
}

@media (max-width: 576px) {
    .thapmuoi-slider-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .thapmuoi-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .thapmuoi-news-image {
        padding-top: 75%;
    }

    .thapmuoi-news-content {
        padding: 15px;
    }

    .thapmuoi-news-title {
        font-size: 1.1rem;
    }

    .thapmuoi-section-title h2 {
        font-size: 2rem;
    }

    .thapmuoi-number {
        font-size: 2rem;
    }

    .thapmuoi-number-label {
        font-size: 0.9rem;
    }

    .thapmuoi-timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px !important;
        padding: 15px;
    }

    .thapmuoi-timeline-year {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .thapmuoi-timeline-content h4 {
        font-size: 1rem;
    }

    .thapmuoi-timeline-content p {
        font-size: 0.9rem;
    }

    .thapmuoi-view-all {
        width: 100%;
        justify-content: center;
    }
}
