
/* Most Viewed Section */
.most-viewed-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.most-viewed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, var(--global--color-primary-light) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 0;
}

.most-viewed-section .container {
    position: relative;
    z-index: 1;
}

/* Section Header */
    .most-viewed-section .section-header {
        text-align: center;
        margin-bottom: 60px;
        position: relative;
    }

    .most-viewed-section .section-title {
        font-family: var(--global--font-heading);
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--global--color-heading);
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }

        .most-viewed-section .section-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--global--color-primary) 0%, var(--global--color-secondary) 100%);
            border-radius: 2px;
        }

    .most-viewed-section .section-subtitle {
        font-family: var(--global--font-body);
        font-size: 1.1rem;
        color: var(--global--color-body);
        margin: 0;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

/* Grid Layout */
    .most-viewed-section .most-viewed-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        margin-bottom: 50px;
    }

/* Card Styles */
    .most-viewed-section .most-viewed-card {
        background: var(--global--color-white);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        transform: translateY(0);
        padding: 10px 15px;
    }

        .most-viewed-section .most-viewed-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

    .most-viewed-section .card-link {
        display: flex;
        align-items: center;
        gap: 15px;
        text-decoration: none;
        color: inherit;
        height: 100%;
        padding: 10px;
    }

/* Card Icon */
    .most-viewed-section .card-icon {
        width: 35px;
        height: 35px;
        background: var(--global--color-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        box-shadow: 0 4px 12px rgba(19, 197, 221, 0.25);
    }

        .most-viewed-section .card-icon i {
            color: var(--global--color-white);
            font-size: 1rem;
            transition: transform 0.3s ease;
        }

    .most-viewed-section .most-viewed-card:hover .card-icon {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(19, 197, 221, 0.4);
    }

        .most-viewed-section .most-viewed-card:hover .card-icon i {
            transform: scale(1.1);
        }

/* Card Content */
    .most-viewed-section .card-content {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
    }

/* Card Arrow */
    .most-viewed-section .card-arrow {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: all 0.3s ease;
        opacity: 0.6;
    }

        .most-viewed-section .card-arrow i {
            color: var(--global--color-heading);
            font-size: 0.8rem;
            transition: all 0.3s ease;
        }

    .most-viewed-section .most-viewed-card:hover .card-arrow {
        opacity: 1;
        transform: translateX(3px);
    }

        .most-viewed-section .most-viewed-card:hover .card-arrow i {
            color: var(--global--color-primary);
        }

/* Card Overlay */
    .most-viewed-section .card-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--global--color-primary) 0%, var(--global--color-secondary) 100%);
        opacity: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;
    }

    .most-viewed-section .most-viewed-card:hover .card-overlay {
        opacity: 0.9;
    }

    .most-viewed-section .card-overlay i {
        color: var(--global--color-white);
        font-size: 1.8rem;
        transform: scale(0.8);
        transition: transform 0.3s ease;
    }

    .most-viewed-section .most-viewed-card:hover .card-overlay i {
        transform: scale(1);
    }

/* Card Title */
    .most-viewed-section .card-title {
        font-family: var(--global--font-heading);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--global--color-heading);
        margin: 0;
        line-height: 1.4;
        transition: color 0.3s ease;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .most-viewed-section .most-viewed-card:hover .card-title {
        color: var(--global--color-primary);
    }

/* View All Button */
    .most-viewed-section .view-all-container {
        text-align: center;
    }

    .most-viewed-section .btn-view-all {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, var(--global--color-primary) 0%, var(--global--color-secondary) 100%);
        color: var(--global--color-white);
        padding: 15px 30px;
        border-radius: 50px;
        text-decoration: none;
        font-family: var(--global--font-heading);
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        box-shadow: 0 8px 25px rgba(19, 197, 221, 0.3);
    }

        .most-viewed-section .btn-view-all:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(19, 197, 221, 0.4);
            color: var(--global--color-white);
            text-decoration: none;
        }

        .most-viewed-section .btn-view-all i {
            transition: transform 0.3s ease;
        }

        .most-viewed-section .btn-view-all:hover i {
            transform: translateX(5px);
        }

