
/* UNIVERSAL FIXES FOR THEME CONFLICTS */
.page-header, .entry-title { display: none !important; }
.site-main, .page-content, .entry-content { 
    padding: 0 !important; 
    margin: 0 !important; 
    max-width: 100% !important; 
    width: 100% !important; 
}
body { margin: 0 !important; padding: 0 !important; }
* { box-sizing: border-box; }
:root {
            --primary: #1B2B48;
            --accent: #E67E22;
            --text-main: #2D3436;
            --text-light: #636E72;
            --bg-gray: #F8F9FA;
            --white: #FFFFFF;
        }

        /* FORCE FULL WIDTH BY ACCIO */
        #page, #content, .site-main, .post-content, .entry-content { 
            max-width: 100% !important; 
            width: 100% !important; 
            margin: 0 !important; 
            padding: 0 !important; 
        }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        .hero .container, .stats .container, .section-padding .container { max-width: 1200px !important; }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Open Sans', sans-serif; color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
        h1, h2, h3, h4, .logo { font-family: 'Montserrat', sans-serif; }
        a { text-decoration: none; transition: 0.3s; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        .btn { display: inline-block; padding: 12px 30px; border-radius: 4px; font-weight: 700; cursor: pointer; border: none; text-align: center; }
        .btn-orange { background: var(--accent); color: var(--white); }
        .btn-orange:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(230,126,34,0.3); }

        /* --- Top Bar --- */
        .top-bar { background: var(--primary); color: var(--white); padding: 8px 0; font-size: 12px; }
        .top-bar-flex { display: flex; justify-content: space-between; align-items: center; }
        @media (max-width: 768px) { .top-bar-flex { flex-direction: column; text-align: center; gap: 5px; } }

        /* --- Nav --- */
        nav { background: var(--white); padding: 15px 0; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
        .nav-flex { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-size: 24px; font-weight: 900; color: var(--primary); }
        .nav-links { display: flex; align-items: center; }
        .nav-links a { margin-left: 22px; color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; }
        @media (max-width: 1100px) { .nav-links a { margin-left: 15px; font-size: 12px; } }
        @media (max-width: 992px) { .nav-links { display: none; } }

        /* --- Hero --- */
        .hero { 
            height: 85vh; 
            background: linear-gradient(rgba(27, 43, 72, 0.2), rgba(27,43,72,0.1)), url('https://sc02.alicdn.com/kf/A0ade1ea487f5438aa4400e3025d41396I.png') center/cover;
            display: flex; align-items: center; color: var(--white);
        }
        .hero h1 { font-size: 48px; margin-bottom: 20px; line-height: 1.1; max-width: 800px; }
        .hero p { font-size: 18px; max-width: 600px; margin-bottom: 30px; opacity: 0.9; }

        /* --- Stats --- */
        .stats { background: var(--primary); padding: 40px 0; color: var(--white); text-align: center; }
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
        .stat-item h3 { font-size: 32px; color: var(--accent); margin-bottom: 5px; }
        .stat-item p { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
        @media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }

        /* --- About Us --- */
        .section-padding { padding: 80px 0; }
        .about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
        .about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .img-large { grid-column: span 2; height: 300px; background-size: cover; background-position: center; border-radius: 4px; }
        .img-small { height: 160px; background-size: cover; background-position: center; border-radius: 4px; }
        .about-content h2 { font-size: 32px; color: var(--primary); margin-bottom: 25px; }
        @media (max-width: 992px) { .about-grid { grid-template-columns: 1fr; } }

        /* --- Why Choose Us --- */
        .bg-gray { background: var(--bg-gray); }
        .section-title { text-align: center; margin-bottom: 50px; }
        .section-title h2 { font-size: 32px; color: var(--primary); text-transform: uppercase; }
        .section-title .line { width: 50px; height: 4px; background: var(--accent); margin: 15px auto; }
        .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
        .why-card { padding: 40px 30px; background: var(--white); border: 1px solid #eee; transition: 0.3s; }
        .why-card:hover { transform: translateY(-10px); border-color: var(--accent); }
        .why-icon { font-size: 32px; color: var(--accent); margin-bottom: 20px; display: block; }
        .why-card h4 { margin-bottom: 12px; color: var(--primary); }
        .why-card p { font-size: 13px; color: var(--text-light); }

        /* --- Categories --- */
        .cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
        .cat-card { display: flex; background: var(--white); border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
        .cat-img { width: 220px; background-size: cover; background-position: center; flex-shrink: 0; }
        .cat-info { padding: 25px; }
        .cat-tags { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; font-size: 11px; font-weight: 700; color: var(--primary); }
        @media (max-width: 768px) { .cat-card { flex-direction: column; } .cat-img { width: 100%; height: 200px; } }

        /* --- Industry Applications --- */
        .app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
        .app-card { position: relative; height: 320px; border-radius: 4px; overflow: hidden; color: var(--white); cursor: pointer; }
        .app-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(27,43,72,0.95) 0%, rgba(27,43,72,0.2) 100%); z-index: 1; }
        .app-content { position: absolute; bottom: 25px; left: 20px; right: 20px; z-index: 2; }
        .app-content h4 { font-size: 20px; margin-bottom: 8px; color: var(--accent); }
        .app-hover-text { font-size: 12px; opacity: 0; transform: translateY(20px); transition: 0.3s; line-height: 1.4; }
        .app-card:hover .app-hover-text { opacity: 1; transform: translateY(0); }
        @media (max-width: 768px) { .app-grid { grid-template-columns: 1fr 1fr; } }

        /* --- Unified Certs --- */
        .certs-section { background: var(--primary); padding: 80px 0; text-align: center; color: var(--white); }
        .cert-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
        .cert-card-v3 { background: var(--white); padding: 25px; border-radius: 4px; }
        .cert-img-v3 { height: 300px; width: 100%; object-fit: contain; margin-bottom: 20px; background: #f9f9f9; padding: 10px; border: 1px solid #eee; }
        .cert-card-v3 h5 { color: var(--primary); font-size: 16px; margin-bottom: 10px; }
        .cert-card-v3 p { color: var(--text-light); font-size: 12px; }

        /* --- Products --- */
        .prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
        .prod-card { border: 1px solid #eee; padding: 20px; text-align: center; background: var(--white); position: relative; transition: 0.3s; }
        .prod-img { height: 160px; background-size: contain; background-repeat: no-repeat; background-position: center; margin-bottom: 20px; }
        .prod-badge { position: absolute; top: 10px; right: 10px; background: #FF4757; color: #fff; font-size: 9px; padding: 2px 6px; font-weight: 800; }
        .prod-card h4 { font-size: 13px; color: var(--primary); height: 45px; overflow: hidden; margin-bottom: 15px; }

        /* --- Footer --- */
        footer { background: #142136; color: rgba(255,255,255,0.7); padding: 80px 0 30px; border-top: 1px solid rgba(255,255,255,0.1); }
        .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 60px; }
        .footer-col h5 { color: #fff; font-size: 16px; margin-bottom: 25px; position: relative; }
        .footer-col h5::after { content: ''; display: block; width: 30px; height: 2px; background: var(--accent); margin-top: 10px; }
        .footer-links { list-style: none; }
        .footer-links li { margin-bottom: 12px; }
        .footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; }
        .contact-info p { margin-bottom: 15px; font-size: 14px; }
        .contact-info span { color: var(--accent); margin-right: 10px; }
        @media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr; } }

/* ====== 1. Hide WP default elements ====== */
.site-header, .page-header, .entry-title, .site-branding, 
.site-navigation, .hello-elementor-header {
    display: none !important;
}
body.page-id-484 {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
}
#page {
    padding: 0 !important;
}
.page-content {
    padding: 0 !important;
    margin: 0 !important;
}
.elementor-page .elementor {
    margin: 0 !important;
}


/* ====== Why Choose - Icon+Title Horizontal ====== */
.why-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; }
.why-icon { font-size: 36px !important; display: inline-flex !important; align-items: center; justify-content: center; width: 50px; height: 50px; margin: 0 15px 0 0 !important; flex-shrink: 0; }
.why-card h4 { flex: 1; min-width: 0; margin: 0 0 12px 0; padding-top: 12px; }
.why-card p { width: 100%; flex-basis: 100%; margin-top: 0; }
@media (max-width: 992px) { .why-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr !important; gap: 15px; } .why-card { padding: 25px 20px !important; } .why-icon { font-size: 28px !important; width: 40px; height: 40px; } .section-padding { padding: 50px 0 !important; } .section-title h2 { font-size: 24px !important; } }


