/* 
  Custom List Icons Styles
  Extracted from inline PHP to improve performance and cacheability.
*/
.custom-list-icons {
    direction: rtl;
    text-align: right;
    width: 100%;
    overflow-wrap: break-word;
}

.custom-list-icons ul {
    padding-right: 0;
    padding-left: 0;
    list-style-type: none;
    margin: 1em 0;
}

.custom-list-icons ul li {
    margin-bottom: 0.8em;
    display: flex;
    align-items: flex-start;
    width: 100%;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.custom-list-icons ul li:hover {
    background-color: #f9fafb;
    /* Extremely subtle background */
    border-color: #bfc5ce;
    /* More prominent and visible border */
}

.custom-list-icons ul li .custom-list-icon,
.custom-list-icons ul li .custom-list-icon-svg {
    flex-shrink: 0;
    margin-left: 0.9em;
    margin-top: 0.2em;
    /* Adjusted due to li padding */
    width: 1.25em;
    height: 1.25em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    fill: currentColor;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-list-icons ul li:hover .custom-list-icon,
.custom-list-icons ul li:hover .custom-list-icon-svg {
    transform: scale(1.15);
    /* Slightly less scaling, no rotation */
}

.custom-list-item-content {
    flex: 1;
    min-width: 0;
    line-height: 1.7;
    font-size: 1rem;
    color: #4b5563;
    /* Refined gray for modern readability */
}

/* Heading protection for better readability */
.custom-list-item-content strong {
    display: inline-block;
    color: #111827;
    /* Near black for strong contrast */
    margin-bottom: 0.1em;
    font-weight: 700;
}

/* Desktop Optimization */
@media screen and (min-width: 1024px) {
    .custom-list-icons ul li {
        margin-bottom: 0.5em;
    }

    .custom-list-item-content {
        font-size: 1.05rem;
    }
}

/* Mobile & Tablet Optimization */
@media screen and (max-width: 768px) {
    .custom-list-icons ul li {
        margin-bottom: 1em;
        /* More breathing room on touch screens */
    }

    .custom-list-icons ul li .custom-list-icon,
    .custom-list-icons ul li .custom-list-icon-svg {
        margin-left: 0.6em;
        /* Slightly tighter for smaller screens */
    }
}

/* Fix for very small screens */
@media screen and (max-width: 480px) {
    .custom-list-item-content {
        font-size: 0.95rem;
    }
}