﻿/* ========================================
   MAGNUM STAFFING HERO - COMPLETE STYLES
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

#back-to-top {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: maroon;
    color: white;
    border: none;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220,38,38,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

    #back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    #back-to-top:hover {
        background: #b91c1c;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220,38,38,0.6);
    }

/* ============================
   ROOT VARIABLES & BASE TYPO
   (Magnum-red-white)
   ============================ */

:root {
    --maroon: #800000;
    --maroon-dark: #600000;
    --light-gray: #f6f6f6;
    --white: #fff;
    --text: #222;
    --accent: #B22222;
}

/* Templatemo base reset merged in */
*,
*::before,
*::after {
    box-sizing: border-box;
    outline: none;
}

ul, h1, h2, h3, h4, p, figure {
    padding: 0;
    margin: 0;
}

/* Prefer Magnum body but keep compat with templatemo */
body {
    margin: 0;
    font-family: 'Segoe UI', 'Open Sans', Arial, sans-serif;
    font-size: 18px;
    background: var(--light-gray);
    color: var(--text);
    overflow-x: hidden;
    width: 100%;
}

/* Common text defaults (from templatemo) */
h2 {
    font-size: 1.5rem;
}

p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

/*h1, h2, h3, h4, h5, h6 {
    color: var(--maroon);
}*/

/* FIXED: Default black text for headings */
h1, h2, h3, h4, h5, h6 {
    color: #222222; /* Dark gray/black */
    font-weight: 700; /* Bold headings */
}


/* Paragraphs stay gray */
p {
    color: #555555; /* Medium gray */
    line-height: 1.7;
    margin-bottom: 15px;
}


.intro-video video {
    border-radius: 8px; /* adjust to taste (4–12px) */
    overflow: hidden;
}


a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: #666;
}

    a:hover {
        text-decoration: none;
        color: #CC9999;
    }

button:focus {
    outline: none;
}

button:hover {
    cursor: pointer;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}


/* ========================================
   NAVBAR STYLES
   ======================================== */

/* Main navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(128, 0, 0, 0.95); /* maroon with slight transparency */
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.8rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    background: var(--maroon-dark);
    display: flex;
    justify-content: center;
    padding: 0.1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

    nav a {
        color: var(--white);
        text-decoration: none;
        margin: 0 1.1rem;
        font-weight: 500;
        transition: color 0.2s;
    }

        nav a:hover {
            color: var(--accent);
        }

.main-nav {
    background: #600000; /* var(--maroon-dark) if using vars */
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

    /* Top row: brand + burger */
    .main-nav .nav-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.6rem 1rem;
    }

        .main-nav .nav-brand span {
            font-weight: 600;
        }

/* Burger button */
.nav-toggle {
    background: none;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    display: none; /* hidden on desktop */
}

/* Links row (desktop) */
.nav-links {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

/* wrapper for dropdown */
.nav-dropdown {
    position: relative;
}


/* top-level Locations button */
.nav-dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #fff; /* Fixed: white like other nav links */
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.1rem;
}

/* dropdown menu - HIDDEN BY DEFAULT */
.nav-dropdown-content {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #990000;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
}

    /* links inside dropdown - BLACK TEXT */
    .nav-dropdown-content a {
        display: block;
        padding: 8px 14px;
        font-size: 0.95rem;
        color: #fff !important; /* BLACK when dropdown visible */
        white-space: nowrap;
    }

        .nav-dropdown-content a:hover {
            background: #f4f4f4;
            color: #000000 !important; /* BLACK on hover too */
        }

/* SHOW on hover - Houston & DFW appear with BLACK TEXT */
.nav-dropdown:hover .nav-dropdown-content {
    display: block !important;
}

/* Smooth fade-in animation */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block !important;
    animation: fadeInDropdown 0.2s ease-out;
}


.main-nav .nav-links {
    display: flex;
    justify-content: center;
    gap: 1.1rem;
    padding: 0.4rem 1rem 0.7rem;
}

    .main-nav .nav-links a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
    }

        .main-nav .nav-links a:hover {
            color: #B22222; /* accent */
        }

