:root {
    --primary: #1B4D3E;
    --primary-dark: #0F2E25;
    --primary-light: #E8F3EF;
    --purple: #800080;
    --purple-light: #F3E8F3;
    --deep-pink: #FF1493;
    --pink-light: #FFF0F7;
    --text-dark: #1A1A1A;
    --text-light: #4A4A4A;
    --text-muted: #666666;
    --border-light: #e0e0e0;
    --shadow-sm: 0 5px 15px rgba(27, 77, 62, 0.08);
    --shadow-md: 0 10px 25px rgba(128, 0, 128, 0.1);
    --shadow-lg: 0 15px 40px rgba(255, 20, 147, 0.12);
    --transition: all 0.3s ease;
    
    /* ব্র্যান্ড কালার */
    --youtube: #FF0000;
    --facebook: #1877F2;
    --whatsapp: #25D366;
    --telegram: #26A5E4;
    --gmail: #EA4335;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    background: #fff;
    margin-top: auto;
    width: 100%;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--primary), var(--purple), var(--deep-pink));
    border-image-slice: 1;
    box-shadow: var(--shadow-lg);
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px 10px;
    text-align: center;
}

/* সেকশন ডিভাইডার */
.footer-section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--purple), var(--deep-pink), transparent);
    margin: 20px 0;
}

.footer-flex-rw {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    position: relative;
}

/* সেকশনের মধ্যে হালকা লাইন */
.footer-list-top {
    width: 33.333%; 
    padding: 0 10px;
    margin-bottom: 20px;
    position: relative;
}

.footer-list-top:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--primary-light), var(--purple-light), var(--pink-light), transparent);
}

footer ul { 
    padding-left: 0; 
    margin: 0;
}

footer ul li { 
    list-style: none; 
}

.generic-anchor { 
    text-decoration: none; 
    transition: var(--transition);
}

.generic-anchor:visited { 
    color: var(--primary); 
}

.footer-list-header { 
    padding: 10px 0 5px 0; 
    color: var(--primary); 
    font-size: clamp(16px, 4vw, 18px); 
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-list-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--deep-pink));
    border-radius: 2px;
}

.footer-logo-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

#LOGO {
    transition: var(--transition);
    border-radius: 12px;
    background: #ffffff;
    padding: 5px;
    box-shadow: 0 5px 20px rgba(27, 77, 62, 0.15),
                0 0 0 2px rgba(255, 255, 255, 0.9);
    width: clamp(120px, 20vw, 150px);
    height: auto;
}

#LOGO:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.25),
                0 0 0 3px rgba(255, 255, 255, 1);
}

.footer-list-anchor {
    position: relative;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark) !important;
    font-size: clamp(13px, 3vw, 15px);
    word-break: break-word;
    text-align: left;
    width: 100%;
    justify-content: center;
}

.footer-list-anchor i {
    font-size: clamp(14px, 3.5vw, 16px);
    transition: var(--transition);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-list-anchor .fa-whatsapp,
.footer-list-anchor .fa-phone {
    color: var(--deep-pink);
}

.footer-list-anchor .fa-clock,
.footer-list-anchor .fa-scroll,
.footer-list-anchor .fa-envelope {
    color: var(--purple);
}

.footer-list-anchor .fa-location-dot {
    color: var(--primary);
}

.footer-list-anchor:hover i {
    transform: scale(1.2);
}

.footer-list-anchor::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--deep-pink));
    transition: width 0.3s ease;
}

.footer-list-anchor:hover::before {
    width: 70%;
}

.footer-social-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 10px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.footer-social-connect {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 600;
}

.footer-social-small {
    font-size: 0.5em;
    padding: 0 10px;
    color: var(--purple);
}

.footer-social-icons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* সোশ্যাল আইকন - ব্র্যান্ড কালার এবং রিয়েল লোগোর মতো */
.footer-social-icons-wrapper a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 30%;
    transition: var(--transition);
    font-size: 24px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* ইয়ুটিউব */
