/* ===== General ===== */
.hapoel-homepage-wrapper {
    direction: rtl;
    color: #fff;
}

/* ===== Upcoming Match Section ===== */
.upcoming-match-section {
    background: #000;
    padding: 40px 20px;
    position: relative;
    background-image: url('/wp-content/uploads/2025/11/header_top.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.upcoming-match-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(0px, 2.083vw, 40px);
    flex-direction: row-reverse;
}

.en-page .upcoming-match-inner {
    flex-direction: unset;
}

/* ===== Left Info ===== */
.match-date-info {
    flex: 1 1 75px;
    text-align: right;
    line-height: 1.6;
}

.en-page .match-date-info {
    text-align: left;
}

.match-date {
    font-family: "Estate Fonts", Sans-serif;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 30px;
}

.match-time {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 30px;
    direction: ltr;
    unicode-bidi: embed;
}

.match-location {
    font-family: "Alef", sans-serif;
    margin-bottom: 0;
    justify-content: flex-end;
}

.match-time,
.match-location {
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    font-size: 17px;
    color: #fff;
}

.en-page .match-time,
.en-page .match-location {
    flex-direction: unset;
}

/* ===== Divider ===== */
.match-divider {
    width: 1px;
    height: 280px;
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

/* ===== Right Section ===== */
.match-center {
    flex: 2 1 500px;
    text-align: center;
}

.match-title {
    font-family: "Alef", sans-serif;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* ===== Teams and Countdown Layout ===== */
.teams-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team {
    text-align: center;
}

.team:first-child {
    order: 1; /* Team 1 - default desktop order */
    z-index: 1;
}

.en-page .team:first-child {
    order: 3; /* Team 1 - default desktop order */
}

.countdown {
    order: 2; /* Countdown - middle on desktop */
}

.team:last-child {
    order: 3; /* Team 2 - default desktop order */
}

.en-page .team:last-child {
    order: 1; /* Team 2 - default desktop order */
}

/* ===== Subscription Buttons ===== */
.subscription-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 35px 0 50px 0;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 2.083vw, 40px);
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.en-page .buttons-container {
    flex-direction: row-reverse;
}

.sub-btn {
    position: relative;
    color: #fff;
    font-family: "Alef", sans-serif;
    font-size: 30px;
    font-weight: 400;
    text-align: center;
    overflow: hidden;
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    height: 5.052vw;
}

.sub-btn:hover {
    color: #fff;
}

.sub-btn .pattern {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2025/10/Layer_1.svg');
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    background-size: contain;
}

.sub-btn.red-dark .pattern {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2025/10/Layer_1-2.svg');
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    background-size: contain;
}

.sub-btn.red .pattern {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2025/10/Layer_1-4.svg');
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    background-size: contain;
}

.sub-btn.black .pattern {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2025/10/Layer_1-3.svg');
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    background-size: contain;
}

.sub-btn .btn-text {
    z-index: 1;
    line-height: 28px;
}

.sub-btn.red-dark {
    background: #000000;
}

.sub-btn.red {
    background: #EA3333;
}

.sub-btn.black {
    background: #A02C25;
}

.team img {
    width: 125px;
    height: 125px;
    object-fit: contain;
    margin-bottom: 10px;
}

.team h5 {
    font-family: "Teko", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* ===== Previous Match Section ===== */
.previous-match-section {
    background: #1d0304;
    padding: 22px clamp(12px, 4vw, 32px);
    position: relative;
    overflow: hidden;
}

.previous-match-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(61, 15, 21, 0.95) 60%, rgba(94, 25, 32, 0.95) 100%);
    z-index: 0;
}

.previous-match-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 3vw, 40px);
    flex-wrap: wrap;
}

.previous-match-scoreboard {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    background: #5f1016;
    border-radius: 50px;
    padding: clamp(10px, 2vw, 18px) clamp(16px, 3vw, 28px);
    min-width: 260px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.previous-team {
    display: flex;
    align-items: center;
    justify-content: center;
}

.previous-team img {
    width: clamp(48px, 6vw, 72px);
    height: clamp(48px, 6vw, 72px);
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: clamp(6px, 1.2vw, 10px);
}

.previous-score-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a0102;
    border-radius: 12px;
    padding: clamp(10px, 1.8vw, 16px) clamp(16px, 3vw, 24px);
    min-width: clamp(90px, 10vw, 120px);
}

.previous-score {
    font-family: "Changa", sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 5vw, 42px);
    letter-spacing: 0.05em;
}

