/* ==========================================================================
   KAY Scholar - Modern Why Choose Us Section
   Matches Reference: Left Arch Portal Window + Right 2x2 Feature Cards Grid
   Styled in KAY Scholar's Brand Color Theme & Typography
   ========================================================================== */

.wpo-choose-section.modern-choose-section {
    position: relative;
    padding: 100px 0 105px;
    background:
        radial-gradient(ellipse at 8% 25%, rgba(209, 150, 251, 0.15), transparent 38%),
        radial-gradient(ellipse at 92% 75%, rgba(133, 95, 235, 0.13), transparent 38%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.95), transparent 70%),
        linear-gradient(135deg, rgba(249, 247, 255, 0.98), rgba(250, 249, 255, 0.94));
    overflow: hidden;
}

/* Background ambient blur orb */
.modern-choose-section::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 80, 232, 0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.modern-choose-wrap {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   Left Column: Arch Portal Frame
   -------------------------------------------------------------------------- */
.choose-arch-wrapper {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    padding: 16px 12px;
    display: flex;
    justify-content: center;
}

/* Outer decorative arch halo / ring */
.choose-arch-halo {
    position: absolute;
    inset: 4px -6px -4px -6px;
    border-radius: 230px 230px 48px 48px;
    border: 1.5px solid rgba(120, 80, 232, 0.22);
    pointer-events: none;
    opacity: 0.75;
}

/* The Arch Window Container */
.choose-arch-card {
    position: relative;
    width: 100%;
    max-width: 410px;
    height: 520px;
    border-radius: 215px 215px 38px 38px;
    border: 9px solid #ffffff;
    box-shadow:
        0 24px 60px rgba(120, 80, 232, 0.14),
        0 6px 18px rgba(35, 20, 70, 0.05);
    overflow: hidden;
    background: linear-gradient(180deg, #ede9fe 0%, #ddd6fe 45%, #c4b5fd 100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.choose-arch-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 30px 75px rgba(120, 80, 232, 0.19),
        0 8px 22px rgba(35, 20, 70, 0.07);
}

.choose-arch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.choose-arch-card:hover .choose-arch-img {
    transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Right Column: Content & 2x2 Feature Cards Grid
   -------------------------------------------------------------------------- */
.choose-content-wrapper {
    padding-left: 28px;
    text-align: left;
}

/* Pill Badge */
.choose-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(120, 80, 232, 0.08);
    border: 1px solid rgba(120, 80, 232, 0.18);
    box-shadow: none;
    margin-bottom: 16px;
}

.choose-pill-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7850e8;
    box-shadow: 0 0 6px rgba(120, 80, 232, 0.5);
}

.choose-pill-badge .badge-label {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    color: #6d28d9;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Heading */
.choose-heading {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 44px;
    line-height: 1.18;
    font-weight: 800;
    color: #1a103c;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    text-align: left;
}

.choose-heading span {
    font-family: 'Instrument Serif', 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 1.15em !important;
    background: linear-gradient(90deg, #7850e8 0%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.2px;
    display: inline-block;
}

/* Subtitle intro paragraph */
.choose-intro-text {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15.5px;
    line-height: 1.7;
    color: #64607d;
    margin-bottom: 28px;
    max-width: 560px;
    text-align: left;
}

/* 2x2 Feature Cards Grid */
.choose-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 580px;
}

/* Individual Feature Card */
.choose-feature-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 24px 22px;
    border: 1px solid rgba(120, 80, 232, 0.08);
    box-shadow:
        0 12px 30px rgba(120, 80, 232, 0.06),
        0 2px 6px rgba(35, 20, 70, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.choose-feature-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 22px 46px rgba(120, 80, 232, 0.13),
        0 4px 12px rgba(35, 20, 70, 0.04);
    border-color: rgba(120, 80, 232, 0.24);
}

/* Squircle Icon Badges */
.card-squircle-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
    color: #ffffff;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.choose-feature-card:hover .card-squircle-icon {
    transform: scale(1.08);
}

/* Rich Vibrant Variations matching Reference Image */
.icon-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
}

.icon-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
}

.icon-blue {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}

.icon-pink {
    background: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.28);
}

/* Card Typography */
.card-feature-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17.5px;
    font-weight: 700;
    color: #1a103c;
    margin: 0 0 6px;
    line-height: 1.25;
    text-align: left;
}

.card-feature-desc {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    color: #64607d;
    margin: 0;
    text-align: left;
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .choose-heading {
        font-size: 38px;
    }
    .choose-arch-card {
        max-width: 360px;
        height: 470px;
    }
    .choose-cards-grid {
        gap: 14px;
    }
    .choose-feature-card {
        padding: 20px 18px;
    }
}

@media (max-width: 991px) {
    .wpo-choose-section.modern-choose-section {
        padding: 70px 0;
    }
    .choose-arch-wrapper {
        margin-bottom: 45px;
    }
    .choose-content-wrapper {
        padding-left: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .choose-heading,
    .choose-intro-text {
        text-align: center;
    }
    .choose-intro-text,
    .choose-cards-grid {
        max-width: 100%;
        width: 100%;
    }
    .choose-feature-card {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .wpo-choose-section.modern-choose-section {
        padding: 55px 0;
    }
    .choose-heading {
        font-size: 30px;
    }
    .choose-arch-card {
        max-width: 290px;
        height: 370px;
        border-width: 7px;
        border-radius: 170px 170px 30px 30px;
    }
    .choose-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .choose-feature-card {
        padding: 18px 16px;
    }
    .card-feature-title {
        font-size: 16.5px;
    }
    .card-feature-desc {
        font-size: 13px;
    }
}
