table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

.ranking-box {
  background-color: #f2f2f2; /* svetlosiva */
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05); /* prilagođen tamnijem tekstu */
}

.ranking-box .table {
  color: black;
  background-color: white;
  margin-bottom: 5px;
  border-radius: 12px;
  overflow: hidden;
}

/* Zaglavlje - belo sa boldovanim crnim tekstom */
.ranking-box .table th {
  background-color: #ffffff;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 12px;
}

/* Telo tabele - bela pozadina, crni tekst */
.ranking-box .table td {
  background-color: #ffffff;
  color: #000;
  vertical-align: middle;
  border-top: 1px solid #eee;
}

/* ANSJKdASDHAISHDILLLLLLLLLLLLLLLLLLLLLLLLLLLL*/

/* Glavna vest - lepa kartica sa pozadinskom slikom */

.carousel-control-prev,
.carousel-control-next {
  background-color: rgba(200, 200, 200, 0.6); /* svetlosiva pozadina uvek */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

/* Hover efekat - postaje crna */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.8); /* crna sa blagom providnošću */
}

.carousel-item {
  min-height: 300px; /* ili više, po potrebi */
}

.news-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: scale(1.02);
}

.main-news {
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* Overlay tekst preko slike (ako budeš koristio u budućnosti) */
.news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: white;
}

