/* ===== Body ===== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding-top: 150px; /* space for fixed header */
    padding-left: 16px;
    padding-right: 16px;
    background: #eef4f9;
    color: #222;
}

/* ===== Section content ===== */
body > .main-content,
body > section,
body > .form-container,
body > main {
    padding-left: 16px;
    padding-right: 16px;
}

body > section {
    max-width: 650px;
    margin: 20px auto;
    flex: 1 0 auto;
    text-align: center;
    padding-bottom: 80px; /* space for footer navbar */
}

/* Section title */
.section-title {
    font-size: 1.26em;
    font-weight: bold;
    color: #023e8a;
    background: #dceefa;
    border: 1px solid #94b9dc;
    border-radius: 20px;
    padding: 10px 20px;
    display: inline-block;
    margin-bottom: 15px;
}

/* Links */
.links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.link-card {
    background: linear-gradient(to bottom, #ffffff, #dceefa);
    padding: 10px;
    border-radius: 20px;
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    border: 1px solid #94b9dc;
    transition: 0.2s;
}

.link-card a {
    color: #023e8a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.link-card a i {
    font-size: 1em;
}

.link-card:hover {
    background: linear-gradient(to bottom, #d4e6fa, #a8cde6);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== Footer navbar (Android style) ===== */
footer, #footer, .site-footer {
    background: #ffffff;
    color: #023e8a;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85em;
    border-top: 1px solid #ccc;
    font-weight: bold;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
    z-index: 999;
}

footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #023e8a;
    background: #f0f4f8;
    padding: 6px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: 0.2s;
    font-weight: bold;
}

footer a i { font-size: 1.2em; }

footer a:hover {
    background: #d4e6fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===== Responsive adjustments ===== */
@media(max-width:500px){
    .link-card { font-size: 0.85em; }
    .section-title { font-size: 1.1em; padding: 8px 15px; }
    footer a { font-size: 0.75em; padding: 5px 10px; }
    footer a i { font-size: 1em; }
}