/* Ensure full-width footer on non-homepage pages */
.footer-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: inherit;
    z-index: 10;
}

/* Newseragh Modern Dark Footer */
.footer-gradient {
    background: linear-gradient(120deg, #181a1b 0%, #232526 100%);
    color: #fff;
    padding-top: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-subscribe {
    padding: 32px 0 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-subscribe h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.footer-subscribe .input-group {
    max-width: 420px;
    margin: 0 auto;
}

.footer-subscribe input[type="email"] {
    border-radius: 30px 0 0 30px;
    border: none;
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
    background: #232526;
    color: #fff;
}

.footer-subscribe input[type="email"]::placeholder {
    color: #bbb;
}

.footer-subscribe .btn {
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(90deg, #1e5bff 0%, #0ab3b6 100%);
    border: none;
    padding: 0.75rem 2rem;
    color: #fff;
    transition: background 0.2s;
}

.footer-subscribe .btn:hover {
    background: linear-gradient(90deg, #0ab3b6 0%, #1e5bff 100%);
}

.footer-main {
    padding: 36px 0 18px 0;
}

.footer-main .footer-brand {
    font-size: 2rem;
    font-weight: 700;
    color: #1e5bff;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.footer-main .footer-subtitle {
    font-size: 1.05rem;
    color: #bbb;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.footer-main .footer-contact {
    color: #bbb;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-main .footer-contact strong {
    color: #fff;
    font-weight: 500;
}

.footer-main .footer-social {
    margin-top: 1.2rem;
}

.footer-main .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #232526;
    color: #fff;
    font-size: 1.2rem;
    margin-right: 8px;
    transition: background 0.2s, color 0.2s;
}

.footer-main .footer-social a:hover {
    background: #1e5bff;
    color: #fff;
}

.footer-main .footer-post-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #232526;
}

.footer-main .footer-post-title {
    color: #fff;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
}

.footer-main .footer-post-meta {
    color: #1e5bff;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-main .footer-post-date {
    color: #bbb;
    font-size: 0.93rem;
    margin-left: 4px;
}

.footer-main .footer-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main .footer-categories li {
    margin-bottom: 0.7rem;
    color: #fff;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.footer-main .footer-categories i {
    color: #1e5bff;
    margin-right: 8px;
    font-size: 1.1rem;
}

.footer-main .footer-gallery {
    display: grid;
    grid-template-columns: repeat(3, 56px);
    grid-gap: 12px;
}

.footer-main .footer-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    background: #232526;
}

.footer-base {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0 8px 0;
    color: #bbb;
    font-size: 1rem;
    background: #181a1b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-base .footer-credit a {
    color: #1e5bff;
    text-decoration: none;
    font-weight: 500;
}

.footer-base .footer-credit a:hover {
    text-decoration: underline;
}

.footer-scrolltop {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #1e5bff 0%, #0ab3b6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(30, 91, 255, 0.12);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    opacity: 0.92;
}

.footer-scrolltop:hover {
    background: linear-gradient(90deg, #0ab3b6 0%, #1e5bff 100%);
    color: #fff;
    opacity: 1;
}

@media (max-width: 991px) {
    .footer-main .row>div {
        margin-bottom: 32px;
    }

    .footer-main {
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    .footer-main .footer-brand {
        font-size: 1.3rem;
    }

    .footer-main .footer-subtitle {
        font-size: 0.95rem;
    }

    .footer-main .footer-gallery {
        grid-template-columns: repeat(3, 40px);
    }

    .footer-main .footer-gallery img {
        width: 40px;
        height: 40px;
    }

    .footer-base {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-scrolltop {
        right: 12px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}