/* Muundo wa msingi kwa vifaa vikubwa (desktop na tablets) */
.container {
    width: 85%;
    margin: auto;
    font-family: 'Segoe UI', sans-serif;
    padding: 20px;
}

/* Flex layout kwa sehemu za shule */
.section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

/* Kila div ya elimu */
.section > div {
    flex: 1 1 45%;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    min-width: 280px;
}

/* Rangi kwa kila ngazi ya elimu */
.chekechea { background-color: #fffde7; }
.msingi { background-color: #e3f2fd; }
.sekondari { background-color: #e8f5e9; }
.advance { background-color: #fce4ec; }

/* Masomo */
ul {
    list-style-type: none; /* Ondoa vidoti */
    padding-left: 0;
    margin: 0;
}

ul li {
    border-bottom: 1px solid transparent; /* default: hakuna mstari */
    transition: border-color 0.3s;
}

ul li:hover {
    border-bottom: 1px solid #0077cc; /* Mstari wa bluu ukihover */
}

ul li a {
    display: block;
    padding: 8px 0;
    font-size: 1.05em;
    color: #0077cc;
    text-decoration: none; /* ⚠ Ondoa underline */
    transition: color 0.3s;
}

ul li a:hover {
    color: #005fa3; /* badilisha rangi tu */
}

/* Footer */
footer {
    text-align: center;
    background: #1a202c;
    color: #cbd5e0;
    padding: 20px;
    margin-top: 50px;
  }

/* 💡 Responsive kwa simu na vifaa vidogo */
@media screen and (max-width: 768px) {
  .container {
      width: 95%;
      padding: 10px;
  }

  .section {
    display: block; /* Badilisha layout kuwa ya kawaida kwenye simu */
  }

  .section > div {
      width: 100%;
     margin-bottom: 20px;
  }

  h1 {
      font-size: 1.3em;
  }

  h2 {
      font-size: 1.1em;
  }

  ul li {
      font-size: 1em;
  }

  .container > div {
      padding: 15px;
  }
}
