﻿/* =========================================================
PROJECT: Walanda platform
FILE: index.css
PATH: /src/modules/platform/css/index.css
MODULE: platform
SCOPE: styling (global / component / page)
PURPOSE: public landing page
AUTHOR: Simasiku Nasilele
STANDARD: Walanda pro ui system
VERSION: 1.0.0
LAST UPDATED: 2026
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

button {
    font-family: inherit;
}

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

:root {
    /* BRAND */
    --primary: #1FA78A;
    --primary-hover: #168f77;
    /* BACKGROUND */
    --background: #F4F7F8;
    --card: #FFFFFF;
    /* TEXT */
    --text-dark: #2D3A3A;
    --muted: #6B7C7C;
    /* BORDER */
    --border: #E6ECEC;
    /* SHADOW */
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 6px 18px rgba(0,0,0,0.08);
    /* RADIUS */
    --radius-sm: 6px;
    --radius-md: 10px;
    /* SPACING SYSTEM */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 56px;
}

/* =========================================================
                BASE BODY
        ========================================================= */

body {
    font-family: "Inter","Segoe UI",sans-serif;
    background: var(--background);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}


/* =========================================================
                FORM FOUNDATION (GLOBAL)
        ========================================================= */

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 14px;
}

    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--primary);
        outline: none;
    }

/* =========================================================
                SPACING UTILITIES
        ========================================================= */

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

/* =========================================================
                SCROLL BEHAVIOR
        ========================================================= */

html {
    scroll-behavior: smooth;
}


/* =========================================================
                GRID SYSTEM
        ========================================================= */

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

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

/* =========================================================
                FLEX UTILITIES
        ========================================================= */

.flex {
    display: flex;
}

.flex-between {
    justify-content: space-between;
    align-items: center;
}

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

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}


/* =========================================================
                ROW / STACK SYSTEM
        ========================================================= */

.row {
    display: flex;
    gap: 20px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================================
                SIDEBAR LAYOUT
        ========================================================= */

.layout-sidebar {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 30px;
}


/* =========================================================
                DASHBOARD LAYOUT
        ========================================================= */

.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
    width: var(--sidebar-width);
}

.dashboard-main {
    flex: 1;
}


/* =========================================================
                CENTER UTILITIES
        ========================================================= */

.centered {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


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

@media (max-width: 1024px) {

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

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

    .layout-sidebar {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
    }
}


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

@media (max-width: 600px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--section-padding-sm) 0;
    }

    .container {
        padding: 0 15px;
    }
}


/* =========================================================
                GLOBAL SPACING SYSTEM (PREMIUM)
        ========================================================= */

.section {
    padding: 80px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================================
                COMPONENTS
        ================================ */


/* =========================================================
                BASE BUTTON
        ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}


/* =========================================================
                PRIMARY BUTTON
        ========================================================= */

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

    .btn-primary:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }


/* =========================================================
                OUTLINE BUTTON
        ========================================================= */

.btn-outline {
    background: white;
    border: 1px solid var(--border);
}

    .btn-outline:hover {
        background: #f5f9f9;
    }


/* =========================================================
                GHOST BUTTON
        ========================================================= */

.btn-ghost {
    background: transparent;
    color: var(--text-dark);
}

    .btn-ghost:hover {
        background: rgba(0,0,0,0.05);
    }


/* =========================================================
                ICON BUTTON
        ========================================================= */

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================
                TYPOGRAPHY (FLUID)
        ========================================================= */

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: clamp(28px, 5vw, 40px);
}

h2 {
    font-size: clamp(22px, 4vw, 30px);
}

h3 {
    font-size: clamp(18px, 3vw, 22px);
}

h4 {
    font-size: 16px;
}

p {
    font-size: 15px;
    color: var(--muted);
}

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



/* =========================================================
                BASE BADGE
        ========================================================= */

.badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}


/* =========================================================
                PRIMARY
        ========================================================= */

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


