/**
 * STERTECK Custom Header and Footer Styles
**/

/* Create boxed layout container */
body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Main boxed container wrapper */
.sterteck-boxed-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Hide default WordPress header */
#header,
.site-header,
header[id="header"] {
    display: none !important;
}

/* Hide default WordPress footer */
#footer,
.site-footer,
footer[id="footer"],
.wp-site-blocks footer {
    display: none !important;
}

/* Hide any default WordPress HR tags and separators */
body hr,
.wp-block-separator,
.wp-block-spacer,
body > hr,
main > hr,
.entry-content > hr:first-child,
.site-content > hr:first-child {
    display: none !important;
}

/* Custom Header Container */
.sterteck-custom-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 2px solid #e5e5e5;
    position: relative;
    z-index: 100;
}

.sterteck-header-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from space-between to flex-start */
    position: relative;
    min-height: 200px; /* Reduced from 450px */
}

/* Left Container - STERTECK Logo (bigger and more prominent) */
.sterteck-left-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed to flex-start to move logo left */
    padding-right: 20px; /* Keep padding */
    padding-left: 40px; /* Increased padding to position logo over gear */
    position: relative; /* Added for background gear positioning */
}

.sterteck-logo-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2; /* Ensure logo is above background gear */
}

.sterteck-main-logo {
    height: 350px; /* Reduced from 480px for shorter header */
    width: auto;
    max-width: 306px; /* Reduced proportionally */
    object-fit: contain;
}

/* Background gear image */
.sterteck-left-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -55px; /* Perfect setting to make gear touch the border */
    transform: translateY(-50%); /* Only center vertically */
    width: 270px; /* Reduced from 300px */
    height: 300px; /* Reduced from 350px */
    background-image: url('./assets/images/gray-gear.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    z-index: 1; /* Behind the logo */
}