/* Manje vesti - kartice sa manjom visinom */
.small-news {
  height: 200px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.small-news:hover {
  transform: scale(1.03);
}

/* Overlay za male vesti */
.small-news .news-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

.small-news h6 {
  font-size: 1rem;
  margin: 0;
}

.small-news small {
  font-size: 0.75rem;
  color: #ccc;
}

/* Responsive padding adjustments */
@media (max-width: 768px) {
  .news-card,
  .small-news {
    border-radius: 6px;
  }

  .news-overlay {
    padding: 10px;
  }

  .small-news .news-overlay {
    padding: 8px;
  }
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.news-date {
  font-size: 0.85rem;
  color: #777;
}

.bg-white {
  background-color: #fff !important;
}

.shadow-sm {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.rounded-end {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* ANSJKdASDHAISHDILLLLLLLLLLLLLLLLLLLLLLLLLLLL*/
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 30px;
  border-left: 5px solid #f8aa11; /* changed to f8aa11 */
  padding-left: 15px;
  letter-spacing: 1px;
  text-align: left !important; /* prisilno poravnanje levo */
}

.section-title .season-label {
  font-size: 0.5em; /* pola veličine trenutnog fonta */
  color: #666; /* opcionalno, da bude malo svetlije ili drugačije */
  margin-left: 8px; /* malo razmaka od glavnog teksta */
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: white; /* softer, more subtle than white */
  margin-bottom: 25px;
  padding-left: 30px;
  letter-spacing: 0.5px;
}

.section-title-background {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: white; /* Text needs to contrast with the dark background */
  margin-bottom: 30px;
  padding: 30px;
  border: none;
  border-radius: 6px;
  letter-spacing: 1.5px;
}

.gradient-header {
  width: 100%;
  background: linear-gradient(to right, #f8aa11, #000000); /* changed to f8aa11 gradient */
  padding: 30px 0;
  margin-bottom: 30px;
  margin-top: 30px;
  padding-top: 0px;
  padding-bottom: 0px;
}

.fss-footer {
  background-color: #f8f9fa;
  padding: 40px 0;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.footer-logo {
  padding-top: 5px;
  height: 30px;
}
/* Stil za omotac koji ce imati zajednicki border */
.custom-border-wrapper {
  border: 1px solid #ccc; /* Zajednicki sivi border */
  border-radius: 10px; /* Zaobljene ivice omotaca */
}

/* Osnovni stil za sve dugmice unutar omotaca */
.btn-footer {
  border: none;
  border-radius: 0;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out; /* Dodata tranzicija za pozadinu */
}

/* Hover efekat */
.btn-footer:hover {
  background-color: #ff9900; /* Pozadina se ponarandzasti */
  transform: scale(1.05); /* Uvelicava dugme */
  z-index: 1; /* Podize dugme */
}


.active-flag {
    box-shadow: 0 0 10px 4px rgba(255, 165, 0, 0.7); /* narandžasti glow/fadeout */
}


.social-icon {
  color: #333;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-icon:hover {
  color: #f8aa11; /* changed to f8aa11 */
}

.footer-divider {
  border-top: 1px solid #ddd;
  margin-top: 20px;
}

.year-label {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: black;
  padding: 8px 15px;
  border-radius: 20px;
  margin-bottom: 20px; /* Space between the label and table */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to right, #f8aa11, white); /* Preliv iz f8aa11 u belu */
  border: none;
}

.details-link {
  color: black;
  font-size: 13px;
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.details-link:hover {
  color: #f8aa11; /* changed to f8aa11 */
  text-decoration: underline;
}

a {
  text-decoration: none;
}

.vest-tekst {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f8aa11; /* changed to f8aa11 */
  display: inline-block;
}

img.shadow,
img.shadow-sm {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.star-btn {
  background: transparent;
  border: none;
  padding: 0.5rem; /* Add padding for the circle space */
  width: auto;
  font-size: 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Make it circular */
  transition: background-color 0.3s ease;
}

.star-btn:hover {
  background-color: #e0e0e0; /* Light gray background on hover */
}

.star-btn i {
  color: black;
  transition: color 0.3s ease;
  user-select: none;
}

.star-btn i.fa-solid {
  color: #f8aa11; /* changed to f8aa11 */
}

/* Applies only top and bottom borders to all cells */
.custom-ranking-table th,
.custom-ranking-table td {
  border-top: 1px solid #dee2e6; /* Bootstrap default color */
  border-bottom: 1px solid #dee2e6;
  border-left: none;
  border-right: none !important;
}

table.custom-ranking-table tr.rank-gold td:first-child {
  border-left: 5px solid gold !important;
  font-weight: bold;
}

table.custom-ranking-table tr.rank-silver td:first-child {
  border-left: 5px solid silver !important;
  font-weight: bold;
}

table.custom-ranking-table tr.rank-bronze td:first-child {
  border-left: 5px solid #cd7f32 !important;
  font-weight: bold;
}

#rankingTable thead {
  padding-top: 0px;
  padding-bottom: 0px;
  background-color: #ffffff; /* White background */
  color: #000000; /* Black text */
  border-bottom: 2px solid #dee2e6; /* Only bottom border */
}

#rankingTable thead th {
  padding-top: 0px;
  padding-bottom: 0px;
  border: none !important; /* Remove default borders */
  border-bottom: 2px solid #ccc; /* Custom bottom border */
  /*padding:0px 12px;  Reduce height */
  font-weight: 600;
  font-size: 0.95rem;
  background-color: transparent !important; /* Prevent .table-dark override */
  color: #222 !important; /* Ensure white or dark override */
}

#favorite-teams-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.favorite-card {
  background: #fff8eb; /* adjusted light orange */
  border: 2px solid #f8aa11; /* adjusted strong orange */
  border-radius: 15px;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  max-width: 220px;
  flex: 1 0 auto;
  transition: transform 0.2s ease;
}

.favorite-card:hover {
  transform: translateY(-3px);
}

.favorite-card .team-name {
  font-weight: bold;
  color: #d18d00; /* adjusted dark orange for better contrast */
  margin-bottom: 0.5rem;
}

.favorite-card .star {
  color: gold;
  margin-right: 0.3rem;
}

#favoriteTableWrapper {
  margin-top: 30px;
  display: none;
}

#favoriteTable {
  background-color: #fffaf0; /* adjusted light orange */
  border-radius: 8px;
  overflow: hidden;
}

#favoriteTable th,
#favoriteTable td {
  padding: 10px;
  text-align: center;
}

.favorite-table {
  background-color: white;
  border-collapse: collapse;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.favorite-table th,
.favorite-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: center;
  color: #333;
  font-size: 0.95rem;
}

.favorite-table th {
  background-color: #f8f9fa;
  color: #222;
  font-weight: 600;
}

.favorite-table td {
  background-color: #fff;
}

.favorite-head {
  background-color: transparent; /* Bez boje pozadine */
  color: #333; /* Tamniji tekst za vidljivost */
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  padding: 15px 0; /* Vertikalno razmaknuto */
  margin-bottom: 10px;
}

.black-button-bar {
  display: flex;
  justify-content: space-around;
  background-color: #111;
  border-radius: 10px; /* Only top corners rounded */
  padding: 6px 20px 0 20px; /* No bottom padding */
  margin: 20px 0;
  overflow: hidden;
}

.action-button {
  flex: 1;
  margin: 0 4px;
  background-color: white;
  color: black;
  border: none;
  padding: 10px 0;
  border-radius: 10px 10px 0 0;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.action-button:hover {
  background-color: silver;
}

.action-button:active {
  background-color: #f8aa11; /* changed to f8aa11 */
  color: white;
}

.btn-light:hover {
  background-color: silver;
  color: black;
}

.btn-light:active,
.btn-light.active {
  background: linear-gradient(
    135deg,
    #f8aa11,
    #e08a00
  ); /* gradient from bright to deep orange, adjusted to #f8aa11 */
  color: #fff;
  box-shadow: 0 0 8px rgba(248, 170, 17, 0.7); /* adjusted f8aa11 shadow */
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

* {
  list-style: none;
  font-family: 'Open Sans';
}

.cont_principal {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgb(212, 228, 239);
  background: -moz-linear-gradient(
    top,
    rgba(212, 228, 239, 1) 0%,
    rgba(134, 174, 204, 1) 100%
  );
  background: -webkit-linear-gradient(
    top,
    rgba(212, 228, 239, 1) 0%,
    rgba(134, 174, 204, 1) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(212, 228, 239, 1) 0%,
    rgba(134, 174, 204, 1) 100%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d4e4ef', endColorstr='#86aecc',GradientType=0 );
}

.cont_breadcrumbs {
  width: 100%;
}

.cont_breadcrumbs_3 {
  position: relative;
  width: 100%;
  float: left;
  margin: 10px 40px 0px 0px;
}

.cont_breadcrumbs_3 > ul > li {
  position: relative;
  float: left;
  transform: skewX(-15deg);
  background-color: #fff;
  z-index: 1;
  transition: all 0.5s;
  margin-left: 5px;
  margin-bottom: 5px;
}

.cont_breadcrumbs_3 > ul > li:hover {
  background-color: #fff8eb; /* adjusted light orange tint for hover */
}

.cont_breadcrumbs_3 > ul > li > a {
  display: block;
  padding: 10px;
  font-size: 15px;
  transform: skewX(15deg);
  text-decoration: none;
  color: #444;
  font-weight: 300;
}

.btn-generacija {
  width: 100%;
  border-radius: 0;
  margin-bottom: 5px;
  /* New Styles */
  background-color: #f0f0f0; /* Light grey default */
  color: #333; /* Darker text for contrast */
  border: 1px solid #ddd; /* Subtle border */
  padding: 10px 15px; /* Slightly larger padding for a bigger button */
  font-size: 1rem; /* Adjust font size if needed */
  transition: all 0.2s ease-in-out; /* Smooth transition for hover/active states */
}

.btn-generacija:hover {
  background-color: white !important; /* White on hover */
  color: black !important; /* Black text on hover */
  border-color: #ccc; /* Slightly darker border on hover */
}

.btn-generacija.active,
.btn-generacija:active,
.btn-generacija:focus {
  /* Added :active and :focus for consistent "pressed" look */
  background-color: #f8aa11 !important; /* f8aa11 for pressed/active */
  color: white !important; /* White text on active */
  border-color: #f8aa11 !important; /* f8aa11 border on active */
  box-shadow: 0 0 0 0.25rem rgba(248, 170, 17, 0.25) !important; /* Optional: adds a subtle f8aa11 glow on focus/active */
}

.carousel-item .turnir-entry {
  height: 100px;
  background-color: white;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
}

.turnir-entry img {
  height: 80px;
  width: auto;
  margin-right: 15px;
}

.turnir-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.turnir-title {
  font-weight: bold;
}

.turnir-entry {
  /* Keep your existing styles for .turnir-entry here, e.g., */
  /* d-flex align-items-center mb-3 p-3 border rounded */

  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; /* Smooth transitions for the effects */
}

.turnir-entry:hover {
  transform: scale(1.02); /* Enlarge by 2% on hover */
  background-color: #f8f8f8; /* Slightly grey background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow for more depth */
}

/* Custom Styles for Tournament Article and Podium */

/* Podium Container Adjustment */
#turnir-podijum {
  /* Bootstrap's align-items-end handles vertical bottom alignment */
  /* justify-content-center and w-50 are already there */
  margin: 0 auto; /* Center the w-50 div */
  /* flex-nowrap is now a Bootstrap class directly on the div, so no need here */

  /* You might want a minimum width for the entire podium on very small screens */
  /* If the w-50 makes it too narrow on tiny phones, this can give it a floor */
  /* min-width: 280px; /* Example: adjust as needed, ensures readability */
}

/* Podium Block Base */
.podium-block {
  padding: 10px 5px; /* Reduced padding for a more compact look, horizontal padding less */
  border-radius: 8px; /* Slightly smaller radius */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Moderate shadow */
  margin-top: 0px; /* Keeps separation from text above */
  position: relative;
  display: flex;
  flex-direction: column; /* Set to column to stack items vertically */
  justify-content: flex-end; /* Pushes content (name, score) to the bottom of the block */
  align-items: center; /* Center items horizontally within the flex column */
  text-align: center;
  transition: all 0.3s ease-in-out; /* Smooth transitions for hover/focus */
  min-height: 60px; /* A sensible minimum height for readability */
  flex-grow: 1; /* Allow blocks to grow to fill space within their column */
  flex-shrink: 1; /* Allow blocks to shrink if needed, crucial when not wrapping */
}

.podium-block:hover {
  transform: translateY(-5px); /* Standard lift on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* NEW: Styling for the team logo */
.team-logo {
  max-width: 80%; /* Ensure image fits within the block */
  height: auto; /* Maintain aspect ratio */
  max-height: 50px; /* Limit image height, adjust as needed */
  object-fit: contain; /* Ensure the whole image is visible within its bounds */
  margin-top: auto; /* This is the key: pushes the logo to the top */
  margin-bottom: 5px; /* Space between logo and team name */
}

.podium-block .team-name {
  font-weight: bold;
  font-size: 1rem; /* Clearer font size */
  margin-bottom: 0px; /* No margin below name, as points are directly under */
  word-break: break-word; /* Allow words to break to fit */
  white-space: normal; /* Override potential nowrap from flex-nowrap */
  color: inherit; /* Inherit color from parent block */
  overflow: hidden; /* Hide overflowing text */
  text-overflow: ellipsis; /* Add ellipsis for overflowed text */
  display: -webkit-box; /* For multi-line ellipsis (Webkit browsers) */
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
}

.podium-block .place {
  font-size: 0.8rem; /* Clearer place text */
  opacity: 0.9;
  color: inherit; /* Inherit color from parent block */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* Keep place on single line, ellipsis if too long */
  margin-top: 2px; /* Small space between team name and place */
}

/* Podium Heights (Standard: Gold is highest) - Using relative units for proportionality */
.gold {
  height: 180px; /* Highest for 1st place */
  background-color: #ffd700 !important; /* Gold */
  color: #4b0082; /* Dark purple/indigo for contrast on gold */
}

.silver {
  height: 150px; /* Medium height (80% of gold) */
  background-color: #c0c0c0 !important; /* Silver */
  color: #36454f; /* Dark slate grey for contrast on silver */
}

.bronze {
  height: 140px; /* Lowest for 3rd place (60% of gold) */
  background-color: #cd7f32 !important; /* Bronze */
  color: #ffffff; /* White for contrast on bronze */
}

/* Crown Icon Styling for 1st Place */
.podium-block .crown-icon {
  position: absolute;
  top: -20px; /* Position above the gold block, adjusted for new heights */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem; /* Slightly smaller crown to fit better */
  color: #daa520; /* A darker gold for the crown itself */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
  z-index: 3; /* Ensure crown is on top of everything */
}

/* Adjust column sizing for the podium */
#turnir-podijum .col-4 {
  padding-left: 3px; /* Small gap between podium blocks */
  padding-right: 3px;
  /* On very small screens, the default Bootstrap col-4 will make them shrink.
     We might want to give them a minimal width to prevent squishing to zero. */
  min-width: 80px; /* Example: Each column will be at least 80px wide */
}

/* Ensure image and text are well-spaced */
.col-lg-4,
.col-lg-8 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Responsive adjustments (focused ONLY on shrinking and text management) */
@media (max-width: 991.98px) {
  /* Applies from large breakpoint down to extra small */
  #turnir-podijum {
    width: 90% !important; /* Give it more room than w-50 on smaller screens */
    /* If min-width on .col-4 is used, this width becomes less critical for survival */
  }

  /* Podium blocks themselves - will shrink horizontally due to flex-nowrap */
  .podium-block {
    padding: 8px 2px; /* Even less padding horizontally for very tight spaces */
    min-height: 80px; /* Smallest sensible minimum height */
  }
  .team-logo {
    max-height: 40px; /* Smaller image height on smaller screens */
  }
  .podium-block .team-name {
    font-size: 0.85rem; /* Smaller text for tight spaces */
    -webkit-line-clamp: 2; /* Still 2 lines max */
  }
  .podium-block .place {
    font-size: 0.65rem; /* Smaller place text for tight spaces */
  }

  /* Keep fixed heights for the stepping effect even on small screens */
  /* Adjust these heights if you want the entire podium to scale down vertically too */
  .gold {
    height: 150px;
  }
  .silver {
    height: 130px;
  }
  .bronze {
    height: 120px;
  }

  .podium-block .crown-icon {
    top: -15px; /* Adjust crown position */
    font-size: 1.8rem; /* Smaller crown */
  }
}

/* Optional: Even smaller screens, if previous adjustments aren't enough */
@media (max-width: 575.98px) {
  /* Bootstrap's xs breakpoint */
  #turnir-podijum {
    width: 95% !important; /* Take up almost full width on tiny screens */
  }
  .team-logo {
    max-height: 30px; /* Even smaller image height on tiny screens */
  }
  .podium-block .team-name {
    font-size: 0.75rem;
    -webkit-line-clamp: 2; /* Crucial for tiny screens */
  }
  .podium-block .place {
    font-size: 0.55rem; /* Tiny text */
  }
  .gold {
    height: 140px;
  } /* Even smaller proportional reduction */
  .silver {
    height: 120px;
  }
  .bronze {
    height: 110px;
  }
  .podium-block .crown-icon {
    font-size: 1.5rem;
  }
}

.btn-drzava {
  background-color: #e9ecef;
  border: none;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  transition: background-color 0.2s ease;
}

.btn-drzava img {
  max-width: 32px;
  max-height: 32px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.btn-drzava:hover,
.btn-drzava.active-drzava {
  background-color: #f8aa11; /* changed to f8aa11 */
}

.btn-drzava.active-drzava {
  background-color: #f8aa11; /* changed to f8aa11 */
}

/* Rotacija strelice */
.rotated {
  transform: rotate(90deg); /* ili 180deg za dole */
}

/* Animacija za ikonicu */
#toggleIcon {
  transition: transform 0.3s ease;
}

/* Slide-down/up animacija */
.mobile-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-collapse.show {
  max-height: 1000px; /* dovoljno da stane sve */
}

/* Na većim ekranima prikazujemo odmah bez efekta */
@media (min-width: 768px) {
  .mobile-collapse {
    max-height: none !important;
    overflow: visible !important;
  }
}

.news-button-subtle {
  position: relative;
  display: inline-block;
  color: #f8aa11; /* f8aa11 tekst */
  text-decoration: none; /* Ukloni podvlačenje ako je link */
}

.news-button-subtle::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: #f8aa11; /* f8aa11 linija */
  transition: width 0.3s ease;
}

