/*Navbar*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--dark);
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.navbar-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar-links li a {
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    padding: 0 15px;
}

.navbar-links li a:hover {
    color: var(--accent);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-toggle-btn {
    border: none;
    background: transparent;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-toggle-btn:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.toggle-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Container for the dropdown */
.search-bar-dropdown {
    display: none;
    width: 100%;
    padding: 10px 0;
    background: var(--light);
    transition: all 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
}

.search-bar-dropdown.active {
    display: flex;
    justify-content: center;
    animation: slideDown 0.3s ease-out;
}

/*Animation */
@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-bar-dropdown input {
    width: 80%;
    max-width: 500px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.search-bar-dropdown input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 87, 184, 0.2);
}

.search-inner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-close-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-close-btn:hover {
    color: var(--secondary);
}

/* --- Mobile View */
@media (max-width: 768px) {
    .toggle-menu {
        display: block;
    }

    .navbar-right .search-toggle-btn,
    .search-bar-dropdown {
        display: none;
    }

    .navbar-links {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background: var(--dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        padding: 20px;
    }

    .navbar-links.show-menu {
        display: flex;
        z-index: 999;
    }

    .navbar-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
    }

    .navbar-links li:last-child {
        border-bottom: none;
    }
}

/*Flash news*/
.flash-container {
    width: 100%;
    background: var(--primary);
    color: var(--text-light);
    padding: 10px 0;
    font-weight: 500;
    overflow: hidden;
}

.flash-container span {
    padding-right: 50px;
}

.flash-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: flash 50s linear infinite;
}

@keyframes flash {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Tabs */
.tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 25px 0;
}

.tab-btn {
  padding: 10px 20px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: #f0542d;
  color: #fff;
}

/* Filters */
.filters-wrapper {
  display: flex;
  gap: 20px;
  padding: 20px 40px;
}

.filters-wrapper select {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  font-weight: 600;
}



/* ===== OUTER CARD ===== */
.points-card {
  background: #fff;
  border-radius: 14px;
  padding: 10px 0;
  margin: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== TABLE RESET ===== */
.points-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px; 
  font-size: 14px;
}

/* ===== HEADER ===== */
.points-table thead th {
  text-align: left;
  padding: 16px 18px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===== ROW AS BOX ===== */
.points-table tbody tr {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* ROUND CORNERS FOR ROW */
.points-table tbody tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.points-table tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* ===== CELLS ===== */
.points-table td {
  padding: 16px 18px;
  vertical-align: middle;
}

/* TEAM NAME */
.team {
  font-weight: 600;
}

/* POINTS */
.points {
  font-weight: 700;
}

/* ===== RECENT FORM ===== */
.form {
  display: flex;
  gap: 6px;
}

.circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* W / L / N */
.win {
  border: 1.5px solid green;
  color: green;
}
.loss {
  border: 1.5px solid red;
  color: red;
}
.draw {
  border: 1.5px solid gray;
  color: gray;
}
.sponsors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #061b3a, #0a2a55);
  padding: 20px 30px;
  border-radius: 14px;
  overflow-x: auto;
}

.sponsor-item {
  text-align: center;
  color: #fff;
  min-width: 160px;
}

.sponsor-item.wide {
  min-width: 260px;
}

.sponsor-title {
  font-size: 12px;
  font-weight: 600;
  color: #f5d76e;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.sponsor-item img {
  max-height: 50px;
  object-fit: contain;
}

/* Associate partner multiple logos */
.logo-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.logo-row img {
  max-height: 45px;
}

/* Divider line */
.divider {
  width: 1px;
  height: 70px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .sponsors {
    gap: 30px;
  }
  .divider {
    display: none;
  }
}


/*Footer*/
.footer-container {
    background: var(--dark);
    color: var(--text-light);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.footer-col {
    padding: 20px;
    min-width: 220px;
}

.footer-col h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-col ul li a:hover {
    padding-left: 5px;
    color: var(--accent);
}

/*Footer sponsor*/
.footer-sponsor {
    background: var(text-primary);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--text-muted);
}

.sponsor-label {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.sponsor-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.sponsor-logo img {
    width: auto;
    opacity: 0.8;
    transition: 0.2s;
}

.sponsor-logo img:hover {
    opacity: 1;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    text-transform: uppercase;
    border-top: 1px solid var(--text-muted);
}

/* Mobile Devices */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
    }

    .footer-col {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-col:last-child {
        border-bottom: none;
    }

    .footer-col h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .sponsor-logo {
        gap: 20px;
        padding: 0 10px;
    }

    .sponsor-logo img {
        max-width: 100px;
        height: auto;
    }
}