/* DreamKey basic styles */
.dreamkey-form{max-width:480px;margin:2rem auto;padding:1.5rem;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.06);font-family:system-ui,Segoe UI,sans-serif}
.dreamkey-field{margin-bottom:1rem}
.dreamkey-field label{display:block;font-weight:600;margin-bottom:.4rem}
.dreamkey-field input{width:100%;padding:.6rem;border:1px solid #e2e8f0;border-radius:.5rem}
.dreamkey-btn{display:inline-block;width:100%;padding:.8rem;background:#3182ce;color:#fff;border-radius:.6rem;border:0;cursor:pointer}
.dreamkey-question{margin-bottom:1rem;padding:1rem;border-radius:.8rem;background:#f9fafb;border:1px solid #edf2f7}
#dreamkey-timer{font-weight:700;color:#e53e3e;text-align:center;margin-bottom:1rem}

/* === DreamKey Contest Premium UI === */

/* General look */
body .dreamkey-form,
body .dreamkey-question,
body .dreamkey-leaderboard,
body .dreamkey-winner {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #1a202c;
  line-height: 1.5;
}

/* Entry form */
.dreamkey-form {
  max-width: 480px;
  margin: 3rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
}

.dreamkey-form h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.dreamkey-form input[type="text"] {
  width: 100%;
  padding: .85rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: .75rem;
  margin-bottom: 1rem;
  transition: border .2s, box-shadow .2s;
}

.dreamkey-form input[type="text"]:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49,130,206,0.2);
  outline: none;
}

.dreamkey-form button {
  width: 100%;
  padding: .9rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: .75rem;
  border: none;
  background: linear-gradient(135deg,#3182ce,#2b6cb0);
  color: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.dreamkey-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Quiz page */
.dreamkey-question {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #edf2f7;
  border-radius: 1rem;
  background: #f9fafb;
}

.dreamkey-question strong {
  display: block;
  margin-bottom: .75rem;
  font-size: 1.05rem;
  color: #2d3748;
}

.dreamkey-question label {
  display: block;
  padding: .65rem .85rem;
  margin-bottom: .4rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  cursor: pointer;
  transition: all .2s;
}

.dreamkey-question input[type="radio"] {
  margin-right: .5rem;
}

.dreamkey-question label:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

#dreamkey-timer {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem auto 2rem;
  color: #e53e3e;
  text-align: center;
}

/* Leaderboard */
.dreamkey-leaderboard {
  max-width: 800px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.dreamkey-leaderboard h3 {
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: #2d3748;
}

.dreamkey-leaderboard table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: .95rem;
}

.dreamkey-leaderboard th,
.dreamkey-leaderboard td {
  padding: .75rem;
  border-bottom: 1px solid #e2e8f0;
}

.dreamkey-leaderboard th {
  background: #f7fafc;
  font-weight: 600;
  color: #4a5568;
}

.dreamkey-leaderboard tr:nth-child(even) {
  background: #f9fafb;
}

/* Winner section */
.dreamkey-winner {
  max-width: 500px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
  border-radius: 1.25rem;
  background: linear-gradient(135deg,#f6e05e,#ecc94b);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  color: #2d3748;
}

.dreamkey-winner h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.dreamkey-winner p {
  font-size: 1.2rem;
  font-weight: 600;
}
.dreamkey-form {
  max-width: 420px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  font-family: system-ui, sans-serif;
}

.dreamkey-field {
  margin-bottom: 1.25rem;
}

.dreamkey-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.dreamkey-field input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.dreamkey-error {
  color: #e53e3e;
  font-weight: 600;
  margin-bottom: 1rem;
}

.dreamkey-btn {
  display: inline-block;
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #3182ce, #2b6cb0);
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.dreamkey-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dreamkey-leaderboard { margin-bottom: 2em; }
.dkc-contest-table { margin-bottom: 3em; }
.dkc-top-player { font-weight: bold; background-color: #fffae6; }
.dkc-winner-msg { font-size: 1.1em; font-weight: bold; margin-top: 5px; }

.dkc-contest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.dkc-contest-card {
    display: block;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}
.dkc-contest-card:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}
.dkc-contest-card.active {
    border-color: #0073aa;
    background: #e6f7ff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.dkc-winner-box {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #0073aa;
    border-radius: 10px;
    background: #f9f9f9;
}

a.button-edit {
    display: inline-block;
    padding: 6px 12px;
    background: #2271b1; /* WP blue */
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}

a.button-edit:hover {
    background: #135e96;
    color: #fff;
}

.dreamkey-hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.dreamkey-slide {
    position: relative;
    text-align: center;
}

.dreamkey-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Force override swiper default arrows */
.dreamkey-banner-slider .swiper-button-prev,
.dreamkey-banner-slider .swiper-button-next {
    color: #fff !important; 
    background: rgba(0, 0, 0, 0.45) !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
    z-index: 20 !important;
}

/* hover effect */
.dreamkey-banner-slider .swiper-button-prev:hover,
.dreamkey-banner-slider .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.75) !important;
    color: #ffd700 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35) !important;
}

/* arrow icon size */
.dreamkey-banner-slider .swiper-button-prev::after,
.dreamkey-banner-slider .swiper-button-next::after {
    font-size: 20px !important;
    font-weight: bold !important;
}

/* positioning */
.dreamkey-banner-slider .swiper-button-prev {
    left: 15px !important;
}
.dreamkey-banner-slider .swiper-button-next {
    right: 15px !important;
}
.button i {
    margin-right: 6px;
}



