@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
    --brand: #ff516c;
    --brand-deep: #ff3b5c;
    --brand-hot: #ff6a83;
    --brand-dark: #de445e;
    --hero-bg: #f5f0f2;
    --white: #ffffff;
    --text-dark: #2a2a2a;
    --max: 1200px;
    --content: 902px;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

html body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

* {
    font-family: 'Rubik', sans-serif !important;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

a,
a:hover,
a:focus {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

p {
    margin: 0 0 10px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: 0;
    margin-left: 0;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.clear {
    clear: both;
}

/* ——— Header ——— */
header.index,
header.contact,
header.terms {
    background-color: var(--brand) !important;
    background-image: none !important;
    min-height: 0 !important;
    padding: 0;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 50;
}

header .bg-split {
    display: none;
}

nav {
    background: var(--brand);
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0;
}

nav .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: var(--max);
    padding: 0 61px;
}

.nav-left {
    display: flex;
    gap: 28px;
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
}

.nav-left a:hover {
    opacity: 0.85;
}

nav .logo {
    justify-self: center;
}

nav .logo img {
    height: 27px;
    width: auto;
    max-width: none;
}

.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
}

.nav-account img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.btn-join-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--brand);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 6px;
    min-width: 119px;
    height: 35px;
}

.btn-join-header:hover {
    filter: brightness(0.97);
    color: var(--brand);
}

/* ——— Hero ——— */
.hero {
    position: relative;
    background: var(--hero-bg);
    overflow: hidden;
    min-height: 600px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/brands/knm/images/background.png") center / cover no-repeat;
    opacity: 0.85;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
    min-height: 600px;
    padding: 28px 61px 40px;
    max-width: var(--max);
    margin: 0 auto;
    min-width: 0;
}

.hero-inner > * {
    min-width: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual img {
    width: min(100%, 537px);
    filter: drop-shadow(0 18px 40px rgba(255, 59, 92, 0.28));
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 12px;
    max-width: 520px;
    min-width: 0;
    width: 100%;
}

.hero-welcome {
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-title {
    margin: 0 0 18px;
    width: 100%;
    max-width: 505px;
    min-width: 0;
}

.hero-title img {
    display: block;
    width: 100%;
    max-width: 505px;
    height: auto;
}

.hero-body {
    color: var(--brand);
    font-size: 15px;
    line-height: 1.55;
    max-width: 460px;
    margin-bottom: 28px;
}

.btn-join-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #ff6a83 0%, #ff3b5c 100%);
    color: var(--white);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 22px 48px;
    border-radius: 10px;
    min-width: 235px;
    box-shadow: 0 10px 28px rgba(255, 59, 92, 0.35);
}

.btn-join-hero:hover {
    filter: brightness(1.05);
    color: var(--white);
}

/* ——— Red band ——— */
.band-red {
    background: var(--brand);
    color: var(--white);
    padding: 72px 0 40px;
}

.band-inner {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--white);
}

.section-title .uline,
.faq-head .uline {
    display: block;
    width: 343px;
    height: 3px;
    background: var(--white);
    margin: 10px auto 0;
}

.section-title.wide .uline {
    width: 623px;
}

.section-body {
    text-align: center;
    font-size: 15px;
    line-height: 1.65;
    max-width: 886px;
    margin: 22px auto 0;
    font-weight: 400;
    color: var(--white);
}

.mosaic {
    width: 100%;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 221px 220px;
    grid-template-areas:
        "health deals deals sports"
        "health gaming recipes recipes";
    gap: 7px;
}

.card {
    position: relative;
    display: block;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #222;
    min-width: 0;
}

.card img.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card .icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    z-index: 2;
}

.card .label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
}

.card-health { grid-area: health; }
.card-deals { grid-area: deals; }
.card-sports { grid-area: sports; }
.card-gaming { grid-area: gaming; }
.card-recipes { grid-area: recipes; }

.instant {
    padding: 56px 0 40px;
}

.btn-join-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--brand);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 20px 42px;
    border-radius: 10px;
    margin: 36px auto 0;
    min-width: 235px;
}

.btn-join-white:hover {
    filter: brightness(0.97);
    color: var(--brand);
}

.cta-center {
    text-align: center;
}

/* ——— FAQ ——— */
.faq-section {
    position: relative;
    background: #f0ecee;
    padding: 56px 24px 64px;
    overflow: hidden;
}

.faq-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/brands/knm/images/background.png") center / cover no-repeat;
    opacity: 0.7;
    pointer-events: none;
}

.faq-panel {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(200, 40, 70, 0.22);
    background: var(--brand-hot);
}

.faq-head {
    background: var(--brand-dark);
    color: var(--white);
    padding: 36px 32px 28px;
    text-align: center;
    margin: 0;
}

.faq-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--white);
}

.faq-head .uline {
    width: 260px;
    max-width: 70%;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px 28px;
}

.faq-item {
    background: #ffc2ce;
    border-radius: 10px;
    overflow: hidden;
    border: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border: 0;
    color: var(--white);
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    padding: 18px 18px 18px 20px;
    cursor: pointer;
    min-height: 56px;
}

.faq-question span {
    color: var(--white);
}

.faq-question:hover,
.faq-question:focus {
    filter: brightness(0.98);
    outline: none;
    color: var(--white);
}

.faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
    background: none;
    border-radius: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--white);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-icon::before {
    top: 10px;
    left: 3px;
    width: 16px;
    height: 2px;
    transform: none;
}

