/* =========================================================
   MPIKO - RESPONSIVE VIDEO LANDING PAGE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    background: #080a0e;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img,
video {
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    width: 100%;
    background: #080a0e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    width: 100%;
    max-width: 1500px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 28px;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 125px;
    height: auto;
    display: block;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    padding: 26px 0;

    color: #a9adb6;
    font-size: 15px;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.main-nav a.active::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;
    background: #ef3030;
}


/* SEARCH */

.search-box {
    width: 280px;
    height: 44px;

    display: flex;
    align-items: center;

    background: #15181e;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 11px;

    flex-shrink: 1;
}

.search-box input {
    width: 100%;
    min-width: 0;

    padding: 0 14px;

    background: transparent;
    border: 0;
    outline: 0;

    color: #ffffff;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #737782;
}

.search-box button {
    width: 45px;
    height: 100%;

    border: 0;
    background: transparent;
    color: #a8adb7;

    flex-shrink: 0;
}


/* MOBILE MENU */

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 10px;

    background: #171a20;
    color: #ffffff;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
    padding: 20px 24px 50px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    width: 100%;
    height: 330px;

    overflow: hidden;

    border-radius: 18px;

    background: #050607;

    isolation: isolate;
}


/* =========================================================
   HERO VIDEO BACKGROUND
   ========================================================= */

.hero-background {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: 0;
}


/*
   Video zote zinakaa juu ya nyingine.
   Hii ndiyo inaruhusu fade kutoka video moja
   kwenda nyingine.
*/

.hero-background video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    opacity: 0;

    transition: opacity 1.2s ease-in-out;

    pointer-events: none;
}


/* VIDEO INAYOCHEZA */

.hero-background video.active {
    opacity: 1;
}


/* =========================================================
   HERO DARK OVERLAY
   ========================================================= */

.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.94) 0%,
            rgba(0, 0, 0, 0.80) 30%,
            rgba(0, 0, 0, 0.48) 58%,
            rgba(0, 0, 0, 0.18) 100%
        );
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    position: relative;

    z-index: 2;

    width: 55%;
    height: 100%;

    padding: 35px 40px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;
}


/* =========================================================
   FEATURED
   ========================================================= */

