/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    /* Rangi zote zilizounganishwa kutoka kwenye logo yako rasmi */
    --primary-color: #12a89d;
    /* Bluu ya Bahari / Cyan kutoka kwenye alama ya 'e' */
    --secondary-color: #ffc107;
    /* Njano/Dhahabu ya Logo ya awali */
    --brand-red: #d9232a;
    /* Nyekundu rasmi ya maandishi ya ERIBEN */
    --dark-blue: #091026;
    /* Bluu nzito ya giza kwa ajili ya Hero Background */
    --medium-blue: #141f40;
    /* Bluu ya kati kwa ajili ya Gradient */
    --white: #ffffff;
    --text-slate: #94a3b8;
    /* Rangi ya kijivu kwa maelezo ya giza */
    --dark-color: #1e293b;
    /* Rangi ya maandishi makuu */
    --light-color: #f8fafc;
    /* Rangi nyeupe ya kijivu ya background */
    --light-bg: #f8fafc;
    --text-color: #334155;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

ul {
    list-style: none;
}

/* ==========================================================================
   2. MAIN HEADER & NAVBAR STYLE (MABORESHO YA UPANA NA MISTARI)
   ========================================================================== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar-container {
    max-width: 1300px;
    /* Tulilinganisha na upana wa slider na kadi */
    margin: 0 auto;
    padding: 10px 20px;
    /* Tulipunguza kutoka 15px hadi 10px ili kuifanya iwe nyembamba na nadhifu */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    /* Tulipunguza gap kuu */
}

/* 2.1 Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Inazuia logo isibonyezwe au kubanwa */
}

.logo-area a {
    display: inline-block;
    line-height: 0;
    text-decoration: none !important;
    /* Inaondoa mstari chini ya nembo */
}

.site-logo {
    height: 38px;
    /* Tulipunguza kidogo kwa unadhifu */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.site-logo:hover {
    transform: scale(1.03);
}

.logo-area .logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

/* 2.2 Search Bar Style (THE FIX: Tulipunguza upana ili kupisha menu) */
.search-area {
    position: relative;
    flex: 0 1 260px;
    /* Tulipunguza kutoka 350px hadi 260px ili kuongeza nafasi ya links */
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 5px 15px;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(18, 168, 157, 0.15);
}

.search-form input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--text-color);
    padding-right: 8px;
}

.search-form button {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

/* 2.3 Navigation Links (THE FIX: Kuondoa mistari na kuzuia "Contact Us" kushuka) */
.navigation-menu {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    /* Inaziweka links katikati ya nafasi iliyobaki */
}

.navigation-menu .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Tulipunguza nafasi kati ya link na link kutoka 25px hadi 20px */
    white-space: nowrap;
    /* MUHIMU: Inazuia neno kama "Contact Us" kushuka chini */
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding: 8px 0;
    text-decoration: none !important;
    /* THE FIX: INAONDOA MSTARI WA CHINI WA LINK */
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color) !important;
}

/* Mistari laini ya urembo wa chini (Hover Effect pekee) */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 2.4 Actions (Cart & Auth) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cart-icon-btn {
    position: relative;
    font-size: 20px;
    color: var(--dark-color);
    text-decoration: none !important;
    /* Inaondoa mstari kwenye kigari */
    transition: var(--transition);
}

.cart-icon-btn:hover {
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #ef4444;
    /* Badala ya var isiyojulikana, tumeweka nyekundu thabiti */
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    /* Inaondoa mstari */
    transition: var(--transition);
}

.btn-login:hover {
    background-color: rgba(18, 168, 157, 0.05);
}

.btn-register {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background-color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    text-decoration: none !important;
    /* Inaondoa mstari */
    transition: var(--transition);
}

.btn-register:hover {
    background-color: #0e8f85;
    border-color: #0e8f85;
    box-shadow: 0 4px 12px rgba(18, 168, 157, 0.25);
}

.mobile-menu-toggle {
    display: none;
    font-size: 22px;
    background: none;
    border: none;
    color: var(--dark-color);
    cursor: pointer;
}
/* ==========================================================================
   3. RESPONSIVE DESIGN (MEDIA QUERIES FOR NAVBAR)
   ========================================================================== */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .navigation-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 30px 20px;
        z-index: 999;
    }

    .navigation-menu.active {
        display: block;
    }

    .navigation-menu .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-links a {
        width: 100%;
        font-size: 18px;
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links a::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .search-area {
        display: none;
    }

    .site-logo {
        height: 40px;
    }
}

