
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f7f9fb;
    box-sizing: border-box;
    width: 100%;
}

header {
    background-color: #0f62fe;
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(6px);
}
/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    height: 50px;
    background-color: white;
}

.logo-container {
    display: flex;
    align-items: center;
}
.site-logo {
    height: 70px; /* adjust size */
    width: auto;
    margin-top: -6px;
}
/* NAV LINKS (Desktop) */
header nav {
  display: flex;
  gap: 25px;
}

header nav a {
    display: block;          /* ili iwe full clickable */
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    height: 35px;            /* height ya kudumu */
    line-height: 35px;       /* vertically center text */
    padding: 0 20px;         /* pande za kushoto/kulia tu */
    transition: color 0.3s ease;
}

header nav a:hover {
  color: #000;
}

/* HAMBURGER TOGGLE */
.menu-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    left: 0;
    transition: 0.4s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}
.menu-toggle span:nth-child(2) {
    top: 10px;
}
.menu-toggle span:nth-child(3) {
    top: 20px;
}

/* Hamburger → X animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}
nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.content {
    padding: 20px;
    font-size: 1rem;
    background-color: white;
    margin: 20px auto;
    max-width: 960px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.content h1, .content h2 {
    color: #0f62fe;
    margin-bottom: 10px;
    font-size: 22px;
}
ul.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 ;
    max-width: 1100px; /* center on desktop */
}

ul.feature-list li {
    display: grid;
    grid-template-columns: 30px 140px 1fr; /* icon | title | desc */
    gap: 10px;
    align-items: start;
    padding: 12px 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* hover effect desktop */
ul.feature-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ICON */
ul.feature-list li i {
    font-size: 18px;
    color: red;
    line-height: 1;
    margin-top: 5px;
}

/* STRONG TITLE */
ul.feature-list li strong {
    font-weight: 600;
    color: #000;
}

/* DESCRIPTION */
ul.feature-list li div {
    color: #555;
    line-height: 1.4;
}

.content i {
    color: #0f62fe;
    margin-right: 8px;
}
.content a {
    color: #0f62fe;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.content a:hover {
    color: #0043ce;
    text-decoration: underline;
}
.search-container {
   position: relative;
   width: 100%;
   max-width: 400px; /* Adjust as needed */
   margin-left: auto; /* Pushes the container to the right */
   margin-right: 0;
}
.search-container input:focus {
   outline: none;
   box-shadow: none; /* Optional: hufuta kivuli kama kipo */
}

.search-container input {
   width: 100%;
   padding: 10px 40px 10px 15px; /* right padding for icon */
   border-radius: 50px;
   border: 1px solid #ccc;
   font-size: 16px;
   box-sizing: border-box;
}

.search-container .button {
   position: absolute;
   right: 10px;
   top: 50%;
   transform: translateY(-50%);
   border: none;
   background: transparent;
   font-size: 18px;
   cursor: pointer;
}

.contact-section {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    border-radius: 5px;
}
.contact-section h3 {
    margin-bottom: 10px;
    color: #0f62fe;
}
.contact-section p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #333;
}
.about-section {
    padding: 40px 15px;
    background: #f9f9f9;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    ustify-content: space-between;
    gap: 0px; /* nafasi kati ya picha na maandishi */
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    display: block;
}

.about-text {
    flex: 1; 
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 ;
    flex: 1 ;
}
/* ===== Kuweka Content katikati ===== */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}
/* ===== Picha ziwe responsive ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px; /* kidogo zionekane smart */
}
.about-image {
    flex: 1;
}
footer {
    background-color: #f1f1f1;
    color: #333;
    text-align: center;
    padding: 15px 10px;
    margin-top: 40px;
    font-size: 0.9rem;
}
p .a {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

p .a:hover {
    color: #0056b3;
    text-decoration: none;
}
 #aa {
    text-decoration: none;
    color: #999; /* Violet calm */
    transition: color 0.2s ease;
}

#aa:hover {
    color: #6f42c1; /* Pink nyepesi ya kung’aa */
    text-decoration: none;
}
.slider-container {
    width: 100%;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.slider {
    display: flex;
    transition: transform 1s ease;
}

.slider img {
    width: 100%;
    max-width: 900px;
    height: 400px;
    object-fit: cover;
    flex-shrink: 0;
}


  /* Arrows */
  .arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0 15px;
    cursor: pointer;
    z-index: 2;
    border-radius: 5px;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}


