/* Hide entirely on Desktop */
@media screen and (min-width: 1025px) {
    .tms-mobile-wrapper {
        display: none !important;
    }
}

/* Mobile & Tablet Styles */
@media screen and (max-width: 1024px) {
    .uppal-timeline-slider{
        display: none;
    }
    .tms-mobile-wrapper {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        background-color:transparent; /* Off-white background */
        position: relative;
        overflow: hidden;
    }

    /* We need the main swiper to be relative so absolute pagination stays inside it */
    .tms-swiper {
        position: relative;
        height: 80vh;
    }

    /* HIDE the old duplicate containers generated by the PHP loop */
    .tms-pagination-container {
        display: none !important;
    }

    .tms-image-container img {
        width: 100%;
        height: auto;
        display: block;
        /* border-top: 2px solid #00f4f4;
        border-bottom: 2px solid #00f4f4; */
    }

    /* Add some top margin to content so text doesn't overlap with the absolute timeline */
    .tms-content {
        padding: 10px 20px 30px 20px; 
        text-align: center;
        background-color:transparent;
        position: relative;
        top: 2%;
    }

    /* --- NEW Global Absolute Timeline Pagination --- */
    .tms-global-pagination {
        position: absolute !important;
        top: 90% !important; /* TWEAK THIS: Adjust up or down to align right under the image */
        left: 50% !important;
        transform: translateX(-50%);
        width: 70% !important;
        height: 24px;
        z-index: 10;
        display: flex;
        justify-content: space-between; 
        align-items: center;
    }

    /* The empty background line */
    .tms-line-bg {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #8fa5af;
        transform: translateY(-50%);
        z-index: 1;
    }

    /* The dark filling progress line */
    .tms-line-fill {
        position: absolute;
        top: 50%;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: #102634;
        transform: translateY(-50%);
        transition: width 0.3s ease;
        z-index: 2;
    }

    /* The Timeline Dots */
    .tms-global-pagination .swiper-pagination-bullet {
        background-color: #fbf9f4;
        border: 2px solid #102634;
        opacity: 1;
        width: 20px;
        height: 20px;
        margin: 0 !important;
        position: relative;
        z-index: 3;
        transition: transform 0.3s ease, background-color 0.3s ease;
        cursor: pointer;
    }

    /* Active Dot - scales up */
    .tms-global-pagination .swiper-pagination-bullet-active {
        transform: scale(1.5);
        background-color: #102634;
    }

    /* Typography & Button */
    .tms-title {
        font-family: "Hanken Grotesk", sans-serif;
        font-size: 1.5rem;
        color: #151723;
        margin-bottom: 12px;
        font-weight: 600 !important;
    }

    .tms-desc p {
        font-size: 16px;
        color: #151723;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .tms-btn {
        display:none;
        border: 1px solid #12313b;
        color: #12313b;
        padding: 8px 20px;
        font-size: 12px;
        text-decoration: none;
        letter-spacing: 1px;
        font-weight: 600;
        background: transparent;
        transition: 0.3s ease;
    }

    .tms-btn:hover {
        background: #12313b;
        color: #fff;
    }

    /* Navigation Arrows */
    .swiper-button-prev, .swiper-button-next {
        color: #000;
        top: 35%; 
        display: none;
    }
}

@media screen and (max-width: 600px) {

.tms-global-pagination{
    top:87% !important;
}
    
}