.th-menu-wrapper .mobile-logo {
    padding-bottom: 20px !important;
    padding-top: 20px !important;
    display: block !important;
    text-align: center !important;
    background-color: #fff !important;
}

.header-layout3 .main-menu > ul > li > a {
    padding: 31px 0;
    color: #4B5563 !important;
}


.main-menu > ul > li > a:after {
    color: #4B5563 !important;
}

.header-layout3 .menu-area:before {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    width: 85%;
    height: 90px;
    background-color: #ffffff !important;
}

.header-layout3 .menu-area:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -14px;
    left: 0;
    width: 15.8%;
    height: 104px;
    background: #ffffff;
    -webkit-clip-path: polygon(0 0, 100% 0%, 100% 100%, 10% 100%);
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 10% 100%);
}

/*.logo_top {
    height: 80px;
    margin-left: -30px !important;
    margin-top: -8px !important;
}*/

/* Override Bootstrap grid positioning for logo */
.header-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.logo_top {
    height: 70px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
    /*    margin: 0 auto !important;
*/ padding: 0 !important;
    float: none !important;
}

/* Remove Bootstrap's column padding that might affect logo */
.header-logo .col-auto {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Responsive sizes */
@media screen and (max-width: 1199px) {
    .logo_top {
        height: 70px !important;
    }
}

@media screen and (max-width: 991px) {
    .logo_top {
        height: 70px !important;
        margin-top: 10px !important;
    }
}

@media screen and (max-width: 767px) {
    .logo_top {
        height: 70px !important;
        margin-top: 10px !important;
    }
}

@media screen and (max-width: 575px) {
    .logo_top {
        height: 70px !important;
        margin-top: 10px !important;
    }
}

@media screen and (max-width: 479px) {
    .logo_top {
        height: 70px !important;
        margin-top: 10px !important;
    }
}

/*menu CSS*/

.main-menu > ul > li {
    margin: 0 1px !important;
}

.main-menu a {
    display: block;
    position: relative;
    font-family: var(--body-font);
    font-weight: 600 !important;
    font-size: 18px !important;
    color: var(--title-color);
    text-transform: uppercase;
}

/* Main menu items */
.header-layout3 .main-menu > ul > li > a {
    padding: 31px 0;
    color: var(--white-color);
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 15px; /* Space between menu items */
}

    /* Underline effect */
    .header-layout3 .main-menu > ul > li > a::before {
        content: '';
        position: absolute;
        bottom: 25px;
        left: 50%;
        width: 0;
        height: 3px;
        background: #77570D;
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    /* Hover state */
    .header-layout3 .main-menu > ul > li > a:hover {
        color: #77570D;
    }

        /* Expand underline on hover */
        .header-layout3 .main-menu > ul > li > a:hover::before {
            width: 100%;
        }

/* Active/Current page style - when li has active class */
.header-layout3 .main-menu > ul > li.active > a {
    color: #77570D !important;
}

    .header-layout3 .main-menu > ul > li.active > a::before {
        width: 100% !important;
    }

/* Alternative if active class is on anchor tag */
.header-layout3 .main-menu > ul > li > a.active {
    color: #77570D !important;
}

    .header-layout3 .main-menu > ul > li > a.active::before {
        width: 100% !important;
    }

/* Sub-menu items hover */
.header-layout3 .main-menu > ul > li .sub-menu > li > a {
    transition: all 0.3s ease;
}

    .header-layout3 .main-menu > ul > li .sub-menu > li > a:hover {
        color: #77570D !important;
        padding-left: 25px !important; /* Slide effect */
        background-color: rgba(255, 193, 7, 0.1); /* Subtle gold background */
    }

/* Active sub-menu item */
.header-layout3 .main-menu > ul > li .sub-menu > li.active > a {
    color: #77570D !important;
    background-color: rgba(255, 193, 7, 0.1);
    padding-left: 25px !important;
}

/* Footer CSS*/
.contact-media.style1 {
    background-color: #1F2432 !important;
    box-shadow: 0px -6px 30px 0px rgba(0, 0, 0, 0.05);
    min-height: 150px;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    min-width: 283px;
}

/*Contact Info CSS*/

.contact-media_title {
    font-size: 22px !important;
    line-height: 40px;
    font-weight: 600;
    color: var(--white-color);
    margin-bottom: 0;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

/* ===== About page — Industries We Serve icon tiles (team-card design) ===== */
.about-industry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 270px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    font-size: 64px;
    color: #1D4ED8;
    transition: all .4s ease;
}

.th-team:hover .about-industry-icon,
.team-card:hover .about-industry-icon {
    color: #ffffff;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

/* ===== Contact & Enquiry pages — horizontal cards ===== */
#contact-sec .contact-info_icon,
#enquiry-sec .contact-info_icon {
    display: inline-block;
    width: 40px;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--theme-color);
    color: var(--white-color);
    text-align: center;
    font-size: 18px;
    border-radius: 12px;
    position: relative;
}

#contact-sec .contact-info,
#enquiry-sec .contact-info {
    align-items: flex-start;
}

#contact-sec .contact-info_text,
#enquiry-sec .contact-info_text {
    max-width: none;
    font-size: 14px;
}

/* ===== Public products pages ===== */
.cat-img-placeholder,
.detail-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 210px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: #1D4ED8;
    font-size: 52px;
    border-radius: 20px;
}

