/* Facilities CSS - Ultra Premium Accordion List Design */

.facilities-premium-section {
    padding: 100px 20px;
    background: var(--white);
    position: relative;
}

.fac-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Accordion Item wrapper */
.fac-item {
    border-bottom: 1px solid rgba(190, 143, 159, 0.2);
}

.fac-item:first-child {
    border-top: 1px solid rgba(190, 143, 159, 0.2);
}

/* Accordion Header */
.fac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0;
    cursor: pointer;
    transition: all 0.4s ease;
    background: var(--white);
}

.fac-header:hover {
    padding-left: 15px;
    padding-right: 15px;
}

.fac-title-wrap {
    display: flex;
    align-items: center;
    gap: 40px;
}

.fac-number {
    font-size: 1.2rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
}

.fac-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--teal-dark);
    margin: 0;
    transition: color 0.3s ease;
}

.fac-item.active .fac-header h2 {
    color: var(--teal);
}

.fac-item:hover .fac-header h2 {
    color: var(--teal);
}

/* Toggle Icon */
.fac-toggle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid rgba(109, 7, 54, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--teal);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent;
}

.fac-item:hover .fac-toggle {
    border-color: var(--teal);
    transform: scale(1.05);
}

.fac-item.active .fac-toggle {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
    transform: rotate(45deg); /* Changes Plus into Cross */
}

/* Accordion Body (Modern CSS Grid Transition) */
.fac-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease;
}

.fac-item.active .fac-body {
    grid-template-rows: 1fr;
}

.fac-body-inner {
    overflow: hidden;
}

/* Inner Content Grid */
.fac-content-grid {
    display: flex;
    gap: 60px;
    padding: 20px 0 60px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.1s; /* delayed slightly to match grid transition */
}

.fac-item.active .fac-content-grid {
    opacity: 1;
    transform: translateY(0);
}

/* Left Image */
.fac-image-wrap {
    flex: 0 0 45%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

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

.fac-item.active .fac-image-wrap img {
    transform: scale(1.05);
}

/* Right Content */
.fac-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fac-desc {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 35px;
}

.fac-features {
    list-style: none;
    margin-bottom: 45px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fac-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--dark2);
    font-weight: 500;
}

.fac-features li i {
    color: var(--gold);
    font-size: 1.2rem;
}

.fac-action {
    margin-top: auto;
}

.btn-fac {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--teal);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--teal);
}

.btn-fac i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-fac:hover {
    background: transparent;
    color: var(--teal);
    transform: translateY(-3px);
}

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

/* Call to Action Section */
.cta-section {
    background: url('images/surgary.jpg') center/cover no-repeat fixed;
    position: relative;
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 16, 26, 0.88);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.btn-primary-alt {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--gold);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary-alt:hover {
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .fac-header {
        padding: 25px 0;
    }
    .fac-header:hover {
        padding-left: 0;
        padding-right: 0;
    }
    .fac-title-wrap {
        gap: 20px;
    }
    .fac-header h2 {
        font-size: 1.6rem;
    }
    .fac-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .fac-content-grid {
        flex-direction: column;
        gap: 30px;
        padding: 10px 0 40px 0;
    }
    .fac-image-wrap {
        height: 250px;
        flex: none;
    }
    .fac-features {
        grid-template-columns: 1fr;
    }
}