/* Vertical Divider Line */
.sterteck-divider {
    width: 3px;
    height: 180px; /* Reduced from 250px to match smaller header */
    background-color: #000000;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Right Container - Joint Venture (smaller than left) */
.sterteck-right-container {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from center to flex-start */
    padding-left: 0px; /* Reduced from 10px to move further left */
    padding-right: 20px; /* Keep right padding for balance */
}

.sterteck-joint-venture {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.joint-venture-text {
    text-align: center;
    margin-bottom: 5px;
}

.joint-venture-text span {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #CA2027;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Partner Logos Container - Side by side layout */
.partner-logos {
    display: flex;
    flex-direction: row;
    gap: 30px; /* Increased from 20px */
    align-items: center;
    justify-content: center;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CENTEX Logo Styling */
.centex-logo {
    height: 120px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Sterling Logo Styling */
.sterling-logo {
    height: 180px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

/* SBA Mentor-Protégé Section */
.sba-mentor-section {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sba-mentor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sba-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.sba-text {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0458A2;
    letter-spacing: 1px;
    text-align: center;
}

/* Standard Header Styling */
.sterteck-standard-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sterteck-standard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.sterteck-standard-logo-container {
    text-align: center;
    max-width: 100%;
}

.sterteck-standard-logo-wrapper {
    display: inline-block;
    max-width: 100%;
}

.sterteck-standard-logo {
    height: 80px;
    width: auto;
    max-width: 300px;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Responsive Design for Standard Header */
@media (max-width: 768px) {
    .sterteck-standard-header {
        padding: 15px 0;
    }
    
    .sterteck-standard-container {
        padding: 0 15px;
    }
    
    .sterteck-standard-logo {
        height: 50px;
        max-height: 50px;
        max-width: 250px;
    }
    
    /* Standard page padding (non-Elementor pages) - Multiple selectors for reliability */
    .page-template-page .page-content-wrapper,
    .page-template-default .page-content-wrapper,
    .page:not(.page-template-sterteck-custom) .page-content-wrapper,
    body:not(.elementor-page) .page-content-wrapper {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .sterteck-standard-header {
        padding: 10px 0;
    }
    
    .sterteck-standard-container {
        padding: 0 10px;
    }
    
    .sterteck-standard-logo {
        height: 40px;
        max-height: 40px;
        max-width: 200px;
    }
    
    /* Standard page padding (non-Elementor pages) - Multiple selectors for reliability */
    .page-template-page .page-content-wrapper,
    .page-template-default .page-content-wrapper,
    .page:not(.page-template-sterteck-custom) .page-content-wrapper,
    body:not(.elementor-page) .page-content-wrapper {
        padding: 10px;
    }
}

/* Page Content Styling */
.sterteck-page-content {
    background-color: #ffffff;
}

.page-content-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Arial', sans-serif;
}

/* Standard page padding (non-Elementor pages) - Multiple selectors for reliability */
.page-template-page .page-content-wrapper,
.page-template-default .page-content-wrapper,
.page:not(.page-template-sterteck-custom) .page-content-wrapper,
body:not(.elementor-page) .page-content-wrapper {
    padding: 20px;
}

/* Ensure Elementor content matches boxed width */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1140px !important;
}

/* Elementor Compatibility */
.elementor-page .sterteck-page-content {
    padding: 0;
}

.elementor-page .page-content-wrapper {
    width: 100%;
}

/* Responsive Design */

/* Desktop and larger screens - boxed layout with borders */
@media (min-width: 1200px) {
    .sterteck-boxed-wrapper {
        max-width: 1140px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid #e0e0e0;
        border-right: 1px solid #e0e0e0;
    }
    
    .sterteck-page-content {
        min-height: calc(100vh - 500px);
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .sterteck-boxed-wrapper {
        max-width: 100%;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
    
    .sterteck-header-container {
        max-width: 960px;
        padding: 0 15px;
        min-height: 300px;
    }
    
    .sterteck-left-container,
    .sterteck-right-container {
        padding-left: 15px; /* Reduced padding */
        padding-right: 15px; /* Reduced padding */
    }
    
    .sterteck-main-logo {
        height: 300px; /* Increased from 250px */
        max-width: 320px; /* Increased from 280px */
    }
    
    /* Adjust background gear for tablet */
    .sterteck-left-container::before {
        width: 200px;
        height: 200px;
        left: -40px; /* Proportionally adjusted for tablet */
        transform: translateY(-50%);
    }
    
    .sterteck-divider {
        height: 200px;
    }
    
    .centex-logo {
        height: 80px;
        max-width: 130px;
    }
    
    .sterling-logo {
        height: 120px;
        max-width: 150px;
    }
    
    .joint-venture-text span {
        font-size: 14px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sterteck-custom-header {
        padding: 20px 0;
    }
    
    .sterteck-header-container {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
        padding: 0 15px;
    }
    
    .sterteck-left-container,
    .sterteck-right-container {
        flex: none;
        width: 100%;
        padding: 0;
        justify-content: center;
    }
    
    .sterteck-divider {
        display: none;
    }
    
    .sterteck-main-logo {
        height: 220px; /* Increased from 180px */
        max-width: 280px; /* Increased from 250px */
    }
    
    /* Show background gear on mobile - adjusted for mobile layout */
    .sterteck-left-container::before {
        width: 180px; /* Smaller than desktop but still visible */
        height: 200px; /* Proportional to mobile layout */
        left: -35px; /* Adjusted for mobile container */
        transform: translateY(-50%);
        opacity: 1; /* Keep full opacity as requested */
    }
    
    .joint-venture-text span {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .centex-logo {
        height: 60px;
        max-width: 140px;
    }
    
    .sterling-logo {
        height: 90px;
        max-width: 160px;
    }
    
    .partner-logos {
        gap: 25px;
        flex-direction: row;
    }
    
    /* SBA Mentor-Protégé mobile styles */
    .sba-mentor-section {
        margin-top: 5px;
    }
    
    .sba-logo {
        height: 50px;
        max-width: 80px;
    }
    
    .sba-text {
        font-size: 12px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .sterteck-custom-header {
        padding: 15px 0;
    }
    
    .sterteck-header-container {
        padding: 0 10px;
        gap: 25px;
    }
    
    .sterteck-main-logo {
        height: 150px; /* Increased from 120px */
        max-width: 230px; /* Increased from 200px */
    }
    
    .centex-logo {
        height: 45px;
        max-width: 110px;
    }
    
    .sterling-logo {
        height: 65px;
        max-width: 130px;
    }
    
    .joint-venture-text span {
        font-size: 12px;
    }
    
    .partner-logos {
        gap: 20px;
    }
    
    /* SBA Mentor-Protégé small mobile styles */
    .sba-mentor-section {
        margin-top: 5px;
    }
    
    .sba-logo {
        height: 40px;
        max-width: 70px;
    }
    
    .sba-text {
        font-size: 10px;
    }
}

/* Print Styles */
@media print {
    .sterteck-custom-header {
        background-color: white !important;
        border-bottom: 1px solid #000;
    }
    
    .sterteck-divider {
        background-color: #000 !important;
    }
}

/* Custom Footer Styles */
.sterteck-custom-footer {
    background-color: #e5e5e5;
    padding: 20px 0;
    border-top: 1px solid #cccccc;
    position: relative;
    z-index: 100;
}

.sterteck-footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Changed from space-between to flex-start */
    min-height: 60px;
}

/* Footer Left - Location and Phone */
.sterteck-footer-left {
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex: 2; /* Add flex to control spacing */
    padding-left: 40px; /* Add left padding to move it right */
    padding-right: 40px; /* Add right padding for spacing */
}

.footer-location {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.location-texas {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-dot {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #CA2027;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-south-dakota {
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-divider {
    width: 3px;
    height: 30px;
    background-color: #000000;
    align-self: center;
}

.footer-phone span {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

/* Footer Right - Partner Logos */
.sterteck-footer-right {
    display: flex;
    align-items: center;
    flex: 1.2; /* Add flex to control spacing */
    justify-content: flex-start; /* Align to left side of container */
    padding-left: 20px; /* Add left padding to move closer to center */
    padding-right: 40px; /* Add right padding for balance */
}

.footer-partner-logos {
    display: flex;
    flex-direction: row;
    gap: 35px;
    align-items: center;
}

.footer-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Logo Sizing */
.footer-centex-logo {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-sterling-logo {
    height: 100px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
    .sterteck-footer-container {
        max-width: 1140px;
        padding: 0 15px;
    }
    
    .footer-centex-logo {
        height: 80px;
        max-width: 170px;
    }
    
    .footer-sterling-logo {
        height: 80px;
        max-width: 190px;
    }
}

@media (max-width: 768px) {
    .sterteck-footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px 15px;
    }
    
    .sterteck-footer-left {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .location-texas,
    .location-dot,
    .location-south-dakota {
        font-size: 15px;
    }
    
    .footer-phone span {
        font-size: 15px;
    }
    
    .footer-divider {
        width: 40px;
        height: 2px;
    }
    
    .footer-partner-logos {
        gap: 25px;
    }
    
    .footer-centex-logo {
        height: 65px;
        max-width: 150px;
    }
    
    .footer-sterling-logo {
        height: 65px;
        max-width: 170px;
    }
}

@media (max-width: 480px) {
    .sterteck-footer-container {
        padding: 15px 10px;
    }
    
    .footer-partner-logos {
        gap: 20px;
    }
    
    .footer-centex-logo {
        height: 50px;
        max-width: 120px;
    }
    
    .footer-sterling-logo {
        height: 50px;
        max-width: 140px;
    }
    
    .location-texas,
    .location-dot,
    .location-south-dakota {
        font-size: 14px;
    }
    
    .footer-phone span {
        font-size: 14px;
    }
    
    .footer-divider {
        width: 35px;
        height: 2px;
    }
}

/* Elementor Custom Sections */

/* About Us and Capabilities Row */
.about-capabilities-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.about-us-content h2 {
    font-family: 'Arial', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-us-content p {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 15px;
}

.capabilities-content h2 {
    font-family: 'Arial', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Capabilities Buttons */
.capabilities-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.capability-button {
    background-color: #CA2027;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
    min-width: 250px;
    box-sizing: border-box;
}

.capability-button:hover {
    background-color: #a01a1f;
    color: white;
    text-decoration: none;
}

/* Dropdown for Information Sheets */
.dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.dropdown-container.active .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    color: #fff;
    background-color: #CA2027;
    text-decoration: none;
}

/* Leadership Section */
.leadership-section {
    padding: 10px 0;
    /* Removed background-color to allow Elementor row background to show through */
}

.leadership-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leadership-container {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 60px;
}

.leadership-grid {
    display: flex;
    overflow-x: auto;
    gap: 50px; /* Increased from 30px for better desktop spacing */
    align-items: center;
    justify-content: flex-start;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.leadership-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.leadership-person {
    flex-shrink: 0;
    text-align: center;
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px;
    max-width: 280px;
}

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

/* Force override Elementor's image styles for leadership photos */
.leadership-person .leadership-photo,
.elementor .leadership-person .leadership-photo,
.elementor-widget .leadership-person .leadership-photo,
.leadership-section .leadership-photo,
.leadership-grid .leadership-photo {
    width: 180px !important;
    height: 180px !important;
    border-radius: 8px !important; /* Changed from 50% to 8px for square with rounded corners */
    object-fit: cover !important;
    object-position: center top !important; /* Focus on the top center of the image for better face cropping */
    margin: 0 auto 20px auto !important;
    display: block !important;
    border: 4px solid #f0f0f0 !important;
    transition: border-color 0.3s ease;
    background-color: #f8f8f8 !important; /* Fallback background in case image doesn't load */
    box-sizing: border-box !important; /* Include border in dimensions */
    flex-shrink: 0 !important; /* Prevent image from shrinking */
    max-width: 180px !important; /* Override any max-width from Elementor */
    min-width: 180px !important; /* Override any min-width from Elementor */
    max-height: 180px !important; /* Override any max-height from Elementor */
    min-height: 180px !important; /* Override any min-height from Elementor */
}

.leadership-person:hover .leadership-photo {
    border-color: #CA2027;
}

.leadership-name {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leadership-title {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #666666;
    font-style: italic;
    line-height: 1.4;
}

/* Leadership Navigation Arrows */
.leadership-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #CA2027;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.leadership-nav-arrow:hover {
    background-color: #a01a1f;
    transform: translateY(-50%) scale(1.1);
}

.leadership-nav-arrow.left {
    left: 10px;
}

.leadership-nav-arrow.right {
    right: 10px;
}

.leadership-nav-arrow:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.leadership-nav-arrow:disabled:hover {
    background-color: #ccc;
    transform: translateY(-50%) scale(1);
}

/* Hide leadership arrows on large screens when all persons fit */
@media (min-width: 1200px) {
    .leadership-nav-arrow {
        display: none;
    }
    
    .leadership-container {
        padding: 0 20px;
    }
    
    .leadership-grid {
        justify-content: center;
    }
}

/* Certifications Section */
.certifications-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.certifications-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.certifications-container {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 60px;
}

.certifications-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.certifications-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.certification-logo {
    height: 100px;
    width: 130px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    filter: grayscale(0%);
    transition: filter 0.3s ease, transform 0.3s ease;
    background-color: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    box-sizing: border-box;
}

.certification-logo:hover {
    filter: grayscale(100%);
    transform: scale(1.05);
}

/* Navigation Arrows */
.cert-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #CA2027;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cert-nav-arrow:hover {
    background-color: #a01a1f;
    transform: translateY(-50%) scale(1.1);
}

.cert-nav-arrow.left {
    left: 1px; /* Further decreased from 5px to move arrow even more away from content */
}

.cert-nav-arrow.right {
    right: 1px; /* Further decreased from 5px to move arrow even more away from content */
}

.cert-nav-arrow:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.cert-nav-arrow:disabled:hover {
    background-color: #ccc;
    transform: translateY(-50%) scale(1);
}

/* Hide arrows on large screens when all images fit - REMOVED to allow arrows when content overflows */
@media (min-width: 1200px) {
    .certifications-container {
        padding: 0 30px; /* Increased from 25px to provide even more space for arrows */
    }
    
    .certifications-grid {
        justify-content: flex-start; /* Changed from center to flex-start to accommodate overflow */
    }
}

/* Partnerships Section */
.partnerships-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.partnerships-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partnerships-container {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 60px;
}

.partnerships-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    align-items: center;
    justify-content: center; /* Changed from flex-start to center to center logos when they fit */
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.partnerships-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.partnership-logo {
    height: 100px;
    width: 130px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    filter: grayscale(0%);
    transition: filter 0.3s ease, transform 0.3s ease;
    background-color: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    box-sizing: border-box;
}

.partnership-logo:hover {
    filter: grayscale(100%);
    transform: scale(1.05);
}

/* Navigation Arrows */
.partner-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #CA2027;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.partner-nav-arrow:hover {
    background-color: #a01a1f;
    transform: translateY(-50%) scale(1.1);
}

.partner-nav-arrow.left {
    left: 1px; /* Same positioning as certifications arrows */
}

.partner-nav-arrow.right {
    right: 1px; /* Same positioning as certifications arrows */
}

.partner-nav-arrow:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.partner-nav-arrow:disabled:hover {
    background-color: #ccc;
    transform: translateY(-50%) scale(1);
}

/* Hide arrows on large screens when all images fit - REMOVED to allow arrows when content overflows */
@media (min-width: 1200px) {
    .partnerships-container {
        padding: 0 30px; /* Same spacing as certifications */
    }
    
    .partnerships-grid {
        justify-content: center; /* Changed from flex-start to center to center logos when they fit */
    }
}

/* Contact Form Section */
.contact-section {
    background-color: #CA2027;
    padding: 60px 0;
    color: white;
}

.contact-section h2 {
    font-family: 'Arial', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Form 7 Styling */
.contact-section .wpcf7-form {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section .wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    background-color: white;
    color: #333333;
}

.contact-section .wpcf7-form-control:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.contact-section .wpcf7-submit {
    background-color: white;
    color: #CA2027;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-section .wpcf7-submit:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Custom Home Contact Form Styling - WPForms */
.home-ct-form {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

/* WPForms Field Styling */
.home-ct-form .wpforms-field input,
.home-ct-form .wpforms-field textarea,
.home-ct-form .wpforms-field select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e5e5e5;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    background-color: #fafafa;
    color: #333333;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

/* WPForms Placeholder Styling */
.home-ct-form .wpforms-field input::placeholder,
.home-ct-form .wpforms-field textarea::placeholder {
    color: #CA2027 !important;
    font-weight: bold !important;
    opacity: 0.8;
}

.home-ct-form .wpforms-field input::-webkit-input-placeholder,
.home-ct-form .wpforms-field textarea::-webkit-input-placeholder {
    color: #CA2027 !important;
    opacity: 0.8;
}

.home-ct-form .wpforms-field input::-moz-placeholder,
.home-ct-form .wpforms-field textarea::-moz-placeholder {
    color: #CA2027 !important;
    opacity: 0.8;
}

.home-ct-form .wpforms-field input:-ms-input-placeholder,
.home-ct-form .wpforms-field textarea:-ms-input-placeholder {
    color: #CA2027 !important;
    opacity: 0.8;
}

/* WPForms Focus States */
.home-ct-form .wpforms-field input:focus,
.home-ct-form .wpforms-field textarea:focus,
.home-ct-form .wpforms-field select:focus {
    outline: none;
    border-color: #0458A2;
    background-color: white;
    box-shadow: 0 0 8px rgba(202, 32, 39, 0.2);
}

.home-ct-form .wpforms-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* WPForms Submit Button Positioning */
.home-ct-form .wpforms-submit,
.home-ct-form .home-ct-form-btn,
.home-ct-form button[type="submit"] {
    color: white !important;
    padding: 15px 30px;
    border: none;
    border-radius: 30px !important;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute !important;
    bottom: 30px !important;
    right: 30px !important;
    min-width: 140px;
    z-index: 10;
    float: none !important;
    margin: 0 !important;
}

.home-ct-form .wpforms-submit:hover,
.home-ct-form .home-ct-form-btn:hover,
.home-ct-form button[type="submit"]:hover {
    background-color: #fff !important;
    color: #CA2027 !important;
    transform: translateY(-2px);
}

/* WPForms Error Messages */
.home-ct-form .wpforms-error,
.home-ct-form .wpforms-field-error,
.home-ct-form .wpforms-error-message {
    color: white !important;
}

.wpforms-form em.wpforms-error:before {
    background-color: yellow !important;
}

/* Add bottom padding to form content to make space for absolute button and captcha */
.home-ct-form .wpforms-container-full,
.home-ct-form .wpforms-form {
    padding-bottom: 120px !important;
}

/* Ensure captcha appears above the button area */
.home-ct-form .wpforms-recaptcha,
.home-ct-form .h-captcha,
.home-ct-form .cf-turnstile {
    margin: 20px 0 40px 0 !important;
    display: block !important;
    clear: both !important;
}

/* Mobile captcha responsive fix */
@media (max-width: 480px) {
    .home-ct-form .wpforms-recaptcha,
    .home-ct-form .h-captcha,
    .home-ct-form .cf-turnstile {
        max-width: 100% !important;
        overflow: hidden !important;
        margin: 15px 0 30px 0 !important;
        width: 100% !important;
    }
    
    /* Turnstile specific mobile fix - more aggressive approach */
    .home-ct-form .cf-turnstile {
        transform: scale(0.75) !important;
        transform-origin: 0 0 !important;
        width: 133% !important; /* Compensate for the scale */
        max-width: 133% !important;
        height: auto !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
    
    .home-ct-form .cf-turnstile iframe {
        max-width: none !important;
        width: 300px !important;
        height: 65px !important;
        border: none !important;
        display: block !important;
    }
    
    /* Additional wrapper fix if needed */
    .home-ct-form .wpforms-field-turnstile {
        max-width: 100% !important;
        overflow: hidden !important;
        width: 100% !important;
    }
}

/* Custom 404 Error Page Styles */
.sterteck-404-content {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.error-404-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.error-number h1 {
    font-family: 'Arial', sans-serif;
    font-size: 120px;
    font-weight: 700;
    color: #CA2027;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-message h2 {
    font-family: 'Arial', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-message p {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    max-width: 600px;
}

.error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.btn-home {
    background-color: #CA2027;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 1px;
}

.btn-home:hover {
    background-color: #a01a1f;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(202, 32, 39, 0.3);
}

.search-container {
    width: 100%;
    max-width: 400px;
}

.search-container h3 {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-container .search-form {
    display: flex;
    max-width: 100%;
}

.search-container input[type="search"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 5px 0 0 5px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    background-color: #fafafa;
    color: #333333;
    outline: none;
}

.search-container input[type="search"]:focus {
    border-color: #CA2027;
    background-color: white;
}

.search-container input[type="submit"] {
    padding: 12px 20px;
    background-color: #CA2027;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-container input[type="submit"]:hover {
    background-color: #a01a1f;
}

.error-links {
    width: 100%;
    max-width: 500px;
}

.error-links h3 {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.error-links li {
    margin: 0;
}

.error-links a {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #CA2027;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #CA2027;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-links a:hover {
    background-color: #CA2027;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* 404 Page Responsive Design */
@media (max-width: 768px) {
    .sterteck-404-content {
        padding: 60px 15px;
    }
    
    .error-404-container {
        gap: 30px;
    }
    
    .error-number h1 {
        font-size: 80px;
    }
    
    .error-message h2 {
        font-size: 28px;
    }
    
    .error-message p {
        font-size: 16px;
    }
    
    .btn-home {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .search-container h3,
    .error-links h3 {
        font-size: 18px;
    }
    
    .error-links ul {
        flex-direction: column;
        align-items: center;
    }
    
    .error-links a {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sterteck-404-content {
        padding: 40px 10px;
    }
    
    .error-number h1 {
        font-size: 60px;
    }
    
    .error-message h2 {
        font-size: 24px;
    }
    
    .error-message p {
        font-size: 14px;
    }
    
    .btn-home {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .search-container input[type="search"],
    .search-container input[type="submit"] {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .error-links a {
        padding: 8px 15px;
        font-size: 14px;
        width: 180px;
    }
}

/* Responsive Design for Elementor Sections */
@media (max-width: 768px) {
    .about-capabilities-section {
        padding: 40px 0;
    }
    
    .about-us-content h2,
    .capabilities-content h2 {
        font-size: 24px;
    }
    
    .leadership-container {
        padding: 0 50px;
    }
    
    .leadership-grid {
        gap: 20px;
        padding: 15px 0;
    }
    
    .leadership-person {
        min-width: 240px;
        max-width: 240px;
        padding: 20px;
    }
    
    /* Force override Elementor's image styles for leadership photos - Tablet */
    .leadership-person .leadership-photo,
    .elementor .leadership-person .leadership-photo,
    .elementor-widget .leadership-person .leadership-photo,
    .leadership-section .leadership-photo,
    .leadership-grid .leadership-photo {
        width: 140px !important;
        height: 140px !important;
        border-radius: 6px !important; /* Changed from 50% to 6px for square with rounded corners */
        object-fit: cover !important;
        object-position: center top !important; /* Consistent with desktop for better face cropping */
        margin: 0 auto 20px auto !important;
        display: block !important;
        border: 4px solid #f0f0f0 !important;
        background-color: #f8f8f8 !important; /* Fallback background */
        box-sizing: border-box !important; /* Include border in dimensions */
        flex-shrink: 0 !important; /* Prevent image from shrinking */
        max-width: 140px !important; /* Override any max-width from Elementor */
        min-width: 140px !important; /* Override any min-width from Elementor */
        max-height: 140px !important; /* Override any max-height from Elementor */
        min-height: 140px !important; /* Override any min-height from Elementor */
    }
    
    .leadership-name {
        font-size: 18px;
    }
    
    .leadership-title {
        font-size: 14px;
    }
    
    .leadership-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .leadership-nav-arrow.left {
        left: 5px;
    }
    
    .leadership-nav-arrow.right {
        right: 5px;
    }
    
    .certifications-container {
        padding: 0 50px;
    }
    
    .certifications-grid {
        gap: 15px;
        padding: 15px 0;
    }
    
    .certification-logo {
        height: 60px;
        width: 90px;
        padding: 8px;
    }
    
    .cert-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .cert-nav-arrow.left {
        left: 5px;
    }
    
    .cert-nav-arrow.right {
        right: 5px;
    }
    
    .partnerships-container {
        padding: 0 50px;
    }
    
    .partnerships-grid {
        gap: 15px;
        padding: 15px 0;
    }
    
    .partnership-logo {
        height: 60px;
        width: 90px;
        padding: 8px;
    }
    
    .partner-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .partner-nav-arrow.left {
        left: 5px;
    }
    
    .partner-nav-arrow.right {
        right: 5px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-section h2 {
        font-size: 28px;
    }
    
    /* Responsive Home Contact Form - WPForms */
    .home-ct-form {
        max-width: 90%;
        padding: 25px;
        margin: 0 auto;
    }
    
    .home-ct-form .wpforms-submit,
    .home-ct-form .home-ct-form-btn,
    .home-ct-form button[type="submit"] {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        width: 100% !important;
        margin-top: 20px !important;
    }
    
    .home-ct-form .wpforms-container-full,
    .home-ct-form .wpforms-form {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .about-us-content h2,
    .capabilities-content h2 {
        font-size: 20px;
    }
    
    .capabilities-buttons {
        gap: 15px;
        max-width: 280px;
    }
    
    .capability-button {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 220px;
    }
    
    .leadership-container {
        padding: 0 20px; /* Reduced padding for mobile */
    }
    
    .leadership-grid {
        flex-direction: column; /* Stack vertically on mobile */
        gap: 25px; /* Increased gap between stacked cards */
        padding: 20px 0;
        justify-content: center;
        overflow-x: visible;
        align-items: center; /* Center the stacked cards */
    }
    
    .leadership-person {
        min-width: 300px; /* Increased from 160px for full row width */
        max-width: 300px; /* Increased from 160px for full row width */
        padding: 25px; /* Increased from 12px for better spacing */
        width: 100%; /* Take full available width */
    }
    
    /* Force override Elementor's image styles for leadership photos - Mobile */
    .leadership-person .leadership-photo,
    .elementor .leadership-person .leadership-photo,
    .elementor-widget .leadership-person .leadership-photo,
    .leadership-section .leadership-photo,
    .leadership-grid .leadership-photo {
        width: 150px !important; /* Increased from 80px for better visibility */
        height: 150px !important; /* Increased from 80px for better visibility */
        border-radius: 6px !important; /* Changed from 50% to 6px for square with rounded corners */
        object-fit: cover !important;
        object-position: center top !important; /* Consistent cropping for better face visibility */
        margin: 0 auto 15px auto !important; /* Increased margin */
        display: block !important;
        border: 4px solid #f0f0f0 !important;
        background-color: #f8f8f8 !important; /* Fallback background */
        box-sizing: border-box !important; /* Include border in dimensions */
        flex-shrink: 0 !important; /* Prevent image from shrinking */
        max-width: 150px !important; /* Override any max-width from Elementor */
        min-width: 150px !important; /* Override any min-width from Elementor */
        max-height: 150px !important; /* Override any max-height from Elementor */
        min-height: 150px !important; /* Override any min-height from Elementor */
    }
    
    .leadership-name {
        font-size: 18px; /* Increased from 14px for better readability */
        margin-bottom: 8px; /* Increased margin */
    }
    
    .leadership-title {
        font-size: 14px; /* Increased from 11px for better readability */
    }
    
    /* Hide navigation arrows completely on mobile */
    .leadership-nav-arrow {
        display: none !important;
    }
    
    .certifications-container {
        padding: 0 45px;
    }
    
    .certifications-grid {
        gap: 5px;
        padding: 10px 0;
    }
    
    .certification-logo {
        height: 50px;
        width: 75px;
        padding: 6px;
    }
    
    .cert-nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    /* Move arrows further to edges for more space on small mobile */
    .cert-nav-arrow.left {
        left: -10px; /* Move further left */
    }
    
    .cert-nav-arrow.right {
        right: -10px; /* Move further right */
    }
    
    /* Reduce container padding for more certification space */
    .certifications-container {
        padding: 0 20px; /* Reduced from 45px */
    }
    
    .partnerships-grid {
        gap: 5px;
        padding: 10px 0;
    }
    
    .partnership-logo {
        height: 50px;
        width: 75px;
        padding: 6px;
    }
    
    .partner-nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    /* Move arrows further to edges for more space on small mobile - same as certifications */
    .partner-nav-arrow.left {
        left: -10px; /* Move further left - same as certifications */
    }
    
    .partner-nav-arrow.right {
        right: -10px; /* Move further right - same as certifications */
    }
    
    /* Reduce container padding for more partnership space - same as certifications */
    .partnerships-container {
        padding: 0 20px !important; /* Added !important to override earlier declaration */
    }
}

/* Additional mobile partnership fixes to override tablet styles */
@media (max-width: 480px) {
    .partnerships-container {
        padding: 0 10px !important; /* Even more aggressive padding reduction for mobile */
    }
    
    .partnerships-grid {
        margin: 0 15px !important; /* Add margin to grid to create buffer from arrows */
        padding: 20px 0 !important; /* Ensure grid has internal padding */
    }
    
    .partner-nav-arrow.left {
        left: -20px !important; /* Move arrows even further out */
    }
    
    .partner-nav-arrow.right {
        right: -20px !important; /* Move arrows even further out */
    }
    
    .partnership-logo {
        min-width: 75px !important; /* Ensure logos maintain minimum width */
        flex-shrink: 0 !important; /* Prevent logos from shrinking */
    }
    
    /* Add extra space to the first partnership logo to test visibility */
    .partnership-logo:first-child {
        margin-left: 230px !important; /* Increased to make nvidia logo fully visible */
        padding-left: 10px !important; /* Add left padding to first logo */
    }
    
    /* Mobile Home Contact Form - WPForms */
    .home-ct-form {
        max-width: 95%;
        padding: 20px;
    }
    
    .home-ct-form .wpforms-field input,
    .home-ct-form .wpforms-field textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .home-ct-form .wpforms-submit,
    .home-ct-form .home-ct-form-btn,
    .home-ct-form button[type="submit"] {
        padding: 12px 25px !important;
        font-size: 14px !important;
        min-width: 120px !important;
    }
}

