.ward-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 50px;
}

.ward-wrapper {
    display: flex;
    justify-content: flex-start;
}

.ward-wrapper:nth-child(even) {
    justify-content: flex-end;
}

.ward {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 20px;
    gap: 80px;
    width: 100%;
    max-width: 700px;
    height: 400px;
}

.ward:hover {
    transform: translateY(-10px);
}

.photo-container {
    position: relative;
    overflow: hidden;
    /* border-radius: 50%; */
    width: 280px;
    height: 280px;
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.photo-container img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.photo-container:hover img {
    transform: scale(1.1);
}

.ward-info {
    text-align: center;
    padding: 0px;
    flex-grow: 1;
}

.ward-info h2 {
    color: #333;
    margin-bottom: 10px;
}

.ward-info p {
    color: #777;
    margin-bottom: 15px;
}

.details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.details div {
    text-align: center;
}

.details div h3 {
    color: #555;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.details div span {
    font-size: 1.5em;
    color: #333;
}

.learn-more {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: #007bff;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.learn-more:hover {
    background-color: #0056b3;
}

.heading-title{
    text-align: center;
}

/* Modal styling */


/* Enhanced Modal styling */
/* Enhanced Modal styling with Centered Position */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: fadeIn 0.5s ease;
    margin-top: 50px;
    /* Animation for modal */
}



.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    animation: slideIn 0.4s ease;
    /* Slide-in animation for content */
    margin: 0 auto;
    /* Centering in flexbox */
}

/* Ensure the close button is in the right position */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff5f5f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;

}

.close-btn:hover {
    background: #ff3232;
}






/* Animation for modal appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animation for modal content sliding */
@keyframes slideIn {
    from {
        transform: translateY(-30px);
    }

    to {
        transform: translateY(0);
    }
}

/* Responsive image within the modal */
/* #modalImage {
    width: 100%;
    max-height: 300px;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
} */

#modalImage {
    width: 100%;
    max-height: 400px;
    height: auto;
    border-radius: 10px;
    margin: 20px auto;
    object-fit: contain;
    padding: 10px;
    background: #f8f8f8;
}


/* Responsive font sizing */
#modalTitle {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
}

#modalDescription {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}


/* re */
/* Responsive adjustments */
@media (max-width: 768px) {
    .ward {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        max-height: 700px;
        padding: 15px;
        gap: 15px;
    }

    .photo-container {
        width: 140px;
        height: 140px;
    }

    #modalTitle {
        font-size: 1.6em;
    }

    #modalDescription {
        font-size: 0.9em;
    }

    
}

@media (max-width: 480px) {
    .ward-info h2 {
        font-size: 1.3em;
    }

    .ward-info p {
        font-size: 0.9em;
    }

    .photo-container {
        width: 200px;
        height: 200px;
    }

    #modalTitle {
        font-size: 1.4em;
    }

    #modalDescription {
        font-size: 0.85em;
    }

    
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
    }

    to {
        transform: translateY(0);
    }
}

/* re */


/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }

    #modalTitle {
        font-size: 1.6em;
    }

    #modalDescription {
        font-size: 0.9em;
    }
}

.csr {
    height: 400px;
    width: 200px;
   
}



/* videos section  */
/* Video Section */
#videos {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
  }
  
  .section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
  }
  
  /* Video Container */
  .video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  /* Video Cards */
  .video-card {
    position: relative;
    width: 350px;  /* Fixed width */
    height: 200px; /* Fixed height */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }
  
  .video-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.3);
  }
  
  /* Video Wrapper */
  .video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
  }
  
  /* Video Styling */
  .video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures videos cover the entire area without distortion */
    border-radius: 12px;
    transition: filter 0.3s ease-in-out;
  }
  
  .video-card:hover video {
    filter: brightness(0.7);
  }
  
  /* Caption Styling */
  .video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  }
  
  /* Show caption on hover */
  .video-card:hover .video-caption {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* load  */
  /* Load More Button */
  #loadMoreVideos {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
  }
  
  #loadMoreVideos:hover {
    background-color: #0056b3;
  }
  
  /* Hide videos initially */
  .hidden {
    display: none;
  }
  .videos-sec{
    
    justify-content: center;
    align-items: center;
  }
  
  /* videos section end */
/* dhd dd kj ljljlj k */