:root {
    --jb-red: #5BA69C;
    --jb-red-dark: #5BA69C;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* --- Layout base + overflow guard --- */
html,
body {
    width: 100%;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navbar */
.navbar .btn-get-started {
    background: var(--jb-red);
    color: #fff;
    border: none;
}

.navbar .btn-get-started:hover {
    background: var(--jb-red-dark);
}

/* Navbar base */
.navbar-brand img {
    max-height: 60px;
    height: auto;
    width: auto;
}

/* Hero */
.hero {
    background: var(--jb-red);
    color: #fff;
    padding-top: 7rem;
}

.hero .headline {
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1.2;
    font-size: clamp(2rem, 2vw + 1rem, 2.2rem);
    margin-bottom: 0.5rem;
}

.hero .subtext {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5rem;
    text-align: center;
    display: block;
    font-size: clamp(1rem, .9vw + .9rem, 1.25rem);
    opacity: .95;
}

.jb-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    padding: .5rem .9rem;
    border-radius: 2rem;
    font-weight: 600;
    backdrop-filter: saturate(140%) blur(2px);
}

.btn-outline-light.jb {
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: #000;
    border-width: 2px;
}

.stats {
    border-top: 1px solid rgba(255, 255, 255, .25);
}

.stat-number {
    font-weight: 800;
    font-size: clamp(1.6rem, 2.2vw + .6rem, 2.4rem);
}

.stat-label {
    opacity: .9;
}

.brand-dot {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--jb-red);
    font-weight: 900;
    margin-right: .5rem;
}

/* Phone frame */
.phone-frame {
    width: min(72vw, 340px);
    aspect-ratio: 300 / 620;
    margin: 0 auto;
    border: 12px solid #000;
    border-radius: 42px;
    background: #111;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-frame .screen {
    width: 50%;
    height: 50%;
    overflow-y: auto;
    overflow-x: hidden;
}

.phone-frame .screen img {
    width: 100%;
    height: 80%;
    object-fit: unset;
    display: block;
}

.phone-hero {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* center */
    transform: translateX(15px);
    /* thoda right shift */
}



.phone-mockup .screen {
    display: none;
}

.phone-mockup .screen.active {
    display: block;
}

/* Screen wrapper */
.phone-frame .screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    display: block;
}

/* Slideshow */
.hslides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hslide {
    display: none;
    width: 100%;
    height: 100%;
}

.hslide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Dots */
.h-dots {
    text-align: center;
    padding: 12px 0 0;
}

.h-dot {
    height: 10px;
    width: 10px;
    margin: 0 3px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color .3s ease;
}

.h-dot.is-active {
    background-color: #333;
}


.step-card {
    min-width: 240px;
}

/* Phone tweaks */
@media (min-width: 992px) {
    .hero .phone-frame.hero-frame {
        width: 320px;
    }
}

.phone-frame .screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
}

.phone-frame .screen.screen--scroll {
    overflow-y: auto;
    scrollbar-width: thin;
}

.phone-frame .screen.screen--scroll::-webkit-scrollbar {
    width: 6px;
}

.phone-frame .screen.screen--scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .2);
    border-radius: 8px;
}

.phone-frame .screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Services section */
.section-cats {
    background: #f6f8fb;
}

.service-card {
    padding: 24px 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    text-decoration: none;
    transition: .2s ease;
    height: 100%;
}

.service-card .icon-wrap {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    font-size: 30px;
    margin: 4px auto 14px;
    border-radius: 14px;
    background: #fff3f3;
    box-shadow: 0 8px 20px rgba(230, 70, 70, .12);
}

.service-card .title {
    color: #101011;
    font-weight: 600;
    line-height: 1.3;
    min-height: 40px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
    border-color: rgba(0, 0, 0, .12);
}

/* Why Choose Section */
.feature-card {
    background: #fff;
    padding: 28px 22px;
    transition: .2s ease;
    height: 100%;
}

.feature-card .icon {
    font-size: 30px;
    margin-bottom: 14px;
}

.feature-card h5 {
    color: #101011;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 0;
}

/* How It Works — base */
.how-works .step {
    max-width: none;
    margin-inline: 0;
    text-align: center;
}

.how-works .steps-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.how-works .step-card {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 240px;
}

.how-works .step-card .step {
    max-width: 360px;
    margin-inline: auto;
}

.step-arrow {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    max-width: none;
}

.arrow-block {
    flex: 0 0 auto;
    max-width: none;
}

