/* Project custom overrides (keep blades CSS-free) */

/* Navbar logo sizing */
.site-logo {
  max-height: 80px;
  width: auto;
}

/* Shared DB logo strip */
.yb-top-logo {
  max-height: 150px;
}
.yb-top-logo--sm {
  max-height: 130px;
}

/* Top banner image on registration */
.yb-top-banner {
  max-width: 980px;
  margin: 10px auto 0;
}
.yb-top-banner .yb-champs-showcase {
  max-width: 980px;
}

/* YB Champs page */
.yb-champs-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  color: #6b6b84;
  font-family: "Roboto", sans-serif;
  line-height: 1.8;
}
.yb-champs-showcase {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.yb-champs-showcase::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ea512e 0%, #f5890d 50%, #ea512e 100%);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.yb-champs-showcase-inner {
  position: relative;
  z-index: 1;
  padding: 6px;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #fdf6ed 100%);
  box-shadow: 0 12px 40px rgba(27, 2, 56, 0.12);
}
.yb-champs-showcase-frame {
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  background: #1b0238;
}
.yb-champs-showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s ease;
}
.yb-champs-showcase:hover .yb-champs-showcase-frame img {
  transform: scale(1.015);
}
.yb-champs-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: linear-gradient(135deg, #ea512e 0%, #f5890d 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(234, 81, 46, 0.45);
  font-family: "Catamaran", sans-serif;
}
@media (max-width: 767px) {
  .yb-champs-ribbon {
    top: 12px;
    right: 12px;
    font-size: 10px;
    padding: 8px 14px;
  }
}

/* YB Champs registration page */
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.form-control.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 8 8%22%3e%3cpath fill=%22%2328a745%22 d=%22m2.3 6.73.94-.94 1.44 1.44 2.44-2.44.94.94-3.38 3.38z%22/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 12 12%22 width=%2212%22 height=%2212%22 fill=%22none%22 stroke=%22%23dc3545%22%3e%3ccircle cx=%226%22 cy=%226%22 r=%224.5%22/%3e%3cpath d=%22m5.8 4.6 1.4 1.4m0-1.4-1.4 1.4%22/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}
.invalid-feedback:not(:empty) {
  display: block;
}
.form-control.is-valid,
.form-control.is-invalid {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.contest-selection-card.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.contest-selection-card.is-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Select2 visual alignment */
.select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background-color: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 36px;
  padding-left: 12px;
  color: #495057 !important;
  font-size: 1rem !important;
  font-weight: normal !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}
.select2-dropdown {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #007bff;
  color: #fff;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #e9ecef;
  color: #495057;
}

