/* Icon List Card Widget Styles */
.digimensi-icon-list-container {
    width: 100%;
    max-width: 100%;
}

.digimensi-features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    width: 100%;
}

.digimensi-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
    position: relative;
}

.digimensi-feature-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.digimensi-feature-link:hover {
    text-decoration: none;
    color: inherit;
}

.digimensi-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.digimensi-icon-wrapper i {
    font-size: 80px;
    color: #1e4d8b;
    transition: all 0.3s ease;
}

.digimensi-icon-wrapper svg {
    width: 80px;
    height: 80px;
    fill: #1e4d8b;
    transition: all 0.3s ease;
}

.digimensi-icon-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.digimensi-feature-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e4d8b;
    margin: 0 0 15px 0;
    transition: all 0.3s ease;
}

.digimensi-feature-description {
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 10px;
    max-width: 320px;
    transition: all 0.3s ease;
}

.digimensi-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #e0e0e0 20%, #e0e0e0 80%, transparent);
    margin: 0;
    flex-shrink: 0;
}

/* Hover Animation */
.hover-animation-enabled .digimensi-feature-item:hover {
    transform: translateY(-5px);
}

.hover-animation-enabled .digimensi-feature-item:hover .digimensi-icon-wrapper {
    transform: scale(1.1);
}

.hover-animation-enabled .digimensi-feature-item:hover .digimensi-feature-title {
    color: #2563eb;
}

/* Desktop Grid Layout */
@media (min-width: 768px) {
    .digimensi-icon-list-container.grid-layout .digimensi-features-wrapper {
        display: grid;
        gap: 30px;
    }

    .digimensi-icon-list-container.grid-layout .digimensi-feature-item {
        flex: 1;
        max-width: none;
        width: 100%;
        min-height: auto;
        padding: 30px 20px;
    }

    .digimensi-icon-list-container.grid-layout .digimensi-divider {
        display: none;
    }
}

@media (min-width: 1024px) {
    .digimensi-icon-list-container.grid-layout .digimensi-feature-item {
        padding: 50px 30px;
    }
}

/* Mobile Responsive - Horizontal Swipe Layout */
@media (max-width: 767px) {
    .digimensi-icon-list-container.grid-layout .digimensi-features-wrapper {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding-bottom: 10px;
        flex-direction: row;
        flex-wrap: nowrap;
        min-width: 100%;
        gap: 0;
    }

    .digimensi-icon-list-container.grid-layout .digimensi-features-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .digimensi-icon-list-container.grid-layout .digimensi-feature-item {
        min-width: 280px;
        flex-shrink: 0;
        margin-right: 0;
        padding: 30px 20px;
        width: 280px;
    }

    .digimensi-icon-list-container.grid-layout .digimensi-divider {
        display: block;
        width: 1px;
        height: auto;
        min-height: 200px;
        align-self: center;
        flex-shrink: 0;
    }

    .digimensi-icon-wrapper {
        margin-bottom: 15px;
    }

    .digimensi-feature-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .digimensi-feature-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Mobile responsive dots */
    .digimensi-dot {
        width: 8px;
        height: 8px;
    }
    
    .digimensi-swipe-dots {
        bottom: 10px;
        gap: 8px;
    }
}

/* Small mobile responsive */
@media (max-width: 480px) {
    .digimensi-swipe-dots {
        gap: 8px;
    }
}

/* Accessibility */
.digimensi-feature-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 8px;
}

.digimensi-feature-link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Mobile Navigation */
.digimensi-mobile-navigation {
    position: relative;
}

/* Hide dots on desktop */
@media (min-width: 768px) {
    .digimensi-swipe-dots {
        display: none !important;
    }
}

/* Show dots on mobile */
@media (max-width: 767px) {
    .digimensi-swipe-dots {
        display: flex !important;
    }
}



/* Dots Styles - Same as image-carousel */
.digimensi-swipe-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.digimensi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #efefef; /* Gray untuk non-aktif */
    cursor: pointer;
    transition: all 0.3s ease;
}

.digimensi-dot:hover,
.digimensi-dot.active {
    background-color: #38B25B; /* Hijau untuk aktif */
    transform: scale(1.2);
}

/* Print Styles */
@media print {
    .digimensi-feature-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .hover-animation-enabled .digimensi-feature-item:hover {
        transform: none;
    }

    .hover-animation-enabled .digimensi-feature-item:hover .digimensi-icon-wrapper {
        transform: none;
    }
}
