*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}
.header{
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    position: relative;
}
/* Background Slider */
.bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-position: center;
    background-size: cover;
}

.bg-slide.active {
    opacity: 1;
}

/* Slide background images */
.bg-slide:nth-child(1) {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7),rgba(39, 40, 44, 0.7)), url("Images/PGALogo.jpg");
}

.bg-slide:nth-child(2) {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7),rgba(39, 40, 44, 0.7)), url("Images/banner2.jpg");
}

.bg-slide:nth-child(3) {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7),rgba(39, 40, 44, 0.7)), url("Images/ManufacturingAB-US.jpg");
}
.bg-slide:nth-child(4) {
    background-image: linear-gradient(rgba(255, 255, 255, 0.7),rgba(39, 40, 44, 0.7)), url("Images/tederic.avif");
}

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 150px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #000000;
    text-decoration: none;
    font-size: 13px;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: rgb(246, 243, 243);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1{
    font-size: 60px;
    color: black;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: rgb(19, 18, 18);
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: rgb(44, 42, 42);
    border: 1px solid rgb(79, 77, 77);
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid #74798d;
    background: #40434f;
    transition: 1s;
    color: white;
}

nav .fa{
    display: none;
}

@media(max-width: 700px){
    .text-box h1{
        font-size: 35px;
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        position: fixed;
        background: #f8f9fa;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa{
        display: block;
        color: rgb(111, 110, 110);
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 30px;
    }
}

@media(max-width: 400px){
    .header h1{
        font-size: 30px;
    }
}