/* --- Mobile styles --- */
.main-nav {
    background: #600000; /* or var(--maroon-dark) */
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

    /* Brand row with toggle on the LEFT */
    .main-nav .nav-brand {
        display: flex;
        align-items: center;
        justify-content: left; /* was space-between */
        padding: 0.6rem 1rem;
    }

        /* Optional: if you add text later, push it right of the icon */
        .main-nav .nav-brand span {
            margin-left: 0.5rem;
        }

/* Burger button */
.nav-toggle {
    background: none;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    display: none; /* shown on mobile via media query */
}

/* Links row (desktop) centered */
.main-nav .nav-links {
    display: flex;
    justify-content: center;
    gap: 1.1rem;
    padding: 0.4rem 1rem 0.7rem;
}

    .main-nav .nav-links a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        white-space: nowrap;
    }

        .main-nav .nav-links a:hover {
            color: #B22222; /* accent */
        }

/* Mobile behavior */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-block;
    }

    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem 0.6rem;
        gap: 0.4rem;
    }

        .main-nav .nav-links a {
            display: block;
            width: 100%;
            padding: 0.3rem 0;
        }

    .main-nav.nav-open .nav-links {
        display: flex;
    }
}


/* Small popup in upper-right */
.popup-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 370px;
    height: 420px; /* 350px iframe + header */
    background: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none; /* hidden by default */
    border-radius: 4px;
    overflow: hidden;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #003366; /* adjust to your brand color */
    color: #fff;
    font-size: 14px;
}

.popup-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.popup-body {
    padding: 0;
}



/* ============================
   MAGNUM HEADER & LAYOUT
   ============================ */

.site-header {
    background: var(--maroon);
    color: var(--white);
    padding: 0.1rem 0 .4rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

    .site-header .logo-area {
        margin-left: 2.7rem;
    }

    .site-header img {
        height: 54px;
        width: auto;
        display: block;
    }

.site-title-group {
    margin-left: 1.2rem;
}

    .site-title-group h1 {
        margin: 0 0 0.2em 0;
        color: var(--white);
    }

    .site-title-group p {
        color: var(--white);
        margin: 0;
        font-size: 1rem;
    }



/* Ultra small screens */
@media (max-width: 500px) {
    .navbar {
        padding: 0.7rem 1rem;
    }

    .nav-logo {
        height: 36px;
    }

    .nav-company div:first-child {
        font-size: 1rem;
    }
}


/* Hero Section - Full Screen */
.hero {
    min-height: 100vh;
    /*max-height: 100vh;*/
    position: relative;
    display: flex;
    align-items: flex-start; /* CHANGED: flex-start (was center) */
    padding-top: 8vh; /* NEW: 8% top padding */
    background: #fff;
    overflow: hidden;
}
    /* Subtle grid overlay */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
        background-size: 50px 50px;
        pointer-events: none;
        z-index: 1;
    }

/* Main content container - LEFT ALIGNED */
.hero-content {
    max-width: 1600px;
    margin-left: 5rem;
    margin-right: auto;
    margin-top: 2rem; /* Pushes video down 4rem */
    align-self: flex-start; /* Keeps text aligned top */
    padding: 0 2rem;
    display: flex;
    align-items: flex-start; /* CHANGED: flex-start (was center) */
    position: relative;
    z-index: 2;
    gap: 8rem;
    width: fit-content;
    transform: translateY(-8vh); /* NEW: Pull content UP 8vh */
}

/* Left content column - SHIFTED LEFT */
.hero-text {
    flex: 0 0 42%;
    max-width: 42%;
}

/* Eyebrow - EST. HOUSTON, TX */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    color: #b22222;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

    .hero-eyebrow::before {
        content: '';
        width: 30px;
        height: 1.5px;
        background: linear-gradient(90deg, transparent, #b22222);
        border-radius: 1px;
    }

/* Massive Headline */
.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.88;
    color: #1a1a1a;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

/* Subtitle paragraph */
.hero p {
    font-size: 1.35rem;
    color: #555;
    margin-bottom: 3rem;
    max-width: 32rem;
    line-height: 1.65;
    font-weight: 300;
}

/* Button container */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Primary button - Browse Jobs */
.btn-primary {
    background: linear-gradient(135deg, #b22222 0%, #a11a1a 100%);
    color: white;
    padding: 1.1rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.25);
    position: relative;
    overflow: hidden;
}

    .btn-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.6s;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #a11a1a 0%, #900000 100%);
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(178, 34, 34, 0.4);
    }

