/* --- Global Widget Container and Heading (Left Aligned) --- */
.tao-experience-thumbnail-wrap {
    position: relative;
    overflow: hidden;
}

.tao-custom-pagination-dots {
    display: none !important;
}

.tao-experience-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 10px 27px 20px;
    color: #fff;

    font-family: "Brandon Grotesque", sans-serif;
    font-weight: 500; /* medium */
    font-size: 20px;
    line-height: 25px;
    letter-spacing: 0;

    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: 45%;
    overflow: hidden;
    z-index: 999;
    text-align: center;
    text-transform: uppercase;
}


.tao-experiences-listing-widget {
   /* padding: 60px 0; */
    /* Increased max-width for overall widget wrapper */
    max-width: 1440; 
    margin: 0 auto;
}

/* Consistent content width for alignment */
.tao-main-heading,
.tao-filter-buttons,
.tao-all-experiences-button-wrap,
.tao-custom-pagination-dots {
    /* Main alignment wrapper width: Total Item/Gap width (1051px) + 20px padding = 1071px */

    margin-left: auto;
    margin-right: auto;

}

/* The scroll viewport container is limited by its parent's max-width */
.tao-experiences-scroll-container {
    /* Ensure the scroll container also respects the 4-item view limit */

    margin-left: auto;
    margin-right: auto;

    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; 
    
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hide scrollbar for a cleaner look (optional) */
.tao-experiences-scroll-container::-webkit-scrollbar {
    display: none;
}
.tao-experiences-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tao-main-heading {
    font-family: "Cabin", sans-serif !important;
    font-weight: 400 !important; /* regular */ 
    font-size: 65px !important;
    line-height: 70px !important;
    letter-spacing: 0.05mm;
    color: #333;
    text-align: left;
    margin-top: 0;
    margin-bottom: 50px;
}


/* --- Filter Buttons Styling (Re-added/Confirmed) --- */
.tao-filter-buttons {
    margin-bottom: 56px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
	gap: 10px 32px;
}

.tao-filter-buttons button {
    background: none;
    border: 1px solid #ccc;
    /* padding: 10px 15px; */
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
    color: #333;
    transition: all 0.2s 
ease;
    border-radius: 0;
    position: relative;
    padding: 0px !important;
    width: 160px;
    height: 32px;
}

.tao-filter-buttons button:hover {
    background-color: #f0f0f0;
}
.tao-filter-buttons button.active {
    background-color: #f7d730; /* Yellow background */
    border-color: #f7d730;
    color: #333; 
    /* Extra padding for the checkmark */
    padding-left: 35px;
}
.tao-filter-buttons button.active::before {
    content: "\2713"; /* Checkmark symbol */
    font-size: 16px;
    font-weight: bold;
    color: #333;
    position: absolute;
    left: 10px; 
    top: 50%;
    transform: translateY(-50%);
}


/* The actual flex container for the items */
.tao-experiences-grid {
    display: flex;
    gap: 25px;
    margin: 0;
    
    /* PADDING for alignment with other elements (20px alignment) */
}

.tao-experience-item {
    /* *** FIXED WIDTH: 244px *** */
    flex: 0 0 244px; 
    min-width: 244px; 
    
    overflow: hidden;
    background-color: #fff;
    box-shadow: none; 
    border: none;
    
    transition: transform 0.2s ease;
    position: relative; 
    cursor: pointer;
    
    padding: 0;
    margin: 0;
}

/* --- Image Styling (Matching 244x361) --- */
.tao-experience-thumbnail-wrap {
    position: relative;
    /* *** FIXED HEIGHT: 361px *** */
    height: 361px; 
    overflow: hidden;
    padding: 0; 
}

.tao-experience-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; 
}


/* Hide the old, unused content wrapper */
.tao-experience-content {
    display: none;
}


/* --- CUSTOM BULLET PAGINATION STYLING --- */
.tao-custom-pagination-dots {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px; 
}

.tao-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

.tao-dot.active {
    background-color: #f7d730; 
    transform: scale(1.2);
}


/* --- "ALL EXPERIENCES" Button Styling --- */
.tao-all-experiences-button-wrap {
    margin-top: 60px; 
    text-align: left; 
}

.tao-all-experiences-button {
    display: inline-block;
    padding: 17.5px 23px;
    background-color: #f7d730;
    color: #333;

    font-family: "Brandon Grotesque", sans-serif;
    font-weight: 700; /* Bold */
    font-size: 19.82px;
    line-height: 20px;
    letter-spacing: 0;

    text-decoration: none;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}


.tao-all-experiences-button:hover {
    background-color: #e6c82c;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1070px) {
    /* If the screen is less than the required 4-item width, switch to a 3-item layout */
    .tao-experience-item {
        flex: 0 0 calc(33.333% - 17px); /* Approx 3 items with 25px gap */
    }
}
@media (max-width: 768px) {
    /* On mobile, switch to 2-item layout */
    .tao-main-heading,
    .tao-filter-buttons,
    .tao-all-experiences-button-wrap,
    .tao-custom-pagination-dots {
        text-align: center;
        justify-content: center;
    }
    .tao-experience-item {
        flex: 0 0 calc(50% - 15px);
        min-width: unset;
    }
    .tao-experience-thumbnail-wrap {
        height: 250px;
    }
}
@media (max-width: 500px) {
    /* On small mobile, switch to 1-item layout */
    .tao-experience-item {
        flex: 0 0 100%;
    }
}