.row-swiper-news,
.row-swiper-matches,
.row-swiper-standings {
    width: 100%;
    padding: 1rem;
}

.single-row-swiper-news {
    width: 100%;
    padding: 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

.swiper-bar,
.swiper-matches-bar,
.swiper-standings-bar {
    width: 100%;
    background: #FFF;
}

.swiper {
    width: 100%;
    height: 27rem;
    padding: 1rem 0 0 0;
}

.row-swiper-standings .swiper {
    height: 11rem;
}

.row-swiper-matches .swiper {
    height: 14rem !important;
}

.row-swiper-matches .swiper .swiper-wrapper .swiper-slide {
    width: 13rem !important;
    border-bottom: 2px solid #ccc;
}

.row-swiper-standings .swiper .swiper-wrapper .swiper-slide {
    width: 10rem !important;
    border-bottom: 2px solid #ccc;
}

.row-swiper-news .swiper .swiper-wrapper .swiper-slide {
    width: 256px !important;
    border-bottom: 2px solid #ccc;
}

.swiper-news-header,
.swiper-matches-header,
.swiper-standings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid #ccc;
}

.swiper-news,
.swiper-matches,
.swiper-standings {
    font-family: "Saira Condensed", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    width: 100%;
    max-width: 100%;
}

.swiper-news-header .swiper-button-prev,
.swiper-news-header .swiper-button-next,
.swiper-matches-header .swiper-button-prev,
.swiper-matches-header .swiper-button-next,
.swiper-standings-header .swiper-button-prev,
.swiper-standings-header .swiper-button-next {
    position: static;
    top: auto;
    width: 2rem;
    height: 2rem;
    margin-top: 0;
    z-index: auto;
    border: none;
    color: #ffffff;
    font-size: 0;
    cursor: pointer;
    padding: 5px;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specyficzne style dla strzałek nawigacyjnych */
.swiper-news-header .swiper-button-prev,
.swiper-news-header .swiper-button-next,
.swiper-matches-header .swiper-button-prev,
.swiper-matches-header .swiper-button-next,
.swiper-standings-header .swiper-button-prev,
.swiper-standings-header .swiper-button-next {
    background: rgba(228, 0, 1, 1); /* Czerwone tło */
    height: 2rem; /* Stała wysokość dla strzałek */
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: 1;
    cursor: auto;
    background: rgba(228, 0, 1, 0.5);
    pointer-events: none;
}

.swiper-news-header .swiper-button-prev:hover,
.swiper-news-header .swiper-button-next:hover,
.swiper-matches-header .swiper-button-prev:hover,
.swiper-matches-header .swiper-button-next:hover,
.swiper-standings-header .swiper-button-prev:hover,
.swiper-standings-header .swiper-button-next:hover {
    background: rgba(228, 0, 1, 0.75);
    color: #ffffff;
}

.swiper-news-header .swiper-button-prev,
.swiper-matches-header .swiper-button-prev,
.swiper-standings-header .swiper-button-prev {
    margin-right: 0.25rem;
}

.swiper-news-header .swiper-button-prev::after,
.swiper-news-header .swiper-button-next::after,
.swiper-matches-header .swiper-button-prev::after,
.swiper-matches-header .swiper-button-next::after,
.swiper-standings-header .swiper-button-prev::after,
.swiper-standings-header .swiper-button-next::after {
    content: '';
    font-family: none;
    font-size: 0;
}

.swiper-news-header .swiper-button-prev i,
.swiper-news-header .swiper-button-next i,
.swiper-matches-header .swiper-button-prev i,
.swiper-matches-header .swiper-button-next i,
.swiper-standings-header .swiper-button-prev i,
.swiper-standings-header .swiper-button-next i {
    font-size: 1rem;
}

.swiper-slide {
    height: 100% !important;
    min-height: 100%;
    position: relative;
    background-color: #FFF;
    box-sizing: border-box;
}

.swiper-slide a {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Style dla sekcji Wiadomości */
.row-swiper-news .swiper-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #DDD;
    transition: height 0.6s ease;
    z-index: 0;
}

.row-swiper-news .swiper-slide:hover::before {
    height: 100%;
}

.row-swiper-news .swiper-slide .news-slide-content-top {
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 1;
}

.row-swiper-news .swiper-slide .news-slide-background {
    width: 100%;
    height: 100%;
    order: 1;
    z-index: 0;
}

.row-swiper-news .swiper-slide .news-slide-background-image {
    width: 100%;
    height: 144px;
    background-size: 100%;
    background-position: center;
    transition: background-size 0.3s ease;
    z-index: 0;
}

.row-swiper-news .swiper-slide:hover .news-slide-background-image {
    background-size: 105%;
}

.row-swiper-news .swiper-slide .news-slide-category {
    margin: 1rem 1rem 0 1rem;
    border-bottom: 1px solid #999;
    width: calc(100% - 2rem);
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    order: 2;
    text-align: left;
    z-index: 2;
}

.row-swiper-news .swiper-slide p {
    margin: 1rem;
    text-align: left;
    font-size: 1rem;
    color: #333;
    order: 2;
    z-index: 2;
}

.row-swiper-news .swiper-slide .news-swiper-button {
    margin-top: auto !important;
    margin-bottom: 1.25rem !important;
    align-self: center !important;
    width: max-content;
    height: 2rem;
    background-color: #e40001;
    color: #fff;
    padding: 0 1.25rem;
    line-height: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    order: 4 !important;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.row-swiper-news .swiper-slide .news-slide-stripe-animation {
    width: 100%;
    height: 5px;
    order: 5;
    position: relative;
    z-index: 2;
}

.row-swiper-news .swiper-slide .news-slide-stripe-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(228, 0, 1, 1);
    transition: width 1s ease;
}

.row-swiper-news .swiper-slide:hover .news-slide-stripe-animation::before {
    width: 100%;
}

.row-swiper-news .swiper-slide:hover .news-swiper-button {
    background-color: #000;
}

/* Style dla sekcji Tabela */
.row-swiper-standings .swiper-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #DDD;
    transition: height 0.6s ease;
    z-index: 0;
}

