.header-logo {
    filter: brightness(3) saturate(0);
    width:150px;
}

.brand-img {
  width:130px;
}

.nav-dropdown-link.w-dropdown-link[href="coming-soon.html"],
.nav-dropdown-link.w-dropdown-link[href="../coming-soon.html"] {
  display: none !important;
}

.footer-logo {
    filter: brightness(0);
    width:200px;
}

.home-banner-section {
  height: 694px !important;
}

.block-with-border {
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center; /* optional: centers horizontally too */
}

.partners-block {
  display: flex;
  gap: 2rem; /* space between logos */
  align-items: center; /* makes sure images align vertically */
  opacity:.7;
}

.brand-img {
  max-height: 90px; /* adjust as needed */
  object-fit: contain;
  opacity:100%;
}

/* Rankings page override: keep the existing gradient background */
.page-rankings .section {
  background: linear-gradient(180deg,var(--bg-2, #071a3d), rgba(7,26,45,0.9)) !important;
}

.ellipse-conteny .silver-text {
  text-align:center;
  width:90%;
  margin: 0 auto;
}

.ranking-section {
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  padding: 20px 24px;
  font-family: Inter, sans-serif;
  color: #ffffff;
}

.ranking-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tab-button {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: #f4f4f4;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button.active {
  background: #111;
  color: white;
}

/* Table container */
.ranking-table {
  width: 100%;
}

/* Each row */
.ranking-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px 60px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  gap: 12px;
}

/* Inline rank change indicator beside the rank number */
.ranking-row .rank { display: flex; align-items: center; gap: 6px; }
.rank-change { font-size: 0.95rem; line-height: 1; display: inline-flex; align-items: center; gap: 0.28rem; padding: 0 0.12rem; vertical-align: middle; }
.rank-change.rank-up { color: #22c55e; /* green */ }
.rank-change.rank-down { color: #ef4444; /* red */ }
.rank-change .rank-change-value { font-size: 0.85rem; color: inherit; font-weight:700; margin-left: 0; }

/* Player info */
.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.rank {
  font-weight: 700;
  text-align: center;
}

.points,
.age {
  text-align: center;
  font-weight: 600;
}

.player-info {
  display: flex;
.milestones-section {
  padding-bottom: 20px;
}

.partners-section {
  padding-top: 20px;
}
  align-items: center;
  gap: 10px; /* slightly smaller gap between image and text */
}

.player-info strong {
  display: block;
  font-weight: 700;
  font-size: 20px; /* increased from 15px */
  line-height: 1.1;
}

.player-info small {
  color: #666;
  font-size: 13px;
  margin-top: 2px; /* small spacing between name & country */
}

.ranking-tab {
  display: none;
}

.ranking-tab.active {
  display: block;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.player-text strong {
  font-weight: 700;
  font-size: 17px;
}

.player-text small {
  color: #666;
  font-size: 13px;
  margin-top: 1px; /* very small gap between name and country */
}

.ranking-header {
  display: grid;
  /* columns: rank, player, official, delta, best, events, wins, losses, win%, rating, Δrank, status */
  grid-template-columns: 60px 350px 110px 90px 110px 70px 60px 60px 80px 160px 80px;
  align-items: center;
  padding: 10px 0;
  font-weight: 700;
  font-size: 13px;
  color: #6b4e9c; /* subtle purple tint like your screenshot */
  border-bottom: 2px solid #f2f2f2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ranking-header div {
  text-align: center;
}

.ranking-header .player-col {
  text-align: left;
  padding-left: 8px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 60px 350px 110px 90px 110px 70px 60px 60px 80px 160px 80px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.ranking-header, .ranking-row {
  display: grid;
  grid-template-columns: 60px 350px 110px 90px 110px 70px 60px 60px 80px 160px 80px;
  align-items: center;
  text-align: center;
}

.ranking-header {
  font-weight: 700;
  color: #8b5cf6;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 2px solid #f3f3f3;
  text-transform: uppercase;
}

.ranking-row {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.player-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.player-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.player-name {
  font-weight: 600;
  font-size: 15px;
  text-align:left;
}

.player-country {
  font-size: 13px;
  color: #888;
  margin-top: 1px;
}

.ellipse {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  width: clamp(260px, 40vw, 400px);
  height: clamp(260px, 40vw, 400px);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid black;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ellipse-fill {
  position: absolute;
  inset: 0;
  background: black;
  opacity: 0; /* start invisible */
  z-index: 1;
  transition: opacity 0.8s ease-in-out;
}

.ellipse-text {
  position: relative;
  z-index: 2;
  color: black;
  text-align: center;
  transition: color 0.4s ease;
  padding: 0 1rem; /* optional */
}

.ellipse-number {
  font-weight: bold;
  font-size: clamp(28px, 5vw, 50px);
  margin-bottom: 8px;
}

.silver-text {
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.4;
  max-width: 85%;
  margin: 0 auto;
}


.contacts-detail {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  clear: both;
}

.contacts-icon {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts-icon img {
  width: 100%;
  height: auto;
  filter: brightness(0) saturate(100%) invert(33%) sepia(0%) saturate(0%) hue-rotate(172deg) brightness(95%) contrast(85%);
  /* translates to #555555 */
}

.paragraph-no-margin {
  margin: 0;
}

.link {
  color: #fff;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Footer: equal height columns and icon social links */
.footer-bottom-wrapper {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
}
.left-block-footer,
.right-block-footer {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* distribute content vertically */
}
.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
}
.social-links .social-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent; /* no white background */
  border: none;
}
.social-links .social-icon svg,
.social-links .social-icon img {
  width: 20px;
  height: 20px;
}

/* Font Awesome icon sizing/color inside social-icon */
.social-links .social-icon i {
  font-size: 18px;
  color: #111;
}

/* Dark footer: make icons visible */
.footer.black-bg .social-links .social-icon i {
  color: #fff;
}

/* Ensure icons inside any footer are visible on dark backgrounds */
.footer .social-links .social-icon i {
  color: #fff !important;
}

/* Ensure social links sit at the bottom of the left column */
.left-block-footer {
  display: flex;
  flex-direction: column;
}
.left-block-footer .social-links {
  margin-top: 12px;
}

/* Fix footer responsiveness between 700px and 1000px */
@media (min-width:700px) and (max-width:1000px) {
  .footer-bottom-wrapper {
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
  }
  .left-block-footer,
  .right-block-footer {
    flex: 1 1 50%;
    min-width: 0;
  }
  .left-block-footer { align-items: flex-start; }
  .right-block-footer { align-items: flex-end; }
  .left-block-footer .social-links { margin-top: auto; }
}

/* Larger screens: left-align social icons and ensure columns use space-between */
@media (min-width:1001px) {
  .footer.black-bg .left-block-footer .social-links {
    justify-content: flex-start !important;
  }
  .left-block-footer, .right-block-footer {
    justify-content: space-between; /* ensure vertical spacing */
  }
}

@media (max-width: 800px) {
  .footer-bottom-wrapper { flex-direction: column; }
  .social-links { margin-top: 12px; }
}


.paragraph-no-margin {
  margin: 0;
}

.link {
  color: #fff;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}


/* Tablet and smaller: switch to 1 column */
@media (max-width: 800px) {
  .ellipse-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ellipse {
    width: clamp(220px, 70vw, 320px);
    height: clamp(220px, 70vw, 320px);
  }

  .ellipse-number {
    font-size: clamp(24px, 6vw, 38px);
  }

  .silver-text {
    font-size: clamp(13px, 3vw, 15px);
  }
}

.slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}


.slide {
  min-width: 100%;
  display: none;
  object-fit: contain;  /* Fit the image inside without cropping */
  width: 100%;
  height: 300px;        /* or whatever height you want for the container */
  background-color: #f9f9f9; /* optional, for empty space around images */
}

.slide-container {
  width: 100%;
  height: 300px; /* adjust to your desired height */
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  overflow: hidden;
  background-color: #f9f9f9; /* optional background */
}


.slide.active {
  display: block;
}

.prev-slide,
.next-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  z-index: 2;
}

.prev-slide {
  left: 10px;
}

.next-slide {
  right: 10px;
}

#cursor-ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999999;   /* ← bring it above ALL elements */
  opacity: 50%;
}



@media screen and (max-width:1000px) {
  .images-wrapper {
    flex-direction: column;
    gap:220px;
    align-items:center;
  }

  .section.without-space .images-wrapper {
    gap: 40px;
    align-items: stretch;
  }

  .section.without-space .image-left {
    height: auto;
  }

  .section.without-space .image-right {
    max-width: 100%;
  }

  .section.without-space .primary-button {
    display: inline-block;
    width: auto;
  }
}

img {
    pointer-events: none;
    user-select: none; /* Prevents selecting/highlighting the image */
}

/* --- 1. BASE STYLES & INITIAL GRID --- */
.ranking-section {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 24px;
  font-family: Inter, sans-serif;
  color: #ffffff;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow-x: visible; /* allow inner wrapper to scroll if needed */
}

.ranking-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tab-button {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: #f4f4f4;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button.active {
  background: #111;
  color: white;
}

.player-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 36px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.player-details {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.player-name { 
  font-weight: 600; 
  font-size: 16px; 
}

.player-country { 
  font-size: 13px; 
  color: #ccc; 
  margin-top: 2px; 
}

/* --- 2. GRID SINGLE SOURCE OF TRUTH --- */
:root {
  /* # | player | official points | delta pts | best event | events | mytennis rating | delta rank | status */
  --col-template: 70px 2.4fr 140px 100px 140px 80px 100px 90px 120px;
}

.ranking-header,
.ranking-row {
  display: grid !important;
  grid-template-columns: var(--col-template) !important;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ranking-header {
  padding: 12px 0;
  font-weight: 700;
  color: #dbe7f7; /* light header text */
  border-bottom: 2px solid #f3f3f3;
  text-transform: uppercase;
  font-size: 13px;
}

/* ensure header labels stay on one line */
.ranking-header > div { white-space: nowrap; }

.ranking-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(238, 238, 238, 0.1);
  color: white;
  font-size: 15px;
}

/* Player avatar, name and meta */
.player-avatar-wrap { width:42px; height:42px; border-radius:50%; overflow:hidden; flex:0 0 42px; }
.player-avatar { width:100%; height:100%; object-fit:cover; display:block }
/* placeholder avatar when API has no image */
.player-avatar.placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,0.03); color:#ffd23f; font-weight:800; font-size:14px;
}
.player-details { display:flex; flex-direction:column; align-items:flex-start; }
.player-name { font-weight:800; font-size:16px; color:#ffffff; }
.player-meta { font-size:13px; color:#aac1d8; margin-top:4px }
.status-pill { display:inline-block; padding:6px 10px; border-radius:20px; background:transparent; color:#e6e6e6; border:1px solid rgba(255,255,255,0.06); font-weight:700 }

.official-points, .delta-points, .best-event, .events, .mytennis-rating, .rank-delta, .status { text-align:center }
.official-points { font-weight:800; }
.delta-points { font-weight:700 }
.delta-positive { color: #19d06f; font-weight:800 }
.delta-negative { color: #ff6b6b; font-weight:800 }
.delta-zero { color: #9aa6b4 }
.status-pill.official { background: rgba(25,208,111,0.08); border-color: rgba(25,208,111,0.18); color: #19d06f }
.status-pill.provisional { background: rgba(255,215,0,0.06); border-color: rgba(255,215,0,0.14); color: #ffd23f; text-transform: uppercase; }

.ranking-row:hover { background: rgba(255,255,255,0.01) }

/* Alignment rules */
.ranking-header .player-col,
.ranking-row .player-info {
  text-align: left;
}

.ranking-header div, 
.ranking-row .age,
.ranking-row .tournaments,
.ranking-row .points {
  text-align: center;
  justify-self: center;
}

/* --- 3. THE HORIZONTAL SCROLL FIX --- */
/* This wrapper prevents the stacking behavior on smaller screens */
.ranking-table-wrapper {
  width: 100%;
  overflow-x: auto; /* allow horizontal scroll when necessary */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
  margin-top: 20px;
  display: block;
  padding-bottom: 6px;
  background: inherit; /* use same blue as parent section */
}

/* Table layout - allow width to follow content or container */
.ranking-table, 
.ranking-header {
  width: 100%;
}

/* Prevent grid children from wrapping into implicit rows */
.ranking-header > div {
  white-space: nowrap;
  overflow: visible; /* header should show full labels */
}
.ranking-row > div {
  white-space: nowrap;
  overflow: visible;
}

/* ensure player name doesn't get vertically clipped */
.player-name { line-height:1.05 }

/* --- 4. RESPONSIVE OVERRIDES --- */
@media (max-width: 1000px) {
  .ranking-section {
    width: 95%;
    padding: 15px;
  }
}

/* Reduce top padding for table sections on mobile (players/coaches/certifications) */
@media (max-width: 768px) {
  .section .ranking-section { padding-top: 8px !important; padding-bottom: 12px !important; }
  /* ensure pagination sits after table visually */
  #pagination-controls { width: 100%; justify-content: center; margin: 12px 0; }
}

/* Reduce top padding (half) for page hero sections that need it */
.section.reduced-top { padding-top: 40px !important; }

@media (max-width: 768px) {
  /* Stack dropdowns/pagination above the table while keeping table scrollable */
  .ranking-section > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px;
  }

  .ranking-selectors {
    display: flex !important;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }

  /* Better layout for filter controls */
  .ranking-selectors .selectors-label {
    font-weight: 700;
    color: var(--text);
    margin-right: 8px;
    display: flex;
    align-items: center;
  }
  .ranking-selectors #wrapper-pro,
  .ranking-selectors #wrapper-rec,
  .ranking-selectors #wrapper-juniors {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }
  .ranking-selectors select {
    display: inline-flex;
    align-items: center;
    min-width: 120px;
    padding: 8px 12px;
    background: transparent;
  }

  /* ensure the rows-per-page select aligns with other controls */
  .ranking-section #dropdown-rows {
    min-width: 90px;
  }

  #pagination-controls {
    justify-content: center;
    gap: 10px;
  }

  .select-pointer {
    display: none; /* Hide UI clutter on mobile */
  }

}

@media (max-width: 700px) {
  .partners-block {
    gap: 1rem; /* Reduce gap between logo images */
  }

  .partners-block > div {
    width: 75px; /* reduce fixed width for smaller screens */
  }

  .partners-block .brand-img {
    max-height: 80px; /* Make images slightly smaller */
  }
}

/* Ensure pagination controls are visible across viewports */
#pagination-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 12px 0 !important;
  color: var(--text) !important;
}

/* styling applied to pagination when moved above footer on mobile */
/* mobile-bottom-pagination class removed; pagination will be appended inside wrapper to keep native styles */

@media (max-width: 480px) {
  .ranking-selectors {
    grid-template-columns: 1fr; /* Stack dropdowns vertically */
  }
}

/* --- 5. CUSTOM SCROLLBAR --- */
.ranking-table-wrapper::-webkit-scrollbar {
  height: 0; /* hide horizontal scrollbar in WebKit */
}

.ranking-table-wrapper::-webkit-scrollbar-track {
  background: transparent; /* transparent track so no white shows */
}

.ranking-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08); /* subtle thumb to match dark/blue theme */
  border-radius: 10px;
}
/* Firefox scrollbar color for the ranking wrapper */
.ranking-table-wrapper { scrollbar-color: rgba(255,255,255,0.08) transparent; scrollbar-width: thin; }

/* Hide horizontal scrollbar visuals while preserving scroll interactions on touch/trackpad */
.ranking-table-wrapper {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: thin; /* use thin in Firefox */
}

.nav-menu-glass {
  background: rgba(255, 255, 255, 0.2);  
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-glass {
  background: rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border-radius:10px;
padding:20px;
color:white;
}

.footer-glass .subtitle-text, 
.footer-glass .silver-text,
.footer-glass .silver-link,
.footer-glass .footer-copyright {
  color:white !important;
}

/* Ensure footer is visible on pages like index (fallback when page-level classes differ) */
.footer {
  display: block !important;
  position: relative;
  z-index: 10;
  background-color: #071018; /* dark teal/near-black background for contrast */
  color: #fff;
  padding: 40px 0;
}
.footer a { color: inherit; text-decoration: none; }


/* Article spacing: remove gap between date and image */
.article-date {
  margin-bottom: 0 !important;
}
.article-image {
  margin-top: 0 !important;
  display: block;
}


/* Container to keep both prices on the same line */
.price-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between the two prices */
  margin-bottom: 4px;
}

.discounted {
  position: relative;
  display: inline-block;
  color: #888;
  font-size: 0.9em; /* Slightly smaller so it looks secondary */
  align-self:end;
}

.discounted::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5%;
  width: 110%;
  height: 1px;
  background: #e02b2b;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* Style for the new 750 PHP price */
.current {
  color: #000; /* Or your site's primary text color */
  font-size: 2em; /* Makes the new price more prominent */
}

.blurred {
  filter: blur(10px);
  user-select: none; /* Prevents users from highlighting/copying the hidden price */
  opacity: 0.6;
  pointer-events: none;
}

.search-container {
  margin-bottom: 40px;
  width: 100%;
  display: flex;
  justify-content: center; /* Aligns with your sidebar content alignment */
}

.search-input-group {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.body-scope-placeholder {}
/* Final overrides for ranking table layout (not applied on certifications page) */
body:not(.page-certifications) .ranking-header,
body:not(.page-certifications) .ranking-row {
  grid-template-columns: 60px 350px 110px 90px 110px 70px 60px 60px 80px 160px 80px !important;
}
.ranking-table-wrapper { padding-left: 0; padding-right: 0; }
.ranking-table, .ranking-header { width: 90vw; max-width: 1280px; margin:0 auto; }
.ranking-header > div { white-space: nowrap; overflow: visible; padding: 8px 12px; }
.ranking-row > div { white-space: nowrap; overflow: visible; padding: 8px 12px; }
.ranking-header .player-col { text-align: left; padding-left: 18px;  }
.player-avatar-wrap { width:44px; height:44px; }
.player-name { font-size:15px }

.ranking-table {
  min-width: 0; /* allow responsive sizing */
}
.ranking-header,
.ranking-row {
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  /* responsive: let the table size naturally within the wrapper */
  .ranking-table, .ranking-header { width: 100%; }
}

/* Page-specific override: certifications use a simplified 3-column grid */
.page-certifications .ranking-header,
.page-certifications .ranking-row {
  grid-template-columns: 60px 1fr 360px !important; /* rank | player | course */
  width: 100% !important;
}

.page-certifications .ranking-section { width: 75% !important; max-width: 1000px !important; margin: 0 auto !important; }

.page-certifications .ranking-header > div,
.page-certifications .ranking-row > div {
  padding: 10px 12px !important;
  white-space: nowrap;
  overflow: hidden; /* prevent long headers from overflowing */
  text-overflow: ellipsis;
}

/* Label for the selectors */
.selectors-label {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  margin-right: 8px;
  white-space: nowrap;
}



.professional-search {
  width: 100%;
  padding: 12px 45px 12px 20px; /* Extra padding on right for the icon */
  background: rgba(255, 255, 255, 0.08); /* Matches sidebar transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px; /* Rounded pill style to match Register/Play buttons */
  color: #ffffff;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.professional-search::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.professional-search:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none; /* Allows clicks to pass through to the input */
  transition: color 0.3s ease;
}

.professional-search:focus + .search-icon {
  color: #ffffff;
}

.nav-login-btn {
  padding:10px;
  background:black;
  color:white;
  border-radius:10px;
  margin-left:5px;
}

/* Sidebar search overrides for news page */
.sidebar-search .sidebar-search-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sidebar-search .sidebar-search-input {
  background: #000000 !important; /* black background */
  color: #ffffff !important; /* white text */
  border: 1px solid #ffffff !important; /* white border */
  padding: 8px 12px !important; /* smaller height */
  font-size: 14px !important; /* slightly smaller text */
  border-radius: 8px !important;
  width: 100%;
  max-width: 220px; /* make it compact */
}

.sidebar-search .sidebar-search-input::placeholder {
  color: rgba(255,255,255,0.6) !important;
}

.sidebar-search .w-button {
  background: #000000; /* match input */
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 8px 18px;
  border-radius: 24px;
}

/* Focus state */
.sidebar-search .sidebar-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

/* Remove sidebar background and place icon inside input */
.sidebar-search {
  background: transparent !important;
  padding: 0 !important;
}

.sidebar-search .search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search .sidebar-search-input {
  padding-right: 44px !important; /* room for icon inside */
  background: #000000 !important;
  border: 1px solid #ffffff !important;
}

.sidebar-search .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.7);
  pointer-events: auto;
  cursor: pointer;
}

.sidebar-search .sidebar-search-wrapper .w-button { display: none; }

/* No-results message style */
.no-results {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

.nav-register-btn {
  padding:10px;
  border:1px black solid;
  color:white;
  border-radius:10px;
  margin-left:5px;
}

/* ------------------------------------------------------------------ */

/* News feed & sidebar improvements */
/* News feed & sidebar improvements (glass cards + readable text) */
#news-feed-container .blog-sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-radius: 10px;
  margin-bottom: 16px;
  transition: transform .12s ease, box-shadow .12s ease;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  overflow: hidden;
}

/* Force any accidental white backgrounds inside the card to be transparent */
#news-feed-container .blog-sidebar-item * {
  background: transparent !important;
}


#news-feed-container .blog-sidebar-post-image-link {
  width: 100%;
  position: relative;
  display: block;
}

#news-feed-container .blog-sidebar-post-image-link img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure link wrappers don't introduce white blocks */
#news-feed-container .blog-sidebar-item .w-inline-block,
#news-feed-container .blog-sidebar-item a {
  background: transparent !important;
  color: inherit !important;
}

#news-feed-container .blog-sidebar-post-category {
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

#news-feed-container .blog-sidebar-post-content {
  padding: 10px 12px 12px 12px;
}

#news-feed-container .blog-post-title {
  color: #fff;
  margin: 6px 0 6px 0;
  font-size: 17px;
  line-height: 1.2;
}

