@media (max-width: 768px) {
    .bp-social-icon svg {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet-specific overrides: remove flex:1 1 auto on .bp-footer-links and
       ensure .bp-footer-content is not center-justified for tab view */
    .bp-footer-links {
        flex: 0 0 auto !important;
    }

    .bp-footer-content {
        justify-content: center !important;
    }
}
.bp-footer-main {
    padding: 0 0;
    background-color: #212127;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.bp-footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/footer-background.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

.bp-footer-main .container {
    position: relative;
    z-index: 1;
}

.bp-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.bp-footer-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bp-footer-logo .custom-logo-link {
    display: inline-block;
    flex-shrink: 0;
}

.bp-footer-logo .custom-logo {
    max-height: 110px !important;
    height: auto !important;
    width: auto !important;
}

.bp-footer-logo .bp-footer-site-title {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.bp-footer-logo .bp-footer-site-title a {
    color: #fff;
    font-size: 22px !important;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.bp-footer-logo .bp-footer-site-title a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.bp-footer-links {
    display: flex;
    gap: 50px;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.bp-footer-categories,
.bp-footer-pages,
.bp-footer-connect,
.bp-footer-newsletter {
    flex: 0 0 auto;
}

.bp-footer-links-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-top: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bp-footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-footer-links-list li {
    margin: 0 0 10px 0;
    padding: 0;
}

.bp-footer-links-list li:last-child {
    margin-bottom: 0;
}

.bp-footer-links-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
}

.bp-footer-links-list a:hover,
.bp-footer-links-list a:focus {
    color: rgba(255, 255, 255, 0.9);
}

.bp-footer-connect {
    flex: 0 0 auto;
}

.bp-footer-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}
@media (max-width: 768px) {
    .bp-footer-social-icons {
        justify-content: center;
    }
}
.bp-social-icon {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.bp-social-icon:hover,
.bp-social-icon:focus {
    transform: translateY(-3px);
    opacity: 1;
}

.bp-social-icon svg {
    width: 30px;
    height: 30px;
    display: block;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

.bp-social-icon:hover svg,
.bp-social-icon:focus svg {
    fill: rgba(255, 255, 255, 0.9);
}

.bp-footer-newsletter {
    flex: 0 0 auto;
    min-width: 250px;
}

.bp-footer-newsletter-form {
    margin-top: 0;
    position: relative;
}

.bp-footer-newsletter-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.bp-footer-newsletter-form input[type="email"] {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.bp-footer-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
}

.bp-footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.bp-footer-newsletter-form input[type="submit"],
.bp-footer-newsletter-form button[type="submit"] {
    padding: 10px 20px;
    background-color: #fff;
    color: #1a1a1f;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.bp-footer-newsletter-form input[type="submit"]:hover,
.bp-footer-newsletter-form button[type="submit"]:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.bp-footer-newsletter-form .mc4wp-response {
    margin: 0 0 10px 0;
    padding: 0;
    min-height: 0;
}

.bp-footer-newsletter-form .mc4wp-alert {
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 4px;
    background-color: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.bp-footer-newsletter-form .mc4wp-alert p {
    margin: 0;
    padding: 0;
}

.bp-footer-newsletter-form .mc4wp-alert.mc4wp-success {
    background-color: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.bp-footer-newsletter {
    display: flex;
    flex-direction: column;
}

.bp-footer-newsletter .bp-footer-links-title {
    margin-bottom: 15px;
}

.bp-footer-copyright {
    padding: 25px 0;
    background-color: #1a1a1f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bp-copyright-content {
    text-align: center;
}

.bp-footer-copyright .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

@media (max-width: 768px) {
    /* Compact stacked footer cards for small screens */
    .bp-footer-main {
        padding: 24px 0;
    }

    .bp-footer-content {
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
        max-width: 420px;
        margin: 0 auto;
        padding: 0 12px;
    }

    .bp-footer-logo {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .bp-footer-logo .custom-logo {
        max-height: 80px !important;
    }

    .bp-footer-logo .bp-footer-site-title a {
        font-size: 20px !important;
    }

    /* Make each footer section look like a card with a header row */
    .bp-footer-categories,
    .bp-footer-pages,
    .bp-footer-connect,
    .bp-footer-newsletter {
        width: 100%;
        background: rgba(10,12,16,0.55);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(2,6,23,0.35);
        border: 1px solid rgba(255,255,255,0.03);
    }

    .bp-footer-links-title {
        background: rgba(255,255,255,0.03);
        padding: 12px 14px;
        margin: 0;
        font-size: 14px;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Add a small chevron on the right to mimic collapsible header look */
    .bp-footer-links-title::after {
        content: '\25BE';
        font-size: 14px;
        color: rgba(255,255,255,0.6);
        margin-left: 10px;
        transform: rotate(0deg);
    }

    .bp-footer-card-body,
    .bp-footer-links-list,
    .bp-footer-newsletter-form {
        padding: 12px 14px 16px 14px;
        background: transparent;
    }

    .bp-footer-links-list li {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.03);
    }

    .bp-footer-links-list li:last-child {
        border-bottom: none;
    }

    /* Social/connect area centered and spaced */
    .bp-footer-connect .bp-footer-card-body {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 16px;
        padding: 18px 14px;
    }

    /* Newsletter: input + button on one row for compact layout */
    .bp-footer-newsletter-form form {
        display: block;
        width: 100%;
        text-align: center;
    }

    .bp-footer-newsletter-form input[type="email"] {
        display: block;
        width: 100%;
        margin: 0 0 10px 0;
        padding: 10px 12px;
        border-radius: 6px;
        box-sizing: border-box;
        background: transparent;
    }

    .bp-footer-newsletter-form input[type="submit"],
    .bp-footer-newsletter-form button[type="submit"] {
        display: inline-block;
        margin: 0 auto;
        padding: 10px 24px;
        border-radius: 6px;
        background: #ffffff;
        color: #111;
        font-weight: 700;
        border: 1px solid rgba(0,0,0,0.06);
        text-align: center;
    }

    /* Center social media icons in the connect card */
    .bp-footer-connect .bp-footer-card-body {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 18px 14px;
    }

    .bp-footer-copyright {
        padding: 18px 0;
    }

}

@media (max-width: 480px) {
    .bp-footer-main {
        padding: 25px 0;
    }

    .bp-footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .bp-footer-copyright {
        padding: 20px 0;
    }

    .bp-footer-logo .custom-logo {
        max-height: 80px !important;
    }

    .bp-footer-logo .bp-footer-site-title a {
        font-size: 18px !important;
    }
}

.no-sidebar .entry-header,
.no-sidebar .entry-summary,
.no-sidebar .entry-content,
.no-sidebar .entry-footer,
.no-sidebar .author-info,
.no-sidebar .post-navigation,
.no-sidebar .comments-area,
.no-sidebar .pagination,
.no-sidebar:not(.error404):not(.search-no-results) .page-header {
    max-width: unset !important;
}

.no-sidebar .site-main>article {
    max-width: unset !important;
}