/*
Theme Name: Cates Engineering Charlie
Theme URI: https://catesengineering.com
Author: RT7 Media
Author URI: https://catesengineering.com
Description: A professional WordPress theme for Cates Engineering with enhanced functionality and new features
Version: 2.9.8
License: GPL v2 or later
Text Domain: cates-engineering-charlie
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Graduate&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Placeholder Images */
.placeholder-image {
    background-color: #ccc;
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-image::after {
    content: "Image Placeholder";
    color: #666;
    font-size: 14px;
}

.placeholder-icon {
    background-color: #ddd;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin: 0 auto 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar .container {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(auto, 3fr) minmax(150px, 0.8fr);
    align-items: center;
    gap: 15px;
}

.navbar-section {
    display: flex;
    align-items: center;
}

.navbar-left {
    justify-content: flex-start;
}

.navbar-center {
    justify-content: center;
}

.navbar-right {
    justify-content: flex-end;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo a {
    color: #333;
    text-decoration: none;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: inline-block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: #0066cc;
}

.nav-cta {
    background-color: #1a2332;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-cta:hover {
    background-color: #2a3442;
}

/* WordPress Admin Bar Fix */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

/* New Hero Section - Where Innovation Meets Integrity */
.hero-main {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background-color: #1a2332;
    padding-top: 60px;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(10, 15, 26, 0.95) 0%, rgba(10, 15, 26, 0.85) 50%, rgba(10, 15, 26, 0.7) 100%);
    z-index: 2;
}

.hero-main-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: white;
    width: 100%;
}

.hero-main-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-label {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-main h1 {
    font-size: 72px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-main p {
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-weight: 300;
    max-width: 500px;
}

.hero-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #1a2332;
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-color: #f0f0f0;
}


/* Three Pillars Section */
.pillars {
    padding: 100px 20px;
    background-color: #ffffff;
    background-image: url('assets/images/3dbuilding-cates-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    opacity: 1;
    text-align: center;
}

.pillars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    z-index: 1;
}

.pillars .container {
    position: relative;
    z-index: 2;
}

.pillars-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #dc3545;
    margin-bottom: 20px;
    font-weight: 500;
}

.pillars-heading {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.4;
    color: #2c3e50;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pillars-heading .text-red {
    color: #dc3545;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pillar-card {
    text-align: left;
    padding: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #e8ecf0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.pillar-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 20px;
}

.pillar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pillar-card:hover .pillar-image img {
    transform: scale(1.05);
}

.pillar-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    padding: 0 25px;
}

.pillar-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    padding: 0 25px 25px 25px;
}

/* Team of Experts Section */
.team-experts {
    padding: 80px 20px;
    background-color: #1a2332;
    background-image: url('assets/images/bgteam.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    position: relative;
}

.team-experts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 35, 50, 0.85);
    z-index: 1;
}

.team-experts .container {
    position: relative;
    z-index: 2;
}

.team-experts h2 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 30px;
}

.team-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: #b8c5d6;
    max-width: 800px;
    margin: 0 auto 40px;
}

.team-btn {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 12px 35px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.team-btn:hover {
    background-color: white;
    color: #1a2332;
}

/* Latest from Cates Section */
.latest-news-section {
    padding: 80px 20px;
    background-color: #2c3e50;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    position: relative;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(45, 55, 70, 0.88);
    z-index: 1;
}

.latest-news-section .container {
    position: relative;
    z-index: 2;
}

.latest-news-section h2 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 50px;
}

.latest-news-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    min-height: 300px;
}

.news-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 40px;
    text-align: left;
}

.news-content h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.news-content h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #3498db;
}

.news-excerpt {
    color: #bdc3c7;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 16px;
}

.read-more-btn {
    display: inline-block;
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.read-more-btn:hover {
    color: white;
    border-bottom-color: #ffd700;
}

.no-news {
    text-align: center;
    color: #bdc3c7;
    padding: 60px;
    font-size: 18px;
}


/* View Our Projects Showcase Section */
.projects-showcase {
    padding: 100px 20px;
    background-color: #ffffff;
    text-align: center;
    position: relative;
    opacity: 1;
    background-image: linear-gradient(#e8ecf0 2px, transparent 2px), linear-gradient(90deg, #e8ecf0 2px, transparent 2px), linear-gradient(#e8ecf0 1px, transparent 1px), linear-gradient(90deg, #e8ecf0 1px, #ffffff 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

.projects-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #dc3545;
    margin-bottom: 20px;
    font-weight: 500;
}

.projects-heading {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #1a2332;
}

.projects-heading .text-red {
    color: #dc3545;
}

.projects-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    max-width: 600px;
    margin: 0 auto 60px;
}

.text-blue {
    color: #0066cc;
}

.text-red {
    color: #dc3545;
}

.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-showcase-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    transition: transform 0.3s;
    text-decoration: none;
    display: block;
}

.project-showcase-card:hover {
    transform: translateY(-5px);
}

.project-showcase-image {
    height: 340px;
    overflow: hidden;
    border-radius: 20px;
}

.project-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-showcase-card:hover .project-showcase-image img {
    transform: scale(1.05);
}

.project-showcase-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    color: #dc3545;
    text-align: left;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero h1 .highlight {
    color: #cc0000;
}

