/* Original Country Qualifiers CSS (from view_qualifiers + card + table views) */

:root {
  --grad: linear-gradient(135deg, #D11118, #d33339);
  --card-bg: #ffffff;
  --radius: 18px;
}

.new-qualify-page a { color: #222; text-decoration: none; }
.new-qualify-page a:not(.new-qualifier-item-card-overlay):not(.new-btn-gradient):hover { text-decoration: none; }

/* PAGE */
.new-qualify-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 20px 90px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #222;
  font-size: 16px;
  box-sizing: border-box;
}
.new-qualify-page *,
.new-qualify-page *::before,
.new-qualify-page *::after { box-sizing: border-box; }

.new-qualify-page.is-table-layout {
  max-width: none;
  width: 100%;
  padding-bottom: 24px;
}
@media (min-width: 1100px) {
  .new-qualify-page.is-table-layout {
    width: min(96vw, 1920px);
    max-width: min(96vw, 1920px);
  }
}
@media (min-width: 1600px) {
  .new-qualify-page.is-table-layout {
    width: min(98vw, 1920px);
    max-width: min(98vw, 1920px);
  }
}

/* TITLE */
.new-page-title {
  text-align: center;
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 8px;
}
.new-page-divider {
  height: 3px;
  width: 220px;
  margin: 14px auto 40px;
  background: var(--grad);
  border-radius: 99px;
}

/* TOP CARDS */
.new-top-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}
.new-info-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
}
.new-info-header {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
}
.new-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex: none;
}
.new-icon-pink { background: #f06292; }
.new-icon-purple { background: #7c6cff; }
.new-info-card p {
  font-size: 17px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 12px;
}
.new-info-card p:last-child { margin-bottom: 0; }

/* BUTTON */
.new-btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--grad);
  color: white;
  font-weight: 600;
  margin-top: 14px;
}
.new-btn-gradient:hover { text-decoration: none; opacity: .95; color: white; }
.new-btn-gradient.new-btn-red {
  color: #ffffff;
  background: var(--grad);
}
.new-btn-gradient.new-btn-red:hover {
  text-decoration: none;
  opacity: .95;
  color: #ffffff;
}

/* VIEW SWITCH */
.dwc-view-switch-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
}
.dwc-view-switch-button {
  position: relative;
  display: inline-flex;
  width: fit-content;
  background: rgba(0, 0, 0, .04);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.dwc-view-switch-slider {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: var(--slider-left, 6px);
  width: var(--slider-width, 100px);
  background: var(--grad);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(209, 17, 24, .35);
  transition: left .35s cubic-bezier(0.4, 0, 0.2, 1), width .35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}
.dwc-view-switch-button a {
  position: relative;
  z-index: 1;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #666;
  transition: color .25s ease;
  text-decoration: none;
}
.dwc-view-switch-button a:hover {
  color: #333;
  text-decoration: none;
}
.dwc-view-switch-button a.active {
  color: #fff;
  text-decoration: none;
}
.dwc-view-switch-button a.active:hover {
  color: #fff;
  text-decoration: none;
}

.qualifiers-view-panel { display: none; }
.qualifiers-view-panel.is-active { display: block; }

/* SEARCH */
.new-search-section {
  margin-bottom: 60px;
  text-align: center;
}
.new-search-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
}
.new-qualifiers-search {
  max-width: 620px;
  margin: 0 auto;
}
.new-qualifiers-search-wrapper {
  position: relative;
}
.new-qualifiers-search input {
  width: 100%;
  padding: 14px 46px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  font-size: 18px;
  font-family: inherit;
  background: #fff;
  color: #222;
}
.new-qualifiers-search input:focus {
  outline: none;
  border-color: #6a2cff;
}
.new-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}
.new-qualifiers-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  display: none;
  cursor: pointer;
  color: #999;
  padding: 0;
}
.new-qualifiers-search-clear.new-visible { display: block; }

