* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.service-hero {
    position: relative;
    margin-bottom: 100px;
}

.service-hero img {
    width: 100%;
    height: 390px;
    object-fit: cover; /* Ensures the image covers the space without overflow */
}

.hero-cover h1 {
    color: white;
    font-family: "Dangrek", sans-serif;
}

.hero-cover {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centering with translate to avoid overflow issues */
}

.s1 {
    max-width: 100%;
    width: 1200px;
    margin: auto;
}

.company {
    padding: 20px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

.company img {
    width: 100%;
    max-width: 430px;
    height: auto; /* Maintains aspect ratio and prevents overflow */
}

.company .text {
    max-width: 500px;
    color: black;
    font-family: "Dangrek", sans-serif;
}

.text h1 {
    color: #00b4d8;
    text-align: center;
}

.text #des {
    padding: 15px;
    background-color: aliceblue;
    text-align: justify;
    margin-top: 50px;
    font-family: "Content", system-ui;
    font-size: 19px;
    font-weight: 600;
    line-height: 36px;
}

/* Profile Section */
.profile {
    width: 100%;
    max-width: 600px;
    display: flex;
    margin-top: 15px;
    justify-content: space-between;
    gap: 15px;
}

.profile img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.name {
    margin-top: 10px;
}

/* Guide Section */
.guide-sec {
    background-color: rgba(245, 245, 245, 0.727);
    width: 100%;
    padding: 45px;
}

.guide-sec h1 {
    text-align: center;
    margin-bottom: 38px;
    color: #00b4d8;
}

.guide {
    margin: auto;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.guide-card {
    background-color: white;
    text-align: center;
    border-radius: 15px;
    padding: 15px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    width: 100%;
    max-width: 270px;
}

.guide-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #00b4d8;
    object-fit: cover;
}

.social {
    margin-top: 20px;
}

.fa-brands {
    font-size: 30px;
    margin-left: 5px;
    color: #00b4d8;
    transform: scale(0.9);
    transition: 0.3s ease-in-out;
}

.fa-brands:hover {
    color: rgb(167, 164, 164);
    transform: scale(1);
}

.text h5,
.text h6 {
    margin-top: 19px;
}

.text h6 {
    color: gray;
}

/* Services Section */
#section2 {
    margin: 90px auto 0 auto;
    width: 100%;
    padding: 45px;
}

#section2 h3 {
    font-family: "Dangrek", sans-serif;
    text-align: center;
}

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

.service .service-card {
    width: 100%;
    max-width: 280px;
}

.service .service-text {
    margin-top: 20px;
}

.service .service-text h3 {
    font-family: "Dangrek", sans-serif;
    display: inline;
    color: black;
}

.service .service-text p {
    font-family: "Content", system-ui;
    font-size: 16.5px;
    font-weight: 500;
    line-height: 36px;
    margin-top: 16px;
}

.service-text .fa-solid {
    font-size: 40px;
    color: white;
}

.middle h2 {
    text-align: center;
    font-family: "Dangrek", sans-serif;
    color: #00b4d8;
}

.service .middle-img {
    width: 100%;
    max-width: 430px;
}

.service-heading {
    display: flex;
    gap: 20px;
    align-items: center;
}
