/* Environmental Page 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 =================== */

/* Environmental Page Videos - Individual positioning by name */
.sector-hero-video.video-real-estate-aerial-down,
.sector-hero-image.image-real-estate-aerial-down {
  object-position: center 40%; /* Real estate aerial down - environmental landscape */
}

.sector-hero-video.video-real-estate-aerial-zoom-out,
.sector-hero-image.image-real-estate-aerial-zoom-out {
  object-position: center 25%; /* Real estate aerial zoom out - water tank */
}

.sector-hero-video.video-road-shot,
.sector-hero-image.image-road-shot {
  object-position: center 30%; /* Road shot - scientists */
}

/* =================== RESPONSIVE ADJUSTMENTS FOR ENVIRONMENTAL 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 (real-estate-aerial-down/environmental landscape) */
}

.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 (real-estate-aerial-zoom-out/water tank) */
}

.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 (road-shot/scientists) */
}

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

/* 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 public engagement & stakeholder support meeting image */
.service-image-stacked[src*="public-meeting-animated.png"] {
    object-position: 35% 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);
}

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

/* Icon stack styling for environmental page */
.icons-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8rem; /* Increased vertical spacing between icons */
    padding: 2rem 6rem 2rem 4rem;
}

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

.service-icon-stacked {
    font-size: 120px;
    color: white;
    opacity: 0.9;
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.service-icon-stacked:hover {
    transform: scale(1.1);
    color: #f39c12;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.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;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .service-category {
        padding: 1.5rem;
    }
    
    .images-stack {
        flex-direction: row;
        gap: 4.5rem;
        padding: 1.5rem 4rem 1.5rem 3rem;
        justify-content: center;
    }
    
    .service-image-stacked {
        width: 200px;
        height: 200px;
    }
    
    .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;
    }
}

@media (max-width: 768px) {
    .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: 3.5rem;
        padding: 1rem 3rem 1rem 2rem;
        justify-content: center;
    }
    
    .service-image-stacked {
        width: 160px;
        height: 160px;
    }
    
    .content-stack {
        gap: 2rem;
        padding: 1rem 1rem 1rem 5rem;
    }
    
    /* Adjust icon stack layout for mobile */
    .icons-stack {
        flex-direction: row;
        gap: 3.5rem;
        padding: 1rem 3rem 1rem 2rem;
        justify-content: center;
    }
    
    .service-icon-stacked {
        font-size: 80px;
    }
    
    .service-number {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .service-category {
        padding: 1rem;
    }
    
    /* Further adjust stacked layout for very small screens */
    .images-stack {
        flex-direction: row;
        gap: 3rem;
        padding: 1rem 1rem;
        justify-content: center;
    }
    
    .service-image-stacked {
        width: 140px;
        height: 140px;
    }
    
    .content-stack {
        gap: 1.5rem;
        padding: 1rem 1rem 1rem 3rem;
    }
    
    /* Further adjust icon stack layout for very small screens */
    .icons-stack {
        flex-direction: row;
        gap: 3rem;
        padding: 1rem 1rem;
        justify-content: center;
    }
    
    .service-icon-stacked {
        font-size: 60px;
    }
    
    .service-number {
        font-size: 1.2rem;
    }
    
    .service-list li {
        font-size: 1rem;
    }
}

/* =================== ILLUSTRATION SECTIONS =================== */

/* Environmental First Section - Individual Classes for Size Control */
.env-first-section {
    background-color: #FFFFFF !important;
    padding: 0.5rem 0;
}

.env-first-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.env-first-image {
    max-width: 550px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Environmental Second Section - Individual Classes for Size Control */
.env-second-section {
    background-color: #FFFFFF !important;
    padding: 2rem 0;
}

.env-second-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.env-second-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Environmental Third Section - Individual Classes for Size Control */
.env-third-section {
    background-color: #FFFFFF !important;
    padding: 2rem 0;
}

.env-third-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.env-third-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments for individual Environmental sections */

/* Environmental First Section Responsive */
@media (max-width: 992px) {
    .env-first-section {
        padding: 2rem 0; /* Adjust tablet section height */
    }
    
    .env-first-image {
        max-width: 500px; /* Adjust tablet image size */
    }
}

@media (max-width: 768px) {
    .env-first-section {
        padding: 3rem 0; /* Adjust mobile section height */
    }
    
    .env-first-image {
        max-width: 400px; /* Adjust mobile image size */
    }
}

@media (max-width: 576px) {
    .env-first-image {
        max-width: 300px; /* Adjust small mobile image size */
    }
}

/* Environmental Second Section Responsive */
@media (max-width: 992px) {
    .env-second-section {
        padding: 2rem 0; /* Adjust tablet section height */
    }
    
    .env-second-image {
        max-width: 500px; /* Adjust tablet image size */
    }
}

@media (max-width: 768px) {
    .env-second-section {
        padding: 3rem 0; /* Adjust mobile section height */
    }
    
    .env-second-image {
        max-width: 400px; /* Adjust mobile image size */
    }
}

@media (max-width: 576px) {
    .env-second-image {
        max-width: 300px; /* Adjust small mobile image size */
    }
}

/* Environmental Third Section Responsive */
@media (max-width: 992px) {
    .env-third-section {
        padding: 2rem 0; /* Adjust tablet section height */
    }
    
    .env-third-image {
        max-width: 500px; /* Adjust tablet image size */
    }
}

@media (max-width: 768px) {
    .env-third-section {
        padding: 3rem 0; /* Adjust mobile section height */
    }
    
    .env-third-image {
        max-width: 400px; /* Adjust mobile image size */
    }
}

@media (max-width: 576px) {
    .env-third-image {
        max-width: 300px; /* Adjust small mobile image size */
    }
}