/* =========================================================
   SHARED SITE FOOTER (Public/includes/footer.php)
   Scoped as footer.site-footer so it overrides the plain
   `footer{}` rules in the page stylesheets.
========================================================= */

footer.site-footer {
    background: #171127;
    color: #ffffff;
    text-align: left;
    padding: 60px 8% 25px;
    margin-top: 50px;
    font-family: 'Poppins', sans-serif;
}

footer.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 45px;
    padding-bottom: 45px;
}

footer.site-footer .footer-brand img {
    width: 140px;
    height: auto;
    margin-bottom: 17px;
}

footer.site-footer .footer-brand p {
    max-width: 310px;
    color: #aaa3bb;
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 14px;
}

footer.site-footer .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer.site-footer .footer-contact span,
footer.site-footer .footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa3bb;
    font-size: 13px;
    text-decoration: none;
}

footer.site-footer .footer-contact a:hover {
    color: #ffffff;
}

footer.site-footer .footer-contact svg {
    width: 15px;
    height: 15px;
    color: #f4c21f;
    flex-shrink: 0;
}

/* Social links (Facebook / Instagram / LinkedIn) */
footer.site-footer .footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

footer.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

footer.site-footer .footer-social a:hover,
footer.site-footer .footer-social a:focus-visible {
    transform: translateY(-2px);
}

footer.site-footer .footer-social svg {
    width: 18px;
    height: 18px;
}

footer.site-footer .footer-social .social-facebook:hover { background: #1877f2; }
footer.site-footer .footer-social .social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
footer.site-footer .footer-social .social-linkedin:hover { background: #0a66c2; }

footer.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

footer.site-footer .footer-col h4 {
    font-size: 15px;
    margin: 0 0 6px;
    color: #ffffff;
}

footer.site-footer .footer-col a {
    text-decoration: none;
    color: #aaa3bb;
    font-size: 13px;
    transition: 0.2s ease;
}

footer.site-footer .footer-col a:hover {
    color: #ffffff;
}

footer.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    text-align: center;
}

footer.site-footer .footer-bottom p {
    color: #888197;
    font-size: 12px;
    margin: 0;
}

@media (max-width: 1200px) {
    footer.site-footer .footer-grid {
        grid-template-columns: 1.5fr repeat(4, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1000px) {
    footer.site-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    footer.site-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    footer.site-footer {
        padding: 45px 6% 22px;
        margin-bottom: 70px;
    }
}

@media (max-width: 480px) {
    footer.site-footer .footer-grid {
        gap: 28px 18px;
    }
}

/* =========================================================
   BOTTOM ANNOUNCEMENTS (admin Announcements → Bottom Big / Small)
========================================================= */
.site-announcements {
    padding: 10px 8% 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-announcements + footer.site-footer {
    margin-top: 40px;
}

.ann-big {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 40%),
        var(--ann-bg, #6d28d9);
    color: var(--ann-fg, #fff);
    box-shadow: 0 18px 38px rgba(63, 24, 132, 0.16);
    overflow: hidden;
}

.ann-big.has-image {
    grid-template-columns: 1.4fr 1fr;
}

.ann-big h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    color: inherit;
}

.ann-big p {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.92;
    color: inherit;
}

.ann-big-image img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.ann-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 12px 22px;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s ease;
}

.ann-btn:hover { transform: translateY(-1px); }

.ann-small {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 18px;
    background: var(--ann-bg, #6d28d9);
    color: var(--ann-fg, #fff);
}

.ann-small img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.ann-small-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 14px;
    line-height: 1.6;
}

.ann-small-text strong { font-weight: 700; }

.ann-small .ann-btn {
    margin-top: 0;
    padding: 9px 16px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .site-announcements { padding: 0 16px; }
    .ann-big, .ann-big.has-image { grid-template-columns: 1fr; padding: 26px 22px; }
    .ann-big h2 { font-size: 23px; }
    .ann-big-image { order: -1; }
    .ann-small { flex-wrap: wrap; }
}
