@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
}

html{
    overflow-x: hidden;
    scroll-padding-top: 9rem;
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif;
}

h1{
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(35, 35, 85);
}

span{
    font-size: 0.9rem;
    color: #757373;
}

h6{
    font-size: 1.1rem;
    color: rgb(24, 24, 49);
}


/**home navigation */

nav{
    display: flex;
    padding: 1% 6%;
    justify-content: space-between;
    align-items: center;
}
.nav-background{
    background: rgb(17, 17, 33);
}

nav img{
    width: 75px;
}
#vertical{
    border-left: 2px solid white;
    height: 50px;
    position: relative;
    display: inline-block;
    bottom: 14px;
    right: 1px;
}
.foundation{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    letter-spacing: 8px;
    font-size: 16.5px;
    text-align: center;
}

.nav-name{
    list-style: none;
    display: inline-block;
    position: relative;
    bottom: 20px;
    align-items: center;
    text-align: left;
    text-decoration: none;
    color: white;
    font-size:24px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.nav-links{
    flex: 1;
    text-align: right;
}

.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a{
    color: white;
    text-decoration: none;
    font-size:15px;
}

.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #e8ab26;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after{
    width: 100%;
}

.text-box{
    width: 90%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.text-box h1{
    font-size: 62px;
    color: white;
    background-color: rgb(17, 17, 33);
}

.text-box p{
    margin: 10px 0 40px ;
    font-size: 14px;
    color: white;
}

.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.hero-btn:hover{
    border: 1px solid #e8ab26;
    background: #e8ab26;
    transition: 1s;
}

nav .fa{
    display: none;
}


@media(max-width: 700px){
    .text-box h1{
        font-size: 20px;
    }
    
    .nav-links ul li{
        display: block;
        border-bottom: 1px solid white;
    }

    .nav-links{
        position: fixed;
        background: #e8ab26;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }

    nav .fa{
        display: block;
        color: white;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul{
        padding: 30px;
        border: 1px solid white;

    }
    .nav-name{
        font-size: 18px;
    }

    .foundation{
        font-size: 7.5px;
    }
}





.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    height: auto;
}

button.prev, button.next {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}



/**home page */
#home{
   
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;

}



/**about us */

#aboutus{
    padding: 5vw 8vw 0 8vw;
    text-align: center;
    padding-bottom: 100px;
}

#aboutus .info-base{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 1rem;
    margin-top: 50px;
}

#aboutus .info-box{
    background: #f9f9ff;
    text-align: start;
}

#aboutus .info-box i{
    font-size: 2.3rem;
    color: rgb(44, 44, 80);
}

#aboutus .info-box h3{
    font-size: 1.2rem;
    font-weight: 600;
    color: rgb(46, 46, 59);
    padding: 13px 0 7px 0;
}

#aboutus .info-box p{
    font-size: 1rem;
    font-weight: 400;
    color: rgb(70, 70, 87);
}

/**countdown timer */

.countdown {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.countdown-item {
    text-align: center;
    margin: 10px;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background-color 0.3s;
}

.countdown-item:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.3);
}

.countdown-number {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    animation: fadeIn 1s ease-in-out;
}

.countdown-label {
    color: white;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/**registration */

#registration{
    padding: 6vw 8vw 6vw 8vw;
    background-image: linear-gradient(rgba(99,112,168,0.5), rgba(81,91,233,0.5)), url(images/class1.JPEG);
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

#registration .reminder{
    color: white;
}

#registration .reminder h1{
    color: white;
}

#registration .form{
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

#registration .form input{
    margin: 15px 0;
    padding: 15px 10px;
    border: 1px solid rgb(84, 40, 241);
    outline: none;
}

#registration .form input::placeholder{
    color: #413c3c;
    font-weight: 500;
    font-size: 0.9rem;
}

#registration .form a.btn{
    text-decoration: none;
    font-size: 0.9rem;
    padding: 13px 35px;
    background-color: #fff;
    font-weight: 600;
    border-radius: 5px;
    color: #fff;
    background: #fdc93b;
    transition: 0.3s ease;
}


