/* Impact Services Blocks Styles */

/* Google Fonts should be loaded by theme or globally */

.isb-services-container {
    margin: 2rem 0;
    --isb-title-color: #FEBCB0;
    --isb-text-color: #141414;
    --isb-price-color: #FEBCB0;
    --isb-currency-color: #FEBCB0;
    --isb-border-color: #FEBCB0;
    --isb-border-color-rgb: 254, 188, 176;
}

.isb-category-header {
    margin-bottom: 2rem;
    text-align: start;
}

.isb-category-title {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: var(--isb-title-color, #FEBCB0);
    font-family: var(--wp--preset--font-family--tajawal), 'Playfair Display', serif;
}

.isb-services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.isb-layout-list .isb-services-grid {
    grid-template-columns: 1fr;
}

.isb-service-card {
    background: #ffffff;
    border: 2px solid var(--isb-border-color, #FEBCB0);
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(var(--isb-border-color-rgb, 254, 188, 176), 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.isb-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(var(--isb-border-color-rgb, 254, 188, 176), 0.25);
}

.isb-service-content {
    display: flex;
    align-items: center;
    padding: 2rem;
    min-height: 50px;
}

.isb-service-info {
    flex: 1;
    margin-inline-end: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.isb-service-title {
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--isb-title-color, #FEBCB0);
    font-family: var(--wp--preset--font-family--tajawal), 'Manrope', sans-serif;
    line-height: 1.2;
}

.isb-service-description {
    margin: 0;
    color: var(--isb-text-color, #141414);
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: var(--wp--preset--font-family--tajawal), 'Manrope', sans-serif;
    font-weight: 400;
}

.isb-service-pricing {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    margin-inline-start: auto;
}

.isb-price-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.isb-service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--isb-price-color, #FEBCB0);
    font-family: var(--wp--preset--font-family--tajawal), 'Manrope', sans-serif;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.isb-service-currency {
    font-size: 0.8rem;
    color: var(--isb-currency-color, #FEBCB0);
    font-family: var(--wp--preset--font-family--tajawal), 'Manrope', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.isb-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
    text-align: center;
}

/* Arabic/RTL Support */
[data-language="ar"] .isb-services-container {
    direction: rtl;
}

[data-language="ar"] .isb-category-header {
    text-align: right;
}

[data-language="ar"] .isb-category-title {
    text-align: right;
}

[data-language="ar"] .isb-service-card {
    direction: rtl;
    text-align: right;
}

[data-language="ar"] .isb-service-content {
    direction: rtl;
}

[data-language="ar"] .isb-service-info {
    margin-inline-end: 0;
    margin-inline-start: 2rem;
    text-align: right;
}

[data-language="ar"] .isb-service-title {
    text-align: right;
}

[data-language="ar"] .isb-service-description {
    text-align: right;
}

/* Specific RTL class for Arabic layouts */
.isb-rtl {
    direction: rtl !important;
    text-align: right !important;
}

.isb-rtl .isb-service-content {
    direction: rtl !important;
}

.isb-rtl .isb-service-info {
    margin-inline-end: 0 !important;
    margin-inline-start: 2rem !important;
    text-align: right !important;
}

.isb-rtl .isb-service-title {
    text-align: right !important;
}

.isb-rtl .isb-service-description {
    text-align: right !important;
}

/* Responsive Design */
@media (max-width: 767px) {
    .isb-services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .isb-category-title {
        font-size: 2rem;
    }
    
    .isb-service-content {
        padding: 1rem;
        min-height: 50px;
    }
    
    .isb-service-info {
        margin-inline-end: 1.5rem;
    }
    
    .isb-rtl .isb-service-info {
        margin-inline-end: 0 !important;
        margin-inline-start: 1.5rem !important;
    }
    
    .isb-service-title {
        font-size: 1.1rem;
    }
    
    .isb-service-description {
        font-size: 0.9rem;
    }
    
    .isb-service-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .isb-service-content {
        /* flex-direction: column;
        text-align: center; */
        padding: 1rem;
    }
    
    .isb-service-info {
        margin-inline-end: 0;
        margin-bottom: 1rem;
        /* text-align: center; */
    }
    
    .isb-rtl .isb-service-info {
        margin-inline-start: 0 !important;
        /* text-align: center !important; */
    }
}


/* Loading State */
.isb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #666;
}

.isb-loading::before {
    content: "";
    width: 24px;
    height: 24px;
    border: 2px solid var(--isb-border-color, #FEBCB0);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: isb-spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes isb-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}