:root {
    --brand: #FFFF00;
    --red: #E0284A;
    --red-ink: #fff;
    --ink: #2D3047;
    --muted: #5b5f7a;
    --bg: #F5F5FA;
    --card: #fff;
    --line: #dcdcea;
    --hero1: #2D3047;
    --hero2: #3b3f63;
    --accent: #FFFF00;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top,0px);
    padding-bottom: env(safe-area-inset-bottom,0px)
}

@media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --ink: #ececf8;
        --muted: #a9acc6;
        --bg: #171827;
        --card: #222439;
        --line: #363959;
        --hero1: #0f1020;
        --hero2: #26294a
    }
}

:root[data-theme="dark"] {
    --ink: #ececf8;
    --muted: #a9acc6;
    --bg: #171827;
    --card: #222439;
    --line: #363959;
    --hero1: #0f1020;
    --hero2: #26294a
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(72px + env(safe-area-inset-top,0px))
}

*, *::before, *::after {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--brand);
    color: #2D3047;
    padding-top: env(safe-area-inset-top,0px)
}

.bar {
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    min-height: 64px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.05
}

    .logo b {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: #2D3047;
        color: var(--brand);
        font-size: 20px
    }

    .logo span {
        font-size: 13px;
        letter-spacing: .02em
    }

nav {
    margin: 0 auto;
    display: flex;
    gap: 6px
}

    nav a {
        padding: 8px 12px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        color: #2D3047
    }

        nav a:hover {
            background: rgba(45,48,71,.12)
        }

.btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    padding: 11px 20px;
    font: 700 15px inherit;
    font-family: inherit;
    background: var(--red);
    color: var(--red-ink);
    text-decoration: none;
    cursor: pointer
}

    .btn:hover {
        filter: brightness(1.08)
    }

    .btn.alt {
        background: var(--brand);
        color: #2D3047
    }

    .btn.line {
        background: transparent;
        color: #fff;
        box-shadow: inset 0 0 0 2px #ffffff88
    }

.menu {
    display: none;
    background: #2D3047;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    font: 700 14px inherit;
    font-family: inherit
}

@media(max-width:820px) {
    .menu {
        display: block;
        margin-left: auto
    }

    nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--brand);
        flex-direction: column;
        padding: 8px 20px 16px;
        margin: 0
    }

        nav.open {
            display: flex
        }

    .bar .btn {
        padding: 9px 14px
    }
}

.hero {
    background: linear-gradient(120deg,var(--hero1),var(--hero2));
    color: #fff;
    position: relative;
    overflow: hidden
}

    .hero .in {
        max-width: 1180px;
        margin: auto;
        padding: 72px 20px 64px;
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        gap: 40px;
        align-items: center
    }

.slides {
    position: relative;
    min-height: 250px
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s;
    pointer-events: none
}

    .slide.on {
        opacity: 1;
        pointer-events: auto;
        position: relative
    }

    .slide h1 {
        font-size: clamp(34px,5.4vw,60px);
        line-height: 1.05;
        margin: 0 0 16px;
        font-weight: 800;
        letter-spacing: -.02em
    }

        .slide h1 mark {
            background: none;
            color: var(--accent)
        }

    .slide p {
        font-size: 18px;
        max-width: 52ch;
        margin: 0 0 26px;
        color: #e3e4f2
    }

.dots {
    display: flex;
    gap: 8px;
    margin-top: 24px
}

    .dots button {
        width: 34px;
        height: 6px;
        border-radius: 3px;
        border: 0;
        background: #ffffff55;
        cursor: pointer;
        padding: 0
    }

        .dots button[aria-current="true"] {
            background: var(--accent)
        }

.rp {
    background: var(--card);
    color: var(--ink);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,.28)
}

    .rp h2 {
        margin: 0 0 4px;
        font-size: 18px
    }

    .rp small {
        color: var(--muted)
    }