.featured-badge {
    display: inline-flex;

    align-items: center;

    padding: 7px 12px;

    border-radius: 6px;

    background: #ed3030;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.3px;
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.hero h1 {
    margin-top: 15px;

    color: #ffffff;

    font-size: clamp(30px, 4vw, 52px);

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -1px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.hero-description {
    max-width: 520px;

    margin-top: 14px;

    color: #d2d4d8;

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   META
   ========================================================= */

.hero-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 15px;

    color: #c6c9cf;

    font-size: 13px;
}

.hero-meta span {
    white-space: nowrap;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-buttons {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 20px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hero {
        height: 310px;
    }

    .hero-content {
        width: 62%;

        padding: 30px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-description {
        font-size: 13px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 699px) {

    .hero {
        height: 270px;

        min-height: 270px;

        border-radius: 14px;
    }


    /* VIDEO */

    .hero-background video {
        object-position: center;
    }


    /* OVERLAY */

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(0, 0, 0, 0.94) 0%,
                rgba(0, 0, 0, 0.76) 48%,
                rgba(0, 0, 0, 0.35) 100%
            );
    }


    /* CONTENT */

    .hero-content {
        width: 82%;

        padding: 22px 20px;

        justify-content: center;
    }


    /* BADGE */

    .featured-badge {
        padding: 5px 9px;

        font-size: 10px;
    }


    /* TITLE */

    .hero h1 {
        margin-top: 10px;

        font-size: 28px;

        letter-spacing: -0.5px;
    }


    /* DESCRIPTION */

    .hero-description {
        margin-top: 8px;

        font-size: 12px;

        line-height: 1.45;

        display: -webkit-box;

        -webkit-line-clamp: 3;

        -webkit-box-orient: vertical;

        overflow: hidden;
    }


    /* META */

    .hero-meta {
        gap: 10px;

        margin-top: 10px;

        font-size: 11px;
    }


    /* BUTTONS */

    .hero-buttons {
        gap: 8px;

        margin-top: 13px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .hero {
        height: 255px;

        min-height: 255px;
    }

    .hero-content {
        width: 88%;

        padding: 18px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-description {
        font-size: 11px;
    }

    .hero-meta {
        font-size: 10px;
    }

}

/* =========================================================
   CATEGORIES
   ========================================================= */

.categories-section {
    width: 100%;
    margin-top: 22px;

    overflow: hidden;
}

.categories {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 4px;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category {
    flex: 0 0 auto;

    min-height: 44px;

    padding: 0 18px;

    border-radius: 24px;

    border: 1px solid #292d34;

    background: #15181e;
    color: #c9ccd2;

    font-size: 14px;
    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.category:hover {
    color: #ffffff;
    background: #1d2128;
}

.category.active {
    background: #ed3030;
    border-color: #ed3030;
    color: #ffffff;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-header {
    width: 100%;

    margin-top: 30px;
    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.section-header h2 {
    font-size: 21px;
    font-weight: 700;
}

.section-header a {
    color: #ed3030;
    font-size: 14px;
    white-space: nowrap;
}

.section-header a:hover {
    color: #ff4b4b;
}


/* =========================================================
   VIDEO GRID
   ========================================================= */

.video-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* VIDEO CARD */

.video-card {
    min-width: 0;

    overflow: hidden;

    background: #101319;

    border: 1px solid #20242b;
    border-radius: 12px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    border-color: #343943;
}


/* VIDEO PREVIEW */

.video-preview {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #080a0e;
}

.video-preview video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* VIDEO DARK OVERLAY */

.video-preview::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        transparent 45%,
        rgba(0, 0, 0, 0.4)
    );

    pointer-events: none;
}


/* LOCK */

.video-lock {
    position: absolute;

    z-index: 3;

    left: 50%;
    top: 50%;

    width: 46px;
    height: 46px;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.75);

    font-size: 20px;
}


/* DURATION */

.video-duration {
    position: absolute;

    z-index: 4;

    right: 8px;
    bottom: 8px;

    padding: 3px 7px;

    border-radius: 4px;

    background: rgba(0, 0, 0, 0.82);

    color: #ffffff;

    font-size: 11px;
}


/* VIDEO INFO */

.video-info {
    min-width: 0;

    padding: 12px;
}

.video-info h3 {
    overflow: hidden;

    margin-bottom: 5px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* VIDEO CATEGORY */

.video-category {
    font-size: 12px;
}

.motivation {
    color: #ff5b5b;
}

.business {
    color: #e9a84c;
}

.development {
    color: #61d66d;
}

.finance {
    color: #e8c64e;
}

.health {
    color: #ff8ca0;
}

.lifestyle {
    color: #b68cff;
}


/* =========================================================
   PREMIUM CTA
   ========================================================= */

.premium-cta {
    width: 100%;

    margin-top: 28px;
    padding: 22px;

    display: flex;
    align-items: center;

    gap: 18px;

    border-radius: 14px;

    background: #15181e;
    border: 1px solid #252a31;
}

.premium-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ed3030;

    font-size: 20px;
}

.premium-text {
    min-width: 0;
    flex: 1;
}

.premium-text h2 {
    font-size: 18px;
    margin-bottom: 3px;
}

.premium-text p {
    color: #969ba5;
    font-size: 13px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    width: 100%;

    border-top: 1px solid #1c2026;

    background: #080a0e;
}

.footer-inner {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #777c85;

    font-size: 12px;
}

.social-links,
.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-links a:hover,
.footer-links a:hover {
    color: #ffffff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 700px) {

    .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .container {
        padding-left: 28px;
        padding-right: 28px;
    }

}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 1100px) {

    .video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .hero {
        height: 340px;
        min-height: 340px;
    }

}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .header-inner,
    .container,
    .footer-inner {
        max-width: 1500px;
    }

    .video-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 699px) {

    /* HEADER */

    .header-inner {
        min-height: 64px;

        padding: 0 14px;

        gap: 12px;
    }

    .logo img {
        width: 105px;
    }

    .main-nav {
        display: none;
    }

    .search-box {
        width: auto;
        flex: 1;

        height: 40px;
    }

    .search-box input {
        font-size: 12px;
    }

    .menu-button {
        display: block;
        flex-shrink: 0;
    }


    /* MAIN */

    .container {
        padding: 12px 12px 35px;
    }


    /* HERO */

    .hero {
        height: 280px;
        min-height: 280px;

        border-radius: 14px;
    }

    .hero-background video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
}

    .hero-content {
        width: 82%;

        padding: 22px 20px;

        justify-content: center;
    }

    .featured-badge {
        padding: 5px 9px;

        font-size: 10px;
    }

    .hero h1 {
        margin-top: 10px;

        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .hero-description {
        margin-top: 8px;

        font-size: 12px;
        line-height: 1.45;

        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;

        overflow: hidden;
    }

    .hero-meta {
        gap: 10px;

        margin-top: 10px;

        font-size: 11px;
    }

    .hero-buttons {
        gap: 8px;

        margin-top: 13px;
    }

    .btn {
        min-height: 40px;

        padding: 0 13px;

        font-size: 12px;
    }


    /* CATEGORIES */

    .categories-section {
        margin-top: 14px;
    }

    .categories {
        gap: 8px;
    }

    .category {
        min-height: 39px;

        padding: 0 14px;

        font-size: 12px;
    }


    /* SECTION */

    .section-header {
        margin-top: 23px;
        margin-bottom: 11px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .section-header a {
        font-size: 12px;
    }


    /* VIDEOS */

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .video-card {
        border-radius: 9px;
    }

    .video-info {
        padding: 9px;
    }

    .video-info h3 {
        font-size: 12px;
    }

    .video-category {
        font-size: 10px;
    }

    .video-lock {
        width: 38px;
        height: 38px;

        font-size: 16px;
    }

    .video-duration {
        right: 5px;
        bottom: 5px;

        padding: 2px 5px;

        font-size: 9px;
    }


    /* PREMIUM CTA */

    .premium-cta {
        margin-top: 20px;

        padding: 16px;

        gap: 12px;
    }

    .premium-icon {
        width: 42px;
        height: 42px;

        font-size: 17px;
    }

    .premium-text h2 {
        font-size: 14px;
    }

    .premium-text p {
        font-size: 10px;
    }

    .premium-cta .btn {
        flex-shrink: 0;
    }


    /* FOOTER */

    .footer-inner {
        padding: 20px 14px;

        flex-direction: column;

        text-align: center;

        gap: 14px;
    }

    .social-links,
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;

        gap: 12px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .header-inner {
        gap: 8px;
    }

    .logo img {
        width: 88px;
    }

    .search-box {
        height: 38px;
    }

    .search-box input {
        padding: 0 8px;
        font-size: 11px;
    }

    .search-box button {
        width: 35px;
    }

    .menu-button {
        width: 38px;
        height: 38px;
    }


    .hero {
        height: 265px;
        min-height: 265px;
    }

    .hero-content {
        width: 88%;
        padding: 18px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-description {
        font-size: 11px;
    }

    .hero-meta {
        font-size: 10px;
    }

    .btn {
        min-height: 37px;
        padding: 0 10px;
        font-size: 11px;
    }

    .video-grid {
        gap: 8px;
    }

    .video-info {
        padding: 7px;
    }

    .video-info h3 {
        font-size: 11px;
    }

}









/* =========================================================
   PAYMENT POPUP
   ========================================================= */

.popup-overlay {
    position: fixed !important;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.78);

    z-index: 999999;

    overflow-y: auto;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* OPEN */

.popup-overlay.show {
    visibility: visible;
    opacity: 1;
}


/* =========================================================
   POPUP BOX
   ========================================================= */

.popup-content {
    position: relative;

    width: 100%;
    max-width: 690px;

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    padding: 30px;

    background: #ffffff;

    color: #222222;

    border-radius: 16px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55);

    transform: scale(0.95);

    transition: transform 0.3s ease;
}


.popup-overlay.show .popup-content {
    transform: scale(1);
}


/* =========================================================
   CLOSE
   ========================================================= */

.popup-close {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #555;

    font-size: 24px;

    cursor: pointer;
}

.popup-close:hover {
    background: #eeeeee;
}


/* =========================================================
   AGE
   ========================================================= */

.age-box {
    display: flex;
    justify-content: center;

    margin-bottom: 18px;
}

.age-box .badge {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 64px;
    height: 40px;

    padding: 0 12px;

    border-radius: 7px;

    background: #ff0000;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
}


/* =========================================================
   TITLE
   ========================================================= */

.popup-content h2 {
    margin: 0 0 14px;

    text-align: center;

    color: #222222;

    font-size: 32px;

    line-height: 1.2;
}


/* =========================================================
   TEXT
   ========================================================= */

.popup-content h4 {
    margin: 0 0 18px;

    text-align: center;

    color: #222222;

    font-size: 18px;

    line-height: 1.4;
}

.popup-content h5 {
    margin: 18px 0;

    text-align: center;

    color: #222222;

    font-size: 15px;

    line-height: 1.4;
}

.popup-content > p {
    margin: 14px 0 8px;

    text-align: center;

    color: #333333;

    font-size: 16px;
}


/* =========================================================
   PAYMENT IMAGE
   ========================================================= */

.popup-content img {
    display: block;

    width: 100%;
    max-width: 560px;

    height: auto;

    margin: 0 auto 18px;
}


/* =========================================================
   INPUT
   ========================================================= */

.popup-content input[type="text"],
.popup-content input[type="tel"] {
    width: 100%;

    height: 64px;

    padding: 0 20px;

    border: 1px solid #d0d0d0;

    border-radius: 14px;

    outline: none;

    background: #ffffff;

    color: #222222;

    font-size: 18px;
}

.popup-content input:focus {
    border-color: #1976d2;

    box-shadow:
        0 0 0 3px rgba(25, 118, 210, 0.12);
}


/* =========================================================
   PAYMENT BUTTON
   ========================================================= */

.popup-content button[type="submit"] {
    width: 100%;

    height: 64px;

    margin-top: 18px;

    border: 0;

    border-radius: 14px;

    background: #0878d1;

    color: #ffffff;

    font-size: 20px;

    font-weight: 700;

    cursor: pointer;
}

.popup-content button[type="submit"]:hover {
    background: #0668b8;
}


/* =========================================================
   MOBILE POPUP
   ========================================================= */

@media (max-width: 600px) {

    .popup-overlay {
        padding: 12px;
    }

    .popup-content {
        max-width: 100%;

        max-height: calc(100vh - 24px);

        padding: 20px 16px;

        border-radius: 14px;
    }

    .popup-content h2 {
        font-size: 22px;
    }

    .popup-content h4 {
        font-size: 14px;
    }

    .popup-content h5 {
        font-size: 12px;
    }

    .popup-content > p {
        font-size: 14px;
    }

    .popup-content input[type="text"],
    .popup-content input[type="tel"] {
        height: 54px;

        font-size: 15px;
    }

    .popup-content button[type="submit"] {
        height: 54px;

        font-size: 17px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .popup-content {
        padding: 18px 13px;
    }

    .popup-content h2 {
        font-size: 20px;
    }

    .popup-content h4 {
        font-size: 12px;
    }

    .popup-content h5 {
        font-size: 11px;
    }

}