/* Container */
.nep-container {
    background: #000000;
    padding: 30px 10px;
    font-family: 'Arial', sans-serif;
    text-align: center;
    overflow: hidden;
}

/* LOOPING ANIMATION: Golden Yellow to Bright Red */
@keyframes blinkGoldRed {
    0% { color: #FFD700; text-shadow: 0 0 15px #FFD700, 0 0 30px #FFD700; }
    50% { color: #FF0000; text-shadow: 0 0 15px #FF0000, 0 0 30px #FF0000; }
    100% { color: #FFD700; text-shadow: 0 0 15px #FFD700, 0 0 30px #FFD700; }
}

.nep-gold-text {
    font-size: 52px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    animation: blinkGoldRed 2s infinite ease-in-out;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* Royal Red Ribbon */
.nep-red-ribbon {
    background: linear-gradient(to right, #8B0000, #ff0000, #8B0000);
    color: white;
    padding: 10px 20px;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}

/* Chair Section */
.nep-chair-section {
    position: relative;
    width: 200px;
    height: 250px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nep-chair-img {
    width: 100%;
    height: auto;
}
.nep-countdown {
    margin-top: 15px;
    font-size: 20px;
    color: #FFD700;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid #FFD700;
}

/* Border Line */
.nep-border-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #FFD700, transparent);
    margin: 30px 0;
}

/* Grid Layout */
.nep-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Candidate Card */
.nep-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.5s ease;
}

/* VOTE COUNT - Big font, clear spacing */
.nep-vote-count-box {
    width: 100%;
    background: linear-gradient(to bottom, #000080, #0000FF);
    text-align: center;
    padding: 10px 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.nep-vote-count {
    color: #FFD700;
    font-size: 38px !important; /* Increased Size */
    font-weight: 900 !important;
    letter-spacing: 2px; /* Allows 5 digits to look clean */
    font-family: 'Arial Black', sans-serif;
}

/* Profile Picture */
.nep-profile-pic {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 10px;
}

/* CANDIDATE NAME - Extra Bold & White */
.nep-name {
    font-size: 24px !important;
    font-weight: 900 !important; /* Extra Bold */
    color: #FFFFFF !important; /* Pure White */
    margin: 10px 0 15px;
    text-transform: uppercase;
}

/* Elect Button */
.nep-elect-btn {
    width: 100%;
    padding: 15px 0;
    background: #28a745;
    color: white;
    border: none;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 5px;
}
.nep-elect-btn:disabled, .user-has-voted .nep-elect-btn {
    background: #555;
    cursor: not-allowed;
}

/* Progress Line to Chair */
.nep-progress-line {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 4px;
    background: #FFD700;
    box-shadow: 0 0 10px #FFD700;
    height: 0;
    transition: height 0.5s ease;
    z-index: 1;
    transform: translateX(-50%);
}

/* Winner Overlay */
.nep-winner-overlay {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    box-shadow: 0 0 20px #FFD700;
    background: #000;
    z-index: 10;
}
.nep-winner-overlay img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.president-label {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFD700;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 10px;
}
/* ==========================================
   MOBILE RESPONSIVENESS FIX (Phones under 768px)
   ========================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Ensure container doesn't push edges */
    .nep-container {
        padding: 20px 5px !important;
    }

    /* 2. Grid gap kam karein taaki cards ko zyada jagah mile */
    .nep-grid {
        gap: 10px !important; 
    }

    /* 3. Cards ke andar ki padding kam karein */
    .nep-card {
        padding: 5px !important; 
    }

    /* 4. Vote Count box ki height aur font chhoti karein */
    .nep-vote-count-box {
        padding: 5px 0 !important;
    }
    .nep-vote-count {
        font-size: 28px !important; /* Pehle 38px thi */
    }

    /* 5. FIX FOR LONG NAMES CUTTING OFF */
    .nep-name {
        font-size: 16px !important; /* PC pe 24px tha, ab mobile pe chhota */
        margin: 8px 0 10px !important;
        /* Yeh property lambe names ko zardasti agli line mein bhej degi */
        word-wrap: break-word !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
        padding: 0 2px !important;
    }

    /* 6. Button ka size adjust karein */
    .nep-elect-btn {
        font-size: 16px !important;
        padding: 10px 0 !important;
    }
    
    /* 7. Upar wale badhe title ko bhi screen ke hisab se set karein */
    .nep-gold-text {
        font-size: 32px !important;
    }
}

/* Aur jyada chhote phones (jaise iPhone SE, purane Androids) ke liye single column */
@media screen and (max-width: 380px) {
    .nep-grid {
        grid-template-columns: 1fr !important; /* Chhote phone pe 1 card ek line mein aayega */
    }
}