/* ========== 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 ========== */
.gallery-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;
}

.gallery-hero .overlay {
    background-color: rgba(0, 0, 0, 0.54);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI';
}

.gallery-hero h1 {
    color: #fff;
    font-size: 2.3rem;
    font-weight: bold;
    z-index: 1;
    font-family: 'Segoe UI';
    text-transform: uppercase;
    padding: 10px 60px;
    border: 2px solid #ffffffb0;
    background-color: rgba(255, 255, 255, 0.212);
    border-radius: 6px;
}

/* ========== Gallery Cards Section ========== */
.gallery-cards-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.gallery-cards-section h2,
.wing-gallery-title {
    font-size: 2.5rem;
    background-color: #004d00;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Segoe UI';
    margin: 40px auto 30px;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ========== Cards ========== */
.gallery-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.gallery-card {
    background-color: #fff;
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 100px 30px;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'Segoe UI';
    color: #2e7d32;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card-link {
    text-decoration: none;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ========== Gallery Photo Grid ========== */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    background-color: #f4f4f4;
    padding: 40px 20px;
}

.gallery-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid #e0f2f1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    border-color: #a5d6a7;
}

/* ========== Back Arrow ========== */
.back-home-wrapper {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.back-home-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1b5e20;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.back-home-btn i {
    margin-right: 8px;
}

.back-home-btn:hover {
    background-color: #32ce3c;
}
/* ========== Lightbox ========== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

.lightbox.show {
    display: flex;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 1000;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
}

.lightbox-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.lightbox-arrow.left {
    left: 20px;
}

.lightbox-arrow.right {
    right: 20px;
}

/* ========== 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 ========== */
@media (max-width: 768px) {
    .logotext h1 {
        font-size: 1.5rem;
    }

    .motto {
        font-size: 1.2rem;
    }

    .gallery-hero h1 {
        font-size: 2rem;
    }

}

@media (max-width: 480px) {
    .logotext h1 {
        font-size: 1.2rem;
    }

    .motto {
        font-size: 1rem;
    }

    .gallery-hero {
        height: 250px;
    }

    .gallery-hero h1 {
        font-size: 1.5rem;
    }

    .gallery-card {
        width: 90%;
    }
}

/* 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;
    }
}