.row-swiper-standings .swiper-slide:hover::before {
    height: 100%;
}

.row-swiper-standings .swiper-slide .standings-place-logo {
    width: 10rem;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    order: 1;
    z-index: 1;
}

.row-swiper-standings .swiper-slide .standings-place {
    width: 5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    text-align: center;
    line-height: 1;
    z-index: 2;
}

.row-swiper-standings .swiper-slide .standings-place-line-one {
    font-size: 2rem;
    font-weight: bold;
    z-index: 2;
}

.row-swiper-standings .swiper-slide .standings-place-line-two {
    font-size: 0.5rem;
    font-weight: normal;
    text-transform: uppercase;
    z-index: 2;
}

.row-swiper-standings .swiper-slide .standings-logo {
    width: 5rem;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.row-swiper-standings .swiper-slide .standings-logo img {
    width: 50px;
    height: 50px;
}

.row-swiper-standings .swiper-slide .standings-team {
    width: 10rem;
    height: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    order: 2;
    z-index: 1;
}

.row-swiper-standings .swiper-slide .standings-team-line-one {
    font-size: 1 профессор rem;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    z-index: 2;
}

.row-swiper-standings .swiper-slide .standings-team-line-two {
    font-size: 0.75rem;
    line-height: 1;
    text-transform: uppercase;
    z-index: 2;
}

.row-swiper-standings .standings-team-resovia .standings-team {
    color: #e40001;
}

.row-swiper-standings .standings-team-resovia .standings-team-line-one,
.row-swiper-standings .standings-team-resovia .standings-team-line-two {
    font-size: 1.75rem;
}

.row-swiper-standings .swiper-slide .standings-matches-points {
    width: 10rem;
    height: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    order: 3;
    z-index: 1;
}

.row-swiper-standings .swiper-slide .standings-matches-count,
.row-swiper-standings .swiper-slide .standings-points {
    width: 5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #333;
    text-align: center;
    line-height: 1;
    z-index: 2;
}

.row-swiper-standings .swiper-slide .standings-matches-line-one,
.row-swiper-standings .swiper-slide .standings-points-line-one {
    font-size: 1.25rem;
    font-weight: bold;
    z-index: 2;
}

.row-swiper-standings .swiper-slide .standings-matches-line-two,
.row-swiper-standings .swiper-slide .standings-points-line-two {
    font-size: 0.5rem;
    font-weight: normal;
    text-transform: uppercase;
    z-index: 2;
}

.row-swiper-standings .swiper-slide .standings-slide-stripe-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    order: 4;
    z-index: 1;
}

.row-swiper-standings .swiper-slide .standings-slide-stripe-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: width 1s ease;
}

.row-swiper-standings .swiper-slide .standings-slide-stripe-animation.pozycja-awans::before,
.row-swiper-standings .swiper-slide .standings-slide-stripe-animation.pozycja-awans-baraze::before,
.row-swiper-standings .swiper-slide .standings-slide-stripe-animation.pozycja-baraze-spadek::before,
.row-swiper-standings .swiper-slide .standings-slide-stripe-animation.pozycja-spadek::before {
    width: 100%;
}

