/* Standardized Style Guide */
/* Uniform typography, colors, and sizing across entire website */

/* ============================================
   STANDARDIZED TEXT SIZING
   ============================================ */

/* Base body text - uniform across site */
body,
p,
div,
span,
li,
td,
label,
input,
textarea,
select {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

/* ============================================
   STANDARDIZED HEADERS - ALL BLACK
   ============================================ */

h1, h1 a,
h2, h2 a,
h3, h3 a,
h4, h4 a,
h5, h5 a,
h6, h6 a {
    color: #000000 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
}

/* Exception: Accordion headers need white text on dark background */
.accordionjs .acc_section .acc_head h3,
.accordionjs .acc_section .acc_head h3 a {
    color: #ffffff !important;
}

/* Standardized header sizes */
h1, h1 a { font-size: 32px !important; }
h2, h2 a { font-size: 28px !important; }
h3, h3 a { font-size: 24px !important; }
h4, h4 a { font-size: 20px !important; }
h5, h5 a { font-size: 18px !important; }
h6, h6 a { font-size: 16px !important; }

/* ============================================
   STANDARDIZED LINKS - ALL BLUE, SAME SIZE
   ============================================ */

a,
a:link,
a:visited,
a span,
a strong,
a em,
p a,
div a,
li a,
td a,
.welcomebanner p a,
.listinline a,
.bluetext,
.txt-blue,
.breadcrumb > li > a,
.list-of-group li strong,
.footer a {
    color: #1976d2 !important;
    font-size: 16px !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

a:hover,
a:focus,
p a:hover,
div a:hover,
li a:hover {
    color: #0d47a1 !important;
    text-decoration: underline !important;
}

/* Navigation links exception - maintain navigation styling but keep blue */
.MenuSection .navbar-nav > li > a,
.topMenuSec > ul.nav > li > a {
    text-decoration: none !important;
}

/* Services section exceptions - clean formatting for headers and bullet points */
.subContent h5 a {
    text-decoration: none !important;
    color: #000000 !important;
    border-bottom: 1px solid #1976d2 !important;
    display: inline-block !important;
    padding-bottom: 4px !important;
}

.subContent h5 a:hover {
    color: #1976d2 !important;
    border-bottom-color: #0d47a1 !important;
}

.subContent ul li,
.subContent ul li span {
    color: #000000 !important;
    text-decoration: none !important;
    font-size: 16px !important;
}

/* ============================================
   STANDARDIZED PARAGRAPHS
   ============================================ */

p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin-bottom: 1rem !important;
}

p strong,
p b {
    font-weight: 600 !important;
    color: #000 !important;
}

p em,
p i {
    font-style: italic !important;
}

/* ============================================
   STANDARDIZED LISTS
   ============================================ */

ul li,
ol li,
.list-of-group li {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
}

ul li strong,
ol li strong,
.list-of-group li strong {
    color: #000 !important;
    font-weight: 600 !important;
}

/* ============================================
   STANDARDIZED TABLES
   ============================================ */

table,
.table {
    font-size: 16px !important;
}

th,
.table > thead > tr > td {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

td,
.table > tbody > tr > td {
    font-size: 16px !important;
    color: #333 !important;
}

table a,
.table a {
    color: #1976d2 !important;
    font-size: 16px !important;
}

/* ============================================
   STANDARDIZED BUTTONS
   ============================================ */

button,
.btn,
input[type="submit"],
input[type="button"] {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
}

/* ============================================
   STANDARDIZED FORM ELEMENTS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    font-size: 16px !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

label {
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 600 !important;
}

/* ============================================
   CONTENT AREA SPECIFICS
   ============================================ */

.inner-content-Bg,
.blockGbg,
.welcomebanner,
.subContent {
    font-size: 16px !important;
}

/* Ensure all content follows standard */
.inner-content-Bg p,
.inner-content-Bg li,
.blockGbg p,
.blockGbg li,
.welcomebanner p,
.subContent p,
.subContent li {
    font-size: 16px !important;
    color: #333 !important;
}

/* Product menu text exception - needs to be visible on dark background */
.welcomebanner .productMenu li a p,
.welcomebanner .oth-menu li a p,
.blockGbg .productMenu li a p,
.blockGbg .oth-menu li a p,
.productMenu li a p,
.oth-menu li a p {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-align: center !important;
}

.inner-content-Bg h1,
.inner-content-Bg h2,
.inner-content-Bg h3,
.inner-content-Bg h4,
.inner-content-Bg h5,
.inner-content-Bg h6 {
    color: #000000 !important;
}

/* Keep white text for headers in dark background containers */
.blockGbg h1,
.blockGbg h2,
.blockGbg h3,
.blockGbg h4,
.blockGbg h5,
.blockGbg h6,
.welcomebanner h1,
.welcomebanner h2,
.welcomebanner h3,
.welcomebanner h4,
.welcomebanner h5,
.welcomebanner h6 {
    color: #ffffff !important;
}

/* ============================================
   ACCORDION & FAQ STANDARDIZATION
   ============================================ */

/* Accordion header styling - dark blue background with white text */
.accordionjs .acc_section .acc_head {
    background: #003366 !important;
    background-color: #003366 !important;
}

.accordionjs .acc_section.acc_active > .acc_head {
    background: rgba(38,38,81,0.8) !important;
    background-color: rgba(38,38,81,0.8) !important;
}

.accordionjs .acc_section .acc_head h3,
.faq-panel h4 {
    color: #ffffff !important;
    font-size: 18px !important;
}

.accordionjs .acc_section .acc_content p,
.accordionjs .acc_section .acc_content li,
.faq-panel .panel-body p,
.faq-panel .panel-body li {
    font-size: 16px !important;
    color: #333 !important;
}

.accordionjs .acc_section .acc_content h2,
.accordionjs .acc_section .acc_content h3,
.accordionjs .acc_section .acc_content h4,
.accordionjs .acc_section .acc_content h6 {
    color: #000000 !important;
}

.accordionjs .acc_section .acc_content .faq-Content,
.accordionjs .acc_section .acc_content .faq-Content p,
.accordionjs .acc_section .acc_content .faq-Content h2,
.accordionjs .acc_section .acc_content .faq-Content h5,
.accordionjs .acc_section .acc_content .faq-Content ul,
.accordionjs .acc_section .acc_content .faq-Content li {
    color: #003366 !important;
}

/* ============================================
   PHONE NUMBER & CONTACT INFO
   ============================================ */

.phoneNo,
.contact-box-01 h4 {
    font-size: 16px !important;
    color: #1976d2 !important;
}

/* ============================================
   FOOTER STANDARDIZATION
   ============================================ */

#footer,
.footer,
.copyright {
    font-size: 16px !important;
}

.copyright,
.copyright p {
    color: #ffffff !important;
}

.footer a,
.copyright a {
    color: #1976d2 !important;
    font-size: 16px !important;
}

/* ============================================
   BREADCRUMB STANDARDIZATION
   ============================================ */

.breadcrumb > li {
    font-size: 16px !important;
    color: #333 !important;
}

.breadcrumb > li > a {
    font-size: 16px !important;
    color: #1976d2 !important;
}

/* ============================================
   SPECIAL TEXT CLASSES
   ============================================ */

.small-text,
.note,
.caption {
    font-size: 14px !important;
    color: #666 !important;
}

.large-text {
    font-size: 18px !important;
}

/* ============================================
   OVERRIDE ANY INLINE STYLES
   ============================================ */

/* Force remove any conflicting inline font sizes */
[style*="font-size"] {
    font-size: 16px !important;
}

/* Headers always black regardless of inline styles */
h1[style*="color"],
h2[style*="color"],
h3[style*="color"],
h4[style*="color"],
h5[style*="color"],
h6[style*="color"] {
    color: #000000 !important;
}

/* Links always blue regardless of inline styles */
a[style*="color"]:not(.btn):not(.navbar-nav > li > a) {
    color: #1976d2 !important;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body, p, li, td {
        font-size: 12pt !important;
        color: #000 !important;
    }

    h1 { font-size: 24pt !important; }
    h2 { font-size: 20pt !important; }
    h3 { font-size: 18pt !important; }
    h4 { font-size: 16pt !important; }
    h5 { font-size: 14pt !important; }
    h6 { font-size: 12pt !important; }

    a {
        color: #1976d2 !important;
        text-decoration: underline !important;
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Product Grid Uniformity - Homepage */
.bluePatternBg {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

.bluePatternBg .thumbImg {
    margin-bottom: 20px !important;
    min-height: 240px !important;
    display: flex !important;
    align-items: stretch !important;
    padding: 0 5px !important;
}

.bluePatternBg .thumbImg .thumbaction {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px 15px !important;
    min-height: 220px !important;
}

.bluePatternBg .thumbImg .thumbaction img {
    max-width: 100% !important;
    max-height: 120px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    margin-bottom: 20px !important;
    flex-shrink: 0 !important;
}

.bluePatternBg .thumbImg .thumbaction p {
    font-size: 15px !important;
    color: #1976d2 !important;
    text-align: center !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    min-height: 45px !important;
    max-height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    padding: 0 5px !important;
}

.bluePatternBg .thumbImg .thumbaction p sup {
    white-space: nowrap !important;
}

/* Final image (last item) - no text */
.bluePatternBg .thumbImg .finalImg {
    min-height: 160px !important;
}

.bluePatternBg .thumbImg .finalImg img {
    max-height: 160px !important;
}

@media (max-width: 768px) {
    /* Slightly smaller on mobile for better fit */
    body, p, div, span, li, td {
        font-size: 15px !important;
    }

    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 20px !important; }
    h4 { font-size: 18px !important; }
    h5 { font-size: 16px !important; }
    h6 { font-size: 15px !important; }

    a {
        font-size: 15px !important;
    }

    /* Product grid adjustments for mobile */
    .bluePatternBg .thumbImg {
        min-height: 180px !important;
    }

    .bluePatternBg .thumbImg .thumbaction {
        min-height: 160px !important;
        padding: 10px !important;
    }

    .bluePatternBg .thumbImg .thumbaction img {
        max-height: 100px !important;
        margin-bottom: 10px !important;
    }

    .bluePatternBg .thumbImg .thumbaction p {
        font-size: 14px !important;
        min-height: 35px !important;
    }
}

/* ============================================
   PRODUCT MENU TEXT - CRITICAL OVERRIDE
   Must come last to override all other rules
   ============================================ */

/* Force product menu text to be blue links */
ul.oth-menu.productMenu li a p,
ul.productMenu li a p,
.oth-menu li a p,
.productMenu li a p,
.welcomebanner ul.oth-menu li a p,
.welcomebanner ul.productMenu li a p,
.blockGbg ul.oth-menu li a p,
.blockGbg ul.productMenu li a p,
.welcomebanner .oth-menu li a p,
.welcomebanner .productMenu li a p,
.blockGbg .oth-menu li a p,
.blockGbg .productMenu li a p {
    color: #1976d2 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-align: center !important;
    line-height: 1.4 !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* ============================================
   PRODUCT PAGE SECTION TITLES
   Fix text wrapping on Description, Specifications, etc.
   ============================================ */

/* Product page section titles - prevent wrapping */
.inner-content-Bg .col-xs-12.col-sm-4.col-md-2.col-lg-2 h4,
.inner-content-Bg .row .col-md-2 h4,
.blockGbg .col-xs-12.col-sm-4.col-md-2.col-lg-2 h4,
.blockGbg .row .col-md-2 h4 {
    font-size: 15px !important;
    white-space: nowrap !important;
    color: #000000 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767px) {
    .inner-content-Bg .col-xs-12.col-sm-4.col-md-2.col-lg-2 h4,
    .blockGbg .col-xs-12.col-sm-4.col-md-2.col-lg-2 h4 {
        font-size: 16px !important;
        white-space: normal !important;
        margin-bottom: 10px !important;
    }
}

/* ============================================
   SPECIAL PRICING HIGHLIGHT - MODERN DESIGN
   Rounded corners and improved styling
   ============================================ */

.blueBg {
    display: inline-block !important;
    background: linear-gradient(135deg, #4a9fd8 0%, #6bb7e2 100%) !important;
    padding: 12px 20px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 15px 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(74, 159, 216, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.blueBg:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(74, 159, 216, 0.4) !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .blueBg {
        display: block !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
}

/* ============================================
   HEADER BACKGROUND TREATMENT
   Subtle color and texture to make headers pop
   ============================================ */

/* Main section headers - h1 in content areas */
.inner-content-Bg h1,
.blockGbg h1,
.welcomebanner h1 {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%) !important;
    background-image: 
        linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.5) 10px, rgba(255,255,255,.5) 20px) !important;
    padding: 18px 24px !important;
    margin-bottom: 20px !important;
    border-left: 4px solid #1976d2 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Section headers - h2 in content areas */
.inner-content-Bg h2,
.blockGbg h2,
.welcomebanner h2 {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%) !important;
    background-image: 
        linear-gradient(135deg, #f8f9fc 0%, #eef2f7 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,.4) 10px, rgba(255,255,255,.4) 20px) !important;
    padding: 14px 20px !important;
    margin-bottom: 16px !important;
    border-left: 4px solid #1976d2 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Subsection headers - h3 in content areas */
.inner-content-Bg h3:not(.accordionjs .acc_section .acc_head h3),
.blockGbg h3:not(.accordionjs .acc_section .acc_head h3),
.welcomebanner h3:not(.accordionjs .acc_section .acc_head h3) {
    background: linear-gradient(135deg, #fafbfc 0%, #f3f5f8 100%) !important;
    padding: 12px 18px !important;
    margin-bottom: 14px !important;
    border-left: 3px solid #1976d2 !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
    font-weight: 600 !important;
}

/* CRITICAL: Override light backgrounds for accordion headers - must keep dark blue */
.accordionjs .acc_section .acc_head h3 {
    background: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border-left: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Smaller headers - h4, h5, h6 with lighter treatment */
.inner-content-Bg h4,
.blockGbg h4,
.welcomebanner h4 {
    background: linear-gradient(to right, #fafbfd 0%, #ffffff 100%) !important;
    padding: 10px 16px !important;
    margin-bottom: 12px !important;
    border-left: 3px solid #4a9fd8 !important;
    border-radius: 2px !important;
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Exclude specific h4 elements that are section labels (Description:, Specifications:, etc.) */
.inner-content-Bg .col-md-2 h4,
.blockGbg .col-md-2 h4 {
    background: none !important;
    padding: 0 !important;
    border-left: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .inner-content-Bg h1,
    .blockGbg h1,
    .welcomebanner h1 {
        padding: 14px 18px !important;
        font-size: 24px !important;
    }
    
    .inner-content-Bg h2,
    .blockGbg h2,
    .welcomebanner h2 {
        padding: 12px 16px !important;
        font-size: 20px !important;
    }
    
    .inner-content-Bg h3,
    .blockGbg h3,
    .welcomebanner h3 {
        padding: 10px 14px !important;
    }
}
