/* Featured Boxes Widget Styles */

.featured-boxes-container {
    width: 100%;
}

.featured-boxes-row {
    padding: 48px 0; /* default — overridden by inline styles from Row Settings */
    width: 100%;
}

.featured-boxes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Boxes per row variations */
.featured-boxes-row[data-boxes-per-row="1"] .featured-box {
    flex: 0 0 100%;
}

.featured-boxes-row[data-boxes-per-row="2"] .featured-box {
    flex: 0 0 calc(50% - 1rem);
}

.featured-boxes-row[data-boxes-per-row="3"] .featured-box {
    flex: 0 0 calc(33.333% - 1.334rem);
}

.featured-boxes-row[data-boxes-per-row="4"] .featured-box {
    flex: 0 0 calc(25% - 1.5rem);
}

/* Featured box */
.featured-box {
    padding: 2rem; /* default — overridden by inline styles from Row Settings */
    border-radius: 0;
}

/* Featured box with effects enabled */
.featured-box.box-with-effects {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-box.box-with-effects:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Featured box with effects disabled */
.featured-box.box-no-effects {
    box-shadow: none;
    transition: none;
}

/* Box title */
.box-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-weight: var(--weight-heading, 700);
    font-size: var(--box-title-size, 1.5rem);
    color: var(--box-title-color, var(--color-heading, #1f2937));
    margin-bottom: 1rem;
}

.box-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.box-title a:hover {
    color: var(--color-link-hover, #ef4444);
}

/* Box text */
.box-text,
.box-more-text {
    font-family: var(--font-body, 'Open Sans', sans-serif);
    font-weight: var(--weight-body, 400);
    font-size: var(--box-text-size, 1rem);
    color: var(--box-text-color, var(--color-body, #4b5563));
    line-height: 1.7;
    margin-bottom: 1rem;
}

.featured-box > *:last-child {
    margin-bottom: 0;
}

.box-more-text {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Read more button */
.read-more-btn {
    background-color: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #dc2626;
}

.read-more-btn i {
    font-size: 1.2rem;
}

/* Responsive design */
@media (max-width: 991px) {
    .featured-boxes-row[data-boxes-per-row="4"] .featured-box,
    .featured-boxes-row[data-boxes-per-row="3"] .featured-box {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 767px) {
    .featured-boxes-grid {
        gap: 1.5rem;
    }
    
    .featured-boxes-row[data-boxes-per-row="2"] .featured-box,
    .featured-boxes-row[data-boxes-per-row="3"] .featured-box,
    .featured-boxes-row[data-boxes-per-row="4"] .featured-box {
        flex: 0 0 100%;
    }
    
    .featured-box {
        padding: 1.5rem;
    }
}

@media (max-width: 575px) {
    .featured-boxes-grid {
        gap: 1rem;
    }
    
    .featured-box {
        padding: 1.25rem;
    }
}
