/* 
 * Khadim Hospital - Redesigned About Section (Dark Navy & Teal Theme)
 * Layout: Two-Column Grid (Left: Text, Eyebrow, Heading, Paragraph, 2-Col Checklist, CTA Button; Right: Real Photo Frame + Floating Badge + 2x2 Upgraded Stat Cards Grid)
 */

.why-section {
    padding: 6rem 0;
    background: #EFF6F5 !important;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #0A1F3D !important;
    box-sizing: border-box;
}

/* Faint Blurred Radial Teal Glow behind stat cards */
.why-radial-glow {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 1;
}

.why-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Left Text & Features Column */
.why-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
}

/* Eyebrow Label */
.why-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.eyebrow-line {
    width: 24px;
    height: 2px;
    background: #0D9488 !important;
    border-radius: 2px;
    box-shadow: none;
}

.eyebrow-text {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0D9488 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Section Title */
.why-section-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.18;
    color: #0A1F3D !important;
    margin: 0;
    letter-spacing: -0.4px;
}

.text-teal-gradient {
    background: linear-gradient(135deg, #0D9488 0%, #0284C7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: none;
}

/* Paragraph */
.why-text-paragraph p {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569 !important;
    margin: 0;
}

/* 2-Column Checklist */
.why-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    width: 100%;
    margin: 0.4rem 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569 !important;
    transition: transform 0.3s ease, color 0.3s ease;
}

.checklist-item:hover {
    transform: translateX(4px);
    color: #0A1F3D !important;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.12) !important;
    border: 1px solid rgba(13, 148, 136, 0.35) !important;
    color: #0D9488 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

.check-icon svg {
    width: 13px;
    height: 13px;
}

/* CTA Button */
.why-cta-wrapper {
    margin-top: 0.5rem;
}

.why-learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.8rem;
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: #FFFFFF !important;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid rgba(45, 212, 191, 0.3);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.why-learn-more-btn:hover {
    transform: scale(1.03) translateY(-2px);
    background: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 100%);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.5);
}

.why-learn-more-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Right Column Visual Content */
.why-visual-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* Real Image Frame with Ken Burns Effect */
.why-image-wrapper {
    position: relative;
    width: 100%;
}

.why-image-frame {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0A1628;
    border: 1px solid rgba(20, 184, 166, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(20, 184, 166, 0.1);
}

.why-real-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-in-out;
    pointer-events: none;
}

.why-real-photo.active {
    opacity: 1;
    transform: scale(1.06);
    pointer-events: auto;
}

/* Floating Glassmorphism Badge */
.why-floating-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: rgba(15, 41, 66, 0.85);
    border: 1px solid rgba(45, 212, 191, 0.4);
    border-radius: 9999px;
    padding: 0.65rem 1.35rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 10px rgba(20, 184, 166, 0.1);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    z-index: 10;
}

.float-badge-anim {
    animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.badge-dot-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2DD4BF;
    box-shadow: 0 0 10px #2DD4BF;
    animation: dotPulseGlow 1.5s infinite;
}

@keyframes dotPulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.badge-text-group {
    display: flex;
    flex-direction: column;
}

.badge-number {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
}

.badge-label {
    font-size: 0.72rem;
    color: #2DD4BF;
    font-weight: 600;
}

/* 2x2 Stat Cards Grid */
.why-cards-container {
    width: 100%;
}

.why-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Glassmorphic Upgraded Stat Cards */
.why-card {
    background: #F8FAFC !important;
    border: 1px solid rgba(13, 148, 136, 0.2) !important;
    border-radius: 1.1rem;
    padding: 1.35rem 1.25rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow: hidden;
    box-sizing: border-box;
}

/* Top Accent Line */
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0D9488, #0284C7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon Wrapper */
.why-card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(13, 148, 136, 0.12) !important;
    border: 1px solid rgba(13, 148, 136, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D9488 !important;
    transition: all 0.3s ease;
}

.icon-pulse {
    animation: none;
}

.why-card-icon-wrapper svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.stat-number {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #0A1F3D !important;
    line-height: 1;
    margin: 0;
    text-shadow: none !important;
}

.stat-number span.counter-value {
    color: #0D9488 !important;
}

.stat-label {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0A1F3D !important;
    margin: 0;
}

.stat-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: #64748B !important;
    margin: 0;
}

/* Floating Animation Cards */
@keyframes whyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.why-card.float-1 { animation: whyFloat 5.5s ease-in-out infinite; }
.why-card.float-2 { animation: whyFloat 5.5s ease-in-out infinite; animation-delay: -1.4s; }
.why-card.float-3 { animation: whyFloat 5.5s ease-in-out infinite; animation-delay: -2.8s; }
.why-card.float-4 { animation: whyFloat 5.5s ease-in-out infinite; animation-delay: -4.2s; }

/* Card Hover Effects */
.why-card:hover {
    transform: translateY(-4px) !important;
    background: rgba(15, 41, 66, 0.85);
    border-color: rgba(45, 212, 191, 0.5);
    box-shadow: 0 15px 35px rgba(20, 184, 166, 0.2);
}

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

.why-card:hover .why-card-icon-wrapper {
    background: #14B8A6;
    color: #FFFFFF;
    transform: scale(1.08);
}

/* Scroll Reveal Initial & Triggered States */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-cascade {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.delay-c1 { transition-delay: 0.08s; }
.delay-c2 { transition-delay: 0.16s; }
.delay-c3 { transition-delay: 0.24s; }
.delay-c4 { transition-delay: 0.32s; }
.delay-c5 { transition-delay: 0.40s; }
.delay-c6 { transition-delay: 0.48s; }

.delay-card-1 { transition-delay: 0.1s; }
.delay-card-2 { transition-delay: 0.25s; }
.delay-card-3 { transition-delay: 0.4s; }
.delay-card-4 { transition-delay: 0.55s; }

.revealed .reveal-fade-up,
.revealed .reveal-slide-right,
.revealed .reveal-cascade {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Mobile & Tablet Responsive Layout */
@media (max-width: 991px) {
    .why-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .why-text-content {
        align-items: center;
        text-align: center;
    }
    .why-eyebrow {
        justify-content: center;
    }
    .why-section-title {
        font-size: 2.1rem;
        text-align: center;
    }
    .why-text-paragraph p {
        text-align: center;
    }
    .why-checklist {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }
    .checklist-item {
        justify-content: flex-start;
    }
    .why-cta-wrapper {
        align-self: center;
    }
    .why-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .why-checklist {
        grid-template-columns: 1fr;
    }
    .why-image-frame {
        height: 200px;
    }
    .why-floating-badge {
        right: 10px;
        bottom: -12px;
        padding: 0.5rem 1rem;
    }
    .badge-number {
        font-size: 0.85rem;
    }
    .badge-label {
        font-size: 0.68rem;
    }
}

/* Accessibility Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .reveal-fade-up, .reveal-slide-right, .reveal-cascade {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .why-real-photo,
    .float-badge-anim,
    .why-card.float-1, .why-card.float-2, .why-card.float-3, .why-card.float-4,
    .icon-pulse,
    .badge-dot-pulse {
        animation: none !important;
        transform: none !important;
    }
    .why-card:hover,
    .why-learn-more-btn:hover {
        transform: none !important;
    }
}