/* DM Icon Banner Styles */
.dm-icon-banner-section {
    background-color: #fff;
    padding: 15px 0;
}

.dm-icon-container {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .05);
}

.dm-icon-banner-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.dm-icon-banner-item {
    flex: 1;
    max-width: 14.28%;
    min-width: 0;
    transition: transform 0.1s ease;
    transform: translateY(0);
}

.dm-icon-banner-item:hover {
    transform: translateY(-1px);
}

.dm-icon-banner-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.dm-icon-banner-link:hover {
    text-decoration: none;
}

.dm-icon-banner-link:focus {
    outline: 2px solid #d0011b;
    outline-offset: 2px;
}

.dm-icon-image {
    margin-bottom: 8px;
    line-height: 0;
}

.dm-icon-image img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.dm-icon-title {
    text-align: center;
}

.dm-icon-title p {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    color: #222;
    transition: color 0.15s ease;
}

.dm-icon-banner-link:hover .dm-icon-title p {
    color: black;
}

/* ========================================
   Progress Bar - Ẩn trên Desktop
   ======================================== */
.dm-scroll-progress-container {
    display: none;
}

/* ========================================
   MOBILE (< 805px)
   ======================================== */
@media screen and (max-width: 804px) {
    .dm-icon-banner-section {
        padding: 10px 0 6px 0;
        overflow: hidden;
    }
    
    .dm-icon-banner-wrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0;
        padding: 5px 10px 8px 10px;
        justify-content: flex-start;
        cursor: grab;
        user-select: none;
    }
    
    .dm-icon-banner-wrapper::-webkit-scrollbar {
        display: none;
        height: 0;
        width: 0;
    }
    
    /* Mouse Drag - Cursor styles */
    .dm-icon-banner-wrapper.dm-dragging {
        cursor: grabbing;
        scroll-behavior: auto;
    }
    
    .dm-icon-banner-wrapper.dm-dragging .dm-icon-banner-link {
        pointer-events: none;
    }
    
    .dm-icon-banner-item {
        flex: 0 0 auto;
        min-width: 85px;
        max-width: 100px;
        width: auto;
    }
    
    .dm-icon-banner-link {
        padding: 8px 5px;
    }
    
    .dm-icon-image img {
        width: 40px;
        height: 40px;
    }
    
    .dm-icon-title p {
        font-size: 11px;
        line-height: 1.2;
    }
    
    /* ========================================
       Progress Bar Styles - Mobile Only
       ======================================== */
    .dm-scroll-progress-container {
        display: flex;
        justify-content: center;
        padding: 0 20px 8px 20px;
    }
    
    .dm-scroll-progress-track {
        width: 100%;
        max-width: 120px;
        height: 3px;
        background: #e8e8e8;
        border-radius: 3px;
        overflow: hidden;
        position: relative;
    }
    
    .dm-scroll-progress-bar {
        height: 100%;
        width: 30%;
        min-width: 20%;
        background: linear-gradient(90deg, #d0011b 0%, #ff4757 100%);
        border-radius: 3px;
        position: absolute;
        left: 0;
        top: 0;
        transition: left 0.1s ease-out, width 0.1s ease-out;
        box-shadow: 0 0 4px rgba(208, 1, 27, 0.3);
    }
    
    .dm-scroll-progress-bar.is-scrolling {
        animation: dm-pulse 0.3s ease;
    }
    
    @keyframes dm-pulse {
        0%, 100% {
            box-shadow: 0 0 4px rgba(208, 1, 27, 0.3);
        }
        50% {
            box-shadow: 0 0 8px rgba(208, 1, 27, 0.5);
        }
    }
}

/* ========================================
   Tablet
   ======================================== */
@media screen and (min-width: 805px) and (max-width: 1024px) {
    .dm-icon-banner-item {
        max-width: 16%;
    }
    
    .dm-icon-title p {
        font-size: 12px;
    }
}