/* ========== Top Logo Section ========== */
.header-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    gap: 20px;
}

.logo {
    max-width: 150px;
}

.logotext h1 {
    font-size: 2.1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    font-family: "Segoe UI";
}

.motto {
    color: green;
    font-family: "Alex Brush", cursive;
    font: bold;
    font-size: 2rem;
    margin-top: 5px;
}

/* ========== Navigation Bar ========== */
.navbar {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-left: 150px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.nav-list li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #000;
    font-weight: 400;
    font-size: 1.3em;
    padding: 10px 5px;
    font-family: "Segoe UI";
    transition: color 0.3s ease;
}

.nav-list li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    height: 2px;
    width: 0%;
    background-color: rgb(80, 155, 80);
    transition: width 0.3s ease;
}

.nav-list li a:hover {
    color: rgb(80, 155, 80);
}

.nav-list li a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
    }

    .nav-list {
        gap: 10px;
    }

    .nav-list li a {
        font-size: 1.1em;
        padding: 8px 0;
    }
}

/*================Hero Section===========*/
.faculty-hero {
    background-image: url("../images/building1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.faculty-hero .overlay {
    background-color: rgba(0, 0, 0, 0.54); /* Dull black effect */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    font-family:'Segoe UI';
    align-items: center;
    justify-content: center;
}

.faculty-hero h1 {
    color: #fff;
    font-size: 2.3rem;
    font-weight: bold;
    z-index: 1;
    text-transform: uppercase;
    padding: 10px 60px;
    border: 2px solid #ffffffb0;
    background-color: rgba(255, 255, 255, 0.212);
    border-radius: 6px;
    font-family: 'Segoe UI';
}

/*========== Faculty Cards ==============*/

.faculty-cards-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.faculty-cards-section h2 {
    font-size: 2.5rem;
    font-family: 'Segoe UI';
    background-color: #004d00;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin: 40px auto 30px;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.faculty-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.faculty-card {
    width: 250px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.image-container {
    height: 200px;
    background-color: #e8fee7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    height: 180px;
    object-fit: cover;
}

.info {
    background-color: #004d00;
    color: white;
    padding: 15px 10px;
    position: relative;
    text-align: center;
    font-family: 'Segoe UI';
}

/* Name always visible */
.info h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    z-index: 2;
    position: relative;
}

/* Hide extra info initially */
.extra-info {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    font-family: 'Segoe UI';
}

/* Reveal on hover */
.faculty-card:hover .extra-info {
    opacity: 1;
    max-height: 200px;
}

.extra-info p {
    margin: 5px 0;
    font-size: 1rem;
}

/* Faculty Hero Title */
.faculty-hero h1 {
    color: #fff;
    font-size: 2.3rem;
    font-weight: bold;
    z-index: 1;
    text-transform: uppercase;
    font-family: 'Segoe UI';
}

/* ========== Divider Icon ========== */
.divider-with-icon {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: rgb(96, 165, 96);
    margin: 60px 0;
}

.divider-with-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 4px;
    border-radius: 50%;
    border: 2px solid rgb(96, 165, 96);
    width: 36px;
    height: 36px;
    background-image: url("../images/greenribbion.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ========== Footer ========== */
.footer {
    background: linear-gradient(to right, #4caf50, #2e7d32);
    color: white;
    padding: 60px 20px 20px;
    font-family: "Segoe UI", sans-serif;
    position: relative;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-logo img {
    height: 90px;
    margin-bottom: 10px;
    margin-left: 70px;
    background-color: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer .social-icons p {
    font-size: 16px;
    color: white;
    margin-top: 0px;
}

.social-icons {
    display: inline-flex;
    justify-content: right;
    gap: 20px;
    align-items: center;
}

.social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.2);
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 16px;
    border-bottom: 2px solid white;
    display: inline-block;
    padding-bottom: 4px;
}

.footer ul {
    padding: 0;
    list-style: none;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffeb3b;
}

.footer p {
    margin: 8px 0;
    font-size: 14px;
    color: #e0f2f1;
}

.footer-post {
    margin-bottom: 16px;
}

.footer-post .post-title {
    font-weight: bold;
    color: #ffffff;
}

.footer-post .post-date {
    font-size: 13px;
    color: #c8e6c9;
}

.footer-col p i {
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    background-color: #1b5e20;
    padding: 16px;
    font-size: 14px;
    margin-top: 30px;
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1b5e20;
    color: white;
    padding: 12px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.back-to-top:hover {
    background-color: #004d00;
}

/* ========== Responsive Styles ========== */
@media (max-width: 768px) {
    .logotext h1 {
        font-size: 1.5rem;
    }

    .motto {
        font-size: 1.2rem;
    }

    .faculty-hero h1 {
        font-size: 2rem;
    }

}

@media (max-width: 480px) {
    .logotext h1 {
        font-size: 1.2rem;
    }

    .motto {
        font-size: 1rem;
    }

    .faculty-hero {
        height: 250px;
    }

    .faculty-hero h1 {
        font-size: 1.5rem;
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        width: 100%;
        max-width: 300px;
    }

    .footer-logo img {
        margin-right: 80px;
        width: 70px;
        height: auto;
    }

    .footer-bottom {
        text-align: center;
        padding: 10px 20px;
    }

    .footer-bottom span {
        display: block;
        margin-top: 5px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}
