* {
    margin: 0;
    padding: 0;
    font-family: 'helvetica neue', helvetica, arial, sans-serif;
    color: #F6F7E1;
    --swiper-theme-color: #73b400;
}




/* Header Section */
header {
    position: sticky;
    top: 0px;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.384);
}
header nav {
    background-color: #005f28;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}
.sub-menu-wrap {
    display: none;
    position: absolute;
    top: 50px;
    right: 60px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0px 0px 8px 8px;
    width: auto;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.384);
    z-index: 1000;
}
.sub-menu-wrap.show {
    display: block;
}
.ptcHeader {
    display: flex;
    align-items: center;
    gap: 20px;
}


.ptcHeader img {
    height: 50px;
    border-radius: 50%;
}


.ptcHeader span {
    font-weight: bold;
    font-size: 20px;
}
#iconHover :hover {
    cursor: pointer;
    transition: transform 0.1s;
    transform: scale(1.05);
}
#iconHover :active {
    cursor: pointer;
    transition: transform 0.1s;
    transform: scale(1);
}
.sub-menu-wrap.show {
    display: block;
}
.sub-menu-wrap h2 {
    margin-bottom: 0px;
    cursor: pointer;
}
.sub-menu-wrap a {
    margin: 5px 5px 5px 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;


}
.sub-menu-wrap h2, .sub-menu-wrap a, .sub-menu-wrap i{
    color: #005f28;
}
.sub-menu-wrap a:hover {
    color: #73b400;
}
/* header Section End */


/* Announcement Section */
.announcement {
    background-color: #F6F7E1;
    padding: 40px 0px 40px 0px;
    text-align: center;
}
.announcement p {
    padding: 10px 110px 10px 150px;
    font-size: 23px;
}




.announcement h1, .announcement p, .announcement b{
    color: #032F0A;
}


/* Announcement Section End */




/* Gallery Section */
    .gallery {
        padding: 2% 3% 2% 3%;
        align-items: center;
        justify-content: center;
        display: flex;
        height: fit-content;
        background-color: #73b400;
    }
    .swiper-slide img{
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 200%;
    }
    #swiperCenter {
        margin: 0px 10px 0px 10px;
        width: 50vw;
        height: 28vw;
        border-radius: 20px;
    }
    #swiperSide {
        margin: 0px 10px 0px 10px;
        width: 25vw;
        height: 23vw;
        border-radius: 20px;
    }
/* Gallery Section End*/




/* Candidates Section */
.candidates {
    padding-top: 3%;
    padding-bottom: 3%;
    background-color: #F6F7E1;
    height: fit-content;
   
}
.candidates h1 {
    font-weight: bold;
}
.candidates h1, .candidates h5 {
    text-align: center;
    color: #005f28;
}
.filterByPos {
    display: flex;
    justify-content: center;
    align-items: center;
   
    background: #F6F7E1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0px;
}
.filtering {
    border: 2px solid #005f28;
    padding: 1%;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #005f28;
    cursor: pointer;
    border-radius: 25px;
    transition: .4s ease;
    margin: -5px;
    background: #ffffff;
}
.filtering:hover, .filterActive {
    background: #005f28;
    color: #f8f8e7;
}
.candidateContainer {
    display: grid;
     gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    background-image: linear-gradient(to bottom,rgb(255, 255, 255), #F6F7E1);
    text-align: center;
    padding: 1.5%;
    border-radius: 0px 0px 20px 20px;
    border-bottom: #005f28 solid 3px;
    box-shadow: 0vw 2vw 0.5vw rgba(175, 175, 175, 0.4);
}




.byPosition {
    padding: 2% 4% 2% 4%;
}
.byPosition h2 {
    font-weight: bold;
    font-size: 18px;
    background-color: #005f28;
    border: #005f28 solid 3px;
    padding: 1%;
    border-radius: 20px 20px 0px 0px;
    text-align: center;
}
.candidateProfile {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin: 5%;
    box-shadow: 0 0 4px rgba(175, 175, 175, 0.4);
}
.candidateProfile img {
    width: 100%;
    aspect-ratio: 1 / 1; /* laging square */
    object-fit: cover; /* para hindi ma-distort, puputulin lang yung sobra */
    border-radius: 20px;
    transition: transform 0.4s ease;
}


.candidateProfile:hover img {
    transform: scale(1.1);
    filter: blur(8px);
  -webkit-filter: blur(4px);
    transition: transform 0.4s ease;
    z-index: 0;
}
.candidateProfile:hover #candidatePopup {
    text-align: center;
    width: 100%;
    height: auto;
    pointer-events: auto;
    transform: translateY(0%);
    transition: transform 0.4s ease;
}
.candidateProfile h1 {
    font-size: 1.3vw;
    color: #F6F7E1;
}


