/* Text Display Fixes for MAX IT SOLUTIONS Website */

/* Fix text rendering and display issues */
body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
}

/* Fix text overflow and word wrapping */
h1, h2, h3, h4, h5, h6, p, span, div, a, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix logo display in header */
.navbar-brand,
.navbar-brand img,
.__inline-11,
.__inline-12 {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Fix mobile logo */
.mobile-logo-img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Fix footer logo */
.footer-web-logo img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto;
}

/* Fix category names and navigation text */
.category-name,
.product-name,
.nav-link,
.navbar-nav a {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
    text-overflow: ellipsis;
}

/* Fix product card text */
.product-single-hover .single-product-details a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
}

/* Fix card text */
.card-body,
.card-title,
.card-text {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5;
}

/* Fix dropdown menu text */
.dropdown-menu,
.dropdown-item {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Fix footer text */
footer,
.footer-heder,
.footer-web-logo {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Fix search bar text */
.search-bar-input,
.search-bar-input-mobile {
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Fix button text */
.btn,
.btn-primary,
.btn--primary {
    white-space: normal !important;
    word-wrap: break-word !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

/* Fix text in navigation */
.navbar-stuck-menu .nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Fix text in banners and headings */
.banner-text,
.section-header h2,
.feature_header h2 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.3 !important;
}

/* Fix meta tags and alt text display */
img[alt] {
    font-size: 12px;
}

/* Ensure proper text display in all containers */
.container,
.container-fluid,
.row,
.col,
[class*="col-"] {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix text alignment issues */
.text-center,
.text-left,
.text-right {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix company name display */
.navbar-brand,
.footer-web-logo {
    text-align: center;
}

/* Responsive text fixes */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    h6 { font-size: 0.9rem !important; }
    
    .navbar-brand img {
        max-width: 150px !important;
    }
}

/* Fix text in modals */
.modal-body,
.modal-title,
.modal-header {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Fix text in tables */
table,
td,
th {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Fix text in forms */
.form-control,
.form-label,
.input-group-text {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}
