/* ======================================== */
/* FACILITIES STACKED SECTION - WARM THEME */
/* ======================================== */

.facilities-stacked-section {
    padding: 100px 0 120px 0 !important;
    background: linear-gradient(135deg, #e8dcc8 0%, #f5efe6 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Elements */
.facilities-stacked-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.facilities-stacked-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ======================================== */
/* SECTION HEADER */
/* ======================================== */

.section-intro {
    margin-bottom: 60px;
}

.hostel-tag {
    background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%);
    color: #FFFFFF;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(139, 115, 85, 0.2);
    margin-bottom: 15px;
}

.section-title {
    color: #4A3228;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-decoration: none !important;
    border-bottom: none !important;
    background: none !important;
}

/* ======================================== */
/* ✅ FIXED: Facilities Span - Underline Removed */
/* ======================================== */
.section-title span {
    color: #8B6B4A;
    position: relative;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
}

/* Pseudo elements killed - no underline */
.section-title span::after,
.section-title span::before {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.section-title::after,
.section-title::before {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
}

.section-subtitle {
    color: #5A4A3A;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ======================================== */
/* STACKED CARDS CONTAINER */
/* ======================================== */

.stacked-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
}

.stacked-card-wrapper {
    position: sticky;
    top: 100px;
    padding-bottom: 50px;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 1;
}

.stacked-card-wrapper:last-child {
    padding-bottom: 0;
}

.stacked-card-wrapper:nth-child(1) {
    transition-delay: 0.1s;
}

.stacked-card-wrapper:nth-child(2) {
    transition-delay: 0.2s;
}

.stacked-card-wrapper:nth-child(3) {
    transition-delay: 0.3s;
}

.stacked-card-wrapper:nth-child(4) {
    transition-delay: 0.4s;
}

.reveal-active {
    opacity: 1 !important;
}

/* ======================================== */
/* FACILITY CARDS - WARM THEME */
/* ======================================== */

.facility-card-main {
    height: auto !important;
    min-height: 450px;
    border-radius: 60px;
    color: #ffffff;
    overflow: visible !important;
    position: relative;
    padding: 40px 40px 50px 40px !important;
    box-shadow: 0 20px 60px rgba(139, 115, 85, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    opacity: 1;
    visibility: visible;
}

.facility-card-main:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 80px rgba(139, 115, 85, 0.25);
}

/* Card Background Gradients */
.facility-card-main.card-1 {
    background: linear-gradient(135deg, #4A3228 0%, #6B5544 50%, #8B6B4A 100%);
}

.facility-card-main.card-2 {
    background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 50%, #A8825A 100%);
}

.facility-card-main.card-3 {
    background: linear-gradient(135deg, #8B6B4A 0%, #A8825A 50%, #C49A6C 100%);
}

.facility-card-main.card-4 {
    background: linear-gradient(135deg, #4A3228 0%, #6B5544 50%, #8B6B4A 100%);
}

/* Card Overlay Pattern */
.facility-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.facility-card-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ======================================== */
/* CARD HEADER */
/* ======================================== */

.card-header-label {
    text-align: center;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.card-header-label::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 10px auto 0;
}

/* ======================================== */
/* CARD NUMBER */
/* ======================================== */

.card-number {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    z-index: 1;
    pointer-events: none;
    font-family: 'Arial', sans-serif;
    line-height: 1;
    overflow: visible;
}

/* ======================================== */
/* CARD HEADING */
/* ======================================== */

.card-heading-large {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
}

.card-heading-large span {
    background: linear-gradient(135deg, #E8B86D, #C49A6C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-text-detail {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 450px;
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
}

/* ======================================== */
/* CARD FEATURES LIST */
/* ======================================== */

.card-features {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.card-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-feature-item i {
    font-size: 12px;
    color: #E8B86D;
}

/* ======================================== */
/* CARD IMAGE CONTAINER */
/* ======================================== */

.card-image-container {
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.facility-card-main:hover .card-image-container img {
    transform: scale(1.05);
}

/* ======================================== */
/* CARD EXPLORE BUTTON */
/* ======================================== */

.card-explore-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.card-explore-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: #ffffff !important;
    text-decoration: none !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.card-explore-btn i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.card-explore-btn:hover i {
    transform: translateX(5px);
}

/* ======================================== */
/* PROGRESS INDICATOR */
/* ======================================== */

.card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
    overflow: hidden;
}

.card-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #E8B86D, #C49A6C);
    width: 0%;
    transition: width 1.5s ease;
}

.reveal-active .card-progress-bar {
    width: 100%;
}

/* ======================================== */
/* SEATING AREA */
/* ======================================== */

.seating-area-wrapper {
    position: relative;
    z-index: 4;
    margin-top: 20px;
    padding-bottom: 20px;
    overflow: visible !important;
    clear: both;
}

.seating-area-wrapper h3,
.seating-area-wrapper .seating-area-text {
    color: #FFFFFF !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 5px;
    display: block;
    overflow: visible !important;
}

.facility-card-main .seating-area-wrapper {
    position: relative;
    z-index: 4;
    margin-top: 15px;
    padding-bottom: 30px;
    overflow: visible !important;
}

.facility-card-main .seating-area-wrapper h3,
.facility-card-main .seating-area-wrapper .seating-area-text {
    color: #FFFFFF !important;
    font-size: 1.4rem;
    font-weight: 700;
    overflow: visible !important;
}

/* ======================================== */
/* RESPONSIVE */
/* ======================================== */

@media (max-width: 1024px) {
    .facilities-stacked-section {
        padding: 80px 0 100px 0 !important;
    }

    .facility-card-main {
        height: auto !important;
        min-height: 400px;
        border-radius: 40px;
        padding: 30px 30px 40px 30px !important;
    }

    .card-heading-large {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .card-number {
        font-size: 3rem;
        top: 8px;
        right: 20px;
    }

    .card-explore-btn {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .facility-card-main .seating-area-wrapper h3,
    .facility-card-main .seating-area-wrapper .seating-area-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .facilities-stacked-section {
        padding: 60px 0 80px 0 !important;
    }

    .facility-card-main {
        height: auto !important;
        min-height: 500px;
        border-radius: 30px;
        padding: 25px 25px 40px 25px !important;
    }

    .card-heading-large {
        font-size: 2.2rem;
    }

    .card-text-detail {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .card-number {
        font-size: 2.8rem;
        top: 8px;
        right: 18px;
    }

    .stacked-card-wrapper {
        top: 80px;
        padding-bottom: 30px;
    }

    .card-image-container {
        height: 250px;
        margin-top: 15px;
        border-radius: 20px;
    }

    .card-features {
        gap: 8px;
    }

    .card-feature-item {
        font-size: 0.75rem;
        padding: 3px 12px;
    }

    .row {
        flex-direction: column;
    }

    .col-lg-6 {
        width: 100%;
        flex: 0 0 100%;
    }

    .px-lg-5 {
        padding: 0 !important;
    }

    .card-explore-btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }

    .facility-card-main .seating-area-wrapper h3,
    .facility-card-main .seating-area-wrapper .seating-area-text {
        font-size: 1.1rem;
    }

    .seating-area-wrapper {
        padding-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .facilities-stacked-section {
        padding: 40px 15px 60px 15px !important;
    }

    .facility-card-main {
        height: auto !important;
        min-height: 450px;
        border-radius: 20px;
        padding: 20px 20px 50px 20px !important;
    }

    .card-heading-large {
        font-size: 1.8rem;
    }

    .card-text-detail {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hostel-tag {
        font-size: 12px;
        padding: 6px 18px;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .card-number {
        font-size: 2.2rem;
        top: 6px;
        right: 15px;
    }

    .stacked-card-wrapper {
        top: 60px;
        padding-bottom: 20px;
    }

    .card-explore-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .card-feature-item {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .card-header-label {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .card-image-container {
        height: 200px;
        border-radius: 15px;
    }

    .facility-card-main .seating-area-wrapper h3,
    .facility-card-main .seating-area-wrapper .seating-area-text {
        font-size: 1rem;
    }

    .seating-area-wrapper {
        padding-bottom: 40px;
    }
}

/* ======================================== */
/* DARK MODE - WARM THEME */
/* ======================================== */

@media (prefers-color-scheme: dark) {
    .facilities-stacked-section {
        background: linear-gradient(135deg, #2A1F18 0%, #3D2D22 100%);
    }

    .section-title {
        color: #F5E6D3;
    }

    .section-title span {
        color: #C49A6C;
    }

    /* Dark mode mein bhi underline killed */
    .section-title span::after,
    .section-title span::before {
        content: none !important;
        display: none !important;
        background: none !important;
        opacity: 0 !important;
    }

    .section-subtitle {
        color: #D4C5B5;
    }

    .hostel-tag {
        background: linear-gradient(135deg, #6B5544 0%, #8B6B4A 100%);
    }

    .facility-card-main {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .facility-card-main:hover {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    }

    .facility-card-main.card-1 {
        background: linear-gradient(135deg, #2A1F18 0%, #4A3228 50%, #6B5544 100%);
    }

    .facility-card-main.card-2 {
        background: linear-gradient(135deg, #3D2D22 0%, #4A3228 50%, #6B5544 100%);
    }

    .facility-card-main.card-3 {
        background: linear-gradient(135deg, #4A3228 0%, #6B5544 50%, #8B6B4A 100%);
    }

    .facility-card-main.card-4 {
        background: linear-gradient(135deg, #2A1F18 0%, #4A3228 50%, #6B5544 100%);
    }

    .card-heading-large span {
        background: linear-gradient(135deg, #C49A6C, #E8B86D);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .card-feature-item i {
        color: #C49A6C;
    }

    .card-progress-bar {
        background: linear-gradient(to right, #6B5544, #C49A6C);
    }

    .facilities-stacked-section::before,
    .facilities-stacked-section::after {
        background: radial-gradient(circle, rgba(196, 154, 108, 0.04) 0%, transparent 70%);
    }

    .card-explore-btn {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .card-explore-btn:hover {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.25);
    }

    .card-number {
        color: rgba(255, 255, 255, 0.04);
    }

    .facility-card-main .seating-area-wrapper h3,
    .facility-card-main .seating-area-wrapper .seating-area-text {
        color: #E8B86D !important;
    }

    .seating-area-wrapper h3,
    .seating-area-wrapper .seating-area-text {
        color: #E8B86D !important;
    }
}

/* ======================================== */
/* ROOT VARIABLES - WARM THEME */
/* ======================================== */

:root {
    --facilities-primary: #8B6B4A;
    --facilities-primary-light: #A8825A;
    --facilities-primary-lighter: #C49A6C;
    --facilities-primary-dark: #6B5544;
    --facilities-primary-darker: #4A3228;
    --facilities-gold: #E8B86D;
    --facilities-bg-start: #e8dcc8;
    --facilities-bg-end: #f5efe6;
}