/* =========================================================
                LIGHT
        ========================================================= */

.badge-light {
    background: #eef3f3;
    color: var(--text-dark);
}


/* =========================================================
                SUCCESS
        ========================================================= */

.badge-success {
    background: #e7f8f4;
    color: var(--primary);
}


/* =========================================================
                WARNING
        ========================================================= */

.badge-warning {
    background: #fff4e5;
    color: #d48a00;
}


/* =========================================================
                DANGER
        ========================================================= */

.badge-danger {
    background: #ffecec;
    color: #b33;
}



/* =========================================================
                BASE CARD
        ========================================================= */

.card {
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

    .card:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }


/* =========================================================
                COURSE CARD
        ========================================================= */

.course-card {
    min-width: 260px;
    cursor: pointer;
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

    .course-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }

    /* IMAGE */

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

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

/* CONTENT */

.course-info {
    padding: 16px;
}

    .course-info h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

/* META */

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

/* PRICE */

.course-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
}


/* =========================================================
                FEATURE CARD
        ========================================================= */

.feature-card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-md);
    }


/* =========================================================
                INDEX-HERO
        ========================================================= */

.hero:not(.hero-split) {
    position: relative;
    width: 100%;
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 80px;
    overflow: hidden;
}

/* HERO IMAGE */

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* HERO TEXT */

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 520px;
    color: var(--primary);
}

    .hero-text h1 {
        font-size: 48px;
        margin-bottom: 20px;
        color: var(--primary);
    }

    .hero-text p {
        font-size: 18px;
        margin-bottom: 25px;
        line-height: 1.6;
        color: var(--primary);
    }

/* BUTTON */

.hero-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    transition: 0.25s;
}

    .hero-btn:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
    }


/* =========================================================
                FEATURES (PREMIUM SaaS)
        ========================================================= */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.feature-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(0,0,0,0.08);
    }

    .feature-card h3 {
        font-size: 16px;
        font-weight: 600;
        color: var(--primary-hover);
        margin-bottom: 6px;
    }

    .feature-card p {
        font-size: 13px;
        color: var(--muted);
        line-height: 1.5;
    }

    .feature-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, var(--primary), transparent);
        opacity: 0;
        transition: 0.3s;
    }

    .feature-card:hover::before {
        opacity: 1;
    }


/* =========================================================
                FEATURE ICON
        ========================================================= */

.feature-icon {
    margin: 0 auto 16px;
}

    .feature-icon img {
        width: 110px;
        height: 110px;
        object-fit: contain;
    }


/* =========================================================
                COURSE SEARCH
        ========================================================= */

.course-search-section {
    padding: 60px 20px 20px;
    text-align: center;
}

    .course-search-section h2 {
        margin-bottom: 20px;
        color: var(--primary-hover);
    }