/* ==========================================================================
   LIVE SEARCH RESULTS DROPDOWN
   ========================================================================== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1010;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: rgba(18, 168, 157, 0.03);
    padding-left: 25px;
}

.search-result-item i {
    color: #94a3b8;
    font-size: 14px;
    transition: var(--transition);
}

.search-result-item:hover i {
    color: var(--primary-color);
    transform: translateX(3px);
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.result-category {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.no-results {
    padding: 15px 20px;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

/* ==========================================================================
   USER PROFILE IN NAVBAR
   ========================================================================== */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f1f5f9;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.btn-logout {
    color: #ef4444;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-logout:hover {
    transform: scale(1.1);
    color: #b91c1c;
}

/* ==========================================================================
   DYNAMIC HERO SLIDER & REPAIRED CARDS OVERLAP
   ========================================================================== */
.hero-section-slider {
    position: relative;
    width: 100%;
    background-color: #090a26;
    overflow: hidden;
    z-index: 1;
}

.hero-slide-bg {
    width: 100%;
    height: 580px;
    /* Urefu uliodhibitiwa vizuri */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(9, 10, 38, 0.85) 45%, rgba(9, 10, 38, 0.3) 100%);
    z-index: 2;
}

/* Container ya Maandishi - Inahakikisha inaruhusu maudhui kukaa katikati */
.hero-container-full {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    /* Inasukuma block nzima iende katikati ya skrini (horizontally) */
}

/* Muundo wa Maandishi yaliyopo juu ya Picha (Sasa yapo Center) */
.hero-content-center {
    max-width: 800px;
    /* Tuliongeza kidogo ili herufi zikae kwa upana mzuri zikiwa katikati */
    color: var(--white);
    text-align: center;
    /* Inafanya maandishi yaanze katikati */
}

/* ==========================================================================
   MABORESHO MAPYA: HERO CONTENT SHADOWS, BADGE & TEXT REFINEMENT
   ========================================================================== */
.hero-content-center h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    /* Inazuia maneno yasipotee kwenye picha zenye mwanga */
}

.hero-content-center p {
    font-size: 16px;
    line-height: 1.6;
    color: #f1f5f9 !important;
    /* Rangi nyeupe safi iliyolainika */
    margin-bottom: 35px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   MABORESHO MAPYA: CODES ZA BUTTONS (KUTOKA BLU LINKS KUWA MABOKSI IMARA)
   ========================================================================== */
.hero-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    /* Inalazimisha button zote mbili zikae katikati ya skrini */
    margin-top: 25px;
}

/* Button Kuu (Mfano: Get Started / Explore Courses) */
.btn-primary-hero {
    background-color: #12a89d !important;
    /* Rangi yako maalum ya kijani/cyan */
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    /* INAONDOA MSTARI WA CHINI WA LINK */
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(18, 168, 157, 0.3);
    /* Kivuli kidogo cha rangi ya cyan chini ya button */
}

.btn-primary-hero:hover {
    background-color: #0e8f85 !important;
    /* Inakuwa giza kidogo ukigusa */
    color: #ffffff !important;
    transform: translateY(-2px);
    /* Inajinyanyua juu kidogo */
    box-shadow: 0 8px 20px rgba(18, 168, 157, 0.45);
}

/* Button ya Pili (Mfano: Contact Us) */
.btn-secondary-hero {
    background-color: rgba(255, 255, 255, 0.15) !important;
    /* Box linalopenya mwanga wa picha ya nyuma */
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    /* INAONDOA MSTARI WA CHINI WA LINK */
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    /* Mstari mweupe wa pembeni ya box */
    backdrop-filter: blur(5px);
    /* Muonekano wa kisasa wa kioo kilichofifia (Glassmorphism) */
}

.btn-secondary-hero:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    /* Weupe unaongezeka ukisogeza mshale */
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
}


/* ==========================================================================
   FLOATING SERVICE CARDS SECTION (THE REAL FIX)
   ========================================================================== */
.hero-floating-cards-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    /* Inalinda background ya chini ya kadi */
    z-index: 10;
}

.hero-categories-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
    /* Hapa ndipo overlap ya kisasa inatokea kwa kuvuta kadi kwenda juu ya picha */
    transform: translateY(-80px);
    margin-bottom: -40px;
    /* Inaziba pengo ili section inayofuata isikae mbali */
}