.slider-dots {
    text-align: center;
    margin-top: 10px;
}

.slider-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots span.active {
    background-color: #333;
}
.blog-teaser-container {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.blog-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #555;
}

.read-more {
    align-self: flex-start;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}



.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.8rem;
    object-fit: contain;
    align-self: center;
}

.blog-card {
    display: flex;
    flex-direction: column;
    align-items: start;
}

@media screen and (max-width:1115px){
    .about-container {
        gap: 25px; /* nafasi kati ya picha na maandishi */
    }
    .about-text{
        position: relative;
        top: -40px;
    }
}

/* ✅ Responsive kwa simu  ans small device*/
@media screen and (max-width: 768px) {
   .about-container {
        flex-direction: column;   /* picha na maandishi juu chini */
        text-align: center;       /* maandishi ya-center */
        gap: 20px;                /* punguza nafasi kati yao */
    }

   .about-image img {
        max-width: 90%;           /* isichukue screen yote */
        margin: 0 auto;
   }

  /* Punguza spacing sections */
    section {
        padding: 25px 15px;
    }

  /* Ads spacing kwenye simu */
    .ads-wrapper {
        margin: 25px 0;
    }
    .about-text {
        position: relative;
        top: 0px;
        padding: 0 10px;          /* punguza padding ili yawe karibu */
    }
    header nav {
        position: absolute;
        top: 80px;
        right: 0;
        background: rgba(34,34,34,0.97);
        flex-direction: column;
        width: 220px;
        text-align: left;
        padding: 10px 0;
        gap: 5px;
        /* hidden default - smooth transformation */
        transform: translateY(-20px) scaleY(0.9);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
        border-radius: 0 0 8px 8px;
    }

    header nav a {
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    header nav a:hover {
        color: #0f62fe;
    }
    header nav.active {
        transform: translateY(0) scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .blog-card {
        font-size: 0.95rem;
    }
    ul.feature-list {
        padding: 0 10px; /* kidogo breathing space */
   }

    ul.feature-list li {
        display: block;
        padding: 12px 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        margin-bottom: 12px;
        padding: 16px 14px; /* spacing imeongezwa kidogo */
        gap: 16px; /* nafasi zaidi kati ya icon na text */
    }

    ul.feature-list li strong {
        display: flex;      /* title mstari wake */
        margin-bottom: 6px;  /* kidogo nafasi juu ya desc */
        width: 90%;         /* acha ichukue screen yote */
        white-space: normal; /* ruhusu breaking vizuri */
        align-items: center;
        gap: 6px; /* icon na maandishi */
        padding-left: 5px;
        position: relative;
        top: 5px;
    }
    ul.feature-list li i{
        display: flex;      /* title mstari wake */
        float: left;

    }

    ul.feature-list li div {
        white-space: normal; /* waruhusu wrap ya kawaida */
        overflow-wrap: anywhere;
        line-height: 1.6; /* nafasi kubwa kidogo kati ya mistari */
    }
     .slider-container {
        max-width: 100%;
    }

    .slider img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    /* Optionally resize arrows if needed */
    .arrow {
        font-size: 1.5rem;
        top: 30%;
    }
}

@media screen and (max-width: 480px) {
    h1,h2 {
        font-size: 22px;
        align-items: center;
        text-align: left;
    }
    .content p{
        font-size: 14px;
        margin-bottom: 5px;
    }
    .content li{
        font-size: 14px;
    }
    .content strong {
        font-size: 0.8rem; 
        padding-right: 5px;
    }
    ul.feature-list li strong {
        width: 80%; 
    }
    .about-text {
        padding: 0 10px;
        text-align:left;          /* punguza padding ili yawe karibu */
    }
    .about-text h2{
        font-size: 20px;
    }
    .contact-section p {
        display: flex;
        font-size:14px ;
    }
    p i{
        margin-left: 5px;
    }
    .contact-section h3 {
        margin-left: 12px;
        color: ;
    }
    .arrow {
        font-size: 1.5rem;
        top: 28%;
    }

}
@media screen and (max-width: 360px){
    .arrow {
        font-size: 1.5rem;
        top: 25%;
    }
}
@media (min-width: 1280px) {
    .content{
        max-width: 1100px;
    }
}
/* Responsive behavior */
@media (min-width: 600px) {
    .blog-teaser-container {
        grid-template-columns: repeat(2, 1fr);
    }
}