.footer-social-icons-wrapper a:nth-child(1) {
    background: var(--youtube);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* ফেসবুক */
.footer-social-icons-wrapper a:nth-child(2) {
    background: var(--facebook);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

/* হোয়াটসঅ্যাপ */
.footer-social-icons-wrapper a:nth-child(3) {
    background: var(--whatsapp);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* ইউজার গ্রুপ - পার্পল */
.footer-social-icons-wrapper a:nth-child(4) {
    background: var(--purple);
    box-shadow: 0 5px 15px rgba(128, 0, 128, 0.3);
}

/* টেলিগ্রাম */
.footer-social-icons-wrapper a:nth-child(5) {
    background: var(--telegram);
    box-shadow: 0 5px 15px rgba(38, 165, 228, 0.3);
}

/* জিমেইল */
.footer-social-icons-wrapper a:nth-child(6) {
    background: var(--gmail);
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.3);
}

.footer-social-icons-wrapper a i {
    color: white !important;
    font-size: 24px;
    transition: var(--transition);
}

.footer-social-icons-wrapper a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.footer-social-icons-wrapper a:hover i {
    transform: scale(1.1);
}

/* হোভার ইফেক্ট - প্রতিটি আলাদা */
.footer-social-icons-wrapper a:nth-child(1):hover { background: #cc0000; }
.footer-social-icons-wrapper a:nth-child(2):hover { background: #0e5ad9; }
.footer-social-icons-wrapper a:nth-child(3):hover { background: #20b859; }
.footer-social-icons-wrapper a:nth-child(4):hover { background: #660066; }
.footer-social-icons-wrapper a:nth-child(5):hover { background: #1e95c9; }
.footer-social-icons-wrapper a:nth-child(6):hover { background: #d62b1a; }

.footer-bottom-section {
    width: 100%;
    padding: 10px 0 5px;
    margin-top: 5px;
}

.footer-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    font-size: clamp(12px, 3vw, 14px);
    white-space: nowrap;
    text-align: center;
}

.footer-bottom-wrapper i {
    color: var(--deep-pink);
    font-size: 1.2em;
    flex-shrink: 0;
}

.footer-bottom-wrapper span {
    color: var(--text-dark);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--deep-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* রেসপনসিভ ডিজাইন */
@media only screen and (max-width: 992px) {
    .footer-list-top { 
        width: 33.333%; 
    }
}

@media only screen and (max-width: 768px) {
    .footer-list-top { 
        width: 50%; 
    }
    
    .footer-list-top:not(:last-child)::after {
        display: none;
    }
    
    .footer-social-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-social-icons-wrapper a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .footer-social-icons-wrapper a i {
        font-size: 20px;
    }
}

@media only screen and (max-width: 576px) {
    .footer-list-top { 
        width: 100%; 
        padding: 0 5px;
    }
    
    .footer-social-section {
        padding: 15px 0;
    }
    
    .footer-social-icons-wrapper {
        width: 100%;
        gap: 10px;
    }
    
    .footer-social-icons-wrapper a {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .footer-social-icons-wrapper a i {
        font-size: 18px;
    }
    
    .footer-bottom-wrapper {
        white-space: normal;
        flex-wrap: wrap;
        padding: 8px 15px;
    }
    
    .footer-bottom-wrapper span {
        white-space: normal;
        text-align: center;
    }
}

@media only screen and (max-width: 480px) {
    .footer-container {
        padding: 15px 2px 5px;
    }
    
    .footer-list-header {
        font-size: 16px;
    }
    
    .footer-list-anchor {
        font-size: 13px;
        padding: 4px 0;
    }
    
    .footer-social-icons-wrapper a {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .footer-social-icons-wrapper a i {
        font-size: 16px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .footer-container {
        padding: 15px 10px;
    }
    
    .footer-list-top {
        margin-bottom: 15px;
    }
}

@media (hover: none) {
    .footer-list-anchor:hover::before {
        width: 0;
    }
    
    .footer-social-icons-wrapper a:hover {
        transform: none;
    }
    
    #LOGO:hover {
        transform: none;
    }
}