/*--------------------------------------------------------------
# Single-service : title, content, single image, table and carousel

FOUND IN SINGLE-SERVICE.CSS
        - SERVICE : LAYOUT CONTAINERS-----------------LINE 14
        - SERVICE : HEADER----------------------------LINE 41
        - SERVICE : SINGLE IMAGE ---------------------LINE 49
        - SERVICE : DESCRIPTION-----------------------LINE 75
        - SERVICE : SPECIFICATION TABLE---------------LINE 83
        - SERVICE : GALLERY SWIPER (CAROUSEL)---------LINE 144
--------------------------------------------------------------*/

/*--------------------------------------------------------------
SERVICE : LAYOUT CONTAINERS
--------------------------------------------------------------*/
.service-layout {
    display: flex;
    justify-content: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-content {
    max-width: 900px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.service-content::after {
    content: "";
    display: block;
    clear: both;
}

/*--------------------------------------------------------------
SERVICE : HEADER
--------------------------------------------------------------*/
.service-header {
    text-align: left;
    margin-bottom: 2rem;
}

/*--------------------------------------------------------------
SERVICE : SINGLE IMAGE
--------------------------------------------------------------*/
.service-image {
    float: left;
    margin: 0 25px 10px 0;
    max-width: 300px;
    width: 100%;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-image .image-legend {
    display: block;
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
    text-align: center;

}

/*--------------------------------------------------------------
SERVICE : DESCRIPTION
--------------------------------------------------------------*/
.service-description {
    text-align: justify;
    max-width: 900px;
}

/*--------------------------------------------------------------
SERVICE : SPECIFICATION TABLE
--------------------------------------------------------------*/
.spec-title {
    margin-top: 40px;
}

/* Main table container */
.spec-table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin-top: 40px;
    margin-bottom: 25px;
    font-family: sans-serif;
    font-size: 14px;
    table-layout: fixed;
}

/* Header section styles */
.spec-table thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Common styles for both Header and Body cells */
.spec-table th,
.spec-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    word-break: break-word;
}

/* Fix width of first column */
.spec-table th:first-child,
.spec-table td:first-child {
    width: 30%;
}

/* Table body styles */
.spec-table tbody td {
    color: #555;
    vertical-align: middle;
}

/* Alternate row coloring */
.spec-table tbody tr:nth-child(even) {
    background-color: #D9D9D9;
}

/* Hover effect on rows */
.spec-table tbody tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.2s ease;
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
    .spec-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/*--------------------------------------------------------------
SERVICE : GALLERY SWIPER (CAROUSEL)
--------------------------------------------------------------*/
.service-swiper {
    width: 100%;
    max-width: 900px;
    margin: 60px auto;
    overflow: hidden;
    margin-bottom: 100px;
}

/* Swiper slides*/
.service-swiper .swiper-slide {
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8) translateZ(-150px) !important;
    filter: brightness(0.5) blur(2px);
    opacity: 0.6;
    position: relative;
    height: 380px;
    width: 700px;
}

.service-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-swiper .swiper-slide-active {
    transform: scale(1.1) translateZ(0) !important;
    filter: brightness(1) blur(0);
    opacity: 1;
    z-index: 10 !important;
}

/* Swiper image legend */
.service-swiper .image-legend {
    position: relative;
    width: 100%;
    text-align: center;
    opacity: 0;
    display: block;
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.service-swiper .swiper-slide-active .image-legend {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper pagination bullet */
.service-swiper .swiper-pagination {
    bottom: 5px !important;
}

.service-swiper .swiper-pagination-bullet {
    background-color: #fff !important;
    border: 1px solid #666 !important;
    opacity: 1;
    width: 12px;
    height: 12px;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.service-swiper .swiper-pagination-bullet-active {
    background-color: #666 !important;
    width: 25px;
    border-radius: 5px;
}

/* Swiper button */
.service-swiper .swiper-button-next,
.service-swiper .swiper-button-prev {
    color: #454242 !important;
    background: rgba(255, 255, 255, 0.6);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-swiper .swiper-button-next:after,
.service-swiper .swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.service-swiper .swiper-button-next:hover,
.service-swiper .swiper-button-prev:hover {
    background: #454242;
    color: #fff !important;
}