/*
Theme Name: saaslauncher-child
Template: saaslauncher
Description: Child theme for SaasLauncher. Custom styles
Version: 1.0
Author: Claudio Manenti
*/

/* NEW SET OF STYLES */
/* Custom Gutenberg heading styles */
.wp-block-heading {
  color: #ffffff; /* dark text for readability */
  font-weight: 700; /* bold */
  text-transform: uppercase; /* all caps for emphasis */
  line-height: 1.2; /* tighter spacing */
  margin-top: 0.5em; /* space above */
  margin-bottom: 0.8em; /* space below */
  letter-spacing: 0.5px; /* subtle spacing between letters */
}

/* Optional: responsive font sizes */
@media (max-width: 768px) {
  .wp-block-heading {
    font-size: 1.2rem; /* smaller on mobile */
  }
}

@media (min-width: 769px) {
  .wp-block-heading {
    font-size: 1.5rem; /* slightly larger on desktop */
  }
}

/* to hide the wrapper generated by Rank Math SEO */
.rank-math-rich-snippet-wrapper {
  display: none;
}

/* Override the WordPress preset gradient */

.has-center-top-gradient-gradient-background {
  background: radial-gradient(
    30% 14% at 50% 0%,
    #6e37ba 0%,
    #020202 100%
  ) !important;
}

/* Custom events styles to be moved to /css/custom-events.css */
.event-info-wrap {
  background: #382557;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-color: #ff000021;
  border-width: 1px;
}

.event-info-wrap .uagb-infobox__content-wrap {
  background: #1e0a37;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.event-info-wrap h3.uagb-ifb-title {
  color: #faa700;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.event-info-wrap .uagb-ifb-desc {
  line-height: 1.6;
  font-size: 1rem;
}
.event-info-wrap a {
  color: #f7b94b;
  text-decoration: none;
}
.event-info-wrap a:hover {
  color: #ff9038;
  text-decoration: underline;
}
.event-info-wrap svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  margin-bottom: 0.5rem;
}
.event-info-wrap iframe {
  border: 0;
  border-radius: 8px;
}

.event-info-wrap .wp-block-columns {
  gap: var(--wp--style--block-gap, 24px);
}

@media (max-width: 768px) {
  .event-info-wrap .wp-block-columns {
    flex-direction: column;
  }
}

/* === Override parent button styles === */
.wp-block-group.saaslauncher-product-box
  a.wp-block-button__link.wp-element-button {
  text-decoration: none !important; /* remove underline */
  color: var(
    --wp--preset--color--light-color
  ) !important; /* keep same text color */
}

/* Remove underline from links inside button blocks */
.wp-block-button a {
  text-decoration: none !important;
}

.wp-block-button a:hover {
  text-decoration: none !important;
}

/* Spotlight Instagram Feed background override */
.spotlight-instagram-feed {
  background-color: #101010 !important;
}

/* Override Spotlight inner wrapper background */
.spotlight-instagram-feed .FeedLayout__wrapper {
  background-color: #101010 !important;
}

/* Spotlight Feed Header background override */
.spotlight-instagram-feed .FeedHeader__root,
.spotlight-instagram-feed .FeedHeader__normal-style {
  background-color: #101010 !important;
}

/* .spotlight-instagram-feed .FeedHeader__root * {
    background-color: #973232 !important;
} */

.spotlight-instagram-feed .FeedHeader__root,
.spotlight-instagram-feed .FeedHeader__root * {
  color: #ffffff !important;
}

/* Follow button styling */
.spotlight-instagram-feed .FollowButton {
  background-color: #9b51e0 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  transition: background-color 0.3s ease;
}

.spotlight-instagram-feed .FollowButton:hover {
  background-color: #614080 !important;
  color: #ffffff !important;
}

/* Load More button */
.spotlight-instagram-feed .LoadMoreButton {
  background-color: #9b51e0 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.spotlight-instagram-feed .LoadMoreButton:hover {
  background-color: #614080 !important;
}

/* Media tiles hover effect */
.spotlight-instagram-feed .MediaTile__root:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Image captions text color */
.spotlight-instagram-feed .MediaTile__media-meta,
.spotlight-instagram-feed .MediaThumbnail__image[aria-label] {
  color: #ffffff !important;
}

/* Optional: remove extra white background from grid cells */
.spotlight-instagram-feed .FeedGridLayout__cell-content {
  background-color: transparent !important;
}