#news-feed-container .blog-sidebar-post-content p {
  color: #dcdcdc;
  margin: 0;
  font-size: 14px;
}

#recent-posts-container .sidebar-recent-post {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
}

.sidebar-recent-post-image {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 72px;
}

.blog-recent-post-title {
  color: #fff;
  margin: 0;
  font-size: 14px;
}

.blog-recent-post-date {
  color: #bbb;
  font-size: 12px;
  margin: 4px 0 0 0;
}

#news-feed-container .blog-sidebar-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

@media (max-width: 800px) {
  #news-feed-container .blog-sidebar-item { flex-direction: column; }
  #news-feed-container .blog-sidebar-post-image-link { width: 100%; flex: none; }
  #news-feed-container .blog-sidebar-post-image-link img { width: 100%; }
}
/* BACKGROUND BLACKOVERRIDE + BLUR EFFECT                             */
/* ------------------------------------------------------------------ */
/* Ensure tournament footer and rankings main section are solid black */
/* the page-level inline styles already set background-color:#000        */

/* apply a subtle blur to any element that defines a background-image  */
/* so that adjacent background areas blend at their borders. the blur   */
/* happens using backdrop-filter which requires a stacking context.     */
[style*="background-image"] {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* also add a fallback in case inline style is removed or changed */
.section.black-bg, .footer.black-bg {
    background-color: #000 !important;
    background-image: none !important;
}

/* paint all text/links white inside any black-bg container */
.footer.black-bg,
.footer.black-bg * {
    color: #fff !important;
}

.footer.black-bg a {
    color: #fff !important;
    text-decoration: none !important;
}

.footer.black-bg .footer-logo {
    /* invert logo to white, overriding general .footer-logo rule */
    filter: brightness(0) invert(1) !important;
}

.footer .social-links {
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Page-specific white footer (used on index) */
.footer.white-footer {
  background-color: #fff !important;
  color: #111 !important;
}
.footer.white-footer a { color: #111 !important; }
.footer.white-footer .footer-logo { filter: brightness(0) !important; }
.footer.white-footer .social-links { justify-content: flex-start; }
.footer.white-footer .social-links .social-icon i { color: #111 !important; }
.footer.white-footer .right-block-footer .text-play-footer { color: #111 !important; }
/* Make copyright text black in the white footer */
.footer.white-footer .footer-copyright { color: #111 !important; }

/* Explicit: icons should be white on dark footers and black on white footers */
.footer.white-footer .social-links .social-icon i { color: #111 !important; }
.footer:not(.white-footer) .social-links .social-icon i { color: #fff !important; }

/* Reduce vertical gap between copyright text and social links for white footers */
.footer.white-footer .footer-copyright { margin-bottom: 6px !important; }
.footer.white-footer .left-block-footer .social-links { margin-top: 6px !important; }

/* Larger screens: ensure left column social icons are left-aligned */
@media (min-width:1001px) {
  .footer.white-footer .left-block-footer { align-items: flex-start; }
  .footer.white-footer .left-block-footer .social-links { margin-top: 12px; justify-content: flex-start; }
}

/* if additional elements need this effect, give them the 'black-bg' class */

/* ------------------------------------------------------------------ */

@media (max-width: 991px) {
  .home-banner-section.home-2 {
    height: auto !important;
    min-height: 0 !important;
  }

  .home-banner-section.home-2 .banner-content-home-2,
  .home-banner-section.home-2 .base-container {
    height: auto !important;
  }

  .footer-bottom-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }

  .left-block-footer,
  .right-block-footer {
    width: 100% !important;
    margin: 0 !important;
  }

  .right-block-footer {
    align-items: flex-start;
  }

  .social-links {
    margin-top: 20px;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 16px;
  }
}

@media (max-width: 767px) {
  .home-banner-section .block-button-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .home-banner-section .block-button-row .w-button {
    width: 100% !important;
    text-align: center;
  }

  .footer .left-block-footer,
  .footer .right-block-footer,
  .footer .footer-copyright,
  .footer .text-play-footer {
    text-align: center;
  }

  .footer .left-block-footer,
  .footer .right-block-footer {
    align-items: center;
  }

  .menu-block {
    flex-wrap: wrap;
    row-gap: 10px;
    justify-content: center;
  }

  .footer .social-links {
    justify-content: center;
  }

  .primary-button.invert.w-button {
    width: 100%;
  }

  .text-play-footer {
    font-size: 42px;
    margin-bottom: 24px;
  }
}

.navbar-fixed.home-2 .block-with-border.home-2 {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.navbar-fixed.home-2.nav-outside-hidden .block-with-border.home-2 {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.navbar-fixed.home-2.nav-outside-hidden .brand.w-nav-brand {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.banner-content-home-2 {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}

.banner-content-home-2.banner-outside-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.live-scoring-sticky-tag.sticky-tag-outside-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.w-nav-link.w--current,
.nav-link.w--current,
.dropdown-nav-link.w--current {
  font-weight: 700;
}

/* Override: replace dark/black inset overlay on banner images with a blue tint */
.image-bgr-home-2 {
  /* stronger blue overlay instead of near-black */
  box-shadow: inset 0 0 200px rgba(11,77,182,0.7) !important;
}

/* Slightly increase banner image brightness so blue overlay reads as intended */
.home-banner-section .image-cover {
  filter: brightness(0.98) !important;
}

.live-scoring-sticky-tag {
  position: fixed;
  left: 0;
  top: auto;
  bottom: 25vh;
  z-index: 999;
  background-color: #ffde20;
  color: #111;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: left 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.live-scoring-sticky-tag::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16px;
  width: 16px;
  background-color: #ffde20;
}

.live-scoring-sticky-tag:hover {
  filter: brightness(0.98);
  left: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

@media (max-width: 767px) {
  .live-scoring-sticky-tag {
    top: auto;
    bottom: 20px;
    left: 12px;
    right: 12px;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
    text-align: center;
  }

  .live-scoring-sticky-tag::before {
    display: none;
  }
}