.row-swiper-standings .swiper-slide:hover .standings-slide-stripe-animation.pozycja-awans,
.row-swiper-standings .swiper-slide:hover .standings-slide-stripe-animation.pozycja-awans-baraze,
.row-swiper-standings .swiper-slide:hover .standings-slide-stripe-animation.pozycja-baraze-spadek,
.row-swiper-standings .swiper-slide:hover .standings-slide-stripe-animation.pozycja-spadek {
    height: 15px;
    transition: height 0.3s ease;
}

.row-swiper-standings .swiper-slide:not(:hover) .standings-slide-stripe-animation:not(.pozycja-awans):not(.pozycja-awans-baraze):not(.pozycja-baraze-spadek):not(.pozycja-spadek)::before {
    width: 0;
}

.row-swiper-standings .swiper-slide:hover .standings-slide-stripe-animation:not(.pozycja-awans):not(.pozycja-awans-baraze):not(.pozycja-baraze-spadek):not(.pozycja-spadek)::before {
    width: 100%;
    background-color: rgba(228, 0, 1, 1);
}

@media (max-width: 1000px) {
    .swiper-button-prev,
    .swiper-button-next {
        padding: 12px;
    }
    .swiper-button-prev i,
    .swiper-button-next i {
        font-size: 30px;
    }
    .swiper-news,
    .swiper-matches,
    .swiper-standings {
        font-size: 20px;
    }
}

/* Nowe style dla sekcji Mecze */
.row-swiper-matches .swiper {
    height: 16.5rem !important;
}

.row-swiper-matches .swiper-slide {
    width: 13rem !important;
    height: 15.5rem !important;
}

.row-swiper-matches .swiper-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #DDD;
    transition: height 0.6s ease;
    z-index: 0;
}

.row-swiper-matches .swiper-slide:hover::before {
    height: 100%;
}

.match-slide-bg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.match-slide-content {
    width: 12rem;
    margin: 0.5rem;
    position: relative;
    z-index: 2;
    height: calc(100% - 5px - 1rem);
}

.match-league-round {
    margin-bottom: 1rem;
    width: 12rem;
    height: 2rem;
    display: flex;
    justify-content: space-between;
}

.league-round-text {
    width: 8rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.match-league-name,
.match-round {
    display: block;
    height: 1rem;
    line-height: 1rem;
    text-align: left;
    text-transform: uppercase;
}

.match-league-name {
    font-size: 14px;
    color: #333;
}

.match-round {
    font-size: 12px;
    color: #666;
}

.match-league-logo {
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.match-league-logo img {
    max-height: 100%;
    max-width: 100%;
}

.match-teams {
    width: 12rem;
    height: 4.5rem;
    margin-bottom: 1rem;
}

.match-team-row {
    width: 12rem;
    height: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-team-row:first-child {
    margin-bottom: 0.5rem;
}

.match-team-logo {
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.match-team-logo img {
    max-height: 100%;
    max-width: 100%;
}

.match-team-name {
    width: 8.25rem;
    height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.match-team-name span:first-child {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
}

.match-team-name span:last-child {
    font-size: 0.6rem;
    line-height: 1;
    text-transform: uppercase;
}

.match-team-score {
    width: 1.75rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    background: #333;
    color: #FFF;
}

.match-team-score.no-score {
    background: #333;
}

.match-date-time {
    width: 12rem;
    height: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.match-center-text {
    width: 12rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: #333;
}

.match-stripe-animation {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 1;
}

.match-stripe-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(228, 0, 1, 1);
    transition: width 1s ease;
}

.match-slide:hover .match-stripe-animation::before {
    width: 100%;
}

.team-resovia {
    color: #e40001;
}

.buttons-match-center {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0.5rem;
    row-gap: 0.5rem;
    width: 100%;
}

.button-match-center {
    font-family: "Saira Condensed", sans-serif;
    color: #FFF;
    font-size: 0.75rem;
    background: #e40001;
    padding: 0 0.5rem;
    width: 100%;
    white-space: nowrap;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    height: 1.5rem;
    line-height: 1.5rem;
    border: none;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer; 
}

.button-match-center-unactive {
    background: #DDD;
    cursor: default; 
}

.button-match-center:hover {
    background: #b30001;
}

.button-match-center-unactive:hover {
    background: #DDD;
}