/* --- Service Page Styles --- */
.service-hero {
    width: 100%;
    background: #f5efe7;
    position: relative;
    height: 330px; /* match index hero min-height */
    display: flex;
    align-items: center;  /* center vertically */
    justify-content: center; /* center horizontally */
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.service-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    background: url('images/js-hero-banner-3.jpg') center center/cover no-repeat, #f5efe7;
    z-index: 1;
    /* Optional: Add overlay for readability */
    /* background-blend-mode: darken; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-hero-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: 'Noto Serif TC', serif;
    font-size: 2.8em; /* match index h1 */
    font-weight: bold;
    text-shadow: 0 2px 16px rgba(80,60,10,0.15);
    letter-spacing: 2px;
    text-align: center;
    margin: 0;
    padding: 0;
    /* Vertically center in .equipment-hero */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.service-main {
    background: #fcf6ee;
    padding: 2.5em 0 2em 0;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 2em;
    margin-bottom: 3em;
    background: #fff;
    border-radius: 1.5em;
    box-shadow: 0 4px 24px rgba(163, 129, 40, 0.06);
    padding: 2em 2em;
    flex-wrap: wrap;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-img-block {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-img-block img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f3e3c1;
    background: #f9f8f5;
    box-shadow: 0 2px 8px rgba(163,129,40,0.07);
}

.service-desc-block {
    flex: 1 1 240px;
    min-width: 200px;
}

.service-desc-block h2 {
    font-family: 'Noto Serif TC', serif;
    color: #a38128;
    font-size: 1.3em;
    margin-bottom: 0.6em;
    letter-spacing: 1px;
}

.service-desc-block p {
    color: #544a2a;
    font-size: 1.05em;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 900px) {
    .service-item,
    .service-item.reverse {
        flex-direction: column !important;
        gap: 1em;
        padding: 1.2em 1em;
    }
    .service-img-block {
        margin-bottom: 1em;
    }
}

/* Add this to your services.css for the new layout */

.service-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 2.8em;
    margin: 3em 0 1.5em 0;
    background: #fff;
    border-radius: 1.5em;
    box-shadow: 0 4px 24px rgba(163, 129, 40, 0.06);
    padding: 2.2em 2.2em 2.2em 2em;
}

.service-feature-img {
    flex: 0 0 260px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.service-feature-img img {
    width: 230px;
    height: 260px;
    object-fit: cover;
    border-radius: 1.2em;
    box-shadow: 0 2px 12px rgba(163,129,40,0.09);
    border: 4px solid #f3e3c1;
}

.service-feature-content {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    gap: 2em;
    justify-content: center;
}

.service-feature-block {
    margin-bottom: 0.2em;
}
.service-feature-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.32em;
    color: #a38128;
    font-weight: bold;
    margin-bottom: 0.6em;
    letter-spacing: 1px;
}
.service-feature-desc {
    color: #544a2a;
    font-size: 1.06em;
    line-height: 1.85;
    margin-bottom: 0.2em;
}

/* Responsive for mobile */
@media (max-width: 900px) {
    .service-feature-row {
        flex-direction: column;
        gap: 1.7em;
        padding: 1em 0.5em;
    }
    .service-feature-img {
        justify-content: center;
        width: 100%;
        margin-bottom: 1.5em;
    }
    .service-feature-img img {
        width: 85vw;
        max-width: 320px;
        height: auto;
    }
    .service-feature-content {
        gap: 1em;
        padding: 0 0.5em;
    }
}


/* Layout B: Image full width on top, text blocks below */
.service-feature-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-radius: 1.5em;
    box-shadow: 0 4px 24px rgba(163, 129, 40, 0.06);
    padding: 2.2em 2.2em 2.2em 2em;
    margin: 3em 0 1.5em 0;
}

.service-feature-stack-img {
    width: 100%;
    margin-bottom: 2em;
}
.service-feature-stack-img img {
    width: 100%;
    max-width: 900px;
    height: 340px;
    object-fit: cover;
    border-radius: 1.2em;
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(163,129,40,0.09);
    border: 4px solid #f3e3c1;
}

.service-feature-stack-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.2em;
}

.service-feature-block {
    margin-bottom: 0.2em;
}
.service-feature-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.32em;
    color: #a38128;
    font-weight: bold;
    margin-bottom: 0.6em;
    letter-spacing: 1px;
}
.service-feature-desc {
    color: #544a2a;
    font-size: 1.06em;
    line-height: 1.85;
    margin-bottom: 0.2em;
}

@media (max-width: 900px) {
    .service-feature-stack {
        padding: 1em 0.5em;
    }
    .service-feature-stack-img img {
        height: 38vw;
        min-height: 180px;
        max-width: 99vw;
    }
    .service-feature-stack-content {
        gap: 1.1em;
        padding: 0 0.5em;
    }
}