/* Contest checkbox → card-select look */
.contest-selection-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contest-selection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(27, 2, 56, 0.12);
}
.contest-selection-card .form-check-input {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(27, 2, 56, 0.25);
  margin-top: 2px;
  cursor: pointer;
  background-color: #fff;
}
.contest-selection-card .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(234, 81, 46, 0.2);
  border-color: rgba(234, 81, 46, 0.6);
}
.contest-selection-card .form-check-input:checked {
  background-color: #ea512e;
  border-color: #ea512e;
}
.contest-selection-card .form-check-input:checked::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.yb-cat-pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-family: "Catamaran", sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(27, 2, 56, 0.12);
}
.yb-cat-pill--a {
  background: linear-gradient(135deg, #ff4d7d 0%, #ff7a00 100%);
  color: #fff;
}
.yb-cat-pill--b {
  background: linear-gradient(135deg, #7b2cff 0%, #ff4d7d 100%);
  color: #fff;
}

.yb-contest-tile {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(27, 2, 56, 0.08);
  box-shadow: 0 10px 26px rgba(27, 2, 56, 0.08);
  height: 100%;
}
.yb-contest-tile--green {
  border-color: rgba(46, 204, 113, 0.45);
}
.yb-contest-tile--pink {
  border-color: rgba(255, 105, 180, 0.55);
}
.yb-contest-tile--blue {
  border-color: rgba(0, 194, 255, 0.55);
}
.yb-contest-tile .tile-head {
  padding: 14px 16px;
  font-weight: 800;
  font-family: "Catamaran", sans-serif;
  color: #1b0238;
}
.yb-contest-tile--green .tile-head {
  background: rgba(46, 204, 113, 0.12);
}
.yb-contest-tile--pink .tile-head {
  background: rgba(255, 105, 180, 0.12);
}
.yb-contest-tile--blue .tile-head {
  background: rgba(0, 194, 255, 0.12);
}
.yb-contest-tile .tile-body {
  padding: 16px;
  color: #6b6b84;
  font-family: "Roboto", sans-serif;
}
.yb-contest-tile ul {
  margin: 0;
  padding-left: 18px;
}

/* Category panels in form */
.yb-form-cat {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(27, 2, 56, 0.08);
}
.yb-form-cat--a {
  border: 2px solid rgba(234, 81, 46, 0.15);
}
.yb-form-cat--b {
  border: 2px solid rgba(0, 123, 255, 0.12);
}
.yb-card-variant {
  background: #fff;
  border-radius: 18px;
}
.yb-card-border-green {
  border-color: #2ecc71 !important;
}
.yb-card-border-pink {
  border-color: #ff69b4 !important;
}
.yb-card-border-blue {
  border-color: #00c2ff !important;
}

/* Info tiles */
.yb-info-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.yb-info-item {
  grid-column: span 6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(27, 2, 56, 0.08);
  box-shadow: 0 10px 26px rgba(27, 2, 56, 0.07);
  padding: 16px 18px;
}
.yb-info-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: "Catamaran", sans-serif;
  color: #1b0238;
  margin-bottom: 6px;
}
.yb-info-value {
  color: #6b6b84;
  font-family: "Roboto", sans-serif;
  margin: 0;
  line-height: 1.65;
}
.yb-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.yb-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-family: "Catamaran", sans-serif;
  color: #1b0238;
  background: rgba(27, 2, 56, 0.04);
  border: 1px solid rgba(27, 2, 56, 0.08);
}
.yb-info-badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.yb-info-item--single {
  grid-column: span 12;
  max-width: 720px;
  margin: 0 auto;
}
.yb-info-item--single .yb-info-label,
.yb-info-item--single .yb-info-value {
  text-align: center;
  justify-content: center;
}
.yb-info-item--single .yb-info-badges {
  justify-content: center;
}
.yb-info-item--single .yb-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.yb-info-item--single .yb-info-point {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(27, 2, 56, 0.03);
  border: 1px solid rgba(27, 2, 56, 0.08);
  text-align: center;
}
.yb-icon-brand {
  color: #ea512e;
}
.yb-dot-a {
  background: #ff7a00;
}
.yb-dot-b {
  background: #7b2cff;
}

/* Two-tile key info layout */
.yb-keyinfo-tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.yb-keyinfo-tile {
  grid-column: span 12;
  border-radius: 16px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(27, 2, 56, 0.08);
  text-align: center;
  box-shadow: 0 12px 34px rgba(27, 2, 56, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yb-keyinfo-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(27, 2, 56, 0.16);
}
.yb-keyinfo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-family: "Catamaran", sans-serif;
  color: #1b0238;
  margin-bottom: 8px;
}
.yb-keyinfo-text {
  color: #6b6b84;
  font-family: "Roboto", sans-serif;
  margin: 0;
  line-height: 1.65;
}
.yb-keyinfo-fee {
  font-size: 1.2rem;
}
@media (max-width: 767px) {
  .yb-info-item {
    grid-column: span 12;
  }
}

/* Common brand color */
.text-brand {
  color: #ea512e;
}

/* Fun Corner / Contest Winners shared styles */
.yb-banner-title {
  color: #ffffff;
}

.yb-sky-gradient-section {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 25%, #7dd3fc 50%, #bae6fd 75%, #e0f2fe 100%);
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}
.yb-decor-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.yb-decor-circle--tr {
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
}
.yb-decor-circle--bl {
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
}
.yb-section-foreground {
  position: relative;
  z-index: 1;
}
.yb-glass-header {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.yb-sky-title {
  color: #0369a1;
  font-size: 2.5rem;
}
.yb-sky-subtitle {
  font-size: 1.1rem;
}
.yb-glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}
.yb-sky-card-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}
.yb-emoji-lg {
  font-size: 1.8rem;
}
.yb-fact-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd !important;
}
.yb-fact-text {
  line-height: 1.7;
  font-size: 1rem;
}
.fun-corner-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fun-corner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}
.fun-fact-item {
  transition: all 0.3s ease;
}
.fun-fact-item:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2) !important;
}

