.site-footer {
    background: #2f3542;
    color: #ffffff;
    margin-top: 70px;
    padding: 48px 24px 28px;
    position: relative;
}

.footer-inner {
    max-width: 1145px;
    margin: 0 auto 70px;
    display: grid;
    grid-template-columns: 450px 1fr 200px;
    gap: 30px;
    align-items: start;
}

.footer-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.footer-post-card {
    min-height: 123px;
    display: block;
    overflow: hidden;
    position: relative;
    color: #ffffff;
    text-decoration: none;
    background: #1f2430;
}

.footer-post-card img {
    width: 100%;
    height: 123px;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.footer-post-card:hover img {
    transform: scale(1.04);
}

.footer-post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.78)
    );
}

.footer-post-content {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 2;
}

.footer-post-content h3 {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.18;
    font-weight: 500;
    margin: 0 0 6px;
}

.footer-post-content p {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    margin: 0;
}

.footer-widget h2 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    margin: 0 0 18px;
    border-bottom: 2px solid #28a9e0;
}

.footer-widget h2 span {
    display: inline-block;
    background: #28a9e0;
    padding: 9px 12px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-widget a {
    color: #ffffff;
    display: block;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
    padding: 8px 0;
}

.footer-widget a:hover,
.footer-bottom a:hover {
    color: #28a9e0;
}

.footer-bottom {
    max-width: 1145px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #c8cdd6;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #c8cdd6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Social Icons */
.footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-social a {
    color: #28a9e0 !important;
    font-size: 22px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.back-to-top {
    position: absolute;
    right: 16px;
    bottom: 18px;
    color: #28a9e0;
    font-size: 54px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    opacity: .75;
}

.back-to-top:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-featured-grid {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 34px 18px 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .footer-featured-grid {
        grid-template-columns: 1fr;
    }

    .footer-post-card,
    .footer-post-card img {
        height: 180px;
        min-height: 180px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-social {
        justify-content: center;
    }

    .back-to-top {
        font-size: 42px;
        right: 12px;
        bottom: 12px;
    }
}