/* Smart & Modern Footer Styling */
:root {
    --footer-bg: #0f172a; /* Sleek dark slate */
    --footer-text: #94a3b8; /* Soft readable muted text */
    --footer-heading: #f8fafc; /* Crisp white for headers */
    --footer-accent: #3b82f6; /* Modern royal blue */
    --footer-accent-hover: #60a5fa; /* Lighter shade for hover */
    --footer-border: rgba(255, 255, 255, 0.06);
    --footer-widget-gap: 15px;
}

.custom-smart-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    position: relative;
    border-top: 1px solid var(--footer-border);
}

/* Accent top border gradient */
.custom-smart-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--footer-accent), #8b5cf6, var(--footer-accent));
}

.custom-smart-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-widget h4.widget-title {
    color: var(--footer-heading);
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 0;
    text-transform: capitalize;
}

.footer-widget h4.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--footer-accent);
    transition: width 0.3s ease;
}

.footer-widget:hover h4.widget-title::after {
    width: 65px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-widget ul li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

.footer-widget ul li label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--footer-accent);
    font-weight: 600;
    margin-bottom: 0;
}

.footer-widget ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.footer-widget ul li a:hover {
    color: var(--footer-accent-hover);
    transform: translateX(5px);
}

/* Social links widget */
.social-links-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--footer-text) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1.6rem;
}

.social-btn:hover {
    color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.social-btn.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}

.social-btn.twitter:hover {
    background-color: #1da1f2;
    border-color: #1da1f2;
}

.social-btn.linkedin:hover {
    background-color: #0a66c2;
    border-color: #0a66c2;
}

/* Newsletter styles */
.newsletter-desc {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--footer-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding-right: 4px;
}

.newsletter-input-group:focus-within {
    border-color: var(--footer-accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.newsletter-input-group input[type="email"] {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 10px 20px !important;
    color: #ffffff !important;
    font-size: 1.3rem !important;
    flex-grow: 1;
    width: 100%;
    height: 38px !important;
}

.newsletter-input-group input[type="email"]::placeholder {
    color: #64748b;
}

.newsletter-submit-btn {
    background-color: var(--footer-accent);
    color: #ffffff;
    border: none;
    outline: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.newsletter-submit-btn:hover {
    background-color: var(--footer-accent-hover);
    transform: scale(1.08);
}

.newsletter-submit-btn i {
    font-size: 1.3rem;
}

/* Bottom Bar */
.footer-bottom-bar {
    border-top: 1px solid var(--footer-border);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.copyright-text {
    font-size: 1.3rem;
    color: #64748b;
    margin: 0;
}

.copyright-text a {
    color: var(--footer-accent);
    text-decoration: none;
}

.copyright-text a:hover {
    text-decoration: underline;
}

/* Responsive adjustment for Riode site layouts */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}
