.live_pulse {
    animation: live_pulse 0.7s infinite;
    animation-direction: alternate;
    -webkit-animation-name: live_pulse;
    animation-name: live_pulse;
  }

  @-webkit-keyframes live_pulse {
    0% {
      -webkit-transform: scale(1);
    }

    100% {
      -webkit-transform: scale(1.5);
    }
  }

  @keyframes live_pulse {
    0% {
      transform: scale(1);
    }

    100% {
      transform: scale(1.5);
    }
  }




  .election__container-title {
    padding: 50px 0px 30px 0px;
    color: #00af00;
    font-size: 1.4117647059rem;
    line-height: 1.2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
  }

  .election_container--live {
    width: 150px;
    height: 27px;
    background: #ee3239;
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    padding: 4px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }


  .elections_block__footer {
      display: flex;
      justify-content: space-between;
      padding: 10px 0px;
      font-size: 14px;
      flex-wrap: nowrap;
      flex-direction: row;
  }


  @media (max-width: 639px) {

    .elections_block__footer {      
      padding: 5px 0px;
      flex-direction: column;
  }
   

    .election__container-title {
      flex-direction: column;
      align-items: start;
      gap: 10px;
    }

    .election__resumebox--item {
      width: 100%;
    }
  }

  

  .election__resumebox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
  }

  .election__resumebox--item {
    border: 2px solid rgba(0, 150, 0, 0.25);
    border-radius: 0.3rem;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    padding: 0px 10px;
    min-height: 80px;
    min-width: 32%;
  }

  .percentage-box {
    position: relative;
    overflow: hidden;
  }

  .fill-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #00af00b8;
    transition: width 0.8s ease-in-out;
    z-index: 1;
  }

  .text-content {
    position: relative;
    z-index: 2;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  }

  .election__submenu {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 10px 0px;
    font-size: 14px;
    cursor: pointer;
  }

  .election__submenu .active {
    padding: 10px;
    border-bottom: 3px solid #00af00;
  }


  /** ------------------------------------------------------------------------------- */
  .stats-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 50px;
  }

  .detail-button {
    padding: 5px 10px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 100px;
    position: relative;
    overflow: hidden;
  }

  .detail-button:after {
    content: "";
    background: #02af00;
    width: 100%;
    height: 161px;
    right: -110px;
    position: absolute;
    top: 0;
    transform: skew(27deg, 304deg);
    z-index: 1
  }


  .button-background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
  }

  .button-text {
    position: relative;
    z-index: 2;
  }

  .button-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
  }










  :root {
    --color-bg: #e8ede8;
    --color-green-primary: #0eb90e;
    --color-green-secondary: #047304;
    --color-dark: #1a1a1a;
    --color-light: #ffffff;
    --color-gray: #666666;
    --color-gray-light: #999999;
    --color-alert: #dc3545;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    --transition-smooth: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}


/* CANDIDATES INFO */
.candidates-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: 10px;
}

.candidate-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);            
}

.candidate-info:last-child {        
    flex-direction: row-reverse;
    text-align: right;
}


.candidate-portrait {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-light);
    font-weight: 700;
    
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.candidate-details {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;    
}

.vote-count {
    font-size: 1rem;
    color: var(--color-gray);
    font-weight: 500;
}

.vote-count strong {
    color: var(--color-dark);
    font-weight: 700;
}

/* COMPETITIVE BAR */
.competitive-bar-wrapper {
    margin: 10px 0px;            
   
}

.competitive-bar {                
    background-color: #eaf8ea;
    display: flex;
    justify-content: space-between;
    height: 60px;            
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    position: relative;
}

.bar-segment {
    height: 100%;
    display: flex;
    align-items: center;            
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    padding: 0px 10px;
}
        
.bar-segment-left {
    background-color: #0eb90e;
    justify-content: flex-start;
    animation: slideInBar 0.8s ease-out 0.8s both;
    transform-origin: left center;
}
@keyframes slideInBar {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.bar-segment-right {
    background-color: #047304;
    justify-content: flex-end;
    animation: slideInBar 0.8s ease-out 0.8s both;
    transform-origin: right center;
}


     
.bar-percentage {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-light);
  letter-spacing: -0.02em;
  position: absolute;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: popIn 0.6s ease-out 1.5s both;
  top: 58%;
  transform: translateY(-50%);
}

.bar-percentage-left {
  left: 10px;
}

.bar-percentage-right {
  right: 10px;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* DIVIDER */
.bar-divider {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 250px;
    background: repeating-linear-gradient(
      to bottom,
      #545454 0,
      #545454 5px,
      transparent 5px,
      transparent 10px
  );

    z-index: 10;
    border-radius: 2px;
    transition: var(--transition-smooth);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.bar-divider::after {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #545454;
}

.bar-divider-title{
  position: absolute;
  top: -22%;
  margin-left: -10px;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .candidates-info {
        gap: var(--spacing-md);
    }
    
    .candidate-portrait {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .candidate-details{
        font-size: 1.6rem;
    }
        
    .bar-percentage {
        font-size: 2.2rem;
        top: 50%;
    }
    
    .bar-divider {
        height: 120px;
    }

    .bar-divider-title{      
      top: -50%;     
    }
}

@media (max-width: 768px) {
    
    .candidate-info:last-child {
       flex-direction: column;      
    }
    
    .candidate-info {
      flex-direction: column;
    }
    
    .candidate-portrait {
        width: 100px;
        height: 100px;
        font-size: 1.8rem;
    }
    
    .candidate-details  {
        font-size: 1.4rem;
    }
    
    .bar-percentage {
        font-size: 1.8rem;
        top: 64%;
    }
    
    .bar-divider {
        height: 180px;
    }
    
    .bar-divider::before,
    .bar-divider::after {
        border-left-width: 10px;
        border-right-width: 10px;
    }
    
    .bar-divider::before {
        border-bottom-width: 18px;
        top: -22px;
    }
    
    .bar-divider::after {
        border-top-width: 18px;
        bottom: -22px;
    }
    
    .bar-divider-title{      
      top: -30%;     
    }

    .candidate-info-left{
      align-items: self-start;
    }
    .candidate-info-right{
      align-items: self-end;
    }
}