/*
 * The footer (includes/site_footer.php), on the main site and the quiz.
 * Written for these elements only, so it reads the same under the main
 * site's Bootstrap 3 and the quiz's Tailwind reset.
 */
.site-footer__wave { display: block; width: 100%; height: auto; border: 0; margin-bottom: -2px; }

.site-footer {
    background-color: #263238;
    color: #cfd8dc;
    padding: 50px 20px;
    font-family: 'Cairo', sans-serif;
    text-align: right;
    direction: rtl;
    line-height: 1.8;
    font-size: 0.95rem;
}
.site-footer__logo { text-align: center; margin-bottom: 25px; }
.site-footer__logo img { display: inline-block; max-width: 80%; height: auto; }

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-section {
    flex: 1;
    min-width: 180px;
    margin: 20px;
    padding: 0 15px;
}
.site-footer .footer-section h4 {
    color: #e0f2f7;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 25px;
    padding-bottom: 8px;
    position: relative;
}
.footer-section h4::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #42a5f5;
    border-radius: 2px;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section ul li { margin-bottom: 10px; }
.site-footer .footer-section ul li a {
    color: #b0bec5;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 3px 0;
}
.site-footer .footer-section ul li a:hover,
.site-footer .footer-section ul li a:focus-visible { color: #42a5f5; }
.site-footer a:focus-visible { outline: 2px solid #42a5f5; outline-offset: 2px; }

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #37474f;
}
.footer-bottom p {
    margin: 0 auto;
    max-width: 1200px;
    background-color: #37474f;
    padding: 20px;
    border-radius: 8px;
    color: #eceff1;
    font-size: 0.8rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}
.footer-bottom a { color: dodgerblue; text-decoration: none; }

@media (max-width: 768px) {
    .footer-content { flex-direction: column; align-items: center; }
    .footer-section { width: 90%; margin: 20px 0; text-align: center; }
    .footer-section h4::after { right: 50%; transform: translateX(50%); }
    .site-footer .footer-section ul li a { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-section ul li a { transition: none; }
}