.course-search-box {
    max-width: 600px;
    margin: auto;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .course-search-box input {
        flex: 1;
        border: none;
        padding: 14px 16px;
        font-size: 15px;
    }

        .course-search-box input:focus {
            outline: none;
        }

    .course-search-box button {
        background: var(--primary);
        border: none;
        padding: 0 18px;
        color: white;
        cursor: pointer;
        font-size: 16px;
    }

        .course-search-box button:hover {
            background: var(--primary-hover);
        }

/* =========================================================
                COURSE SEARCH ALIGNMENT FIX 
        ========================================================= */

.course-search-section {
    text-align: center;
}

    .course-search-section h2 {
        margin-bottom: 10px;
    }

    .course-search-section .section-subtitle {
        margin: 6px auto 20px auto;
        text-align: center;
        max-width: 600px;
    }

/* SEARCH DROPDOWN ALIGNMENT */

.search-results {
    margin-left: auto;
    margin-right: auto;
}

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

.section-header {
    margin-bottom: 20px;
}

.section-title {
    color: var(--primary-hover);
    font-weight: 700;
}

.section-subtitle {
    margin-top: 6px;
    color: #666;
    max-width: 620px;
}

/* =========================================================
                SECTION TITLE ALIGN FIX
        ========================================================= */

.course-group .section-title {
    text-align: left;
    margin-bottom: 20px;
}

/* =========================================================
                IMAGE
        ========================================================= */

.course-image-wrapper {
    position: relative;
    height: 160px;
}

    .course-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* =========================================================
                BADGES
        ========================================================= */

.course-category-badge,
.course-price-badge {
    position: absolute;
    top: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.course-category-badge {
    left: 10px;
    background: #fff;
    color: #333;
    font-size: 11px;
}

.course-price-badge {
    right: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
}


/* =========================================================
                CONTENT
        ========================================================= */

.course-info {
    padding: 16px;
    text-align: left;
}

.course-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #1f7f6d;
    align-items: flex-start;
}


/* =========================================================
                COURSE ROW SLIDER
        ========================================================= */

.scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

    .scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

.scroll-wrapper {
    scrollbar-width: none;
}

.scroll-row {
    display: flex;
    gap: 20px;
    padding: 10px 0 20px 0;
}

.course-slider > .scroll-wrapper > .scroll-row {
    gap: 0;
    padding: 0;
}

    .course-slider > .scroll-wrapper > .scroll-row > .course-group {
        min-width: 100%;
        flex: 0 0 100%;
        scroll-snap-align: start;
    }


/* =========================================================
                COURSE CARD
        ========================================================= */

.course-card {
    min-width: 260px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    flex-shrink: 0;
    transition: all 0.25s ease;
    scroll-snap-align: start;
}

.course-card-empty {
    display: flex;
    align-items: center;
    min-height: 220px;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}


/* =========================================================
                COURSE IMAGE
        ========================================================= */

.course-image-wrapper {
    position: relative;
}

.course-card img,
.course-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* =========================================================
                PRICE BADGE
        ========================================================= */

.course-price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
                CATEGORY BADGE
        ========================================================= */

.course-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ffffff;
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
                COURSE INFO
        ========================================================= */

.course-info {
    padding: 16px;
}

.course-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--primary-hover);
}


/* =========================================================
                COURSE INSTRUCTOR (FINAL STABLE VERSION)
        ========================================================= */

.course-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    height: 36px;
}


/* AVATAR */

.instructor-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}


/* INITIALS FALLBACK */

.instructor-initials {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: #1FA78A;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

/* =========================================================
                PREMIUM SLIDER UX
        ========================================================= */

.course-slider > .scroll-wrapper {
    cursor: grab;
}

    .course-slider > .scroll-wrapper.dragging {
        cursor: grabbing;
        scroll-behavior: auto;
    }

/* =========================================================
                PREMIUM COURSE CARD (EXACT STYLE)
        ========================================================= */

.premium-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

    .premium-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    }

    /* IMAGE */

    .premium-card .course-image-wrapper {
        position: relative;
    }

    .premium-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

    /* BADGES */

    .premium-card .course-category-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: white;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
    }

    .premium-card .course-price-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: var(--primary);
        color: white;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

    /* CONTENT */

    .premium-card .course-info {
        padding: 16px;
    }

    .premium-card .course-title {
        font-size: 15px;
        font-weight: 600;
        color: var(--primary-hover);
        margin-bottom: 12px;
    }

/* FOOTER ROW */

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* INSTRUCTOR PILL */

.instructor-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f4;
    padding: 6px 12px;
    border-radius: 20px;
}

    .instructor-pill img {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
    }

    .instructor-pill span {
        font-size: 13px;
        font-weight: 600;
    }

/* STUDENTS */

.students {
    font-size: 12px;
    color: var(--muted);
}

    .students i {
        margin-right: 6px;
    }

/* =========================================================
                TESTIMONIALS
        ========================================================= */

.testimonials {
    background: #f7faf9;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-hover);
}

