/* Background */
body {
    margin: 0;
    padding: 0;    
    background-image: url('../img/bg/backgroundFt.jpg');
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.719);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}



/* Title */
h1 {
    text-align: center;
    color: white;
    margin-top: 5px;
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}




 /* live result  */
.logoContainer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.logoContainer img {
    width: 100px;   
    height: auto;
}
.resultContainer {
    display: grid;
    grid-template-columns: 1fr; /* default 1 column for mobile */
    gap: 25px;
    padding: 30px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
/* Card per position */
.resultContent {
    background: #f8f8e7;  
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.resultContent h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #005f28;
}

/* Candidate */
.candidateContainer {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap; /* allow wrapping for smaller screens */
}

.candidateContainer img {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #ddd;
}

.candidateInfo {
    flex: 1;
    min-width: 200px; /* ensure layout remains consistent sa smaller view */
}

.candidateInfo label {
    display: block;
    margin-bottom: 5px;
    text-align: left;
    color: black;
}

.candidateInfo p {
    font-size: 0.9rem;
    color: black;
    margin-top: 5px;
    text-align: left;
}

.progressFill {
    height: 15px;
    border-radius: 10px;
    background: linear-gradient(90deg, #1abc9c, #16a085);
    width: 0;
    transition: width 1s ease-in-out;
}
@media (min-width: 1200px) {
    .resultContainer {
        display: grid; /* ensure it's a grid */
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 60px; /* optional spacing between items */
        
    }
}

    @media (max-width: 768px) {
           .resultContainer {
        display: grid; /* ensure it's a grid */
        grid-template-columns: 1fr; /* 2 columns */
    gap: 30px
    }
 h1 {
        font-size: 35px;
    }

    .ptcHeader span {
    font-weight: bold;
    font-size: 18px;
}

}@media (max-width: 430px) {
    header nav {
        background-color: #005f28;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 15px;
    }

    .ptcHeader span {
    font-weight: bold;
    font-size: 14px;
}

    .logoContainer {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    h1 {
        font-size: 30px;
    }
    .logoContainer img {
        width: 77px;   
        height: auto;
    }

    .resultContainer {
        display: grid;
        grid-template-columns: 1fr; /* stack all items vertically */
        padding: 15px;
        justify-content: center;
        align-items: start;
        max-width: 1200px; /* optional */
        gap: 10px; /* optional spacing between items */
    }

    .candidateContainer img {
        margin-right: 10px;
        margin-bottom: 0;
        align-self: flex-start;
    }

    .candidateInfo {
        width: 100%;
    }

    .candidateInfo label,
    .candidateInfo p {
        text-align: left;
    }
}
