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);
}


/* Footer */
footer {
    text-align: center;
    background: #1a202c;
    color: #cbd5e0;
    padding: 20px;
    margin-top: 50px;
}
/* Mobile-first: block */
.results {
    display: block;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

.results li {
    margin: 8px 0;
    padding: 5px 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #f7f7f7;
    display: flex;
    flex-direction: column; 
    box-sizing: border-box;
    width: 100%; /* mobile default */
}

/* Title + subtitle link */
.results li strong {
    margin-bottom: 6px;
    color: #007BFF;
}
.results li a {
    text-decoration: none;
    color: #007BFF;
}
.results li a:hover {
    text-decoration: none;
}

/* Desktop ≥768px: 3 columns */
@media (min-width: 768px) {
    .results {
        display: grid; /* badala ya flex */
        grid-template-columns: repeat(3, 1fr); /* 3 columns fixed */
        gap: 12px;
    }
    .results li {
        width: auto; /* inaridhiana na grid */
        margin: 0;
    }
}

/* Large screens ≥1200px: 4 columns */
@media (min-width: 1200px) {
    .results {
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
    }
}
