h1 {
    color: #333;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

/* Container ya box */
.box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 1100px;
    margin: auto;
    font-family: Arial, sans-serif;
    position: relative;
    top: 10px;
}
.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);
}
/* Button ya download */
a.download {
    display: inline-block;
    margin-top: 1rem;
    background-color: #007BFF;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}
a.download:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    text-align: center;
    background: #1a202c;
    color: #cbd5e0;
    padding: 20px;
    margin-top: 50px;
}

/* List ya topics */
.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* desktop ina column 2 */
    gap: 10px;
}

.topic-list li {
    background: #f7f7f7;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.topic-number {
    font-weight: bold;
    margin-right: 8px;
    color: #007BFF;
}
.topic-link {
    text-decoration: none;
    font-weight: bold;
    color: #007BFF;
}

.topic-link:hover {
    text-decoration: none;
}

.topic-desc {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0px;
    margin-left: 10px; /* inasogeza kulia */
}

/* ================= Responsive ================= */

/* Tablet */
@media (max-width: 768px) {
    .box {
        padding: 1rem;
    }
    .topic-list {
        grid-template-columns: 1fr; /* tablet na simu ni column 1 */
    }
}

/* Simu ndogo */
@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
        text-align: center;
    }
    .box p {
        font-size: 0.9rem;
        text-align: center;
    }
    .topic-list li {
        font-size: 0.9rem;
        padding: 6px;
    }
    .error-box {
        font-size: 0.8rem;
    }
}
