/* Fix background image paths - apply only to header sections */
.h1-wrap.cms-bg-1 {
    background-image: url(../images/bg-man-2000x600.jpg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 400px !important;
    padding: 60px 0 !important;
    margin-bottom: 0 !important; /* Remove bottom margin for bar effect */
    position: relative !important;
    margin-top: 0 !important; /* No extra margin needed now */
}

/* Add dark bar below background image */
.h1-wrap.cms-bg-1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #2b2b2b !important; /* Match navigation bar color and thickness */
    z-index: 10;
}

.h1-wrap.cms-bg-2 {
    background-image: url(../images/bg-win-loss-2000x600.jpg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 400px !important;
    padding: 60px 0 !important;
    margin-bottom: 0 !important; /* Remove bottom margin for bar effect */
    position: relative !important;
}

/* Add dark bar below background image */
.h1-wrap.cms-bg-2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #2b2b2b !important; /* Match navigation bar color and thickness */
    z-index: 10;
}

.h1-wrap.cms-bg-3 {
    background-image: url(../images/bg-clock-2000x600.jpg) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 400px !important;
    padding: 60px 0 !important;
    margin-bottom: 0 !important; /* Remove bottom margin for bar effect */
    position: relative !important;
}

/* Add dark bar below background image */
.h1-wrap.cms-bg-3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #2b2b2b !important; /* Match navigation bar color and thickness */
    z-index: 10;
}

/* Ensure content sections have white background for text */
.content-section {
    background-color: white !important;
}

/* Ensure text content areas have white background and proper spacing */
.container-even,
.container-about-atteq {
    background-color: white !important;
    position: relative !important;
    z-index: 2 !important;
    padding: 40px 15px !important; /* Better side padding */
    margin-top: 0 !important; /* Remove gap - make it same as contact page */
}

/* Improve text styling and spacing */
.container-about-atteq h2 {
    margin-bottom: 30px !important;
    font-size: 2.2em !important;
    color: #333 !important;
}

.container-about-atteq p {
    font-size: 1.1em !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin-bottom: 20px !important;
    max-width: 800px !important; /* Limit text width for better readability */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Header text styling */
.h1-wrap h1 {
    color: #333 !important;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.8) !important;
    font-weight: bold !important;
    margin-bottom: 0 !important;
}

/* Better container spacing */
.container-home {
    padding: 0 !important;
}

/* Ensure proper Bootstrap column behavior */
.col-md-6.col-md-offset-3 {
    max-width: 100% !important;
    padding: 0 30px !important;
}

/* Also target the old selectors in case they exist elsewhere */
.content .cms-bg-1 {
    background-image: url(../images/bg-man-2000x600.jpg) !important;
}

.content .cms-bg-2 {
    background-image: url(../images/bg-win-loss-2000x600.jpg) !important;
}

.content .cms-bg-3 {
    background-image: url(../images/bg-clock-2000x600.jpg) !important;
}

/* Also fix any other image references that might be broken */
/* Fix menu scrolling behavior and z-index issues */
#header.main-header {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important; /* High z-index to stay above content */
    background-color: #281b32 !important;
    border-bottom: 4px solid #2b2b2b !important;
    transition: transform 0.3s ease-in-out !important;
}

/* Add body padding to prevent content from being hidden behind fixed header */
body {
    padding-top: 60px !important; /* Adjust based on header height */
}

.cms-bg-sugar {
    background: url(../images/bg-silhouette.png) left bottom no-repeat transparent !important;
}
