/* Logo dimension fix - BIGGER SIZE for better visibility */
.logo {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    max-width: 80px !important;
    max-height: 80px !important;
}

/* Ensure navbar-brand doesn't override logo dimensions */
.navbar-brand .logo {
    width: 80px !important;
    height: 80px !important;
}

/* Footer logo fix if exists */
.footer-section .logo {
    width: 70px !important;
    height: 70px !important;
}

/* Company name styling next to logo */
.navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
}

/* Company name with two-line layout */
.company-name {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
}

/* Style for "NIMDA CREDIT" - larger and bold */
.company-name::before {
    content: "NIMDA CREDIT" !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0A1023 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 2px !important;
}

/* Style for "CO-OPERATIVE SOCIETY LTD." - smaller */
.company-name::after {
    content: "CO-OPERATIVE SOCIETY LTD." !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a4dbe !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Hide the original text content */
.company-name {
    font-size: 0 !important;
    color: transparent !important;
}

@media (max-width: 991px) {
    .logo {
        width: 70px !important;
        height: 70px !important;
    }
    
    .navbar-brand .logo {
        width: 70px !important;
        height: 70px !important;
    }
    
    .company-name::before {
        font-size: 18px !important;
    }
    
    .company-name::after {
        font-size: 11px !important;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .navbar-brand .logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .navbar-brand {
        gap: 12px !important;
    }
    
    .company-name::before {
        font-size: 16px !important;
    }
    
    .company-name::after {
        font-size: 10px !important;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 50px !important;
        height: 50px !important;
    }
    
    .navbar-brand .logo {
        width: 50px !important;
        height: 50px !important;
    }
    
    .navbar-brand {
        gap: 10px !important;
    }
    
    .company-name::before {
        font-size: 14px !important;
        letter-spacing: 0.5px !important;
    }
    
    .company-name::after {
        font-size: 9px !important;
    }
}

/* Button text alignment fix - centers text vertically and horizontally */
.cmn-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Ensure all button variants have proper alignment */
a.cmn-btn,
button.cmn-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Footer logo and company name styling */
.footer-section .logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    margin-bottom: 25px !important;
    text-decoration: none !important;
}

/* Footer company name with two-line layout */
.footer-section .company-name-footer {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
}

/* Style for "NIMDA CREDIT" in footer - larger and bold */
.footer-section .company-name-footer::before {
    content: "NIMDA CREDIT" !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #2c3655 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 2px !important;
}

/* Style for "CO-OPERATIVE SOCIETY LTD." in footer - smaller */
.footer-section .company-name-footer::after {
    content: "CO-OPERATIVE SOCIETY LTD." !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1a4dbe !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Hide the original text content in footer */
.footer-section .company-name-footer {
    font-size: 0 !important;
    color: transparent !important;
}

@media (max-width: 991px) {
    .footer-section .logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .footer-section .company-name-footer::before {
        font-size: 18px !important;
    }
    
    .footer-section .company-name-footer::after {
        font-size: 11px !important;
    }
}

@media (max-width: 767px) {
    .footer-section .logo {
        width: 55px !important;
        height: 55px !important;
    }
    
    .footer-section .logo-wrapper {
        gap: 12px !important;
    }
    
    .footer-section .company-name-footer::before {
        font-size: 16px !important;
    }
    
    .footer-section .company-name-footer::after {
        font-size: 10px !important;
    }
}

@media (max-width: 480px) {
    .footer-section .logo {
        width: 50px !important;
        height: 50px !important;
    }
    
    .footer-section .logo-wrapper {
        gap: 10px !important;
    }
    
    .footer-section .company-name-footer::before {
        font-size: 14px !important;
        letter-spacing: 0.5px !important;
    }
    
    .footer-section .company-name-footer::after {
        font-size: 9px !important;
        max-width: 180px !important;
    }
}
