.footer {
    background: linear-gradient(135deg, #0a5f4a 0%, #1A886D 100%);
    padding: 60px 0 30px 0;
    position: relative;
    color: #fff;
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    border-top: 4px solid #D4AF37;
}

/* Islamic Pattern Overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' opacity='0.05'%3E%3Cpath d='M50 0 L61.8 34.5 L100 34.5 L69.1 55.5 L80.9 90 L50 69.1 L19.1 90 L30.9 55.5 L0 34.5 L38.2 34.5 Z' fill='white'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #1A886D, #D4AF37);
}

.footer-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Column Styles */
.footer-col {
    position: relative;
}

.footer-col .col-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    animation: fadeInUp 0.6s ease-out;
}

/* Headings with Islamic Touch */
.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #D4AF37;
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: 0.5px;
    width: 100%;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #1A886D);
    border-radius: 2px;
}

.footer-col:first-child h4 {
    text-align: left;
}

/* Paragraph Text */
.footer-col p {
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* List Styles */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

.footer-col ul li:hover {
    transform: translateX(5px);
}

.footer-col ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.3rem 0;
}

.footer-col ul li a:hover {
    color: #D4AF37;
    text-shadow: 0 2px 5px rgba(212, 175, 55, 0.3);
}

.footer-col ul li a i,
.footer-col ul li a svg {
    font-size: 1rem;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.footer-col ul li a:hover i,
.footer-col ul li a:hover svg {
    transform: scale(1.2);
    color: #D4AF37;
}

/* Special Case for Contact Items */
.special-case li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.3rem 0;
}

.special-case li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #D4AF37;
}

.special-case li span {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    word-break: break-word;
}

/* Icons Container */
.icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: flex-start;
}

.icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-decoration: none;
}

.icons a i,
.icons a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.icons a:hover {
    background: #D4AF37;
    color: #1A886D;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    border-color: transparent;
}

.icons a:hover i,
.icons a:hover svg {
    transform: scale(1.2);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.9rem;
    padding: 25px 20px 10px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom p:last-child {
    color: rgba(212, 175, 55, 0.9);
    font-size: 0.85rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Tablet View (768px - 1024px) ========== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-col:nth-child(1) {
        grid-column: 1 / -1;
        margin-bottom: 0.5rem;
    }

    .footer-col:nth-child(1) h4 {
        text-align: center;
    }

    .footer-col:nth-child(1) h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col:nth-child(1) p {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col:nth-child(2),
    .footer-col:nth-child(3),
    .footer-col:nth-child(4) {
        grid-column: auto;
    }

    .icons {
        justify-content: center;
    }
}

/* ========== Mobile View (up to 767px) ========== */
@media (max-width: 767px) {
    .footer {
        padding: 40px 0 20px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 90%;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col .col-body {
        align-items: center;
    }

    .footer-col h4 {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }

    .footer-col p {
        text-align: center;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer-col ul li {
        text-align: center;
        width: 100%;
        max-width: 300px;
    }

    .footer-col ul li a {
        justify-content: center;
        padding: 0.5rem 0;
    }

    .footer-col ul li:hover {
        transform: translateY(-2px);
    }

    /* Special case for contact items */
    .special-case li {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        padding: 0.5rem 0;
    }

    .special-case li svg {
        margin-right: 0;
    }

    .special-case li span {
        text-align: center;
        width: 100%;
    }

    .icons {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-bottom {
        margin-top: 30px;
        padding: 20px 15px 5px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* ========== Small Mobile View (up to 480px) ========== */
@media (max-width: 480px) {
    .footer {
        padding: 35px 0 15px 0;
    }

    .footer-container {
        gap: 25px;
    }

    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .footer-col p,
    .footer-col ul li a,
    .special-case li span {
        font-size: 0.9rem;
    }

    .icons a {
        width: 35px;
        height: 35px;
    }

    .icons a i,
    .icons a svg {
        width: 18px;
        height: 18px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ========== Extra Small Mobile View (up to 360px) ========== */
@media (max-width: 360px) {
    .footer-container {
        width: 95%;
        gap: 20px;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col p,
    .footer-col ul li a,
    .special-case li span {
        font-size: 0.85rem;
    }

    .icons {
        gap: 10px;
    }

    .icons a {
        width: 32px;
        height: 32px;
    }

    .icons a i,
    .icons a svg {
        width: 16px;
        height: 16px;
    }

    .footer-bottom {
        padding: 15px 10px 5px;
    }
}

/* ========== Landscape Mode Optimization ========== */
@media (orientation: landscape) and (max-height: 600px) {
    .footer {
        padding: 30px 0 15px 0;
    }

    .footer-container {
        gap: 20px;
    }

    .footer-col h4 {
        margin-bottom: 1rem;
    }

    .footer-col ul li {
        margin-bottom: 0.5rem;
    }
}