.candidateName {
    position: absolute;
    width: 100%;
    bottom: 0%;
    border-radius: 15px;
    padding: 10px 0px 10px 0px;
    background-color:rgba(0, 0, 0, 0.6);
    transition: transform 0.4s ease;
}
.candidateProfile:hover .candidateName{
    transform: translateY(100%);
    transition: transform 0.4s ease;
}


#candidatePopup {
    position: absolute;
    bottom: 0%;
    border-radius: 15px 15px 0px 0px;
    padding-bottom: 5%;
    text-align: center;
    display: block;
   
    width: 100%;
    height: auto;
    background-color:rgba(0, 0, 0, 0.6);
    transform: translateY(100%);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.4s ease;
}
#candidatePopup pre {
    font-size: 1.3vw;
    word-wrap: break-word;


    width: 100%;


    padding: 100% 0px 10px 0px;
    text-wrap: wrap ;
    font-size: 1.5vw;
}
.candidatePopupWrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;   /* umaabot sa buong container */
    transform: translateY(100%);
    transition: transform 0.4s ease;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}




/* Name overlay (palaging visible sa bottom) */
.nameOverlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    padding: 6px 0;
    text-align: center;
    z-index: 2;
}




/* Popup wrapper (full image) */
.candidatePopupWrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}


/* Show popup on hover */
.candidateProfile:hover .candidatePopupWrapper {
    transform: translateY(0%);
    pointer-events: auto;
}


/* Popup content (full size, black overlay) */
.candidatePopup {
    position: relative;
    background: rgba(0,0,0,0.8);
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    justify-content: center; /* vertical center for motto */
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}


/* Motto wrapper para ma-center vertically */
.candidatePopup .mottoWrapper {
    padding: 20px;
    font-size: 1.3rem;
    color: #fff;
    white-space: pre-wrap;
    max-height: 80%;
    overflow-y: auto;
}


/* About Me button fixed sa bottom */
.candidatePopup .aboutMeBtn {
    position: absolute;
    bottom: 20px; /* laging nasa ilalim */
    padding: 12px 24px;
    background: #0b5e2a;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s ease;
}


.candidatePopup .aboutMeBtn:hover {
    background: #083f1d;
}
/* Candidates Section End*/


/* here is code for tooltipss */


.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
    cursor: pointer;
}




.tooltiptext span {
    visibility: hidden;
    width: 80px;
    background-color: #0a0a0ac4;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: -85%;
    font-size: 10px;
    margin-left: -60px; /* Use half of the width to center align */
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.3s;
}




.tooltip:hover .tooltiptext span {
   visibility: visible;
  opacity: 1;
}






/* Footer Section */
footer {
    position: relative;
    background-image: url('../img/bg/backgroundFt.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    color: white; /* makes text white for better contrast */
}


.footer-content {
    position: relative;
    z-index: 2; /* makes sure content is above the dark overlay */
}


footer img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
}


footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 80px;
}


footer li {
    text-align: center;
}


footer span {
    display: block;
    font-size: 16px;
    color: #F6F7E1;
    font-weight: normal;
}


footer p {
    font-size: 20px;
    font-weight: bold;
    color: #F6F7E1;
    text-align: left;
    margin: 20px ;
}




footer a {
    text-decoration: none;
}


footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 14, 6, 0.726); /* adjust 0.6 to make it darker/lighter */
    z-index: 0;
}
/* Footer Section End */


@media (max-width: 768px) {
    #candidatePopup pre {
        font-size: 2.5vw;


   
    }
}
@media (max-width: 430px) {
    #candidatePopup pre {
    font-size: 3.0vw;
}
   


}
