/* ============================================================
   DAFA PARTNERS — styles.css
   ============================================================ */

:root {
    --red: #E4032E;
    --red-dark: #B8021F;
    --ink: #17181C;
    --ink-soft: #4B4E57;
    --navy: #101A33;
    --grey-bg: #F4F5F7;
    --grey-line: #E4E6EA;
    --white: #FFFFFF;

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --container: 1180px;

    --font-body: 'Inter', sans-serif;
    --font-carousel: 'Montserrat', sans-serif;

    --shadow: 0 12px 30px rgba(16, 26, 51, 0.08);
}


/* ============================================================
   GLOBAL
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 44px;
    padding: 0 20px;
}

.section-head h2 {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.section-head p {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 15px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 26px;

    border-radius: 999px;

    font-size: 14.5px;
    font-weight: 600;

    border: 1.5px solid transparent;

    cursor: pointer;
    white-space: nowrap;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.btn svg {
    flex-shrink: 0;
}


/* Primary */

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
}


/* Outline */

.btn-outline {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
}


/* Carousel Learn More */

.btn-learn-more {
    background: var(--white);
    color: #6B6F78;
    border-color: var(--white);
    font-weight: 600;
}

.btn-learn-more:hover {
    background: #F1F2F4;
    color: var(--ink);
    border-color: #F1F2F4;
}


/* Small */

.btn-sm {
    padding: 9px 20px;
    font-size: 13px;
}


/* Large */

.btn-lg {
    padding: 16px 34px;
    font-size: 15px;
}


.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.link-arrow svg {
    transition: transform 0.15s ease;
}

.link-arrow:hover svg {
    transform: translateX(3px);
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
}

.nav-wrap {
    max-width: var(--container);
    margin: 0 auto;

    padding: 14px 24px;

    display: flex;
    align-items: center;

    gap: 28px;
}


/* Logo */

.brand {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;
}

.brand-mark {
    width: 84.54px;
    height: 19.72px;
}

.brand-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.4px;

    color: var(--ink);
    line-height: 1.1;
}

.brand-text em {
    display: block;

    font-style: normal;
    font-weight: 500;

    font-size: 10px;
    letter-spacing: 1.5px;

    color: var(--ink-soft);
}


/* Navigation */

.main-nav {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;

    color: var(--ink-soft);

    padding: 9px 15px;

    border-radius: 20px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/*
   Hover:
   Rounded black background
   White text
   20px corner radius
*/

.main-nav a:hover {
    background: #000000;
    color: #FFFFFF;
}


/*
   Active item remains clean by default.
*/

.main-nav a.active {
    color: var(--ink);
}

.main-nav a.active::after {
    content: none;
}


/* Navigation actions */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}


/* Mobile toggle */

.nav-toggle {
    display: none;

    flex-direction: column;
    justify-content: center;
    gap: 4px;

    width: 34px;
    height: 34px;

    background: none;
    border: none;

    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;

    height: 2px;
    width: 100%;

    background: var(--ink);

    border-radius: 2px;
}


/* ============================================================
   HERO CAROUSEL
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;

    height: 560px;

    background: var(--navy);
}

.hero-track {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}


/* IMAGE */
.hero-slide-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    z-index: 0;
}


/* DARK GRADIENT OVER IMAGE */
.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        100deg,
        rgba(10, 12, 20, 0.92) 0%,
        rgba(10, 12, 20, 0.55) 45%,
        rgba(10, 12, 20, 0.35) 100%
    );

    z-index: 1;
}


/* TEXT */
.hero-inner {
    position: relative;
    z-index: 2;
}



/*
   Carousel typography uses Montserrat.
*/

.hero,
.hero * {
    font-family: var(--font-carousel);
}


/*
   Important:
   Keep carousel captions left aligned.
*/

.hero-inner {
    width: 100%;
    max-width: var(--container);

    margin: 0 auto;

    padding: 0 24px;

    text-align: left;
}

.hero-eyebrow {
    color: var(--red);

    font-weight: 700;
    font-size: 15px;

    letter-spacing: 0.5px;
}

.hero-figure {
    color: var(--red);

    font-size: 76px;
    font-weight: 800;

    line-height: 1;

    margin: 4px 0 6px;
}

.hero-figure span {
    font-size: 44px;
}

.hero-title {
    color: var(--white);

    font-size: 30px;
    font-weight: 700;

    letter-spacing: 0.5px;

    margin-bottom: 14px;
}

