*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f5f5f5;
}

.container{
    width:95%;
    max-width:1350px;
    margin:auto;
}

/* HEADER */

.main-header{
    width:100%;
    background:#f2f2f2;
    border-top:8px solid #002b5c;
    position:relative;
    z-index:999;
}

.nav-wrapper{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:128px;
}

/* LOGO */

.logo img{
    height:95px;
    object-fit:contain;
}

/* NAVBAR */

.navbar{
    display:flex;
    align-items:center;
    gap:28px;
}

/* NAV ITEM */

.nav-item{
    position:relative;
}

.nav-item > a{
    text-decoration:none;
    color:#1e293b;
    font-size:17px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:8px;
    transition:0.3s;
}

.nav-item > a:hover{
    color:#ffb400;
}

.nav-item > a.active{
    color:#ffb400;
}

/* CATEGORY */

.category > a{
    padding-right:25px;
    border-right:1px solid #d9d9d9;
}

.category i.fa-grip{
    font-size:28px;
    color:#b3b3b3;
}

/* DROPDOWN */

.dropdown{
    position:absolute;
    top:55px;
    left:0;
    min-width:220px;
    background:#fff;
    box-shadow:0 5px 25px rgba(0,0,0,0.08);
    border-radius:8px;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:0.3s;
    overflow:hidden;
}

.dropdown a{
    display:block;
    padding:14px 18px;
    color:#333;
    text-decoration:none;
    font-size:15px;
    border-bottom:1px solid #f1f1f1;
    transition:0.3s;
}

.dropdown a:hover{
    background:#f8f8f8;
    color:#ffb400;
}

