/* Footer Styles */
.drishti-footer {
    position: relative;
    margin-top: 50px;
    background-color: #120e2b;
    /* Navy blue to match header and contrast logo */
    color: white;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 50px;
    /* Space for the overlapping yellow banner */
}

/* Yellow Banner Overlap */
.footer-top-banner {
    background: linear-gradient(to right, #ffce33, #ffa000);
    border-radius: 12px;
    position: absolute;
    top: -40px;
    left: 5%;
    right: 5%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 15px 30px;
    z-index: 10;
}

.footer-top-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-top-banner h3 {
    color: #113670;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.btn-contact-us {
    background: linear-gradient(to bottom, #2b61c8, #0e378c);
    color: white;
    padding: 10px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #082970;
}

.btn-contact-us:hover {
    background: linear-gradient(to bottom, #3974e3, #1646aa);
    color: white;
}

/* Main Footer area */
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 20px;
}

.naked-short {
    text-align: center;
    font-weight: 500;
    margin-bottom: 30px;
    font-size: 14px;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 4px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    width: 80px;
    background: #fff;
    border-radius: 5px;
    padding: 3px;
    margin-bottom: 20px;
    border: 1px solid #5ed0ff;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
}

.contact-info li {
    display: flex;
    margin-bottom: 12px;
    gap: 12px;
}

.contact-info i {
    margin-top: 4px;
    font-size: 14px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #e6cd38;
}

.footer-col h4 {
    color: #5ed0ff;
    /* Light Blue heading from logo */
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1rem;
}

.footer-col-links li {
    margin-bottom: 8px;
}

.footer-col-links a {
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-col-links ul a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #5ed0ff;
    position: absolute;
    left: -1rem;
}

.footer-col-links a:hover {
    /* text-decoration: underline; */
    color: #e6cd38;
    /* Changed from green to white */
}

.policy-header {
    margin-top: 10px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
}

.sub-links {
    padding-left: 15px !important;
    margin-bottom: 10px !important;
}

.app-badges {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 130px;
}

.app-badge-btn {
    background: #000;
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    gap: 8px;
    border: 1px solid #333;
}

.app-badge-btn i {
    font-size: 20px;
}

.app-badge-text {
    display: flex;
    flex-direction: column;
}

.app-badge-text small {
    font-size: 8px;
    line-height: 1;
}

.app-badge-text strong {
    font-size: 12px;
    line-height: 1.2;
}

.app-text {
    font-size: 11px;
    text-align: center;
    margin-top: 5px;
}

.footer-office-use {
    margin-bottom: 30px;
}

.footer-office-use h4 {
    color: #5ed0ff;
    /* Light Blue heading from logo */
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 700;
}

.office-links a {
    color: white;
    text-decoration: none;
    font-size: 11px;
    line-height: 2;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    width: fit-content;
}

.office-links a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #5ed0ff;
}

.office-links a:hover {
    color: #e6cd38;
}

.sebi-badge {
    margin-top: 15px;
    width: 140px;
    border-radius: 4px;
    background: white;
    padding: 5px;
}

.membership-details {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.membership-box {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 11px;
    color: #d1d5db;
    /* Light gray */
    font-weight: 500;
    border-left: 2px solid #e63946;
    /* Red accent from logo */
}

.membership-box strong {
    color: #5ed0ff;
    /* Light blue */
}

.footer-bottom {
    background: #090616;
    /* Even darker navy */
    color: #9ca3af;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 850px) {
    .footer-top-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-columns {
        flex-direction: column;
        gap: 40px;
    }

    .footer-top-banner {
        top: -90px;
    }

    .drishti-footer {
        margin-top: 110px;
        padding-top: 80px;
    }

    .footer-col h4 {
        margin-bottom: 10px;
    }

    .membership-box {
        margin-bottom: 10px;
    }
}

/* Floating Call to Trade Popup */
.floating-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    max-width: 320px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-popup.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.floating-popup img {
    display: block;
    width: 100%;
    height: auto;
}

.close-popup-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    background: white;
    color: red;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    padding: 0;
    padding-bottom: 2px;
    /* Center the x visually */
}

.close-popup-btn:hover {
    background: #f5f5f5;
}