/* Desktop: 5 columns */
@media (min-width: 992px) {
    .how-works .steps-row {
        overflow-x: visible;
    }

    .how-works .step-card {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .how-works .step-card .step {
        max-width: none;
    }

    .how-works .step-arrow {
        margin: 16px auto;
    }
}

/* Mobile/tablet: stacked */
@media (max-width: 991.98px) {
    .how-works .steps-row {
        flex-direction: column;
        gap: 16px;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
    }

    .how-works .step-card {
        width: 100% !important;
        max-width: none !important;
        flex: 0 0 auto;
    }

    .how-works .step-card .step {
        max-width: none;
        text-align: center;
    }

    .how-works .step-arrow {
        margin: 12px auto;
        transform: rotate(0deg);
    }
}

/* visuals */
.num-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--jb-red, #5BA69C);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 28px;
    margin: 0 auto 10px;
    box-shadow: 0 10px 22px rgba(230, 70, 70, .25);
}

.badge-chip {
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #5BA69C;
    background: #ffeaea;
    border: 1px solid #ffd2d2;
    border-radius: 20px;
    margin-bottom: 8px;
}

.step h5 {
    color: #5BA69C;
}

.step p {
    color: #5b6474;
    margin: 0;
}

.how-works .tracker ul li {
    padding: 6px 0;
    color: #475569;
    font-size: 15px;
}

/* Phone mockup */
.phone-mockup {
    width: min(76vw, 300px);
    aspect-ratio: 280 / 560;
    margin: 0 auto;
    border: 12px solid #000;
    border-radius: 36px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    background: #111;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup .screen {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

.phone-mockup .screen::-webkit-scrollbar {
    width: 6px;
}

.phone-mockup .screen::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .3);
    border-radius: 10px;
}

.phone-mockup .screen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    transition: .2s;
    height: 100%;
    transform: translateX(25px);
    /* thoda kam shift mobile me */

}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.testimonial-card .user-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card p {
    font-size: 15px;
    color: #444;
    margin-bottom: 14px;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
}

/* Numbers Section */
.numbers-box {
    background: #5BA69C;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .15);
    transform: translateX(25px);

}

.numbers-box h3 {
    font-size: clamp(1.4rem, .9vw + 1.1rem, 1.8rem);
}

.numbers-box p {
    font-size: 15px;
    opacity: .9;
}

/* Footer (base) */
.footer {
    background: #5BA69C;
}

.footer-link {
    color: #9ca3af;
    font-size: 15px;
    text-decoration: none;
    transition: .2s;
}

.footer-link:hover {
    color: #fff;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #1e293b;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

.social-icon:hover {
    background: #5BA69C;
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
    .navbar .navbar-collapse {
        padding: 8px 0 12px;
    }

    .navbar .nav-link {
        display: block;
        padding: .6rem .25rem;
    }

    .navbar .btn-get-started {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding-top: 6.5rem;
    }

    .hero .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .jb-badge {
        white-space: normal;
        line-height: 1.2;
    }

    .hero .headline {
        font-size: clamp(1.6rem, 5vw + .6rem, 2rem);
    }

    .hero .subtext {
        font-size: .95rem;
    }
}

/* Carousel */
#heroCarousel .carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
}

@media (max-width: 575.98px) {
    #heroCarousel {
        padding-bottom: 18px;
    }

    #heroCarousel .carousel-indicators {
        position: static;
        margin-top: 6px;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 18%;
    }
}

@media (max-width: 380px) {

    .phone-frame.hero-frame,
    .phone-mockup {
        width: 82vw !important;
    }
}

@media (max-width: 575.98px) {

    .service-card,
    .feature-card,
    .testimonial-card {
        padding: 18px 14px;
    }

    .explore-card {
        padding: 22px 16px;
    }

    .numbers-box h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .footer .row>div {
        margin-bottom: 16px;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }
}

.container,
.row,
section,
.numbers-box,
.tracker,
.experience-app,
.explore-more,
.testimonials,
.cta-section,
.footer {
    max-width: 100%;
}

.carousel,
.carousel-inner,
.carousel-item {
    position: relative;
}

.carousel-item .phone-frame,
.carousel-item .phone-frame .screen,
.carousel-item .phone-frame .screen img {
    width: 100%;
    height: 100%;
}

