/**
 * Why Choose Us Widget Styles
 * 
 * Styles for the Elementor Why Choose Us widget
 *
 * @package Conventus
 * @since 1.0.0
 */

/* ============================================================
   MAIN WIDGET CONTAINER
   ============================================================ */

.elementor-why-choose-us-widget {
    width: 100%;
    padding: 20px 0;
}

.why-choose-us-header {
    text-align: center;
    margin-bottom: 50px;
}

.why-choose-us-header.text-left {
    text-align: left;
}

.why-choose-us-header.text-right {
    text-align: right;
}

.why-choose-us-subtitle {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.why-choose-us-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */

.why-choose-us-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: no-wrap;
}

.why-choose-us-left,
.why-choose-us-right {
    /*flex: 1;
    min-width: 250px;*/
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-choose-us-center {
   /* flex: 0 0 auto;
    text-align: center;
    max-width: 300px;*/
}

.why-choose-us-center img {
    max-width: 100%;
    height: auto;
    display: block;
}

.why-img-box2 {
    display: inline-block;
    width: 100%;
}

.why-img-box2 img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   STATISTIC CARDS
   ============================================================ */

.counter-card.style2 {
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.counter-card.style2 .media-body {
    text-align: center;
}

.counter-card.style2 .stat-number {
    margin: 0 0 15px 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: baseline;
}

.counter-card.style2 .stat-number span:last-child {
    font-size: 28px;
    font-weight: 600;
}

.counter-card.style2 .stat-text {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.why-choose-us-stat-item {
    animation: slideInUp 0.5s ease-out;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .why-choose-us-content {
        flex-direction: column;
        gap: 40px;
    }

    .why-choose-us-left,
    .why-choose-us-right {
        flex: 1 1 100%;
        min-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .why-choose-us-stat-item {
        flex: 1 1 calc(50% - 10px);
        min-width: 150px;
    }

    .why-choose-us-center {
        max-width: 100%;
        order: -1;
    }

    .why-choose-us-title {
        font-size: 28px;
    }

    .counter-card.style2 .stat-number {
        font-size: 36px;
    }

    .counter-card.style2 .stat-number span:last-child {
        font-size: 20px;
    }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
    .why-choose-us-header {
        margin-bottom: 30px;
    }

    .why-choose-us-content {
        gap: 20px;
    }

    .why-choose-us-left,
    .why-choose-us-right {
        flex-direction: column;
    }

    .why-choose-us-stat-item {
        flex: 1 1 100%;
    }

    .why-choose-us-subtitle {
        font-size: 12px;
    }

    .why-choose-us-title {
        font-size: 22px;
    }

    .counter-card.style2 .stat-number {
        font-size: 28px;
    }

    .counter-card.style2 .stat-number span:last-child {
        font-size: 16px;
    }

    .counter-card.style2 .stat-text {
        font-size: 14px;
    }

    .counter-card.style2 {
        padding: 15px;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}
