.ranking-widget {
  background: linear-gradient(145deg, #ffffff, #f6f6f6);
  border-left: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.ranking-widget h3 {
  margin-bottom: 12px;
  font-size: 1.15em;
  color: #2d2d2d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ranking-list {
  list-style: none;
}

.rank-item {
  margin-bottom: 10px;
  border-radius: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rank-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 10px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.rank-item:hover {
  transform: translateY(-2px);
}

.rank-item a:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.rank-left {
  width: 35px;
}

.rank-number {
  background: #FF7F00;
  color: white;
  font-weight: 700;
  font-size: 0.8em;
  padding: 5px 8px;
  border-radius: 22px;
}

.rank-mid {
  flex: 1;
  padding: 0 10px;
}

.rank-name {
  font-weight: 600;
  font-size: 0.95em;
  color: #222;
}

.rank-location {
  font-size: 0.75em;
  color: #777;
  margin-top: 2px;
}

.rank-right {
  text-align: right;
  color: #82BE21;
  font-weight: 700;
}

.rank-right small {
  display: block;
  font-size: 0.7em;
  color: #aaa;
}

.score-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #82BE21;
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  box-shadow: 0 3px 8px rgba(130, 190, 33, 0.35);
}



/* ========================================
   SIDEBAR
======================================== */

.sidebar { 
  flex: 30%; 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
  width: 100%; }


.sidebar-column {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

/* ========================================
   SIDEBAR BOXES
======================================== */

.sidebar-box,
.sidebar-section,
.sidebar-widget {
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.sidebar-box:hover,
.sidebar-section:hover,
.sidebar-widget:hover {
  transform: translateY(-3px);
}

/* Fancy widget variation */
.sidebar-widget {
  background: linear-gradient(
    to bottom,
    rgba(130,190,33,0.06),
    rgba(130,190,33,0.02)
  );
  border: 1px solid rgba(130,190,33,0.2);
}

/* ========================================
   TITLES
======================================== */

.sidebar-title,
.sidebar-box h3,
.sidebar-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2271B3;
  margin-bottom: 14px;
}

/* ========================================
   LISTS & LINKS
======================================== */

.sidebar-box ul,
.sidebar-section ul,
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box li,
.sidebar-section li {
  margin-bottom: 10px;
}

.sidebar-box a,
.sidebar-section a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.sidebar-box a:hover,
.sidebar-section a:hover {
  color: #82BE21;
}

/* ========================================
   BUTTON LINKS
======================================== */

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 11px 14px;
  border-radius: 12px;

  background: #fff;
  border: 1px solid rgba(130,190,33,0.25);

  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  transition: all 0.2s ease;
}

.side-btn:hover {
  background: #82BE21;
  color: #fff;
  border-color: #82BE21;

  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(130,190,33,0.25);
}

.side-btn:active {
  transform: scale(0.98);
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

  .sidebar {
    flex: 100%;
    width: 100%;
  }

  .sidebar-box,
  .sidebar-section,
  .sidebar-widget {
    padding: 15px;
  }

  .side-btn {
    font-size: 13.5px;
    padding: 10px;
  }

}
