/* SteelMetal Theme Additional Styles */

/* Sidebar form */
.sidebar-form-wrap {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f2f5;
}
.sidebar-form-wrap .form-group {
    margin-bottom: 15px;
}
.sidebar-form-wrap input,
.sidebar-form-wrap select,
.sidebar-form-wrap textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    background: #fafbfc;
    transition: all 0.3s;
}
.sidebar-form-wrap input:focus,
.sidebar-form-wrap select:focus,
.sidebar-form-wrap textarea:focus {
    border-color: #f68623;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(246, 134, 35, 0.1);
}
.sidebar-form-wrap textarea {
    min-height: 100px;
    resize: vertical;
}
.sidebar-form-wrap .btn {
    width: 100%;
    background: #ff5e15;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.sidebar-form-wrap .btn:hover {
    background: #d46d0d;
    transform: translateY(-2px);
}

/* Widget title - left orange border */
.sidebar-widget .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #00173c;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #ff5e15;
    border-bottom: none;
    padding-bottom: 0;
}

/* Service contact */
.service-detail-contact {
    background-color: #f3f4f8;
    padding: 45px 40px;
    text-align: center;
    margin-bottom: 50px;
}
.service-detail-contact .h3-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #00173c;
}
.service-detail-contact .h3-title::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 6px;
    background-color: #ff5e15;
    border-radius: 10px;
    left: 50%;
    bottom: 0;
    transform: translate(-50%);
}
.service-detail-contact a {
    color: #ff5e15;
    font-size: 25px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.3s;
}

/* Widget social - light gray circles matching static HTML */
.widget-social {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}
.widget-social a {
    width: 42px;
    height: 42px;
    background: #fff;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}
.widget-social a:hover {
    background: #ff5e15;
    border-color: #ff5e15;
    color: #fff;
}
/* Fix overflow:hidden cutting off social icons */
.widget_custom_html {
    overflow: visible !important;
}

/* Services categories - use <i> tag instead of broken pseudo-element */
.services-categories li a:before {
    display: none !important;
}
.services-categories li a i.fas {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #222;
    transition: color 0.3s ease;
}
.services-categories li.active a i.fas,
.services-categories li:hover a i.fas {
    color: #fff;
}

/* Pagination - all same-size circular buttons */
.pagination-wrap {
    text-align: center;
}
.pagination-wrap .pagination {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pagination-wrap .page-item {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin: 0 !important;
}
.pagination-wrap .page-item a,
.pagination-wrap .page-item span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: #ff5e15 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
    line-height: 1;
}
.pagination-wrap .page-item a:hover {
    background: #e05010 !important;
    color: #fff !important;
}
.pagination-wrap .page-item.active span {
    background: #e05010 !important;
    color: #fff !important;
}
.pagination-wrap .page-item a i {
    font-size: 14px;
    line-height: 1;
}

/* Footer newsletter - match static HTML style */
.footer-top-heiding .newslater .form-group {
    position: relative;
    margin-bottom: 0;
}
.footer-top-heiding .newslater input {
    background: #2a436c !important;
    border: 1px solid #2a436c !important;
    box-shadow: none !important;
    padding: 16px 20px !important;
    color: #a2b6d5 !important;
    height: 56px;
    width: 100% !important;
    border-radius: 0;
}
.footer-top-heiding .newslater input::placeholder {
    color: #a2b6d5;
    opacity: 0.8;
    font-size: 14px;
}
.footer-top-heiding .newslater button {
    position: absolute;
    right: 0;
    top: 0;
    height: 56px;
    background: #ff5e15;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.footer-top-heiding .newslater button:hover {
    background: #e05010;
}
.footer-top-heiding .newslater #contact-form4 {
    width: 100%;
    margin-top: 0;
    display: inline-block;
}

/* Language Switcher */
.header-top {
    position: relative;
    z-index: 10001;
}
.lang-switcher-wrap {
    display: inline-block;
    position: relative;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.3);
    vertical-align: middle;
}
.language-switcher {
    position: relative;
    display: inline-block;
}
.language-btn {
    cursor: pointer;
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.language-btn .globe-icon img {
    width: 25px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}
.language-btn .current-lang {
    font-size: 15px;
    color: #fff;
}
.language-btn .arrow-icon {
    font-size: 10px;
    color: #fff;
    transition: transform 0.3s;
    display: inline-block;
}
.language-switcher .language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 9999;
    min-width: 180px;
    padding: 6px 0;
    padding-top: 15px;
    text-align: left;
}
.language-switcher .language-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}
.language-switcher:hover .language-dropdown,
.language-switcher:focus-within .language-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
}
.language-switcher .language-dropdown.active {
    display: block;
}
.lang-item-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
    justify-content: flex-start;
}
.lang-item-link:hover {
    background: #f5f5f5;
}
.lang-item-link img {
    vertical-align: middle;
}
.header-social .lang-item-link,
.header-social .lang-item-link:hover {
    color: #333 !important;
}