/* MUONEKANO WA KADI (Kurejesha CSS iliyopotea kwenye picha) */
.category-card {
    background: #ffffff !important;
    /* Inalazimisha background iwe nyeupe safi */
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(9, 10, 38, 0.08);
    /* Kivuli laini cha kisasa */
    transition: all 0.3s ease;
    border: 1px solid rgba(9, 10, 38, 0.03);
    text-align: left;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(9, 10, 38, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(18, 168, 157, 0.08);
    color: #12a89d;
    /* Rangi yako ya kijani/cyan */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.category-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #090a26;
    /* Rangi ya kiza ya kichwa cha habari */
    margin-bottom: 15px;
}

.category-card p {
    font-size: 15px;
    color: #4a5568;
    /* Rangi ya kijivu iliyo wazi kusomeka */
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    color: #12a89d;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.card-link:hover {
    gap: 12px;
    color: #0e8f85;
}
/* ==========================================================================
   4. FEATURED COURSES SECTION
   ========================================================================== */
.featured-courses-section {
    padding: 180px 20px 100px 20px;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

.course-image {
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-body {
    padding: 25px;
}

.course-body h3 {
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 50px;
}

.course-body p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 63px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.course-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.course-duration {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.course-actions {
    display: flex;
    gap: 10px;
}

.btn-add-to-cart {
    flex: 2;
    background-color: #f1f5f9;
    color: var(--dark-color);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-add-to-cart:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-view-details {
    flex: 1;
    border: 1px solid #e2e8f0;
    color: var(--dark-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-view-details:hover {
    background-color: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.btn-view-all:hover {
    gap: 15px;
}

/* ==========================================================================
   WHY CHOOSE US & COUNTER DESIGN
   ========================================================================== */
.why-choose-us-section {
    padding: 100px 20px;
    background-color: var(--white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.pillars-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 35px;
}

.pillar-item {
    display: flex;
    gap: 15px;
}

.pillar-icon {
    font-size: 22px;
    color: var(--primary-color);
    margin-top: 3px;
}

.pillar-text h4 {
    font-size: 18px;
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 5px;
}

.pillar-text p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.counters-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.counter-card-item {
    background-color: var(--light-bg);
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.counter-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--brand-red);
    margin-bottom: 10px;
}

.counter-card-item p {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-blue);
}

/* ==========================================================================
   SERVICES HIGHLIGHT (CONSULTATION & RESEARCH)
   ========================================================================== */
.services-highlight-section {
    padding: 100px 20px;
    background-color: var(--light-bg);
}

.highlight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.highlight-row:last-child {
    margin-bottom: 0;
}

.highlight-row.reverse {
    grid-template-columns: 1fr 1fr;
}

.highlight-image {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.highlight-text h2 {
    font-size: 34px;
    color: var(--dark-blue);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.highlight-text p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-highlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}

.btn-highlight-cta:hover {
    color: #0e8f85;
    gap: 14px;
}

/* ==========================================================================
   5. PREMIUM FOOTER DESIGN (MABORESHO YA MISTARI NA ICON)
   ========================================================================== */
.main-footer-section {
    background-color: #090a26;
    /* Tulibadilisha var(--dark-blue) kuwa rangi thabiti ya bluu ya giza ili ifanane na slider */
    color: #94a3b8;
    padding-top: 80px;
    border-top: 4px solid #12a89d;
    /* Rangi yako ya kijani/cyan */
    position: relative;
    z-index: 5;
}

.footer-top-container {
    max-width: 1300px;
    /* Tulilinganisha na upana wa tovuti nzima */
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-column .footer-logo {
    max-height: 55px;
    margin-bottom: 20px;
    background-color: var(--white);
    padding: 5px 12px;
    border-radius: 6px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8 !important;
    /* Inahakikisha maandishi hayabadiliki kuwa bluu */
}

/* --- THE FIX: ICON ZA SOCIAL MEDIA --- */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08) !important;
    /* Tuliongeza weupe kidogo wa background */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    /* INALAZIMISHA ICON ZIONEKANE NYEUPE SAFI */
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none !important;
    /* Inaondoa mstari kwenye icon */
    transition: var(--transition);
}

.social-links a:hover {
    background-color: #12a89d !important;
    /* Rangi yako ya kijani/cyan ukigusa */
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(18, 168, 157, 0.3);
}

.footer-column h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: #12a89d;
    /* Tulibadilisha kuwa rangi yako ya cyan badala ya nyekundu ya zamani */
    border-radius: 5px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
}

/* --- THE FIX: LINKS ZA FOOTER KUREJESHA RANGI NA KUONDOA MISTARI --- */
.footer-links-list li a {
    font-size: 14px;
    color: #94a3b8 !important;
    /* Rangi ya kijavu ya kisasa, sio Bluu ya link */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    /* THE FIX: INAONDOA MSTARI WA CHINI WA LINKS */
    transition: var(--transition);
}

.footer-links-list li a i {
    font-size: 10px;
    color: #12a89d !important;
    /* Mishale ya pembeni inakuwa ya kijani */
    transition: var(--transition);
}

.footer-links-list li a:hover {
    color: #ffffff !important;
    /* Inakuwa nyeupe safi ukisogeza mshale (Hover) */
    padding-left: 6px;
}

.footer-links-list li a:hover i {
    color: #ffffff !important;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    gap: 15px;
    font-size: 14px;
    align-items: flex-start;
    color: #94a3b8;
}

.footer-contact-list li i {
    font-size: 16px;
    color: #12a89d !important;
    /* Icon za email, simu na eneo zinakuwa za kijani */
    margin-top: 3px;
}

.footer-contact-list li span {
    line-height: 1.5;
}

.footer-contact-list li small {
    color: #64748b;
    display: block;
    margin-top: 2px;
}

.footer-bottom-bar {
    background-color: #050a18;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom-container p span {
    color: #ffffff;
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #64748b !important;
    text-decoration: none !important;
    /* Inaondoa mstari chini ya Privacy Policy & Terms */
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #ffffff !important;
}

/* ==========================================================================
   6. SHOPPING CART PAGE DESIGN
   ========================================================================== */
.cart-page-section {
    padding: 60px 20px 120px 20px;
    background-color: var(--light-bg);
    min-height: 70vh;
}

.cart-page-container {
    max-width: 1300px;
    margin: 0 auto;
}

.cart-title-header {
    margin-bottom: 40px;
}

.cart-title-header h2 {
    font-size: 32px;
    color: var(--dark-blue);
    font-weight: 800;
}

.cart-title-header p {
    color: #64748b;
    font-size: 15px;
}

.cart-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item-row {
    background-color: var(--white);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.cart-item-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(9, 16, 38, 0.05);
}

.cart-item-info h4 {
    font-size: 18px;
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-item-info .item-tag {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(18, 168, 157, 0.1);
    padding: 3px 10px;
    border-radius: 50px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
}

.btn-remove-item {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-remove-item:hover {
    background-color: #fef2f2;
    transform: scale(1.1);
}

.empty-cart-box {
    background-color: var(--white);
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.empty-cart-box i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-cart-box h4 {
    font-size: 22px;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.btn-back-to-courses {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

.summary-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(9, 16, 38, 0.05);
}

.summary-card h3 {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 25px;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
    color: #64748b;
}

.total-row {
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.total-row span:first-child {
    font-weight: 700;
    color: var(--dark-blue);
    font-size: 16px;
}

.total-row span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-red);
}

.btn-checkout-main {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-bottom: 20px;
}

.btn-checkout-main:hover {
    background-color: #0e8f85;
    box-shadow: 0 10px 20px rgba(18, 168, 157, 0.2);
}

.continue-shopping {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    transition: var(--transition);
}

.continue-shopping:hover {
    color: var(--dark-blue);
}

/* ==========================================================================
   7. LOGIN & REGISTRATION (AUTH PAGES) DESIGN
   ========================================================================== */
.auth-page-section {
    padding: 80px 20px;
    background-color: var(--light-bg);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.auth-card {
    background-color: var(--white);
    padding: 45px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(9, 16, 38, 0.08);
    border: 1px solid #e2e8f0;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 28px;
    color: var(--dark-blue);
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: #64748b;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-blue);
}

.form-group label .required {
    color: var(--brand-red);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: var(--dark-blue);
    background-color: #fff;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(18, 168, 157, 0.1);
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.form-checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-checkbox-group a,
.label-wrapper-flex .forgot-pass-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.form-checkbox-group a:hover,
.label-wrapper-flex .forgot-pass-link:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

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

.btn-auth-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-auth-submit:hover {
    background-color: #0e8f85;
    box-shadow: 0 10px 20px rgba(18, 168, 157, 0.2);
    transform: translateY(-1px);
}

.auth-footer-text {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-top: 15px;
}

.auth-footer-text a {
    color: var(--brand-red);
    font-weight: 700;
    transition: var(--transition);
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   8. SUB-PAGES INNER HERO & LAYOUTS
   ========================================================================== */
.page-hero-section {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--medium-blue) 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
    border-bottom: 3px solid var(--primary-color);
}

.page-hero-container h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-hero-container p {
    color: var(--text-slate);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.about-details-section,
.all-courses-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.about-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text-side h3 {
    font-size: 32px;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 800;
}

.about-text-side p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-vision-side {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.vision-box {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 14px;
    border-left: 5px solid var(--primary-color);
}

.vision-box h4 {
    font-size: 18px;
    color: var(--dark-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-box h4 i {
    color: var(--brand-red);
}

.vision-box p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================================================
   9. EXTRA PAGES STYLING (CONSULTATION, RESEARCH, CONTACT)
   ========================================================================== */
.consultation-form-section,
.research-list-section,
.contact-page-section {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.form-select-custom {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: var(--dark-blue);
    background-color: var(--white);
    outline: none;
}

.form-select-custom:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark-blue);
    resize: vertical;
    outline: none;
}

.form-group textarea:focus {
    border-color: var(--primary-color);
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.research-card {
    background-color: var(--white);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.research-meta-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
}

.research-tag {
    background-color: rgba(217, 35, 42, 0.1);
    color: var(--brand-red);
    padding: 2px 10px;
    border-radius: 40px;
    font-weight: 700;
}

.research-card h3 {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 15px;
    line-height: 1.4;
}

.research-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-download-research {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-details-side h3 {
    font-size: 28px;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.contact-details-side p {
    color: #64748b;
    margin-bottom: 35px;
}

.contact-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-box-item {
    display: flex;
    gap: 20px;
}

.info-box-item i {
    font-size: 24px;
    color: var(--primary-color);
    background-color: rgba(18, 168, 157, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box-item h4 {
    font-size: 16px;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

/* ==========================================================================
   GLOBAL RESPONSIVE DESIGN (MEDIA QUERIES AT THE BOTTOM)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 35px auto;
    }

    .hero-cta-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        height: 400px;
    }

    .hero-categories-container {
        position: relative;
        bottom: 0;
        margin-top: 60px;
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }

    .hero-section-slider {
        padding-bottom: 40px;
    }

    .featured-courses-section {
        padding-top: 60px;
    }

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

    .why-choose-grid,
    .highlight-row,
    .highlight-row.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .highlight-row.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .highlight-image {
        height: 280px;
    }

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

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

@media (max-width: 992px) {

    .cart-layout-grid,
    .research-grid,
    .contact-grid-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .courses-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .auth-card {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   DATA INTELLIGENCE SECTION DESIGN
   ========================================================================== */
.data-intelligence-section {
    padding: 100px 0;
    background-color: #f8fafc; /* Rangi ya kijivu laini sana ili kutofautisha na section nyeupe */
    position: relative;
    overflow: hidden;
}

.di-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.di-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* --- Upande wa Visual Cards (Kushoto) --- */
.di-visual-side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.di-feature-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(9, 10, 38, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    max-width: 450px;
}

.primary-card {
    align-self: flex-start;
    border-left: 5px solid #12a89d; /* Rangi yako ya Cyan */
}

.secondary-card {
    align-self: flex-end;
    border-left: 5px solid #090a26; /* Rangi yako ya Bluu ya Giza */
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
}

.di-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(9, 10, 38, 0.08);
}

.di-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(18, 168, 157, 0.1);
    color: #12a89d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.secondary-card .di-icon-box {
    background-color: rgba(9, 10, 38, 0.05);
    color: #090a26;
}

.di-feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #090a26;
    margin-bottom: 12px;
}

.di-feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* --- Upande wa Maelezo (Kulia) --- */
.di-content-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.di-badge {
    background-color: rgba(18, 168, 157, 0.1);
    color: #12a89d;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.di-content-side h2 {
    font-size: 38px;
    font-weight: 800;
    color: #090a26;
    line-height: 1.25;
    margin-bottom: 20px;
}

.di-intro-text {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 30px;
}

/* Gridi ndogo ya makundi ya huduma */
.di-services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
}

.di-service-group h5 {
    font-size: 16px;
    font-weight: 700;
    color: #090a26;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.di-service-group h5 i {
    color: #12a89d;
}

.di-service-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.di-service-group ul li {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.di-service-group ul li i {
    color: #12a89d;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* --- THE BUTTON FIX: BOX YA KISASA KAMA ZA JUU --- */
.di-action-area {
    margin-top: 10px;
}

.btn-di-explore {
    background-color: #12a89d !important;
    color: #ffffff !important;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important; /* Inaondoa ule mstari wa link ya bluu */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 168, 157, 0.25);
    border: none;
}

.btn-di-explore i {
    transition: transform 0.3s ease;
}

.btn-di-explore:hover {
    background-color: #0e8f85 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 168, 157, 0.35);
}

.btn-di-explore:hover i {
    transform: translateX(5px); /* Mshale unasogea mbele kidogo ukigusa */
}

/* --- RESPONSIVE DESIGN (KWA AJILI YA SIMU) --- */
@media (max-width: 992px) {
    .di-grid {
        grid-template-columns: 1fr; /* Inazileta juu na chini kwenye tablet na simu */
        gap: 50px;
    }
    
    .di-visual-side {
        order: 2; /* Inamfanya mteja asome maelezo kwanza kabla ya kadi kwenye simu */
    }
    
    .di-feature-card {
        max-width: 100%; /* Kadi zinajinyoosha upana mzima wa skrini ya simu */
    }
    
    .di-content-side h2 {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .di-services-split {
        grid-template-columns: 1fr; /* Kwenye simu ndogo sana makundi yanakaa juu na chini */
        gap: 25px;
    }
    
    .data-intelligence-section {
        padding: 60px 0;
    }
}
/* ==========================================================================
   DATA INTELLIGENCE PAGE STYLES
   ========================================================================== */
.internal-hero-banner {
    position: relative;
    background-color: #090a26; /* Rangi yako kuu ya giza */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.internal-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(18, 168, 157, 0.15) 0%, rgba(9, 10, 38, 0.4) 100%);
}

.internal-hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.internal-badge {
    background: rgba(18, 168, 157, 0.2);
    color: #12a89d;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.internal-hero-container h1 {
    font-size: 40px;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 15px;
}

.internal-hero-container p {
    font-size: 16px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Page Content Body */
.di-page-content {
    padding: 80px 0;
    background-color: #f8fafc;
}

.di-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.di-main-intro {
    max-width: 850px;
    margin: 0 auto 60px auto;
}

.di-main-intro h2 {
    font-size: 32px;
    color: #090a26;
    font-weight: 800;
    margin-bottom: 20px;
}

.di-main-intro p {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
}

/* Detailed Services Grid */
.di-services-detailed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.di-detailed-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(9, 10, 38, 0.02);
    border: 1px solid #e2e8f0;
}

.highlighted-card {
    border-top: 5px solid #12a89d;
}

.di-card-header-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.di-page-icon {
    width: 45px;
    height: 45px;
    background: rgba(18, 168, 157, 0.1);
    color: #12a89d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.di-card-header-area h3 {
    font-size: 22px;
    font-weight: 700;
    color: #090a26;
    margin: 0;
}

.card-intro-p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Lists */
.di-detailed-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.di-detailed-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.di-detailed-list li i {
    color: #12a89d;
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   FORM SECTION DESIGN (Premium Glass/Box Style)
   ========================================================================== */
.di-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: #090a26;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(9, 10, 38, 0.15);
}

.form-info-side {
    background: linear-gradient(135deg, #090a26 0%, #0f123d 100%);
    padding: 50px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.form-info-side h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.form-info-side p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 30px;
}

.form-mini-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #12a89d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-inputs-side {
    background: #ffffff;
    padding: 50px;
}

.form-group-di {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-row-di {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-di label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.form-group-di input,
.form-group-di select,
.form-group-di textarea {
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: all 0.3s ease;
}

.form-group-di input:focus,
.form-group-di select:focus,
.form-group-di textarea:focus {
    border-color: #12a89d;
    box-shadow: 0 0 0 3px rgba(18, 168, 157, 0.1);
}

.btn-submit-di {
    background-color: #12a89d !important;
    color: #ffffff !important;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: auto;
}

.btn-submit-di:hover {
    background-color: #0e8f85 !important;
    transform: translateY(-2px);
}

/* RESPONSIVE KWA SIMU */
@media (max-width: 992px) {
    .di-services-detailed-grid,
    .di-form-wrapper {
        grid-template-columns: 1fr;
    }
    .form-info-side {
        padding: 40px;
    }
    .form-inputs-side {
        padding: 30px;
    }
    .internal-hero-container h1 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .form-row-di {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .di-page-content {
        padding: 50px 0;
    }
}
/* ==========================================================================
   ABOUT PAGE RE-DESIGN ADVANCED STYLES
   ========================================================================== */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Kadi ya kipekee ya Mission (Background ya Giza la Bluu) */
.bg-dark-box {
    background: #090a26 !important;
    color: #ffffff !important;
}
.bg-dark-box h4 {
    color: #12a89d !important;
}
.bg-dark-box p {
    color: #cbd5e1 !important;
}

/* --- Core Values Section --- */
.core-values-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title-center {
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.value-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(9, 10, 38, 0.05);
    border-color: #12a89d;
}

.value-icon {
    font-size: 28px;
    color: #12a89d;
    margin-bottom: 15px;
}

.value-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #090a26;
    line-height: 1.4;
    margin: 0;
}

/* --- Objectives & Desire Section --- */
.objectives-disire-section {
    padding: 90px 0;
    background-color: #f8fafc;
}

.obj-desire-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.objectives-block h3, 
.desire-block h3 {
    font-size: 28px;
    font-weight: 800;
    color: #090a26;
    margin-bottom: 30px;
}

/* Numbered List Muundo wa Kisasa */
.about-numbered-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-numbered-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.num-badge {
    width: 35px;
    height: 35px;
    background: #12a89d;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-numbered-list li p {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Desire Block (Sticky Box Windows) */
.desire-sticky-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(9, 10, 38, 0.02);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
}

.desire-lead-p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 25px;
}

.about-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-check-list li {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-check-list li i {
    color: #12a89d;
    font-size: 18px;
}

/* --- RESPONSIVE DESIGN FOR ABOUT PAGE --- */
@media (max-width: 1200px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .obj-desire-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .desire-sticky-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   TRAINING DYNAMIC DIRECTORY PAGE STYLES
   ========================================================================== */
.tr-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-quote {
    font-style: italic;
    color: #12a89d !important;
    font-weight: 600;
}

/* Intro grid layout */
.training-intro-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.intro-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-main-text h3 {
    font-size: 30px;
    color: #090a26;
    font-weight: 800;
    margin-bottom: 20px;
}

.intro-main-text p {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
}

.delivery-methods-box {
    background-color: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.delivery-methods-box h4 {
    font-size: 18px;
    color: #090a26;
    font-weight: 700;
    margin-bottom: 20px;
}

.delivery-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    color: #334155;
    font-weight: 600;
}

.delivery-list li i {
    color: #12a89d;
    font-size: 16px;
}

/* Why Training Section */
.why-training-section {
    padding: 80px 0;
    background-color: #090a26;
    color: #ffffff;
}

.why-training-section .section-subtitle {
    color: #12a89d;
}

.why-training-section h3 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.why-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
}

.why-card:hover {
    background: rgba(18, 168, 157, 0.1);
    border-color: #12a89d;
    transform: translateY(-3px);
}

.why-card i {
    font-size: 26px;
    color: #12a89d;
}

.why-card p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    color: #cbd5e1;
}

/* --- Search & Filter Interface --- */
.live-courses-section {
    padding: 90px 0;
    background-color: #f8fafc;
}

.filter-search-wrapper {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(9, 10, 38, 0.02);
}

.search-box-container {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

#courseSearch {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

#courseSearch:focus {
    border-color: #12a89d;
    box-shadow: 0 0 0 4px rgba(18, 168, 157, 0.08);
}

.filter-buttons-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
}

.filter-buttons-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.filter-btn {
    background: #f1f5f9;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #12a89d;
    color: #ffffff;
}

/* --- Grid ya Kadi za Kozi --- */
.courses-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.db-course-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.db-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(9, 10, 38, 0.05);
    border-color: rgba(18, 168, 157, 0.3);
}

.c-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.c-code {
    background: rgba(9, 10, 38, 0.06);
    color: #090a26;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.c-duration {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.db-course-card h4 {
    font-size: 17px;
    color: #090a26;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.c-cat-badge {
    font-size: 11px;
    color: #12a89d;
    background: rgba(18, 168, 157, 0.08);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 20px;
}

.c-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.btn-enroll {
    color: #12a89d !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.btn-enroll:hover {
    gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .courses-directory-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 650px) {
    .courses-directory-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .why-training-section h3 { font-size: 26px; }
}

.c-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
}

.no-courses-alert {
    grid-column: 1 / -1;
    text-align: center;
    background-color: #f1f5f9;
    color: #475569;
    padding: 30px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed #cbd5e1;
}

.c-price {
    font-size: 14px;
    font-weight: 700;
    color: #12a89d;
}
/* ==========================================================================
   CONSULTANCY PAGE CORPORATE STYLES
   ========================================================================== */
.consultancy-intro-section {
    padding: 60px 0 30px 0;
    background-color: #ffffff;
}

.con-intro-card {
    background: #f8fafc;
    border-left: 5px solid #12a89d;
    padding: 40px;
    border-radius: 0 16px 16px 0;
}

.con-intro-card h3 {
    font-size: 26px;
    color: #090a26;
    font-weight: 800;
    margin-bottom: 15px;
}

.con-intro-card p {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

/* Split Grid Layout */
.consultancy-main-content {
    padding: 40px 0 90px 0;
    background-color: #ffffff;
}

.consultancy-split-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Consultancy Items */
.areas-list-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.area-item-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.area-item-box:hover {
    border-color: #12a89d;
    box-shadow: 0 10px 25px rgba(9, 10, 38, 0.03);
    transform: translateX(5px);
}

.area-item-box h4 {
    font-size: 18px;
    color: #090a26;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 10px 0;
}

.area-item-box h4 i {
    color: #12a89d;
    font-size: 18px;
}

.area-item-box p {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    padding-left: 33px;
}

/* Approach Timeline Box */
.approach-wrapper-box {
    background: #090a26;
    color: #ffffff;
    padding: 45px;
    border-radius: 20px;
}

.approach-wrapper-box h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.approach-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-line-item {
    display: flex;
    gap: 25px;
    position: relative;
}

.step-num {
    width: 36px;
    height: 36px;
    background: #12a89d;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(18, 168, 157, 0.15);
}

.step-line-item h5 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.step-line-item p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Sticky Form Styling */
.sticky-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(9, 10, 38, 0.05);
    position: sticky;
    top: 110px;
}

.form-card-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.form-card-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: #090a26;
    margin: 0 0 10px 0;
}

.form-card-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.con-styled-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.con-styled-form label {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.con-styled-form input[type="text"],
.con-styled-form input[type="email"],
.con-styled-form input[type="tel"],
.con-styled-form textarea,
.form-select-custom {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14.5px;
    outline: none;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.con-styled-form input:focus,
.con-styled-form textarea:focus,
.form-select-custom:focus {
    background-color: #ffffff;
    border-color: #12a89d;
    box-shadow: 0 0 0 4px rgba(18, 168, 157, 0.08);
}

.btn-consultancy-submit {
    background: #12a89d;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-consultancy-submit:hover {
    background: #090a26;
    transform: translateY(-2px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .consultancy-split-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .sticky-form-card {
        position: static;
    }
}

@media (max-width: 550px) {
    .form-group-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sticky-form-card {
        padding: 25px;
    }
}
/* ==========================================================================
   ERIBEN NAVBAR LOGIN BUTTON STYLES
   ========================================================================== */

/* Muundo mkuu wa kitufe cha Ingia kwenye Navbar */
.login-btn {
    color: #0284c7 !important; /* Rangi ya bluu ya kiprofeshonali */
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important; /* Inafuta ule mstari wa chini wa bluu */
    padding: 4px 8px !important;
    border-radius: 6px !important;
    border: 1.5px solid #0284c7 !important; /* Inatengeneza outline nzuri */
    background: transparent !important;
    transition: all 0.25s ease-in-out !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    margin-right: 10px !important; /* Inaleta nafasi kati yake na Register */
}

/* Mtumiaji akisogeza mouse juu ya kitufe (Hover effect) */
.login-btn:hover {
    background-color: #0284c7 !important; /* Kinajaa rangi ya bluu */
    color: #ffffff !important; /* Maandishi yanakuwa meupe */
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2) !important; /* Mwanga mlaini chini */
    transform: translateY(-1px) !important; /* Kinaongezeka juu kidogo */
}

/* Kitufe kikibonyezwa (Active state) */
.login-btn:active {
    transform: translateY(0) !important;
}
.login-modal-content {
    max-height: 90vh; /* Inazuia isizidi urefu wa screen */
    overflow-y: auto; /* Inaleta scrollbar ya ndani kama fomu ikiwa ndefu */
}