/* Shared public competitions UI (countdown + WhatsApp float) */

.public-hero.hero-section,
.hero-section.public-hero,
.hero-section {
  color: #fff !important;
}

.hero-section.public-hero .slider-item .description,
.hero-section .slider-item .description {
  line-height: 1.55;
}

@media (max-width: 767px) {
  .hero-section .slider-item .description {
    line-height: 1.45;
    margin: 0.75rem 0 1.25rem;
  }
}

.public-countdown-label {
  text-align: center;
  margin-top: 1rem;
  color: var(--secondary-color);
  font-size: 18px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.countdown-section {
  background-color: #fff;
  border: 2px solid var(--secondary-color);
  border-radius: 10px;
  padding: 10px;
  min-width: 80px;
}

.countdown-number {
  font-size: 2.5em;
  font-weight: 600;
  color: var(--secondary-color);
}

.countdown-label {
  font-size: 0.8em;
  font-weight: 400;
  color: #666;
}

.countdown-over {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--secondary-color);
  animation: public-fade-in 1s ease-in-out;
}

@keyframes public-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .countdown-section { margin: 0 5px; padding: 8px; }
  .countdown-number { font-size: 2em; }
  .countdown-label { font-size: 0.7em; }
}

@media (max-width: 480px) {
  .countdown-section { margin: 0 3px; padding: 5px; min-width: 60px; }
  .countdown-number { font-size: 1.5em; }
  .countdown-label { font-size: 0.5em; }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
}

.whatsapp-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.1);
}

.public-empty-state {
  padding: 2.5rem 1rem;
}

/* Ballot (Competition.php) */
.bw-photo img {
  filter: grayscale(100%);
}

.icon {
  width: 30px;
  height: auto;
  vertical-align: middle;
  margin-bottom: 5px;
}

#fireworks-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.badge-icon {
  position: absolute;
  top: 2%;
  right: 2%;
  z-index: 4;
  width: 8%;
  height: auto !important;
  min-width: 30px;
  max-width: 65px;
}

.blog-posts.blog-posts-1 {
  padding: 20px 0 90px !important;
}

/* Competitions hub — Vote Now / Register is a text link, not a filled button */
.blog-posts-2 .blog-button a,
.blog-posts-2 .blog-button a:hover {
  background: none !important;
  border: none !important;
  padding: 0;
}

@media (max-width: 767px) {
  .badge-icon {
    width: 12%;
    top: 5%;
    right: 5%;
  }
  .blog-posts.blog-posts-1 {
    padding: 9px 0 50px !important;
  }
}

/* Categories / divisions horizontal cards */
.divisions-grid .single-post.style1 {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: row-reverse;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.divisions-grid .single-post.style1:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.divisions-grid .image-wrapper {
  width: 50%;
}

.divisions-grid .image-wrapper img {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  max-height: 150px;
  width: 100%;
  object-fit: cover;
}

.divisions-grid .content {
  width: 50%;
  text-align: left;
  padding: 15px;
}

.divisions-grid .content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #333;
}

/* Ballot search (Competition.php) */
.ballot-toolbar {
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.ballot-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 0.75rem;
}

.ballot-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 1.1rem;
  pointer-events: none;
}

.ballot-search-input {
  width: 100%;
  border: 2px solid var(--secondary-color);
  border-radius: 999px;
  padding: 0.85rem 3rem 0.85rem 2.75rem;
  font-size: 1rem;
  background: #fff;
  color: #333;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ballot-search-input:focus {
  outline: none;
  border-color: #ff8fa8;
  box-shadow: 0 0 0 3px rgba(255, 188, 201, 0.35);
}

.ballot-search-clear {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #999;
  font-size: 1.5rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
}

.ballot-search-clear:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.05);
}

.ballot-search-meta {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.ballot-search-empty {
  padding-top: 1rem;
}
