/* ===============================
   E-KORS LIGHT THEME FOOTER STYLES
================================= */

.ekors-footer {
    /* Very light tint of the E-KORS logo color */
    background-color: #fcf4f3; 
    color: #444; /* Dark text for light background */
    padding: 60px 0 30px 0;
    /* border-top: 4px solid #8A3324; Logo deep red accent */
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}
.ekors-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first */
    gap: 40px;
    padding: 0 20px;
}

/* ===============================
   E-KORS GRADIENT THEME FOOTER
================================= */

.ekors-footer {
    /* Gradient Background: Left (White) to Right (Light Logo Color) */
    background: linear-gradient(to right, #ffffff 0%, #f7e5e3 100%); 
    
    color: #444; /* Dark text for light background */
    padding: 60px 0 30px 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Desktop Media Query (4 columns) */
@media (min-width: 768px) {
    .ekors-footer .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.ekors-footer .footer-section h3 {
    color: #1a1a1a; /* Dark heading */
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

/* Accent line under headers */
.ekors-footer .footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #8A3324; /* Logo brick red */
}

.ekors-footer .footer-logo-img {
    max-width: 150px;
    margin-bottom: 20px;
}

.ekors-footer .mission-text {
    margin-bottom: 25px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.ekors-footer .social-icons a {
    color: #555; /* Dark grey for light bg */
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.ekors-footer .social-icons a:hover {
    color: #8A3324; /* Logo hover color */
    transform: translateY(-3px);
}

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

.ekors-footer .footer-links li {
    margin-bottom: 12px;
}

.ekors-footer .footer-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.ekors-footer .footer-links a:hover {
    color: #8A3324;
    padding-left: 5px;
}

.ekors-footer .footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #555;
    line-height: 1.5;
}

.ekors-footer .footer-contact p i {
    color: #8A3324; /* Logo brick red for icons */
    margin-right: 10px;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.ekors-footer .newsletter-form {
    display: flex;
    margin-top: 25px;
}

.ekors-footer .newsletter-form input {
    padding: 12px;
    border: 1px solid #e0d0cf; /* Subtle border for light theme */
    background-color: #ffffff; /* White input box */
    color: #333;
    border-radius: 5px 0 0 5px;
    flex-grow: 1;
    font-size: 0.9rem;
}

.ekors-footer .newsletter-form input:focus {
    outline: none;
    border-color: #8A3324;
    box-shadow: 0 0 5px rgba(138, 51, 36, 0.2);
}

.ekors-footer .newsletter-form button {
    padding: 12px 20px;
    border: none;
    background-color: #8A3324; /* Logo brick red button */
    color: #fff;
    font-weight: 600;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.ekors-footer .newsletter-form button:hover {
    background-color: #a33f30;
}

.ekors-footer .footer-bottom {
    border-top: 1px solid #ebd9d8; /* Light red/grey border */
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
}

.ekors-footer .footer-bottom p {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* ===============================
   3D LOGO EFFECT
================================= */
.ekors-footer .footer-logo-img {
    max-width: 150px;
    margin-bottom: 20px;
    
    /* 3D Depth (Drop Shadow) - लोगो के कलर के हिसाब से शैडो */
    filter: drop-shadow(4px 6px 5px rgba(138, 51, 36, 0.4)) 
            drop-shadow(-1px -1px 1px rgba(255, 255, 255, 0.8));
            
    /* स्मूथ एनिमेशन के लिए */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    
    /* 3D पर्सपेक्टिव सेट करना */
    transform-style: preserve-3d;
    transform: perspective(500px) translateZ(0);
}

/* Hover करने पर 3D Pop-out और Rotation इफेक्ट */
.ekors-footer .footer-logo-img:hover {
    transform: perspective(500px) translateY(-8px) translateZ(20px) rotateX(8deg) rotateY(-8deg) scale(1.05);
    filter: drop-shadow(8px 12px 10px rgba(138, 51, 36, 0.25)) 
            drop-shadow(-2px -2px 3px rgba(255, 255, 255, 0.9));
}

/* =========================================
   3D SOCIAL ICONS: HOVER RING & AUTO-SPRINKLES
========================================= */

.ekors-footer .social-icons {
    display: flex;
    gap: 15px; /* आइकन्स के बीच की दूरी */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ekors-footer .social-icons a {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #555; /* डिफ़ॉल्ट ग्रे टेक्स्ट */
    font-size: 1.4rem;
    text-decoration: none;
    background: #fff; /* डिफ़ॉल्ट वाइट बैकग्राउंड */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #ebd9d8;
    
    /* 3D Base Setup */
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s, background 0.3s, box-shadow 0.3s;
    z-index: 1;
}

/* -------------------------------------
   1. Specific Official Colors on Hover
---------------------------------------- */

/* Facebook */
.ekors-footer .social-icons a.facebook:hover {
    color: #fff;
    background-color: #1877F2;
    border-color: transparent;
}

/* Twitter / X */
.ekors-footer .social-icons a.twitter:hover {
    color: #fff;
    background-color: #1a1a1a; /* X Black */
    border-color: transparent;
}

/* LinkedIn */
.ekors-footer .social-icons a.linkedin:hover {
    color: #fff;
    background-color: #0A66C2;
    border-color: transparent;
}

/* YouTube */
.ekors-footer .social-icons a.youtube:hover {
    color: #fff;
    background-color: #FF0000;
    border-color: transparent;
}

/* INSTAGRAM: Official Multi-color Gradient on Hover */
.ekors-footer .social-icons a.instagram:hover {
    color: #fff;
    /* Official Recognition Gradient */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
}

/* -------------------------------------
   2. 3D Pop-Out Effect on Hover
---------------------------------------- */
.ekors-footer .social-icons a:hover {
    /* 3D Effect */
    transform: perspective(500px) translateY(-5px) translateZ(15px) rotateX(10deg) rotateY(-10deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(138, 51, 36, 0.15);
}

/* -------------------------------------
   3. Sprinkle Effect: NOW ON HOVER
---------------------------------------- */
.ekors-footer .social-icons a::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 6px; height: 6px;
    background: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.ekors-footer .social-icons a:hover::after {
    animation: popSprinklesOnHover 0.6s ease-out forwards;
}

/* SPRINKLE COLOR VARIABLES (Using E-KORS red for sprinkle dots for consistency) */
.ekors-footer .social-icons a { --sprinkle-dot-color: #8A3324; }

@keyframes popSprinklesOnHover {
    0% {
        box-shadow:
            0 0 0 transparent, 0 0 0 transparent,
            0 0 0 transparent, 0 0 0 transparent,
            0 0 0 transparent, 0 0 0 transparent,
            0 0 0 transparent, 0 0 0 transparent;
        opacity: 1;
    }
    100% {
        /* चारों दिशाओं में ब्रांड के रंग के डॉट्स फैलेंगे */
        box-shadow:
            0 -38px 0 2px var(--sprinkle-dot-color), 28px -28px 0 2px var(--sprinkle-dot-color),
            38px 0 0 2px var(--sprinkle-dot-color), 28px 28px 0 2px var(--sprinkle-dot-color),
            0 38px 0 2px var(--sprinkle-dot-color), -28px 28px 0 2px var(--sprinkle-dot-color),
            -38px 0 0 2px var(--sprinkle-dot-color), -28px -28px 0 2px var(--sprinkle-dot-color);
        opacity: 0;
    }
}

/* =========================================
   MOBILE RESPONSIVE FOOTER STYLES (max-width: 767px)
========================================= */
@media (max-width: 767px) {
    .ekors-footer {
        padding: 45px 0 25px 0 !important;
        text-align: center;
    }

    .ekors-footer .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 0 20px !important;
    }

    .ekors-footer .footer-logo-img {
        max-width: 140px !important;
        margin: 0 auto 15px auto !important;
        display: block !important;
    }

    .ekors-footer .mission-text {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .ekors-footer .footer-section h3 {
        font-size: 1.05rem !important;
        margin-bottom: 15px !important;
        display: inline-block;
        padding-bottom: 8px !important;
    }

    .ekors-footer .footer-section h3::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 40px !important;
    }

    .ekors-footer .social-icons {
        justify-content: center !important;
        margin: 0 auto 10px auto !important;
        gap: 12px !important;
    }

    .ekors-footer .social-icons a {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
    }

    .ekors-footer .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ekors-footer .footer-links li {
        margin-bottom: 10px !important;
    }

    .ekors-footer .footer-contact p {
        justify-content: center !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .ekors-footer .newsletter-form {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .ekors-footer .newsletter-form input {
        border-radius: 8px !important;
        width: 100% !important;
        padding: 12px 15px !important;
        text-align: center !important;
    }

    .ekors-footer .newsletter-form button {
        border-radius: 8px !important;
        width: 100% !important;
        padding: 12px !important;
    }

    .ekors-footer .footer-bottom {
        margin-top: 30px !important;
        padding-top: 15px !important;
    }

    .ekors-footer .footer-bottom p {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }
}