.hero {
    width: 100%;
    padding: 3rem 0 2rem;
    background: linear-gradient(to bottom,
            rgba(155, 123, 255, 0.22) 0%,
            rgba(255, 255, 255, 1) 60%);
    display: flex;
    align-items: center;
}

.hero {
    margin-top: 65px;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-left {
    flex: 1;
    text-align: left;
}

.hero-left h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #6C63FF;
    margin-bottom: 1rem;
}

.hero-left h1 .purple {
    color: #6C63FF;
}

.hero-left p {
    font-size: 1.25rem;
    color: #6A4CFF;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(135deg, #6A4CFF 0%, #4F3CFF 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1),
        box-shadow .32s cubic-bezier(.4, 0, .2, 1),
        border-radius .45s ease,
        border-color .3s ease,
        border-width .3s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.12);
    overflow: visible;
}

.hero-image-wrapper:hover {
    transform: translateY(-4px) scale(1.012) rotateX(1deg);
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.18);
    border-width: 2px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24),
        0 8px 20px rgba(0, 0, 0, 0.16);
}

.hero-image-wrapper::before {
    content: "";
    position: absolute;
    inset: -16px;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(108, 99, 255, 0.35), transparent 70%);
    z-index: -1;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.4, 0, .2, 1);
}

.hero-image-wrapper:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.hero-image {
    width: 360px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

.why-learn-with-me {
    max-width: 1200px;
    margin: 20px auto;
    padding: 2rem;
    background: rgba(108, 99, 255, 0.04);
    border-radius: 20px;
    text-align: center;
}

.learn-title {
    font-size: 2rem;
    font-weight: 700;
    color: #6C63FF;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.value-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-item {
    padding: 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease;
}

.value-item:hover {
    transform: translateY(-4px);
}

.testimonial-scroller {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 20px;
    padding: 20px 0 20px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 20px;
}

.testimonial-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #6C63FF;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.scroller-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollInfinite 110s linear infinite;
    will-change: transform;
}

.scroller-track2 {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollInfinite 80s linear infinite;
    animation-direction: reverse;
    will-change: transform;
}

.scroller-track3 {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollInfinite 70s linear infinite;
    will-change: transform;
}

.testimonial-card {
    background: #ffffff;
    padding: 20px 28px;
    border-radius: 16px;
    min-width: 260px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #6A4CFF;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    position: relative;
}

.testimonial-card::before,
.testimonial-card::after {
    font-family: Georgia, serif;
    font-size: 2rem;
    color: #6C63FF;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    top: 10px;
}

.testimonial-card::before {
    content: "“";
    left: 10px;
}

.testimonial-card::after {
    content: "”";
    right: 10px;
}

@keyframes scrollInfinite {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-right {
        margin-top: 30px;
    }

    .testimonial-scroller {
        padding: 20px 0;
    }

    .testimonial-card {
        min-width: 220px;
    }
}


.pathway-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .pathway-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pathway-cards {
        grid-template-columns: 1fr;
    }
}

.pathway-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 2rem 1.8rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.pathway-card::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}

.pathway-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.pathway-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.pathway-card h3 {
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
}

.pathway-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.pathway-arrow {
    margin-top: 1rem;
    font-weight: 600;
    color: #6C63FF;
    font-size: 0.95rem;
    transition: opacity 0.25s ease;
}

.pathway-card:hover .pathway-arrow {
    opacity: 0.8;
}

.pathway-card.beginners {
    background: linear-gradient(135deg, #F3F0FF, #E8E4FF);
}

.pathway-card.beginners .pathway-icon i {
    color: #6C63FF;
}

.pathway-card.gcse {
    background: linear-gradient(135deg, #F0F7FF, #E3EEFF);
}

.pathway-card.gcse .pathway-icon i {
    color: #3A7BFF;
}

.pathway-card.alevel {
    background: linear-gradient(135deg, #FFF4F0, #FFE8E1);
}

.pathway-card.alevel .pathway-icon i {
    color: #FF7A50;
}

.pathway-card.uni {
    background: linear-gradient(135deg, #F0FFF7, #E3FFEF);
}

.pathway-card.uni .pathway-icon i {
    color: #2ECC71;
}

.pathway-card.travel {
    background: linear-gradient(135deg, #FFFBEF, #FFF4D9);
}

.pathway-card.travel .pathway-icon i {
    color: #F4B400;
}

.pathway-card.business {
    background: linear-gradient(135deg, hwb(303 40% 7% / 0.185), hsla(295, 86%, 60%, 0.123));
}

.pathway-card.business .pathway-icon i {
    color: #ff46ff;
}

.page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
    padding-top: 1rem;
}

.pathway-card:hover .pathway-icon i {
    filter: drop-shadow(0 0 4px currentColor);
    transform: scale(1.05);
    transition: filter 0.25s ease, transform 0.25s ease;
}