/* ====== Engineering Solutions - Width & Sizing Fix ====== */
.cat-grid { max-width: 100%; }
.cat-img { width: 280px !important; min-height: 260px; }
.cat-info h4 { font-size: 18px !important; color: var(--primary); margin-bottom: 15px; }
.cat-tags span { font-size: 13px !important; padding: 4px 0; color: var(--text-light); }
@media (max-width: 992px) { .cat-img { width: 220px !important; min-height: 220px; } }
@media (max-width: 768px) { .cat-card { flex-direction: column !important; } .cat-img { width: 100% !important; height: 220px; min-height: auto; } .cat-info { padding: 20px !important; } }


/* ====== Engineering Solutions - Full Width & Size Fix ====== */
.cat-grid {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px;
}
.cat-img {
    width: 220px !important;
    min-height: 220px;
}
.cat-info {
    padding: 25px !important;
}
.cat-info h4 {
    font-size: 18px !important;
    color: var(--primary);
    margin-bottom: 18px;
}
.cat-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
}
.cat-tags span {
    font-size: 14px !important;
    padding: 4px 0;
    color: var(--text-light);
    font-weight: 700;
}
@media (max-width: 992px) {
    .cat-img {
        width: 260px !important;
        min-height: 240px;
    }
    .cat-info h4 {
        font-size: 18px !important;
    }
}
@media (max-width: 768px) {
    .cat-card {
        flex-direction: column !important;
    }
    .cat-img {
        width: 100% !important;
        height: 220px;
        min-height: auto;
    }
    .cat-info {
        padding: 20px !important;
    }
    .cat-info h4 {
        font-size: 16px !important;
    }
    .cat-tags span {
        font-size: 13px !important;
    }
}