.faq-icon::after {
    top: 3px;
    left: 10px;
    width: 2px;
    height: 16px;
    transform: none;
}

.faq-item.is-open .faq-icon::after {
    transform: scaleY(0);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 320px;
}

.faq-answer p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--white);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

/* ——— Footer ——— */
footer {
    background: var(--brand);
    color: var(--white);
    padding: 22px 48px;
    font-size: 12px;
    line-height: 1.45;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.footer-left {
    justify-self: start;
}

.footer-center {
    justify-self: center;
    text-align: center;
    max-width: 460px;
}

.footer-center img {
    height: 31px;
    width: auto;
    margin: 0 auto 8px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    font-size: 11px;
}

.footer-links li {
    display: inline;
    float: none;
    border: 0;
    padding: 0;
    margin: 0;
}

.footer-links li + li::before {
    content: "|";
    margin: 0 6px;
}

footer a,
footer a:hover,
footer a:focus {
    color: var(--white);
    display: inline;
}

.footer-right {
    justify-self: end;
    text-align: right;
}

/* ——— Contact, terms, login ——— */
#contact,
#terms,
.terms {
    color: #fff;
    font-size: 14px;
    line-height: 1.42857143;
}

#contact {
    background: #1b0e53;
    padding: 60px 0 80px 0;
}

main#contact.curved {
    padding-top: 0;
}

#contact .container,
#terms .container {
    max-width: 850px;
}

#contact p,
#terms p,
.terms p {
    font-size: 14px;
    color: #fff;
}

#contact .page-title,
#terms .page-title {
    font-size: 28px;
    font-weight: 800;
    padding-top: 5px;
    padding-bottom: 15px;
    text-align: center;
    color: #fff;
}

#contact form {
    max-width: 600px;
    display: block;
    margin: 1em auto;
}

#contact input,
#contact select,
#contact .select2-container,
#contact textarea {
    color: #B4A9EC;
    background: #453195;
    border-radius: 20px;
    padding: 13px 20px;
    margin: 0.25em;
    border: none;
    width: calc(100% - 0.5em);
    font-size: 0.9em;
}

#contact .select2-container {
    padding: 9px 20px 8px;
    margin-bottom: 15px;
}

.select2-container--default .select2-selection--single {
    background: transparent !important;
    border: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 9px !important;
}

.select2-results__option--selectable {
    color: #000;
}

#select2-reason-container {
    color: #B4A9EC;
    padding: 0;
}

#contact p.helpline {
    margin-bottom: 0;
    color: #e7e0ff;
}

#contact input[type="submit"] {
    background-image: linear-gradient(#ff565c, #ff4b85);
    border-radius: 30px;
    color: #fff;
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0.8em auto;
    padding: 15px 12px;
    width: 240px;
}

#contact .form-group {
    margin-bottom: 0;
}

.contact-pp-section {
    display: block;
    font-weight: 600;
    margin: 20px auto;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    padding-top: 5px;
    padding-bottom: 15px;
    text-align: center;
}

#recaptchapopup {
    display: flex;
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(119, 117, 117, 0.639);
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.recaptchacontainer {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
}

.recaptchacontainer h3 {
    font-size: 20px;
    color: #646464;
    font-weight: 300;
}

#login-form-container,
#login-form-container p,
#login-form-text,
#msisdn-form-text {
    color: var(--text-dark);
}

/* ——— Responsive ——— */
@media only screen and (max-width: 980px) {
    nav .container,
    .hero-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 32px;
        padding-bottom: 48px;
        text-align: center;
        min-height: 0;
    }

    .hero {
        min-height: 0;
    }

    .hero-copy {
        align-items: center;
        padding-left: 0;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .hero-title img {
        width: min(100vw - 48px, 505px);
    }

    .hero-visual img {
        width: min(100vw - 48px, 537px);
    }

    .hero-body {
        max-width: 520px;
    }

    .mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "health health"
            "deals sports"
            "gaming recipes";
        gap: 10px;
    }

    .card-health,
    .card-deals,
    .card-sports,
    .card-gaming,
    .card-recipes {
        min-height: 200px;
    }

    .card-health {
        min-height: 280px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title .uline,
    .section-title.wide .uline {
        width: min(80%, 343px);
    }

    .faq-head {
        padding: 28px 20px 22px;
    }

    .faq-title {
        font-size: 24px;
    }

    .faq-list {
        padding: 18px 14px 22px;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .footer-left,
    .footer-right,
    .footer-center {
        justify-self: center;
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex;
    }

    #contact .col-xs-6,
    #terms .col-xs-6 {
        width: 100%;
    }

    #contact .container,
    #terms .container {
        width: 100%;
    }
}

@media only screen and (max-width: 640px) {
    .nav-left {
        display: none;
    }

    nav .container {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 0 16px;
    }

    nav .logo {
        justify-self: start;
        min-width: 0;
    }

    nav .logo img {
        max-width: 140px;
        height: 22px;
        width: auto;
    }

    .nav-right {
        gap: 8px;
    }

    .btn-join-header {
        min-width: 0;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .mosaic {
        grid-template-columns: 1fr;
        grid-template-areas:
            "health"
            "deals"
            "sports"
            "gaming"
            "recipes";
    }

    .card-health,
    .card-deals,
    .card-sports,
    .card-gaming,
    .card-recipes {
        min-height: 220px;
    }

    footer {
        padding: 22px 20px;
    }
}