.tabs {
    display: flex;
    gap: 6px;
    margin: 16px 0
}

    .tabs button {
        flex: 1;
        padding: 9px 6px;
        border-radius: 8px;
        border: 2px solid var(--line);
        background: transparent;
        color: var(--ink);
        font: 700 14px inherit;
        font-family: inherit;
        cursor: pointer
    }

        .tabs button[aria-pressed="true"] {
            border-color: var(--red);
            background: var(--brand);
            color: #2D3047
        }

.rp ol {
    margin: 0;
    padding-left: 20px
}

.rp li {
    margin: 8px 0
}

section {
    padding: 68px 20px
}

.wrap {
    max-width: 1180px;
    margin: auto
}

h2.t {
    font-size: clamp(26px,3.6vw,38px);
    margin: 0 0 8px;
    letter-spacing: -.01em;
    text-align: center
}

p.sub {
    text-align: center;
    color: var(--muted);
    margin: 0 auto 38px;
    max-width: 60ch
}

.grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr))
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px
}

.step {
    border-top: 6px solid var(--brand)
}

    .step h3, .card h3 {
        margin: 0 0 6px;
        font-size: 18px
    }

    .step p, .card p {
        margin: 0;
        color: var(--muted)
    }

.pk {
    display: flex;
    flex-direction: column;
    gap: 12px
}

    .pk.pick {
        border: 2px solid var(--red)
    }

    .pk .tag {
        align-self: flex-start;
        background: var(--brand);
        color: #2D3047;
        font-weight: 700;
        font-size: 13px;
        padding: 3px 10px;
        border-radius: 99px
    }

    .pk ul {
        margin: 0;
        padding-left: 18px;
        color: var(--muted)
    }

    .pk .btn {
        margin-top: auto;
        text-align: center
    }

.band {
    background: var(--card);
    border-block: 1px solid var(--line)
}

.leaders {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr))
}

.lead {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: center
}

.av {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #2D3047;
    font-weight: 800;
    font-size: 30px;
    border: 4px solid var(--ink)
}

.lead h3 {
    margin: 0
}

.role {
    color: var(--red);
    font-weight: 700;
    font-size: 14px
}

.lead p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px
}

.st {
    display: flex;
    flex-direction: column;
    gap: 14px
}

    .st blockquote {
        margin: 0;
        font-size: 17px
    }

.who {
    display: flex;
    gap: 12px;
    align-items: center
}

    .who .av {
        width: 46px;
        height: 46px;
        font-size: 16px;
        border-width: 2px
    }

    .who b {
        display: block;
        line-height: 1.2
    }

    .who small {
        color: var(--muted)
    }

.filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 26px
}

    .filters button {
        padding: 8px 16px;
        border-radius: 99px;
        border: 2px solid var(--line);
        background: var(--card);
        color: var(--ink);
        font: 600 14px inherit;
        font-family: inherit;
        cursor: pointer
    }

        .filters button[aria-pressed="true"] {
            background: var(--red);
            border-color: var(--red);
            color: #fff
        }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
    gap: 18px;
    text-align: center
}

    .stats b {
        display: block;
        font-size: 36px;
        font-weight: 800
    }

    .stats span {
        color: var(--muted)
    }

details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px
}

summary {
    font-weight: 700;
    cursor: pointer
}

details p {
    color: var(--muted);
    margin: 10px 0 0
}

form {
    display: grid;
    gap: 14px;
    max-width: 560px;
    margin: auto
}

label {
    font-weight: 600;
    font-size: 14px;
    display: grid;
    gap: 6px
}

input, textarea {
    font: inherit;
    padding: 12px;
    border-radius: 10px;
    border: 2px solid var(--line);
    background: var(--card);
    color: var(--ink)
}

#msg {
    text-align: center;
    font-weight: 700;
    min-height: 1.4em
}

footer {
    background: #2D3047;
    color: #d6d8ea;
    padding: 40px 20px calc(32px + env(safe-area-inset-bottom,0px));
    font-size: 14px
}

    footer .wrap {
        display: grid;
        gap: 14px
    }

    footer a {
        margin-right: 16px
    }

.disc {
    opacity: .8;
    max-width: 90ch
}