/* GRID / CARDS */
.new-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 50px 0 22px;
  flex-wrap: wrap;
}
.new-section-title {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
}
.new-section-filter select {
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  font-size: 18px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
  color: #222;
}
.new-section-filter select:focus {
  outline: none;
  border-color: #6a2cff;
}

.new-qualifiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.new-qualifier-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: transform .25s;
}
.new-qualifier-item:hover { transform: translateY(-4px); }
.new-qualifier-item-card {
  position: relative;
  overflow: hidden;
}
.new-qualifier-item-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
.new-qualifier-item-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
  text-decoration: none !important;
}
.new-qualifier-item-card-overlay:hover,
.new-qualifier-item-card-overlay:focus {
  text-decoration: none !important;
}
.new-qualifier-item-card:hover .new-qualifier-item-card-overlay {
  opacity: 1;
}
.new-qualifier-item-card-overlay span {
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  text-decoration: none !important;
}
.new-qualifier-item-country {
  padding: 16px 18px 4px;
  font-size: 19px;
  font-weight: 600;
  text-align: center;
  color: #333;
}
.new-qualifier-item-continent {
  padding: 0 18px 20px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  color: #888;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .new-page-title { font-size: 32px; }
  .new-qualifiers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .new-qualifier-item-country { padding: 12px 14px 4px; font-size: 18px; }
  .new-qualifier-item-continent { padding: 0 14px 16px; font-size: 12px; }
}
@media (max-width: 480px) {
  .new-qualifiers-grid { gap: 10px; }
  .new-qualifier-item-country { padding: 10px 12px 4px; font-size: 17px; }
  .new-qualifier-item-continent { padding: 0 12px 14px; font-size: 12px; }
}

/* NO RESULTS */
.new-no-results {
  display: none;
  text-align: center;
  margin-top: 30px;
  font-size: 18px;
}
.new-no-results.new-visible { display: block; }

/* TABLE VIEW (scoped) */
.qualify-page {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.qualify-page h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}
.qualify-page a {
  color: #6a2cff;
  text-decoration: none;
}
.qualify-page a:hover { text-decoration: underline; }

.responsive-table {
  margin-top: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: auto;
  max-height: calc(100dvh - 140px);
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overscroll-behavior: contain;
}
.responsive-table table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: auto;
  box-sizing: border-box;
}
.responsive-table thead th,
.responsive-table tbody th {
  background: #111 !important;
  color: #fff;
  border: 0 !important;
  outline: 0;
  box-shadow: inset 0 0 0 999px #111;
}
.responsive-table tr:first-child { background: #111; }
.responsive-table th {
  font-size: 14px;
  font-weight: 600;
  padding: 14px 12px;
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  position: sticky;
  top: 0;
  z-index: 5;
  background-clip: padding-box;
}
.responsive-table td {
  font-size: 14px;
  padding: 12px;
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  color: #222;
}
.responsive-table td:nth-child(8) {
  white-space: normal;
  min-width: 180px;
}
.responsive-table th:nth-child(1),
.responsive-table th:nth-child(3),
.responsive-table th:nth-child(4) { min-width: 140px; }
.responsive-table th:nth-child(2) { min-width: 200px; }
.responsive-table tr:nth-child(even) td { background-color: #fafafa; }
.responsive-table tr:hover td { background-color: #f2f4ff; }
.responsive-table td img {
  display: block;
  max-width: 30px;
}
.responsive-table td a img {
  width: 18px;
  transition: transform 0.2s ease;
}
.responsive-table td a:hover img { transform: scale(1.15); }
.responsive-table td:last-child { white-space: nowrap; }
.responsive-table td:last-child a {
  display: inline-block;
  vertical-align: middle;
}

.mobile-note {
  text-align: center;
  font-size: 14px;
  color: #d10000;
  margin: 12px 0 0;
  display: none;
}
@media (max-width: 1100px) {
  .mobile-note { display: block; }
  .responsive-table th,
  .responsive-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  .qualify-page h2 { font-size: 28px; }
  .responsive-table th,
  .responsive-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}
