/**
 * All of the CSS for your public-specific functionality should be
 * included in this file.
 */
.container.archive-container{
    padding:30px 0!important;
}
@media (max-width: 600px){
    .container.archive-container{
        padding:20px 20px!important;
    }
}
.football-match-container {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
.football-match-container .match-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-content: center;
}
.football-match-container .match-time {
    color: #888;
    font-size: 0.9em;
    width: 100px;
    flex-shrink: 0;
    text-align: center;
}
.dropdown-toggle::after{
    display:none;
}
.predictions table{
    border: 2px #cecece solid!important;
    color:#545454;
}
.predictions table tr{
    border: 2px #cecece solid!important;
    color:#545454;
}
.predictions table td{
    border: 2px #cecece solid!important;
    color:#545454;
}
.predictions td a{
    color:#000;
    cursor:pointer;
}
.teams {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.team-one,
.team-two {
    text-align: center;
}

.team-name {
    margin-bottom: 5px;
}

.team-form {
    font-size: 0.9em;
    color: #555;
}

.separator {
    margin: 0 20px;
    font-size: 1.2em;
    color: #333;
}

.match-details {
    margin-top: 5px;
    font-size: 0.85em;
    color: #555;
    display: flex; /* Use flexbox to align prediction items horizontally */
    flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens */
    gap: 10px; /* Space between prediction items */
}

.prediction-item {
    display: inline-flex; /* Use inline-flex for better alignment of label and value */
    align-items: center; /* Vertically align items within the prediction */
    gap: 5px; /* Space between label and value */
}

.prediction-name {
    font-weight: bold;
}

.prediction-probability {
    color: blue;
}

.prediction-odd {
    color: orange;
}

.prediction-result {
    color: green;
}

.match-date,
.match-time,
.match-venue {
    margin-bottom: 5px;
}

.predictions {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.predictions h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
}

.predictions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.predictions li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.predictions li:last-child {
    border-bottom: none;
}

/* Football Matches List Shortcode Styling */
.football-matches-list {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

.football-matches-list > h3 {
    background-color: #f5f5f5;
    color: #333;
    padding: 15px;
    margin: 0;
    font-size: 1.2em;
    border-bottom: 1px solid #e0e0e0;
}

.country-matches {
    padding: 10px 15px;
}

.country-matches > h4 {
    color: #555;
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.country-matches > h4:first-child {
    margin-top: 0;
}

.league-matches {
    list-style: none;
    padding: 0;
    margin: 0;
}

.match-score {
    font-weight: bold;
    color: #007bff; /* Example color for score */
    margin-left: 5px;
}

.match-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.match-item:last-child {
    border-bottom: none;
}

.match-time {
    color: #888;
    font-size: 0.9em;
    width: 80px; /* Adjust as needed */
    flex-shrink: 0;
}

.match-teams {
    flex-grow: 1;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.has-prediction {
    background-color: #ffe0b2; /* Light orange */
    color: #e65100; /* Dark orange */
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    margin-left: 10px;
}

.predictions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.predictions-table th,
.predictions-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.predictions-table th {
    background-color: #f2f2f2;
}

.bi {
    vertical-align: middle;
    margin-right: 5px;
    display: inline-block;
}

.bi.bi-hand-thumbs-up-fill {
    fill: green;
}

.bi.bi-hand-thumbs-down-fill {
    fill: red;
}
.nv-meta-list{
    display: none;
}
.country-list {
    list-style-type: none;
    padding: 0;
}

.country-list .cat-item {
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px #cecece solid;
    border-radius: 8px;
    padding: 4px 10px;
    position: relative;
    background: #fff;
}
.country-list .cat-item a{
    color:#000;
    font-weight:600;
}
.country-list .children {
    list-style-type: square;
    padding-left: 20px;
}

.country-list .dropdown-toggle {
    margin-left: 10px;
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    color:#cecece;
    position: absolute;
    right: 5px;
    top: -5px;
}

/* Пример анимации для скрытых элементов */
.children {
    display: none;
    transition: all 0.3s ease;
}
.children li a{
    color:#000000;
    font-weight:400!important;
}
.children.show {
    display: block;
}
.country-matches{
    margin-bottom:15px;
    border: 1px solid #f1f1f1;
    border-radius: 0 0 10px 10px;
}
.match-item .match-time {
    color: #ffffff;
    font-weight: 800;
    border: 2px solid;
    background: black;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}
.match-item .match-teams a{
    text-transform:uppercase;
    font-weight: 600;
    margin: 0 15px;
}
.league-matches .match-item{
    display:flex;
    background: #fbfbfb;
}
.prediction-odd a{
    background: #f9b035;
    padding: 10px 14px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}
.match-item .match-details {
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
    align-content: center;
    align-items: center;
}
.prediction-item .prediction-name {
    font-weight: bold;
    margin: 0 20px;
    /* color: green; */
    border: 1px solid grey;
    padding: 10px 20px;
    border-radius: 6px;
}
.prediction-name a{
    color:#000;
    font-weight:400;
    font-size:14px;
    text-decoration:none;
}
.prediction-item .prediction-probability {
    color: #f9b035;
    font-weight: 800;
    border: 4px solid;
    width: 60px;
    height: 30px;
    line-height: 13px;
    border-radius: 20px;
    padding: 5px;
    font-size: 11px;
    text-align: center;
}
.prediction-odd a:hover{
    background: #000;
    padding: 10px 14px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}
.football-matches-list {
    border: none!important;
}

.country-list {
    height: 610px;
    overflow: hidden;
    overflow-y: scroll; /* Убираем auto и заставляем всегда быть видимым, но без прокрутки */
    scrollbar-width: thin; /* Для Firefox */
    scrollbar-color: #888 #f1f1f1; /* Для Firefox */
    /* Добавляем отступ справа, чтобы компенсировать ширину скроллбара */
    padding: 0 12px 0 0;
}

/* Для Webkit браузеров (Chrome, Safari) */
.country-list::-webkit-scrollbar {
    width: 12px; /* Толщина скроллбара */
}

.country-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.country-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Для Firefox (делаем скроллбар тонким и меняем его цвета) */
.country-list:hover {
    scrollbar-width: thin; /* Показываем тонкий скроллбар */
    scrollbar-color: #888 #f1f1f1; /* Цвет ползунка и фона */
}

.sport-date-buttons {
    display: flex;
    justify-content: space-between; /* Distribute space between the divs */
    align-items: center; /* Vertically align items in the center */
    padding: 10px; /* Add some padding around the buttons */
}


h1.page-title{
    font-size:48px;
    padding-left:20px;
    border-left: 8px solid #f9b035;
    margin-bottom:15px;
}
h2{
    padding-left:10px!important;
    border-left: 4px solid #ff5e00;
}
.archive-description h3{
    padding-left:10px!important;
    border-left: 4px solid #545454;
}
.archive-description h4{
    padding-left:10px!important;
    border-left: 4px solid #cecece;
}
.football-matches-list h3{
    border-left: 0;
    padding-left: 0;
}
.country-matches h4{
    border-left: 0;
    padding-left: 0;
}
.container ul{
    margin: 20px 0;
}
.container ol{
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
}
.page-header{
    margin-bottom:20px;
    border-bottom:1px solid #cecece;
}
.sport-date-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.sport-date-buttons div{
    width:28%;
    margin:5px 10px;
}
.sport-date-buttons a {
    display: flex;
    padding: 4px 20px;
    text-decoration: none;
    color: #fff;
    background: #f9b035;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    justify-content: center;
    align-items: center;
}

.sport-date-buttons a:hover {
    background-color: #0056b3; /* Darker blue on hover */
    color: #fff;
}

/* Shortcode Container */
.sport-predictions-section {
    margin-bottom: 40px;
}

/* Sport Header (H2) */
.sport-title-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Sport Icon in Header */
.sport-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}
/* Specific icons - REMEMBER TO UPDATE THESE PATHS for ALL your custom post types */
/*.icon-football { background-image: url("path/to/football-icon.svg"); }
.icon-basketball { background-image: url("path/to/basketball-icon.svg"); }
.icon-your_sport_cpt_slug { background-image: url("path/to/your-sport-icon.svg"); }
*/

/* Styles for the clickable sport title and icon in header */
.sport-title-header .sport-title-link {
    text-decoration: none; /* Remove default underline */
    color: inherit; /* Inherit color from the h2 */
    display: flex; /* Allows icon and text to align */
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Indicate it's clickable */
    flex-grow: 1; /* Allow it to grow, but not consume all space */
    flex-basis: 0; /* Important for flex-grow */
}
.sport-title-header .sport-title-link:hover {
    text-decoration: underline; /* Add underline on hover for visual feedback */
}

/* Styles for the non-clickable predictions info in header */
.sport-title-header .predictions-info {
    font-size: 0.7em; /* Keep smaller font size for the combined text */
    color: #555; /* Default text color */
    margin-left: 10px; /* Spacing from the sport title */
    white-space: nowrap; /* Prevent wrapping for "Predictions X" */
}
.sport-title-header .total-predictions-count {
    color: #0073aa; /* Apply blue color to the count number */
    font-weight: bold; /* Make the number stand out slightly */
}

/* Predictions Grid Layout */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Prediction Card (now a DIV) */
.prediction-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: default; /* Card itself is not a link anymore */
    transition: box-shadow 0.2s ease-in-out; /* Smooth shadow transition */
}
.prediction-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Subtle lift on hover for the whole card */
}


/* Card Header */
.prediction-card .card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}
.prediction-card .event-date {
    font-weight: bold;
}

