/* 5‑pages/_oil-gas.css
   ----------------------------------------------------------------------------
   Oil & Gas Page–only styles
------------------------------------------------------------------------------*/

/* Hero Background Container and Animation Styles */
.hero-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video and Image Styling for Hero Background */
.sector-hero-image,
.sector-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

.sector-hero-image.active,
.sector-hero-video.active {
    opacity: 1;
    z-index: 0;
}

/* Ensure text overlay stays above videos */
.sector-hero-overlay {
    z-index: 2 !important;
}

/* =================== NAMED VIDEO POSITIONING CLASSES =================== */

/* Oil & Gas Page Videos - Individual positioning by name */
.sector-hero-video.video-oil-pump-turn,
.sector-hero-image.image-oil-pump-turn {
  object-position: center 35%; /* Oil pump turn - pump jack view */
}

.sector-hero-video.video-oil-field-aerial-reverse,
.sector-hero-image.image-oil-field-aerial-reverse {
  object-position: center 30%; /* Oil field aerial reverse - oil platform */
}

.sector-hero-video.video-oil-facility-reverse,
.sector-hero-image.image-oil-facility-reverse {
  object-position: center 25%; /* Oil facility reverse - oil rig */
}

/* =================== RESPONSIVE ADJUSTMENTS FOR OIL & GAS PAGE =================== */

/* Tablet adjustments */
@media (max-width: 768px) {
  .sector-hero-video[class*="video-"],
  .sector-hero-image[class*="image-"] {
    object-position: center 45% !important;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .sector-hero-video[class*="video-"],
  .sector-hero-image[class*="image-"] {
    object-position: center 50% !important;
  }
}

/* Legacy nth-child positioning - kept for fallback */
.hero-background-container img:nth-child(1),
.hero-background-container video:nth-child(1) { 
    object-position: center 40%; /* First media (oil-pump-turn/pump jack view) */
}

.hero-background-container img:nth-child(2),
.hero-background-container video:nth-child(2),
.hero-background-container img:nth-child(3),
.hero-background-container video:nth-child(3) { 
    object-position: center 25%; /* Second/Third media (oil-field-aerial-reverse/oil-platform) */
}

.hero-background-container img:nth-child(4),
.hero-background-container video:nth-child(4),
.hero-background-container img:nth-child(5),
.hero-background-container video:nth-child(5) { 
    object-position: center 30%; /* Fourth/Fifth media (oil-facility-reverse/oil-rig) */
}

.hero-background-container img:nth-child(6),
.hero-background-container video:nth-child(6) { 
    object-position: center 30%; /* Sixth media */
}

/* Oil and Gas Animation/Illustration Sections */
.oilandgas-animation-section {
    padding: 6rem 0;
    background-color: #ffffff !important;
}

.oilandgas-animation-section .illustration-container {
    text-align: center;
}

.oilandgas-animation-section .illustration-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* Services Sections */
.services-section {
    padding: 4rem 0;
}

.services-blue {
    background-color: #194164;
    color: white;
}

.service-category {
    padding: 2rem;
    position: relative;
}

/* Stacked layout styling for images */
.images-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 5.5rem;
    padding: 2rem 6rem 2rem 4rem;
}

.image-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image-stacked {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Specific positioning for regulatory & basin experience oil field image */
.service-image-stacked[src*="oilandgas-service-3.png"] {
    object-position: 15% center; /* Move image to show more of the left side */
}

.service-image-stacked:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Stacked layout styling for icons - kept for backward compatibility */
.icons-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 15rem;
    padding: 2rem 6rem 2rem 4rem;
}

.icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-stacked {
    font-size: 8rem;
    color: white;
    opacity: 0.9;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.service-icon-stacked:hover {
    color: #f39c12;
    opacity: 1;
}

.content-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 2rem 2rem 8rem;
}

.content-stack .service-category {
    padding: 0;
}

.service-number {
    color: #f39c12;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.service-list li {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
}

.service-list li::before {
    content: "●";
    color: #f39c12;
    position: absolute;
    left: 0;
    top: 0;
}

/* Nested list styling */
.service-list ul {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.service-list ul li::before {
    content: "◦";
    color: #f39c12;
}

/* Intro and conclusion text styling */
.sector-intro {
    font-size: 1.3rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 1.5rem;
}

.sector-conclusion {
    font-size: 1.3rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 0;
    font-style: italic;
}

/* Full‑bleed background image in the right column (legacy styles) */
.oil-section {
    position: relative;
    background: url('/static/images/oilgas.jpeg') center/cover no-repeat;
}
  
/* <img> fallback or secondary backgrounds (legacy styles) */
.background-img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .oilandgas-animation-section {
        padding: 4rem 0;
    }
    
    .oilandgas-animation-section .illustration-image {
        max-width: 700px;
    }
    
    .service-category {
        padding: 1.5rem;
    }
    
    .images-stack {
        gap: 3rem;
        padding: 2rem;
    }
    
    .service-image-stacked {
        width: 200px;
        height: 200px;
    }
    
    .icons-stack {
        flex-direction: row;
        gap: 4.5rem;
        padding: 1.5rem 4rem 1.5rem 3rem;
        justify-content: center;
    }
    
    .service-icon-stacked {
        font-size: 6.5rem;
    }
    
    .content-stack {
        gap: 2.5rem;
        padding: 1.5rem 1rem 1.5rem 6rem;
    }
    
    .service-number {
        font-size: 1.6rem;
    }
    
    .service-list li {
        font-size: 1.1rem;
    }
    
    .sector-intro,
    .sector-conclusion {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .oilandgas-animation-section {
        padding: 3rem 0;
    }
    
    .oilandgas-animation-section .illustration-image {
        max-width: 600px;
    }
    
    .sector-hero {
        height: 45vh;
    }
    
    .sector-hero-overlay h1 {
        font-size: 2.2rem;
        max-width: 90%;
    }
    
    .sector-heading {
        font-size: 2rem;
    }
    
    .services-section {
        padding: 3rem 0;
    }
    
    .service-category {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    /* Adjust stacked layout for mobile */
    .images-stack {
        flex-direction: row;
        gap: 2rem;
        padding: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-image-stacked {
        width: 150px;
        height: 150px;
    }
    
    .icons-stack {
        flex-direction: row;
        gap: 3.5rem;
        padding: 1rem 3rem 1rem 2rem;
        justify-content: center;
    }
    
    .service-icon-stacked {
        font-size: 5.5rem;
    }
    
    .content-stack {
        gap: 2rem;
        padding: 1rem 1rem 1rem 5rem;
    }
    
    .service-number {
        font-size: 1.4rem;
    }
    
    .sector-intro,
    .sector-conclusion {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .oilandgas-animation-section {
        padding: 2rem 0;
    }
    
    .oilandgas-animation-section .illustration-image {
        max-width: 500px;
    }
    
    .service-category {
        padding: 1rem;
    }
    
    /* Further adjust stacked layout for very small screens */
    .service-image-stacked {
        width: 120px;
        height: 120px;
    }
    
    .icons-stack {
        flex-direction: row;
        gap: 3rem;
        padding: 1rem 1rem;
        justify-content: center;
    }
    
    .service-icon-stacked {
        font-size: 4rem;
    }
    
    .content-stack {
        gap: 1.5rem;
        padding: 1rem 1rem 1rem 3rem;
    }
    
    .service-number {
        font-size: 1.2rem;
    }
    
    .service-list li {
        font-size: 1rem;
    }
    
    .sector-intro,
    .sector-conclusion {
        font-size: 1rem;
    }
}
  