/* Secondary button - We're Hiring */
.btn-secondary {
    background: transparent;
    /*color: #b22222;*/
    color: black;
    padding: 1.1rem 3rem;
    /*border: 2.5px solid #b22222;*/
    border: 2.5px solid black;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

    .btn-secondary:hover {
        background: #b22222;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(178, 34, 34, 0.3);
    }

/* Right decorative area */
.hero-decor {
    flex: 1;
    position: relative;
    min-height: 1000px;
    margin-left: -30rem;
}

/* 3D Logo - Smooth edges + 15% opacity */
.hero-m {
    position: absolute;
    top: 0%;
    right: 5%;
    width: 420px;
    height: auto;
    opacity: 0.075;
    z-index: 1;
    /* Anti-aliasing for smooth edges */
    image-rendering: optimizeQuality;
    image-rendering: -moz-crisp-edges;
    /* GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Edge softening */
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.9)) contrast(1.08) saturate(1.15);
    border-radius: 6px;
}

/* Scroll indicator positioned higher */
.scroll-indicator {
    position: absolute;
    bottom: 18vh; /* CHANGED: higher up */
    left: 5rem;
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    animation: bounce 2s infinite ease-in-out;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* ========================================
   CHECKLIST FORMAT
   ======================================== */

/* Container width adjustment */
.checklist-container {
    max-width: 1200px; /* Increased from standard 800px/900px */
    margin: 0 auto;
    padding: 20px;
}

.checklist-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: sans-serif;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .checklist-table thead th {
        background-color: #f8f9fa;
        padding: 15px;
        border-bottom: 3px solid #003366; /* Match your brand blue */
        text-align: center;
    }

    .checklist-table th.feature-col {
        text-align: left;
    }

    .checklist-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

    .checklist-table tbody tr:hover {
        background-color: #f1f5f9;
    }

    /* Highlight the Magnum Column */
    .checklist-table td:nth-child(2),
    .checklist-table th:nth-child(2) {
        background-color: rgba(0, 51, 102, 0.03);
        text-align: center;
        width: 120px;
    }

    .checklist-table td:nth-child(3),
    .checklist-table td:nth-child(4) {
        text-align: center;
        width: 100px;
    }

.table-logo {
    max-height: 40px;
}

.inline-icon {
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

input[type="checkbox"] {
    transform: scale(1.3);
    cursor: pointer;
}

/* Responsive fix for small screens */
@media (max-width: 600px) {
    .table-responsive {
        overflow-x: auto;
    }
}

.table-logo {
    max-height: 35px;
    width: auto;
}

.logo-col {
    width: 20%;
    text-align: center;
    background-color: #f9f9f9;
}


/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet */
@media (max-width: 1100px) {
    .hero-content {
        margin-left: 3rem;
        gap: 6rem;
    }

    .hero-text {
        max-width: 45%;
    }
}

/* Mobile Large */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        margin-left: 2rem;
        gap: 3rem;
        padding: 2rem 1.5rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-decor {
        display: none;
    }

    .scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
        bottom: 3rem;
    }
}