/* Optional: add spacing around feed */
.spotlight-instagram-feed {
  margin: 20px 0;
}

.page-intro {
  text-align: center; /* Center the text horizontally */
  line-height: 1.6; /* Optional: improve readability */
  margin: 20px 0; /* Optional: spacing above and below */
  font-weight: 500; /* Optional: make it slightly bold */
}

/* saaslauncher parent style override */

/* Override link underline from parent theme */
/* Override default link underline from parent theme */
.entry-content.wp-block-post-content a,
.wp-block-comment-content a,
p a,
.wp-block-heading a {
  color: #f7b94b; /* white by default */
  text-decoration: none !important; /* remove underline */
  transition: color 0.3s ease; /* smooth hover effect */
}

h2.wp-block-post-title a {
  color: #fff !important;
  font-size: var(--wp--preset--font-size--large) !important;
}

h3.wp-block-post-title a {
  color: #fff !important;
  font-size: var(--wp--preset--font-size--big) !important;
}

h3.wp-block-post-title a:hover {
  color: #f7b94b !important;
  text-decoration: underline !important;
}

/* h3.wp-block-group a {
  color: #fff !important;
  font-size: var(--wp--preset--font-size--large) !important;
} */

/* Keep button text white on hover */
.wp-block-button__link {
  color: #ffffff !important; /* white text */
  text-decoration: none !important; /* no underline */
  transition: none !important; /* disable color transition if any */
}

.wp-block-button__link:hover {
  color: #ffffff !important; /* stays white on hover */
  text-decoration: none !important; /* no underline on hover */
}

/* Normal state – white links inside taxonomy-category */
.taxonomy-category a {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Hover state – your desired hover color */
.taxonomy-category a:hover {
  color: #ff9038 !important;
  text-decoration: underline !important;
}

.taxonomy-division {
  padding-top: 8px;
}

.taxonomy-division a {
  display: inline-block;
  margin-right: 5px;
  padding: 3px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;

  background-color: #803afa;
  color: #fff !important;
  text-decoration: none;
}

.taxonomy-division a:hover,
.taxonomy-division a:focus {
  text-decoration: underline;
  background-color: #614080;
}

/* Hover state */
.entry-content.wp-block-post-content a:hover,
.wp-block-comment-content a:hover,
p a:hover,
.wp-block-heading a:hover {
  color: #ff9038 !important; /* orange highlight on hover */
  text-decoration: underline !important; /* keep underline off */
}

/* Ensure hover does not change color or add underline */
.wp-block-button a.wp-block-button__link:hover,
.wp-block-button a.wp-element-button:hover {
  color: #ffffff !important; /* stay white on hover */
  text-decoration: none !important; /* no underline on hover */
}

figure.wp-block-image .wp-element-caption {
  color: #fff !important;
}

/* Make all Gutenberg Group blocks full-width */
.wp-block-post-content .wp-container-core-group-is-layout-1160982f,
.wp-block-post-content
  [class*="wp-container-core-group-is-layout-"]
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.featured-crop {
  max-height: 300px;
  overflow: hidden;
}

.featured-crop img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Blog listing featured images */
.wp-block-post-template .wp-block-post-featured-image {
  aspect-ratio: auto; /* Let the image keep its natural ratio */
  max-height: 250px; /* Optional: constrain height */
  overflow: hidden; /* Prevent stretching outside container */
}

/* Center the featured image in single blog posts */
.wp-block-post-featured-image {
  display: flex; /* Enable flexbox to center the image */
  justify-content: center; /* Horizontally center */
  margin: 0 auto; /* Optional: extra centering */
  text-align: center; /* For older browsers */
}

/* Make all featured images fully responsive */
.wp-block-post-featured-image img {
  max-width: 100%;
  height: auto;
  object-fit: cover; /* crops nicely without stretching */
  border-radius: 8px; /* keeps your rounded corners */
  display: block; /* removes extra space below images */
}

.wp-block-post-featured-image.blog-details img {
  max-width: 860px;
}

/* Buttons categories style overrides */
body category.is-style-categories-background a,
body .taxonomy-category.is-style-categories-background-mixed a {
  background-color: #530175;
}

.events-listing-divisions a,
.events-listing-divisions a:visited,
.events-listing-divisions a:active {
  color: #f7b94b;
}

.events-listing-divisions a:hover {
  color: #ff9038;
  text-decoration: underline;
}

/* Header and footer navigation links to use the correct hover colour "yellow" */
.wp-block-navigation-item__content:hover,
.wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
  color: #f7b94b !important;
}