/* ====== Footer - Full Width Fix ====== */
footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: calc(50% - 50vw) !important;
    padding-left: calc(50vw - 50% + 0px) !important;
    padding-right: calc(50vw - 50% + 0px) !important;
    background: #142136 !important;
    box-sizing: border-box;
}
#colophon, .site-footer, footer.site-footer {
    display: none !important;
}
.footer-grid {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}


/* ====== Hero - Dark Overlay for Text Readability ====== */
.hero {
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(27, 43, 72, 0.4) 0%,
        rgba(27, 43, 72, 0.2) 60%,
        rgba(27, 43, 72, 0.05) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.hero .container {
    position: relative;
    z-index: 2;
}


/* ====== Hero Responsive ====== */
@media (max-width: 768px) {
    .hero {
        height: 70vh !important;
        min-height: 400px;
    }
    .hero h1 {
        font-size: 28px !important;
    }
    .hero p {
        font-size: 15px !important;
    }
}
@media (max-width: 480px) {
    .hero {
        height: 65vh !important;
        min-height: 350px;
    }
    .hero h1 {
        font-size: 22px !important;
    }
    .hero p {
        font-size: 13px !important;
    }
}


/* === Nav Menu from WP === */
.nav-links ul.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links ul.nav-menu li { margin: 0; padding: 0; }
.nav-links ul.nav-menu li a {
    margin-left: 22px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
}
.nav-links ul.nav-menu li a:hover { color: var(--accent, #E67E22); }
@media (max-width: 1100px) { .nav-links ul.nav-menu li a { margin-left: 15px; font-size: 12px; } }
a.cta-nav-btn {
    display: inline-block;
    padding: 8px 18px;
    margin-left: 15px;
    font-size: 12px;
}

/* === Nav Dropdown === */
.nav-menu li { position: relative; }
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 10px 0;
    border-radius: 4px;
}
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li { display: block; padding: 0; }
.nav-menu .sub-menu li a {
    display: block;
    padding: 8px 20px;
    margin: 0;
    white-space: nowrap;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}
.nav-menu .sub-menu li a:hover { background: #f5f5f5; color: var(--accent,#E67E22); }