.nav-item:hover .dropdown{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* RIGHT */

.header-right{
    display:flex;
    align-items:center;
    gap:25px;
}

/* SEARCH */

.search-btn{
    width:48px;
    height:48px;
    border:2px solid #002b5c;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#002b5c;
    font-size:22px;
    transition:0.3s;
}

.search-btn:hover{
    background:#002b5c;
    color:#fff;
}

/* MENU BUTTON */

.menu-toggle{
    display:none;
    font-size:28px;
    cursor:pointer;
    color:#002b5c;
}

/* MOBILE */

@media(max-width:991px){

    .nav-wrapper{
        height:90px;
    }

    .logo img{
        height:70px;
    }

    .menu-toggle{
        display:block;
    }

    .navbar{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#fff;
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        padding:20px;
        display:none;
        box-shadow:0 5px 20px rgba(0,0,0,0.08);
    }

    .navbar.active{
        display:flex;
    }

    .nav-item{
        width:100%;
    }

    .nav-item > a{
        width:100%;
        padding:15px 0;
        justify-content:space-between;
        border-bottom:1px solid #f1f1f1;
    }

    .category > a{
        border-right:none;
        padding-right:0;
    }

    /* MOBILE DROPDOWN */

    .dropdown{
        position:static;
        opacity:1;
        visibility:visible;
        transform:none;
        box-shadow:none;
        border-radius:0;
        display:none;
        width:100%;
        background:#fafafa;
        margin-bottom:10px;
    }

    .nav-item.open .dropdown{
        display:block;
    }

    .dropdown a{
        padding-left:20px;
    }

}

/* =========================
   TOP BAR
========================= */

.top-bar{
    background:#002b5c;
    color:#fff;
    font-size:14px;
    padding:10px 0;
}

.top-bar-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.top-left,
.top-right{
    display:flex;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
}

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

.social-icons a{
    color:#fff;
    text-decoration:none;
    font-size:14px;
    transition:0.3s;
}

.social-icons a:hover{
    color:gold;
}




/* Mwili wa Slider Mkuu */
        .slider-container {
            position: relative;
            width: 100%;
            height: 100vh; /* Inachukua urefu wote wa skrini */
            max-height: 800px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Njia ya Slides (Track) */
        .slider-track {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform var(--transition-speed) ease-in-out;
        }

        /* Kila Slide Moja */
        .slide {
            min-width: 100%;
            height: 100%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Picha ya Msingi (Background Image) */
        .slide-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
        }

        /* Giza juu ya picha ili maandishi yasomeke vizuri */
        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
            z-index: 0;
        }

        /* Maudhui ya Slide (Maandishi na Vitu) */
        .slide-content {
            position: relative;
            z-index: 1;
            width: 90%;
            max-width: 1200px;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center; /* Kuweka kitu katikati */
            padding-bottom: 80px; /* Nafasi ya viboketi vya chini */
            color: var(--text-light);
            text-align: center;
        }

        /* Sehemu ya Maandishi Juu */
        .text-section {
            margin-bottom: 40px;
            animation: fadeInUp 1s ease forwards;
        }

        .text-section h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            line-height: 1.2;
        }

        .text-section p {
            font-size: 1.25rem;
            max-width: 800px;
            margin: 0 auto 30px;
            opacity: 0.9;
        }

        .cta-button {
            display: inline-block;
            padding: 12px 30px;
            background-color: var(--primary-color);
            color: #fff;
            font-weight: bold;
            text-decoration: none;
            border-radius: 50px;
            transition: background 0.3s;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        .cta-button:hover {
            background-color: #e68900;
        }

        /* Viboketi vya Habari (Info Blocks) - Chini */
        .info-cards-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: auto; /* Kusukuma chini kabisa */
            animation: fadeInUp 1.2s ease forwards;
        }

        .info-card {
            background: var(--card-bg);
            color: var(--secondary-color);
            padding: 25px 20px;
            border-radius: 8px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            text-align: center;
            transition: transform 0.3s ease;
        }

        .info-card:hover {
            transform: translateY(-5px);
        }

        .info-card h3 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: var(--primary-color);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .info-card p {
            font-size: 0.9rem;
            color: #555;
            line-height: 1.4;
        }

        
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(5px);
            border: none;
            color: white;
            font-size: 2rem;
            padding: 15px;
            cursor: pointer;
            z-index: 10;
            border-radius: 50%;
            transition: background 0.3s;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slider-arrow:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .prev-arrow { left: 20px; }
        .next-arrow { right: 20px; }

        /* Vituo vya Slides (Pagination Dots) */
        .slider-dots {
            position: absolute;
            bottom: 30px; /* Juu ya viboketi */
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            z-index: 10;
        }

        .dot {
            width: 12px;
            height: 12px;
            background-color: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s;
        }

        .dot.active {
            background-color: var(--primary-color);
            transform: scale(1.3);
        }

        /* Animations */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive Design (Simu na Tablet) */
        @media (max-width: 900px) {
            .info-cards-container {
                grid-template-columns: 1fr; /* Hifadhi moja kwa moja wima */
                position: absolute;
                bottom: 20px;
                left: 0;
                width: 100%;
                padding: 0 20px;
                gap: 10px;
            }

            .info-card {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 15px 20px;
                text-align: left;
            }
            
            .info-card h3 { margin-bottom: 0; margin-right: 15px; font-size: 0.95rem; }
            .info-card p { margin: 0; font-size: 0.85rem; }

            .text-section h1 { font-size: 2.2rem; }
            .slider-dots { bottom: auto; top: 20px; } 
            
            .slide-content { padding-bottom: 250px; justify-content: flex-start; padding-top: 100px; }
        }

        @media (min-width: 901px) and (max-width: 1200px) {
            .info-cards-container {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }
            .info-card h3 { font-size: 1rem; }
            .info-card p { font-size: 0.8rem; }
        }
		
		
 /* Sehemu Kuu ya About */
        .about-section {
            padding: 40px 5px;
            background-color: #ffffff;
        }

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

        /* Muundo wa Gridi Kuu (Layout wa Kushoto na Kulia) */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1.8fr; /* Kushoto ndogo, Kulia kubwa */
            gap: 50px;
            align-items: start;
        }

        /* -----------------------
           Sehemu ya Kushoto (Text)
           ----------------------- */
        .about-text {
            padding-right: 20px;
        }

        .section-label {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #ff9800; /* Rangi ya kinywaa/orange */
            font-weight: bold;
            margin-bottom: 10px;
            display: block;
        }

        .about-text h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #1a2a3a; /* Rangi ya buluu ilivyoiva */
            line-height: 1.2;
        }

        .about-text p {
            color: #555;
            margin-bottom: 25px;
            font-size: 1.05rem;
            text-align: justify;
        }

        /* Sehemu ya "Why Stands Out" */
        .why-standout {
            background-color: #f0f4f8;
            padding: 25px;
            border-radius: 8px;
            border-left: 4px solid #ff9800;
            margin-top: 30px;
        }

        .why-standout h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: #1a2a3a;
        }

        .feature-list {
            list-style: none;
        }

        .feature-list li {
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            font-size: 0.95rem;
            color: #444;
        }

        .feature-list li::before {
            content: '?';
            color: #ff9800;
            margin-right: 10px;
            font-weight: bold;
        }

        /* -----------------------
           Sehemu ya Kulia (Gallery ya Shule)
           ----------------------- */
        .schools-gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* Mikono mitatu kwa safu */
            gap: 15px;
        }

        .school-card {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background: #fff;
            cursor: pointer;
        }

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

        .school-img-wrapper {
            width: 100%;
            height: 180px; /* Kimo cha picha */
            overflow: hidden;
        }

        .school-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .school-card:hover img {
            transform: scale(1.1); /* Athari ya zoom wakati wa ku-hover */
        }

        .school-info {
            padding: 12px;
            text-align: center;
            background: #fff;
            border-top: 1px solid #eee;
        }

        .school-name {
            font-size: 0.95rem;
            font-weight: 600;
            color: #1a2a3a;
        }

        /* Responsive Design (Simu na Tablet) */
        @media (max-width: 992px) {
            .about-grid {
                grid-template-columns: 1fr; /* Safu moja kwa wote */
                gap: 40px;
            }
            .about-text {
                padding-right: 0;
                text-align: center;
            }
            .about-text p {
                text-align: left;
            }
        }

        @media (max-width: 768px) {
            .schools-gallery {
                grid-template-columns: repeat(2, 1fr); /* Mikono miwili kwenye tablet ndogo */
            }
            .about-text h2 {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            .schools-gallery {
                grid-template-columns: 1fr; /* Mkono mmoja kwenye simu */
            }
            .school-img-wrapper {
                height: 200px;
            }
            .about-text p {
                text-align: left; /* Rudi kushoto kwa usomaji mzuri */
            }
        }
		
		
		
		/* latest post*/		
		
		
		/* Sehemu Kuu */
        .latest-events-section {
            padding: 80px 20px;
            background-color: #f9f9f9; /* Rangi ya nyuma ilivyoiva kidogo */
        }

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

        /* Gridi kuu (Split Left & Right) */
        .content-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr; /* Kushoto kubwa kidogo kuliko Kulia */
            gap: 40px;
        }

        /* Michoro ya Vichwa (Section Titles) */
        .section-header {
            margin-bottom: 25px;
            border-bottom: 3px solid #ff9800; /* Rangi ya kijivu cha machungwa */
            display: inline-block;
            padding-bottom: 5px;
        }

        .section-header h2 {
            font-size: 1.8rem;
            color: #1a2a3a;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* -----------------------
           Sehemu ya Kushoto: Latest Posts
           ----------------------- */
        .post-card {
            background: #fff;
            padding: 25px;
            margin-bottom: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            border-left: 4px solid transparent;
            transition: all 0.3s ease;
        }

        .post-card:hover {
            border-left-color: #ff9800;
            transform: translateX(5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .post-meta {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 12px;
            font-size: 0.85rem;
            color: #777;
        }

        .post-date {
            font-weight: bold;
            color: #ff9800;
            background: #fff3e0;
            padding: 4px 10px;
            border-radius: 4px;
        }

        .post-author {
            font-style: italic;
        }

        .post-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: #1a2a3a;
            margin-bottom: 10px;
            line-height: 1.3;
            text-decoration: none;
            display: block;
        }

        .post-title:hover {
            color: #ff9800;
        }

        .post-excerpt {
            color: #555;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        /* -----------------------
           Sehemu ya Kulia: Upcoming Events
           ----------------------- */
        .events-wrapper {
            background: #fff;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between; /* Kusukuma kitufe chini */
        }

        .no-events-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            border: 2px dashed #ddd;
            border-radius: 8px;
            background-color: #fafafa;
            margin-bottom: 30px;
        }

        .no-events-icon {
            font-size: 3rem;
            color: #ccc;
            margin-bottom: 10px;
        }

        .no-events-text {
            color: #888;
            font-weight: 500;
            font-size: 1.1rem;
        }

        .btn-view-all {
            display: block;
            width: 100%;
            padding: 12px 0;
            text-align: center;
            background-color: #1a2a3a;
            color: #fff;
            text-decoration: none;
            font-weight: bold;
            border-radius: 5px;
            transition: background 0.3s;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 1px;
        }

        .btn-view-all:hover {
            background-color: #ff9800;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .content-grid {
                grid-template-columns: 1fr; /* Safu moja kwenye simu */
            }
            .events-wrapper {
                margin-top: 20px;
            }
        }
		


    /* FOOTER */
    .footer{
        background:#002b5c;
        color:#fff;
        position:relative;
        overflow:hidden;
    }

    /* TOP SOCIAL AREA */
    .footer-top{
        border-top:1px solid rgba(255,255,255,0.08);
        border-bottom:1px solid rgba(255,255,255,0.08);
        padding:22px 0;
        display:flex;
        justify-content:center;
        align-items:center;
        gap:18px;
    }

    .social-icon{
        width:64px;
        height:64px;
        border:1px solid rgba(255,255,255,0.2);
        border-radius:50%;
        display:flex;
        align-items:center;
        justify-content:center;
        color:#fff;
        text-decoration:none;
        font-size:28px;
        transition:0.3s;
    }

    .social-icon:hover{
        background:#ffcc00;
        color:#002b5c;
        transform:translateY(-3px);
    }

    /* MAIN FOOTER */
    .footer-main{
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:45px 7%;
        flex-wrap:wrap;
        gap:30px;
    }

    .footer-logo img{
        width:190px;
        max-width:100%;
    }

    .copyright{
        color:#d5d5d5;
        font-size:18px;
        text-align:center;
    }

    /* BACK TO TOP */
    .back-top{
        position:absolute;
        right:25px;
        bottom:25px;
        width:68px;
        height:68px;
        background:#ffcc00;
        border-radius:50%;
        display:flex;
        justify-content:center;
        align-items:center;
        color:#002b5c;
        font-size:34px;
        text-decoration:none;
        transition:0.3s;
    }

    .back-top:hover{
        transform:scale(1.08);
    }

    /* MOBILE */
    @media(max-width:768px){

        .footer-main{
            flex-direction:column;
            text-align:center;
            padding:35px 20px 100px;
        }

        .social-icon{
            width:52px;
            height:52px;
            font-size:22px;
        }

        .copyright{
            font-size:16px;
        }

        .back-top{
            width:58px;
            height:58px;
            font-size:28px;
            right:18px;
            bottom:18px;
        }
    }		
		