/**
 * Why Choose Us Section Styles
 * Brand: medicalcounseling.in
 */

/* ===================================
   Why Choose Us Section
   =================================== */
.medical-why-choose-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F8FAFB 0%, #E8F5F1 100%);
    position: relative;
    overflow: hidden;
}

.medical-why-choose-section::before {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 61, 100, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

/* Section Header */
.medical-why-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.medical-why-header .section-badge {
    display: inline-block;
    background: rgba(46, 139, 87, 0.1);
    color: var(--medical-green);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.medical-why-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--medical-navy);
    margin-bottom: 16px;
}

.medical-why-header h2 span {
    color: var(--medical-green);
}

.medical-why-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Grid */
.medical-why-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Feature Card */
.medical-why-feature {
    background: var(--pure-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.medical-why-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.medical-why-feature:hover::before {
    transform: scaleX(1);
}

.medical-why-feature:hover {
    border-color: var(--medical-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 61, 100, 0.12);
}

/* Feature Icon */
.medical-why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.1) 0%, rgba(15, 61, 100, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.medical-why-feature:hover .medical-why-icon {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(5deg);
}

.medical-why-icon i {
    font-size: 36px;
    color: var(--medical-green);
    transition: all 0.4s ease;
}

.medical-why-feature:hover .medical-why-icon i {
    color: var(--pure-white);
}

/* Feature Content */
.medical-why-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--medical-navy);
    margin-bottom: 12px;
}

.medical-why-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats Section */
.medical-why-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Stat Card */
.medical-why-stat {
    background: var(--pure-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.medical-why-stat:hover {
    border-color: var(--medical-green);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 61, 100, 0.1);
}

.medical-why-stat-icon {
    font-size: 48px;
    color: var(--medical-green);
    margin-bottom: 16px;
    transition: all 0.4s ease;
}

.medical-why-stat:hover .medical-why-stat-icon {
    transform: scale(1.2);
}

.medical-why-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--medical-navy);
    margin-bottom: 8px;
}

.medical-why-stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* CTA Card */
.medical-why-cta {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.medical-why-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.medical-why-cta-content {
    flex: 1;
    color: var(--pure-white);
}

.medical-why-cta-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 12px;
}

.medical-why-cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.6;
}

.medical-why-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.medical-why-cta-btn-primary {
    padding: 14px 28px;
    background: var(--pure-white);
    color: var(--medical-green);
    border: 2px solid var(--pure-white);
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.medical-why-cta-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.medical-why-cta-btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.medical-why-cta-btn-secondary:hover {
    background: var(--pure-white);
    color: var(--medical-green);
}

.medical-why-cta-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.medical-why-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1199px) {
    .medical-why-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .medical-why-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .medical-why-choose-section {
        padding: 60px 0;
    }

    .medical-why-header h2 {
        font-size: 36px;
    }

    .medical-why-cta {
        flex-direction: column;
        padding: 40px 32px;
    }

    .medical-why-cta-content h3 {
        font-size: 28px;
    }

    .medical-why-cta-image {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .medical-why-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .medical-why-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .medical-why-header h2 {
        font-size: 32px;
    }

    .medical-why-header p {
        font-size: 16px;
    }

    .medical-why-feature {
        padding: 24px 20px;
    }

    .medical-why-cta {
        padding: 32px 24px;
    }

    .medical-why-cta-content h3 {
        font-size: 24px;
    }

    .medical-why-cta-buttons {
        flex-direction: column;
    }

    .medical-why-cta-btn-primary,
    .medical-why-cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.medical-why-feature,
.medical-why-stat {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.medical-why-feature:nth-child(1) {
    animation-delay: 0.1s;
}

.medical-why-feature:nth-child(2) {
    animation-delay: 0.2s;
}

.medical-why-feature:nth-child(3) {
    animation-delay: 0.3s;
}

.medical-why-feature:nth-child(4) {
    animation-delay: 0.4s;
}

.medical-why-feature:nth-child(5) {
    animation-delay: 0.5s;
}

.medical-why-feature:nth-child(6) {
    animation-delay: 0.6s;
}

.medical-why-stat:nth-child(1) {
    animation-delay: 0.1s;
}

.medical-why-stat:nth-child(2) {
    animation-delay: 0.2s;
}

.medical-why-stat:nth-child(3) {
    animation-delay: 0.3s;
}

.medical-why-stat:nth-child(4) {
    animation-delay: 0.4s;
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.medical-why-stat-number {
    animation: countUp 0.8s ease forwards;
}