/*
 * Footer – Responsive with dark mode
 */
.back-to-top {
    background: #37475a;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    text-decoration: none;
}
.back-to-top:hover { background: #485769; }

.footer-main {
    background: #232f3e;
    color: #fff;
    padding: 40px 0 20px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
    background: #131a22;
    color: #ccc;
    padding: 20px 0;
    font-size: 0.8rem;
}
.footer-bottom-inner {
    display: flex;
    justify-content: center;    /* centre the single copyright line */
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.footer-copyright { text-align: right; }

/* Responsive – keep 4 columns */
@media (max-width: 991px) {
    .footer-columns { grid-template-columns: repeat(4, 1fr); gap: 15px; }
    .footer-col h4 { font-size: 0.9rem; margin-bottom: 10px; }
    .footer-col ul li a { font-size: 0.75rem; }
}
@media (max-width: 767px) {
    .footer-columns { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .footer-col h4 { font-size: 0.8rem; }
    .footer-col ul li a { font-size: 0.7rem; }
    .footer-bottom { font-size: 0.7rem; padding: 15px 0; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
    .footer-copyright { text-align: center; }
}

/* Dark mode */
body.dark-mode .footer-main { background: #1a1a2e; }
body.dark-mode .footer-bottom { background: #111; }