/* =========================================================
   Hostel Residence - Global Living Experience (Multi Slider Block)
   ========================================================= */

.hostel-residence-global-living-experience-section {
    background-color: #f5f5f7;
    padding: 80px 0;
    overflow: hidden;
}

.hostel-residence-global-living-title {
    font-family: var(--pu-lakshya-font-heading);
    font-size: 56px;
	font-weight: 700;
    color: #1b1142;
    margin-bottom: 20px;
}

.hostel-residence-global-living-subtitle {
    font-family: var(--pu-lakshya-font-body);
    font-size: 18px;
    color: #333333;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.hostel-residence-global-living-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hostel-residence-global-living-tab,
.nav-pills .nav-link.hostel-residence-global-living-tab,
.nav-pills .nav-link.hostel-residence-global-living-tab.active,
.nav-pills .show > .nav-link.hostel-residence-global-living-tab {
    background-color: #1b1142 !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--pu-lakshya-font-body);
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
}

.hostel-residence-global-living-tab:hover {
    opacity: 0.8;
}

.hostel-residence-global-living-tab-icon {
    width: 0;
    height: 20px;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 0;
}

.hostel-residence-global-living-tab.active .hostel-residence-global-living-tab-icon {
    width: 20px;
    opacity: 1;
    margin-left: 8px;
}

.hostel-residence-global-living-scroller-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.hostel-residence-global-living-row {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.hostel-residence-global-living-track {
    display: flex;
    gap: 20px;
}

.hostel-residence-global-living-row.left-scroll .hostel-residence-global-living-track {
    animation: scrollLeft 25s linear infinite;
}

.hostel-residence-global-living-row.right-scroll .hostel-residence-global-living-track {
    animation: scrollRight 40s linear infinite;
    transform: translateX(-50%);
}

.hostel-residence-global-living-row:hover .hostel-residence-global-living-track {
    animation-play-state: paused;
}

.hostel-residence-global-living-track img {
    height: 300px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* =========================================================
   MEDIA QUERIES (Responsive Breakpoints)
   ========================================================= */

/* Max Width: 360px */
@media screen and (max-width: 360px) {
    .hostel-residence-global-living-experience-section {
        padding: 40px 0;
    }

    .hostel-residence-global-living-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hostel-residence-global-living-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .hostel-residence-global-living-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab.active,
    .nav-pills .show > .nav-link.hostel-residence-global-living-tab {
        width: auto !important;
        font-size: 16px;
        padding: 16px;
        justify-content: center;
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }

    .hostel-residence-global-living-tabs #gl-tab-3 {
        order: 1;
    }

    .hostel-residence-global-living-tabs #gl-tab-2 {
        order: 2;
    }

    .hostel-residence-global-living-tabs #gl-tab-4 {
        order: 3;
    }

    .hostel-residence-global-living-tabs #gl-tab-1 {
        order: 4;
    }

    .hostel-residence-global-living-track img {
        height: 160px;
    }

    .hostel-residence-global-living-track {
        gap: 13px;
    }
}

/* Min Width: 361px and Max Width: 479px */
@media screen and (min-width: 361px) and (max-width: 479px) {
    .hostel-residence-global-living-experience-section {
        padding: 50px 0;
    }

    .hostel-residence-global-living-title {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .hostel-residence-global-living-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hostel-residence-global-living-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab.active,
    .nav-pills .show > .nav-link.hostel-residence-global-living-tab {
        width: auto !important;
        font-size: 16px;
        padding: 16px;
        justify-content: center;
        flex: 1 1 calc(50% - 12px);
        text-align: center;
    }

    .hostel-residence-global-living-tabs #gl-tab-3 {
        order: 1;
    }

    .hostel-residence-global-living-tabs #gl-tab-2 {
        order: 2;
    }

    .hostel-residence-global-living-tabs #gl-tab-4 {
        order: 3;
    }

    .hostel-residence-global-living-tabs #gl-tab-1 {
        order: 4;
    }

    .hostel-residence-global-living-track img {
        height: 250px;
    }

    .hostel-residence-global-living-track {
        gap: 13px;
    }
}

