@charset "UTF-8";

/* Common Reset */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

img {
    width: 100%;
    height: 100%;
}

/* Swiper Section */
.swiper {
    width: 100%;
    height: calc(100vh - 60px);
}

.swiper-wrapper {
    height: 100vh;   
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-1 {
    background: url(/img/main/plumbing119_01.webp) no-repeat center;
    background-size: cover;
}

.slide-2 {
    background: url(/img/main/plumbing119_02.webp) no-repeat center;
    background-size: cover;
}

.slide-3 {
    background: url(/img/main/plumbing119_03.webp) no-repeat center;
    background-size: cover;
}

.swiper-pagination-bullet-active {
    background-color: #000;
}

.swiper-horizontal>.swiper-pagination-bullets, 
.swiper-pagination-bullets.swiper-pagination-horizontal, 
.swiper-pagination-custom, 
.swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom,85px);
    top: var(--swiper-pagination-top,auto);
    left: 0;
    width: 100%;
}

.banner_inbox {
    position: absolute;
    z-index: 30;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    background: rgba(0,0,0,0.4);
}

.banner_text_out {
    background-color: rgba(67, 148, 219, 0.5);
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 50%;
    border: 20px solid #0065bd;
}

.banner_text_in {
    padding: 50px;
}

.banner_text_in h1 {
    font-size: 20px;
}

.banner_text_in h2 {
    color: rgb(255, 255, 70);
}

/* Section 1 */
.service {
    margin-top: 15px;
}

.service h2 {
    color: #0151ad;
    text-align: center;
}

.service_wrap {
    margin: 0 auto;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service_box {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
    background-color: rgba(71, 179, 252, 0.5);
    border-radius: 20px;
    padding: 5px;
    font-size: 14px;
    width: 23%;
    height: 120px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.service_img {
    width: 100px;
    height: 100px;
}

.service_txt_box {
    text-align: end;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
}

hr {
    display: none;
}

/* Section 2 */
.notice_wrap {
    margin-top: 15px;
}

.notice {
    position: inherit;
    margin: 0 0 0 300px;
    padding: 0 30px;
    border-left: 1px solid #e7e7e7;
}

.notice_tit_line {
    background-color: #e7e7e7;
    width: 100%;
    height: 1px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.table th {
    background-color: #f2f2f2;
}

.table a {
    color: #007bff;
    text-decoration: none;
}

.table a:hover {
    text-decoration: underline;
}

.add-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 15px;
    float: left;
    display: inline-block;
}

.add-button:hover {
    background-color: #0056b3;
}

.sidebarCs_call {
    display: none;
}

.sidebarCs > div {
    margin: 25px auto;
}

/* Section 3 */
.gallery {
    width: 100%;
    margin: 15px auto;
    clear: both;
}

.main_gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.gallery_item {
    text-align: center;
    width: 16%;
}

.gallery_item h2 {
    font-size: 16px;
}

.gallery_img {
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    width: 100%;
}

.gallery_img img {
    display: block;
    transition: transform 0.3s;
    object-fit: cover;
}

.gallery_item img:hover {
    transform: scale(1.05);
}

.gallery_item p {
    margin: 5px auto;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.gallery_item h2 {
    margin-top: 10px;
}

/* Section 4 */
.review {
    width: 100%;
    margin: 15px auto;
}

.review_tit_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviews-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reviews-container > a {
    display: block;
    width: 16%;
    margin-top: 10px;
}

.reviews-card {
    height: 220px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    vertical-align: top;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #f9f9f9;
}

.reviews-card:hover {
    background-color: #eaeaea;
}

.reviews-card h3 {
    font-size: 18px;
    color: #333;
}

.reviews-card .rating {
    color: gold;
    font-size: 20px;
    margin-bottom: 15px;
}

.reviews-card .reviews {
    font-size: 14px;
    color: #555;
    height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    margin: 10px 0;
}

.reviews-card .created-at {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.average-rating {
    font-size: 20px;
    color: gold;
}

/* Section 5 */
.blog {
    width: 100%;
    margin: 30px auto;
    clear: both;
}

.blog h2 {
    margin-bottom: 15px;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.blog-container > a {
    display: block;
    width: 16%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.blog-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.blog-card-img-wrap {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.05);
}

.blog-card-img-wrap img.placeholder {
    object-fit: contain;
}

.blog-card-content {
    padding: 12px 15px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.blog-card h3 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
}

.blog-card .blog-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 58px;
}
.notice>h2, .gallery>h2, .review_tit_box>h2, .blog>h2{
    margin-left: 10px;
}


/* Media Queries */
@media only screen and (max-width: 1100px) {
    .service_wrap {
        flex-wrap: wrap;
    }
    .service_box {
        width: 48%;
    }
}

@media only screen and (max-width: 991px) {
    .blog-container > a {
        width: 48%;
    }
}

@media only screen and (max-width: 767px) {
    .swiper,
    .banner_inbox {
        font-size: 14px;
    }
    
    .banner_text_out {
        width: 350px;
        height: 350px;
    }
    
    .service h2 {
        font-size: 16px;
    }
    
    .service_wrap {
        width: 100%;
        justify-content: space-around;
    }
    
    .service_box {
        font-size: 12px;
        margin-top: 5px;
        height: 80px;
    }
    
    .service_img {
        width: 30px;
        height: 30px;
    }
    
    hr {
        display: block;
        margin-bottom: 15px;
    }
    
    .sidebarCs {
        display: none;
    }
    
    .notice {
        margin: auto;
        border-left: none;
        padding: 0 5px;
    }
    
    .table a {
        font-size: 14px;
    }
    
    .table th:nth-child(2),
    .table td:nth-child(2),
    colgroup col:nth-child(2) {
        display: none;
    }
    
    .gallery {
        width: 98%;
    }
    
    .gallery_item {
        width: 48%;
    }
    
    .gallery_item h2,
    .gallery_item p {
        font-size: 14px;
    }
    
    .reviews-container > a {
        width: 48%;
    }
    
    .blog-container {
        gap: 5px;
    }
    
    .blog-container > a {
        flex-basis: calc(50% - 8px);
    }
    
    .blog-card-img-wrap {
        height: 110px;
    }
    
    .blog-card h3 {
        font-size: 14px;
    }
    
    .blog-card .blog-excerpt {
        -webkit-line-clamp: 2;
        min-height: 36px;
    }
} 