/* Responsive Design */
@media (max-width: 1400px) {
    .most-viewed-section .most-viewed-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .most-viewed-section .section-title {
        font-size: 2.2rem;
    }

    .most-viewed-section .most-viewed-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .most-viewed-section .most-viewed-card {
        height: 75px;
    }

    .most-viewed-section .card-icon {
        width: 45px;
        height: 45px;
    }

        .most-viewed-section .card-icon i {
            font-size: 1.1rem;
        }

    .most-viewed-section .card-link {
        gap: 12px;
        padding: 8px;
    }

    .most-viewed-section .card-title {
        font-size: 0.85rem;
    }

    .most-viewed-section .card-arrow {
        width: 18px;
        height: 18px;
    }

        .most-viewed-section .card-arrow i {
            font-size: 0.75rem;
        }
}

@media (max-width: 992px) {
     .most-viewed-section {
        padding: 60px 0;
    }

    .most-viewed-section .section-header {
        margin-bottom: 40px;
    }

    .most-viewed-section .section-title {
        font-size: 2rem;
    }

    .most-viewed-section .most-viewed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .most-viewed-section .most-viewed-card {
        height: 70px;
    }

    .most-viewed-section .card-icon {
        width: 40px;
        height: 40px;
    }

        .most-viewed-section .card-icon i {
            font-size: 1rem;
        }

    .most-viewed-section .card-link {
        gap: 10px;
        padding: 8px;
    }

    .most-viewed-section .card-title {
        font-size: 0.8rem;
    }

    .most-viewed-section .card-arrow {
        width: 16px;
        height: 16px;
    }

        .most-viewed-section .card-arrow i {
            font-size: 0.7rem;
        }
}

@media (max-width: 768px) {
  .most-viewed-section {
        padding: 50px 0;
    }

    .most-viewed-section .section-title {
        font-size: 1.8rem;
    }

    .most-viewed-section.section-subtitle {
        font-size: 1rem;
    }

    .most-viewed-section .most-viewed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .most-viewed-section .most-viewed-card {
        height: 65px;
    }

    .most-viewed-section .card-icon {
        width: 38px;
        height: 38px;
    }

        .most-viewed-section .card-icon i {
            font-size: 0.95rem;
        }

    .most-viewed-section .card-link {
        gap: 8px;
        padding: 6px;
    }

    .most-viewed-section .card-title {
        font-size: 0.75rem;
    }

    .most-viewed-section .card-arrow {
        width: 15px;
        height: 15px;
    }

        .most-viewed-section .card-arrow i {
            font-size: 0.65rem;
        }

    .most-viewed-section .btn-view-all {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .most-viewed-section {
        padding: 40px 0;
    }

        .most-viewed-section .section-header {
            margin-bottom: 30px;
        }

        .most-viewed-section .section-title {
            font-size: 1.6rem;
        }

        .most-viewed-section .most-viewed-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .most-viewed-section .most-viewed-card {
            height: 60px;
        }

        .most-viewed-section .card-icon {
            width: 35px;
            height: 35px;
        }

            .most-viewed-section .card-icon i {
                font-size: 0.9rem;
            }

        .most-viewed-section .card-link {
            gap: 8px;
            padding: 5px;
        }

        .most-viewed-section .card-title {
            font-size: 0.7rem;
            line-height: 1.3;
        }

        .most-viewed-section .card-arrow {
            width: 14px;
            height: 14px;
        }

            .most-viewed-section .card-arrow i {
                font-size: 0.6rem;
            }

        .most-viewed-section .btn-view-all {
            padding: 10px 20px;
            font-size: 0.85rem;
        }
}

@media (max-width: 480px) {
    .most-viewed-section .most-viewed-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 400px;
        margin: 0 auto;
    }

    .most-viewed-section .most-viewed-card {
        height: 70px;
    }

    .most-viewed-section .card-icon {
        width: 45px;
        height: 45px;
    }

        .most-viewed-section .card-icon i {
            font-size: 1.1rem;
        }

    .most-viewed-section .card-link {
        gap: 12px;
        padding: 8px;
    }

    .most-viewed-section .card-title {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .most-viewed-section .card-arrow {
        width: 18px;
        height: 18px;
    }

        .most-viewed-section .card-arrow i {
            font-size: 0.75rem;
        }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.most-viewed-section .most-viewed-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}