/* League Name Wrapper (contains flag and link) */
.league-name-wrapper {
    display: flex; /* Aligns flag and text/link horizontally */
    align-items: center;
}

/* Flag Icon (requires flag-icon-css library) */
.flag-icon-extra-small {
    font-size: 14px; /* Adjust flag size as needed */
    margin-right: 8px; /* Space between flag and league name */
}

/* League Name Link */
.league-name-wrapper .league-link {
    text-decoration: none; /* Remove default underline */
    color: inherit; /* Inherit color from .card-header */
    font-weight: normal; /* Ensure it's not bold if .card-header has bold */
}
.league-name-wrapper .league-link:hover {
    text-decoration: underline; /* Underline on hover */
}


/* Team vs Team Section (now the clickable match link) */
.team-vs-section.match-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px; /* Keep original margin */
    text-decoration: none; /* Remove default link underline */
    color: inherit; /* Inherit text color from prediction-card */
    cursor: pointer; /* Indicate it's clickable */
    padding: 5px 0; /* Add vertical padding for larger clickable area */
    transition: background-color 0.2s ease-in-out; /* Smooth hover effect */
    border-radius: 4px; /* Match card radius for aesthetics */
}
.team-vs-section.match-link:hover {
    background-color: #f8f8f8; /* Light background on hover */
}
.team-vs-section .team-name {
    font-weight: bold;
    font-size: 1.1em;
    width: 45%;
    text-align: center;
}
.team-vs-section .vs-separator {
    font-size: 0.9em;
    margin: 0 10px;
    color: #888;
}