.previous-match-meta {
    flex: 1 1 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.previous-match-meta-line {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(8px, 1.6vw, 18px);
    font-size: clamp(14px, 2vw, 18px);
    font-family: "Alef", sans-serif;
}

.previous-match-meta-line .meta-separator {
    opacity: 0.5;
}

.previous-match-address {
    font-size: clamp(13px, 1.8vw, 16px);
    line-height: 1.6;
}

.previous-match-title {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    font-family: "Alef", sans-serif;
    white-space: nowrap;
}

.previous-match-title-main {
    background: #0c0c0c;
    color: #ffffff;
    padding: clamp(8px, 1.8vw, 14px) clamp(12px, 2.6vw, 20px);
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 20px);
}

.previous-match-title-tag {
    background: #a22a27;
    color: #ffffff;
    padding: clamp(8px, 1.8vw, 14px) clamp(12px, 2.6vw, 20px);
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 20px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 960px) {
    .previous-match-inner {
        justify-content: center;
        text-align: center;
    }

    .previous-match-title {
        order: -1;
    }
}

@media (max-width: 640px) {
    .previous-match-scoreboard {
        width: 100%;
        justify-content: space-between;
    }

    .previous-score-box {
        flex: 1;
        margin: 0 clamp(8px, 2vw, 14px);
    }
}

/* ===== Countdown ===== */
.countdown {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-in;
    flex-direction: row-reverse;
}

.count-box {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 60px;
    font-weight: bold;
    font-size: 22px;
    text-align: center;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.15);
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Button ===== */
.ticket-btn {
    background: #E8362B;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.3s ease;
}

.ticket-btn:hover {
    background: #c62b22;
    color: #fff;
}

/* ===== Flip Countdown Style ===== */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.flip-box {
    text-align: center;
    position: relative;
}

.flip-inner {
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 26px;
    border-radius: 12px;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #474747 -15.18%, #333333 92.41%);
    position: relative;
    overflow: hidden;
}

.flip-inner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

.flip-label {
    color: #EA3333;
    font-size: 12px;
    margin-top: 10px;
}

/* Flip animation effect */
.flip-inner.change {
    animation: flip 0.6s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotateX(0);
    }

    50% {
        transform: rotateX(-90deg);
        opacity: 0.8;
    }

    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

/* ===== Games Section ===== */
.games-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Filter Section ===== */
.games-filter {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.125vw;
    /* Let children overflow (for native select dropdown lists) */
    overflow: visible;
    white-space: normal;
    flex-wrap: wrap;
}

.en-page .games-filter {
    flex-direction: row-reverse;
}