/* Hide services-icon on homepage */
.services-area .services-icon {
    display: none !important;
}

/* td-label: hidden on desktop */
.td-label {
    display: none;
}

/* Mobile table fix for changgui page */
@media (max-width: 768px) {
    .regular-materials-section .material-category {
        overflow: hidden;
        padding: 20px 16px;
    }
    .regular-materials-section .data-table {
        width: 100%;
        min-width: 0;
        display: block;
    }
    .regular-materials-section .data-table thead {
        display: none;
    }
    .regular-materials-section .data-table tbody {
        display: block;
    }
    .regular-materials-section .data-table tr {
        display: flex;
        flex-direction: column;
        padding: 12px 0;
        border-bottom: 1px solid #E5E7EB;
    }
    .regular-materials-section .data-table tr:last-child {
        border-bottom: none;
    }
    .regular-materials-section .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 4px 0;
        border-bottom: none;
        font-size: 13px;
        min-height: 24px;
        gap: 8px;
    }
    .regular-materials-section .data-table td .td-label {
        display: inline !important;
        font-weight: 700;
        color: #0A2463;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .regular-materials-section .data-table td > *:not(.td-label) {
        text-align: right;
        flex: 1;
        min-width: 0;
        word-break: normal;
        overflow-wrap: break-word;
    }

    /* Material category title - smaller font on mobile */
    .regular-materials-section .material-category h3 {
        font-size: 16px;
        flex-wrap: wrap;
    }
    .regular-materials-section .stock-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    /* Contact page mobile fixes - match reference layout */
    .contact-area .contact-info .single-cta {
        display: flex !important;
        float: none !important;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
        margin-bottom: 0;
        padding: 20px 0;
        border-bottom: 1px solid #E5E7EB;
        width: 100% !important;
    }
    .contact-area .contact-info .single-cta:last-child {
        border-bottom: none;
    }
    .contact-area .contact-info .single-cta .f-cta-icon {
        flex-shrink: 0;
        float: none !important;
        margin-right: 0 !important;
    }
    .contact-area .contact-info .single-cta .f-cta-icon i {
        display: flex !important;
        height: 50px !important;
        width: 50px !important;
        line-height: 50px !important;
        font-size: 20px !important;
        background: #ff5e15 !important;
        border-radius: 50% !important;
        color: #fff !important;
        text-align: center !important;
        align-items: center;
        justify-content: center;
    }
    .contact-area .contact-info .single-cta .cta-content {
        flex: 1;
        min-width: 0;
    }
    .contact-area .contact-info .single-cta h5 {
        font-size: 16px;
        margin-bottom: 4px;
        color: #0A2463;
        font-weight: 700;
    }
    .contact-area .contact-info .single-cta p {
        font-size: 13px;
        color: #666;
        margin: 0;
        word-break: break-word;
        line-height: 1.5;
    }
    .contact-area .contact-info .single-cta p a {
        color: #666;
        word-break: break-all;
    }

    /* Footer copyright responsive - true center */
    .copyright-wrap {
        text-align: center;
    }
    .copyright-wrap .container {
        max-width: 100%;
    }
    .copyright-wrap .row {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }
    .copyright-wrap .col-xl-4,
    .copyright-wrap [class*="col-"] {
        text-align: center !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 12px;
    }
    .copyright-wrap .col-xl-4:last-child,
    .copyright-wrap [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    .copyright-wrap .footer-social {
        justify-content: center;
        margin-top: 0;
        display: flex !important;
    }
    .copyright-wrap .copy-text {
        margin: 0;
        width: 100%;
    }
    .copyright-wrap img.logo-white {
        max-width: 120px;
        max-height: 44px;
        width: auto;
        height: auto;
        display: block;
        margin: 0 auto;
        object-fit: contain;
        object-position: left center;
    }
    .copyright-wrap .custom-logo-link {
        display: flex;
        justify-content: center;
    }

    /* Floating icons - prevent overlap */
    .joinchat {
        bottom: 70px !important;
    }

    /* Footer logo - hide on mobile */
    .copyright-wrap img.logo-white,
    .copyright-wrap .custom-logo {
        display: none !important;
    }
    .copyright-wrap .col-xl-4:first-child,
    .copyright-wrap [class*="col-"]:first-child {
        display: none !important;
    }

    /* Reduce excessive section padding on mobile */
    .services-08.pt-100 {
        padding-top: 20px !important;
    }
    .services-08.pb-100 {
        padding-bottom: 20px !important;
    }
    .contact-area.pt-120 {
        padding-top: 30px !important;
    }
    .contact-area.pb-120 {
        padding-bottom: 30px !important;
    }
    .services-area.pt-120 {
        padding-top: 30px !important;
    }
    .services-area.pb-90 {
        padding-bottom: 20px !important;
    }

    /* About area - reduce padding on mobile */
    .about-area.pt-120 {
        padding-top: 30px !important;
    }
    .about-area.pb-120 {
        padding-bottom: 30px !important;
    }

    /* Metal Supply Chain section - reduce padding */
    .project-two.pt-110 {
        padding-top: 30px !important;
    }

    /* Hide empty map area on mobile contact page */
    .contact-area .map {
        display: none !important;
    }
    .contact-area .contact-bg02 {
        padding: 25px 15px !important;
        margin-bottom: 0 !important;
    }

    /* Counter area - hide on mobile to reduce space */
    .counter-area {
        display: none !important;
    }

    /* Blog area - reduce padding */
    .blog-area.pt-90 {
        padding-top: 30px !important;
    }
    .blog-area.pb-90 {
        padding-bottom: 30px !important;
    }

    /* Slider section - reduce bottom margin */
    .slider-btn.mb-160 {
        margin-bottom: 30px !important;
    }

    /* Language dropdown - mobile click toggle */
    .language-switcher.ignore .language-dropdown.active {
        display: block;
    }
}

