/* =========================================================
   REXMYZE WHY CHOOSE US STYLES
   Clean professional education design
   Primary: #0066FF | Dark: #0A0F1C | Border: #E2E8F0
========================================================= */

/* 1. WHY REXMYZE HERO */
.why-hero-section {
    position: relative;
    background: #FFFFFF;
    padding: 80px 24px 70px;
    overflow: hidden;
}

.why-hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    background: #F8FAFC;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
    z-index: 1;
}

.why-hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.why-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.why-hero-badge {
    display: inline-flex;
    align-items: center;
    background: #EFF6FF;
    color: #0066FF;
    border: 1px solid rgba(0, 102, 255, 0.15);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.why-hero-heading {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 800;
    color: #0A0F1C;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.why-hero-highlight {
    color: #0066FF;
    font-style: italic;
}

.why-hero-desc {
    font-size: 1.125rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 32px;
    border-left: 3px solid #0066FF;
    padding-left: 18px;
}

.why-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.why-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.why-hero-btn-prim {
    background: #0066FF;
    color: #FFFFFF !important;
    border: 1.5px solid #0066FF;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

.why-hero-btn-prim:hover {
    background: #0052cc;
    border-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.why-hero-btn-sec {
    background: #FFFFFF;
    color: #0A0F1C !important;
    border: 1.5px solid #E2E8F0;
}

.why-hero-btn-sec:hover {
    border-color: #0066FF;
    color: #0066FF !important;
    background: #F8FAFC;
    transform: translateY(-2px);
}

/* Hero Media Image with Play Button */
.why-hero-media {
    position: relative;
}

.why-hero-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #0066FF;
    box-shadow: 0 16px 40px rgba(0, 102, 255, 0.12);
    aspect-ratio: 4 / 3;
    background: #0A0F1C;
}

.why-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.why-hero-img-wrap:hover .why-hero-img {
    transform: scale(1.03);
}

.why-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 102, 255, 0.15);
    pointer-events: none;
}

.why-hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    text-decoration: none;
}

.why-hero-play-icon {
    color: #0066FF;
    margin-left: 3px;
    transition: transform 0.25s ease;
}

.why-hero-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4);
    background: #0066FF;
}

.why-hero-play-btn:hover .why-hero-play-icon {
    color: #FFFFFF;
}


/* 2. CORE PILLARS SECTION */
.why-pillars-section {
    background: #F8FAFC;
    padding: 80px 24px;
}

.why-pillars-container {
    max-width: 1200px;
    margin: 0 auto;
}

.why-pillars-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.why-pillars-heading {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    color: #0A0F1C;
    line-height: 1.2;
    margin-bottom: 14px;
}

.why-pillars-highlight {
    color: #0066FF;
    font-style: italic;
}

.why-pillars-desc {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.7;
}

.why-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.why-pillar-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 34px 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-pillar-card:hover {
    transform: translateY(-6px);
    border-color: #0066FF;
    box-shadow: 0 14px 32px rgba(0, 102, 255, 0.08);
}

.why-pillar-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: #FFFFFF;
    transition: transform 0.35s ease;
}

.why-pillar-card:hover .why-pillar-icon-box {
    transform: rotate(8deg);
}

.why-pillar-icon-box svg {
    color: #FFFFFF;
}

.why-pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A0F1C;
    margin-bottom: 12px;
    line-height: 1.35;
}

.why-pillar-text {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.65;
    font-style: italic;
    margin: 0;
}


/* 3. THE REXMYZE TRANSFORMATION */
.why-trans-section {
    background: #FFFFFF;
    padding: 70px 24px 90px;
}

.why-trans-container {
    max-width: 1140px;
    margin: 0 auto;
}

.why-trans-card {
    background: #FFFFFF;
    border: 3px solid #0066FF;
    border-radius: 26px;
    padding: 48px;
    box-shadow: 0 12px 36px rgba(0, 102, 255, 0.06);
}

.why-trans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.why-trans-heading {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #0A0F1C;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.why-trans-highlight {
    color: #0066FF;
    font-style: italic;
}

.why-trans-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-trans-check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.why-trans-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EFF6FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.why-trans-check-text {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0A0F1C;
    line-height: 1.5;
}

/* Comparison Stack */
.why-trans-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-trans-other-card {
    background: #F1F5F9;
    border-left: 4px solid #94A3B8;
    border-radius: 14px;
    padding: 24px;
    opacity: 0.85;
    transform: scale(0.98);
}

.why-trans-other-badge {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748B;
    margin-bottom: 8px;
}

.why-trans-other-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.why-trans-rex-card {
    position: relative;
    background: #0066FF;
    border-left: 4px solid #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.35);
    overflow: hidden;
}

.why-trans-rex-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -15px;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.why-trans-rex-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.why-trans-rex-text {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.6;
    margin: 0;
}


/* 4. RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) {
    .why-hero-bg-shape {
        display: none;
    }

    .why-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-hero-media {
        max-width: 580px;
        margin: 0 auto;
    }

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

    .why-trans-card {
        padding: 36px 28px;
    }

    .why-trans-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .why-hero-section {
        padding: 50px 16px 40px;
    }

    .why-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .why-hero-btn {
        width: 100%;
    }

    .why-pillars-section {
        padding: 50px 16px;
    }

    .why-pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .why-trans-section {
        padding: 50px 16px 60px;
    }

    .why-trans-card {
        padding: 28px 20px;
        border-radius: 18px;
    }
}
