.card-container-hvac {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
    padding: 20px;
}

.card-hvac {
    background-color: #fff;
    border-top-left-radius: 8px; /* Only top-left corner */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-basis: calc(33% - 40px); /* 3 cards in a row, subtract the gap */
    margin-bottom: 20px;
    text-align: center;
    overflow: hidden; /* Ensures the zoom effect stays within the card */
}

.card-hvac img.hvac-img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* Smooth zoom effect */
}

/* Zoom effect on hover */
.card-hvac:hover img.hvac-img {
    transform: scale(1.1); /* Zoom in by 10% */
}

.card-content-hvac {
    padding: 35px;
    background: rgb(1 45 82);
    color: #ebe1e1;
}

.card-content-hvac h3.hvac-heading {
    margin-top: 0;
    font-size: 22px;
    color: #18a8cb;
    font-weight: 600;
}

.card-content-hvac p.hvac-paragraph {
    color: #f1eeee;
    font-size: 14px;
    text-align: left;
}

.card-content-hvac a.hvac-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #124772;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.card-content-hvac a.hvac-link:hover {
    background-color: #0b385e;
}

.tcB {
    color: black;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .card-hvac {
        flex-basis: calc(50% - 40px);
        /* 2 cards in a row for medium screens */
    }
}

@media (max-width: 600px) {
    .card-hvac {
        flex-basis: 100%;
        /* 1 card per row for small screens */
    }
}

.bgC {
    background-color: #ffffff;
    padding-bottom: 0px;
}

.mghvac {
    margin-bottom: 10px;
    width: 50%;
    margin-top: 5%;
}

.mglhvac {
    margin-left: 10%;
}

.mghvac1 {
    margin-bottom: 10px;
    width: 90%;
    margin-top: 2%;
}

/* card */
.staffing-section {
    text-align: center;
    padding: 0px 20px;
    background-color: white;
    margin: 0% 0% 0% 0%;
}

.staffing-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.staffing-section .description {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #555;
    text-align: center;
}

/* Existing styles */

.positions-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Initially 3 items per row */
    gap: 30px;
    justify-items: center;
    margin-top: 30px;
    margin-bottom: 5%;
}

/* Content hidden initially */
.position-box {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0px 6px 5px rgb(85 156 217 / 42%);
    width: 80%;
    height: 370px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    /* Use flexbox */
    justify-content: center;
    /* Horizontally center content */
    align-items: center;
    /* Vertically center content */
}

/* Content transition */
.position-box .content {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    opacity: 0;
    transition: bottom 0.5s ease, opacity 0.5s ease;
    display: flex;
    /* Use flexbox */
    justify-content: center;
    /* Horizontally center content */
    align-items: center;
    /* Vertically center content */
}

/* Show content on hover */
.position-box:hover .content {
    bottom: 0;
    opacity: 1;
}

/* Text styling */
.position-box p {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
    padding: 20px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.position-box h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

/* Hover effect */
.position-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0px 6px 5px rgb(189 214 235 / 42%);
}

/* Responsive Design */

/* For larger screens */
@media (max-width: 1024px) {
    .positions-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 items per row */
    }

    .position-box {
        width: 90%;
        height: 300px;
    }

    .position-box p {
        font-size: 1rem;
    }

    .position-box h3 {
        font-size: 2rem;
    }
}

/* For medium screens (tablets) */
@media (max-width: 768px) {
    .positions-container {
        grid-template-columns: 1fr;
        /* 1 item per row */
    }

    .position-box {
        width: 95%;
        height: 250px;
    }

    .position-box p {
        font-size: 0.9rem;
    }

    .position-box h3 {
        font-size: 1.8rem;
    }
}

/* For small screens */
@media (max-width: 480px) {
    .positions-container {
        grid-template-columns: 1fr;
        /* 1 item per row */
    }

    .position-box {
        width: 100%;
        height: 220px;
    }

    .position-box p {
        font-size: 0.9rem;

    }

    .position-box h3 {
        font-size: 1.6rem;
    }
}

/* Learn More button stays at the bottom */
.learn-more {
    display: inline-block;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.learn-more:hover {
    color: #007bff;
    border-color: #007bff;
}

.heading2 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-left: 15%;
    color: #4d4d4d;
    text-align: left;
}

.MGT {
    margin-top: 20%;
}

/* Background colors */
.bg1 {
    background-color: rgb(94 97 209 / 70%);
}

.bg2 {
    background-color: rgb(0 191 231 / 70%);
}

.bg3 {
    background-color: rgba(44, 97, 141, 70%);
}

/* end hover effect after hovering */

.bgimg {
    background-image: url(../img/pic/services/hvac/bgimg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 935px;
    width: 100%;
}

/* Background images for each section */
.img1 {
    background-image: url('../img/pic/services/hvac/8.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .img1 {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .img1 {
        height: 170px;
    }
}

.img2 {
    background-image: url('../img/pic/services/hvac/9.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .img2 {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .img2 {
        height: 170px;
    }
}

.img3 {
    background-image: url('../img/pic/services/hvac/10.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .img3 {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .img3 {
        height: 170px;
    }
}
/* ******************try ****************** */
.bgimg1 {
    height: 800px; /* Default height for larger screens */
    background-image: url("../img/pic/services/hvac/bgimg.webp"); /* Set the image */
    background-size: cover; /* Ensures image covers the entire div */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents repetition */
    width: 100%; /* Ensures full width */
    display: flex; /* Allows content inside to be centered */
    align-items: center;
    justify-content: center;
}

/* Responsive Adjustments */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .bgimg1 {
        height: 460px; /* Reduce height for smaller screens */
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .bgimg1 {
        height: 250px; /* Adjust height for mobile */
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .bgimg1 {
        height: 180px; /* Further reduce height */
    }
}

/* Ensuring the rest of your content is styled appropriately */
.fontS {
    margin-top: 3%;
    text-align: center;
    font-weight: 600;
    font-size: 36px;
    color: #333;
  }

  

  