/* --------------------------------------------------------------------------
   Footer Styles
-------------------------------------------------------------------------- */
.site-footer {
    background-color: #111827; /* Dark background */
    color: #e5e7eb; /* Light text */
    padding: 40px 0 20px 0;
    margin-top: 15px;
}

.site-footer a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #374151;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    padding: 0 30px;
    position: relative;
}

/* Vertical dividers */
.footer-mid::before,
.footer-mid::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 120px;
    background-color: #374151; /* Lighter dark for divider */
}

.footer-mid::before {
    left: 0;
}

.footer-mid::after {
    right: 0;
}

/* --------------------------------------------------------------------------
   Left Section (Logo & About)
-------------------------------------------------------------------------- */
.footer-left-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    font-size: 15px;
    text-align: center;
}

.footer-main-logo {
    max-width: 180px;
    height: auto;
}

.footer-main-logo-text {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.footer-about {
    margin: 0;
    line-height: 1.6;
    color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Middle Section (Editor, Phone, Email)
-------------------------------------------------------------------------- */
.footer-mid-content {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
}

.footer-mid-content p {
    margin: 0 0 8px 0;
}

.footer-mid-content p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Right Section (Social, Address, Important Links Button)
-------------------------------------------------------------------------- */
.footer-right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.footer-social-icons a:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.fsi-fb { background-color: #3b5998; }
.fsi-tw { background-color: #1da1f2; }
.fsi-in { background-color: #0077b5; }
.fsi-yt { background-color: #ff0000; }
.fsi-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }

.footer-address {
    margin: 0;
    font-size: 15px;
    color: #d1d5db;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Footer Default Links
-------------------------------------------------------------------------- */
.footer-default-links {
    padding-bottom: 20px;
    border-bottom: 1px solid #374151;
    margin-bottom: 20px;
}

.footer-important-links-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-important-links-row li a,
.footer-important-links-row a {
    font-size: 15px;
    font-weight: 500;
}

.footer-important-links-row li a:hover,
.footer-important-links-row a:hover {
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   Footer Bottom (Copyright & Dev Credit)
-------------------------------------------------------------------------- */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-copyright-text {
    margin: 0;
    color: #d1d5db;
}

.footer-dev-credit {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.footer-dev-credit a {
    color: var(--primary-color);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Back to Top Button
-------------------------------------------------------------------------- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #1f2937;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .footer-layout {
        flex-direction: column;
        gap: 40px;
    }

    .footer-col {
        padding: 0;
        width: 100%;
    }

    /* Remove vertical dividers on mobile */
    .footer-mid::before,
    .footer-mid::after {
        display: none;
    }

    /* Add horizontal dividers instead */
    .footer-mid {
        padding: 30px 0;
        border-top: 1px solid #374151;
        border-bottom: 1px solid #374151;
    }
    
    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-default-links {
        gap: 10px;
    }
    
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
    }
}
