.wpcm-archive {
  max-width: 1200px;
  margin: 20px auto;
}
.wpcm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.wpcm-card {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.wpcm-card h2 {
  margin-top: 10px;
  font-size: 20px;
}
.wpcm-btn {
  display: inline-block;
  padding: 8px 15px;
  background: #7c394d;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}
.wpcm-btn:hover {
  background: #7c394d;
  color: #ffffff;
}

.wpcm-single-contest {
  max-width: 900px;
  margin: 20px auto;
}
.wpcm-form p {
  margin-bottom: 15px;
}
.wpcm-form input,
.wpcm-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.wpcm-success {
  padding: 10px;
  background: #dff0d8;
  color: #3c763d;
  border-radius: 5px;
  margin-bottom: 20px;
}

@media (max-width: 1000px){
	.wpcm-archive{
	  margin: 20px 10px;
		}
	
	.wpcm-single-contest {
    margin: 20px !important;
}
	
}


/* archieve contest */
/* ===== Contest Archive Styles ===== */
.contest-archive-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.contest-banner-img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.contest-banner-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.contest-banner-overlay h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 0;
}

/* Container */
.contest-archive-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Grid Layout */
.contest-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Card */
.contest-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.contest-card:hover {
  transform: translateY(-6px);
}

/* Image */
.contest-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Content */
.contest-card-content {
  padding: 20px;
}

.contest-card-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.contest-card-content h2 a {
  text-decoration: none;
  color: #333;
}

.contest-card-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.contest-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #7D394E;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.contest-btn:hover {
  background: #5c2838;
}

/* Pagination */
.contest-pagination {
  margin-top: 40px;
  text-align: center;
}

.contest-no-data {
  text-align: center;
  font-size: 18px;
}

.button.disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.contest-card.closed {
    opacity: 0.7;
    pointer-events: none; /* disables clicks inside card */
}

.contest-card.closed .contest-btn {
    background: #999;
    cursor: not-allowed;
}