dialog {
    border: 0;
    border-radius: 16px;
    padding: 28px;
    max-width: 400px;
    width: 92%;
    background: var(--card);
    color: var(--ink)
}

    dialog::backdrop {
        background: rgba(0,0,0,.55)
    }

    dialog form {
        gap: 12px
    }

@media(max-width:820px) {
    .hero .in {
        grid-template-columns: 1fr;
        padding-top: 44px
    }

    .logo span {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}

#belowCover {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Adjust height as needed (e.g., 100vh for full viewport) */
    background-image: url('/Client/img/cover_image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-content {
    text-align: center;
    color: white;
    padding: 20px;
    z-index: 2;
}



/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* Desktop View: Standard Grid */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.lead-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lead-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.lead-avatar-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.25rem auto;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.lead-card .av {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.lead-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.role-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.role-blue { background-color: #eff6ff; color: #2563eb; }
.role-green { background-color: #f0fdf4; color: #16a34a; }
.role-purple { background-color: #faf5ff; color: #9333ea; }
.role-orange { background-color: #fff7ed; color: #c2410c; }

.lead-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Dots Container */
.leader-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.leader-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.leader-dots button[aria-current="true"] {
    background: #2563eb;
    transform: scale(1.3);
}

/* Mobile View (max-width: 768px): Centered Touch Slider */
@media (max-width: 768px) {
    .leaders-slider-container {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .leaders-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 0;
        padding: 0;
        margin: 0;
        /* Hide scrollbars for a clean visual look */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .leaders-grid::-webkit-scrollbar {
        display: none;
    }

    .lead-card {
        flex: 0 0 100%;
        max-width: 100%;
        box-sizing: border-box;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .leader-dots {
        display: flex;
    }
}


/* --- SECTION HEADER --- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e0284a;
    background: rgba(224, 40, 74, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

/* --- PROCESS GRID & CONNECTING LINE --- */
.process-wrapper {
    position: relative;
    margin-bottom: 3.5rem;
}

/* Horizontal Animated Line */
.connecting-line {
    position: absolute;
    top: 45px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.line-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e0284a, #ffff00, #111111);
    background-size: 200% 100%;
    animation: flowGradient 4s linear infinite;
}

@keyframes flowGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.how-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* --- CARDS DESIGN & ANIMATION --- */
.how-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.25rem 1.5rem 1.75rem 1.5rem;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--card-delay, 0s);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.how-card:hover {
    transform: translateY(-10px);
    border-color: #e0284a;
    box-shadow: 0 20px 35px -10px rgba(224, 40, 74, 0.2);
}

/* Step Badge with Yellow/Red Accent */
.step-badge-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.step-icon-badge {
    width: 48px;
    height: 48px;
    background: #e0284a;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(224, 40, 74, 0.35);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.how-card:hover .step-icon-badge {
    transform: scale(1.1) rotate(-3deg);
    background: #111111;
    color: #ffff00;
}

.badge-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffff00;
    border-radius: 14px;
    z-index: 1;
    opacity: 0.6;
    animation: pulseRing 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff9f9;
    color: #e0284a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.how-card:hover .card-icon {
    background: #ffff00;
    color: #111111;
}

.how-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.how-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- EARNING SOURCES BANNER --- */
.earning-sources-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: linear-gradient(135deg, #111111 0%, #1f1f1f 100%);
    border: 2px solid #ffff00;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.source-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.source-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.stream-1::before { background: #e0284a; }
.stream-2::before { background: #ffff00; }
.stream-3::before { background: #111111; }

.source-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px -5px rgba(224, 40, 74, 0.15);
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.source-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.stream-1 .source-tag { background: rgba(224, 40, 74, 0.1); color: #e0284a; }
.stream-2 .source-tag { background: #fffde6; color: #b38600; }
.stream-3 .source-tag { background: #f1f5f9; color: #111111; }

.source-icon {
    font-size: 1.25rem;
}

.source-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.source-item p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 1024px) {
    .how-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .connecting-line {
        display: none;
    }
}

@media (max-width: 640px) {
    .how-process-grid,
    .earning-sources-banner {
        grid-template-columns: 1fr;
    }
}


/* Desktop View: Standard Grid */
#stories .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Dots Container (Hidden by default on desktop) */
.story-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.story-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.story-dots button[aria-current="true"] {
    background: #e0284a; /* Matches your custom brand red */
    transform: scale(1.3);
}

/* Mobile View (max-width: 768px): 1 Card Slider with Touch/Swipe Snap */
@media (max-width: 768px) {
    .stories-slider-container {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    #stories .grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 0;
        padding-bottom: 0.5rem;
        /* Hide scrollbars */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #stories .grid::-webkit-scrollbar {
        display: none;
    }

    /* Each story card takes 100% width on mobile */
    #stories .grid .card.st {
        flex: 0 0 100%;
        max-width: 100%;
        box-sizing: border-box;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .story-dots {
        display: flex; /* Show dots on mobile view */
    }
}


/* --- VIDEO MODAL POPUP STYLES --- */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
}

.video-modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 2px solid #123f91;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.video-modal-overlay.active .video-modal-container {
    transform: scale(1);
}

/* Close Button */
.video-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: #123f91;
    color: #ffffff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-modal-close:hover {
    background: #ffffff;
    color: #0f172a;
    transform: scale(1.1);
}

/* Responsive 16:9 Video Aspect Ratio Box */
.video-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-responsive-wrapper iframe,
.video-responsive-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* =========================================================
   PE4S MODERN HEADER + GLOBAL LOADER
   Added as an override layer; existing page sections retained.
   ========================================================= */
:root {
    --brand: #ffe600;
    --red: #1456d9;
    --red-ink: #ffffff;
    --ink: #17233d;
    --muted: #64748b;
    --bg: #f5f7fc;
    --card: #ffffff;
    --line: #e3e9f2;
    --hero1: #101f3d;
    --hero2: #174c9a;
    --accent: #ffe600;
}

header {
    background: rgba(255, 230, 0, .97);
    color: #14213d;
    box-shadow: 0 5px 22px rgba(16, 31, 61, .09);
    backdrop-filter: blur(12px);
}

.bar {
    max-width: 1320px;
    min-height: 78px;
    padding: 10px 24px;
    gap: 22px;
}

.logo {
    flex: 0 0 auto;
    min-width: 145px;
}

.logo img {
    display: block;
    width: auto;
    height: 58px !important;
    max-width: 190px;
    object-fit: contain;
}

#nav {
    align-items: center;
    gap: 3px;
}

#nav a {
    color: #14213d;
    padding: 10px 11px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

#nav a:hover,
#nav a:focus-visible {
    color: #ffffff;
    background: #174c9a;
    transform: translateY(-1px);
}

.bar > .btn,
#loginBtn {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 11px 24px;
    background: #123f91;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(18, 63, 145, .2);
}

.bar > .btn:hover,
#loginBtn:hover {
    background: #0c2d68;
    filter: none;
}

.menu {
    border-radius: 10px;
    background: #123f91;
    color: #ffffff;
    padding: 10px 14px;
}

.hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(0, 198, 215, .2), transparent 30%),
        linear-gradient(120deg, #101f3d, #174c9a);
}

.btn {
    background: #1456d9;
}

.btn:hover {
    background: #0e43ae;
}

.btn.alt {
    background: #ffe600;
    color: #14213d;
}

.btn.line {
    color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--line);
}

.section-badge {
    color: #1456d9;
    background: rgba(20, 86, 217, .09);
}

.pk.pick {
    border-color: #1456d9;
}

.tabs button[aria-pressed="true"] {
    border-color: #1456d9;
    background: #eaf1ff;
    color: #123f91;
}

footer {
    background: #101f3d;
}

@media (max-width: 820px) {
    .bar {
        min-height: 68px;
        padding: 8px 16px;
        gap: 10px;
    }

    .logo {
        min-width: 0;
    }

    .logo img {
        height: 48px !important;
        max-width: 155px;
    }

    #nav {
        top: 100%;
        padding: 12px 16px 18px;
        box-shadow: 0 14px 20px rgba(16, 31, 61, .12);
        border-top: 1px solid rgba(20, 33, 61, .1);
    }

    #nav a {
        padding: 12px 14px;
    }

    .bar .btn {
        padding: 9px 16px;
    }
}