.saaslauncher-footer-list a:hover,
.wp-block-list.has-link-color a:hover,
.wp-block-list.is-style-hide-bullet-list-link-hover-style-white a:hover {
  color: #f7b94b !important;
}

.back-to-events a {
  text-align: left;
}

/* === Base navigation styling === */
.wp-block-navigation__container {
  display: flex;
  justify-content: center;
  gap: 0.5rem; /* tighter spacing */
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.wp-block-navigation-item__content {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.45rem; /* tighter padding */
  transition: all 0.3s ease;
}

/* === Top-level hover effect === */
.wp-block-navigation-item__content:hover {
  color: #f7b94b;
}

/* === Top-level underline effect === */
.wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f7b94b;
  transition: width 0.3s ease;
}

.wp-block-navigation-item__content:hover::after {
  width: 100%;
}

/* === Submenu container: modern transparent rounded === */
.wp-block-navigation-item.has-child > .wp-block-navigation-submenu-container {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background-color: rgba(20, 20, 20, 0.75) !important; /* more transparent */
  border: 1px solid #f7b94b !important;
  border-radius: 12px !important; /* clearly rounded */
  padding: 0.25rem 0 !important;
  min-width: 160px !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease, opacity 0.2s ease;
  z-index: 999;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important; /* subtle shadow */
  overflow: visible !important;
}

/* === Show submenu on hover === */
.wp-block-navigation-item.has-child:hover
  > .wp-block-navigation-submenu-container {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0);
  pointer-events: auto;
}

/* === Submenu items: rounded with subtle hover highlight === */
.wp-block-navigation-submenu-container .wp-block-navigation-item__content {
  display: block;
  padding: 0.3rem 0.6rem;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.3;
  transition: color 0.3s ease, background-color 0.3s ease !important;
  text-shadow: none !important;
  transform: none !important;
  text-decoration: none;
  border-radius: 6px !important;
}

.wp-block-navigation-submenu-container
  .wp-block-navigation-item__content:hover {
  color: #f7b94b;
  background-color: rgba(
    255,
    255,
    255,
    0.08
  ) !important; /* subtle hover highlight */
}

.wp-block-navigation-submenu-container
  .wp-block-navigation-item__content::after {
  display: none !important; /* remove underline */
}