/*-------- product/cou --------*/
.prod{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.prod-col{
    flex-basis: 31%;
    background: #dcd7d7;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.prod-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
}

/* -------- offices1 --------*/
.offices1{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}
.offices1 .row{
    gap: 20px;
}
.office-col1{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.office-col1 img{
    width: 100%;
    height: 90%;
    display: block;
}
.layer1{
    background: transparent;
    height: 90%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer1:hover{
    background: rgba(193, 222, 233, 0.363);
}
.layer1 h3{
    color: rgb(11, 11, 11);
    width: 100%;
    font-weight: 500;
    font-size: 20px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
.layer1:hover h3{
    bottom: 49%;
    opacity: 1;
}
/*------ offices for appreciation -------*/
.offices{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.row1 {
    display: flex;
    justify-content: flex-start;
}

.offices .row1{
    overflow: hidden;
    position: relative;
    margin: 0 -10px;
}

.office-col{
    flex: 0 0 calc(33.333% - 20px);
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    margin: 0 10px;
}

.office-col img{
    width: 100%;
    height: 90%;
    display: block;
}

.layer{
    background: transparent;
    height: 90%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover{
    background: rgba(193, 222, 233, 0.363);
}

.layer h3{
    color: rgb(11, 11, 11);
    width: 100%;
    font-weight: 500;
    font-size: 20px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}

/* Slider Styles */
.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.slider-btn {
    background: #568dc9;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #3a6ba5;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d9e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #568dc9;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .offices {
        width: 95%;
        padding-top: 30px;
    }
    
    .office-col {
        flex: 0 0 100%;   /* Full width */
        margin: 0;  
    }
    
    h1 {
        font-size: 28px;
    }
    
    p {
        font-size: 14px;
    }

    .slider-controls {
        margin-top: 15px;
    }
}

@media (max-width: 400px) {
    .offices {
        width: 80%;
        padding: 20px 15px;
    }
    
    .office-col {
        flex: 0 0 100%;   /* Full width */
        margin: 0; 
    }

    h1 {
        font-size: 24px;
    }
    
    p {
        font-size: 13px;
    }
    
    .layer h3 {
        font-size: 18px;
    }
}

/*-------- facility --------*/
.facility{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 0px;
}
/* .facility h1 p{
    font-size: large;
    font-weight: bold;
} */
.facility-col{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}
.facility-col img{
    width: 100%;
    border-radius: 10px;
}
.facility-col p{
    padding: 0;
}
.facility-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}
@media(max-width: 400px){
    h1{
        font-size: 20px;
    }
}
/*-------- testimonials --------*/
.testimonials{
    width: 80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;
}
.testimonials-col{
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #f3f4ff;
    padding: 25px;
    cursor: pointer;
    display: flex;
}
.testimonials-col img{
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.testimonials-col p{
    padding: 0;
}
.testimonials-col h3{
    margin-top: 15px;
    text-align: left;
}
.testimonials-col .fa{
    color: gold;
}

@media(max-width: 700px) {
    .testimonials-col img{
        margin-left: 0;
        margin-right: 15px;
    }
}

/*-------- call to action --------*/
.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7),rgba(243, 244, 251, 0.7)), url("Images/pgaBanner.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta h1{
    color: white;
    margin-bottom: 40px;
    padding: 0;
    font-size: 30px;
}
.hero-btn1{
    display: inline-block;
    text-decoration: none;
    color: rgb(5, 5, 5);
    border: 1px solid rgb(76, 77, 78);
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn1:hover{
    border: 1px solid #feffff;
    background: #a4a9bc;
    transition: 1s;
    color: white;
}
@media(max-width: 700px) {
    .cta h1{
        font-size: 24px;
    }
}

/*-------- footer --------*/
/* footer {
    background: #6587ac;
    color: #fff;
    padding: 40px 20px;
}

.container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    flex: 1 1 250px; 
    min-width: 200px;
}

.footer-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #ff4b2b; 
    display: inline-block;
    padding-bottom: 5px;
}

.footer-content p, 
.footer-content a, 
.footer-content li {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

.footer-content a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #ff4b2b;
}

.list {
    list-style: none;
    padding: 0;
}
.list li{
    width: auto;
    text-align: center;
    list-style-type: none;
    padding: 7px;
    position: relative;
}
.list li::before{
    content: '';
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 100%;
    width: 0;
    height: 2px;
    background: #f13030;
    transition-duration: .5s;
}
.list li:hover::before{
    width: 70px;
}
.list li {
    margin-bottom: 10px;
}

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

.social-icons li a {
    color: #fff;
    font-size: 18px;
    display: inline-block;
    transition: color 0.3s ease;
}

.social-icons li a:hover {
    color: #ff4b2b;
}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        min-width: 100%;
    }

    .social-icons {
        justify-content: center;
    }
}  */

footer{
    background: #568dc9;
    padding-top: 50px;
}
.container{
    width: 1140px;
    margin: auto;
    display: flex;
    justify-content: center;
}
.footer-content{
    width: 33.3%;
    color: white;
}
.footer-content h3{
    font-size: 25px;
    margin-bottom: 15px;
    text-align: center;
}
.footer-content p{
    width: 190px;
    margin: auto;
    padding: 7px;
    color: white;
}
.footer-content a{
    color: white;
}
.footer-content ul{
    text-align: center;
}
.list{
    padding: 0;
}
.list li{
    width: auto;
    text-align: center;
    list-style-type: none;
    padding: 7px;
    position: relative;
}
.list li::before{
    content: '';
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 100%;
    width: 0;
    height: 2px;
    background: #104292;
    transition-duration: .5s;
}
.list li:hover::before{
    width: 70px;
}
.social-icons{
    text-align: center;
    padding: 0;
}
.social-icons li{
    display: inline-block;
    text-align: center;
    padding: 5px;
}
.social-icons i{
    color: white;
    font-size: 25px;
}
a{
    text-decoration: none;
}
a:hover{
    color: rgba(180, 198, 225, 0.514);
}
.social-icons i:hover{
    color: #3046f1;
}
/* Credits Section */
.credits {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    width: 100%;
}

.credits p {
    font-size: 12px;
    color: #ebe8e8;
}

.credits .fa {
    margin: 0 5px;
    font-size: 11px;
    color: rgba(7, 7, 7, 0.7);
}
@media (max-width: 768px) {
    .container {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-content p {
        width: auto;
    }
}


/*-------- About Us --------*/
.sub-header{
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(213, 220, 247, 0.7),rgba(4, 9, 30, 0.7)), url("Images/About3.jpg");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}
.text-box1{
    width: 90%;
    color: rgb(246, 243, 243);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box1 h1{
    font-size: 60px;
    color: rgb(255, 252, 252);
}
.text-box1 p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: rgb(252, 250, 250);
}
.about-us{
    width: 80%;
    margin: auto;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.about-us h1{
    text-align: center;
}
.about-col{
    flex-basis: 48%;
    padding: 30px 2px;
    text-align: center;
}
.about-col img{
    width: 100%;
}
.about-col h1{
    padding-top: 0;
}
.about-col p{
    padding: 15px 0 25px;
}
.about-us.image-left{
    width: 80%;
    margin: auto;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.about-us.image-left h1{
    text-align: center;
}
.about-us.image-left .about-col{
    flex-basis: 48%;
    padding: 30px 2px;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}
.about-us.image-left .about-col img{
    width: 100%;
}
.about-us.image-left .about-col h1{
    padding-top: 0;
}
.about-us.image-left .about-col p{
    padding: 15px 0 25px;
}
.red-btn{
    border: 1px solid #74798d;
    background: transparent;
    color: black;
}
.red-btn:hover{
    color: white;
}
.image-left .row {
    flex-direction: row;
}
.image-left .about-col img {
    border-radius: 5px;
}

/* ---------- About-us: responsive fix (paste at end of style.css) ---------- */
@media (max-width: 700px) {
/* Stack the columns inside only the about-us sections */
    section.about-us .row,
    section.about-us.image-left .row {
        flex-direction: column;
        align-items: center;
        gap: 20px;              /* space between stacked columns */
    }

    /* Make each column full width and centered */
    section.about-us .about-col,
    section.about-us.image-left .about-col {
        flex-basis: 100%;
        width: 100%;
        padding: 10px 8px;
        box-sizing: border-box;
        text-align: center;
    }

    /* Ensure images resize and keep aspect ratio */
    section.about-us .about-col img,
    section.about-us.image-left .about-col img {
        width: 100%;
        height: auto;
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }
    section.about-us.image-left h1 {
        font-size: 24px;
        line-height: 1.3;
        text-align: center;
        padding: 0 10px;
    }
}

@media(max-width: 500px){
    .sub-header h1{
        font-size: 30px;
    }

    .about-col h1{
        font-size: 25px;
    }
}

@media(max-width: 400px){
    .sub-header h1{
        font-size: 30px;
    }
}

/*-------- Our work --------*/
.sub-header1{
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(212, 214, 221, 0.7),rgba(4, 9, 30, 0.7)), url("Images/banner2.jpg");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sub-header1 h1{
    margin-top: 100px;
}
.prod1{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.prod-col1{
    flex-basis: 31%;
    background: #b9c6e8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
.prod-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
}

@media(max-width: 500px){
    .sub-header1 h1{
        font-size: 30px;
    }
}

@media(max-width: 400px){
    .sub-header1 h1{
        font-size: 30px;
    }
}
/*-------- Product --------*/
.sub-header2{
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(203, 205, 212, 0.7),rgba(4, 9, 30, 0.7)), url("Images/ManufacturingAB-US.jpg");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sub-header2 h1{
    margin-top: 100px;
}
.facility1{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 0px;
}
/* Specific styling for facility1 section to move 4th item down */
.facility1 .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.facility1 .row .facility-col1 {
    flex: 0 0 calc(33.333% - 20px);
}

.facility1 .row .facility-col1:nth-child(4) {
    flex: 0 0 calc(33.333% - 20px);
    margin-top: 40px;
}
.facility-col1{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}
.facility-col1 img{
    width: 100%;
    border-radius: 10px;
}
.facility-col1 p{
    padding: 0;
}
.facility-col1 h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}

@media(max-width: 500px){
    .sub-header2 h1{
        font-size: 30px;
    }
}

@media(max-width: 400px){
    .sub-header2 h1{
        font-size: 30px;
    }
}
/*-------- Contact Us --------*/
.sub-header3{
    height: 70vh;
    width: 100%;
    background-image: linear-gradient(rgba(172, 172, 189, 0.7),rgba(4, 9, 30, 0.7)), url("Images/contact.png");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sub-header3 h1{
    margin-top: 100px;
}
.location{
    width: 80%;
    margin: auto;
    padding: 80px 0;
}
.location iframe{
    width: 100%;
}
.contact-us{
    width: 80%;
    margin: auto;
}
.contact-col{
    flex-basis: 48%;
    margin-bottom: 30px;
}
.contact-col div{
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}
.contact-col div .fa{
    font-size: 28px;
    color: #2954d7;
    margin: 10px;
    margin-right: 30px;
}
.contact-col div p{
    padding: 0;
}
.contact-col div h5{
    font-size: 20px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
}
.contact-col input, .contact-col textarea{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Contact Section Media Queries */
@media (max-width: 1024px) {
    .contact-us {
        width: 90%;
    }
    
    .contact-col {
        flex-basis: 100%;
        margin-bottom: 40px;
    }
    
    .contact-col div {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .contact-col div .fa {
        margin-right: 0;
        margin-bottom: 15px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .location {
        width: 95%;
        padding: 40px 0;
    }
    
    .location iframe {
        height: 400px;
    }
    
    .contact-us {
        width: 95%;
    }
    
    .contact-col div span {
        text-align: center;
    }
    
    .contact-col div span h5 {
        font-size: 18px;
    }
    
    .contact-col div span p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .location {
        padding: 30px 0;
    }
    
    .location iframe {
        height: 300px;
    }
    
    .contact-col div {
        margin-bottom: 25px;
    }
    
    .contact-col div .fa {
        font-size: 22px;
    }
    
    .contact-col div span h5 {
        font-size: 16px;
    }
    
    .contact-col input, 
    .contact-col textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .hero-btn.red-btn {
        padding: 10px 25px;
        font-size: 12px;
    }
}

/* Ensure the contact row stacks properly on mobile */
@media (max-width: 700px) {
    .contact-us .row {
        flex-direction: column;
    }
    
    .contact-col {
        flex-basis: 100%;
    }
}

/*-------- detail 1 --------*/
.sub-header4{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(223, 227, 239, 0.7),rgba(4, 9, 30, 0.7)), url("Images/Assemble1.jpg");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sub-header4 h1{
    margin-top: 100px;
}
.text-box2{
    width: 90%;
    color: rgb(246, 243, 243);
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box2 h1{
    font-size: 60px;
    color: black;
}
.text-box2 p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: rgb(19, 18, 18);
}
.hero-btn2{
    display: inline-block;
    text-decoration: none;
    color: rgb(44, 42, 42);
    border: 1px solid rgb(79, 77, 77);
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn2:hover{
    border: 1px solid #74798d;
    background: #40434f;
    transition: 1s;
    color: white;
}
/* Detail Sand Section Styles */
.detail1sand {
    width: 80%;
    margin: 0 auto;
    padding: 40px 0;
}

.detail1sand-col {
    flex-basis: 100%;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
}

.detail1sand-col h1 {
    font-size: 32px;
    color: #1c1c6b;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
}

.detail1sand-col p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    padding: 0;
    text-align: left;
}

.detail1sand-col p b {
    color: #1c1c6b;
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.detail1sand-col .hero-btn2 {
    display: inline-block;
    margin-top: 20px;
    text-align: center;
}

/* Desktop (1024px and above) */
@media (min-width: 1024px) {
    .detail1sand {
        width: 85%;
        margin: 0 auto;
        padding: 50px 0;
    }
    
    .detail1sand-col {
        padding: 50px;
    }
    
    .detail1sand-col h1 {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .detail1sand-col p {
        font-size: 17px;
        line-height: 1.8;
        margin-bottom: 30px;
    }
    
    .detail1sand-col p b {
        font-size: 19px;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .detail1sand {
        width: 90%;
        margin: 0 auto;
        padding: 30px 0;
    }
    
    .detail1sand-col {
        padding: 35px;
    }
    
    .detail1sand-col h1 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .detail1sand-col p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .detail1sand-col p b {
        font-size: 16px;
    }
}

/* Phones (767px and below) */
@media (max-width: 767px) {
    .detail1sand {
        width: 95%;
        margin: 0 auto;
        padding: 20px 0;
    }
    
    .detail1sand-col {
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .detail1sand-col h1 {
        font-size: 22px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .detail1sand-col p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    .detail1sand-col p b {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .detail1sand-col .hero-btn2 {
        width: 100%;
        text-align: center;
        margin-top: 25px;
    }
}

@media(max-width: 500px){
    .sub-header4 .text-box2 h1{
        font-size: 30px;
    }

    .detail1sand-col .hero-btn2{
        width: 50%;
    }
}

@media (max-width: 400px){
    .sub-header4 .text-box2 h1{
        font-size: 30px;
    }

    .detail1sand-col .hero-btn2{
        width: 50%;
    }

    .about-col2 h1{
        font-size: 30px;
    }
}


/* Technical Specifications Table Styles - Full Width & Centered */
.about-us2{
    width: 68%;
    margin: auto;
}
.about-us2 h1{
    text-align: center;
}
.specifications-table {
    width: 100%;
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.specifications-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    table-layout: auto;
}

.specifications-table th,
.specifications-table td {
    padding: 18px 15px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 14px;
    white-space: nowrap;
}

.specifications-table th {
    background: #568dc9;
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 20px 15px;
    text-align: center;
}

.specifications-table thead th {
    background: #3a6ba5;
    text-align: center;
}

.specifications-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.specifications-table tbody tr:hover {
    background: #e3f2fd;
}
/* Responsive table design */
@media (max-width: 1024px) {
    .specifications-table table {
        width: 100%;
        font-size: 14px;
    }

    .specifications-table th,
    .specifications-table td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .specifications-table {
        overflow-x: auto;
        display: block;
        -webkit-overflow-scrolling: touch;
    }

    .specifications-table table {
        width: 800px; /* keeps structure scrollable */
        border-collapse: collapse;
    }

    .specifications-table th,
    .specifications-table td {
        font-size: 13px;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .specifications-table table {
        width: 700px;
        font-size: 12px;
    }

    .specifications-table th,
    .specifications-table td {
        padding: 5px;
    }

    .about-col1 h1 {
        font-size: 18px;
    }

    .about-col1 p {
        font-size: 14px;
        line-height: 1.4;
    }
}

/*-------- detail 2 --------*/
.sub-header5{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(223, 227, 239, 0.7),rgba(4, 9, 30, 0.7)), url("Images/fire.jpg");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sub-header5 h1{
    margin-top: 100px;
}
.text-box2{
    width: 90%;
    color: rgb(246, 243, 243);
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box2 h1{
    font-size: 60px;
    color: black;
}
.text-box2 p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: rgb(19, 18, 18);
}
.hero-btn2{
    display: inline-block;
    text-decoration: none;
    color: rgb(44, 42, 42);
    border: 1px solid rgb(79, 77, 77);
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn2:hover{
    border: 1px solid #74798d;
    background: #40434f;
    transition: 1s;
    color: white;
}

.wrapper {
    display: grid;
    grid-template-columns: 40% 30%; 
    gap: 40px;
    justify-content: center;
    padding-left: 40px;
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 20px 60px 40px;
    background-image: linear-gradient(rgba(230, 228, 228, 0.9), rgba(221, 217, 217, 0.9)), url("Images/eng1.webp");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}
.collapsible {
    width: 100%;
    overflow: hidden;
    font-weight: 500;
}
.collapsible input{
    display: none;
}
.collapsible label{
    position: relative;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 10px 11px 0 rgba(0, 0, 0, .1), 0 4px 11px 0 rgba(0, 0, 0, .08);
    color: #1c1c6b;
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
    z-index: 1;
}
.collapsible label:after {
    content: "";
    position: absolute;
    right: 15px;
    top: 15px;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%231c1c6b" viewBox="0 0 24 24"><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>') no-repeat center;
    background-size: contain;
    transition: all 0.3s ease;
} 
.collapsible input:checked + label:after{
    transform: rotate(90deg);
}
.collapsible-text{
    max-height: 1px;
    overflow: hidden;
    border-radius: 4px;
    line-height: 1.4;
    position: relative;
    top: -100%;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.collapsible input:checked ~ .collapsible-text{
    max-height: 300px;
    padding-bottom: 25px;
    background: #f3f0f0;
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .1), 0 4px 11px 0 rgba(0, 0, 0, .08);
    opacity: 1;
    top: 0;
}
.collapsible-text h2{
    margin-bottom: 10px;
    padding: 15px 15px 0;
    color: #1c1c6b;
}
.collapsible-text p{
    padding-left: 15px;
    padding-right: 15px;

}
.collapsible {
    max-width: 400px;
    flex: 1;
    min-width: 300px;
}
.hero-btn3{
    display: inline-block;
    text-decoration: none;
    color: rgb(9, 8, 8);
    border: 1px solid rgb(23, 22, 22);
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    margin-left: 20px;
}
.hero-btn3:hover{
    border: 1px solid #2440a6;
    background: #26377c;
    transition: 1s;
    color: white;
}
@media (max-width: 1024px) {
    .wrapper {
        grid-template-columns: 1fr 1fr; /* Equal columns on tablets */
        gap: 30px;
        padding: 15px;
    }
}
    
@media (max-width: 768px) {
    .wdrop h1{
        font-size: 30px;
    }
    .wrapper {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 10px;
    }
        
    .collapsible {
        min-width: unset; /* Remove min-width restriction */
    }
}

@media(max-width: 500px){
    .sub-header5 .text-box2 h1{
        font-size: 30px;
    }
}    

@media (max-width: 480px) {
    .wrapper {
        gap: 15px;
        padding: 5px;
    }

    .sub-header5 h1{
        font-size: 30px;
    }

    .about-col h1{
        font-size: 30px;
    }
}


/* Scroll-triggered slide-in animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply scroll-triggered animations */
.collapsible {
    opacity: 0;
}

.collapsible:nth-child(odd) {
    animation: slideInLeft 0.8s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.collapsible:nth-child(even) {
    animation: slideInRight 0.8s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

/* Stagger the animation for better visual effect */
.collapsible:nth-child(1) { animation-delay: 0.1s; }
.collapsible:nth-child(2) { animation-delay: 0.2s; }
.collapsible:nth-child(3) { animation-delay: 0.3s; }
.collapsible:nth-child(4) { animation-delay: 0.4s; }
.collapsible:nth-child(5) { animation-delay: 0.5s; }
.collapsible:nth-child(6) { animation-delay: 0.6s; }
.collapsible:nth-child(7) { animation-delay: 0.7s; }
.collapsible:nth-child(8) { animation-delay: 0.8s; }

/*-------- detail 3 --------*/
.sub-header6{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(223, 227, 239, 0.7),rgba(4, 9, 30, 0.7)), url("Images/GRP\ tanker.jpg");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sub-header6 h1{
    margin-top: 100px;
}

/* Simple GRP Details Styles */
.grp-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.grp-section {
    background: #f8f9fa;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.grp-section h2 {
    color: #1a5276;
    border-bottom: 2px solid #1a5276;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.advantage-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Components Layout */
.components-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.component-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.application-item {
    background: white;
    padding: 12px;
    border-left: 4px solid #1a5276;
}

/* Image Layouts */
.images-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.installation-section .two-images img {
    max-width: 400px;
    width: 45%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.two-images img {
    width: calc(50% - 10px);
    border-radius: 8px;
}

.three-images img {
    width: calc(33.333% - 14px);
    border-radius: 8px;
}

.single-image {
    text-align: center;
    margin: 20px 0;
}

.single-image img {
    max-width: 500px;
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tables Section */
.tables-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.table-wrapper {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.table-wrapper h3 {
    color: #1a5276;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #1a5276;
    padding-bottom: 8px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 300px;
}

.spec-table td, .spec-table th {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

.spec-table thead th {
    background-color: #1a5276;
    color: white;
    text-align: center;
    font-weight: 600;
}

.spec-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.spec-table tr:hover {
    background-color: #e9ecef;
}

/* Responsive for tables */
@media (max-width: 1024px) {
    .tables-container {
        gap: 20px;
    }
    
    .spec-table {
        font-size: 13px;
    }
    
    .spec-table td, .spec-table th {
        padding: 6px 8px;
    }
}

@media (max-width: 768px) {
    .tables-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .table-wrapper {
        padding: 15px;
    }
    
    .spec-table {
        font-size: 12px;
        min-width: 250px;
    }
    
    .spec-table td, .spec-table th {
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .tables-container {
        gap: 15px;
    }
    
    .table-wrapper {
        padding: 10px;
        margin: 0 -10px;
    }
    
    .table-wrapper h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .spec-table {
        font-size: 11px;
        min-width: 200px;
    }
    
    .spec-table td, .spec-table th {
        padding: 3px 4px;
    }
    
    /* Make the second table scrollable horizontally on very small screens */
    .table-wrapper:last-child {
        overflow-x: auto;
    }
    
    .table-wrapper:last-child .spec-table {
        min-width: 400px;
    }
}

/* Certificate */
.certificate-box {
    background: #e9ecef;
    border: 2px dashed #6c757d;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}
.certificate-image {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.certificate-image img {
    max-width: 600px;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid #1a5276;
}

/* Responsive */
@media (max-width: 768px) {
    .advantages-grid,
    .components-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .two-images img,
    .three-images img {
        width: 100%;
    }
    
    .images-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .sub-header6 h1{
        font-size: 30px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }
    
    .grp-content {
        padding: 20px 10px;
    }
    
    .grp-section {
        padding: 20px;
    }
}

/*-------- detail 4 --------*/
.sub-header7{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(223, 227, 239, 0.7),rgba(4, 9, 30, 0.7)), url("Images/domestic.jpg");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sub-header7 h1{
    margin-top: 100px;
}

@media(max-width: 500px){
    .sub-header7 h1{
        font-size: 30px;
    }
}

@media(max-width: 400px){
    .sub-header7 h1{
        font-size: 30px;
    }
}


/*-------- detail 5 --------*/
.sub-header8{
    height: 50vh;
    width: 100%;
    background-image: linear-gradient(rgba(223, 227, 239, 0.7),rgba(4, 9, 30, 0.7)), url("Images/electrical controlpanel.jpg");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: white;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sub-header8 h1{
    margin-top: 100px;
}

@media(max-width: 500px){
    .sub-header8 h1{
        font-size: 30px;
    }
}

@media(max-width: 400px){
    .sub-header8 h1{
        font-size: 30px;
    }
}