.hero-desc {
    color: var(--white);

    font-size: 17px;
    font-weight: 600;

    margin-bottom: 10px;
}

.hero-sub {
    color: rgba(255, 255, 255, 0.75);

    font-size: 14.5px;
    line-height: 1.6;

    max-width: 440px;

    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    gap: 14px;

    flex-wrap: wrap;
}


/* Carousel arrows */

.hero-arrow {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border-radius: 50%;
    border: none;

    background: rgba(255, 255, 255, 0.15);
    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    backdrop-filter: blur(4px);

    transition: background 0.15s ease;

    z-index: 5;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-arrow--prev {
    left: 24px;
}

.hero-arrow--next {
    right: 24px;
}


/* Carousel dots */

.hero-dots {
    position: absolute;

    bottom: 22px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 8px;

    z-index: 5;
}

.hero-dots button {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    border: none;

    background: rgba(255, 255, 255, 0.4);

    cursor: pointer;
    padding: 0;

    transition:
        background 0.15s ease,
        width 0.15s ease;
}

.hero-dots button.is-active {
    background: var(--red);

    width: 22px;

    border-radius: 5px;
}


/* ============================================================
   PROGRAMMES
   ============================================================ */

.programmes {
    padding: 72px 24px;
    background: var(--white);
}

.programme-grid {
    max-width: var(--container);

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 24px;
}

.programme-card {
    background: var(--white);

    border: 1px solid var(--grey-line);

    border-radius: var(--radius-lg);

    overflow: hidden;

    display: flex;
    flex-direction: column;

    box-shadow: var(--shadow);
}

.programme-media {
    height: 150px;

    border-radius:
        var(--radius-lg)
        var(--radius-lg)
        0
        0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.programme-logo {
    color: var(--white);

    font-size: 22px;
    font-weight: 800;

    text-align: center;

    letter-spacing: 0.2px;
}

.programme-logo em {
    display: block;

    font-style: normal;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 3px;

    margin-top: 4px;

    opacity: 0.85;
}

.programme-media--dafabet {
    background: linear-gradient(135deg, #C40428, #7E0016);
}

.programme-media--nextbet {
    background: linear-gradient(135deg, #16233F, #0A1122);
}

.programme-media--dafabet-za {
    background: linear-gradient(135deg, #2A3145, #171B28);
}

.programme-media--placeholder {
    background: linear-gradient(135deg, #A9ADB6, #7C7F87);
}

.programme-media--placeholder .programme-logo {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.programme-body {
    padding: 22px 20px 24px;

    display: flex;
    flex-direction: column;

    gap: 10px;

    flex: 1;
}

.programme-body h3 {
    font-size: 17px;
    font-weight: 700;
}

.programme-body p {
    font-size: 13.5px;

    color: var(--ink-soft);

    line-height: 1.55;

    flex: 1;
}

.programme-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 6px;

    flex-wrap: wrap;
}


/* ============================================================
   BENEFITS — SIX CARDS
   ============================================================ */

.benefits {
    padding: 56px 24px 76px;

    background: var(--grey-bg);
}

.benefits-grid {
    max-width: var(--container);

    margin: 44px auto 0;

    background: var(--white);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    padding: 44px 30px;

    /*
       Six cards in ONE ROW on desktop.
    */

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 20px;
}

.benefit-card {
    min-width: 0;

    text-align: center;

    display: flex;
    flex-direction: column;

    align-items: center;

    padding: 0 5px;
}

.benefit-icon {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--red);

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 15px;
    font-weight: 700;

    line-height: 1.35;

    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 12.5px;

    color: var(--ink-soft);

    line-height: 1.5;

    max-width: 170px;
}


/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
    padding: 20px 24px 80px;

    background: var(--grey-bg);

    text-align: center;
}

.cta-eyebrow {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;

    margin-bottom: 26px;
}

.cta-box {
    max-width: 800px;

    margin: 0 auto;

    background: var(--white);

    border: 1px solid var(--grey-line);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    padding: 46px 40px;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 20px;
}
.cta-flex{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.cta-text {
    font-size: 16px;

    color: var(--ink-soft);

    max-width: 460px;

    line-height: 1.6;
}

.cta-terms {
    font-size: 13px;

    text-decoration: underline;

    color: var(--ink-soft);
}

.cta-terms:hover {
    color: var(--ink);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    /*
       White footer as requested.
    */

    background: var(--white);

    color: var(--ink);

    padding: 56px 24px 24px;

    border-top: 1px solid var(--grey-line);
}

.footer-grid {
    max-width: var(--container);

    margin: 0 auto;

    /*
       Exactly five columns.
    */

    display: grid;

    grid-template-columns:
        1.6fr
        1fr
        1fr
        1fr
        1fr;

    gap: 32px;
}


/* Footer logo */

.brand--footer .brand-text {
    color: var(--ink);
}

.brand--footer .brand-text em {
    color: var(--ink-soft);
}

.footer-brand p {
    margin-top: 14px;

    font-size: 13px;

    line-height: 1.6;

    max-width: 240px;

    color: var(--ink-soft);
}


/* Footer columns */

.footer-col h4 {
    color: var(--ink);

    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;

    margin-bottom: 16px;
}

.footer-col a {
    display: block;

    font-size: 13.5px;

    color: var(--ink-soft);

    margin-bottom: 12px;

    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--ink);
}


/* Social icons */

.footer-social {
    display: flex;

    align-items: center;

    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #F1F2F4;

    color: var(--ink);

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-social a:hover {
    background: var(--red);

    color: var(--white);

    transform: translateY(-2px);
}


/* Footer bottom */

.footer-bottom {
    max-width: var(--container);

    margin: 44px auto 0;

    padding-top: 22px;

    border-top: 1px solid var(--grey-line);

    text-align: center;
}

.footer-bottom p {
    font-size: 12.5px;

    color: var(--ink-soft);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1100px) {

    /*
       At this point six cards become too narrow,
       so use three columns.
    */

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        row-gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 720px) {

    /* Navigation */

    .main-nav {
        position: fixed;

        top: 63px;

        left: 0;
        right: 0;

        background: var(--white);

        flex-direction: column;

        align-items: flex-start;

        gap: 2px;

        padding: 10px 24px 18px;

        border-bottom: 1px solid var(--grey-line);

        transform: translateY(-130%);

        opacity: 0;

        visibility: hidden;

        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    .main-nav.is-open {
        transform: translateY(0);

        opacity: 1;

        visibility: visible;
    }

    .main-nav a {
        width: 100%;

        padding: 12px 0;

        border-bottom: 1px solid var(--grey-line);

        border-radius: 0;
    }

    .main-nav a:hover {
        background: #000;
        color: #fff;

        padding-left: 12px;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
        order: -1;
    }

    .nav-wrap {
        padding: 12px 18px;

        gap: 14px;
    }

    .brand {
        margin-right: auto;
    }

    

    .nav-actions .btn {
        padding: 9px 16px;

        font-size: 12.5px;
    }


    /* Hero */

    .hero {
        height: 620px;
    }

    .hero-inner {
        padding: 0 20px;

        text-align: left;
    }

    .hero-figure {
        font-size: 58px;
    }

    .hero-figure span {
        font-size: 34px;
    }

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

    .hero-arrow {
        width: 36px;
        height: 36px;
    }

    .hero-arrow--prev {
        left: 12px;
    }

    .hero-arrow--next {
        right: 12px;
    }

    .hero-cta {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero-cta .btn {
        width: 100%;

        justify-content: center;
    }

    .hero-arrow{
        display: none;
    }


    /* Section headings */

    .section-head h2 {
        font-size: 24px;
        text-transform:uppercase;
    }


    /* Programmes */

    .programmes {
        padding: 52px 18px;
    }

    .programme-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .programme-actions {
        justify-content: flex-start;
    }


    /* Benefits */

    .benefits {
        padding: 44px 18px 56px;
    }

    .benefits-grid {
        padding: 30px 22px;

        grid-template-columns: 1fr;

        gap: 28px 0;
    }

    .benefit-card {
        width: 100%;
    }


    /* CTA */

    .cta-section {
        padding: 10px 18px 56px;
    }

    .cta-eyebrow {
        font-size: 21px;
    }

    .cta-box {
        padding: 34px 24px;
    }

    .cta-box .btn-lg {
        width: 100%;
    }


    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 30px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero-slide,
    .link-arrow svg,
    .main-nav,
    .footer-social a {
        transition: none;
    }
}


/* ============================================================
   FOCUS VISIBILITY
   ============================================================ */

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--red);

    outline-offset: 2px;
}