:root {
    --bg: #0a0a0a;
    --surface: #111111;
    --card: #1a1a1a;
    --red: #e31e24;
    --red-h: #b91519;
    --white: #ffffff;
    --muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --font-en: "Inter", sans-serif;
    --font-ar: "Cairo", sans-serif;
    --topbar-h: 42px;
    --nav-h: 74px;
    --header-h: 116px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-en);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.75rem;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.6rem;
}
.section-label::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: var(--red);
}
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
/* Header */
#header-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: var(--topbar-h);
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    align-items: center;
}
.hdr-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}
.hdr-socials {
    display: flex;
    align-items: center;
    gap: 0.05rem;
}
.hdr-social-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: color 0.2s;
}
.hdr-social-btn:hover {
    color: #fff;
}
.hdr-top-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hdr-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.28rem 0.5rem;
    transition: color 0.2s;
}
.hdr-lang-btn:hover {
    color: #fff;
}
[data-lang-toggle] span {
    font-family: "Cairo", sans-serif;
    font-size: 0.78rem;
}
/* Navbar */
#navbar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 299;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.97);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.nav-inner {
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}
.nav-inner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-logo-wrap {
    display: inline-flex;
}
.nav-logo-wrap img {
    height: 44px;
    width: auto;
}
.nav-sep {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0 auto;
}
.nav-links > li {
    position: relative;
}
.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 0.85rem;
    border-radius: 3px;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--red);
}
.nav-links > li > span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 0.85rem;
    border-radius: 3px;
    white-space: nowrap;
    font-family: inherit;
}
.nav-links > li > span .ti-chevron-down {
    font-size: 11px;
    transition: transform 0.2s;
    margin-top: 1px;
}
.has-dropdown:hover > span .ti-chevron-down {
    transform: rotate(180deg);
}
.nav-links > li > a .ti-chevron-down {
    font-size: 11px;
    transition: transform 0.2s;
    margin-top: 1px;
}
.nav-links > li.has-dropdown:hover > a .ti-chevron-down {
    transform: rotate(180deg);
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--red);
    border-radius: 0 0 6px 6px;
    list-style: none;
    min-width: 210px;
    padding: 0.4rem 0;
    padding-top: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.18s,
        transform 0.18s;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    z-index: 400;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.dropdown li a {
    display: block;
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    transition:
        color 0.15s,
        background 0.15s;
}
.dropdown li a:hover {
    color: var(--red);
    background: rgba(227, 30, 36, 0.04);
}
.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-login {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: var(--red);
    border: none;
    border-radius: 4px;
    padding: 0.48rem 1.2rem;
    transition: background 0.2s;
}
.nav-login:hover {
    background: var(--red-h);
}
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-inline-start: auto;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
/* Mobile menu */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 499;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s,
        visibility 0.25s;
}
.mobile-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 85vw);
    background: #fff;
    z-index: 500;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mob-logo img {
    height: 36px;
    width: auto;
}
.mob-logo {
    display: none;
}
.mob-close-btn {
    width: 38px;
    height: 38px;
    border: 2px solid var(--red);
    background: rgba(227, 30, 36, 0.08);
    color: var(--red);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.mob-close-btn:hover {
    background: var(--red);
    color: #fff;
}
.mobile-menu-inner {
    padding: 0.5rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mobile-menu-inner > a {
    display: block;
    padding: 0.75rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mob-accordion {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mob-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #222;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.mob-acc-trigger .ti-chevron-down {
    font-size: 0.85rem;
    color: #888;
}
.mob-accordion.open .mob-acc-body {
    display: block;
}
.mob-acc-body {
    display: none;
    background: rgba(0, 0, 0, 0.025);
}
.mob-acc-body a {
    display: block;
    padding: 0.6rem 1.4rem 0.6rem 2.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}
.mob-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.07);
    margin: 0.5rem 0;
}
.mob-login-btn {
    display: block;
    margin: 1rem 1.4rem;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    text-align: center;
}
.mob-lang-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.mob-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
}
.mob-socials {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem 1.4rem;
}
.mob-social-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1rem;
}
.mob-lang-row {
    display: none;
}
.mob-socials {
    display: none;
}
/* Footer */
#footer {
    background: #000;
    padding: 5rem 0 0;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-logo-wrap {
    display: inline-flex;
    margin-bottom: 1rem;
}
.footer-logo {
    height: 40px;
    width: auto;
}
.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.footer-col h4 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--red);
    display: inline-block;
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-col ul li a {
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #fff;
}
.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-social-link:hover {
    color: #fff;
}
.footer-social-link i {
    font-size: 1rem;
}
.footer-bottom {
    padding: 1.75rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--muted);
}
.footer-partner-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-partner-logos img {
    height: 26px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.5);
    transition: filter 0.2s;
}
.footer-partner-logos img:hover {
    filter: brightness(0.9);
}
/* Page hero */
.page-hero {
    padding: calc(var(--header-h) + 3rem) 0 3rem;
    background:
        linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.68)),
        url("../assets/images/hero4.jpg") center/cover no-repeat;
}
.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: #fff;
}
.breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
}
/* Results page specific */
.results-section {
    padding: 4rem 0 5rem;
}
.results-header {
    margin-bottom: 2.5rem;
}
.results-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.results-header p {
    color: var(--muted);
    font-size: 0.9rem;
}
.rounds-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.round-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;
    position: relative;
    overflow: hidden;
}
.round-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.2s;
}
.round-card:hover::before {
    transform: scaleX(1);
}
.round-card:hover {
    border-color: rgba(227, 30, 36, 0.4);
    background: rgba(227, 30, 36, 0.04);
    transform: translateY(-3px);
}
.round-card.upcoming {
    opacity: 0.55;
    cursor: default;
}
.round-card.upcoming:hover {
    transform: none;
    border-color: var(--border);
    background: var(--card);
}
.round-card.upcoming::before {
    display: none;
}
.round-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.round-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.round-date {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}
.round-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}
.status-available {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-upcoming {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
/* Results detail panel */
.results-detail {
    display: none;
    margin-top: 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.results-detail.active {
    display: block;
}
.results-detail-header {
    background: var(--surface);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.results-detail-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
}
.results-close-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
}
.results-close-btn:hover {
    color: #fff;
}
.results-pdf-frame {
    width: 100%;
    height: 80vh;
    border: none;
    display: block;
    background: #fff;
}
.results-table {
    width: 100%;
    border-collapse: collapse;
}
.results-table thead tr {
    background: rgba(227, 30, 36, 0.1);
}
.results-table th {
    padding: 0.85rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.results-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.results-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
.results-table td {
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}
.results-table td:first-child {
    font-weight: 800;
    color: #fff;
    font-size: 1rem;
}
.pos-1 {
    color: #ffd700 !important;
}
.pos-2 {
    color: #c0c0c0 !important;
}
.pos-3 {
    color: #cd7f32 !important;
}
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    .nav-actions {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}
@media (max-width: 768px) {
    :root {
        --topbar-h: 38px;
        --nav-h: 62px;
        --header-h: 100px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .rounds-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .round-num {
        font-size: 2rem;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 1.1rem;
    }
    .rounds-grid {
        grid-template-columns: 1fr !important;
    }
}

.footer-sport-logo {
    height: 48px;
    width: auto;
    margin-top: 0.85rem;
}
.footer-partner-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-partner-logos img {
    height: 24px;
    width: auto;
    object-fit: contain;
}