.news-button-subtle:hover {
  color: #f8aa11; /* Osiguraj boju i na hover */
}

.news-button-subtle:hover::after {
  width: 100%;
  left: 0;
  background: #f8aa11;
}

.simple-transition-btn {
  display: block;
  width: 100%;
  background-color: #fff;
  text-decoration: none;
  border: 2px solid transparent; /* dodamo border koji će biti animiran */
  border-radius: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  clip-path: polygon(4% 0, 100% 0%, 96% 100%, 0% 100%);
  overflow: hidden;
}

/* slike normalizovane */
.simple-transition-btn img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

/* uklanjamo ::before jer više ne treba za pozadinu */
.simple-transition-btn::before {
  display: none;
}

/* efekat hovera – border i senka */
.simple-transition-btn:hover {
  transform: scale(1.05);
  border-color: #f8aa11; /* narandžasti border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.img-bordered {
  border: 3px solid #f8aa11; /* changed to f8aa11 */
  border-radius: 4px;
}

/* Omotač da možemo animirati */
.season-select-wrapper {
  position: relative;
  display: inline-block;
}

/* Sam SELECT */
.season-select {
  border: none;
  background: transparent;
  color: #666; /* svetliji tekst */
  font-size: 0.9rem;
  padding: 4px 28px 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: background-color 0.2s ease;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 14px;
}