.filter-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-label {
    font-family: "Alef", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.filter-apply-btn {
    background: none;
    color: #000;
    border: none;
    font-family: "Alef", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.filter-apply-btn:hover {
    background: none;
    color: #EA3333;
}

.filter-apply-btn:disabled {
    color: #CCCCCC;
    cursor: not-allowed;
    transform: none;
}

.filter-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-dropdown { position: relative; z-index: 2; }

.filter-dropdown select {
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 2px;
    height: 32px;
    font-family: "Alef", sans-serif;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    min-width: 120px;
    outline: none;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative; /* ensure it can stack above neighbors */
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 17 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6847 5.53956C14.9613 5.81618 14.9613 6.26467 14.6847 6.5413L9.97816 11.2478C9.14849 12.0774 7.8035 12.0777 6.97353 11.2483L2.31596 6.59438C2.03933 6.31776 2.03933 5.86926 2.31596 5.59265C2.59258 5.31603 3.04107 5.31603 3.31769 5.59265L7.97286 10.2478C8.24954 10.5245 8.69799 10.5245 8.97459 10.2478L13.6829 5.53956C13.9596 5.26294 14.408 5.26294 14.6847 5.53956Z' fill='%23BBB9B9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 5px center;
    background-size: 17px;
}

.en-page .filter-dropdown select {
    background-position: right 5px center;
    direction: ltr;
}

.filter-dropdown select:hover {
    border-color: #999;
}

.filter-dropdown select:focus {
    border-color: #666;
}

.filter-center {
    display: flex;
    gap: 10px;
}

.en-page .filter-center {
    flex-direction: row-reverse;
}

.filter-btn {
    background: #F3F4F7;
    border: none;
    color: #000;
    border-radius: 2px;
    font-family: "Alef", sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    width: 90px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-btn:hover {
    background: #BBB9B9;
}

.filter-btn.active {
    background: #BBB9B9;
    color: #000;
    font-weight: 700;
}

/* ===== Games Table ===== */
.games-table-wrapper {
    overflow: auto;
}

.games-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

.en-page .games-table {
    direction: ltr;
}

.games-table thead {
    background: #000000;
    color: #FFFFFF;
}

.games-table thead th {
    padding: 15px;
    text-align: center;
    font-family: "Alef", sans-serif;
    font-size: 18px;
    font-weight: 700;
    border: none;
    white-space: nowrap;
}

.games-table tbody tr {
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.15s ease;
}

.games-table tbody tr:hover {
    background: #FAFAFA;
}

.games-table tbody tr:last-child {
    border-bottom: none;
}

.games-table tbody td {
    padding: 25px 15px;
    text-align: center;
    vertical-align: middle;
    font-family: "Alef", sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    border: none;
    white-space: nowrap;
}

/* Teams Column */
.teams-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.teams-info span {
    font-family: "Teko", sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
    width: 150px;
    white-space: pre-wrap;
}

.en-page .team-item {
    text-align: left;
}

.team-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.team-item span {
    font-weight: 600;
    font-size: 13px;
    color: #000;
    line-height: 1.3;
}

.vs-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    position: relative;
    width: 28px;
    height: 28px;
}

.vs-v {
    font-family: "Teko", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: 2;
}

.vs-slash {
    font-size: 60px;
    font-weight: 300;
    line-height: 1;
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: 1;
}

.vs-slash svg {
    height: 20px;
}

.vs-s {
    font-family: "Teko", sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    position: absolute;
    bottom: 2px;
    right: 2px;
    z-index: 2;
}

/* Location Column */
.location-info {
    font-size: 14px;
    line-height: 1.3;
    color: #000;
    text-align: center;
}

/* Stadium Column */
.stadium-info {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-weight: 400;
    font-size: 14px;
    color: #000;
}

.stadium-info img {
    width: 35px;
}

.classification-info {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-weight: 400;
    font-size: 14px;
    color: #000;
}

.classification-info img {
    width: 35px;
}

.stadium-info svg {
    flex-shrink: 0;
}

/* Date/Time Column */
.date-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    color: #000;
    font-size: 14px;
    font-weight: 400;
}

.date-time strong {
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.date-time span {
    font-family: "Alef", sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* League Badge */
.league-badge {
    background: transparent;
    color: #000;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    display: inline-block;
    line-height: 1.4;
}

/* Ticket Link in Table */
.ticket-link {
    color: #E8362B;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Alef", sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.ticket-link:hover {
    color: #C02020;
}

.ticket-link svg {
    flex-shrink: 0;
}

.games-table .table-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.games-table .table-btn .ticket-btn {
    margin-top: 0;
}

.top-img {
    position: absolute;
    left: 0;
    top: -85px;
    overflow: hidden;
    z-index: 0;
}

.bottom-img {
    position: absolute;
    left: 0;
    bottom: 0;
}

.right-img {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

/* ===== Responsive ===== */


@media (max-width: 992px) {
    .upcoming-match-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .en-page .upcoming-match-inner {
        flex-direction: column-reverse;
    }

    .en-page .match-date-info {
        text-align: center;
    }

    .en-page .team:first-child {
        order: 2;
    }

    .en-page .team:last-child {
        order: 3;
    }

    .match-divider {
        display: none;
    }

    .match-date-info {
        text-align: center;
    }

    .match-center {
        flex: unset;
        z-index: 999;
    }

    .match-time,
    .match-location {
        justify-content: center;
    }

    .match-time,
    .match-date {
        margin-bottom: 10px;
    }

    .upcoming-match-section {
        padding: 20px 20px;
    }

    .countdown {
        margin: 0px 0 15px 0;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .top-img {
        top: 0;
        width: 160px;
    }
    .sub-btn {
        font-size: 20px;
        padding: 20px 30px;
        height: 50px;
    }

    .flip-label {
        font-size: 10px;
    }

    .filter-left,
    .filter-center,
    .filter-right {
        width: 100%;
        justify-content: center;
    }

    /* Stack sections: dropdowns at top, buttons in middle, apply button last */
    .games-filter {
        flex-direction: column;
        align-items: center;
        row-gap: 12px; /* consistent spacing between rows */
    }
    .filter-right { order: 1; }
    .filter-center { order: 2; }
    .filter-left { order: 3; }

    .filter-center {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .subscription-buttons {
        padding: 20px 0 20px 0;
        margin: 0 10px;
    }

    .games-filter {
        justify-content: unset;
        gap: 10px;
        padding: 0 10px;
        margin-top: 20px;
        overflow: visible;
        white-space: normal;
        flex-wrap: wrap;
    }

    /* Allow the middle buttons to wrap nicely if space is tight */
    .filter-center {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    /* Keep dropdowns from forcing overflow on very small widths */
    .filter-dropdown select {
        min-width: 140px;
        width: 100%;
        max-width: 220px;
        margin: 0 0 10px 0; /* avoid added vertical jitter */
    }

    .team img {
        margin-bottom: 0;
    }

    .game-card-mobile .vs-wrapper .vs-v,
    .game-card-mobile .vs-wrapper .vs-s {
        font-size: 15px;
    }

    .game-card-mobile .vs-wrapper .vs-slash {
        transform: translate(-50%, -80%) rotate(0deg);
    }

    .game-card-mobile .vs-wrapper .vs-slash svg {
        height: 18px;
    }
}

@media (max-width: 600px) {
    .teams-box {
        gap: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Mobile order: countdown first, then teams */
    .countdown {
        order: 1; /* Show countdown at top */
        width: 100%;
    }

    .team:first-child {
        order: 2; /* Team 1 second */
    }

    .team:last-child {
        order: 3; /* Team 2 third */
    }

    .team img {
        width: 60px;
        height: 60px;
    }

    .count-box {
        font-size: 18px;
        padding: 10px 12px;
    }

    .ticket-btn {
        padding: 10px 25px;
        font-size: 14px;
        margin: 0;
    }
}

/* ===== Mobile Card Layout ===== */
.games-cards-mobile {
    display: none;
}

.game-card-mobile {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: clamp(10px, 1.042vw, 20px);
    /* fuller shadow around the card */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    direction: rtl;
    border: 1px solid #F0F0F0;
}

/* Team Row: Logo + Name */
.card-team-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-team-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
}

.card-team-name {
    font-family: "Teko", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    flex: 1;
}

/* Date and Time Section: Center Aligned */
.card-date-time-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: start;
    text-align: center;
    margin-bottom: 16px;
}

.card-date-numeric {
    font-family: "Alef", sans-serif;
    font-size: 16px;
    color: #000;
    font-weight: 700;
    line-height: 1.2;
}

.card-time-numeric {
    font-family: "Alef", sans-serif;
    font-size: 16px;
    color: #000;
    font-weight: 700;
    line-height: 1.2;
}

/* Address Section: Full Width Layout */
.card-address-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

/* Left: Address Text */
.card-address-text {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    text-align: right;
    direction: rtl;
}

/* Right: Home Icon + Location Text */
.card-location-icon-text {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 700;
    font-size: 14px;
    color: #000;
    flex-shrink: 0;
    direction: rtl;
    white-space: nowrap;
}

.card-location-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Classification and Button Section */
.card-classification-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.card-classification {
    background: transparent;
    color: #000;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    line-height: 1.4;
    font-family: "Alef", sans-serif;
}

.card-btn-ticket {
    background: #E8362B;
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.3s ease;
    font-family: "Alef", sans-serif;
    white-space: nowrap;
}

.card-btn-ticket:hover {
    background: #c62b22;
    color: #fff;
}

.games-cards-mobile .no-games {
    text-align: center;
    padding: 40px 20px;
    font-family: "Alef", sans-serif;
    font-size: 16px;
    color: #666;
}

/* ===== Pagination ===== */
.games-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.games-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.games-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    background: #FFFFFF;
    color: #000000;
    font-family: "Alef", sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.games-pagination .page-link:hover {
    background: #F3F4F7;
    border-color: #999999;
}

.games-pagination .page-link.active {
    background: #EA3333;
    color: #FFFFFF;
    border-color: #EA3333;
    font-weight: 700;
}

.games-pagination .page-link.prev,
.games-pagination .page-link.next {
    font-size: 18px;
    font-weight: 700;
}

.games-pagination .page-link.prev:hover,
.games-pagination .page-link.next:hover {
    background: #EA3333;
    color: #FFFFFF;
    border-color: #EA3333;
}

/* Hide table on mobile, show cards */
@media (max-width: 768px) {
    .games-table-wrapper {
        display: none;
    }
    
    .games-cards-mobile {
        display: block;
        margin: 0 15px;
        padding-top: 12px; /* make room for the first card's top shadow */
        padding-bottom: 4px;
    }
    
    .game-row-desktop {
        display: none;
    }

    .games-pagination .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }

    .games-pagination {
        gap: 6px;
    }
}

/* Hide cards on desktop, show table */
@media (min-width: 769px) {
    .games-cards-mobile {
        display: none;
    }
    
    .games-table-wrapper {
        display: block;
    }
}