.hero p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.hero-image {
    flex: 0 0 500px;
    height: 400px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Beyond the Blueprints Section */
.blueprints {
    background-image: url('assets/images/blueprints-blue.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 20px;
}

.blueprints h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 300;
}

.section-subtitle {
    text-align: center;
    color: #8899aa;
    margin-bottom: 50px;
    font-size: 16px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #2a3442;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3 {
    font-size: 16px;
    color: #ffffff;
    margin: 20px 20px 10px;
    letter-spacing: 1px;
}

.project-card h4 {
    font-size: 18px;
    margin: 0 20px 10px;
    font-weight: 400;
    color: white;
}

.project-meta {
    font-size: 12px;
    color: #8899aa;
    margin: 0 20px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cates Racing Section */
.racing {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.racing-title {
    font-family: 'Graduate', serif;
    font-size: 60px;
    margin-bottom: 50px;
    font-weight: bold;
    font-style: italic;
    letter-spacing: 2px;
    text-align: center;
    color: #1a2332;
    line-height: 1.2;
    text-transform: uppercase;
}

.racing-title .cates-text {
    font-size: 1.2em;
    display: block;
}

.racing-title .racing-text {
    display: block;
}

.racing-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Homepage-specific racing content - 3 column grid */
.homepage-racing-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.racing-page-content {
    max-width: 100%;
    margin: 0;
    padding: 60px 40px;
    background: #f8f9fa;
    min-height: 60vh;
}

.racing-page-content .wp-block-columns {
    max-width: 1400px;
    margin: 0 auto;
}

.racing-page-content .wp-block-column {
    padding: 20px;
}

.racing-page-content h2,
.racing-page-content h3 {
    color: #1a365d;
    margin-bottom: 20px;
}

.racing-page-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.racing-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.racing-column {
    padding: 0 20px;
}

.racing-column p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
    text-align: justify;
}

.racing-image-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.racing-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 8px;
}

/* Contact Section */
.contact {
    background-color: #1a2332;
    color: white;
    padding: 80px 20px;
    position: relative;
    opacity: 1;
    background-image: linear-gradient(#222d3f 1px, transparent 1px), linear-gradient(to right, #222d3f 1px, #1a2332 1px);
    background-size: 20px 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-text {
    text-align: left;
}

.contact h3 {
    font-size: 14px;
    color: #8899aa;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 300;
}

.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #1a2332;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.contact-image {
    width: 100%;
    height: 500px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: #0a0f1a;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #8899aa;
    margin-bottom: 10px;
}

.footer-section a,
.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover,
.footer a:hover {
    color: #60a5fa;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #8899aa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: white;
}

.footer-bottom {
    text-align: left;
    padding-top: 30px;
    border-top: 1px solid #2a3442;
}

.copyright {
    font-size: 12px;
    color: #6a7a8a;
    margin: 0;
}

/* Mobile Get in Touch Button - Hide on Desktop */
.mobile-get-in-touch {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile navbar - show logo left, hamburger right */
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-section {
        display: flex;
        align-items: center;
    }
    
    .navbar-left {
        flex: 0 0 auto;
    }
    
    .navbar-right {
        flex: 0 0 auto;
        display: flex !important;
        align-items: center;
    }
    
    .navbar-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    .mobile-menu-open .navbar-center {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu > li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 10px;
        width: 100%;
        font-size: 14px;
    }
    
    .nav-cta {
        display: none !important;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Dropdowns on mobile - Simplified */
    .nav-menu ul {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: #ffffff;
        margin-top: 0;
        border-radius: 0;
    }

    .nav-menu li:hover > ul,
    .nav-menu li.focus > ul {
        display: block;
    }

    .nav-menu ul a {
        padding: 15px 15px 15px 25px !important;
        font-size: 14px !important;
        color: #1a2332 !important;
        background: #ffffff !important;
        border-left: 3px solid #e8ecf0 !important;
        font-weight: 500 !important;
    }
    
    .nav-menu ul a:hover {
        background: #f8f9fa !important;
        border-left-color: #1a2332 !important;
        padding-left: 28px !important;
    }
    
    .nav-menu ul li {
        border-bottom: 1px solid #e8ecf0;
    }
    
    /* Mobile Get in Touch Button */
    .mobile-get-in-touch {
        display: block !important;
        width: calc(100% - 20px);
        margin: 20px 10px;
        padding: 15px 20px;
        background-color: #1a2332;
        color: white;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 700;
        transition: background-color 0.3s;
        border: none;
    }
    
    .mobile-get-in-touch:hover {
        background-color: #2a3442;
    }
    
    /* New Hero Section Mobile */
    .hero-main {
        min-height: 70vh;
        padding-bottom: 60px;
    }
    
    .hero-main h1 {
        font-size: 42px;
        line-height: 1.2;
    }
    
    .hero-main p {
        font-size: 17px;
    }
    
    .hero-main-content .container {
        padding: 0 20px;
    }
    
    .hero-label {
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    /* Pillars Mobile */
    .pillars-heading {
        font-size: 28px;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pillar-image {
        height: 200px;
    }
    
    /* Team Mobile */
    .team-experts h2 {
        font-size: 36px;
    }
    
    /* Latest News Mobile */
    .latest-news-section h2 {
        font-size: 32px;
    }
    
    .news-content-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .news-image img {
        height: 250px;
    }
    
    .news-content {
        padding: 30px;
        text-align: center;
    }
    
    .news-content h3 {
        font-size: 20px;
    }
    
    /* Projects Showcase Mobile */
    .projects-heading {
        font-size: 32px;
    }
    
    .projects-subtitle {
        font-size: 15px;
    }
    
    .projects-showcase-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-showcase-image {
        height: 250px;
    }
    
    .project-showcase-card h3 {
        font-size: 16px;
    }
    
    /* Original Hero Mobile */
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-image {
        flex: 1;
        width: 100%;
    }
    
    .racing-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Homepage racing content should also be single column on mobile */
    .homepage-racing-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .racing-column {
        padding: 0;
    }
    
    .racing-image-column {
        order: -1;
    }
    
    .racing-page-content {
        padding: 40px 20px;
        min-height: 50vh;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-text {
        text-align: left;
    }
    
    .contact-image {
        width: 100%;
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .footer-bottom {
        text-align: left;
    }
}

/* About Us Page Styles */

/* Primary Banner System - New Stable Header Solution */
.primary-banner {
    position: relative;
    width: 100vw;
    height: 475px;
    max-height: 475px;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a2332;
    border-bottom: 5px solid #00bcd4;
}

.primary-banner-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.primary-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.primary-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 35, 50, 0.75);
    pointer-events: none;
}

.primary-banner-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
}

.primary-banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    color: white;
    letter-spacing: -0.5px;
}

.primary-banner-subtitle {
    font-size: 1.35rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: white;
    letter-spacing: 0.5px;
}

/* Responsive Primary Banner */
@media (max-width: 768px) {
    .primary-banner {
        height: 350px;
        max-height: 350px;
    }
    
    .primary-banner-title {
        font-size: 2.5rem;
    }
    
    .primary-banner-subtitle {
        font-size: 1.1rem;
    }
    
    .primary-banner-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .primary-banner {
        height: 300px;
        max-height: 300px;
    }
    
    .primary-banner-title {
        font-size: 2rem;
    }
    
    .primary-banner-subtitle {
        font-size: 1rem;
    }
}

/* About Hero Section */
.about-hero {
    position: relative;
    height: 30vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 10px solid #3d5371;
}

.about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8) 0%, rgba(10, 15, 26, 0.6) 100%);
    z-index: 2;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: white;
    width: 100%;
}