/* Prediction Details */
.prediction-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.prediction-label {
    font-size: 0.9em;
    color: #777;
}

/* Prediction Value (no longer a link, no arrow) */
.prediction-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #0073aa;
    display: flex; /* Keep for alignment */
    align-items: center;
}

/* No Matches Message */
.no-matches-message {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .match-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
    }

    .match-time {
        margin-bottom: 5px;
        width: auto;
    }

    .has-prediction {
        margin-left: 0;
        margin-top: 5px;
    }
    .match-item .match-time {
        color: #ffffff;
        font-weight: 800;
        border: 2px solid;
        background: black;
        border-radius: 6px;
        padding: 10px 15px;
        font-size: 16px;
        width: 100%;
    }
    .match-item .match-teams a {
        text-transform: uppercase;
        font-weight: 600;
        margin: 0 15px;
        font-size: 18px;
    }
    .match-details .prediction-item{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .prediction-item .prediction-probability{
        margin:10px;
    }
    .league-matches .match-teams {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-content: space-around;
    }
    .prediction-odd{
        margin-top:10px;
    }
    .prediction-item .prediction-probability {
        color: #ff5e00;
        font-weight: 800;
        border: 6px solid;
        width: 90px;
        height: 90px;
        line-height: 68px;
        border-radius: 50px;
        padding: 5px;
        font-size: 17px;
    }
    .sport-date-buttons {
        flex-direction: column;
    }
    .sport-date-buttons div{
        width:98%;
    }
    h1.page-title{
        font-size:36px;
    }
}