.app-background {
    width: 100%;
    min-height: 100vh; /* allow extra content to extend the section */
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), 
                url('/wp-content/themes/tdc-theme/assets/images/apps/portal/ten.png') no-repeat center center;
    background-size: cover;
    margin-bottom: 0;
    padding-bottom: 1px;
}

.app-background .container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Interactive Logo Section */
.interactive-app-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    width: 1140px;
    height: 500px;
    position: sticky;
    font-size: 2rem;

}

.app-container {
    position: relative;
    width: 1140px;
    height: 500px;
    animation: swooshInSpin 1.5s ease-out forwards;
    /* Scale the whole container up by 15% */
    transform: scale(1.25);
    transform-origin: center center;
}


.app-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out, filter 1s ease;
    z-index: 1;
}
.app-img-wrap.enlarge .app-img {
    opacity: 0.3;
}


.app-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    transition: opacity 0.3s ease-in-out;
}

.enlarge {
    transform: scale(1.1);
    filter: grayscale(90%);
    z-index: 10;
}


.image-map-helper {
    position: absolute;
    top: 0;
    left: 0;
    width: 1140px;
    height: 500px;
    opacity: 0;
    z-index: 100;
}

.title-container {
    text-align: center;
    background: transparent !important;
    padding-top: 60px; /* Adjust the padding value as needed */
}

.title-container h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: normal;
    color: #000000; /* Adjust color if necessary */
}

.title-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #333; /* or any other color you desire */
}

/* Wrap each icon so it fills the entire container */
.app-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease; /* added transition for smoother scaling */

}

/* Within each wrapper, both images fill the wrapper */
.app-img-wrap .colored,
.app-img-wrap .bw {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out, filter 1s ease, opacity 0.3s ease-in-out;
}

/* The BW version is hidden initially */
.app-img-wrap .bw {
    opacity: 0;
    z-index: 11;
}

/* When the wrapper gets the enlarge class */
.app-img-wrap.enlarge {
    transform: scale(1.1);
}
.app-img-wrap.enlarge .colored {
    filter: grayscale(70%);
}
.app-img-wrap.enlarge .bw {
    opacity: 1;
}

/* (Keep your existing CSS for .app-background, .interactive-app-section, etc.) */

/* Hide the mobile grid by default (it will only show on small screens) */
.mobile-app-grid {
    display: none;
}

/* Mobile Friendly Layout for screens less than 1000px */
@media (max-width: 1000px) {
    /* Hide the interactive map layout */
    .interactive-app-section {
        display: none;
    }
    
    /* Show the mobile grid */
    .mobile-app-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin: 20px 0;
    }
    
    .mobile-app-grid .mobile-app-item {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: calc(50% - 20px);  /* Two items per row with a gap; adjust as needed */
        text-align: center;
    }
    
    .mobile-app-grid .mobile-app-item img {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 10px;
    }
    
    .mobile-app-grid .mobile-app-item h2 {
        font-size: 1.2rem;
        margin: 0;
    }
}

