
.error-box {
    background: #ffe6e6;        /* red light background */
    color: #d8000c;             /* red text */
    border: 1px solid #ff5c5c;  /* red border */
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    /* FOOTER */
footer {
    text-align: center;
    background: #1a202c;
    color: #cbd5e0;
    padding: 20px;
    margin-top: 50px;
  }
/* Container responsive */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 1rem;
    background: #ffffffff; /* white with slight transparency */
}

/* Header */
.container h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    color: #0073e6;
    margin-bottom: 0.5rem;
}

.container .intro {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

/* 💻 Desktop kubwa default (columns 3) */
.grades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* default desktop view */
    gap: 1rem;
}

/* Card ya darasa */
.grade-card {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}
.grade-card:hover {
    transform: translateY(-5px);
}

.grade-card h2 {
    text-align: center;
    margin-bottom: 0.8rem;
    font-size: 16px;
}

.grade-card ul {
    list-style: none;
    padding: 0;
}

.grade-card ul li {
    padding: 0.1rem 0;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.download-link {
    display: block;
    padding: 0.3rem;
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.download-link:hover {
    text-decoration: none;
    color: #ffffcc;
    background-color: black;
}
.about-section {
    width: 90%;
    max-width: 1200px;
    background: #fff;
    margin: 10px auto;
    padding: 1rem;
    border-radius: 10px;
}

.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: 0.8rem;
    line-height: 1.6;
    margin: 0 ;
    flex: 1 ;
    text-align: left;
}

.about-image {
    flex: 1;
}
/* 📱 Simu kubwa / tablet ndogo (columns 2) */
@media screen and (max-width:1115px){
    .about-container {
        gap: 25px; /* nafasi kati ya picha na maandishi */
    }
    .about-text{
        position: relative;
        top: -40px;
    }
}
@media screen and (max-width: 768px) {
    /* Ads spacing kwenye simu */
    .ads-wrapper {
        margin: 25px 0;
    }
    .grades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .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;
   }
   .about-image img {
        max-width: 90%;           /* isichukue screen yote */
        margin: 0 auto;
   }



  /* Ads spacing kwenye simu */
    .ads-wrapper {
        margin: 25px 0;
    }
    .about-text {
        position: relative;
        top: 0px;
        padding: 0 10px;          /* punguza padding ili yawe karibu */
        font-size: 13px;
    }
    .about-text p {
        font-size: 12px;
    }
}
@media screen and (max-width: 480px) {
    .about-text {
        padding: 0 10px;
        text-align:left;          /* punguza padding ili yawe karibu */
    }
    .about-text h2{
        font-size: 16px;
    }
    .contact-section p {
        display: flex;
        font-size:12px ;
    }
    p i{
        margin-left: 5px;
    }
    .error-box {
        font-size: 0.8rem;
    }
    .contact-section h3 {
        margin-left: 12px;
        color: ;
    }
    .grades-grid {
        grid-template-columns: 1fr;
    }
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    .social-links .social-icon {
         width: 80%;
         justify-content: center;
    }
    .contact-social-container h2 { font-size: 14px; }
    .contact-social-container p { font-size: 14px; }
    .social-links .social-icon { font-size: 14px; }
}