/*
Theme Name: Herrick Technology Labs
Version: 3.2
*/
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap');
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Archivo,sans-serif;color:#333;line-height:1.6}
a{color:#004db8;text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
.site-header{background:#fff;padding:15px 50px;box-shadow:0 2px 10px rgba(0,0,0,.1);position:fixed;width:100%;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between}
.site-logo img{max-height:60px;width:auto}
.site-logo a{text-decoration:none}
.main-nav ul{list-style:none;display:flex;gap:30px;margin:0;padding:0}
.main-nav li{padding:0;position:relative}
.main-nav a{text-decoration:none;color:#333;font-weight:500;font-size:15px;transition:color .3s;padding:10px 0;display:block}
.main-nav a:hover{color:#004db8;text-decoration:none}
.main-nav .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.15);min-width:220px;padding:10px 0;z-index:100}
.main-nav li:hover>.sub-menu{display:block}
.main-nav .sub-menu li{padding:0}
.main-nav .sub-menu a{display:block;padding:10px 20px;font-size:14px}
.main-nav .sub-menu a:hover{background:#f5f5f5}

/* Page Banner */
.page-banner{margin-top:90px;position:relative;height:250px;background-size:cover;background-position:center}
.banner-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(30,58,95,.7)}
.banner-content{position:absolute;bottom:40px;left:50px;color:#fff}
.banner-content h1{font-size:48px;font-weight:300;font-style:italic;margin:0}

/* Breadcrumb Bar */
.breadcrumb-bar{background:#fff;padding:15px 50px;border-bottom:1px solid #eee}
.breadcrumb-inner{font-size:14px;color:#666}
.breadcrumb-inner a{color:#004db8}
.breadcrumb-inner .sep{margin:0 8px;color:#999}
.breadcrumb-inner .current{color:#333}

/* Page Layout with Sidebar */
.page-wrapper{max-width:1400px;margin:0 auto;padding:40px 50px;display:flex;gap:50px}
.page-wrapper.with-sidebar{display:flex}
.page-wrapper.with-sidebar .page-sidebar{width:240px;flex-shrink:0}
.page-wrapper.with-sidebar .page-content{flex:1}

/* Sidebar Styles */
.page-sidebar{border-right:3px solid #004db8;padding-right:30px}
.sidebar-title{font-size:24px;color:#004db8;font-weight:500;margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid #ddd}
.sidebar-title a{color:#004db8;text-decoration:none}
.sidebar-title a:hover{text-decoration:underline}
.sidebar-menu{list-style:none;padding:0;margin:0}
.sidebar-menu li{margin:0;border-left:3px solid transparent}
.sidebar-menu li a{display:block;padding:12px 15px;color:#333;font-size:15px;text-decoration:none;transition:all .2s}
.sidebar-menu li a:hover{background:#f5f5f5;color:#004db8}
.sidebar-menu li.current{background:#004db8;border-left:3px solid #004db8}
.sidebar-menu li.current a{color:#fff;font-weight:500}

/* Page Content */
.page-content{line-height:1.8}
.page-content p{margin-bottom:20px;text-align:justify}
.page-content h2{color:#004db8;font-size:24px;margin:30px 0 15px;font-weight:500}
.page-content h3{color:#333;font-size:18px;margin:25px 0 10px}
.page-content blockquote{margin:15px 0 15px 30px;padding-left:15px;border-left:3px solid #ddd;color:#555;font-style:italic}
.page-content ul{margin:15px 0 15px 30px}
.page-content li{margin-bottom:8px}
.page-content strong{font-weight:600}
.entry-content{color:#444}

/* Hero Slider */
.hero-slider{margin-top:90px;position:relative;overflow:hidden;height:500px}
.slide{position:absolute;width:100%;height:100%;opacity:0;transition:opacity 1s;background-size:cover;background-position:center}
.slide.active{opacity:1}
.slide-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(to right,rgba(0,0,0,.5),transparent 70%)}
.slide-content{position:absolute;bottom:100px;left:60px;color:#fff;max-width:650px}
.slide-content h2{font-size:42px;font-weight:400;font-style:italic;text-shadow:2px 2px 4px rgba(0,0,0,.5);margin-bottom:15px;line-height:1.2}
.slide-content p{font-size:18px;text-shadow:1px 1px 3px rgba(0,0,0,.5)}
.slider-dots{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);display:flex;gap:12px}
.dot{width:14px;height:14px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;transition:background .3s}
.dot.active{background:#fff}

/* Card Links Section */
.card-links{display:grid;grid-template-columns:repeat(3,1fr);gap:0;max-width:100%}
.card-link{position:relative;height:280px;overflow:hidden;display:block}
.card-link img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.card-link:hover img{transform:scale(1.05)}
.card-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(0,0,0,.8));padding:30px;color:#fff}
.card-overlay h3{font-size:22px;font-weight:400;font-style:italic;margin-bottom:8px}
.card-overlay span{font-size:14px;opacity:.9}
.card-link:hover{text-decoration:none}

/* Content Sections */
.content-section{padding:60px 50px;max-width:1400px;margin:0 auto}
.two-column{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}
.column h2{font-size:32px;color:#004db8;margin-bottom:20px;font-weight:500}
.column p{color:#555;line-height:1.8;margin-bottom:20px}
.column img{width:100%;border-radius:5px}
.btn{display:inline-block;padding:12px 28px;background:#004db8;color:#fff;text-decoration:none;border-radius:4px;font-weight:600;transition:background .3s}
.btn:hover{background:#003a8c;text-decoration:none;color:#fff}
.btn-red{background:#c9302c}
.btn-red:hover{background:#a02622}

/* News Section */
.news-section{text-align:center}
.news-section h2{font-size:32px;color:#333;margin-bottom:15px}
.news-section h3{font-size:18px;color:#555;font-weight:400;margin-bottom:20px}

/* Join Section */
.join-section{text-align:center;background:#fff;border-top:1px solid #eee;border-bottom:1px solid #eee}
.join-section h2{font-size:32px;color:#004db8;margin-bottom:20px}
.join-section p{max-width:900px;margin:0 auto 25px;color:#555}

/* Events Section */
.events-section{text-align:center;padding:40px 50px}
.events-section h2{font-size:28px;color:#333;margin-bottom:15px}
.events-section p{color:#777;margin-bottom:20px}

/* Footer */
.site-footer{background:#1e3a5f;color:#fff;padding:50px}
.footer-content{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr);gap:30px}
.footer-col h4{font-size:14px;font-weight:600;margin-bottom:15px;color:#fff}
.footer-col p,.footer-col a{font-size:13px;color:#ccc;line-height:1.8}
.footer-col a{text-decoration:none}
.footer-col a:hover{color:#fff}
.footer-bottom{margin-top:40px;padding-top:20px;border-top:1px solid #345;display:flex;justify-content:space-between;align-items:center;max-width:1400px;margin-left:auto;margin-right:auto}
.footer-bottom p{font-size:13px;color:#999}
.footer-bottom a{color:#7af}
.social-icons{display:flex;align-items:center;gap:10px}
.social-icons span{color:#999;font-size:13px}
.social-icons a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:#6c6c6c;border-radius:50%;color:#fff;text-decoration:none;font-weight:bold}
.social-icons a:hover{background:#888}

/* Login Form */
.login-container{max-width:700px;margin:40px auto;padding:40px;border:1px solid #ddd;border-radius:5px;background:#fff}
.login-container p{margin-bottom:20px;color:#555}
#loginform label{display:block;margin-bottom:8px;font-weight:500;color:#333}
#loginform input[type=text],#loginform input[type=password]{width:100%;padding:12px;border:1px solid #ccc;border-radius:4px;margin-bottom:20px;font-size:16px}
#loginform .login-remember{margin:20px 0}
#loginform input[type=submit]{background:#004db8;color:#fff;padding:14px 40px;border:none;border-radius:4px;cursor:pointer;font-size:16px;font-weight:600}
#loginform input[type=submit]:hover{background:#003a8c}

/* Job Listings Table */
.job-listings{width:100%;border-collapse:collapse;margin:20px 0}
.job-listings th{background:#004db8;color:#fff;padding:12px;text-align:left}
.job-listings td{padding:12px;border:1px solid #ddd}
.job-listings tr:nth-child(even){background:#f9f9f9}
.job-listings a{color:#004db8;font-weight:500}

/* Responsive */
@media (max-width:1024px){
.footer-content{grid-template-columns:repeat(3,1fr)}
.two-column{grid-template-columns:1fr}
.card-links{grid-template-columns:1fr}
.page-wrapper.with-sidebar{flex-direction:column}
.page-wrapper.with-sidebar .page-sidebar{width:100%;border-right:none;border-bottom:3px solid #004db8;padding-right:0;padding-bottom:20px;margin-bottom:30px}
}
@media (max-width:768px){
.site-header{padding:15px 20px;flex-direction:column;gap:15px}
.main-nav ul{flex-wrap:wrap;justify-content:center;gap:15px}
.hero-slider{height:350px;margin-top:140px}
.slide-content{left:20px;right:20px;bottom:50px}
.slide-content h2{font-size:26px}
.content-section{padding:40px 20px}
.footer-content{grid-template-columns:1fr 1fr}
.page-banner{height:180px;margin-top:140px}
.banner-content h1{font-size:32px}
.breadcrumb-bar{padding:15px 20px}
.page-wrapper{padding:30px 20px}
.card-link{height:200px}
}

/* Product Grid */
.product-grid{display:flex;flex-direction:column;gap:30px}
.product-item{display:flex;gap:30px;border-bottom:1px solid #eee;padding-bottom:30px}
.product-item:last-child{border-bottom:none}
.product-item.wide{flex-direction:column}
.product-item.wide .product-image{max-width:600px}
.product-image{flex-shrink:0;width:300px}
.product-image img{width:100%;height:auto;border-radius:5px}
.product-info{flex:1}
.product-info h2{color:#004db8;font-size:22px;margin:0 0 10px;font-weight:600}
.product-info h3{color:#004db8;font-size:18px;margin:20px 0 10px;font-weight:600}
.product-info p{margin-bottom:10px;color:#555}
.product-info ul{margin:15px 0 15px 25px;color:#555}
.product-info li{margin-bottom:5px}
.product-info .btn{display:inline-block;padding:10px 20px;background:#004db8;color:#fff;text-decoration:none;border-radius:4px;font-size:14px;margin-top:10px}
.product-info .btn:hover{background:#003a8c;text-decoration:none}

/* Locations Table */
.locations-table td{vertical-align:top}
.locations-table h2{color:#004db8;font-size:22px;margin-bottom:15px}
.locations-table p{margin-bottom:10px;color:#555}
.locations-table a{color:#004db8}
.locations-table img{border-radius:5px}

@media (max-width:768px){
.product-item{flex-direction:column}
.product-image{width:100%;max-width:400px}
}
/* Navigation Dropdown Arrows */
.main-nav li.menu-item-has-children/* Navigation Dropdown Arrows */
.main-nav li.menu-item-has-children>a:after{content:" ▾";font-size:10px;margin-left:4px}
/* Section Box */
.section-box{border:1px solid #ddd;border-left:4px solid #004db8;padding:40px;background:#fff}
.products-section{background:#f9f9f9;padding:60px 50px}
.products-section h2{color:#004db8;font-size:28px;margin-bottom:20px}
.products-section p{text-align:justify;line-height:1.8}
.products-section .image-column img{max-width:100%;border-radius:5px;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.news-section .two-column.reverse{flex-direction:rrow-reverse}
.news-section .image-column img{width:100%;border-radius:5px}
.card-link{height:320px}
.card-overlay{padding:40px 25px}
.card-overlay h3{font-size:24px}
.hero-slider{height:550px}
.slide-overlay{background:linear-gradient(to bottom,rgba(0,0,0,.1),rgba(0,0,0,.5))}
.slide-content{bottom:120px;text-align:center}
.slide-content h2{font-size:48px}
.slide-content p{font-size:20px;max-width:800px;margin:0 auto}
.slider-dots{bottom:40px}
.dot{width:16px;height:16px;border:2px solid #fff;background:transparent}
.dot.active{background:#fff}
/* Dropdown arrows */
.main-nav .menu-item-has-children>a:after{content:" ▾";font-size:11px;margin-left:5px;vertical-align:middle}
/* News and Careers section */
.news-careers-section{padding:60px 50px;background:#fff}
.two-column-equal{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.news-box,.careers-box{padding:30px}
.news-box img{width:100%;border-radius:5px;margin-bottom:20px}
.news-box h2,.careers-box h2{color:#004db8;font-size:26px;margin-bottom:15px}
.careers-box{background:#f5f5f5;border-radius:5px}
.btn-red{background:#c41e3a}
.btn-red:hover{background:#a01830}

/* Jobs Table Styles */
.htl-jobs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.htl-jobs-table thead tr {
    background: #004db8;
    color: #fff;
}
.htl-jobs-table th,
.htl-jobs-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}
.htl-jobs-table tbody tr:nth-child(odd) {
    background: #f9f9f9;
}
.htl-jobs-table tbody tr:hover {
    background: #f0f0f0;
}
.htl-jobs-table a {
    color: #004db8;
    font-weight: 500;
}
.htl-jobs-table a:hover {
    text-decoration: underline;
}


/* Contact Page Styles */
.contact-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}
.location-box {
    flex: 1;
    min-width: 280px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}
.location-box h2 {
    color: #004db8;
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid #004db8;
    padding-bottom: 10px;
}
.location-box p {
    margin: 10px 0;
}
.location-box iframe {
    margin-top: 15px;
    border-radius: 5px;
}
.contact-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.contact-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}
.contact-table tr:hover {
    background: #f5f5f5;
}
.contact-table td:first-child {
    width: 200px;
}

/* News Page Styles */
.news-container {
    max-width: 800px;
}
.news-item {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 5px;
    border-left: 4px solid #004db8;
}
.news-item.featured {
    background: #e8f0fc;
    border-left-width: 6px;
}
.news-item h2 {
    color: #004db8;
    font-size: 1.4em;
    margin: 10px 0 15px 0;
}
.news-date {
    display: inline-block;
    background: #004db8;
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
}
.news-item p {
    margin: 12px 0;
    line-height: 1.6;
}
.news-item .btn {
    display: inline-block;
    background: #004db8;
    color: white;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}
.news-item .btn:hover {
    background: #003a8c;
}

/* === HEADER FIXES - Larger Logo & Menu === */
.site-header {
    padding: 10px 50px;
}
.site-logo img {
    max-height: 100px !important;
    width: auto;
}
.main-nav a {
    font-size: 17px !important;
    font-weight: 600;
}
.main-nav .sub-menu a {
    font-size: 15px !important;
}

/* === HERO SLIDER - Make Primary Focus === */
.hero-slider {
    height: 550px;
    margin-top: 120px;
}
.slide-content {
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
}
.slide-content h2 {
    font-size: 42px;
    font-style: italic;
    font-weight: 300;
}
.slide-content p {
    font-size: 18px;
}

/* === CARDS SECTION - Reduce Size/Prominence === */
.cards-section {
    padding: 20px 50px 30px;
}
.card-link {
    height: 180px;
}
.card-link h3 {
    font-size: 20px;
}
.card-link p {
    font-size: 13px;
}

/* === MOBILE RESPONSIVE FIXES === */
@media (max-width: 1024px) {
    .site-logo img {
        max-height: 80px !important;
    }
    .main-nav a {
        font-size: 15px !important;
    }
    .hero-slider {
        height: 400px;
    }
    .slide-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 20px;
    }
    .site-logo img {
        max-height: 70px !important;
    }
    .main-nav a {
        font-size: 14px !important;
    }
    .hero-slider {
        height: 350px;
        margin-top: 130px;
    }
    .slide-content {
        width: 90%;
    }
    .slide-content h2 {
        font-size: 24px;
    }
    .slide-content p {
        font-size: 14px;
    }
    .cards-section {
        padding: 15px 20px;
    }
    .card-link {
        height: 150px;
    }
}

/* === MOBILE HAMBURGER MENU === */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #004db8;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === MOBILE BREAKPOINT === */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .site-header {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .site-header.menu-open {
        background: #fff;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        background: #fff;
        padding: 15px 0;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }
    
    .main-nav.mobile-open {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav > ul > li {
        border-bottom: 1px solid #eee;
    }
    
    .main-nav a {
        padding: 15px 10px !important;
        font-size: 16px !important;
    }
    
    .main-nav .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f5f7fa;
        padding: 0;
        min-width: 100%;
    }
    
    .main-nav .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }
    
    .main-nav .sub-menu a {
        padding: 12px 25px !important;
        font-size: 14px !important;
        border-bottom: 1px solid #e0e4e8;
    }
    
    .main-nav .menu-item-has-children > a::after {
        content: " +";
        float: right;
    }
    
    .main-nav .menu-item-has-children.submenu-open > a::after {
        content: " -";
    }
    
    /* Hero adjustments for mobile */
    .hero-slider {
        height: 300px;
        margin-top: 70px;
    }
    
    .slide-content {
        width: 95%;
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 22px !important;
        line-height: 1.3;
    }
    
    .slide-content p {
        font-size: 13px !important;
        line-height: 1.4;
    }
    
    /* Cards section mobile */
    .cards-section {
        padding: 15px;
    }
    
    .cards-section .cards-grid {
        flex-direction: column;
    }
    
    .card-link {
        height: 140px;
    }
    
    .card-link h3 {
        font-size: 18px;
    }
    
    /* Page content mobile */
    .page-banner {
        height: 150px;
        margin-top: 70px;
    }
    
    .banner-content h1 {
        font-size: 26px;
    }
    
    .breadcrumb-bar {
        padding: 10px 15px;
    }
    
    .page-wrapper {
        padding: 20px 15px;
    }
    
    /* Contact page mobile */
    .contact-locations {
        flex-direction: column;
    }
    
    .location-box {
        min-width: 100%;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        max-height: 55px !important;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 18px !important;
    }
    
    .slide-content p {
        font-size: 12px !important;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .slider-dots span {
        width: 8px;
        height: 8px;
    }
}

/* ============================================
   MOBILE CSS REWRITE - Match Production
   ============================================ */

/* === MOBILE HEADER - Logo left, Hamburger right === */
@media (max-width: 900px) {
    .site-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        background: #fff;
    }
    
    .site-logo {
        order: 1;
        flex: 0 0 auto;
    }
    
    .site-logo img {
        max-height: 50px !important;
        width: auto;
    }
    
    .mobile-menu-toggle {
        order: 2;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: #004db8;
        margin: 4px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* === MOBILE MENU === */
    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 999;
        overflow-y: auto;
        padding: 0;
    }
    
    .main-nav.mobile-open {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    .main-nav > ul > li {
        border-bottom: 1px solid #eee;
    }
    
    .main-nav > ul > li > a {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px !important;
        font-size: 16px !important;
        font-weight: 500;
        color: #004db8 !important;
        text-decoration: none;
    }
    
    .main-nav .menu-item-has-children > a::after {
        content: "";
        width: 10px;
        height: 10px;
        border-right: 2px solid #004db8;
        border-bottom: 2px solid #004db8;
        transform: rotate(45deg);
        transition: transform 0.3s;
        margin-left: auto;
    }
    
    .main-nav .menu-item-has-children.submenu-open > a::after {
        transform: rotate(-135deg);
    }
    
    .main-nav .sub-menu {
        display: none;
        position: static !important;
        background: #f8f9fa;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    
    .main-nav .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }
    
    .main-nav .sub-menu li {
        border-bottom: 1px solid #e9ecef;
    }
    
    .main-nav .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .main-nav .sub-menu a {
        display: block;
        padding: 15px 20px 15px 35px !important;
        font-size: 15px !important;
        color: #333 !important;
    }
    
    .main-nav .sub-menu a:hover {
        background: #e9ecef;
    }
    
    /* === HERO SLIDER MOBILE === */
    .hero-slider {
        margin-top: 70px !important;
        height: 55vh !important;
        min-height: 350px;
    }
    
    .slide {
        height: 55vh !important;
        min-height: 350px;
    }
    
    .slide-content {
        position: absolute;
        bottom: 80px;
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
        transform: none;
    }
    
    .slide-content h2 {
        font-size: 24px !important;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 14px !important;
        line-height: 1.4;
    }
    
    .slider-dots {
        bottom: 30px;
    }
    
    /* === HIDE CARDS SECTION ON MOBILE === */
    .cards-section {
        display: none !important;
    }
    
    /* === CONTENT SECTIONS MOBILE === */
    .content-section {
        padding: 30px 15px;
    }
    
    .products-section,
    .news-section {
        padding: 30px 15px;
    }
    
    /* === PAGE BANNER MOBILE === */
    .page-banner {
        margin-top: 70px;
        height: 150px;
    }
    
    .banner-content {
        bottom: 20px;
        left: 15px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    /* === PAGE CONTENT MOBILE === */
    .page-wrapper {
        padding: 20px 15px;
    }
    
    .breadcrumb-bar {
        padding: 10px 15px;
    }
    
    /* === FOOTER MOBILE === */
    .site-footer {
        padding: 30px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .footer-section h4 {
        margin-bottom: 10px;
    }
    
    /* === CONTACT PAGE MOBILE === */
    .contact-locations {
        flex-direction: column;
    }
    
    .location-box {
        min-width: 100%;
    }
    
    .contact-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    /* === CAREERS PAGE MOBILE === */
    .jobs-table {
        font-size: 14px;
    }
    
    .jobs-table th,
    .jobs-table td {
        padding: 10px 8px;
    }
    
    /* === NEWS PAGE MOBILE === */
    .news-item {
        padding: 20px 15px;
    }
    
    .news-item h2 {
        font-size: 1.2em;
    }
}

/* === EXTRA SMALL SCREENS === */
@media (max-width: 480px) {
    .site-logo img {
        max-height: 40px !important;
    }
    
    .hero-slider {
        height: 45vh !important;
        min-height: 280px;
    }
    
    .slide-content h2 {
        font-size: 20px !important;
    }
    
    .slide-content p {
        font-size: 13px !important;
    }
    
    .page-banner {
        height: 120px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
}

/* ============================================
   MOBILE OVERRIDE - Force Correct Layout
   ============================================ */

@media screen and (max-width: 900px) {
    /* CRITICAL: Force header row layout */
    .site-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 15px !important;
        gap: 0 !important;
    }
    
    /* Logo on left */
    .site-logo {
        flex: 0 0 auto !important;
        order: 1 !important;
    }
    
    .site-logo img {
        max-height: 45px !important;
        height: 45px !important;
        width: auto !important;
    }
    
    /* Hamburger on right */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        order: 2 !important;
        background: transparent !important;
        border: none !important;
        padding: 10px !important;
        cursor: pointer !important;
        width: 44px !important;
        height: 44px !important;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        background-color: #004db8 !important;
        margin: 3px 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px) !important;
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px) !important;
    }
    
    /* Navigation hidden by default */
    .main-nav {
        display: none !important;
        position: fixed !important;
        top: 61px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #fff !important;
        z-index: 998 !important;
        overflow-y: auto !important;
        padding: 0 !important;
        order: 3 !important;
    }
    
    .main-nav.mobile-open {
        display: block !important;
    }
    
    /* Menu items styling */
    .main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-nav > ul > li {
        border-bottom: 1px solid #e5e5e5 !important;
    }
    
    .main-nav > ul > li > a {
        display: block !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        color: #004db8 !important;
        text-decoration: none !important;
    }
    
    .main-nav .sub-menu {
        display: none !important;
        position: static !important;
        background: #f8f9fa !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 100% !important;
    }
    
    .main-nav .menu-item-has-children.submenu-open > .sub-menu {
        display: block !important;
    }
    
    .main-nav .sub-menu li {
        border-bottom: 1px solid #eee !important;
    }
    
    .main-nav .sub-menu a {
        display: block !important;
        padding: 14px 20px 14px 40px !important;
        font-size: 15px !important;
        color: #333 !important;
    }
    
    /* Hero slider */
    .hero-slider {
        margin-top: 61px !important;
        height: 50vh !important;
        min-height: 300px !important;
    }
    
    .slide {
        height: 50vh !important;
        min-height: 300px !important;
    }
    
    .slide-content {
        bottom: 60px !important;
        left: 15px !important;
        right: 15px !important;
        width: auto !important;
        text-align: center !important;
        transform: none !important;
    }
    
    .slide-content h2 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    
    .slide-content p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-top: 8px !important;
    }
    
    .slider-dots {
        bottom: 20px !important;
    }
    
    /* HIDE cards section on mobile */
    .cards-section {
        display: none !important;
    }
    
    /* Content sections */
    .content-section,
    .products-section,
    .news-section {
        padding: 25px 15px !important;
    }
    
    /* Page styling */
    .page-banner {
        margin-top: 61px !important;
        height: 140px !important;
    }
    
    .banner-content h1 {
        font-size: 26px !important;
    }
    
    .breadcrumb-bar {
        padding: 10px 15px !important;
    }
    
    .page-wrapper {
        padding: 20px 15px !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .site-logo img {
        max-height: 38px !important;
        height: 38px !important;
    }
    
    .hero-slider {
        height: 45vh !important;
        min-height: 260px !important;
    }
    
    .slide-content h2 {
        font-size: 18px !important;
    }
    
    .slide-content p {
        font-size: 12px !important;
    }
}

/* ============================================
   MOBILE FIX - Prevent Horizontal Scroll
   Stack Content Vertically
   ============================================ */

/* CRITICAL: Prevent horizontal overflow */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

* {
    box-sizing: border-box !important;
}

@media screen and (max-width: 900px) {
    /* Prevent any element from causing horizontal scroll */
    body, .site-header, .hero-slider, .content-section, 
    .products-section, .news-section, .site-footer,
    .card-links, .two-column, .section-box {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Hero slider - enable touch swipe */
    .hero-slider {
        position: relative !important;
        touch-action: pan-x !important;
        -webkit-overflow-scrolling: touch !important;
        overflow: hidden !important;
    }
    
    .slide {
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .slide-content {
        max-width: 90% !important;
        padding: 0 15px !important;
    }
    
    /* CARD LINKS - Hide on mobile (already done but reinforcing) */
    .card-links {
        display: none !important;
    }
    
    /* TWO COLUMN LAYOUTS - Stack vertically */
    .two-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .two-column .column,
    .two-column .text-column,
    .two-column .image-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    /* Section boxes - full width */
    .section-box {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Products section */
    .products-section {
        padding: 30px 15px !important;
    }
    
    .products-section .two-column {
        flex-direction: column !important;
    }
    
    .products-section img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* News section - STACK VERTICALLY */
    .news-section {
        padding: 30px 15px !important;
    }
    
    .news-section .two-column,
    .news-grid,
    .news-boxes {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .news-box,
    .news-item,
    .team-box,
    .careers-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important;
    }
    
    /* Any grid layouts - convert to single column */
    .grid, .flex-row, .row, [class*="grid-"],
    [class*="col-"], [class*="column-"] {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* Footer - single column */
    .site-footer {
        padding: 30px 15px !important;
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .footer-section {
        width: 100% !important;
        text-align: left !important;
    }
    
    /* Images - constrain to viewport */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Tables - make scrollable or stack */
    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
    }
    
    /* Contact page locations - stack */
    .contact-locations,
    .locations-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .location-box {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Page content */
    .page-content,
    .entry-content,
    .post-content {
        padding: 15px !important;
        max-width: 100% !important;
    }
    
    /* Buttons - full width on mobile */
    .btn, .button, a.btn, a.button {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin: 10px 0 !important;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .section-box {
        padding: 15px 10px !important;
    }
    
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 18px !important; }
    
    p, li {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
}

/* ============================================
   NEWS BOXES & SLIDER TRANSITIONS
   ============================================ */

/* News boxes layout */
.news-boxes {
    display: flex;
    gap: 30px;
}

.news-box {
    flex: 1;
    background: #f8f9fa;
    padding: 25px;
    border-left: 4px solid #004db8;
}

.news-box h3 {
    margin-top: 0;
    color: #004db8;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.news-item-home {
    margin-bottom: 15px;
}

.news-item-home strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.news-item-home p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95em;
}

.team-box {
    background: linear-gradient(135deg, #004db8 0%, #003380 100%);
    color: #fff;
    border-left: none;
}

.team-box h3 {
    color: #fff;
}

.team-box p {
    color: rgba(255,255,255,0.9);
}

.team-box .btn {
    background: #fff;
    color: #004db8;
    margin-top: 15px;
}

.team-box .btn:hover {
    background: #f0f0f0;
}

/* Slider transitions */
.hero-slider {
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.hero-slider:active {
    cursor: grabbing;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Mobile: Stack news boxes */
@media screen and (max-width: 900px) {
    .news-boxes {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .news-box {
        width: 100% !important;
        flex: none !important;
    }
    
    .hero-slider {
        cursor: default;
        touch-action: pan-y pinch-zoom;
    }
}

/* ============================================
   ADMIN BAR OFFSET FIX
   Ensures site content displays below WP admin bar
   Added: 2026-01-14
   ============================================ */

/* Desktop admin bar offset (32px) */
html.admin-bar {
    margin-top: 0 !important;
}

html.admin-bar body {
    padding-top: 32px;
}

html.admin-bar .site-header,
html.admin-bar header {
    top: 32px;
}

/* Fixed header adjustment when admin bar present */
html.admin-bar .site-header.fixed,
html.admin-bar header.fixed {
    top: 32px;
}

/* Mobile admin bar offset (46px) */
@media screen and (max-width: 782px) {
    html.admin-bar body {
        padding-top: 46px;
    }
    
    html.admin-bar .site-header,
    html.admin-bar header {
        top: 46px;
    }
    
    html.admin-bar .site-header.fixed,
    html.admin-bar header.fixed {
        top: 46px;
    }
}

/* Ensure hero slider starts below header properly */
html.admin-bar .hero-slider {
    margin-top: 0;
}

/* ============================================
   ADMIN BAR FIX v2.0 - COMPREHENSIVE
   Ensures ALL content displays below WP admin bar
   Updated: 2026-01-14
   ============================================ */

/* Desktop: Push fixed header down when admin bar present */
body.admin-bar .site-header {
    top: 32px !important;
}

html.admin-bar .site-header {
    top: 32px !important;
}

/* Hero slider adjustment */
body.admin-bar .hero-slider {
    margin-top: 152px !important;
}

html.admin-bar .hero-slider {
    margin-top: 152px !important;
}

/* Page banner adjustment */
body.admin-bar .page-banner {
    margin-top: 122px !important;
}

html.admin-bar .page-banner {
    margin-top: 122px !important;
}

/* Mobile adjustments (46px admin bar) */
@media screen and (max-width: 782px) {
    body.admin-bar .site-header,
    html.admin-bar .site-header {
        top: 46px !important;
    }
    
    body.admin-bar .hero-slider,
    html.admin-bar .hero-slider {
        margin-top: 116px !important;
    }
    
    body.admin-bar .page-banner,
    html.admin-bar .page-banner {
        margin-top: 116px !important;
    }
    
    body.admin-bar .main-nav,
    html.admin-bar .main-nav {
        top: 117px !important;
    }
}