.testimonial-wrapper {
    overflow: visible;
    position: relative;
}

.testimonial-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 30px;
    -webkit-overflow-scrolling: touch;
}

    /* hide scrollbar */

    .testimonial-row::-webkit-scrollbar {
        display: none;
    }

.testimonial-row {
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 280px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.testimonial-text {
    font-size: 14px;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.6;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-hover);
}

    .testimonial-user img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
    }

    .testimonial-user strong {
        display: block;
        font-size: 14px;
    }

    .testimonial-user span {
        font-size: 12px;
        color: var(--primary-dark);
    }

.testimonial-user-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--primary-dark);
}

.testimonial-separator {
    color: var(--primary-hover);
}

.testimonial-rating {
    color: #f39c12;
    font-size: 14px;
    margin-bottom: 12px;
}

/* TESTIMONIAL STARS */

.testimonial-rating {
    color: #f39c12;
    font-size: 13px;
    margin-bottom: 10px;
}

/* COMPANY LOGO */

.company-logo {
    height: 14px;
    vertical-align: middle;
}

/* HOVER */

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}

.testimonial-wrapper::before,
.testimonial-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonial-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f7faf9, transparent);
}

.testimonial-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f7faf9, transparent);
}

.home-inline-ad {
    max-width: 980px;
    margin: 0 auto;
}

/* =========================================================
        HOMEPAGE BURSARIES PREVIEW
        ========================================================= */

.home-bursaries {
    background: #f7faf9;
}

.preview-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.preview-section-action {
    white-space: nowrap;
}

.home-bursary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-bursary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .home-bursary-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

.home-bursary-cover {
    height: 190px;
    background: linear-gradient(135deg, rgba(31, 167, 138, 0.22), rgba(47, 143, 131, 0.55));
}

    .home-bursary-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.home-bursary-body {
    padding: 20px;
}

.home-bursary-topline {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.home-bursary-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(31, 167, 138, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.home-bursary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-bursary-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 10px;
}

    .home-bursary-title a {
        color: inherit;
        text-decoration: none;
    }

.home-bursary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.home-bursary-chip {
    font-size: 12px;
    background: #f2f7f7;
    color: #496161;
    padding: 8px 10px;
    border-radius: 999px;
}

.home-bursary-desc {
    font-size: 14px;
    color: #596767;
    line-height: 1.7;
    margin-bottom: 18px;
}

.home-bursary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.home-apply-btn,
.home-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.home-apply-btn {
    background: var(--primary);
    color: #fff;
}

    .home-apply-btn:hover {
        background: var(--primary-hover);
    }

.home-secondary-btn {
    background: #f3f8f7;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.home-bursary-card-empty .home-bursary-body {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* =========================================================
                PREMIUM STATS SECTION
        ========================================================= */

.stats {
    position: relative;
    padding: 140px 20px;
    overflow: hidden;
}

/* BACKGROUND IMAGE */

.stats-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .stats-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 1;
        transform: scale(1.05);
    }

/* WRAPPER */

.stats-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
}

/* CONTAINER (GLASS EFFECT) */

.stats-container {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

/* INDIVIDUAL STAT */

.stat {
    text-align: center;
    transition: all 0.3s ease;
}

    /* HOVER LIFT */

    .stat:hover {
        transform: translateY(-6px) scale(1.05);
    }

    /* NUMBER */

    .stat h3 {
        font-size: 40px;
        font-weight: 700;
        color: white;
        margin-bottom: 8px;
    }

    /* LABEL */

    .stat p {
        font-size: 14px;
        color: rgba(255,255,255,0.85);
    }

.stats-container {
    animation: floatStats 6s ease-in-out infinite;
}

@keyframes floatStats {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* =========================================================
                RESPONSIVE
        ========================================================= */

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


/* =========================================================
                SCROLLBAR
        ========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #c9d8d8;
    border-radius: 6px;
}

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

@media (max-width: 600px) {

    .btn {
        width: 100%;
        padding: 12px;
    }

    input {
        font-size: 16px;
    }
}

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

.walanda-footer {
    background: linear-gradient(180deg, #3AA49B, #2F8F83);
    color: white;
    padding: 30px 0 20px;
}

/* =========================================================
                DIVIDER
        ========================================================= */

.footer-divider {
    height: 2px;
    background: rgba(255,255,255,0.35);
    width: 100%;
    margin-bottom: 25px;
}

/* =========================================================
                WRAPPER
        ========================================================= */

.footer-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 0 30px;
}

/* =========================================================
                LOGO
        ========================================================= */

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 60px;
}