#registration .form a.btn:hover{
    color: rgb(21, 21, 100);
    background: #fff;
}

#registration .form .btn{
    margin-top: 20px;
}

@media (max-width: 769px){
    #registration{
        padding: 6vw 4vw 6vw 4vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: auto; 
    }

    #registration .form{
        margin-top: 50px;
    }
}

/**Staff memebers */
.staff-section {
    text-align: center;
    padding: 40px 20px;
    background: white;
}

.staff-section h2 {
    font-size: 2.4rem;
    color: #333;
    margin-bottom: 30px;
}

.staff-container {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Enable horizontal scrolling on small screens */
    gap: 20px;
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.staff-member {
    background: #fff;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 220px; /* Fixed card width */
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    margin: 10px;
}

.staff-member:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.staff-photo {
    width: 100%;
    height: 150px; /* Fixed height */
    object-fit: cover;
    border-bottom: 4px solid #007bff;
}

.staff-info {
    padding: 15px;
}

.staff-info h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.role {
    font-size: 1rem;
    color: #555;
    margin: 5px 0;
}

.description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-bottom: 10px; /* Space below social links */
}

.social-icon {
    width: 36px; /* Increased size */
    height: 36px; /* Increased size */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
    color: #333;
    font-size: 20px; /* Increased icon size */
    text-decoration: none; /* Ensure text-decoration is removed */
}

.social-icon:hover {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.1);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .staff-container {
        gap: 15px;
    }

    .staff-member {
        width: 200px; /* Adjust card width for medium screens */
    }
}

@media (max-width: 992px) {
    .staff-section h2 {
        font-size: 2.2rem;
    }

    .staff-info h3 {
        font-size: 1.3rem;
    }

    .role {
        font-size: 0.95rem;
    }

    .description {
        font-size: 0.8rem;
    }

    .staff-container {
        gap: 20px; /* Maintain spacing between cards */
    }
}

@media (max-width: 768px) {
    .staff-section h2 {
        font-size: 2rem;
    }

    .staff-info h3 {
        font-size: 1.2rem;
    }

    .role {
        font-size: 0.9rem;
    }

    .description {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .staff-section {
        padding: 30px 15px;
    }

    .staff-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: auto; /* Enable horizontal scrolling on small screens */
    }

    .staff-member {
        width: 180px; /* Adjusted card width for small screens */
    }

    .staff-info h3 {
        font-size: 1.1rem;
    }

    .role {
        font-size: 0.85rem;
    }

    .description {
        font-size: 0.75rem;
    }

    .social-links {
        gap: 10px; /* Adjust space between social links */
    }
}

/**footer section */
.footer {
    background: #282c34;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-logo h1 {
    font-size: 2rem;
    margin: 0;
    color: #eae6e6;
}

.footer-links,
.footer-socials {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-links h3,
.footer-socials h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #eae6e6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    color: #ddd;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.social-icon:hover {
    color: #61dafb;
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #61dafb;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background-color: #21a1f1;
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo h1 {
        font-size: 1.5rem;
    }

    .footer-links,
    .footer-socials {
        margin: 10px 0;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        font-size: 1.2rem;
    }
}

/**about us */


.about-us {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1200px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.text-section {
    flex: 1;
    padding: 1rem;
}

.text-section h1 {
    color: #333;
    margin-bottom: 1rem;
}

.text-section p {
    color: #666;
    line-height: 1.6;
    transition: max-height 0.3s ease, padding-bottom 0.3s ease;
    overflow: hidden;
}

.truncate {
    max-height: 80px; /* Adjust this value based on your design */
    padding-bottom: 1rem;
}

.text-section button {
    background: #fdc93b;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.3s;
}

.text-section button:hover {
    background: #f4ca56;
    transform: scale(1.05);
}

.text-section button:active {
    background: #f4ca56;
    transform: scale(1);
}

.image-section {
    flex: 1;
    text-align: center;
}

.image-section img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    .image-section img {
        width: 100%;
    }
}




















@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .countdown {
        flex-direction: column;
        padding: 10px;
    }

    .countdown-item {
        margin: 5px 0;
        padding: 10px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 1rem;
    }
}