/* Min Width: 480px and Max Width: 575px */
@media screen and (min-width: 480px) and (max-width: 575px) {
    .hostel-residence-global-living-experience-section {
        padding: 60px 0;
    }

    .hostel-residence-global-living-title {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .hostel-residence-global-living-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hostel-residence-global-living-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab.active,
    .nav-pills .show > .nav-link.hostel-residence-global-living-tab {
        width: auto !important;
        font-size: 16px;
        padding: 16px 20px;
        justify-content: center;
        flex: 1 1 calc(50% - 15px);
        text-align: center;
    }

    .hostel-residence-global-living-tabs #gl-tab-3 {
        order: 1;
    }

    .hostel-residence-global-living-tabs #gl-tab-2 {
        order: 2;
    }

    .hostel-residence-global-living-tabs #gl-tab-4 {
        order: 3;
    }

    .hostel-residence-global-living-tabs #gl-tab-1 {
        order: 4;
    }

    .hostel-residence-global-living-track img {
        height: 300px;
    }

    .hostel-residence-global-living-track {
        gap: 15px;
    }
}

/* Max Width: 767px */
@media screen and (max-width: 767px) {
    .hostel-residence-global-living-tabs {
        flex-direction: column;
    }

    .hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab {
        width: 100%;
        justify-content: center;
    }

    .hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab.active,
    .nav-pills .show > .nav-link.hostel-residence-global-living-tab {
        border-radius: 15px;
        font-size: 16px !important;
        padding: 16px !important;
    }
}

/* Min Width: 576px and Max Width: 767px */
@media screen and (min-width: 576px) and (max-width: 767px) {
    .hostel-residence-global-living-experience-section {
        padding: 70px 0;
    }

    .hostel-residence-global-living-title {
        font-size: 52px;
        margin-bottom: 25px;
    }

    .hostel-residence-global-living-subtitle {
        font-size: 22px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .hostel-residence-global-living-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab.active,
    .nav-pills .show > .nav-link.hostel-residence-global-living-tab {
        width: auto !important;
        font-size: 18px;
        padding: 18px 24px;
        justify-content: center;
        flex: 1 1 calc(50% - 20px);
        text-align: center;
    }

    .hostel-residence-global-living-tabs #gl-tab-3 {
        order: 1;
    }

    .hostel-residence-global-living-tabs #gl-tab-2 {
        order: 2;
    }

    .hostel-residence-global-living-tabs #gl-tab-4 {
        order: 3;
    }

    .hostel-residence-global-living-tabs #gl-tab-1 {
        order: 4;
    }

    .hostel-residence-global-living-track img {
        height: 350px;
    }

    .hostel-residence-global-living-track {
        gap: 20px;
    }
}

/* Min Width: 768px and Max Width: 991px */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .hostel-residence-global-living-experience-section {
        padding: 80px 0;
    }

    .hostel-residence-global-living-title {
        font-size: 56px;
        margin-bottom: 25px;
        text-align: center;
    }

    .hostel-residence-global-living-subtitle {
        font-size: 24px;
        margin-bottom: 45px;
        padding: 0 30px;
        text-align: center;
    }

    .hostel-residence-global-living-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab,
    .nav-pills .nav-link.hostel-residence-global-living-tab.active,
    .nav-pills .show > .nav-link.hostel-residence-global-living-tab {
        width: auto !important;
        font-size: 18px;
        padding: 16px 28px;
        justify-content: center;
        flex: none;
        text-align: center;
    }

    .hostel-residence-global-living-tabs #gl-tab-3 {
        order: 1;
    }

    .hostel-residence-global-living-tabs #gl-tab-2 {
        order: 2;
    }

    .hostel-residence-global-living-tabs #gl-tab-4 {
        order: 3;
    }

    .hostel-residence-global-living-tabs #gl-tab-1 {
        order: 4;
    }

    .hostel-residence-global-living-track img {
        height: 400px;
    }

    .hostel-residence-global-living-track {
        gap: 25px;
    }
}
