/* ==================================================
   RIDER PAGE — SAME HERO STYLE AS LANDING
================================================== */


/* ===============================
   HERO
================================ */

.rider-hero {
    position: relative;
    min-height: 60vh;
    background-image: url("/website/images/pragia-hero.jpg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.rider-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 14, 33, 0.92) 0%,
        rgba(18, 16, 46, 0.88) 40%,
        rgba(24, 22, 66, 0.75) 65%,
        rgba(24, 22, 66, 0.55) 100%
    );
    z-index: 1;
}

.rider-hero .hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}


/* ===============================
   HERO CONTENT
================================ */

.rider-hero .hero-content h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
}

.rider-hero .hero-content h1 span {
    color: #6239F7;
}

.rider-hero .hero-content p {
    font-size: 18px;
    max-width: 520px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.rider-hero .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}


/* ===============================
   HERO IMAGE
================================ */

.rider-hero .hero-image img {
    width: 100%;
    max-width: 420px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
    100% { transform: translateY(0); }
}


/* ===============================
   BENEFITS
================================ */

.rider-benefits {
    padding: 90px 0;
    background: #f9f9ff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.benefit-card {
    background: #ffffff;
    padding: 34px;
    border-radius: 20px;
}

.benefit-card i {
    font-size: 28px;
    color: #6239F7;
    margin-bottom: 12px;
}


/* ==================================================
   STEPS — DESKTOP (CENTERED)
================================================== */

.rider-steps {
    padding: 90px 0;
    background: #ffffff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.step-card {
    background: #f9f9ff;
    padding: 30px;
    border-radius: 18px;
    text-align: center;               /* ✅ DESKTOP CENTER */
}

.step-card span {
    display: inline-block;

    background: #6239F7;
    color: #ffffff;

    width: 42px;
    height: 42px;
    line-height: 42px;

    border-radius: 50%;
    margin-bottom: 14px;

    font-weight: 700;
}

.step-card h4 {
    margin: 0 0 6px;
}

.step-card p {
    margin: 0;
    font-size: 14.5px;
    color: #555;
}


/* ==================================================
   READY SECTION
================================================== */

.rider-ready {
    padding: 110px 0;
    background: radial-gradient(
        circle at top,
        #1a1433,
        #0b0f1e 70%
    );
    color: #ffffff;
}

.ready-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.ready-inner h2 {
    font-size: 42px;
    margin-bottom: 12px;
}

.ready-inner h2 span {
    color: #6239F7;
}

.ready-inner p {
    max-width: 620px;
    margin: 0 auto 36px;
    opacity: 0.9;
}

.ready-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 28px;
}


/* ===============================
   STORE BUTTONS
================================ */

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 600;
}

.store-btn.playstore {
    background: linear-gradient(135deg, #00c853, #00e5ff);
}

.store-btn.appstore {
    background: #111111;
}

.btn-outline.secondary {
    border: 2px solid rgba(255,255,255,0.4);
}


/* ==================================================
   RIDER HERO — MOBILE HEIGHT FIX
   Match Driver Hero Height
================================================== */

@media (max-width: 480px) {

    .rider-hero {
        min-height: 44vh;              /* 🔥 shorter like driver */
        padding: 48px 0 32px;          /* 🔥 reduce vertical padding */
        background-position: center;
    }

    .rider-hero .hero-inner {
        gap: 20px;                     /* 🔥 tighter spacing */
        text-align: left;
    }

    .rider-hero .hero-content h1 {
        font-size: 32px;               /* slightly smaller */
        line-height: 1.2;
        margin-bottom: 14px;
    }

    .rider-hero .hero-content p {
        font-size: 15px;
        margin-bottom: 20px;           /* 🔥 reduce bottom space */
    }

    .rider-hero .hero-actions {
        gap: 12px;
    }

    /* Hide image if present (same as driver) */
    .rider-hero .hero-image {
        display: none;
    }
}