/* Mobile Small */
@media (max-width: 500px) {
    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Ultra small screens */
@media (max-width: 380px) {
    .hero-content {
        margin-left: 1rem;
        padding: 1rem;
    }
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
    padding: 8rem 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.services-left {
    flex: 1;
    max-width: 55%;
}

    .services-left h2 {
        font-size: clamp(2.5rem, 5vw, 3rem);
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    .services-left p {
        font-size: 1.2rem;
        color: #555;
        margin-bottom: 1.8rem;
        line-height: 1.7;
    }

.certifications {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cert-badge {
    height: 50px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

    .cert-badge:hover {
        opacity: 1;
        transform: scale(1.05);
    }

.services-right {
    flex: 1;
    max-width: 70%;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    min-height: 300px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 140px;
}

    .stat-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    }

.stat-number {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #b22222;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cert-card {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.35s ease;
    height: auto; /* let it grow */
    max-height: 500px;
    max-width: 540px;
}

.certs-stacked {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space between the two cert items */
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-logo {
    width: 40px;
    height: auto;
    flex-shrink: 0;
}

.cert-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

    .cert-text h4 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
    }

    .cert-text p {
        font-size: 0.95rem;
        color: #666;
        line-height: 1;
        margin: 0;
    }


/* Make 3PL card span full width */
.threepl-wide {
    grid-column: 1 / -1 !important; /* Force full width */
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* Your existing .service-row stays the same for 4 cards */
.service-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}





/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
    .container {
        flex-direction: column;
        gap: 4rem;
        padding: 0 2rem;
    }

    .services-right {
        max-width: 100%;
    }



    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 5rem 0;
    }

    .services-left h2 {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .services-left p {
        text-align: center;
    }

    .certifications {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        height: 120px;
        padding: 1.5rem;
    }
}

@media (max-width: 500px) {
    .container {
        padding: 0 1rem;
    }
}
/* ========================================
   WHY CHOOSE MAGNUM SECTION - COMPLETE REWRITE
   Mobile-First, No Overlap, Perfect Scaling
   ======================================== */

/* Desktop & Tablet */
.why-section {
    padding: 8rem 0;
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.why-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5rem;
}

.why-heading {
    text-align: center;
    margin-bottom: 5rem;
}

    .why-heading h2 {
        font-size: clamp(2.5rem, 5vw, 3.8rem);
        font-weight: 700;
        color: #222;
        margin-bottom: 1.2rem;
        line-height: 1.1;
    }

    .why-heading p {
        font-size: 1.25rem;
        color: #666;
        max-width: 50rem;
        margin: 0 auto;
        line-height: 1.65;
    }

/* Stats Grid - Desktop */
.why-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid #eee;
}

.why-stat {
    position: relative;
    padding: 6rem 3rem 3rem;
    border-right: 1px solid #eee;
    min-height: 420px;
    transition: all 0.3s ease;
}

    .why-stat:last-child {
        border-right: none;
    }

/* Number & Label - Upper Right */
.why-stat-number {
    position: absolute;
    top: 2.0rem;
    right: 3rem;
    font-size: 2.8rem;
    font-weight: 600;
    color: black;
    line-height: 1;
    z-index: 2;
}

.why-stat-label {
    position: absolute;
    top: 5.2rem;
    right: 3rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: #667;
    text-transform: uppercase;
    line-height: 1.1;
    z-index: 2;
}

/* Icon */
.why-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    background: #fde9ec;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6.5rem 0 2rem 1.5rem;
    flex-shrink: 0;
}

    .why-icon-box img {
        width: 34px;
        height: 34px;
    }

/* Content */
.why-stat h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.why-stat p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin-left: 1.5rem;
}

/* ========================================
   MOBILE RESPONSIVE - NO OVERLAP
   ======================================== */

@media (max-width: 1100px) {
    .why-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .why-stat:nth-child(3) {
        border-top: 1px solid #eee;
        border-right: none;
    }

    .why-stat {
        padding: 6.5rem 2.5rem 3rem !important;
        min-height: 440px;
    }

    .why-stat-number {
        top: 3.8rem !important;
        right: 2.5rem !important;
        font-size: 2.4rem !important;
    }

    .why-stat-label {
        top: 5.5rem !important;
        right: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .why-section {
        padding: 6rem 0;
    }

    .why-container {
        padding: 0 2.5rem;
    }

    .why-stats-row {
        grid-template-columns: 1fr;
        gap: 2.8rem;
    }

    .why-stat {
        padding: 7.5rem 2.5rem 3.5rem !important;
        min-height: 460px;
        border-right: none !important;
        border-top: 1px solid #eee;
    }

        .why-stat:first-child {
            border-top: none !important;
        }

    .why-stat-number {
        top: 4.2rem !important;
        right: 2.2rem !important;
        font-size: 2.2rem !important;
    }

    .why-stat-label {
        top: 6rem !important;
        right: 2.2rem !important;
        font-size: 0.8rem !important;
    }

    .why-icon-box {
        margin: 8rem 0 2rem 1.2rem !important;
        width: 64px;
        height: 64px;
    }

        .why-icon-box img {
            width: 30px;
            height: 30px;
        }

    .why-stat h3 {
        margin-left: 1.2rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .why-container {
        padding: 0 1.8rem;
    }

    .why-stat {
        padding: 8rem 2rem 3rem !important;
        min-height: 440px;
    }

    .why-stat-number {
        font-size: 2rem !important;
        top: 4rem !important;
    }

    .why-stat-label {
        font-size: 0.75rem !important;
        top: 5.8rem !important;
    }

    .why-icon-box {
        margin: 7.8rem 0 1.8rem 1rem !important;
        width: 58px;
        height: 58px;
    }
}

/* ===========================
   GREATER HOUSTON AREA SECTION
   =========================== */

.houston-section {
    padding: 7rem 0;
    background: #1a1a1a; /* Dark background */
}

.houston-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5rem;
    display: flex;
    align-items: center;
    gap: 6rem;
    height: 600px;
}

.houston-left {
    flex: 1;
    max-width: 45%;
}

    .houston-left h2 {
        font-size: clamp(2.5rem, 4.5vw, 3.5rem);
        font-weight: 700;
        color: white;
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    .houston-left p {
        font-size: 1.25rem;
        color: rgba(255,255,255,0.85);
        margin-bottom: 2.5rem;
        line-height: 1.65;
    }

.houston-buttons {
    display: flex;
    gap: 1rem;
}

.houston-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    max-width: 650px;
}

.county-item {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .county-item:hover {
        background: rgba(255,255,255,0.15);
        border-color: rgba(255,255,255,0.3);
        transform: scale(1.02);
    }

    .county-item.active {
        background: #b22222;
        border-color: #b22222;
        box-shadow: 0 0 30px rgba(178, 34, 34, 0.5);
    }

.county-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1100px) {
    .houston-container {
        flex-direction: column;
        gap: 4rem;
        height: auto;
        padding: 0 3rem;
    }

    .houston-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: none;
    }
}