/* Hover efekat */
.season-select:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Fokus efekat */
.season-select:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.08);
}

/* Animacija otvaranja opcija */
.season-select option {
  padding: 6px;
}

/* Chrome/Edge scrollbar sakrivanje */
.season-select option::-webkit-scrollbar {
  width: 6px;
}

.season-select option::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Default tekst crn */
#turnirTabs .nav-link {
  color: #000;
}

/* Aktivni tab f8aa11 */
#turnirTabs .nav-link.active {
  color: #f8aa11; /* changed to f8aa11 */
}

.generacije_button {
  border-radius: 10px 10px 0 0;
  min-width: 100px; /* podrazumevano za desktop */
}

/* Za mobilne uređaje (širina ekrana do 768px) */
@media (max-width: 768px) {
  .generacije_button {
    min-width: 30%;
    max-width: 31%;
    border-radius: 10px 10px 0 0;
  }
}

.generacije_button_klub {
  border-radius: 10px 10px 0 0;
  min-width: 100px; /* podrazumevano za desktop */
}

@media (max-width: 768px) {
  .generacije_button_klub {
    min-width: 45%;
    max-width: 47%;
    border-radius: 10px 10px 0 0;
  }
}

/* Custom CSS za zastavice */
.lang-flags {
  position: absolute; /* Postavi apsolutnu poziciju unutar roditeljskog elementa */
  top: 10px; /* Pomeri 10 piksela od vrha */
  right: 20px; /* Pomeri 20 piksela od desne strane */
  z-index: 1000; /* Postavi da bude iznad ostalih elemenata, kao što je navigacija */
}

