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

/* Override the default hero image settings specifically for geospatial page */
body .sector-hero .sector-hero-image {
    object-fit: cover !important; /* Fill the container */
    background-color: #194164; /* Background color that matches the theme */
}

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

/* Geospatial Page Videos - Individual positioning by name */
.sector-hero-video.video-gis-data,
.sector-hero-image.image-gis-data {
  object-position: center 30%; /* GIS data video */
}

.sector-hero-video.video-gis-analysis,
.sector-hero-image.image-gis-analysis {
  object-position: center 35%; /* GIS analysis video */
}

.sector-hero-video.video-gis-mapping,
.sector-hero-image.image-gis-mapping {
  object-position: center 25%; /* GIS mapping video */
}

/* =================== RESPONSIVE ADJUSTMENTS FOR GEOSPATIAL 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 GIF positioning - kept for fallback */
.hero-background-container img:nth-child(1) { 
    object-position: center 45%; /* Adjusted to show slightly more top/bottom */
}

.hero-background-container img:nth-child(2) { 
    object-position: center 35%; /* Adjusted to show slightly more top/bottom */
}

.hero-background-container img:nth-child(3) { 
    object-position: center 40%; /* Adjusted to show slightly more top/bottom */
}

/* Geospatial Content Section Styles */
.geospatial-content-section {
    width: 100%;
}

.geospatial-content-block {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    margin-bottom: 0;
    width: 100%; /* Ensure full width */
}

.geospatial-content-block:nth-child(even) {
    background-color: #FFFFFF;
}

/* Feature container styles */
.geospatial-feature-container {
    display: flex;
    padding: 50px 10%;
    align-items: center;
}

.geospatial-feature-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding-right: 40px;
}

.geospatial-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.geospatial-icon-wrapper {
    font-size: 3.5rem;
    color: #194164;
    margin-bottom: 15px;
    min-width: 60px;
    text-align: left;
}

.geospatial-feature-image {
    flex: 1;
    height: 400px;
    overflow: hidden;
}

.geospatial-content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.geospatial-content-title {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #194164;
}

.geospatial-content-paragraph {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: #194164;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .geospatial-feature-container {
        padding: 40px 5%;
    }
    
    .geospatial-icon-wrapper {
        font-size: 3rem;
    }
    
    .geospatial-feature-image {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .geospatial-feature-container {
        flex-direction: column;
        padding: 30px 5%;
    }
    
    .geospatial-feature-content {
        width: 100%;
        margin-bottom: 30px;
        padding-right: 0;
    }
    
    .geospatial-feature-image {
        width: 100%;
        height: 300px;
    }
    
    .geospatial-content-title {
        font-size: 2rem;
    }
    
    .geospatial-content-paragraph {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .geospatial-icon-wrapper {
        font-size: 2.5rem;
        margin-right: 15px;
    }
    
    .geospatial-feature-image {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .geospatial-feature-container {
        padding: 25px 4%;
    }
    
    .geospatial-feature-content {
        flex-direction: column;
        padding-right: 0;
    }
    
    .geospatial-text-content {
        align-items: center;
        text-align: center;
    }
    
    .geospatial-icon-wrapper {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .geospatial-feature-image {
        height: 200px;
    }
    
    .geospatial-content-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .geospatial-content-paragraph {
        font-size: 1.1rem;
        text-align: center;
    }
} 

/* Image stack styling for geospatial page */
.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 real-time data visualization server room image */
.service-image-stacked[src*="gis-service-1.png"] {
    object-position: 100% center; /* Move image to show more of the left side */
}

/* Specific positioning for spatial document & contract intelligence image */
.service-image-stacked[src*="gis-service-3.png"] {
    object-position: 45% 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);
}

/* Icon stack styling for geospatial page - kept for backward compatibility */
.icons-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8rem;
    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);
}

/* Responsive adjustments for image stack */
@media (max-width: 992px) {
    .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: 100px; }
}

@media (max-width: 768px) {
    .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: 80px; }
}

@media (max-width: 576px) {
    .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: 60px; }
}

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

/* Illustration Sections */
.illustration-section {
    padding: 2rem 0;
    background-color: #FFFFFF; /* Changed to full white for seamless appearance */
}

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

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

/* GIS Animation Section Specific Styles */
.gis-animation-section {
    background-color: #FFFFFF !important;
}

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

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

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

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

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

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

/* GIS Fourth Section - Individual Classes for Size Control */
.gis-fourth-section {
    background-color: #FFFFFF !important;
    padding: 2rem 0;
}

.gis-fourth-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gis-fourth-image {
    max-width: 740px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments for illustration sections */
@media (max-width: 992px) {
    .illustration-container .illustration-image {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .illustration-section {
        padding: 3rem 0;
    }
    
    .illustration-container .illustration-image {
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .illustration-container .illustration-image {
        max-width: 300px;
    }
}

/* Responsive adjustments for individual GIS sections */

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

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

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

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

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

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

/* GIS Fourth Section Responsive */
@media (max-width: 992px) {
    .gis-fourth-section {
        padding: 2rem 0; /* Adjust tablet section height */
    }
    
    .gis-fourth-image {
        max-width: 500px; /* Adjust tablet image size */
    }
}

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

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

 