/* Teams page specific styling */
.tourno5-header {
    min-height: 150px;
}

/* Ensure consistent header height across all views */
@media (max-width: 768px) {
    .tourno5-header {
        min-height: 150px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tourno5-header {
        min-height: 150px;
    }
}

@media (min-width: 1025px) {
    .tourno5-header {
        min-height: 150px;
    }
}

/* Remove margin under the date */
.tourno5-date {
    margin-bottom: 0;
}

/* Ensure no margin under date across all views */
@media (max-width: 768px) {
    .tourno5-date {
        margin-bottom: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tourno5-date {
        margin-bottom: 0;
    }
}

@media (min-width: 1025px) {
    .tourno5-date {
        margin-bottom: 0;
    }
}

/* Remove margin from the column containing title and date */
.tourno5-header .col-lg-9,
.tourno5-header .col-md-8 {
    margin-bottom: 0;
}

/* Ensure no margin from title/date column across all views */
@media (max-width: 768px) {
    .tourno5-header .col-lg-9,
    .tourno5-header .col-md-8 {
        margin-bottom: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tourno5-header .col-lg-9,
    .tourno5-header .col-md-8 {
        margin-bottom: 0;
    }
}

@media (min-width: 1025px) {
    .tourno5-header .col-lg-9,
    .tourno5-header .col-md-8 {
        margin-bottom: 0;
    }
}

/* Hide link styling for tournament title */
.tourno5-title-link {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.tourno5-title-link:hover {
    color: #fff;
    text-decoration: none;
}

.tourno5-title-link:visited {
    color: #fff;
    text-decoration: none;
}

.tourno5-title-link:active {
    color: #fff;
    text-decoration: none;
}

/* Make team count number white */
#team-count {
    color: #fff;
}

/* Reduce spacing between team cards on mobile */
@media (max-width: 768px) {
    .tourno5-team-card {
        margin-bottom: 10px;
    }
    
    .size-7.col-xs-12 {
        margin-bottom: 0 !important;
    }
    
    .bottom_margin_20 {
        margin-bottom: 0 !important;
    }
    
    .clickable_team {
        margin-bottom: 10px;
    }
}

.tourno5-team-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.tourno5-team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.tourno5-team-logo {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.tourno5-team-logo img {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tourno5-team-info h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.tourno5-team-info h5 a {
    color: #333;
    text-decoration: none;
}

.tourno5-team-info h5 a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Filter navigation styling */
.tourno5-filter-nav {
    background: transparent;
    border-radius: 25px;
    padding: 5px;
    display: inline-block;
    margin-bottom: 30px;
}

.tourno5-filter-item a {
    color: #333;
    background: transparent;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.tourno5-filter-item.active a {
    background: #007bff;
    color: #fff;
}

.tourno5-filter-item a:hover {
    background: transparent;
    color: #333;
    font-weight: 900;
    text-decoration: none;
}

/* Mobile dropdown filter styling */
.tourno5-mobile-filter {
    margin-bottom: 30px;
    width: 100%;
}

.tourno5-mobile-dropdown {
    width: 100%;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: auto;
    min-height: 48px;
    line-height: 1.4;
}

.tourno5-mobile-dropdown:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
    outline: none;
}

.tourno5-mobile-dropdown option {
    padding: 12px 15px;
    font-size: 16px;
    line-height: 1.4;
}
