/* ========================================
   INFOGRAPHICS PAGE - FORMAL GOVERNMENT STYLE
   ======================================== */

/* Infographics Section */
.infographics-section {
    padding: 3rem 0;
    background: #f8fafc;
    min-height: 60vh;
}

/* Header Section */
.infographics-header-section {
    background: transparent;
    /* border: 2px solid #2d5a9c;
    border-left: 5px solid #2d5a9c; */
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.infographics-header-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2d5a9c 0%, #1e3a5f 100%);
}

.infographics-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.infographics-section-title i {
    color: #2d5a9c;
    font-size: 1.5rem;
}

.infographics-section-subtitle {
    font-size: 1rem;
    color: #4b5563;
    margin: 0;
    font-weight: 500;
}

/* Infographics List */
.infographics-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Infographic Item - Formal Structure */
.infographic-item {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-left: 5px solid #2d5a9c;
    position: relative;
    display: flex;
    gap: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.infographic-item:hover {
    border-color: #2d5a9c;
    box-shadow: 0 4px 12px rgba(45, 90, 156, 0.15);
}

.infographic-item-number {
    background: #2d5a9c;
    color: #ffffff;
    width: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-right: 2px solid #1e3a5f;
    flex-shrink: 0;
}

.infographic-item-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Item Header */
.infographic-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.infographic-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.infographic-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid;
}

.status-available {
    background: #ecfdf5;
    color: #059669;
    border-color: #10b981;
}

.status-available i {
    color: #059669;
}

.status-unavailable {
    background: #fef2f2;
    color: #dc2626;
    border-color: #f87171;
}

.status-unavailable i {
    color: #dc2626;
}

/* Description */
.infographic-description {
    padding: 0.75rem 0;
}

.infographic-description p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* Details Section - Compact */
.infographic-details {
    padding: 0.5rem 0;
}

.infographic-detail-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f0f4ff;
    color: #2d5a9c;
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e6ecf3;
    white-space: nowrap;
}

.detail-badge i {
    font-size: 0.75rem;
    color: #2d5a9c;
    flex-shrink: 0;
}

.detail-badge.detail-keterangan {
    background: #f8fafc;
    color: #4b5563;
    border-color: #e5e7eb;
    white-space: normal;
    flex: 1;
    min-width: 200px;
}

.detail-badge.detail-keterangan i {
    color: #6b7280;
}

/* Action Buttons */
.infographic-action {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.infographic-download-btn,
.infographic-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    flex: 1;
    justify-content: center;
}

.infographic-download-btn {
    background: #2d5a9c;
    color: #ffffff;
    border-color: #2d5a9c;
}

.infographic-download-btn:hover {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 90, 156, 0.3);
}

.infographic-view-btn {
    background: #ffffff;
    color: #2d5a9c;
    border-color: #2d5a9c;
}

.infographic-view-btn:hover {
    background: #f0f4ff;
    color: #1e3a5f;
    border-color: #1e3a5f;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 90, 156, 0.2);
}

.infographic-download-btn i,
.infographic-view-btn i {
    font-size: 0.9rem;
}

/* Empty State */
.no-infographics {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-left: 5px solid #2d5a9c;
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.no-infographics-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-infographics-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.no-infographics h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 0.75rem 0;
}

.no-infographics p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Pagination Section */
.infographics-pagination-section {
    padding: 2rem 0;
    background: #f8fafc;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991.98px) {
    .infographics-section {
        padding: 2.5rem 0;
    }

    .infographics-header-section {
        padding: 1.5rem;
    }

    .infographics-section-title {
        font-size: 1.5rem;
    }

    .infographics-list {
        gap: 1.25rem;
    }

    .infographic-item-number {
        width: 50px;
        min-width: 50px;
        font-size: 1.25rem;
    }

    .infographic-item-content {
        padding: 1.25rem;
    }

    .infographic-title {
        font-size: 1.15rem;
    }

    .infographic-detail-compact {
        gap: 0.4rem;
    }

    .detail-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }
}

@media (max-width: 767.98px) {
    .infographics-section {
        padding: 2rem 0;
    }

    .infographics-header-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .infographics-section-title {
        font-size: 1.375rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .infographics-section-subtitle {
        font-size: 0.95rem;
    }

    .infographics-list {
        gap: 1rem;
    }

    .infographic-item {
        flex-direction: column;
    }

    .infographic-item-number {
        width: 100%;
        min-width: 100%;
        padding: 0.75rem;
        border-right: none;
        border-bottom: 2px solid #1e3a5f;
    }

    .infographic-item-content {
        padding: 1rem;
    }

    .infographic-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .infographic-title {
        font-size: 1.1rem;
        width: 100%;
    }

    .infographic-status-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }

    .infographic-description p {
        font-size: 0.9rem;
    }

    .infographic-details {
        padding: 0.5rem 0;
    }

    .infographic-detail-compact {
        gap: 0.4rem;
    }

    .detail-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }

    .detail-badge.detail-keterangan {
        min-width: 100%;
        white-space: normal;
    }

    .infographic-action {
        flex-direction: column;
        gap: 0.75rem;
    }

    .infographic-download-btn,
    .infographic-view-btn {
        width: 100%;
        padding: 0.7rem 1.25rem;
    }

    .no-infographics {
        padding: 2.5rem 1.5rem;
    }

    .no-infographics-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .no-infographics h3 {
        font-size: 1.3rem;
    }

    .no-infographics p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .infographics-section {
        padding: 1.5rem 0;
    }

    .infographics-header-section {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .infographics-section-title {
        font-size: 1.25rem;
    }

    .infographics-section-title i {
        font-size: 1.25rem;
    }

    .infographics-section-subtitle {
        font-size: 0.875rem;
    }

    .infographics-list {
        gap: 0.875rem;
    }

    .infographic-item-number {
        font-size: 1.1rem;
        padding: 0.625rem;
    }

    .infographic-item-content {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .infographic-title {
        font-size: 1rem;
    }

    .infographic-status-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
        gap: 0.4rem;
    }

    .infographic-description p {
        font-size: 0.875rem;
    }

    .infographic-details {
        padding: 0.4rem 0;
    }

    .infographic-detail-compact {
        gap: 0.35rem;
    }

    .detail-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        gap: 0.35rem;
    }

    .detail-badge i {
        font-size: 0.7rem;
    }

    .detail-badge.detail-keterangan {
        min-width: 100%;
        font-size: 0.7rem;
    }

    .infographic-action {
        padding-top: 0.75rem;
        gap: 0.625rem;
    }

    .infographic-download-btn,
    .infographic-view-btn {
        font-size: 0.85rem;
        padding: 0.625rem 1rem;
        gap: 0.4rem;
    }

    .no-infographics {
        padding: 2rem 1rem;
    }

    .no-infographics-icon {
        font-size: 3rem;
        margin-bottom: 0.875rem;
    }

    .no-infographics h3 {
        font-size: 1.2rem;
    }

    .no-infographics p {
        font-size: 0.875rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .infographics-section {
        background: white;
        padding: 0;
    }

    .infographic-item {
        border: 1px solid #000;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .infographic-item:hover {
        box-shadow: none;
    }

    .infographic-action {
        display: none;
    }

    .infographics-header-border {
        background: #000;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.infographic-download-btn:focus,
.infographic-view-btn:focus {
    outline: 3px solid #2d5a9c;
    outline-offset: 2px;
}

.infographic-item:focus-within {
    border-color: #2d5a9c;
    box-shadow: 0 0 0 3px rgba(45, 90, 156, 0.1);
}
