body {
    background-color: #0a192f; /* Dark blue */
    color: #ccd6f6; /* Light blue/grey */
    font-family: sans-serif;
    margin: 0;
    padding: 0.5rem 2rem 2rem;
}

h1, h2, h3 {
    color: #64ffda; /* A bright accent color */
    border-bottom: 1px solid #233554;
    padding-bottom: 10px;
}

h1 {
    font-size: 3rem;
    text-align: center;
}

header .header-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

header .header-wrapper h1 {
    flex: 1;
    margin: 0;
}

header .header-wrapper .btn {
    flex: 0 0 auto;
    padding: 0.35rem 0.7rem;
    font-size: 0.9rem;
    min-width: 4rem;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.column {
    flex: 1;
    min-width: 400px; /* Minimum width for columns */
    background-color: #112240;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.btn {
    flex: 1 1 0;
    background-color: #64ffda;
    color: #0a192f;
    padding: 0.5rem 0.9rem;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(100,255,218,0.12);
}

/* Tag styling */
.tag {
    display: inline-block;
    background: linear-gradient(135deg, #64ffda, #4db39a);
    color: #0a192f;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Tweak general image behavior inside cards */
.canteen img {
    margin-top: 0;
    border-radius: 0;
}

a {
    color: #64ffda;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    margin-top: 1.5rem;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

iframe {
    margin-top: 1.5rem;
    border: 3px solid #233554;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    height: auto;
}

p {
    line-height: 1.6;
}

/* Responsive tweaks for smaller viewports */
@media (max-width: 1024px) {
    .card-media img { height: 160px; }
}

@media (max-width: 600px) {
    body {
        padding: 0.75rem 1rem 1.5rem;
    }
    h1 { font-size: 2rem; }
    header .header-wrapper {
        gap: 0.5rem;
    }
    header .header-wrapper .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        min-width: 3.5rem;
    }
    .canteens-container { gap: 1rem; }
    .canteen.card { max-width: 100%; min-width: 0; min-height: 22rem; }
    .card-media img { height: 140px; }
    .card-body { padding: 0.75rem; }
    th, td { padding: 0.6rem; }
}

@media (max-width: 420px) {
    .card-media img { height: 120px; }
    .canteen.card h2 { font-size: 1rem; }
    .btn { padding: 0.45rem 0.75rem; font-size: 0.95rem; }
    .canteen.card { min-height: 20rem; }
}

@media (max-width: 320px) {
    h1 { font-size: 1.5rem; }
    .btn { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
    .button-group {
        gap: 0.5rem;
        margin: 1rem 0;
    }
    .button-group .btn {
        min-width: 6rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* Timeline countdown toggle button */
button {
    background-color: #64ffda;
    color: #0a192f;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #4db39a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

/* Button group styling */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.button-group .btn {
    margin: 0;
    flex: 1 1 auto;
    min-width: 8rem;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

/* Footer styling */
footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #233554;
    text-align: center;
}

footer p {
    margin: 0;
    color: #8892b0;
    font-size: 0.95rem;
}

footer a {
    color: #64ffda;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

@media (max-width: 600px) {
    footer {
        gap: 0.75rem;
        margin-top: 3rem;
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }

    footer p {
        flex-basis: 100%;
        order: -1;
        font-size: 0.9rem;
    }

    footer a {
        flex: 1;
        min-width: 120px;
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
    }
}