/* =========================================================
                GRID
        ========================================================= */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

/* =========================================================
                COLUMNS
        ========================================================= */

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: white;
}

.footer-col p,
.footer-col a {
    display: block;
    font-size: 13px;
    color: #d7eeee;
    margin-bottom: 6px;
    text-decoration: none;
}

    .footer-col a:hover {
        color: white;
    }

/* =========================================================
                COLUMN SEPARATOR
        ========================================================= */

.border-left {
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 18px;
}


/* =========================================================
                SOCIAL ICONS
        ========================================================= */

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

    .social-icons a {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        color: #0c4f52;
        border-radius: 50%;
        font-size: 13px;
    }


/* =========================================================
                BOTTOM
         ========================================================= */

.footer-bottom {
    text-align: right;
    margin-top: 25px;
    font-size: 13px;
    color: #cdeeee;
}

/* =========================================================
        FIND A TEACHER (FINAL)
        ========================================================= */

.find-teacher {
    background: #f7faf9;
}

    /* HEADER */

    .find-teacher .section-header {
        position: relative;
        margin-bottom: 30px;
    }

.header-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.header-action {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* SCROLL */

.teacher-row {
    display: flex;
    gap: 20px;
}

/* CARD */

.teacher-card {
    min-width: 240px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

    .teacher-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-md);
    }

/* AVATAR */

.teacher-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

/* Initials monogram shown when an instructor has no profile photo. */
.teacher-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
}

/* NAME */

.teacher-name {
    font-size: 16px;
    font-weight: 600;
}

/* RATING */

.teacher-rating {
    font-size: 13px;
    color: #f39c12;
    margin-bottom: 6px;
}

/* SUBJECT */

.teacher-subject {
    font-size: 13px;
    color: var(--primary);
}

/* PRICE */

.teacher-price {
    font-size: 13px;
    font-weight: 600;
    margin: 8px 0;
}

.teacher-card-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

/* BUTTON */

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

/* =========================================================
        VERIFICATION SYSTEM
        ========================================================= */

.verify-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    font-size: 10px;
    color: white;
}

    /* TYPES */

    .verify-badge.walanda {
        background: #1FA78A;
    }

    .verify-badge.institution {
        background: #3b82f6;
    }

    .verify-badge.pro {
        background: #8b5cf6;
    }

    .verify-badge.top {
        background: #f59e0b;
    }

/* =========================================================
        HERO SPLIT REFERENCE VARIANT
========================================================= */

.hero.hero-split {
    position: relative;
    min-height: 720px;
    height: 84vh;
    display: block;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    background: #edf4f3;
}

.hero-base-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

    .hero-base-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
    }

.hero-left-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(244, 247, 248, 0.82) 0%, rgba(244, 247, 248, 0.60) 20%, rgba(244, 247, 248, 0.30) 40%, rgba(244, 247, 248, 0.12) 55%, rgba(244, 247, 248, 0.00) 75%);
}

.hero-left-overlay {
    position: relative;
    z-index: 3;
    width: 58%;
    height: 100%;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 720px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(80px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.9s;
    pointer-events: none;
}

    .hero-slide.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
        pointer-events: auto;
    }

    .hero-slide.is-leaving {
        opacity: 0;
        visibility: visible;
        transform: translateX(-36px);
        transition: opacity 0.78s ease, transform 0.78s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
        pointer-events: none;
    }

.hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 78px 72px 78px 78px;
    overflow: hidden;
    --hero-heading: #1fa78a;
    --hero-body: #1b5e58;
    --hero-text-shadow-strong: 0 2px 6px rgba(0, 0, 0, 0.08), 0 10px 25px rgba(0, 0, 0, 0.05);
    --hero-text-shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.05);
    --hero-overlay-1: rgba(255, 255, 255, 0.60);
    --hero-overlay-2: rgba(255, 255, 255, 0.45);
    --hero-overlay-3: rgba(255, 255, 255, 0.25);
    --hero-overlay-4: rgba(255, 255, 255, 0.12);
    --hero-glow-1: rgba(255, 255, 255, 0.35);
    --hero-glow-2: rgba(255, 255, 255, 0.15);
}

.hero-copy-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    filter: blur(0.3px);
    transform: scale(1.04) translate3d(0, 0, 0);
    transition: opacity 1s ease, transform 0.22s ease-out, background-image 0.4s ease;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.9) 60%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.1) 90%, rgba(0, 0, 0, 0.0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.9) 60%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0.1) 90%, rgba(0, 0, 0, 0.0) 100%);
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, var(--hero-overlay-1) 0%, var(--hero-overlay-2) 20%, var(--hero-overlay-3) 40%, var(--hero-overlay-4) 60%, rgba(255, 255, 255, 0.00) 80%);
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 30% 50%, var(--hero-glow-1), var(--hero-glow-2) 40%, transparent 70%);
}

.hero-copy h1 {
    max-width: 620px;
    font-size: clamp(40px, 4.8vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--hero-heading);
    margin-bottom: 16px;
    text-shadow: var(--hero-text-shadow-strong);
}

.hero-copy p {
    max-width: 560px;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.78;
    color: var(--hero-body);
    margin-bottom: 26px;
    text-shadow: var(--hero-text-shadow-soft);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

    .hero-kicker.press {
        background: rgba(59, 130, 246, 0.14);
        color: #2563eb;
        border: 1px solid rgba(59, 130, 246, 0.22);
    }

    .hero-kicker.announcement {
        background: rgba(31, 167, 138, 0.14);
        color: #1fa78a;
        border: 1px solid rgba(31, 167, 138, 0.22);
    }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

    .hero-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        padding: 13px 24px;
        border-radius: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    }

    .hero-actions .btn-primary {
        background: var(--primary);
        color: #ffffff;
        border: 1px solid transparent;
        box-shadow: 0 14px 30px rgba(31, 167, 138, 0.18);
    }

        .hero-actions .btn-primary:hover {
            background: var(--primary-hover);
            transform: translateY(-2px);
        }

    .hero-actions .btn-outline {
        background: rgba(255, 255, 255, 0.70);
        color: #214f4b;
        border: 1px solid rgba(31, 167, 138, 0.20);
        backdrop-filter: blur(6px);
    }

        .hero-actions .btn-outline:hover {
            background: rgba(255, 255, 255, 0.88);
            transform: translateY(-2px);
        }

.hero-copy.is-dark-image {
    --hero-heading: #f6fffd;
    --hero-body: rgba(244, 255, 252, 0.94);
    --hero-text-shadow-strong: 0 2px 8px rgba(0, 0, 0, 0.32), 0 12px 28px rgba(0, 0, 0, 0.28);
    --hero-text-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.26);
    --hero-overlay-1: rgba(7, 18, 18, 0.42);
    --hero-overlay-2: rgba(7, 18, 18, 0.26);
    --hero-overlay-3: rgba(7, 18, 18, 0.10);
    --hero-overlay-4: rgba(7, 18, 18, 0.03);
    --hero-glow-1: rgba(0, 0, 0, 0.16);
    --hero-glow-2: rgba(0, 0, 0, 0.06);
}