@media (max-width: 420px) {
    .logo img {
        height: 42px !important;
        max-width: 125px;
    }

    .bar .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .menu {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Full-page loading overlay */
#pe4sPageLoader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 22, 46, .72);
    backdrop-filter: blur(7px);
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease, visibility .25s ease;
}

#pe4sPageLoader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pe4s-loader-card {
    width: min(310px, 100%);
    padding: 30px 28px 26px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(0,0,0,.28);
    text-align: center;
}

.pe4s-loader-logo {
    display: block;
    width: auto;
    max-width: 150px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.pe4s-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 4px solid #e6edfb;
    border-top-color: #1456d9;
    border-right-color: #00b9c7;
    border-radius: 50%;
    animation: pe4sSpin .8s linear infinite;
}

.pe4s-loader-title {
    margin: 0;
    color: #17233d;
    font-size: 17px;
    font-weight: 800;
}

.pe4s-loader-message {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
}

@keyframes pe4sSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .pe4s-spinner { animation-duration: 1.8s; }
}


/* ==================================
   PE4S HERO IMAGE SLIDER
================================== */

.hero .in {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    align-items: center;
    gap: 35px;
}

.hero-slider-area {
    min-width: 0;
}

.hero .slides .slide {
    display: none;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 24px;
    min-height: 340px;
}

