/* ============================================================
   FOOTER — Three-Tier Dark Footer
   ============================================================ */

/* --- Footer Base --- */

.blog-footer {
    background-color: #1a1a2e !important;
    color: #b0b0c0 !important;
    padding: 0 !important;
    font-size: 0.95rem;
    margin-top: 2rem;
}

/* --- Top Tier: Author Identity + Social --- */

.footer-top {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-author-name {
    font-family: 'Titillium Web', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.35rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #8888a0;
    margin: 0;
    font-style: italic;
}

.footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

    .footer-social li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.07);
        color: #b0b0c0;
        font-size: 1.1rem;
        transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
        text-decoration: none;
    }

        .footer-social li a:hover {
            background-color: rgba(255, 255, 255, 0.15);
            color: #ffffff;
            transform: translateY(-2px);
        }

/* --- Middle Tier: Action Links --- */

.footer-middle {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .footer-actions li a {
        display: inline-block;
        padding: 0.5rem 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        color: #d0d0e0;
        text-decoration: none;
        font-family: 'Titillium Web', sans-serif;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
    }

        .footer-actions li a:hover {
            border-color: rgba(255, 255, 255, 0.35);
            color: #ffffff;
            background-color: rgba(255, 255, 255, 0.05);
        }

    /* Highlight the free books CTA */
    .footer-actions li a.footer-cta-primary {
        border-color: #e07c3a;
        color: #e8a06a;
    }

        .footer-actions li a.footer-cta-primary:hover {
            background-color: rgba(224, 124, 58, 0.12);
            border-color: #e8a06a;
            color: #ffffff;
        }

/* --- Bottom Tier: Legal + Copyright --- */

.footer-bottom {
    padding: 1.25rem 0;
}

.footer-legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

    .footer-legal li {
        color: #666680;
        font-size: 0.8rem;
    }

        .footer-legal li:not(:last-child)::after {
            content: "·";
            margin-left: 0.5rem;
            color: #444460;
        }

        .footer-legal li a {
            color: #666680;
            text-decoration: none;
            transition: color 0.2s ease;
        }

            .footer-legal li a:hover {
                color: #9999b0;
            }

/* --- Footer Responsive --- */

@media (max-width: 767px) {
    .footer-top .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-actions {
        justify-content: flex-start;
    }

    .footer-legal {
        justify-content: flex-start !important;
    }
}

/* --- Legacy Footer Widget Zone (if still used) --- */

.blog-footer .widgetzone {
    margin: 0;
}

    .blog-footer .widgetzone:not(:empty) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 4rem;
    }

    .blog-footer .widgetzone .widget {
        max-width: 100%;
        background: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        padding-top: 4rem;
    }

@media screen and (min-width: 992px) {
    .blog-footer .widgetzone {
        display: -ms-flexbox !important;
        display: flex !important;
    }

        .blog-footer .widgetzone .widget {
            -ms-flex-preferred-size: 0;
            flex-basis: 0;
            -ms-flex-positive: 1;
            flex-grow: 1;
            margin-top: 0;
            padding-top: 0;
        }

            .blog-footer .widgetzone .widget:not(:last-child) {
                margin-right: 3rem;
            }

        .blog-footer .widgetzone .widget-header {
            padding-top: 4rem;
        }
}

/* --- Footer Post Items (if still used in widget zone) --- */

.blog-footer .post-item-list {
    min-height: 4rem;
}

    .blog-footer .post-item-list:not(:last-child) {
        margin-bottom: 1rem;
    }

    .blog-footer .post-item-list a {
        display: block;
        position: relative;
    }

        .blog-footer .post-item-list a:focus,
        .blog-footer .post-item-list a:hover {
            outline: none;
            color: #4353ff;
        }

            .blog-footer .post-item-list a:focus img,
            .blog-footer .post-item-list a:hover img {
                box-shadow: 0 0 0 2px #4353ff;
            }

            .blog-footer .post-item-list a:focus .post-item-date,
            .blog-footer .post-item-list a:hover .post-item-date {
                color: #4353ff;
            }

    .blog-footer .post-item-list .post-item-img {
        font-size: 0;
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 4rem;
        height: 4rem;
        border-radius: 0.5rem;
        transition: box-shadow ease 0.15s;
        border: 2px solid #fff;
    }

    .blog-footer .post-item-list .post-item-title {
        font-size: 1rem;
        font-weight: 600;
        position: relative;
        margin: 0;
        padding-top: 1.375rem;
        padding-left: 4.75rem;
    }

    .blog-footer .post-item-list .post-item-desc {
        display: none;
    }

    .blog-footer .post-item-list .post-item-date {
        position: absolute;
        top: 0;
        left: 4.75rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        display: block;
        color: #888;
    }