.hero-copy.is-light-image {
    --hero-heading: #0f3f3a;
    --hero-body: #1b5e58;
    --hero-text-shadow-strong: 0 2px 6px rgba(0, 0, 0, 0.08), 0 10px 25px rgba(0, 0, 0, 0.05);
    --hero-text-shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.05);
    --hero-overlay-1: rgba(255, 255, 255, 0.60);
    --hero-overlay-2: rgba(255, 255, 255, 0.45);
    --hero-overlay-3: rgba(255, 255, 255, 0.25);
    --hero-overlay-4: rgba(255, 255, 255, 0.12);
    --hero-glow-1: rgba(255, 255, 255, 0.35);
    --hero-glow-2: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1280px) {
    .hero-left-overlay {
        width: 62%;
    }

    .hero-copy {
        padding: 68px 52px 68px 56px;
    }
}

@media (max-width: 1024px) {
    .hero.hero-split {
        min-height: 660px;
        height: auto;
    }

    .hero-left-overlay,
    .hero-stage,
    .hero-copy {
        min-height: 660px;
    }

    .hero-left-overlay {
        width: 68%;
    }

    .hero-copy {
        padding: 60px 38px 60px 40px;
    }
}

@media (max-width: 900px) {
    .hero.hero-split {
        min-height: 620px;
    }

    .hero-left-overlay {
        width: 100%;
        min-height: 620px;
    }

    .hero-stage,
    .hero-copy {
        min-height: 620px;
    }

    .hero-copy {
        padding: 40px 22px 40px 22px;
    }

    .hero-left-shade {
        background: linear-gradient(180deg, rgba(244, 247, 248, 0.94) 0%, rgba(244, 247, 248, 0.84) 24%, rgba(244, 247, 248, 0.52) 54%, rgba(244, 247, 248, 0.16) 76%, rgba(244, 247, 248, 0.00) 100%);
    }

    .hero-copy-bg {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.82) 65%, rgba(0, 0, 0, 0.55) 78%, rgba(0, 0, 0, 0.25) 90%, rgba(0, 0, 0, 0.00) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0.82) 65%, rgba(0, 0, 0, 0.55) 78%, rgba(0, 0, 0, 0.25) 90%, rgba(0, 0, 0, 0.00) 100%);
    }

    .hero-copy.is-dark-image {
        --hero-overlay-1: rgba(7, 18, 18, 0.36);
        --hero-overlay-2: rgba(7, 18, 18, 0.22);
        --hero-overlay-3: rgba(7, 18, 18, 0.10);
        --hero-overlay-4: rgba(7, 18, 18, 0.02);
    }

    .hero-copy.is-light-image {
        --hero-overlay-1: rgba(255, 255, 255, 0.72);
        --hero-overlay-2: rgba(255, 255, 255, 0.56);
        --hero-overlay-3: rgba(255, 255, 255, 0.34);
        --hero-overlay-4: rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 1100px) {
    .home-bursary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero.hero-split {
        min-height: 560px;
    }

    .hero-left-overlay,
    .hero-stage,
    .hero-copy {
        min-height: 560px;
    }
    .hero-copy {
        padding: 28px 18px;
    }

        .hero-copy h1 {
            font-size: clamp(32px, 9vw, 42px);
        }

        .hero-copy p {
            font-size: 15px;
            line-height: 1.68;
        }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .hero-actions .btn {
            width: 100%;
        }

    .preview-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-bursary-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.is-active,
    .hero-slide.is-leaving,
    .hero-copy-bg {
        transition: none !important;
        transform: none !important;
    }
}


/* =========================================================
END OF FILE
FILE: index.css
PATH: /src/modules/platform/css/index.css
MODULE: platform
STATUS: stable
MAINTAINED BY: Walanda core system
COPYRIGHT: © 2026 Walanda Inc. Ltd. All rights reserved.
========================================================= */