.detail-img-placeholder {
    min-height: 300px;
    font-size: 72px;
}

.product-card-meta span {
    display: inline-block;
    background: #F3F4F6;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 13px;
    color: #374151;
    margin: 0 6px 6px 0;
}

.product-code-line {
    font-size: 14px;
    color: #6B7280;
}

.product-code-badge {
    display: inline-block;
    background: var(--theme-color);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .06em;
    border-radius: 6px;
    padding: 3px 10px;
}

/* Option capsules (micron / pack / color) */
.option-capsules {
    margin: 8px 0 24px;
}

.option-capsules .capsule-group {
    margin-bottom: 12px;
}

.option-capsules .capsule-label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--title-color);
}

.option-capsules .capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    padding: 6px 14px;
    margin: 3px 8px 3px 0;
    background: #fff;
    font-size: 14px;
    color: #374151;
}

.option-capsules .capsule .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
}

.option-capsules .capsule-sub {
    color: #9CA3AF;
    font-size: 12px;
}

/* Sidebar active category */
.widget_categories li a.active {
    color: var(--theme-color);
    font-weight: 600;
}

/* ===== Products listing — vertical cards (image on top, text below) ===== */
#product-sec .service-box.style2 {
    flex-direction: column;
    align-items: stretch;
}

#product-sec .service-box.style2 .service-box_img {
    min-width: auto;
    width: 100%;
    margin-bottom: 18px;
}

#product-sec .service-box.style2 .service-box_img img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

#product-sec .cat-img-placeholder {
    max-height: 260px;
}

/* ===== Site-wide: square corners everywhere (no rounded corners) ===== */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

/* ===== Enquiry form product preview ===== */
.enquiry-product-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    padding: 10px 14px;
}

.enquiry-product-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid #E5E7EB;
}

/* ===== Gold CTA buttons on Contact & Enquiry pages (#C38E17) ===== */
#contact-form-sec .th-btn,
#enquiry-form-sec .th-btn {
    background-color: #C38E17;
}

/* ===== Footer — Quick Contact widget ===== */
.footer-widget .footer-contact ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-widget .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
}

.footer-widget .footer-contact li:last-child {
    margin-bottom: 0;
}

.footer-widget .footer-contact li i {
    color: var(--theme-color);
    margin-top: 5px;
    min-width: 16px;
    text-align: center;
}

.footer-widget .footer-contact li a {
    color: inherit;
    text-decoration: none;
}

.footer-widget .footer-contact li a:hover {
    color: var(--white-color);
}

.main-menu ul.sub-menu li a:before {
    content: "";
    position: absolute;
    top: 8px;
    left: 10px;
    font-family: var(--icon-font);
    width: 11px;
    height: 11px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
    font-size: 1em;
    line-height: 1;
    color: var(--theme-color);
    font-weight: 900;
    opacity: 0;
    visibility: visible;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

/* ===== Hero slider product images — reduce to ~50% (no overflow) ===== */
.hero-3 .th-hero-img {
    min-width: 0 !important;
    width: 90% !important;
    max-height: none !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-3 .th-hero-img img {
    width: 100% !important;
}

@media (max-width: 991px) {
    .hero-3 .th-hero-img {
        width: 90% !important;
        margin: 0 auto !important;
        align-items: flex-end;
    }
}

/* ===== Hero images: pin to bottom-right of the slide ===== */
.hero-3 .th-hero-slide .col-lg-5 {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* ===== About page — shrink floating image so it doesn't cover the main image ===== */
.about-sec .img-box1 .img2 {
    width: 38%;
}

.about-sec .img-box1 .img2 img {
    width: 100%;
    border-width: 6px;
}

/* ===== About page — reduce main image height (~80px less) ===== */
.about-sec .img-box1 .img1 img {
    width: 88%;
}

/* Submenu dropdown link color */
.main-menu ul.sub-menu li a {
    color: #4B5563 !important;
}

.main-menu a {
    display: block;
    position: relative;
    font-family: var(--body-font);
    font-weight: 500 !important;
    font-size: 16px !important;
    color: var(--title-color);
    text-transform: uppercase;
}


.team-card .team-desig {
    border-bottom: 1px solid var(--th-border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    max-width: 100%;
}

.team-card .team-desig {
    border-bottom: 1px solid var(--th-border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    max-width: 100%;
    padding-top: 26px;
    
}

.th-team .team-desig {
    display: block;
    margin-bottom: 0;
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
    color: #44423c;
}

/* ===== Header buttons — keep in one inline row ===== */
.header-button {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.header-button .th-btn {
    min-width: auto;
    padding: 14px 20px;
}

/* Login button — visible on the white header ribbon */
.header-button .th-btn.th-border {
    border: 1px solid #4B5563;
    color: #4B5563;
    background: transparent;
}

.header-button .th-btn.th-border:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #ffffff;
}

.space, .space-top {
    padding-top: 60px;
}

/* ===== Product details — thumbnail strip under the main image ===== */
.product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 10px;
}

.product-thumb {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    transition: border-color .25s ease, opacity .25s ease;
    opacity: .8;
}

.product-thumb:hover {
    opacity: 1;
    border-color: #9CA3AF;
}

.product-thumb.active {
    border-color: var(--theme-color);
    opacity: 1;
}
