/* Footer - MyLekha Premium Style */
:root {
    --sp-footer-bg: #051f15;
    --sp-footer-bottom-bg: #03180f;
    --sp-footer-card-bg: #0c261e;
    --sp-footer-accent: #10b981;
    --sp-footer-text: #ffffff;
    --sp-footer-text-muted: rgba(255, 255, 255, 0.6);
}

.sp-premium-footer {
    background-color: var(--sp-footer-bg);
    color: var(--sp-footer-text);
    padding: 180px 0 0 !important;
    font-family: var(--primaryFont);
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden;
}

.sp-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.sp-footer-main {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 80px;
    align-items: flex-start;
}

/* Brand Section */
.sp-footer-brand-section {
    flex: 1;
    max-width: 500px;
}

.sp-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.sp-footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.sp-footer-logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--sp-footer-accent);
    color: white;
    font-weight: 800;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-footer-site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.sp-footer-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--sp-footer-text-muted);
    margin-bottom: 35px;
}

/* Social Links */
.sp-footer-social-links {
    display: flex;
    gap: 12px;
}

.sp-social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none !important;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-social-icon:hover {
    background: var(--sp-footer-accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Newsletter Section */
.sp-footer-newsletter-section {
    flex: 1;
    max-width: 600px;
}

.sp-newsletter-card {
    background: var(--sp-footer-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 50px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.sp-newsletter-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.sp-newsletter-text {
    font-size: 16px;
    color: var(--sp-footer-text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

.sp-newsletter-form {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 16px;
    padding: 6px;
    transition: background 0.3s ease;
}

.sp-newsletter-form:focus-within {
    background: rgba(0, 0, 0, 0.35);
}

.sp-newsletter-input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 15px;
    flex: 1;
    color: white;
    font-size: 15px;
    outline: none !important;
    height: 100%;
}

/* Force removal of common browser/plugin borders */
.sp-newsletter-input:focus,
.sp-newsletter-input:active,
.sp-newsletter-input:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
}

.sp-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.sp-newsletter-submit {
    background: var(--sp-footer-accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sp-newsletter-submit:hover {
    background: #34d399;
}

/* Bottom Bar */
.sp-footer-bottom-bar {
    background-color: var(--sp-footer-bottom-bg);
    padding: 25px 0;
    margin-top: 0;
}

.sp-footer-bottom-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--sp-footer-text-muted);
}

.sp-footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.sp-footer-link {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.sp-footer-link:hover {
    color: var(--sp-footer-accent);
}

.sp-return-top {
    font-weight: 700;
    color: var(--sp-footer-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: opacity 0.3s ease;
}

.sp-return-top:hover {
    opacity: 0.8;
}

.sp-arrow-up {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-premium-footer {
        padding: 150px 0 0 !important; /* Increased to allow room for overlapping widgets */
    }

    .sp-footer-container {
        padding: 0 15px;
    }

    .sp-footer-main {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 40px;
        margin-bottom: 40px;
    }

    .sp-footer-logo-row {
        justify-content: center;
        margin-bottom: 25px;
    }

    .sp-footer-site-title {
        font-size: 32px;
    }

    .sp-footer-description {
        font-size: 15px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .sp-footer-social-links {
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .sp-newsletter-card {
        padding: 30px 20px !important;
        background: #0c261e !important;
        border-radius: 20px;
        text-align: left;
        width: 100%;
        margin-top: 20px;
    }

    .sp-newsletter-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .sp-newsletter-text {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .sp-newsletter-form {
        display: flex !important;
        flex-direction: row !important;
        background: rgba(0, 0, 0, 0.4) !important;
        padding: 5px !important;
        border-radius: 12px !important;
        height: auto !important;
    }

    .sp-newsletter-submit {
        padding: 8px 18px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .sp-footer-bottom-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 30px 15px !important;
    }

    .sp-copyright {
        order: 1;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.5);
    }

    .sp-footer-links {
        order: 2;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px;
        width: 100%;
    }

    .sp-return-top {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        font-size: 14px;
    }
}