.about-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    text-align: left;
}

.about-hero-subtitle {
    font-size: 1.5rem;
    text-align: left;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0;
    line-height: 1.6;
}

/* Animated Border for About Hero V2 */
.about-hero-v2 {
    border-bottom: 5px solid #87CEEB;
    animation: colorCycleBorderBottom 8s ease-in-out infinite;
}

/* Animated Navigation Border */
.header {
    border-bottom: 10px solid #C0C0C0;
    animation: colorCycleBorderNav 8s ease-in-out infinite;
}

@keyframes colorCycleBorderBottom {
    0% { border-bottom-color: #87CEEB; } /* Sky Blue */
    14% { border-bottom-color: #B0C4DE; } /* Light Steel Blue */
    28% { border-bottom-color: #ADD8E6; } /* Light Blue */
    42% { border-bottom-color: #C0C0C0; } /* Silver */
    56% { border-bottom-color: #D3D3D3; } /* Light Gray */
    70% { border-bottom-color: #B0E0E6; } /* Powder Blue */
    84% { border-bottom-color: #DCDCDC; } /* Gainsboro */
    100% { border-bottom-color: #87CEEB; } /* Back to Sky Blue */
}

@keyframes colorCycleBorderNav {
    0% { border-bottom-color: #C0C0C0; } /* Silver - offset from hero */
    14% { border-bottom-color: #D3D3D3; } /* Light Gray */
    28% { border-bottom-color: #B0E0E6; } /* Powder Blue */
    42% { border-bottom-color: #DCDCDC; } /* Gainsboro */
    56% { border-bottom-color: #87CEEB; } /* Sky Blue */
    70% { border-bottom-color: #B0C4DE; } /* Light Steel Blue */
    84% { border-bottom-color: #ADD8E6; } /* Light Blue */
    100% { border-bottom-color: #C0C0C0; } /* Back to Silver */
}

/* Blog Post Hero Section */
.blog-hero {
    position: relative;
    height: 40vh;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(70, 130, 180, 0.85);
    z-index: 2;
}

.blog-hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    color: white;
    width: 100%;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.blog-date,
.blog-category {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    max-width: 800px;
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

/* Blog Content Section */
.blog-content {
    padding: 80px 20px;
    background: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.blog-image-sidebar {
    position: sticky;
    top: 100px;
}

.blog-featured-image {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.blog-article {
    background: white;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-content-wrapper {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.blog-content-wrapper h2,
.blog-content-wrapper h3,
.blog-content-wrapper h4 {
    color: #1a2332;
    margin-top: 30px;
    margin-bottom: 20px;
}

.blog-content-wrapper p {
    margin-bottom: 20px;
}

.blog-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.blog-tags {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-bottom: 30px;
}

.blog-tags h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.tag-list a {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 5px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.tag-list a:hover {
    background-color: #1a2332;
    color: white;
}

.blog-author {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.author-info h4 {
    color: #1a2332;
    margin-bottom: 5px;
    font-size: 18px;
}

.author-date {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Blog Navigation */
.blog-navigation {
    max-width: 800px;
    margin: 40px auto 0;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-previous,
.nav-next {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-3px);
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.nav-title {
    display: block;
    font-size: 16px;
    color: #1a2332;
    font-weight: 600;
    line-height: 1.4;
}

/* About Content Section */
.about-content {
    background: #f8f9fa;
}

.about-content.services-intro-spacing {
    padding: 80px 0;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Quote Column */
.about-quote-column {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 400px;
}

.quote-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.quote-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.hero-quote {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: #1a2332;
    margin: 0;
    position: relative;
}

.hero-quote::before {
    content: "";
    display: none;
}

.hero-quote::after {
    content: "";
    display: none;
    right: -30px;
    line-height: 1;
}

/* Text Column */
.about-text-column {
    padding: 20px 0;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.about-text h2 {
    color: #1a2332;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 2.2rem;
}

.about-text h3 {
    color: #1a2332;
    margin: 40px 0 20px;
    font-weight: 600;
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 25px;
}

.about-text ul, .about-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.about-text li {
    margin-bottom: 10px;
}

/* Our People Section */
.our-people {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a2332 0%, #2a3442 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.our-people::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.our-people > .container {
    position: relative;
    z-index: 2;
}

.our-people-header {
    text-align: center;
    margin-bottom: 80px;
}

.our-people-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.our-people-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    color: #b8c5d6;
}

/* People Grid */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Person Card */
.person-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    min-height: 500px;
    opacity: 1;
    visibility: visible;
}

.person-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Person Image */
.person-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Debug: Force visibility */
.our-people .person-card {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.person-info {
    opacity: 1 !important;
    visibility: visible !important;
}

.person-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.person-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: grayscale(0.3);
}

.person-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.person-card:hover .person-photo {
    opacity: 0;
    transform: scale(1.1);
}

.person-card:hover .person-gif {
    opacity: 1;
}

/* Person Overlay */
.person-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 35, 50, 0.8) 0%, rgba(204, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-card:hover .person-overlay {
    opacity: 1;
}

.person-social {
    display: flex;
    gap: 15px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.person-card:hover .person-social {
    transform: translateY(0);
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    color: white;
}

/* Person Info */
.person-info {
    padding: 30px;
    text-align: center;
}

.person-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    letter-spacing: 1px;
}

.person-title {
    font-size: 1rem;
    color: #0066cc;
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.person-bio {
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
}

.person-bio p {
    font-size: 0.95rem;
    color: #b8c5d6;
}

.contact-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #0066cc, #cc0000);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #cc0000, #0066cc);
    transition: left 0.3s ease;
    z-index: 1;
}

.contact-link span {
    position: relative;
    z-index: 2;
}

.contact-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.contact-link:hover::before {
    left: 0;
}

/* About CTA Section */
.about-cta {
    padding: 80px 20px;
    background-color: #1a2332;
    color: white;
    text-align: center;
    position: relative;
    opacity: 1;
    background-image: linear-gradient(#222d3f 1px, transparent 1px), linear-gradient(to right, #222d3f 1px, #1a2332 1px);
    background-size: 20px 20px;
}

.about-cta-content h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.2;
}

.about-cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #1a2332;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: #1a2332;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .about-hero-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
        line-height: 1.1;
    }
    
    .about-hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Blog Mobile Styles */
    .blog-hero {
        height: 35vh;
        min-height: 300px;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-image-sidebar {
        position: static;
        order: -1;
    }
    
    .blog-featured-image {
        padding: 15px;
    }
    
    .blog-article {
        padding: 30px 20px;
    }
    
    .blog-content-wrapper {
        font-size: 16px;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quote-image-wrapper img {
        height: 300px;
    }
    
    .hero-quote {
        font-size: 20px;
    }
    
    .hero-quote::before,
    .hero-quote::after {
        font-size: 2.5rem;
    }
    
    .hero-quote::before {
        top: -10px;
        left: -20px;
    }
    
    .hero-quote::after {
        bottom: -25px;
        right: -20px;
    }
    
    .our-people-title {
        font-size: 2.5rem;
    }
    
    .people-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .person-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-cta-content h2 {
        font-size: 2rem;
    }
}

/* Fallback Styles for People Section */
.person-gif-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.person-image-wrapper:hover .person-gif-placeholder {
    opacity: 1;
}

.gif-message {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.no-people-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-people-message h3 {
    color: #1a2332;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-people-message p {
    color: #666;
    margin-bottom: 10px;
}

.no-people-message ul {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.no-people-message a {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
}

.no-people-message a:hover {
    text-decoration: underline;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.placeholder-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS Animation Styles */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Our People Page Template Styles */
.people-hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #1a2332 0%, #2a3442 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.people-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.people-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.people-hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.people-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.people-content {
    padding: 100px 20px;
    background-color: #1a2842;
    color: white;
    position: relative;
    opacity: 1;
    background-image: linear-gradient(#2a4060 2px, transparent 2px), linear-gradient(90deg, #2a4060 2px, transparent 2px), linear-gradient(#2a4060 1px, transparent 1px), linear-gradient(90deg, #2a4060 1px, #1a2842 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

.people-content > .container {
    position: relative;
    z-index: 2;
}

.people-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.people-intro h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 30px;
    font-weight: 300;
}

.people-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Person Card - Clean Design */
.person-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.person-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.person-image-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    flex-shrink: 0;
}

.person-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.person-hover-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 5;
}

.person-card:hover .person-hover-gif {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 10;
}

.person-card:hover .person-details {
    opacity: 0;
    transform: translateY(20px);
}

.person-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.9) 0%, rgba(73, 80, 87, 0.9) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 5;
    border-radius: 16px;
}

.person-card:hover .person-hover-overlay {
    opacity: 1;
    z-index: 10;
}

.person-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 600;
}

.person-no-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.person-card:hover .person-no-gif {
    opacity: 1;
}

.person-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.person-card:hover .person-overlay-info {
    opacity: 1;
}

.person-email-btn {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.person-email-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}


.person-info {
    padding: 25px;
    text-align: center;
}

.person-details {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
}

.person-name {
    font-size: 1.3rem;
    color: #1a2332;
    margin-bottom: 8px;
    font-weight: 600;
}

.person-title {
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.person-role {
    color: #dc3545;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.no-people-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-people-found h3 {
    color: #1a2332;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-people-found p {
    color: #666;
    font-size: 1.1rem;
}

.join-team-cta {
    background: linear-gradient(135deg, #1a2332 0%, #2a3442 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.join-team-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.join-team-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .people-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .pillar-card h3 {
        font-size: 18px;
    }
    
    .pillar-card p {
        font-size: 13px;
    }
    
    .project-showcase-image {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .people-hero-title {
        font-size: 2.5rem;
    }
    
    .people-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .people-intro h2 {
        font-size: 2rem;
    }
    
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .person-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .join-team-content h2 {
        font-size: 2rem;
    }
    
    .modal-body {
        flex-direction: column;
        min-height: auto;
    }
    
    .modal-image-section,
    .modal-info-section {
        flex: none;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .people-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Person Modal Styles */
.person-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    width: 95%;
    max-width: 1200px;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    min-height: 500px;
}

.modal-image-section {
    flex: 2;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-person-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-info-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info-section h2 {
    font-size: 2.2rem;
    color: #1a2332;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-role {
    color: #dc3545;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.modal-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.modal-email {
    margin-top: auto;
}

.modal-email-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid #dc3545;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.modal-email-link:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.modal-person-photo {
    max-width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-info-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-person-name {
    font-size: 2.2rem;
    color: #1a2332;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-person-role {
    color: #dc3545;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.modal-person-bio {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 40px;
}

.modal-contact {
    margin-top: auto;
}

.modal-email-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 14px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.modal-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-body {
        flex-direction: column;
        min-height: auto;
    }
    
    .modal-photo-section {
        padding: 30px;
    }
    
    .modal-info-section {
        padding: 30px;
    }
    
    .modal-person-name {
        font-size: 1.8rem;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}

/* Timeline Section */
.cates-timeline {
    padding: 80px 20px;
    background: #f8f9fa;
    position: relative;
    opacity: 1;
    background-image: linear-gradient(#fad5d8 2px, transparent 2px), linear-gradient(90deg, #fad5d8 2px, transparent 2px), linear-gradient(#fad5d8 1px, transparent 1px), linear-gradient(90deg, #fad5d8 1px, #f8f9fa 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

.timeline-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1a2332;
}

.timeline-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #3d5371;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    clear: both;
}

.timeline-item.left {
    left: 0;
    padding-right: 40px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 40px;
}

.timeline-content {
    background-image: linear-gradient(to bottom left, #e0e4e5, #f2f6f9);
    padding: 30px;
    border-radius: 2rem;
    box-shadow: 
        inset -2px 2px hsl(0 0 100% / 1),
        -20px 20px 40px hsl(0 0 0 / .25);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 
        inset -2px 2px hsl(0 0 100% / 1),
        -25px 25px 50px hsl(0 0 0 / .35);
}


.timeline-year {
    font-size: 2rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 10px;
}

.timeline-event {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #dc3545;
    border: 4px solid #fff;
    border-radius: 50%;
    top: 30px;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.timeline-item.left .timeline-marker {
    right: -10px;
}

.timeline-item.right .timeline-marker {
    left: -10px;
}

/* Timeline arrow indicators - Desktop */
@media (min-width: 769px) {
    .timeline-item.left .timeline-content::after {
        content: '' !important;
        position: absolute !important;
        right: -10px !important;
        top: 25px !important;
        width: 0 !important;
        height: 0 !important;
        border-style: solid !important;
        border-width: 10px 0 10px 10px !important;
        border-color: transparent transparent transparent #f2f6f9 !important;
        z-index: 100 !important;
        display: block !important;
    }

    .timeline-item.right .timeline-content::after {
        content: '' !important;
        position: absolute !important;
        left: -10px !important;
        top: 25px !important;
        width: 0 !important;
        height: 0 !important;
        border-style: solid !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent #f2f6f9 transparent transparent !important;
        z-index: 100 !important;
        display: block !important;
    }
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 20px !important;
        left: 0 !important;
    }
    
    .timeline-item.right {
        left: 0 !important;
    }
    
    .timeline-marker {
        left: 20px !important;
        right: auto !important;
    }
    
    .timeline-item .timeline-content::after {
        content: '' !important;
        position: absolute !important;
        left: -10px !important;
        right: auto !important;
        top: 25px !important;
        width: 0 !important;
        height: 0 !important;
        border-style: solid !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent #f2f6f9 transparent transparent !important;
        z-index: 100 !important;
        display: block !important;
    }
    
    .timeline-year {
        font-size: 1.5rem;
    }
    
    .timeline-event {
        font-size: 1rem;
    }
}

/* ================================
   SERVICES PAGE STYLES
   ================================ */

/* Services Hero Section */
.services-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    background-image: url('assets/images/blueprints-blue.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.services-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.8);
    z-index: 1;
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.services-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.services-hero .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Introduction */
.services-intro {
    padding: 80px 0;
    background-color: #f8f9fa;
    background-image: linear-gradient(#d0d0d0 1px, transparent 1px), linear-gradient(to right, #d0d0d0 1px, #f8f9fa 1px);
    background-size: 20px 20px;
}

.services-intro .intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #64748b;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Our Experience Section */
.our-experience {
    padding: 80px 0;
    background-color: #1a2842;
    position: relative;
    opacity: 1;
    background-image: linear-gradient(#2a4060 2px, transparent 2px), linear-gradient(90deg, #2a4060 2px, transparent 2px), linear-gradient(#2a4060 1px, transparent 1px), linear-gradient(90deg, #2a4060 1px, #1a2842 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

.our-experience .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-category {
    background: #0f1f35;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(42, 64, 96, 0.4);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.experience-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(42, 64, 96, 0.6);
}

.experience-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.experience-category p {
    color: #b8c5d6;
    line-height: 1.6;
}

/* Specialty Services Section */
.specialty-services {
    padding: 80px 0;
    background-color: #f8f9fa;
    background-image: linear-gradient(#d0d0d0 1px, transparent 1px), linear-gradient(to right, #d0d0d0 1px, #f8f9fa 1px);
    background-size: 20px 20px;
    position: relative;
    opacity: 1;
}

.specialty-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(156, 163, 175, 0.5);
    pointer-events: none;
    z-index: 1;
}

.specialty-services .container {
    position: relative;
    z-index: 2;
}

.specialty-services .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 1rem;
}

.specialty-services .section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-item {
    background: #1f0f20;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(61, 43, 62, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(61, 43, 62, 0.6);
}

.service-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: #64748b;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

.modal-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
}

/* Services CTA Section */
.services-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.services-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-hero {
        padding: 80px 0 60px;
    }
    
    .services-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .services-hero .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .services-intro,
    .our-experience,
    .specialty-services,
    .services-cta {
        padding: 60px 0;
    }
    
    .our-experience .section-title,
    .specialty-services .section-title,
    .services-cta h2 {
        font-size: 2rem;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 2rem;
        width: 95%;
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
        padding-right: 2.5rem;
    }
    
    .modal-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-hero .hero-title {
        font-size: 2rem;
    }
    
    .services-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .experience-category,
    .service-item {
        padding: 1.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-close {
        top: 0.75rem;
        right: 1rem;
        font-size: 1.75rem;
    }
}

/* Navigation Dropdown Styles - Desktop Only */
.main-navigation ul,
.nav-menu {
    position: relative;
}

@media (min-width: 769px) {
    .main-navigation ul ul,
    .nav-menu ul {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 160px;
        background: #1e3a8a;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 8px 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-top: 3px solid #60a5fa;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .main-navigation ul li:hover > ul,
    .nav-menu li:hover > ul {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-navigation ul ul li,
    .nav-menu ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }

    .main-navigation ul ul li:last-child,
    .nav-menu ul li:last-child {
        border-bottom: none;
    }

    .main-navigation ul ul a,
    .nav-menu ul a {
        display: block;
        padding: 10px 15px;
        color: white !important;
        text-decoration: none;
        font-size: 12px;
        line-height: 1.4;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
        white-space: nowrap;
    }

    .main-navigation ul ul a:hover,
    .nav-menu ul a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: #60a5fa;
        padding-left: 20px;
        color: white !important;
    }
}

/* Remove arrows from menu items with submenus */
.main-navigation .menu-item-has-children > a::after,
.main-navigation .page_item_has_children > a::after,
.nav-menu .menu-item-has-children > a::after,
.nav-menu .page_item_has_children > a::after {
    display: none;
}

/* Third level dropdowns - Desktop Only */
@media (min-width: 769px) {
    .main-navigation ul ul ul,
    .nav-menu ul ul {
        top: 0;
        left: 100%;
        border-radius: 8px;
        border-top: 3px solid #60a5fa;
    }
}

/* Mobile responsive adjustments - Removed for consolidated mobile menu styles above */

/* Person Modal V2 Styles */
.person-modal-v2 {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content-v2 {
    position: relative;
    background-color: white;
    margin: 3% auto;
    width: 95%;
    max-width: 1400px;
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-modal-v2 {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.close-modal-v2:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.modal-body-v2 {
    display: flex;
    min-height: 600px;
}

.modal-image-section-v2 {
    flex: 1.2;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-person-image-v2 {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-info-section-v2 {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info-section-v2 h2 {
    font-size: 2.5rem;
    color: #1a2332;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-role-v2 {
    color: #dc3545;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.modal-bio-v2 {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}

.modal-email-v2 {
    margin-top: 20px;
}

.modal-email-link-v2 {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-email-link-v2:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Modal V2 Responsive */
@media (max-width: 768px) {
    .modal-content-v2 {
        margin: 5% auto;
        width: 95%;
        max-width: none;
    }
    
    .modal-body-v2 {
        flex-direction: column;
        min-height: auto;
    }
    
    .modal-image-section-v2 {
        padding: 30px;
    }
    
    .modal-person-image-v2 {
        max-width: 300px;
        max-height: 400px;
    }
    
    .modal-info-section-v2 {
        padding: 30px;
    }
    
    .modal-info-section-v2 h2 {
        font-size: 2rem;
    }
    
    .close-modal-v2 {
        top: 15px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}
}/* Beyond the Blueprints Single Post Template Styles */
.blueprints-single-hero {
    padding: 120px 20px 80px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}



.blueprint-post-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.post-category-label {
    color: #64b5f6;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.blueprint-post-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 30px;
    color: white;
}

.post-meta-info {
    color: #b0b0b0;
    font-size: 16px;
}

.post-meta-info .post-date,
.post-meta-info .post-author {
    margin: 0 15px;
}

/* Post Content Section */
.blueprint-post-content {
    background-color: #1a2842;
    position: relative;
    opacity: 1;
    background-image: linear-gradient(#2a4060 2px, transparent 2px), linear-gradient(90deg, #2a4060 2px, transparent 2px), linear-gradient(#2a4060 1px, transparent 1px), linear-gradient(90deg, #2a4060 1px, #1a2842 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

.blueprint-post-content.services-intro-spacing {
    padding: 80px 0;
}

.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.blueprint-article {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper {
    margin-bottom: 40px;
}

.blueprint-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 40px;
    line-height: 1.8;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #1e3a8a;
    margin: 30px 0 20px;
    font-weight: 600;
}

.post-content h2 {
    font-size: 28px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 10px;
}

.post-content h3 {
    font-size: 24px;
}

.post-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #1e3a8a;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-tags {
    padding: 30px 40px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

.post-tags h4 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 16px;
}

.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list li {
    background: #64b5f6;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin: 0;
}

/* Related Posts Section */
.related-blueprints {
    padding: 60px 20px;
}

.related-blueprints h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

/* Post Navigation */
.post-navigation-section {
    padding: 40px 20px;
    background: white;
    border-top: 1px solid #e5e5e5;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.nav-previous,
.nav-next {
    flex: 0 0 45%;
}

.nav-next {
    text-align: right;
}

.nav-link {
    display: block;
    color: #1e3a8a;
    text-decoration: none;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f8f9fa;
    border-color: #64b5f6;
    transform: translateY(-2px);
}

.nav-direction {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.nav-title {
    font-size: 16px;
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blueprint-post-title {
        font-size: 32px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-tags {
        padding: 20px;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-previous,
    .nav-next {
        flex: 1 1 100%;
        text-align: center;
    }
    
    .blueprints-single-hero {
        padding: 80px 20px 60px;
    }
}

@media (max-width: 480px) {
    .blueprint-post-title {
        font-size: 28px;
    }
    
    .post-meta-info .post-date,
    .post-meta-info .post-author {
        display: block;
        margin: 5px 0;
    }
}

/* Mission Statement and Corporate Values Section */
.mission-values-section {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
    opacity: 1;
    background-image: linear-gradient(#e8ecf0 2px, transparent 2px), linear-gradient(90deg, #e8ecf0 2px, transparent 2px), linear-gradient(#e8ecf0 1px, transparent 1px), linear-gradient(90deg, #e8ecf0 1px, #ffffff 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
}

.mission-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

.mission-column,
.values-column {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.mission-column {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a7c 100%);
    border-radius: 20px 0 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.values-column {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a7c 100%);
    border-radius: 0 20px 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.mission-logo {
    text-align: center;
    margin-bottom: 30px;
}

.cates-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mission-title,
.values-title {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mission-content {
    text-align: center;
    padding: 0 25px;
}

.mission-content p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.values-subtitle {
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    padding: 0 25px;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 25px;
}

.value-item {
    text-align: center;
}

.value-item h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.value-item p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Responsive Design for Mission Values */
@media (max-width: 768px) {
    .mission-values-section {
        padding: 60px 0;
    }
    
    .mission-values-grid {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }
    
    .mission-column {
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .values-column {
        border-radius: 0 0 12px 12px;
        margin-top: 0;
    }
    
    .cates-logo {
        max-width: 150px;
    }
    
    .mission-logo {
        margin-bottom: 25px;
    }
    
    .mission-title,
    .values-title {
        font-size: 22px;
    }
    
    .mission-content p {
        font-size: 15px;
    }
    
    .values-subtitle {
        font-size: 15px;
    }
    
    .value-item h3 {
        font-size: 17px;
    }
    
    .value-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mission-values-section {
        padding: 40px 0;
    }
    
    .mission-values-grid {
        gap: 30px;
    }
    
    .cates-logo {
        max-width: 120px;
    }
    
    .mission-logo {
        margin-bottom: 20px;
    }
    
    .mission-title,
    .values-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .values-list {
        gap: 15px;
    }
}

/* Services Page Background */
.services-intro {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background-image: url('http://localhost:8080/wp-content/uploads/2025/08/masonry-projects/project-07.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.services-intro .container {
    position: relative;
    z-index: 3;
}

.services-intro .intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.services-intro .intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design for Services Background */
@media (max-width: 768px) {
    .services-intro {
        padding: 80px 0;
    }
    
    .services-intro .intro-content {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .services-intro .intro-text {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* The Cates Way Section Styles */
.cates-way-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a2332 0%, #2a3442 50%, #0066cc 100%);
    position: relative;
}

.cates-way-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><g fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></g></svg>');
}

.cates-way-section .container {
    position: relative;
    z-index: 1;
}

.cates-way-title {
    font-size: 36px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cates-way-intro {
    font-size: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.cates-way-grid {
    display: grid;
    gap: 40px 30px;
    margin-bottom: 50px;
}

/* Row 1: 2 columns */
.cates-way-row-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Row 2: 3 columns */
.cates-way-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Row 3: 2 columns */
.cates-way-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cates-way-item {
    padding: 0;
    text-align: left;
}

.cates-way-item h3 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cates-way-item h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #87ceeb, #d3d3d3);
    border-radius: 2px;
}

.cates-way-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cates-way-footer {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.cates-way-footer p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for The Cates Way */
@media (max-width: 1024px) {
    .cates-way-row-2 {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .cates-way-row-2 .cates-way-item:nth-child(3) {
        grid-column: 1 / span 2;
        text-align: center;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .cates-way-section {
        padding: 60px 0;
    }
    
    .cates-way-title {
        font-size: 28px;
    }
    
    .cates-way-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .cates-way-row-1,
    .cates-way-row-2,
    .cates-way-row-3 {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .cates-way-row-2 .cates-way-item:nth-child(3) {
        grid-column: 1;
        text-align: left;
        max-width: 100%;
        margin: 0;
    }
    
    .cates-way-item h3 {
        font-size: 20px;
    }
    
    .cates-way-item p {
        font-size: 15px;
    }
    
    .cates-way-footer {
        padding-top: 20px;
        margin-top: 30px;
    }
    
    .cates-way-footer p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cates-way-section {
        padding: 40px 0;
    }
    
    .cates-way-row-1,
    .cates-way-row-2,
    .cates-way-row-3 {
        gap: 25px;
        margin-bottom: 25px;
    }
    
    .cates-way-item h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .cates-way-item h3::after {
        width: 40px;
        height: 2px;
        bottom: -6px;
    }
    
    .cates-way-item p {
        font-size: 14px;
    }
}
/* ========================================
   PROJECTS FILTERED PAGE STYLES v2.2 - Sidebar Layout
   ======================================== */

/* Main Layout Structure */
.projects-content-wrapper {
    padding: 60px 0;
    background: #f8f9fa;
}

.projects-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Main Content Area */
.projects-main-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.projects-header .section-title {
    margin: 0;
    font-size: 28px;
}

.results-count {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Sidebar Filter Panel */
.projects-sidebar {
    position: sticky;
    top: 20px;
}

.filter-panel {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.filter-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 0;
}

/* Checkbox Styles - Tightened */
.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.2s ease;
    font-size: 15px;
}

.filter-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #bdc3c7;
    border-radius: 3px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark:after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Main Options - Tightened */
.filter-checkbox.main-option {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.filter-checkbox.main-option.standalone {
    margin-bottom: 0;
}

/* Sub Options - Tightened */
.sub-options {
    margin-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 5px;
}

.filter-checkbox.sub-option {
    font-size: 13px;
    color: #7f8c8d;
    padding: 3px 0;
}

.filter-checkbox.sub-option .checkmark {
    height: 16px;
    width: 16px;
}

/* Filter Actions */
.filter-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    margin-top: 20px;
}

.btn-clear {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-clear:hover {
    background: #c0392b;
}

/* Projects Grid - Fixed Layout */
.projects-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    margin-top: 40px !important;
    width: 100% !important;
}

/* Active States */
.filter-checkbox.active {
    color: #3498db;
    font-weight: 700;
}

.filter-checkbox.sub-option.active {
    color: #3498db;
    font-weight: 600;
}

/* Responsive Design for Sidebar Layout */
@media (max-width: 768px) {
    .projects-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-sidebar {
        order: -1;
        position: static;
    }
    
    .filter-panel {
        padding: 20px;
    }
    
    .sub-options {
        margin-left: 0;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .projects-main-content {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    }
}

@media (min-width: 1025px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
}

/* Force override any theme conflicts */
.projects-filtered-page .projects-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

.projects-filtered-page .structural-filters {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr !important;
}

/* ====================================
   CAREERS PAGE STYLES
   ==================================== */

/* Careers Archive Page Header */
.careers-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.careers-header .page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    padding-top: 1em;
}

.careers-header .page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Careers Listing Grid */
.careers-listing {
    padding: 80px 0;
    background: #f8f9fa;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.career-card {
    background: white;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.career-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.career-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.career-card-title a:hover {
    color: #3498db;
}

.career-card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.career-card-meta {
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.career-date {
    font-weight: 600;
}

.career-card-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.career-card-link:hover {
    color: #2980b9;
    transform: translateX(5px);
}

/* No Careers Message */
.no-careers {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.no-careers p {
    font-size: 1.2rem;
    color: #555;
}

/* Careers Pagination */
.careers-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.careers-pagination .pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.careers-pagination .page-numbers {
    padding: 10px 18px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.careers-pagination .page-numbers:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.careers-pagination .page-numbers.current {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* Single Career Post */
.career-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.career-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    padding-top: 1.5em;
}

.career-content {
    padding: 80px 0;
    background: white;
}

.career-article {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.career-content-wrapper {
    line-height: 1.8;
    color: #333;
}

.career-content-wrapper h2,
.career-content-wrapper h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.career-content-wrapper ul,
.career-content-wrapper ol {
    margin: 20px 0;
    padding-left: 30px;
}

.career-content-wrapper li {
    margin-bottom: 10px;
}

.career-meta {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.career-date-posted {
    font-size: 0.875rem;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* Career Apply Section */
.career-apply-section {
    margin-top: 50px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.career-apply-section h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.career-apply-section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.career-apply-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.career-apply-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Career View Button */
.career-view-btn {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.career-view-btn:hover {
    background: #34495e;
    transform: translateY(-2px);
}

/* Career Application Form */
.career-application-form {
    margin-top: 40px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive Careers Styles */
@media (max-width: 768px) {
    .careers-header .page-title {
        font-size: 2rem;
    }
    
    .careers-header .page-subtitle {
        font-size: 1rem;
    }
    
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .career-card {
        padding: 25px;
    }
    
    .career-title {
        font-size: 2rem;
    }
    
    .career-article {
        padding: 30px 20px;
    }
    
    .careers-listing {
        padding: 40px 0;
    }
    
    .career-content {
        padding: 40px 0;
    }
}

/* ===================================
   Racing Schedule Styles
   =================================== */

.racing-schedule-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.racing-schedule-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
}

.racing-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.racing-schedule-table thead {
    background: #2c3e50;
    color: white;
}

.racing-schedule-table thead th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.racing-schedule-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.racing-schedule-table tbody tr:hover {
    background-color: #f8f9fa;
}

.racing-schedule-table tbody td {
    padding: 15px 12px;
    color: #333;
    font-size: 0.95rem;
}

.racing-schedule-table tbody td:first-child {
    font-weight: 600;
    color: #2c3e50;
}

.racing-schedule-table tbody td:nth-child(2) {
    color: #0073aa;
    font-weight: 500;
}

.no-races-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}

/* Past Races Section */
.past-races-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.past-races-toggle {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.past-races-toggle:hover {
    background: #e9ecef;
    border-color: #0073aa;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.past-races-content {
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.past-races-table tbody tr {
    opacity: 0.7;
}

.past-races-table tbody td {
    color: #666;
}

.past-races-table tbody td:first-child {
    color: #555;
}

.past-races-table tbody td:nth-child(2) {
    color: #888;
}

/* Responsive Racing Schedule */
@media (max-width: 1024px) {
    .racing-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .racing-left-column {
        order: 2;
    }
    
    .racing-right-column {
        order: 1;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .racing-schedule-section {
        padding: 20px;
    }
    
    .racing-schedule-section h2 {
        font-size: 1.5rem;
    }
    
    .racing-schedule-table {
        font-size: 0.9rem;
    }
    
    .racing-schedule-table thead th,
    .racing-schedule-table tbody td {
        padding: 10px 8px;
    }
    
    .racing-layout {
        margin: 40px 0;
    }
}

@media (max-width: 600px) {
    .racing-schedule-table thead th:nth-child(3),
    .racing-schedule-table tbody td:nth-child(3) {
        display: none;
    }
    
    .racing-schedule-table tbody td:first-child::after {
        content: attr(data-location);
        display: block;
        font-size: 0.85rem;
        color: #888;
        font-weight: normal;
        margin-top: 5px;
    }
}
/* ========================================
   Mobile Menu Hamburger
   ======================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #003d82;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when menu is open */
.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .mobile-menu-toggle .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}



/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar-center {
        flex: 1;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-menu a {
        font-size: 14px;
        padding: 8px 12px;
    }
}