.flag-icon {
  width: 30px; /* Veličina zastavice */
  height: auto; /* Automatska visina radi održavanja proporcija */
  margin-left: 10px; /* Razmak između zastavica */
  border: 1px solid #ddd; /* Mali okvir za bolji izgled */
  border-radius: 3px; /* Zaobljeni uglovi */
  transition: transform 0.2s ease-in-out; /* Glatka animacija prilikom prelaska mišem */
}

.flag-icon:hover {
  transform: scale(1.1); /* Uvećaj zastavicu na prelasku mišem */
}

/* Stil za linkove zastavica unutar navigacije (mobilni prikaz) */
.navbar-nav .flag-icon {
  width: 20px;
}

.animated-button {
        background-color: orange;
        color: white;
        padding: 8px 15px; /* Slightly more padding for better look */
        border-radius: 5px;
        text-decoration: none;
        display: inline-flex; /* Use flexbox to align text and arrow */
        align-items: center;
        overflow: hidden; /* Hide the arrow initially */
        position: relative;
        transition: background-color 0.3s ease; /* Smooth background transition */
    }

    .animated-button:hover {
        background-color: darkorange; /* Slightly darker orange on hover */
    }

    .animated-button .arrow {
        display: inline-block;
        width: 0; /* Initially hidden */
        height: 0;
        margin-left: 5px; /* No margin initially */
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 5px solid white; /* White arrow pointing right */
        transition: width 0.3s ease, margin-left 0.3s ease; /* Smooth arrow animation */
        vertical-align: middle; /* Align with text */
    }

    .animated-button:hover .arrow {
        width: 5px; /* Show the arrow */
        margin-left: 10px; /* Add space between text and arrow */
    }
    
    
  .toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #f0f0f0;
    color: #ccc;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
  }

  .toggle-btn.active {
    background-color: orange;
    border-color: orange;
    color: white;
  }