@media (max-width: 768px) {
    .houston-section {
        padding: 5rem 0;
    }

    .houston-container {
        padding: 0 2rem;
        gap: 3rem;
    }

    .houston-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .county-name {
        font-size: 1rem;
    }
}

.county-item {
    aspect-ratio: 1;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* smooth transition */
    position: relative;
    overflow: hidden;
}

    .county-item:hover,
    .county-item.active {
        background: #b22222 !important;
        border-color: #ffffff !important;
        box-shadow: 0 0 25px rgba(178, 34, 34, 0.6) !important;
        transform: scale(1.05) !important;
    }

    .county-item .county-name {
        font-size: 1.1rem;
        font-weight: 600;
        color: white;
        letter-spacing: 0.5px;
        transition: color 0.2s ease;
    }

/* ===========================
   INDUSTRY NEWS SECTION
   =========================== */

.news-section {
    padding: 8rem 0;
    background: white;
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5rem;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.news-header {
    flex: 1;
    max-width: 30%;
}

.news-eyebrow {
    color: #b22222;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.news-header h2 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #222;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.news-view-all {
    margin-top: 2rem;
}

.news-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

    .news-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }

.news-image {
    height: 200px;
    overflow: hidden;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.8rem;
}

    .news-content h3 {
        font-size: 1.15rem;
        font-weight: 600;
        color: #222;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .news-content p {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.6;
    }

/* Responsive */
@media (max-width: 1100px) {
    .news-container {
        flex-direction: column;
        gap: 3rem;
        padding: 0 3rem;
    }

    .news-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 6rem 0;
    }

    .news-container {
        padding: 0 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* ===========================
   READY TO SCALE CTA SECTION
   =========================== */

.cta-section {
    padding: 6rem 0;
    background: rgba(128, 0, 0, 0.95);
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.05);
        z-index: 1;
    }

.cta-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

    .cta-container h2 {
        font-size: clamp(3rem, 7vw, 4.5rem);
        font-weight: 800;
        color: white;
        margin-bottom: 1.5rem;
        line-height: 1;
        letter-spacing: -0.03em;
    }

    .cta-container p {
        font-size: 1.4rem;
        color: rgba(255,255,255,0.9);
        margin-bottom: 3rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
    }

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-cta-primary {
    background: white;
    color: #b22222;
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

    .btn-cta-primary:hover {
        background: #f8f8f8;
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(255,255,255,0.4);
    }

.btn-cta-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

    .btn-cta-secondary:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-3px);
        border-color: rgba(255,255,255,0.5);
    }

/* Responsive */
@media (max-width: 768px) {
    .cta-container {
        padding: 0 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 500px) {
    .cta-section {
        padding: 4rem 0;
    }

    .cta-container h2 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}

/* ===========================
   SOLUTIONS SECTION
   =========================== */

.services-grid-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit; /* Keeps your text colors intact */
}

.services-grid-4x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card.tall-skinny {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 480px; /* Tall skinny proportion */
    max-width: 320px; /* Skinny width */
}

    .service-card.tall-skinny:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }


.service-image {
    width: 100%;
    height: 220px; /* Taller image area */
    object-fit: cover;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .service-content h3 {
        color: #1a365d;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .service-content p {
        color: #666;
        font-size: 13px;
        line-height: 1.5;
        flex-grow: 1;
    }

.service-content-md p {
    color: #666;
    font-size: 18px;
    line-height: 1.5;
    flex-grow: 1;
}

.service-cta {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    font-size: 12px;
    align-self: flex-start;
    margin-top: auto;
}

    .service-cta:hover {
        background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
        color: white;
    }

/* Mobile - Stack 2 columns */
@media (max-width: 1024px) {
    .services-grid-4x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card.tall-skinny {
        height: 420px;
        max-width: none;
    }
}

/* Mobile single column */
@media (max-width: 768px) {
    .services-grid-4x2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===========================
   LOCATIONS SECTION
   =========================== */

.locations-grid-section {
    padding: 60px 0 80px;
    background: #f8f9fb;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.location-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.location-content {
    /*padding: 24px 26px 22px;*/
    padding: 10px 26px 10px;
}

    .location-content h3 {
        font-size: 22px;
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
    }

    .location-content > p:first-of-type {
        font-size: 14px;
        color: #555;
        /*line-height: 1.0;*/
        margin-bottom: 10px;
    }

.location-meta {
    font-size: 13px;
    color: #666;
    margin: 4px 0 10px;
}

.location-icon {
    margin-right: 6px;
    color: #b91c1c;
}

.location-key-title {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 3px;
}

.location-key {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.location-footer a {
    font-size: 13px;
    color: #b91c1c;
    text-decoration: none;
    font-weight: 600;
}

    .location-footer a:hover {
        text-decoration: underline;
    }

/* Contact card spanning 2 columns */


.location-card.contact-card {
    grid-column: span 2; /* makes last card 2-wide in 3-column grid */
}


    /* Layout inside the contact card */
    .location-card.contact-card .tm-contact-main {
        display: grid;
        grid-template-columns: 1.2fr 1.8fr; /* map + info */
        gap: 20px;
        align-items: flex-start;
    }

    .location-card.contact-card iframe {
        width: 100%;
        max-width: 100%;
    }

    /* Optional: office list styling inside contact card */
    .location-card.contact-card .office-list {
        margin-top: 12px;
        padding-left: 18px;
        font-size: 13px;
        text-align: left;
    }

/* Responsive */
@media (max-width: 1024px) {
    .locations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-card.contact-card {
        grid-column: 1 / -1; /* full width on medium screens */
    }

        .location-card.contact-card .tm-contact-main {
            grid-template-columns: 1fr;
        }
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .location-card.contact-card {
        grid-column: 1 / -1;
    }
}

/* Global button style for Request Talent / Apply Now */
.button {
    display: inline-block;
    background-color: #800000; /* maroon */
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

    .button:hover,
    .button:focus {
        background-color: #5e0000; /* darker maroon on hover */
        color: #ffffff;
        transform: translateY(-1px);
    }


/* ===========================
   PORTALS SECTION
   =========================== */

.portal-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.portal-image {
    width: 100%;
    height: 100px;
    object-fit: scale-down;
    padding: 5px 2px 2px;
}

.portal-content {
    padding: 24px 26px 22px;
}

    .portal-content h3 {
        font-size: 22px;
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
    }

    .portal-content > p:first-of-type {
        font-size: 14px;
        color: #555;
        line-height: 1.6;
        margin-bottom: 14px;
    }

/* ===========================
   COMPLIANCE SECTION - FINAL LAYOUT
   =========================== */

/* Hero Section */
.compliance-hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
}

.compliance-hero-red {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #600000 0%, #3b0303 100%);
    color: white;
    text-align: center;
}

.compliance-hero h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.compliance-hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Main Content */
.compliance-main {
    padding: 6rem 0;
    background: white;
}

.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* LEFT COLUMN - IMAGE LEFT, TEXT RIGHT */
.compliance-left {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.compliance-image {
    flex: 0 0 320px;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
}

.hiring-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* RIGHT COLUMN */
.compliance-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* NEW Form I-9 Section */
.form-i9-section {
    flex: 1;
}

.logo-group {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

/*.cert-logo {
    height: 100px;
    width: auto;
    max-width: 100%;
}*/

/* Typography */
.compliance-left h2,
.compliance-right h3,
.certifications-section h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hiring-content h2 {
    font-size: 2.2rem;
}

.compliance-left p,
.compliance-right p {
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Bullet List */
.compliance-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

    .compliance-list li {
        padding: 0.8rem 0 0.8rem 2rem;
        color: #666;
        font-size: 1rem;
        position: relative;
    }

        .compliance-list li::before {
            content: "✓";
            color: #b22222;
            font-weight: bold;
            font-size: 1.2rem;
            position: absolute;
            left: 0;
            top: 0.8rem;
        }

/* Certifications */
.cert-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.small-logo {
    height: 60px;
    width: auto;
}

.certifications-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

/* Active Nav */
nav a.active {
    color: #B22222 !important;
    font-weight: 600;
}

/* Desktop padding */
.section-padding-1 {
    padding: 0 250px 0 100px;
}

.section-padding-2 {
    padding: 0 400px 0 200px;
}

/* Mobile/Tablet - 20px both sides */
@media (max-width: 1024px) {
    .section-padding-1,
    .section-padding-2 {
        padding: 0 20px !important;
    }
}



/* ========================================
   RESPONSIVE
   ======================================= */

@media (max-width: 1024px) {
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 2rem;
    }

    .compliance-left {
        flex-direction: column;
        align-items: stretch;
    }

    .compliance-image {
        flex: none;
        width: 100%;
        height: 280px;
    }

    .logo-group {
        justify-content: center;
    }

    .cert-logos {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .compliance-hero {
        padding: 5rem 0 4rem;
    }

    .compliance-main {
        padding: 4rem 0;
    }

    .compliance-grid {
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .compliance-image {
        height: 220px;
    }

    .hiring-content h2 {
        font-size: 1.8rem;
    }

    .cert-logo {
        height: 80px;
    }

    .small-logo {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .compliance-hero h1 {
        font-size: 2.5rem;
    }

    .compliance-grid {
        padding: 0 1rem;
        gap: 2.5rem;
    }

    .hiring-content h2 {
        font-size: 1.6rem;
    }
}

/* ========================================
   Open Jobs DESIGN
   ======================================= */


.flip-card {
    background-color: transparent;
    width: 250px;
    height: 250px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
}

.flip-card-front {
    background: #fff;
}

.flip-card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(180deg);
}

.flip-card-link {
    text-decoration: none;
}




/* ========================================
   RESPONSIVE DESIGN
   ======================================= */

/* Tablet */
@media (max-width: 1024px) {
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 0 2rem;
    }

    .logo-group {
        justify-content: center;
        gap: 1rem;
    }

    .cert-logos {
        justify-content: center;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .compliance-hero {
        padding: 5rem 0 4rem;
    }

    .compliance-main {
        padding: 4rem 0;
    }

    .compliance-grid {
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .compliance-image {
        height: 220px;
    }

    .compliance-column h2 {
        font-size: 1.8rem;
    }

    .logo-group {
        flex-direction: column;
        align-items: center;
    }

    .cert-logo {
        height: 80px;
    }

    .small-logo {
        height: 50px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .compliance-hero h1 {
        font-size: 2.5rem;
    }

    .compliance-hero p {
        font-size: 1.1rem;
    }

    .compliance-grid {
        padding: 0 1rem;
        gap: 2.5rem;
    }

    .compliance-list li {
        font-size: 0.95rem;
        padding: 0.7rem 0 0.7rem 2rem;
    }
}

.roles-list,
.faqs-list,
.locations-list {
    list-style: none;
    padding: 0;
}

    .roles-list li,
    .faqs-list li,
    .locations-list li {
        padding-left: 1em;
        position: relative;
        margin-bottom: 0.5em;
    }


/* ===========================
   CAPABILITY SECTION
   =========================== */


.capability-hero {
    background: linear-gradient(135deg, #999191 0%, #E3E1E1 100%);
    color: white;
    padding: 5px 0;
    text-align: center;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.capability-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.download-btn {
    display: inline-block;
    background: #850808;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 20px 0;
}

    .download-btn:hover {
        background: #b91c1c;
    }

.sidebar {
    background: linear-gradient(135deg, #6B6A6A 0%, #404040 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 8px 32px grey;
    width: 450px;
}


/* ===========================
   FOOTER SECTION
   =========================== */

.footer {
    background: #f8f8f8;
    padding: 4rem 0 2rem;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 1rem;
}

.footer-column p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-cert img {
    height: 30px;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.8rem;
    }

    .footer-links a {
        color: #666;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: #b22222;
        }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.2rem;
    margin-top: 0.2rem;
    color: #b22222;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Bottom copyright */
.footer-bottom {
    border-top: 1px solid #e0e0e0;
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

    .footer-bottom p {
        color: #888;
        font-size: 0.85rem;
    }

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 0 2rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }
}

.footer-column img[src="img/partners-affiliations.png"] {
    width: 100%; /* Full width of column */
    max-width: 280px; /* Prevents over-stretching on desktop */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes any inline spacing */
    margin-bottom: 1rem;
}

/* Mobile-specific scaling */
@media (max-width: 900px) {
    .footer-column img[src="img/partners-affiliations.png"] {
        max-width: 250px; /* Slightly smaller on tablet */
        margin: 0 auto 1rem; /* Center it */
    }
}

@media (max-width: 600px) {
    .footer-column img[src="img/partners-affiliations.png"] {
        max-width: 220px; /* Perfect mobile size */
        margin: 0 auto 1.5rem;
    }
}

/* FORCE MOBILE LOGO TO SHOW - 2026 FIX */
.hero-media {
    flex: 1 1 60% !important;
    max-width: 650px;
    margin-top: 6rem;
    min-height: 250px; /* Prevents collapse */
}

.hero-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* KEY: Never disappears */
    object-fit: cover;
    border-radius: 8px;
    display: block !important;
    margin-bottom: 40px;
}




/* MOBILE LOGO - NO CLIPPING */
@media (max-width: 500px) {
    .hero-content {
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center !important;
    }

    .hero-media {
        flex: none !important;
        margin-top: -1rem !important;
        max-width: 90vw !important;
        /* REMOVED min-height - let image breathe */
    }

    .hero-logo {
        width: 85vw !important; /* Slightly smaller */
        max-width: 380px !important; /* Hard cap */
        height: auto !important; /* Natural height */
        max-height: none !important; /* NO height cap */
        min-height: 160px !important; /* Minimum visibility */
        object-fit: contain !important; /* Shows full image */
        border-radius: 12px !important;
        display: block !important;
        margin-bottom: 40px;
        /* NO overflow hidden = NO clipping */
    }

    .hero-media,
    .hero-logo {
        overflow: visible !important; /* KEY: Prevents clipping */
    }
}


/* SERVICES MOBILE CENTERING FIX */
@media (max-width: 900px) {
    .services-section .container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
    }

    .services-left,
    .services-right {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .services-left {
        order: 1; /* Title/certifications first */
    }

    .services-right {
        order: 2; /* Text second */
        padding: 0 1rem;
    }

    .cert-card {
        margin: 0 auto 2rem !important;
        max-width: 100% !important;
    }

    .certs-stacked {
        justify-content: center !important;
        align-items: center !important;
    }

    .cert-item {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .cert-logo {
        flex-shrink: 0 !important;
        width: 60px !important;
        height: auto !important;
    }
}

/*********************************
    begin office location cards
*********************************/

.map-wrapper {
    max-width: 850px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

    /* Make the image responsive inside its container */
    .map-wrapper img[usemap] {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

/* Modal Popup Card Overlay Styles */
#office-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.office-modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    text-align: left;
    position: relative;
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.office-modal-card h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #0056b3;
}

.office-modal-card p {
    margin: 8px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.4;
}

.office-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.btn-page {
    background: #0056b3;
    color: #ffffff;
}

    .btn-page:hover {
        background: #003d82;
    }

.btn-close {
    background: #e0e0e0;
    color: #333;
}

    .btn-close:hover {
        background: #ccc;
    }

/* Permanent Office Grid Styles */
.office-directory-section {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

    .office-directory-section h3 {
        text-align: center;
        margin-bottom: 25px;
        color: #0056b3;
        font-size: 22px;
    }

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.office-directory-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .office-directory-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }

    .office-directory-card h4 {
        margin: 0 0 10px 0;
        font-size: 18px;
        color: #0056b3;
    }

    .office-directory-card p {
        margin: 6px 0;
        font-size: 14px;
        color: #444;
        line-height: 1.4;
    }

    .office-directory-card .card-footer-link {
        margin-top: 15px;
        display: inline-block;
        background: #0056b3;
        color: #ffffff;
        padding: 8px 14px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: bold;
        font-size: 13px;
        text-align: center;
    }

        .office-directory-card .card-footer-link:hover {
            background: #003d82;
        }


/*********************************
    begin office location cards
*********************************/


/*******************************************
BLOGs command New font-face-format
*******************************************/

.blog-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.post-category {
    color: #003366; /* Your brand blue */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Featured Post Styling */
.featured-post {
    background: #f9f9f9;
    padding: 40px;
    border-left: 5px solid #003366;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

    .featured-post h2 {
        font-size: 2.2rem;
        margin: 10px 0;
    }

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    border: 1px solid #eee;
    padding: 25px;
    transition: transform 0.2s ease;
    background: #fff;
}

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

    .read-more:hover {
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .featured-post h2 {
        font-size: 1.6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }


}
