html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5em;
}
.logo_img {max-width:250px; height:auto; margin:20px 0}
.footer_logo_img {max-width:250px; height:auto; margin:20px 0; text-align: center;}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

#hero {
    background: url('images/SDAC_RAIL_SERVICES.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0px;
}

#hero .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#services {
    padding: 20px;
	background: linear-gradient(0deg, 
		rgba(0, 0, 0, 0.9), 
		rgba(8,80,142,0.95)), 
		url('images/tile-bck.jpg') repeat fixed;
		background-size: 450px;
		background-blend-mode: multiply;
    flex: 1;
}

#services-light {
    padding: 20px;
	background: linear-gradient(0deg, 
		rgba(255, 255, 255, 0.99), 
		rgba(255, 255, 255, 0.95)), 
		url('images/tile-bck.jpg') repeat fixed;
		background-size: 450px;
		background-blend-mode:soft-light;
    flex: 1;	
}

#services-dark {
    padding: 20px;
	background: linear-gradient(0deg, 
		rgba(0, 0, 0, 0.89), 
		rgba(0, 0, 0, 0.65)), 
		url('images/tile-bck.jpg') repeat fixed;
		background-size: 450px;		
    flex: 1;	
}

#services .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
	color:#FFFFFF
}

#services-light .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#services-dark .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
	color:#FFFFFF
}

.service h3 {
    cursor: pointer;
    background-color: #333;
    color: white;
    padding: 10px;
    margin: 0;
}
.service-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-row-light {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-row-dark {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.service-row:nth-child(odd) .service-image {
    order: 1;
}

.service-image img {
    width: 100%;
    max-width: 500px;
	border-radius:20px;
	box-shadow: 4px 4px 4px 2px rgba(0,0,0,0.25)
}

.service-text {
    flex: 1;
    padding: 0 20px;
}
.service-content {
    display: none;
    padding: 20px 40px;
	font-size: 1.2em;
    background-color: white;
	color:#888888;
}
.chevron {
    transition: transform 0.3s ease;
}

.chevron.open {
    transform: rotate(180deg);
}
#photo-tray {
    padding: 20px;
    background-color: #f9f9f9;
	align-items: center;
}

#photo-tray .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
	align-items: center;
}

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
	align-items: center;
}

.slides-container {
    display: flex;
    overflow: hidden;
    width: 100%;
	align-items: center;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
	align-items: center;
}

.slide {
    min-width: 30%;
    box-sizing: border-box;
	align-items: center;
}

.slides img {
    max-width: 150px;
    display: block;
	margin:auto 20px;
	vertical-align: middle;
	align-items: center;
	
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
	display:none;
}

#slide-left {
    left: 10px;
}

#slide-right {
    right: 10px;
}


.image-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px;
}

.column {
  flex: 1;
  max-width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
  text-align: center; /* Center the content inside the column */
	vertical-align: middle;
	margin-top:auto;
	margin-bottom:auto;
}

.column img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
}

.column p {
  text-align: center;
  margin-top: 10px;
  font-size: 1rem;
}




#contact {
    padding: 20px;
	display:none;
}

#contact_bnr {
    padding: 0px 0;
	background-color: #BE202E;

}
#contact_bnr .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
	text-align: center;
	font-size:24px;
	color:#ffffff;
}
#contact_bnr .container a{color:#ffffff;}
#contact .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
	display:none;
}

#contact form {
    display: flex;
    flex-direction: column;
}

#contact form label,
#contact form input,
#contact form textarea,
#contact form button {
    margin-bottom: 10px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 20px;
    flex-shrink: 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

footer .social a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.certs img {width:100%; max-width:400px; margin:20px auto; align-items: center; text-align: center; display:block; }

/* Mobile Optimization */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    header {
        flex-direction: column;
    }

    #hero {
        padding: 50px 20px;
    }

    footer .container {
        text-align: center;
    }

    .service-row {
        flex-direction: column;
    }

    .service-image,
    .service-text {
        max-width: 100%;
        padding: 0;
    }

    .service-image {
        margin-bottom: 10px;
    }
	
	.slide {
        min-width: 100%;
    }

    .slides {
        display: block;
    }
	
	  .column {
    max-width: 50%;
  }
}


/* Responsive layout for smaller screens */

@media screen and (max-width: 480px) {
  .column {
    max-width: 100%;
  }
}
