@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f8f8f8;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 3%;
    background: white;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 100px;
    margin-right: 10px;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: #6a7b46;
    line-height: 0;
    
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #0056b3;
}

.logo a {
    text-decoration: none;
}

.hero {
    width: 100%;
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: ease-in-out;
}

.institutions {
    text-align: center;
    padding: 50px 20px;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 80px;
    max-width: 1200px;
    margin: auto;
  }
  
  .institution {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
  }
  
  .institution:hover {
    transform: translateY(-5px);
  }
  
  .institution img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .institution h3 {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
  }
  .institutions h2{
    color: #0056b3;
    margin-bottom: 10px;
    font-size: 32px;
    font-family: "Montserrat", serif;
  }
  .institution a{
    text-decoration: none;
  }
  html {
    scroll-behavior: smooth;
}

.campus {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    top: -50px;
}

.campus h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #0056b3;
    font-family: "Montserrat", serif;
}

#institutions, #campus {
    scroll-margin-top: 80px; 
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Facility Box */
.facility {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.facility img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
}


.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(106, 123, 70, 0.8); 
    color: white;
    padding: 15px;
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
}

.facility:hover .overlay {
    opacity: 1; 
}

.facility:hover img {
    transform: scale(1.05); 
}

.overlay h3 {
    margin: 0;
    font-size: 22px;
}

.overlay p {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: normal;
    margin-top: 5px;
}

.governing-body {
    text-align: center;
    padding: 50px 20px;
}

#governing-body {
    padding-top: 20px; 
    scroll-margin-top: 100px; 
    margin-top: -60px;
}


.governing-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 15px;
}

.member {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 250px;
    transition: background-color 0.3s ease-in-out;
}

.image-container {
    width: 130px;
    height: 130px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member h3{
    color: #6a7b46;
}

.member:hover {
    background-color: #6a7b46;
    color: white; 
}

.member:hover h3 {
    color: white; 
}

.governing-body  h2{
    color: #0056b3;
    margin-bottom: 10px;
    font-size: 32px;
    font-family: "Montserrat", serif;
}
.designation{
    font-size: 18px;
}
.description{
    font-style: italic;
}




.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: #ebe9e9;
}

.contact-info {
    width: 40%;
    padding-bottom: 100px;
}

.contact-info h2 {
    font-size: 28px;
    color: #333;
    text-align: center;
    color: #0056b3;
    font-family: "Montserrat", serif;
}

.contact-info p {
    font-size: 16px;
    color: #666;
    text-align: left;
}

.contact-form {
    width: 50%;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #6a7b46;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Montserrat", serif;
}

.contact-form button:hover {
    background-color: #6a7b46;
}

.footer {
    background-color: #04724d;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-box {
    width: 30%;
    min-width: 250px;
    text-align: left;
}

.footer-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: "Montserrat", serif;
}

.footer-box p {
    font-size: 14px;
    margin: 5px 0;
}

.footer-box a {
    color: white;
    text-decoration: none;
}

.footer-box a:hover {
    text-decoration: underline;
}

/* 📌 Make Navigation Responsive */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-active {
        display: flex;
    }
}

/* 📌 Fix Grid Layouts for Small Screens */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .governing-grid {
        flex-direction: column;
        align-items: center;
    }

    .contact-section {
        flex-direction: column;
        align-items: center;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-box {
        width: 100%;
        text-align: center;
    }
}



