/* Body Layout Fix - Ensures Footer Stays at Bottom */
html {
    height: 100%;
}

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

/* Main content should expand to push footer down */
body > *:not(.bro-footer):not(script):not(style):not(.sebi-disclaimer-section) {
    flex: 1 0 auto;
}

/* Override any conflicting overflow that might break flex */
body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Fixed positioned elements don't affect flex layout */
.reading-progress,
.article-nav,
.navbar {
    position: fixed !important;
}

/* Ensure SEBI disclaimer and footer stack properly at bottom */
.sebi-disclaimer-section,
.footer,
.bro-footer {
    flex-shrink: 0 !important;
    width: 100%;
    margin-top: auto;
}

/* Footer Styles */
.footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    padding: 60px 20px 40px;
    border-top: 3px solid #C9A227;
    position: relative;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-brand .logo-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.footer-brand .logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-brand p {
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: #C9A227;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.footer-column a {
    display: block;
    color: #b8b8b8;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.footer-column a:hover {
    color: #C9A227;
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #888888;
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.footer-bottom .social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    color: #C9A227;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-bottom .social-links a:hover {
    background: #C9A227;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 20px 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-brand .logo-img {
        width: 50px;
        height: 50px;
    }

    .footer-brand .logo-text {
        font-size: 1.6rem;
    }

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

    .footer-column a {
        font-size: 0.9rem;
    }
}