/* Overall Layout */
.infrastructure-container {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 20px;
    font-family: "Poppins", sans-serif;
    color: #333;
}

/* Page Title */
.infra-heading {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    color: #0d5db3;
    margin-bottom: 8px;
}

.infra-subheading {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Accordion Container */
.accordion {
    border-radius: 15px;
    overflow: hidden;
}

/* Accordion Item */
.accordion-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .accordion-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }

/* Accordion Header */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
    background: linear-gradient(to right, #eef5ff, #f7fbff);
    border-radius: 12px;
    transition: background 0.3s ease;
}

    .accordion-header:hover {
        background: linear-gradient(to right, #e0edff, #f0f7ff);
    }

    .accordion-header h2 {
        font-size: 1.25rem;
        color: #0d5db3;
        margin: 0;
        font-weight: 600;
    }

.accordion-icon {
    font-size: 1.8rem;
    color: #0d5db3;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* Accordion Content */
.accordion-content {
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    border-top: 1px solid #e0e0e0;
}

.accordion-item.active .accordion-content {
    padding: 25px 30px;
}

/* Description */
.facility-description {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}


.image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #fff;
    padding: 8px; /* Adds soft top-bottom space inside */
}

    .image-container:hover {
        transform: scale(1.05);
    }

    .image-container img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 8px;
    }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 38px;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .modal-close:hover {
        color: #ccc;
    }

.facility-description {
    text-align: center;
    font-weight: bold;
    font-style: italic;
    
}



/* Responsive */
@media (max-width: 768px) {
    .infra-heading {
        font-size: 1.8rem;
    }

    .accordion-header h2 {
        font-size: 1.1rem;
    }

    .image-container img {
        height: 160px;
    }
}