/* Footer polish */
.footer {
    position: relative;
    padding-top: 56px;
    background: linear-gradient(180deg, #d5eeeb 0%, #5BA69C 40%, #5BA69C 100%);
}

.footer h6 {
    letter-spacing: .3px;
    margin-bottom: 12px;
}

.footer ul {
    margin: 0;
    padding: 0;
}

.footer ul li+li {
    margin-top: 8px;
}

.footer .footer-link {
    color: #000000;
    line-height: 1.6;
    transition: color .18s ease, text-decoration-color .18s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.footer .footer-link:hover {
    color: #000000;
    text-decoration-color: rgba(0, 0, 0, 0.5);
}

.footer .footer-link:focus-visible {
    outline: 2px solid #5BA69C;
    outline-offset: 2px;
    border-radius: 4px;
}

.footer .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1f2a3d;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.footer .social-icon:hover {
    background: #5BA69C;
    box-shadow: 0 6px 18px rgba(230, 70, 70, .25);
    transform: translateY(-2px);
}

.footer .social-icon:focus-visible {
    outline: 2px solid #5BA69C;
    outline-offset: 2px;
}

.footer hr {
    border-color: rgba(238, 241, 241, 0.12);
    opacity: 1;
    margin: 20px 0;
}

.footer small {
    opacity: .85;
}

.footer p.text-muted.small {
    margin-top: 4px;
    /* top space chhoti */
    margin-bottom: 0;
    /* bottom space zero */
    line-height: 1.2;
    /* text ki height tight */
    font-size: 13px;
    /* chhota font size */
}

.footer .btn-outline-light.jb {
    border-width: 2px;
    transition: all .2s ease;
}

.footer .btn-outline-light.jb:hover {
    background: #fff;
    color: #000;
}

@media (max-width: 767.98px) {
    .navbar .container-md {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-brand img {
        max-height: 45px;
        /* logo chhota ho jaye */
    }

    .navbar .btn {
        font-size: 12px;
        padding: 6px 14px;
        border-radius: 25px;
    }
}

@media (max-width: 767.98px) {
    .footer .row {
        flex-direction: row;
        /* keep left & right in same row */
        justify-content: space-between;
    }

    /* Logo + Social (left) */
    .footer .col-12.col-md-6:first-child {
        text-align: left;
    }

    /* Links (right) */
    .footer .footer-links {
        flex-direction: row;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .footer .footer-links li {
        margin: 0 4px;
    }

    /* Logo ke neeche social icons */
    .footer-logo {
        display: block;
        margin-bottom: 8px;
    }
}

/* Mobile Responsive Fix */
@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 1.8rem;
        /* heading chhoti ho jaye */
        line-height: 1.3;
    }

    .hero p.lead {
        font-size: 1rem;
        /* paragraph chhota */
    }

    .hero .btn {
        font-size: 14px;
        /* button text chhota */
        padding: 6px 14px;
        /* button size chhota */
    }

    .hero .d-flex {
        flex-direction: column;
        /* buttons neeche neeche aajayein */
        gap: 10px;
        align-items: stretch;
    }



}

/* Testimonial card base */
.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* User image */
.user-img,
.testimonial-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .why-choose .row {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-card {
        max-width: 90%;
        /* center me chhota card */
        margin: 0 auto;
    }

    .testimonial-card img {
        width: 80px;
        height: 80px;
    }

    .testimonial-card p {
        font-size: 0.95rem;
    }

    .testimonial-card h6 {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .numbers {
        text-align: center;
    }

    .numbers-box {
        padding: 40px 20px;
        margin-bottom: 30px;
        max-width: 400px;
        /* optional: card ki max width */
        margin-left: auto;
        margin-right: auto;
        /* center horizontally */
    }

    .numbers-box h4 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .numbers-box h3 {
        font-size: 1.5rem;
    }

    .numbers-box p {
        font-size: 0.95rem;
    }

    /* Right side text */
    .numbers h2 {
        font-size: 1.6rem;
    }

    .numbers p {
        font-size: 1rem;
    }

    /* Buttons */
    .numbers .d-flex {
        justify-content: center !important;
    }

    .numbers .btn {
        font-size: 14px;
        padding: 8px 16px;
        flex: 1 1 auto;
    }
}

/* Mobile view: hide 3rd testimonial */
@media (max-width: 767.98px) {
    #why-choose .row .col-md-4 .col-12:last-child {
        display: none;
    }
}


@media (max-width: 767.98px) {
    .exam-content {
        margin-left: 10px;
        /* mobile me kam shift */
        transform: translateX(25px);
        /* thoda kam shift mobile me */

    }
}