/* === Pulse animation for submenu reveal === */
@keyframes pulseSubmenu {
  0% {
    transform: translateY(10px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* === Hide default submenu toggle button === */
.wp-block-navigation-submenu__toggle {
  display: none;
}

/* === Neon slider indicator === */
.wp-nav-slider {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #f7b94b, #ff9038, #f7b94b);
  border-radius: 2px;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* === Responsive tweaks === */
@media (max-width: 768px) {
  .wp-block-navigation__container {
    flex-direction: column;
    gap: 0;
  }

  .wp-block-navigation-submenu-container {
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    border: none !important;
    background-color: #141414 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .wp-block-navigation-submenu-container .wp-block-navigation-item__content {
    font-size: 0.85rem;
    line-height: 1.25;
    padding: 0.25rem 0.5rem;
    border-radius: 0 !important;
  }

  .wp-nav-slider {
    display: none;
  }
}

/* ATHLETE NEW TEMPLATE STYLES */

.athlete-card {
  max-width: 900px;
  margin: 24px auto;
  background: #2a2a2a;
  border-radius: 12px;
  color: #fff;
}

.athlete-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 15px;
}

.athlete-avatar img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
}

.athlete-name {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.athlete-country {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.athlete-country img {
  width: 24px;
  height: 16px;
  border-radius: 4px;
}

.athlete-website a {
  display: inline-block;
  margin-top: 6px;
  color: #f7b94b;
  word-break: break-word;
}

.athlete-socials {
  margin-top: 18px;
}

.athlete-socials ul {
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.athlete-info {
  line-height: 1.6;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
}

@media (min-width: 768px) {
  .athlete-header {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .athlete-avatar img {
    width: 150px;
    height: 150px;
  }

  .athlete-country {
    justify-content: flex-start;
  }

  .athlete-socials ul {
    justify-content: flex-start;
  }
}

/*******************************/

/* GRID */
.premium-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  margin: 40px 0;
}

/* CARD */
.premium-result-card {
  background: #161616;
  border: 1px solid #222;
  padding: 15px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.premium-result-card:hover {
  transform: translateY(-6px);
  border-color: #444;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

/* RANK BADGE */
.rank-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #333;
  color: #fff;
}

/* TOP 3 COLORS */
.top3 .rank-badge {
  color: #000;
  font-weight: 800;
}

.rank-1 .rank-badge {
  background: #d4af37;
} /* Gold */
.rank-2 .rank-badge {
  background: #c0c0c0;
} /* Silver */
.rank-3 .rank-badge {
  background: #cd7f32;
} /* Bronze */

/* WINNER SPECIAL */
.winner {
  border: 2px solid #d4af37;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  transform: scale(1.03);
}

/* PHOTO */
.athlete-listing-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 5px;
}

/* TEXT */
.athlete-listing-name {
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.athlete-listing-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* centers horizontally */
  text-align: center; /* centers text */
  width: 100%;
  gap: 6px; /* optional spacing */

  padding: 0 0px 0px 0px;
  color: #fff;
  line-height: 1.6;
}

/* COUNTRY FLAG */
.athlete-listing-country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.country-flag {
  width: 24px;
  height: 16px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.division-athlete-card {
  background: #111;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.division-athlete-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Kill link styling at the source */
.athlete-link,
.athlete-link:link,
.athlete-link:visited,
.athlete-link:hover,
.athlete-link:focus,
.athlete-link:active {
  text-decoration: none;
  color: inherit;
}

/* Default state */
.athlete-link h3,
.athlete-link .athlete-listing-country span {
  color: #ffffff;
  text-decoration: none;
}

/* Hover state */
.athlete-link:hover h3,
.athlete-link:hover .athlete-listing-country span {
  color: #f7b94b;
  text-decoration: none;
}

/* ------------------------------
   Athlete Archive Grid & Cards
   ------------------------------ */

/* Base Grid: 5 per row */
.athlete-grid-container > ul.wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center; /* centers incomplete last row */
}

/* Athlete card styling */
.archive-athlete-card {
  background-color: var(--wp--preset--color--background-alt);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 8px; /* reduced padding */
  text-align: center;

  border-color: #ffffff21;
  border-width: 1px;
  border-radius: 8px;

  border-top-style: none;
  border-top-width: 0px;
  border-bottom-style: none;
  border-bottom-width: 0px;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 20px;
  padding-right: var(--wp--preset--spacing--40);
  padding-bottom: 20px;
  padding-left: var(--wp--preset--spacing--40);
}

.archive-athlete-card figure.wp-block-post-featured-image {
  width: 100%; /* container full width */
  margin: 0;
  overflow: hidden;
}

/* Featured image: always square, responsive */
.archive-athlete-card figure.wp-block-post-featured-image img {
  width: 100%; /* fill the container width */
  aspect-ratio: 1 / 1; /* always square */
  object-fit: cover; /* crop to fill square */
  border-radius: 6px;
  display: block;
}

.archive-athlete-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Featured image wrapper */
.archive-athlete-card figure.wp-block-post-featured-image {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

/* Featured image: square 1:1 */
.archive-athlete-card figure.wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 1 / 1; /* keeps image square */
  object-fit: cover; /* crop/fill the square */
  border-radius: 6px;
  display: block;
  margin-bottom: 8px; /* small space below image */
}

/* Post title */
.archive-athlete-card h3.wp-block-post-title {
  font-size: 1.1rem;
  margin: 8px 8px 4px 8px; /* tighter margins */
}

/* Division */
.archive-athlete-division {
  font-size: 0.9rem;
  margin: 0 8px 6px 8px;
  color: #fff;
}

/* Excerpt */
.archive-athlete-card .wp-block-post-excerpt {
  margin: 0 8px 8px 8px;
  font-size: 0.9rem;
  color: #666;
  flex-grow: 1; /* push button down */
}

/* View Profile button */
.archive-athlete-button {
  display: inline-block;
  margin: 0 8px 8px 8px;
  padding: 6px 10px; /* slightly smaller padding */
  background-color: var(--wp--preset--color--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.archive-athlete-button:hover {
  background-color: #614080;
}

/* Global Gutenberg spacing for direct children of .is-layout-flow */
:root :where(.is-layout-flow) > * {
  margin-block-start: 24px;
  margin-block-end: 0;
}

/* Remove top margin for archive-athlete-info inside archive-athlete-card */
.archive-athlete-card.is-layout-flow > .archive-athlete-info {
  margin-block-start: 0;
}

/* Optional: small spacing for inner elements of archive-athlete-info */
.archive-athlete-card.is-layout-flow > .archive-athlete-info > * {
  margin-block-start: 4px; /* adjust as needed */
  margin-block-end: 0;
}

.archive-athlete-card > .archive-athlete-button {
  margin-block-start: 24px;
  margin-block-end: 0;
}

.athletes-filter {
  width: 100%;
  display: flex;
  flex-direction: column; /* or row, depends on your design */
  align-items: center;
  gap: 15px; /* spacing between dropdown + alphabet */
  margin-bottom: 25px;
}

/* =============================
   Letter Filter & Division Dropdown
   ============================= */

/* Letter filter */
.letter-filter a {
  margin-right: 5px;
  color: #f7b94b;
  text-decoration: none;
}
.letter-filter a.active {
  font-weight: bold;
  color: #fff;
  background: #9b51e0;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
}
.letter-filter a:hover {
  color: #ff9038;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.letter-filter .disabled {
  color: #ccc;
  pointer-events: none;
}

/* Active division label */
.active-division {
  font-size: 20px;
  margin-bottom: 10px;
  color: #d23669;
}

/* No results message */
.no-athletes {
  font-style: italic;
  color: #fff;
  margin-top: 20px;
  text-align: center;
}

.athlete-division-select {
  width: 100%;
  max-width: 260px;
  padding: 12px 16px;
  border: 1px solid #d5d7e0;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  appearance: none; /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='14' width='14' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.athlete-division-select:hover {
  border-color: #b5b8c3;
}

.athlete-division-select:focus {
  border-color: #9b51e0;
  box-shadow: 0 0 0 3px rgba(107, 113, 255, 0.2);
  outline: none;
}

.athlete-division-form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.athlete-social-links {
  display: flex;
  justify-content: left; /* center horizontally */
  gap: 15px; /* space between icons */
  padding-left: 15px;
  padding-bottom: 15px;
}

.athlete-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%; /* circular background */
  background-color: var(
    --wp--preset--color--primary
  ); /* subtle theme background */
  transition: all 0.3s ease;
}

.athlete-social-links a svg {
  fill: var(--wp--preset--color--light-color); /* white icons */
  width: 20px;
  height: 20px;
}

.athlete-social-links a:hover {
  background-color: #614080; /* highlight on hover */
  transform: scale(1.1); /* subtle zoom effect */
}

/* ------------------------------
   Responsive Layout
   ------------------------------ */

/* 1024px: 3 per row */
@media (max-width: 1024px) {
  .athlete-grid-container > ul.wp-block-post-template {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .archive-athlete-card figure.wp-block-post-featured-image img {
    height: 220px;
  }
}

/* 768px: 2 per row */
@media (max-width: 768px) {
  .athlete-grid-container > ul.wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .archive-athlete-card figure.wp-block-post-featured-image img {
    height: 200px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .premium-result-card {
    padding: 15px;
  }
  .rank-badge {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .athlete-social-links {
    justify-content: center;
  }
}

/* 480px: 1 per row */
@media (max-width: 480px) {
  .athlete-grid-container > ul.wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .archive-athlete-card figure.wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

/* ============================
   PREMIUM ARTICLE TABLES
============================ */
.wp-block-post-content .wp-block-table {
  position: relative;
  margin: 34px 0 42px;
  padding: 1px;
  overflow-x: auto;
  border: 1px solid rgba(247, 185, 75, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(247, 185, 75, 0.22), rgba(128, 58, 250, 0.2)),
    rgba(8, 8, 10, 0.92);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wp-block-post-content .wp-block-table::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 185, 75, 0.78), transparent);
  pointer-events: none;
}

.wp-block-post-content .wp-block-table table {
  width: 100%;
  min-width: 680px;
  overflow: hidden;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 11px;
  background: #050505;
}

.wp-block-post-content .wp-block-table thead {
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(128, 58, 250, 0.3), rgba(12, 12, 15, 0.98)),
    #111114;
}

.wp-block-post-content .wp-block-table th,
.wp-block-post-content .wp-block-table td {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.wp-block-post-content .wp-block-table th {
  padding: 17px 18px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.wp-block-post-content .wp-block-table td {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.97rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.015);
}

.wp-block-post-content .wp-block-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.045);
}

.wp-block-post-content .wp-block-table tbody tr:hover td {
  background: rgba(247, 185, 75, 0.09);
}

.wp-block-post-content .wp-block-table th:last-child,
.wp-block-post-content .wp-block-table td:last-child {
  border-right: 0;
}

.wp-block-post-content .wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

.wp-block-post-content .wp-block-table tbody td:first-child {
  color: #f7b94b;
  font-weight: 800;
}

.wp-block-post-content .wp-block-table tbody td:nth-child(2) {
  color: #f8c76a;
  font-weight: 700;
}

@media (max-width: 700px) {
  .wp-block-post-content .wp-block-table {
    margin: 28px -4px 36px;
    border-radius: 10px;
  }

  .wp-block-post-content .wp-block-table table {
    min-width: 620px;
  }

  .wp-block-post-content .wp-block-table th,
  .wp-block-post-content .wp-block-table td {
    padding: 14px 15px;
  }
}

/* ============================
   PREMIUM QUERY PAGINATION
============================ */
.wp-block-query-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 44px auto 8px;
  font-size: 15px;
}

.wp-block-query-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
  min-width: 58px;
  height: 58px;
  padding: 0 22px;
  border: 1px solid rgba(247, 185, 75, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #111111 !important;
  text-decoration: none !important;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.wp-block-query-pagination .page-numbers.current {
  background: linear-gradient(135deg, #803afa 0%, #6e37ba 100%);
  border-color: rgba(247, 185, 75, 0.32);
  color: #ffffff !important;
  box-shadow:
    0 16px 34px rgba(128, 58, 250, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: default;
}

.wp-block-query-pagination a.page-numbers:hover,
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination a.page-numbers:focus-visible,
.wp-block-query-pagination-next:focus-visible,
.wp-block-query-pagination-previous:focus-visible {
  background: linear-gradient(135deg, #803afa 0%, #6e37ba 100%);
  border-color: rgba(247, 185, 75, 0.45);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow:
    0 18px 38px rgba(128, 58, 250, 0.36),
    0 0 0 3px rgba(247, 185, 75, 0.12);
}

.wp-block-query-pagination .page-numbers.dots {
  min-width: auto;
  height: auto;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #f7b94b !important;
  box-shadow: none;
}

.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
  min-width: 118px;
}

.wp-block-query-pagination-next::after,
.wp-block-query-pagination-previous::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-color: currentColor;
  border-style: solid;
  transition: border-color 0.2s ease;
}

.wp-block-query-pagination-next::after {
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.wp-block-query-pagination-previous::before {
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}

@media (max-width: 600px) {
  .wp-block-query-pagination {
    gap: 10px;
    margin-top: 34px;
  }

  .wp-block-query-pagination .page-numbers,
  .wp-block-query-pagination-next,
  .wp-block-query-pagination-previous {
    min-width: 50px;
    height: 50px;
    padding: 0 18px;
  }

  .wp-block-query-pagination-next,
  .wp-block-query-pagination-previous {
    min-width: 92px;
  }
}

.featured-4-3 {
  max-width: 900px;
  margin: 0 auto 30px;
  aspect-ratio: 16 / 9;
  overflow: hidden; /* required for the crop */
  border-radius: 8px; /* move radius here */
}

.featured-4-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; /* REMOVE the old radius */
}

/* TABLET & MOBILE — force burger mode */
@media (max-width: 1024px) {
  /* Always show the burger button */
  .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }

  /* Hide the desktop nav wrapper entirely */
  .wp-block-navigation__container {
    display: none !important;
  }

  /* Show the menu ONLY when the modal is open */
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column;
  }
}

.athlete-meta a {
  color: #f7b94b; /* white by default */
  text-decoration: none !important; /* remove underline */
  transition: color 0.3s ease; /* smooth hover effect */
}

.athlete-meta a:hover {
  color: #f7b94b !important;
  text-decoration: underline !important;
}

.disclaimer--small {
  font-size: 0.75rem; /* smaller than body text */
  line-height: 1.4;
  color: #fff;
  text-align: center;
}

.disclaimer--small p {
  margin: 0;
}

.disclaimer--small strong {
  font-weight: 600;
}

.wp-block-embed figcaption {
  color: #fff;
}
