/**
 * FOOTER - CLEAN WHITE THEME WITH MINIMAL PURPLE
 * ===============================================
 * Modern white design with subtle purple accents
 */

/* ============================================
   MAIN FOOTER CONTAINER
   ============================================ */

footer {
    background: #ffffff !important;
    color: #1a1a1a !important;
    padding: 60px 0 0 !important;
    margin-top: 80px !important;
    position: relative !important;
    overflow: hidden !important;
    border-top: 3px solid #9333ea !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

footer .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER CONTENT GRID
   ============================================ */

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 40px !important;
    padding-bottom: 40px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

/* ============================================
   FOOTER SECTIONS
   ============================================ */

.footer-section h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
    position: relative !important;
    display: inline-block !important;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #9333ea;
    border-radius: 2px;
}

.footer-section p {
    color: #666666 !important;
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
    font-size: 0.95rem !important;
}

.footer-section p i {
    color: #9333ea !important;
    margin-right: 10px !important;
    width: 20px !important;
    text-align: center !important;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.footer-section.about p {
    max-width: 300px;
}

/* ============================================
   LINKS SECTION
   ============================================ */

.footer-section.links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-section.links li {
    margin-bottom: 12px !important;
}

.footer-section.links a {
    color: #666666 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    position: relative !important;
    padding-left: 0px !important;
}

.footer-section.links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #9333ea;
}

.footer-section.links a:hover {
    color: #9333ea !important;
    padding-left: 20px !important;
    transform: translateX(5px);
}

.footer-section.links a:hover::before {
    opacity: 1;
    left: 0;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */

.social {
    display: flex !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.social a {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #f8f8f8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9333ea !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    border: 2px solid #f0f0f0 !important;
}

.social a:hover {
    background: #9333ea !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.3) !important;
    border-color: #9333ea !important;
}

/* ============================================
   CONTACT INFO STYLING
   ============================================ */

.footer-section.contact p {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 0 !important;
}

.footer-section.contact p i {
    font-size: 16px !important;
    background: #f8f8f8 !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    margin-right: 10px !important;
    border: 2px solid #f0f0f0;
}

.footer-section.contact p:hover i {
    background: #f3e8ff !important;
    border-color: #e9d5ff !important;
}

/* ============================================
   FOOTER BOTTOM
   ============================================ */

.footer-bottom {
    text-align: center !important;
    padding: 30px 0 !important;
    color: #666666 !important;
    font-size: 0.9rem !important;
}

.footer-bottom p {
    margin: 0 !important;
    color: #666666 !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    footer {
        padding: 40px 0 0 !important;
        margin-top: 50px !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding-bottom: 30px !important;
    }

    .footer-section h3 {
        font-size: 1.2rem !important;
    }

    .footer-section p {
        font-size: 0.9rem !important;
    }

    .social {
        justify-content: center !important;
    }

    .footer-section.about p {
        max-width: 100%;
    }

    .footer-bottom {
        padding: 25px 0 !important;
        font-size: 0.85rem !important;
    }
}

/* ============================================
   DARK MODE COMPATIBILITY
   ============================================ */

body.dark-mode footer {
    background: #1a1a1a !important;
    border-top: 3px solid #9333ea !important;
}

body.dark-mode footer::before {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(26, 26, 26, 1) 100%);
}

body.dark-mode .footer-section h3 {
    color: #ffffff !important;
}

body.dark-mode .footer-section p {
    color: #b3b3b3 !important;
}

body.dark-mode .footer-section.links a {
    color: #b3b3b3 !important;
}

body.dark-mode .footer-section.links a:hover {
    color: #c084fc !important;
}

body.dark-mode .social a {
    background: #2a2a2a !important;
    border-color: #333333 !important;
    color: #9333ea !important;
}

body.dark-mode .social a:hover {
    background: #9333ea !important;
    color: #ffffff !important;
    border-color: #9333ea !important;
}

body.dark-mode .footer-section.contact p i {
    background: #2a2a2a !important;
    border-color: #333333 !important;
}

body.dark-mode .footer-section.contact p:hover i {
    background: #2d1b4e !important;
    border-color: #4c1d95 !important;
}

body.dark-mode .footer-content {
    border-bottom: 2px solid #2a2a2a !important;
}

body.dark-mode .footer-bottom p {
    color: #b3b3b3 !important;
}

/* ============================================
   OFFICIAL TRUST & PAYMENTS SECTION
   ============================================ */

.footer-trust {
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.trust-badge-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 10px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.trust-badge-icon {
    font-size: 24px;
    color: #10b981;
}

.trust-badge-text h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.trust-badge-text p {
    font-size: 0.7rem;
    color: #64748b;
    margin: 0 !important;
}

.footer-payments-wrapper {
    text-align: center;
}

.footer-payments-wrapper span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-payments {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.payment-logo-official {
    height: 80px;
    width: auto;
    filter: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

.logo-khalti {
    height: 100px; /* Visually match eSewa's width and mass */
}

.payment-logo-official:hover {
    transform: translateY(-5px) scale(1.05);
}

@media (max-width: 768px) {
    .footer-trust {
        padding: 30px 15px;
    }

    .footer-payments {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .payment-logo-official {
        height: 65px;
    }

    .logo-khalti {
        height: 75px;
    }
}

body.dark-mode .footer-trust {
    border-color: #2a2a2a;
}

body.dark-mode .trust-badge-container {
    background: #2a2a2a;
    border-color: #333333;
}

body.dark-mode .trust-badge-text h4 {
    color: #ffffff;
}

/* ============================================
   ANIMATION
   ============================================ */

.footer-section {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}