/* Contact page layout fix - desktop */
.contact-area .contact-info .single-cta {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.contact-area .contact-info .single-cta .f-cta-icon {
    flex-shrink: 0;
}
.contact-area .contact-info .single-cta .cta-content {
    flex: 1;
}
.contact-area .contact-info .single-cta h5 {
    color: #0A2463;
    font-weight: 700;
}
.contact-area .contact-info .single-cta p {
    color: #666;
}

/* Metal Supply Chain section - reduce top padding globally */
.project-two.pt-110 {
    padding-top: 50px !important;
}

/* About area - reduce padding globally */
.about-area.pt-120 {
    padding-top: 60px !important;
}
.about-area.pb-120 {
    padding-bottom: 60px !important;
}

/* Process page - compare table mobile */
@media (max-width: 768px) {
    .compare-area {
        padding: 40px 0 !important;
    }
    .modern-table-wrap {
        border-radius: 8px;
    }
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    .modern-table {
        min-width: 580px;
        table-layout: fixed;
        border-collapse: separate;
        border-spacing: 16px 0;
    }
    .modern-table th,
    .modern-table td {
        padding: 14px 10px !important;
        font-size: 13px !important;
        vertical-align: middle !important;
        line-height: 1.5;
    }
    .modern-table th {
        font-size: 14px !important;
        background: #0054a6;
        color: #fff;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        vertical-align: middle !important;
        text-align: center;
        padding: 14px 10px !important;
    }
    .modern-table th:first-child {
        width: 110px !important;
        font-weight: 700;
        padding-left: 14px !important;
        padding-right: 14px !important;
        white-space: normal;
    }
    .modern-table td:first-child {
        width: 110px !important;
        font-weight: 700;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .modern-table th:nth-child(2),
    .modern-table td:nth-child(2) {
        width: 210px !important;
    }
    .modern-table th:nth-child(3),
    .modern-table td:nth-child(3) {
        width: 210px !important;
    }
    .col-factory, .col-us {
        text-align: left !important;
        word-break: keep-all;
    }
    .col-factory i, .col-us i {
        display: inline;
        margin-right: 4px;
        flex-shrink: 0;
    }
    .process-area {
        padding: 40px 0 !important;
    }
    .process-box {
        padding: 25px 20px 20px !important;
        min-height: auto !important;
    }
    .process-box .step-title {
        font-size: 17px !important;
    }
    .process-box p {
        font-size: 14px !important;
    }
    .process-box ul li {
        font-size: 13px !important;
    }
}