/**
 * Infinity Classes - Why Choose Us Stylesheet
 * Pixel-perfect recreation of Science Sangrah reference design
 */

/* Container and Structure */
.why-us-section {
    background-color: #ffffff;
    padding: 50px 16px;
    width: 100%;
}

@media (min-width: 1024px) {
    .why-us-section {
        padding: 90px 24px;
    }
}

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

/* Left Side: Image Card with Decorative Offset Border */
.why-us-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 512px;
    margin: 0 auto;
}

.why-us-offset-border {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 1.5px solid #FF4B0B;
    background: transparent;
    z-index: 0;
    transform: translate(15px, 15px);
    pointer-events: none;
    transition: transform 0.4s ease;
}

.why-us-image-wrapper:hover .why-us-offset-border {
    transform: translate(18px, 18px);
}

.why-us-image-container {
    position: relative;
    width: 100%;
    height: 640px;
    border-radius: 22px;
    overflow: hidden;
    background-color: #0B0F19;
    z-index: 10;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1024px) {
    .why-us-image-container {
        height: 520px;
    }
}

@media (max-width: 640px) {
    .why-us-image-container {
        height: 440px;
    }
}

.why-us-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-us-image-wrapper:hover .why-us-main-img {
    transform: scale(1.0);
}

/* Floating Statistics Card */
.why-us-floating-card {
    position: absolute;
    width: 202px;
    height: 95px;
    background: #ffffff;
    border-radius: 13px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(243, 244, 246, 0.95);
    left: -25px;
    bottom: 30px;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 16px 18px;
    gap: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

@media (min-width: 1280px) {
    .why-us-floating-card {
        left: -30px;
    }
}

@media (max-width: 640px) {
    .why-us-floating-card {
        left: 14px;
        bottom: 18px;
        width: 190px;
        height: 86px;
        padding: 12px 16px;
    }
}

.why-us-floating-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.why-us-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #FFF5ED;
    color: #FF4B0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.why-us-stat-num {
    font-size: 25px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    letter-spacing: -0.02em;
}

.why-us-stat-label {
    font-size: 12px;
    color: #7B8492;
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.2;
}

/* Right Side: Typography & Badges */
.why-us-badge {
    display: inline-flex;
    align-items: center;
    background-color: #FFF5ED;
    color: #FF4B0B;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 9999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.why-us-heading {
    font-size: 38px;
    font-weight: 900;
    color: #111827;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-top: 14px;
    margin-bottom: 22px;
}

@media (min-width: 768px) {
    .why-us-heading {
        font-size: 46px;
    }
}

@media (min-width: 1024px) {
    .why-us-heading {
        font-size: 50px;
    }
}

/* Pro Highlight Styles for Education in Bihar */
.why-us-brush-highlight {
    background: transparent;
    color: inherit;
    padding: 0;
    box-shadow: none;
    clip-path: none;
    transform: none;
}

/* Paragraphs */
.why-us-intro-p {
    font-size: 17px;
    color: #4B5563;
    line-height: 1.7;
    max-width: 540px;
}

.why-us-highlight-word {
    color: #FF4B0B;
    font-weight: 700;
}

.why-us-support-p {
    font-size: 15px;
    color: #7B8492;
    line-height: 1.8;
    margin-top: 20px;
    max-width: 540px;
}

/* Key Advantages Checklist */
.why-us-advantages-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 26px;
    margin-bottom: 32px;
}

.why-us-advantage-item {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.why-us-advantage-item:hover {
    transform: translateX(4px);
}

.why-us-advantage-icon {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background-color: #E8F8F0;
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.why-us-advantage-item:hover .why-us-advantage-icon {
    background-color: #FF4B0B;
    color: #ffffff;
}

.why-us-advantage-text {
    font-size: 15.5px;
    font-weight: 500;
    color: #111827;
    transition: color 0.2s ease;
}

.why-us-advantage-item:hover .why-us-advantage-text {
    color: #FF4B0B;
}

/* Call to Action Button */
.why-us-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 263px;
    height: 53px;
    background-color: #FF4B0B;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    padding: 15px 26px;
    box-shadow: 0 10px 24px rgba(255, 75, 11, 0.28);
    transition: all 0.25s ease;
    text-decoration: none;
}

@media (max-width: 640px) {
    .why-us-cta-btn {
        width: 100%;
        max-width: 100%;
    }
}

.why-us-cta-btn:hover {
    background-color: #E03E0B;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(255, 75, 11, 0.38);
}

.why-us-cta-btn i {
    transition: transform 0.25s ease;
}

.why-us-cta-btn:hover i {
    transform: translateX(4px);
}

/* Scroll Animation Transitions */
.why-us-anim-fade-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-us-anim-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-us-anim-fade-left.is-visible,
.why-us-anim-fade-up.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .why-us-anim-fade-left,
    .why-us-anim-fade-up,
    .why-us-main-img,
    .why-us-cta-btn,
    .why-us-floating-card {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
