/* ========== 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===========*/
.contactus-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;
}

.contactus-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;
    align-items: center;
    justify-content: center;
}

.contactus-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;
}

/*========== AboutUs Main (Refined) ==========*/
/*========== About Us Main (APSACS-style) ==========*/

/* Container & Base */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: "Segoe UI";
}
.about-section {
    font-family: "Segoe UI", sans-serif;
    color: #000;
}

.his-p{
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 1000px;
    margin-left: 100px;
}

/* Backgrounds & Dividers */
.white-bg {
    background: #ffffff;
}
.light-green-bg {
    background: #d5e1d5;
}
.divider svg {
    display: block;
    width: 100%;
    height: 60px;
}
.divider.flip svg {
    transform: rotate(180deg);
}
.card li{
    list-style: none;
}
/* Headings */
.title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1d4d2f;
    text-align: center;
    margin: 1.5rem 0 1rem;
}
.subtitle-h {
    font-size: 2rem;
    font-weight: 600;
    color: #1d4d2f;
    margin: 20px 0 1rem; /* ensures 20px gap from top divider */
    margin-left: 470px;
    position: relative;
    display: inline-block;
}
.subtitle-vmv {
    font-size: 2rem;
    font-weight: 600;
    color: #1d4d2f;
    margin-left: 400px;
    position: relative;
    display: inline-block;
}
.center {
    text-align: center;
}

/* Lead paragraph */
.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Timeline */

/* Quote */
blockquote {
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.6;
    border-left: 5px solid #2e6c3d;
    padding-left: 20px;
    max-width: 700px;
    margin-left: 350px;
    color: #1a3e2f;
}
.history-img img {
    margin-left: 110px;
}
.nav-divider {
  border: 0;
  height: 1px;
  background-color: #a3c7a1;   /* or #2e6c3d for a darker line */
  margin: 0;                   /* removes default vertical spacing */
}

/* VMV Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.card {
    background: #ffffff;
    
    flex: 1;
    min-width: 250px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.icon {
    font-size: 2rem;
    color: #1d4d2f;
    margin-bottom: 0.5em;
}


/* Principal */
.principal-content {
    position: relative;
    padding: 80px 20px 40px;
    text-align: center;
    color: #1d4d2f;
}
.principal-img {
    width: 180px;
    height: 180px;
    margin: 0 auto -90px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #d5e1d5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}
.principal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.principal-content .subtitle {
    margin-top: 110px;
}

/* Responsive */
@media (max-width: 768px) {
    .principal-img {
        margin: 0 auto -90px;
    }
}

/* ========== 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 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;
    }
}
