/* ==========================================================================
   BestBlogTheme — Footer
   ========================================================================== */

.bbt-footer {
    background: var(--bbt-footer-bg, #1e293b);
    color: var(--bbt-footer-body, #cbd5e1);
}

/* -- Footer Widgets ------------------------------------------------------- */
.bbt-footer__widgets {
    padding-block: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bbt-footer__grid {
    display: grid;
    gap: 2rem;
}

.bbt-footer__grid--1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .bbt-footer__grid--2 { grid-template-columns: repeat(2, 1fr); }
    .bbt-footer__grid--3 { grid-template-columns: repeat(3, 1fr); }
    .bbt-footer__grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .bbt-footer__grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Column sizes based on grid-column */
.bbt-footer__col--3  { grid-column: span 1; }
.bbt-footer__col--4  { grid-column: span 1; }
.bbt-footer__col--6  { grid-column: span 1; }
.bbt-footer__col--8  { grid-column: span 1; }
.bbt-footer__col--12 { grid-column: 1 / -1; }

/* -- Footer Widgets Styling ----------------------------------------------- */
.bbt-footer-widget {
    margin-bottom: 1.5rem;
}

.bbt-footer-widget__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bbt-color-primary);
    color: var(--bbt-footer-heading, #ffffff);
}

.bbt-footer h2,
.bbt-footer h3,
.bbt-footer h4 {
    color: var(--bbt-footer-heading, #ffffff);
}

.bbt-footer p,
.bbt-footer li {
    color: var(--bbt-footer-body, #cbd5e1);
}

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

.bbt-footer-widget li {
    padding: 0.3rem 0;
}

.bbt-footer-widget a {
    color: inherit;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.bbt-footer-widget a:hover {
    opacity: 1;
    color: var(--bbt-color-primary);
}

/* -- Footer Bottom -------------------------------------------------------- */
.bbt-footer__bottom {
    padding-block: 1.25rem;
}

.bbt-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .bbt-footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.bbt-footer__copyright {
    font-size: 0.875rem;
    opacity: 0.7;
    margin: 0;
}

.bbt-footer__menu {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bbt-footer__menu a {
    font-size: 0.875rem;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.bbt-footer__menu a:hover {
    opacity: 1;
}
