.icon-info-grid {
    display: grid;
    gap: 30px;
    justify-items: center;
}

.icon-info-grid.columns-1 {
    grid-template-columns: 1fr;
}

.icon-info-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.icon-info-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.icon-info-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.icon-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px;
    width: 100%;
}

.icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007cba;
    font-size: 20px;
}

.icon-wrapper .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.icon-wrapper img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.icon-wrapper i {
    font-size: 20px;
}

.content-wrapper {
    flex: 1;
    min-width: 0;
}

.item-title {
    margin: 0 0 0px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.item-description {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.icon-info-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.2s ease;
    will-change: opacity;
}

.icon-info-modal.active {
    opacity: 1;
}

.modal-content {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    background: white;
    overflow: hidden;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.2s ease-out;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.icon-info-modal.active .modal-content {
    transform: translateX(0);
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    flex: 1;
    padding-right: 20px;
}

.modal-close {
    color: #000000;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    color: #000;
    background-color: #f0f0f0;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.modal-body h1, .modal-body h2, .modal-body h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-body h1 {
    font-size: 20px;
    font-weight: 700;
}

.modal-body h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-body h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}

.modal-body ul, .modal-body ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.modal-body li {
    line-height: 1.6;
    margin-bottom: 8px;
    color: #555;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.modal-body blockquote {
    background: #f9f9f9;
    border-left: 4px solid #007cba;
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
    color: #666;
}

.modal-body code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #333;
}

.modal-body pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.modal-body table th,
.modal-body table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.modal-body table th {
    background: #f8f9fa;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-size: 16px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .icon-info-grid.columns-3,
    .icon-info-grid.columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .icon-info-grid.columns-2 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .icon-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .icon-wrapper .dashicons {
        width: 25px;
        height: 25px;
        font-size: 25px;
    }
    
    .icon-wrapper img {
        width: 50px;
        height: 50px;
    }
    
    .icon-wrapper i {
        font-size: 25px;
    }
    
    .item-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .item-description {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .modal-content {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .icon-info-grid.columns-3,
    .icon-info-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .icon-info-grid.columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .icon-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .icon-wrapper .dashicons {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
    
    .icon-wrapper img {
        width: 40px;
        height: 40px;
    }
    
    .icon-wrapper i {
        font-size: 20px;
    }
    
    .item-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .item-description {
        font-size: 10px;
        line-height: 1.4;
    }
    
    .modal-content {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: 80vh;
        padding: 0 15px 15px 15px;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform 0.2s ease-out;
        will-change: transform;
    }
    
    .icon-info-modal.active .modal-content {
        transform: translateY(0);
    }
    
    .modal-header {
        padding: 15px 20px;
        border-radius: 20px 20px 0 0;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        font-size: 16px;
        padding: 15px 20px 20px 20px;
        overflow-y: auto;
        max-height: calc(80vh - 60px);
    }
    
    .modal-body h1 {
        font-size: 24px;
    }
    
    .modal-body h2 {
        font-size: 20px;
    }
    
    .modal-body h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .icon-info-grid {
        gap: 15px;
    }
    
    .icon-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .icon-wrapper .dashicons {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }
    
    .icon-wrapper img {
        width: 32px;
        height: 32px;
    }
    
    .icon-wrapper i {
        font-size: 16px;
    }
    
    .item-title {
        font-size: 14px;
        margin-bottom: 3px
    }
    
    .item-description {
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        color: #666;
    }
    
    .modal-content {
        padding: 0 15px 15px 15px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        font-size: 14px;
        padding: 15px;
    }
    
    .modal-body h1 {
        font-size: 20px;
    }
    
    .modal-body h2 {
        font-size: 18px;
    }
    
    .modal-body h3 {
        font-size: 16px;
    }
}

body.modal-open {
    overflow: hidden !important;
}




@media (max-width: 767px) {
    h3.item-title {
        text-align: center;
    }
}