/* AlloDentiste Features Widget Styles */

.allo-features-widget {
    background-color: #F5F5F5;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.features-container {
    margin: 0 auto;
    padding-left: max(var(--allo-gutter), calc((100% - 1400px) / 2));
    padding-right: 0;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

/* Header Section */
.features-header {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 var(--allo-gutter);
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.features-header-content {
    flex: 0 0 35%;
    max-width: 400px;
    padding-right: 60px;
    position: relative;
}

.features-top-text {
    font-size: 18px;
    font-style: italic;
    color: #666666;
    margin-bottom: 20px;
    font-weight: 400;
}

.features-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1A1A1A;
    margin: 0 0 40px 0;
}

.features-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 4px 5px 4px 10px;
    background-color: #00A1AD;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.features-button::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: #FFFFFF;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11L11 5M11 5H5M11 5V11' stroke='%2300A1AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.features-button:hover {
    background-color: #008A94;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 161, 173, 0.3);
}

/* Navigation */
.features-navigation {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-top: 0;
}

.features-nav-button {
    width: 48px;
    height: 48px;
    border: none;
    background-color: #00A1AD !important;
    color: #FFFFFF !important;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.features-nav-button:hover,
.features-nav-button:focus {
    background-color: #008A94 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 161, 173, 0.3);
    outline: none;
}

.features-nav-button:active {
    transform: scale(0.95);
}

.features-nav-button svg {
    width: 24px;
    height: 24px;
}

/* Carousel */
.features-carousel {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    padding-right: 0;
}

.features-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feature Cards */
.feature-card {
    flex: 0 0 auto;
    width: clamp(320px, 45%, 550px);
    background-color: #f5f2ef;
    padding: 100px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 280px;
}

/* Alternating background colors for odd/even cards */
.feature-card:nth-child(even) {
    background-color: #D4F1F4;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #1A1A1A;
    margin: 0 0 20px 0;
}

.feature-card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-heading {
        font-size: 40px;
    }
    
    .features-header {
        margin-bottom: 40px;
    }
    
    .features-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        padding-right: 20px;
        gap: 40px;
    }
    
    .features-header-content {
        padding-right: 0;
        max-width: 100%;
    }
    
    .features-carousel {
        width: 100%;
        padding-right: 0;
    }
    
    .feature-card {
        width: clamp(280px, 80%, 500px);
    }
    
    .feature-card-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .allo-features-widget {
        padding: 60px 0;
    }
    
    .features-header {
        margin-bottom: 30px;
    }
    
    .features-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .features-header-content {
        flex: 1;
        max-width: 100%;
        padding-right: 0;
    }
    
    .features-navigation {
        padding-top: 0;
    }
    
    .features-heading {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .features-top-text {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .features-button {
        padding: 4px 5px 4px 10px;
        font-size: 15px;
    }
    
    .features-button::after {
        width: 28px;
        height: 28px;
    }
    
    .feature-card {
        width: clamp(260px, 85%, 400px);
        padding: 40px 30px;
    }
    
    .feature-card-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .feature-card-description {
        font-size: 15px;
    }
    
    .features-carousel-track {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .features-heading {
        font-size: 28px;
    }
    
    .feature-card {
        width: clamp(240px, 90%, 350px);
        padding: 40px 25px;
    }
    
    .features-nav-button {
        width: 44px;
        height: 44px;
    }
}
