.school-hero {
    background: #5b7ec8;
    height: 399px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    z-index: 1;
    border-radius: 25px;
    margin-bottom: -60px;
    padding: 0 30px;
}

.container{
    max-width: 600px;
    margin: 0 auto;
      box-shadow: 0 0 25px 0 rgba(0, 0, 0, .125);
      height: auto;
      padding-bottom: 30px;

}


.school-center {
    text-align: center;
    color: #fff;
}

.school-hero:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
    opacity: 0.6;
     border-radius: 25px;
}

div#second-ui  .school-hero:after ,
div#second-ui .school-hero{
    border-radius: 25px 25px 0 0;
}



.school-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}
.all-data-btn {
    position: absolute;
    bottom: -22px;
    background: #e74c3c;
    width: 85%;
    max-width: 420px;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    /* box-shadow: 0 0 20px rgba(0,0,0,.4); */
    color: #fff;
}

.student-header {
    padding: 0;

    gap: 10px;

    z-index: 55;
    position: relative;
  
   
  
  
}

.student-list {

    display: grid;
    gap: 20px;
    width: calc(100% - 40px );
    margin: 0 auto;

    border-radius: 25px;
}

.student-card {
    background: #e55039;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;
    border: 2px solid #e55039;
}
.all_info_student {
    padding: 30px 20px 20px;
}
.student-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    position: absolute;
    bottom: -43px;
    left: auto;
}
.baner {
    background: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 185px;
    position: relative;
    text-align: center;
    display: flex;
    justify-content: center;
}

.skeleton {
    height: 260px;
    border-radius: 12px;
    background: linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% {background-position:-400px 0}
    100% {background-position:400px 0}
}



#back-btn {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 10px 0px;
    background: #e74c3c;
    color: #fff;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

button#back-btn svg {
    width: 45px;
    height: 25px;
}
.school-center h2 {
    font-size: 34px;
    font-weight: 900;
}
.student-card svg{
    width: 20px;
    height: 20px;
}
.student-card  svg *{
    fill: #fff;
}

.student-card a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-weight: 500;
}

.student-card h3{
    font-size: 30px;
    margin: 10px 0;
    text-transform: capitalize;
}
.personal_info {
    display: flex;
    align-items: center;
    justify-content: space-between;
margin-bottom: 15px;

}
.all_info_student * {
    color: #fff;
}

@media(max-width:576px){
.student-card img {
    width: 100px;
    height: 100px;

}
}


.form_data {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form_data div {
    display: flex;
    flex-direction: column;
}

.form_data {}

.form_data input {
    padding: 19px 19px;
    margin-top: 6px;
    border: 1px solid #f4f3f2;
    border-radius: 6px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

select {}

.form_data select {
    padding: 15px 12px;
    margin-top: 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border: 1px solid #f4f3f2;
    font-size: 14px;
}

select {}

.form_data label {
    font-size: 17px;
    font-weight: 600;
}

.form_data button {
    font-size: 18px;
    padding: 15px 25px;
    background: #e55039;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
}


.baner .card-overlay-link {
    position: absolute;
    right: 0;
    padding: 15px 20px;
    background: #fff;
    color: #000;
    border-radius: 0  0 0 25px;
    cursor: pointer;
}
.student-modal {
    display: none;            /* 🔥 default hidden */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9999;
}

.student-modal.active {
    display: block;           /* 🔥 this opens popup */
}

.modal-content {
    background: #fff;
    width: 400px;
    margin: 10vh auto;
    padding: 20px;
    border-radius: 8px;
}

button.student-delete-btn.card-overlay-link {
    left: 0;
    right: auto;
    border-radius: 0 0 25px 0;
}