.hero .slides .slide.on {
    display: grid;
}

.hero-slide-content {
    min-width: 0;
}

.hero-tag,
.guide-tag {
    display: inline-block;
    color: #ffff00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.hero-slide-content h1 {
    font-size: clamp(30px, 3.5vw, 49px);
    line-height: 1.12;
    margin: 0 0 18px;
}

.hero-slide-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #e6eaf7;
    margin-bottom: 24px;
}

.hero-slide-image {
    position: relative;
    height: 300px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.hero-slide-image:hover img {
    transform: scale(1.06);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 18px 18px;
    background: linear-gradient(transparent, rgba(8,17,48,.9));
    color: white;
}

.image-caption strong,
.image-caption span {
    display: block;
}

.image-caption strong {
    font-size: 19px;
}

.image-caption span {
    font-size: 13px;
    margin-top: 5px;
    color: #e1e7f7;
}

.hero-actions .btn {
    cursor: pointer;
    border: none;
}

.hero-actions .btn span {
    margin-right: 7px;
}

.hero .rp {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.hero .guide-tag {
    color: #1685b9;
    margin-bottom: 8px;
}

.hero .rp h2 {
    margin-top: 0;
}

/* VIDEO POPUP */

.success-video-dialog {
    width: min(850px, 92%);
    max-width: 850px;
    padding: 0;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #101a35;
    color: white;
    box-shadow: 0 25px 80px rgba(0,0,0,.4);
}

.success-video-dialog::backdrop {
    background: rgba(5,12,30,.85);
    backdrop-filter: blur(5px);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 19px;
}

.video-modal-header button {
    border: 0;
    background: #e0284a;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
}

.success-video-dialog video {
    display: block;
    width: 100%;
    max-height: 70vh;
    background: #000;
}

/* RESPONSIVE */

@media(max-width: 900px) {
    .hero .in {
        grid-template-columns: 1fr;
    }

    .hero .slides .slide {
        grid-template-columns: 1fr 1fr;
    }

    .hero .rp {
        margin-top: 15px;
    }
}

@media(max-width: 600px) {
    .hero .slides .slide,
    .hero .slides .slide.on {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-slide-content h1 {
        font-size: 34px;
    }

    .hero-slide-image {
        height: 220px;
    }

    .hero .rp {
        padding: 20px;
    }
}

    .cu-page-grid {
        background-color: #f8fafc;
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
        padding: 0px 20px;
    }

    .cu-card-wrapper {
        background: var(--card);
        border-radius: 16px;
        box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
        border: 1px solid var(--line);
        padding: 40px 24px;
        max-width: 640px;
        margin: 0 auto;
    }

    .cu-card-wrapper h2 {
        font-size: 24px;
        font-weight: 800;
        color: var(--ink);
        margin: 0 0 6px;
        text-align: center;
    }

    .cu-card-wrapper p.sub {
        color: #64748b;
        font-size: 14px;
        margin: 0 0 28px;
        text-align: center;
    }

    /* Your Exact Form CSS */
    .cu-card-wrapper form {
        display: grid;
        gap: 14px;
        max-width: 560px;
        margin: auto;
    }

    .cu-card-wrapper label {
        font-weight: 600;
        font-size: 14px;
        display: grid;
        gap: 6px;
        color: var(--ink);
    }

    .cu-card-wrapper input, 
    .cu-card-wrapper textarea {
        font: inherit;
        padding: 12px;
        border-radius: 10px;
        border: 2px solid var(--line);
        background: var(--card);
        color: var(--ink);
        width: 100%;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .cu-card-wrapper input:focus, 
    .cu-card-wrapper textarea:focus {
        border-color: var(--primary-hover);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        outline: none;
    }

    .cu-card-wrapper textarea {
        resize: vertical;
        min-height: 120px;
    }

    /* Submit Button */
    .cu-btn-submit {
        background: var(--primary);
        color: #ffffff;
        font-weight: 700;
        font-size: 15px;
        padding: 14px;
        border-radius: 10px;
        border: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background-color 0.2s ease;
        margin-top: 6px;
    }

    .cu-btn-submit:hover {
        background: var(--primary-hover);
    }

    .bar > .btn, #ContactUsBtn {
        flex: 0 0 auto;
        border-radius: 999px;
        padding: 11px 24px;
        background: #123f91;
        color: #ffffff;
        font-weight: 800;
        box-shadow: 0 7px 16px rgba(18, 63, 145, .2);
    }
    
    .reels-section {
        padding: 60px 20px;
        background-color: #0f172a;
        color: #ffffff;
        font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    }

    .reels-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto 24px;
    }

    .reels-title-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .reels-title-wrap i {
        font-size: 26px;
        color: #ef4444;
    }

    .reels-title-wrap h3 {
        font-size: 24px;
        font-weight: 800;
        margin: 0;
        color: #ffffff;
    }

    .reels-nav-btns {
        display: flex;
        gap: 8px;
    }

    .reels-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .reels-nav-btn:hover {
        background: #ef4444;
        border-color: #ef4444;
    }

    /* SLIDER CONTAINER */
    .reels-slider-container {
        max-width: 1200px;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
    }

    .reels-slider-track {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 10px 4px 20px;
    }

    .reels-slider-track::-webkit-scrollbar {
        display: none;
    }

    /* REEL CARD - Desktop Grid Default (3 Cards Visible) */
    .reel-card {
        flex: 0 0 calc(33.333% - 14px);
        height: 440px;
        border-radius: 18px;
        position: relative;
        overflow: hidden;
        background: #1e293b;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        scroll-snap-align: start;
        text-decoration: none;
        color: #ffffff;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

    .reel-card:hover {
        transform: translateY(-6px);
        border-color: #ef4444;
    }

    .reel-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .reel-card:hover .reel-card-img {
        transform: scale(1.05);
    }

    .reel-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.85) 100%);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 20px;
    }

    .reel-top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .reel-badge {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        padding: 5px 12px;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .reel-play-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(239, 68, 68, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }

    .reel-bottom-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .reel-title {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .reel-author {
        font-size: 13px;
        color: #94a3b8;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* MOBILE BREAKPOINT: Exactly 1 card visible on mobile screens */
    @media (max-width: 768px) {
        .reels-section {
            padding: 40px 16px;
        }

        .reels-header h3 {
            font-size: 20px;
        }

        .reels-slider-track {
            gap: 12px;
        }

        .reel-card {
            flex: 0 0 85%; /* Shows single card nicely centered with a peek of the next one */
            height: 400px;
        }
    }