/* Service detail breadcrumb */
.service-breadcrumb-bar {
    padding: 18px 0;
    background: #fff;
    font-family: Tahoma, sans-serif;
}

.service-breadcrumb-bar .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.service-breadcrumb-bar a {
    color: #26364a;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none !important;
    transition: color .2s ease;
}

.service-breadcrumb-bar a:hover,
.service-breadcrumb-bar a:focus-visible {
    color: #009970;
    text-decoration: none !important;
}

.service-breadcrumb-bar span {
    color: #8a929b;
}

@media (max-width: 575.98px) {
    .service-breadcrumb-bar {
        padding: 13px 0;
    }

    .service-breadcrumb-bar a {
        font-size: .9rem;
    }
}

/* ===== SECTION ===== */

.petroleum-section {
    padding: 20px 0 60px;
    background: linear-gradient(
        180deg,
        #f7f7f7 0%,
        #ececec 100%
    );
    overflow: hidden;
}

.petroleum-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ===== LEFT ===== */

.petroleum-content {
    flex: 1;
}

.section-tag {
    display: inline-block;
    color: #009970;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    animation: tagPulse 3.2s ease-in-out infinite;
}

.section-title {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #009970;
    margin-bottom: 25px;
    text-transform: uppercase;
    transition: letter-spacing 0.3s ease, transform 0.3s ease;
}

.section-title:hover {
    letter-spacing: 0.02em;
    transform: translateX(2px);
}

.petroleum-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 18px;
    text-align: justify;
    transition: color 0.28s ease;
}

.petroleum-content p:hover {
    color: #1f1f1f;
}

/* ===== STATS ===== */

.stats-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #fff;
    padding: 16px;
    flex: 1;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, rgba(255,255,255,0) 32%, rgba(0,153,112,0.16) 50%, rgba(255,255,255,0) 68%);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
}

.stat-card:hover::after {
    transform: translateX(120%);
}

.stat-card h3 {
    color: #009970;
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-card span {
    color: #666;
}

/* ===== RIGHT ===== */

.petroleum-images {
    flex: 1;
    position: relative;
    min-height: clamp(360px, 48vw, 600px);
    perspective: 1000px;
}

.green-shape {
    position: absolute;
    top: -80px;
    right: -100px;
    width: 100%;
    height: 130%;
    background: linear-gradient(
        180deg,
        #009970,
        #7bc6a4
    );

    clip-path: polygon(
        30% 0%,
        100% 0%,
        100% 100%,
        0% 100%
    );
    animation: shapeFloat 7s ease-in-out infinite;
}

.main-image {
    position: relative;
    width: 85%;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
      animation: floatImg 3s ease-in-out infinite;

}

.small-image {
    position: absolute;
    width: 60%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    bottom: 40px;
    left: 120px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    z-index: 3;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: floatImg 3s ease-in-out infinite;

}

.main-image:hover,
.small-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 46px rgba(0,0,0,.24);
}

.petroleum-images:hover .main-image {
    transform: translateY(-6px) rotate(-0.6deg);
}

.petroleum-images:hover .small-image {
    transform: translateY(-6px) rotate(0.8deg);
}

@keyframes shapeFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes tagPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.82;
    }
}

@media (max-width: 1200px) {
    .petroleum-wrapper {
        gap: 36px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .petroleum-content p {
        font-size: 0.95rem;
        line-height: 1.72;
    }

    .petroleum-images {
        min-height: 520px;
    }

    .green-shape {
        height: 120%;
    }

    .main-image {
        height: 320px;
    }

    .small-image {
        width: 68%;
        height: 210px;
        left: 88px;
    }
}

@media (max-width: 992px) {
    .petroleum-section {
        padding: 24px 0 56px;
    }

    .petroleum-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .section-tag {
        font-size: 0.9rem;
        letter-spacing: 1.4px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .petroleum-content p {
        font-size: 0.96rem;
        margin-bottom: 12px;
    }

    .stats-grid {
        margin-top: 18px;
    }

    .petroleum-images {
        min-height: 500px;
    }

    .green-shape {
        top: -36px;
        right: -40px;
        width: 106%;
    }

    .main-image {
        width: 86%;
        height: 290px;
    }

    .small-image {
        width: 62%;
        height: 190px;
        left: 130px;
        bottom: 24px;
    }
}

@media (max-width: 768px) {
    .petroleum-section {
        padding: 20px 0 48px;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .petroleum-content p {
        font-size: 0.92rem;
        line-height: 1.64;
    }

    .stats-grid {
        flex-direction: column;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card h3 {
        font-size: 1.55rem;
        margin-bottom: 4px;
    }

    .petroleum-images {
        min-height: 430px;
    }

    .green-shape {
        top: -22px;
        right: -10px;
        width: 103%;
        height: 112%;
    }

    .main-image {
        width: 90%;
        height: 232px;
        border-radius: 14px;
    }

    .small-image {
        width: 74%;
        height: 156px;
        left: 92px;
        bottom: 20px;
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .petroleum-section {
        padding: 16px 0 40px;
    }

    .section-tag {
        font-size: 0.82rem;
        letter-spacing: 1.1px;
    }

    .section-title {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .petroleum-content p {
        font-size: 0.9rem;
    }

    .petroleum-images {
        min-height: 355px;
    }

    .green-shape {
        right: -6px;
        width: 102%;
        height: 104%;
    }

    .main-image {
        height: 186px;
    }

    .small-image {
        width: 76%;
        height: 124px;
        left: 54px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-tag,
    .green-shape {
        animation: none;
    }

    .stat-card,
    .main-image,
    .small-image,
    .section-title,
    .petroleum-content p {
        transition: none;
    }
}

.small-image.woodworking-tools-image {
    object-fit: contain;
    background-color: #fff;
}

/* Consistent overlapping image layout for every service detail page. */
.petroleum-images {
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1.2;
}

.petroleum-images .main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    height: 78%;
}

.petroleum-images .small-image {
    position: absolute;
    width: 64%;
    height: 51.5%;
    top: 44%;
    left: 20.5%;
    bottom: auto;
}

@media (max-width: 992px) {
    .petroleum-images {
        flex: none;
        width: 100%;
    }
}

/* Keep service titles close to the breadcrumb and aligned with the images. */
.petroleum-section {
    padding-top: 12px;
}

.petroleum-content {
    align-self: flex-start;
}
