*{
    margin: 0;
    padding: 0;
    font-family: 'poppins',sans-serif;
}
.header{
    background-color: #fff;
    position: relative;
}
nav{
    display: flex;
    padding: 2% 2%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 100px;
    height: 80px;
}
nav .image{
    width: 350px;
    padding-left: 10px;
}
.nav-links{
    flex: 1;
    text-align: right;
    overflow: hidden;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: black;
    text-decoration: none;
    font-size: 13px; 
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
nav .fa{
    display: none;
}
.text-box{
    height: 40vh;
    width: 100%;
    text-align: center;
    background-image: url(images/background.jpg);
    position: relative;
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
}
.text-box h1{
    padding-top: 50px;
    font-size: 62px;
    color: #fff;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}

/*-----admin----*/
/*.admin{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.admin-col{
    flex-basis: 38%;
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 20px 12px;
    position: relative;
    overflow: hidden;
}
.admin-col img{
    width: 350px;
    height: 350px;
    padding-bottom: 5px;
}*/
.admin h1{
    margin: auto;
    text-align: center;
    padding-top: 50px; 
    font-size: 36px;
    font-weight: 600;
}
.admin-col {
    text-align: center;
    /*padding-left: 550px;*/
    width:100%;
}

.admin-col img {
    display: block;
    margin: 0 auto;
    width: 350px;
    height: 350px;
    padding-bottom: 5px;
}



/*-----course----*/
.team{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.team-col{
        display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    padding: 20px 12px;
    position: relative;
    overflow: hidden;
}
.team-col img{
    width: 200px;  
    height: 250px;
    padding-bottom: 5px;
}

/*--gallery--*/
.grid-gallery h1{
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    background-color: #f0f0f0;
    padding-top: 20px;
}
.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0; /* Optional: Set a background color for the page */
  }
  table {
    text-align: center;
    margin-top: 20px; /* Adjust margin as needed */
    border-spacing: 20px; /* Adds spacing between cells */
  }
  td {
    position: relative;
    width: 400px; /* Adjust the width of the cells */
    height: 300px; /* Adjust the height of the cells */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
  }
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  td:hover .overlay {
    opacity: 1;
  }
  .text {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
  }
  .button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
  }
  .button:hover {
    background-color: #2980b9;
  }

/*-----Footer-----*/
.footer{
    width: 100%;
    position: absolute;
    padding: 30px 20px;
    background-color: #000;
    font-size: 13px;
    line-height: 20px;
}
.footer .col{
    flex-basis: 25%;
    padding: 10px;
    flex-grow: 1;
    margin-bottom: 20px;
}
.footer .col:nth-child(3){
    flex-basis: 15%;
}
.footer .row{
    align-items: flex-start;
    padding: 10px 0;
    margin: auto;
    display: flex;
    justify-content: space-between;
}
.footer h5{
    font-size: 20px;
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600; 
    color: #fff;  
}
.footer h4{
    font-size: 20px;
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600; 
    color: #f44336;  
}
.footer p{
    color: #fff;
}
.footer img{
    align-content: center;
    width: 100px;
    height: 80px;
}
.social-icons .fab{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    color: #000;
    background: #fff;
    margin-right: 15px;
    cursor: pointer;
}
hr{
    width: 90%;
    border: 0;
    border-bottom: 1px solid #ccc;
    margin: 5px auto;
}
.copyright{
    text-align: center;
}

/*----mobile view----*/
@media only screen and (max-width: 600px){
    .responsive-element {
        width: 100vw; /* Adjusting width for smaller screens */
        max-width: 100%; /* Optional: set maximum width */
      }
    .text-box h1{
        font-size: 20px;
    }
    .nav-links.responsive{
        display: block;
        position: absolute;
        background: #f44336;
        height: 100vh;
        width: 200px;
        top: 0;
        right: 0;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa{
        display: block;
        color: #000;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 30px;
    }
    
    .nav-links{
        display: none;
    }
    nav .image{
        width: 200px;
    }
    .row{
        flex-direction: column;
    }
    .cta h1{
        font-size: 24px;
    }
    img{
        width: 200px;
    }
    .footer{
        bottom: unset;
    }
    .footer .col{
        flex-basis: 100%;
    }
    .footer .col:nth-child(3){
        flex-basis: 100%;
    }
}