:root {
    --primary-background: #FDF8F0;
    --primary-text: #2C1E1A;
    --accent-rust: #B85C38;
    --accent-gold: #D4AF37;
    --deep-brown: #4A2E2A;
    --footer-bottom-bar-height: 52px;
}

body {
    background-color: var(--primary-background);
    color: var(--primary-text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

.font-heading {
    font-family: 'Cinzel', 'Times New Roman', serif;
    letter-spacing: 0.06em;
}

.text-primary-dark {
    color: var(--primary-text) !important;
}

.text-accent {
    color: var(--accent-rust) !important;
}

.bg-soft {
    background-color: rgba(255, 255, 255, 0.7);
}

.letter-spacing-wide {
    letter-spacing: 0.35em;
    font-size: 0.85rem;
}

.decorative-divider .divider-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--accent-gold);
    border-radius: 50%;
    display: inline-block;
}

.decorative-divider .divider-line {
    width: 3.5rem;
    height: 0.2rem;
    background-color: var(--accent-gold);
    border-radius: 999px;
    display: inline-block;
}

.shadow-soft {
    box-shadow: 0 25px 70px rgba(44, 30, 26, 0.12);
}

.text-gold {
    color: var(--accent-gold) !important;
}

.bg-deep-brown {
    background: linear-gradient(135deg, var(--deep-brown), #2C1E1A);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent-rust);
}

.navbar-union {
    background-color: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(18px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    width: 100%;
    overflow: visible;
    z-index: 1030;
}

.navbar-union.shadow-on {
    background-color: rgba(253, 248, 240, 0.98);
    box-shadow: 0 12px 30px rgba(44, 30, 26, 0.12);
}

.navbar-union .navbar-brand img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

@media (min-width: 992px) {
    .navbar-union .navbar-brand {
        margin-left: 0;
    }

    .navbar-union .navbar-nav {
        margin-right: 0;
    }
}

.navbar-union .nav-item {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.navbar-union .nav-link {
    position: relative;
    font-weight: 500;
    color: var(--primary-text);
    padding: 0.5rem 1.25rem;
    transition: color 0.3s ease;
}

.navbar-union .nav-link::before,
.navbar-union .nav-link::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    background: var(--accent-rust);
    bottom: 0;
    transition: width 0.3s ease, left 0.3s ease, right 0.3s ease;
}

.navbar-union .nav-link::before {
    left: 50%;
}

.navbar-union .nav-link::after {
    right: 50%;
}

.navbar-union .nav-link:hover::before,
.navbar-union .nav-link:focus::before,
.navbar-union .nav-link:hover::after,
.navbar-union .nav-link:focus::after {
    width: 50%;
}

.navbar-union .nav-link:hover::before,
.navbar-union .nav-link:focus::before {
    left: 0;
}

.navbar-union .nav-link:hover::after,
.navbar-union .nav-link:focus::after {
    right: 0;
}

.navbar-union .nav-link:hover,
.navbar-union .nav-link:focus {
    color: var(--accent-rust);
}

.navbar-union .nav-link.active {
    color: var(--accent-rust);
    font-weight: 600;
}

.navbar-union .nav-link.active::before,
.navbar-union .nav-link.active::after {
    width: 50%;
}

.navbar-union .nav-link.active::before {
    left: 0;
}

.navbar-union .nav-link.active::after {
    right: 0;
}

@media (max-width: 991.98px) {
    .navbar-union .navbar-brand {
        margin-left: 0;
    }

    .navbar-union .navbar-brand img {
        width: 60px;
        height: 60px;
    }

    .navbar-union .navbar-nav {
        margin-right: 0;
    }

    .navbar-union .navbar-collapse {
        background-color: rgba(253, 248, 240, 0.97);
        border-radius: 1rem;
        box-shadow: 0 18px 40px rgba(44, 30, 26, 0.15);
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .navbar-union .nav-link {
        padding: 0.75rem 1.5rem;
    }

    .navbar-union .nav-link::before,
    .navbar-union .nav-link::after {
        display: none;
    }
}

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

html {
    overflow-x: hidden;
    height: 100%;
}

body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.navbar-container {
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-container .container-fluid {
    width: 100%;
    max-width: 100%;
}

.navbar-union .navbar-brand {
    flex-shrink: 0;
}

.navbar-union .navbar-nav {
    flex-wrap: nowrap;
}

/* Navbar brand title - responsive */
.navbar-brand-title {
    font-size: 0.75rem;
    line-height: 1.35;
    max-width: 160px;
    word-wrap: break-word;
    white-space: normal;
}

@media (min-width: 400px) {
    .navbar-brand-title {
        font-size: 0.8rem;
        max-width: 180px;
    }
}

@media (min-width: 576px) {
    .navbar-brand-title {
        font-size: 1rem;
        line-height: 1.3;
        max-width: 240px;
    }
}

@media (min-width: 768px) {
    .navbar-brand-title {
        font-size: 1.15rem;
        max-width: 280px;
    }
}

@media (min-width: 992px) {
    .navbar-brand-title {
        font-size: 1.25rem;
        max-width: none;
    }
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-content-box {
    transition: background-color 0.5s ease;
}

.hero-content-box.has-background {
    padding: 2.5rem 4rem 3rem;
    border-radius: 1.5rem;
}

.hero-content-box.has-background .hero-title {
    margin-bottom: 0.5rem;
}

.hero-content-box.has-background .hero-subtitle {
    font-size: clamp(0.95rem, 1.65vw, 1.25rem);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-content-box.has-background .btn {
    margin-top: 0.5rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.45), transparent 55%);
    z-index: 1;
    pointer-events: none;
}

.hero-carousel-btn {
    display: none; /* Hidden for now */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999 !important;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: auto !important;
    position: absolute !important;
}

.hero-carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-carousel-prev {
    left: 2rem;
}

.hero-carousel-next {
    right: 2rem;
}

.hero-carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.hero-carousel-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    pointer-events: auto !important;
    z-index: 9999 !important;
}

.hero-carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-carousel-indicator.active {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .hero-carousel-prev {
        left: 1rem;
    }

    .hero-carousel-next {
        right: 1rem;
    }

    .hero-carousel-btn {
        width: 48px;
        height: 48px;
    }

    .hero-carousel-indicators {
        bottom: 1.5rem;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem;
    margin-top: -5rem;
    pointer-events: none;
}

.hero-content-box {
    pointer-events: none;
}

.hero-content a,
.hero-content button {
    pointer-events: auto !important;
}

.hero-title {
    text-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    font-size: clamp(2.75rem, 6vw, 4.8rem);
}

.hero-subtitle {
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    font-size: clamp(1rem, 1.85vw, 1.35rem);
    font-weight: 500;
    line-height: 1.45;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    max-width: 640px;
    margin: 1.5rem auto 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.page-hero {
    position: relative;
    padding: 6rem 0 5rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(44, 30, 26, 0.82), rgba(74, 46, 42, 0.88));
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.page-kicker {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    color: rgba(253, 248, 240, 0.85);
    margin-bottom: 1rem;
}

.page-hero-copy {
    max-width: 640px;
}

.about-hero {
    background-image: url('https://picsum.photos/seed/about-hero/1920/1080');
    background-size: cover;
    background-position: center;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--primary-text);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.85rem 2.75rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 18px 40px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
    background-color: #e5c55f;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 22px 50px rgba(212, 175, 55, 0.45);
    color: var(--primary-text);
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 1s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.5s;
}

.animate-delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-rope {
    position: relative;
    width: 100%;
    height: 6rem;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem; /* space below hero */
}

.hero-rope-inner {
    position: relative;
    width: 100%;
    height: 100%;
    animation: tugOfWar 8s ease-in-out infinite;
}

.hero-rope .rope-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120vw;
    height: 24px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.18), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.18)),
        repeating-linear-gradient(-55deg, #b88b6b, #b88b6b 8px, #9c6f4c 8px, #9c6f4c 16px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}

.hero-rope .rope-knot {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 28px;
    border-radius: 4px;
    background-image: repeating-linear-gradient(-55deg, #b88b6b, #b88b6b 5px, #9c6f4c 5px, #9c6f4c 10px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
}

.hero-rope .rope-knot-left {
    left: calc(50% - 12px);
    transform: translate(-50%, -50%) rotate(-10deg);
}

.hero-rope .rope-knot-center {
    left: 50%;
    transform: translate(-50%, -50%) rotate(5deg);
    z-index: 1;
}

.hero-rope .rope-knot-right {
    left: calc(50% + 12px);
    transform: translate(-50%, -50%) rotate(15deg);
}

@keyframes tugOfWar {
    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-20px);
    }

    25% {
        transform: translateX(15px);
    }

    40% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(5px) scale(1.01);
    }

    60% {
        transform: translateX(-18px);
    }

    75% {
        transform: translateX(12px);
    }

    90% {
        transform: translateX(-5px);
    }
}

@media (max-width: 767.98px) {
    .hero-rope {
        height: 4rem;
        margin-top: 1rem;
    }

    .hero-rope .rope-knot {
        height: 28px;
    }
}

.section-padding {
    padding: 4rem 0;
}

#glance.section-padding {
    padding-top: 2rem;
}

@media (min-width: 992px) {
    .section-padding {
        padding: 6rem 0;
    }
    
    #glance.section-padding {
        padding-top: 3rem;
    }
}

.section-muted {
    background-color: rgba(255, 255, 255, 0.45);
}

.glance-card {
    background-color: rgba(253, 248, 240, 0.85);
    border-radius: 1.75rem;
    padding: 2.75rem 2.5rem;
}

.glance-card-modern {
    background: linear-gradient(135deg, rgba(253, 248, 240, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: 2rem;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.glance-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-rust), var(--accent-gold), var(--accent-rust));
    opacity: 0.6;
}

.glance-images-row {
    margin-bottom: 2rem;
}

.glance-image-title {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

/* Glance: mobile carousel (one image + title at a time) */
#glance .glance-m-carousel {
    position: relative;
    margin-bottom: 2rem;
    padding-inline: 2.85rem;
}

#glance .glance-m-carousel-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: 1rem;
    direction: ltr;
}

#glance .glance-m-carousel-track {
    display: flex;
    width: 300%;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#glance .glance-m-carousel-slide {
    flex: 0 0 calc(100% / 3);
    width: calc(100% / 3);
    max-width: calc(100% / 3);
    box-sizing: border-box;
    padding-inline: 0.35rem;
}

#glance .glance-m-carousel-slide .glance-png-image {
    max-height: 260px;
}

#glance .glance-m-carousel-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(44, 30, 26, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--accent-rust);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(44, 30, 26, 0.12);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#glance .glance-m-carousel-btn:hover {
    color: var(--primary-text);
    border-color: var(--accent-rust);
    box-shadow: 0 10px 28px rgba(44, 30, 26, 0.16);
    transform: translateY(-50%) scale(1.05);
}

#glance .glance-m-carousel-btn-prev {
    left: 0;
}

#glance .glance-m-carousel-btn-next {
    right: 0;
}

@media (max-width: 767.98px) {
    #glance .glance-card-modern {
        padding: 1.85rem 1rem;
    }
}

#glance .glance-image-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    min-height: 0;
    position: relative;
}

#glance .glance-image-slot .glance-png-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
    margin-inline: auto;
    filter: drop-shadow(0 8px 24px rgba(44, 30, 26, 0.2));
    transition: transform 0.4s ease, filter 0.4s ease;
}

@media (min-width: 1200px) {
    #glance .glance-image-slot .glance-png-image {
        max-height: 340px;
    }
}

#glance .glance-image-slot:hover .glance-png-image {
    transform: translateY(-6px) scale(1.04);
    filter: drop-shadow(0 12px 32px rgba(44, 30, 26, 0.3));
}

.glance-text-below {
    padding: 0 1rem 0.25rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.glance-image-wrapper {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(44, 30, 26, 0.15);
    height: 100%;
}

.glance-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.glance-image-wrapper:hover img {
    transform: scale(1.03);
}

@media (max-width: 991.98px) {
    #glance .glance-card-modern {
        max-width: 100%;
    }

    .glance-images-row {
        margin-bottom: 1.5rem;
    }

    #glance .glance-image-slot {
        padding: 0.35rem;
    }

    #glance .glance-image-slot .glance-png-image {
        max-height: 220px;
    }
}

.glance-point {
    text-align: center;
    padding: 0 0.75rem;
}

.glance-point h5 {
    margin-bottom: 0.75rem;
}

.glance-point .icon-circle {
    margin-inline: auto;
}

.about-card {
    background-color: rgba(253, 248, 240, 0.85);
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(44, 30, 26, 0.14);
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.icon-circle-rust {
    background-color: rgba(184, 92, 56, 0.15);
    color: var(--accent-rust);
}

.icon-circle-gold {
    background-color: rgba(212, 175, 55, 0.18);
    color: var(--accent-gold);
}

.timeline {
    position: relative;
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 3px;
        background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.6));
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent-rust);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 18px 45px rgba(184, 92, 56, 0.3);
}

.timeline-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 20px 45px rgba(44, 30, 26, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(44, 30, 26, 0.16);
}

/* Timeline cards: direction follows section dir (Arabic = RTL, English = LTR) */
#timeline[dir="rtl"] .timeline-card {
    direction: rtl !important;
    text-align: right !important;
}
#timeline[dir="ltr"] .timeline-card {
    direction: ltr !important;
    text-align: left !important;
}

.president-portrait {
    width: 240px;
    height: 240px;
    object-fit: cover;
}

.president-quote {
    background-color: rgba(255, 255, 255, 0.85);
    border-left: 4px solid var(--accent-rust);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    font-style: italic;
    color: rgba(44, 30, 26, 0.8);
    margin-bottom: 2rem;
    box-shadow: 0 18px 45px rgba(44, 30, 26, 0.12);
}

.blockquote-accent {
    border-left: 4px solid var(--accent-rust);
    padding-left: 1.5rem;
    color: rgba(74, 46, 42, 0.85);
}

.stats-section {
    background: linear-gradient(120deg, var(--deep-brown), #2C1E1A);
    border-radius: 2rem;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 55%);
    pointer-events: none;
}

.stats-card {
    position: relative;
    z-index: 1;
}

.stats-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.letter-spacing-relaxed {
    letter-spacing: 0.18em;
}

.sport-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    height: 500px;
    cursor: pointer;
    box-shadow: 0 25px 45px rgba(44, 30, 26, 0.18);
    border: 4px solid transparent;
    transition: border-color 0.5s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

a .sport-card {
    color: inherit;
}

.sport-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.sport-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
    transition: background 0.5s ease;
    z-index: 1;
}

.sport-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
    text-align: center;
    z-index: 2;
}

.sport-card-content h3 {
    transition: transform 0.5s ease;
}

.sport-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
    margin-top: 0;
}

.sport-card:hover {
    border-color: var(--accent-gold);
}

.sport-card:hover img {
    transform: scale(1.1);
}

.sport-card:hover::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.sport-card:hover .sport-card-content h3 {
    transform: translateY(-1rem);
}

.sport-card:hover .sport-description {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.5rem;
}

.news-card {
    background-color: rgba(255, 255, 255, 0.82);
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(44, 30, 26, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
    display: block;
}

a .news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 65px rgba(44, 30, 26, 0.2);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.06);
}

.member-card {
    background-color: rgba(255, 255, 255, 0.78);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 12px 35px rgba(44, 30, 26, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.member-card img {
    width: 88px;
    height: 58px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(44, 30, 26, 0.12);
}

.member-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px rgba(44, 30, 26, 0.18);
}

.gallery-grid {
    --bs-gutter-x: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    min-height: 220px;
    box-shadow: 0 16px 45px rgba(44, 30, 26, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-slide-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.photo-slide-image:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    color: #fff;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.gallery-lightbox.is-active {
    display: flex;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 8, 0.75);
    backdrop-filter: blur(4px);
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: 960px;
    width: min(92vw, 960px);
    max-height: 90vh;
    height: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-lightbox-figure {
    margin: 0;
    flex: 1;
    background-color: #fdf8f0;
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gallery-lightbox-image-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 80vh;
    overflow: hidden;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.gallery-lightbox-image-wrapper .unified-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gallery-lightbox-image-wrapper .unified-image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.85);
    transform: scale(1.1);
}

.gallery-lightbox-image-wrapper .unified-image-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain !important;
    display: block;
}

.gallery-lightbox-caption {
    padding: 0.75rem 1.25rem 1.1rem;
    font-size: 0.95rem;
    color: #4a2e2a;
    text-align: center;
}

.gallery-lightbox-caption-text {
    color: #4a2e2a;
}

.gallery-lightbox-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gallery-lightbox-link:hover {
    color: #f5d76e;
    text-decoration: underline;
}

.gallery-lightbox-btn {
    border: none;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

.gallery-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0.25rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .gallery-lightbox-dialog {
        flex-direction: column;
        max-height: 90vh;
    }

    .gallery-lightbox-btn {
        position: static;
    }

    .gallery-lightbox-close {
        top: 0.5rem;
        right: 0.75rem;
    }
}

.union-footer {
    padding: 2.5rem 0 0;
    background-image:
        linear-gradient(135deg, rgba(74, 46, 42, 0.95), rgba(44, 30, 26, 0.95)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.09'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    color: #fdf8f0;
    position: relative;
}

.union-footer .footer-main {
    padding-bottom: 1.5rem;
}

.union-footer .footer-bottom-bar {
    padding: 0.6rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
}

@media (min-width: 992px) {
    .union-footer {
        padding: 3.5rem 0 0;
    }

    .union-footer .footer-main {
        padding-bottom: 1.75rem;
    }

    .union-footer .footer-bottom-bar {
        padding: 0.75rem 0;
    }
}

.union-footer .footer-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(212, 175, 55, 0.6);
}

.union-footer .footer-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(253, 248, 240, 0.8);
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.union-footer .footer-icon:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.cta-panel {
    background-color: rgba(253, 248, 240, 0.92);
    border-radius: 1.75rem;
    padding: 2.5rem 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cta-actions {
    display: flex;
    align-items: center;
}

.cta-actions .btn {
    min-width: 150px;
}

.event-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(44, 30, 26, 0.16) !important;
}

.event-sport-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(184, 92, 56, 0.1);
    border-radius: 999px;
}

.event-details {
    margin-top: auto;
}

.heritage-image-wrapper {
    position: relative;
}

.heritage-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.sports-hero {
    background: linear-gradient(120deg, rgba(44, 30, 26, 0.82), rgba(74, 46, 42, 0.88)),
        url('https://picsum.photos/seed/sports-hero/1920/800');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 6rem;
    position: relative;
}

.news-hero {
    background: linear-gradient(120deg, rgba(44, 30, 26, 0.82), rgba(74, 46, 42, 0.88)),
        url('https://picsum.photos/seed/news-hero/1920/800');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 6rem;
    position: relative;
}

.news-read-more {
    transition: color 0.3s ease, transform 0.3s ease;
}

.news-read-more:hover {
    color: var(--accent-rust) !important;
}

.news-read-more:hover span:last-child {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

.newsletter-form .form-control {
    border-radius: 999px;
    border: 2px solid rgba(44, 30, 26, 0.2);
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.newsletter-form .form-control:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
    outline: none;
}

.news-filters {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(44, 30, 26, 0.08);
}

.filter-group {
    margin-bottom: 0;
}

.filter-input {
    border-radius: 0.75rem;
    border: 2px solid rgba(44, 30, 26, 0.15);
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-input:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
    outline: none;
}

.filter-input::placeholder {
    color: rgba(44, 30, 26, 0.5);
}

.news-item {
    transition: opacity 0.3s ease;
}

/* News listing pagination — matches cards / gold CTA (cream, gold, rust) */
.news-pagination {
    margin-top: 2.5rem;
    padding-top: 0.75rem;
}

.news-pagination ul.pagination {
    gap: 0.45rem;
}

.news-pagination .page-item {
    margin: 0;
}

.news-pagination .page-link {
    min-width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    color: var(--primary-text);
    background-color: rgba(255, 255, 255, 0.88);
    border: 2px solid rgba(44, 30, 26, 0.12);
    border-radius: 0.85rem;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.news-pagination .page-link:hover {
    color: var(--primary-text);
    background-color: #fff;
    border-color: var(--accent-rust);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 30, 26, 0.1);
}

.news-pagination li.page-item.active .page-link {
    color: var(--primary-text);
    background: linear-gradient(135deg, var(--accent-gold), #e8c96a);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.32);
    cursor: default;
    transform: none;
}

.news-pagination li.page-item.disabled .page-link {
    pointer-events: none;
    color: rgba(44, 30, 26, 0.35);
    background-color: rgba(255, 255, 255, 0.45);
    border-color: rgba(44, 30, 26, 0.08);
    transform: none;
    box-shadow: none;
}

.news-pagination li.page-item.active .page-link:hover {
    color: var(--primary-text);
    transform: none;
    border-color: rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, var(--accent-gold), #e8c96a);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.32);
}

.news-pagination .news-pagination-ellipsis.page-link:hover {
    border-color: rgba(44, 30, 26, 0.12);
    transform: none;
    box-shadow: none;
}

html[dir="rtl"] .news-pagination .pagination {
    direction: rtl;
}

.modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 20px 60px rgba(44, 30, 26, 0.2);
}

.modal-header {
    border-bottom: 2px solid rgba(44, 30, 26, 0.1);
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 2px solid rgba(44, 30, 26, 0.1);
    padding: 1.5rem 2rem;
}

.news-filters-modal .filter-input {
    width: 100%;
}

/* News toolbar: search input (moved out of modal) */
.news-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 320px;
}

.news-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-rust);
    pointer-events: none;
    z-index: 1;
}

.news-search-input {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1.25rem 0.75rem 2.75rem;
    font-size: 1rem;
    border-radius: 1rem;
    border: 2px solid rgba(44, 30, 26, 0.15);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-search-input:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
    outline: none;
}

.news-search-input::placeholder {
    color: rgba(44, 30, 26, 0.5);
}

@media (max-width: 575.98px) {
    .news-search-wrapper {
        width: 100%;
        max-width: none;
        order: 0;
    }
}

/* Date filter inline in toolbar (same as sort dropdown width) */
.news-date-filter-inline {
    min-width: 160px;
    width: auto;
}

@media (max-width: 575.98px) {
    .news-date-filter-inline {
        width: 100%;
        min-width: 0;
    }
}

/* News filter modal: custom date dropdown (trigger + menu) */
.news-date-dropdown {
    position: relative;
    width: 100%;
}

.news-date-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-text);
    background-color: #fff;
    border: 2px solid rgba(44, 30, 26, 0.15);
    border-radius: 1rem;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    text-align: left;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.news-date-trigger .news-date-label,
.news-date-trigger .news-sort-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-date-trigger:hover {
    border-color: rgba(184, 92, 56, 0.4);
    background-color: rgba(253, 248, 240, 0.6);
}

.news-date-trigger[aria-expanded="true"] {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
}

.news-date-chevron {
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.news-date-trigger[aria-expanded="true"] .news-date-chevron {
    transform: rotate(180deg);
}

.news-date-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 2px solid rgba(44, 30, 26, 0.12);
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(44, 30, 26, 0.15);
    padding: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}

.news-date-menu.open {
    display: block;
}

/* Searchable dropdown: search input inside menu */
.news-date-menu-searchable .dropdown-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 2px solid rgba(44, 30, 26, 0.15);
    border-radius: 0.75rem;
    color: var(--primary-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-date-menu-searchable .dropdown-search-input:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
    outline: none;
}

.news-date-menu-searchable .dropdown-search-input::placeholder {
    color: rgba(44, 30, 26, 0.5);
}

.news-date-menu-searchable .news-date-options-inner {
    max-height: 220px;
    overflow-y: auto;
}

/* Open upward when not enough space below (e.g. in modal) */
.news-date-menu.open-up {
    top: auto;
    bottom: calc(100% + 6px);
}

.news-date-option {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary-text);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.news-date-option:hover {
    background-color: rgba(184, 92, 56, 0.08);
    color: var(--accent-rust);
}

.news-date-option.selected {
    background-color: rgba(184, 92, 56, 0.12);
    color: var(--accent-rust);
}

.news-filters-modal .form-label {
    color: var(--primary-text);
    font-size: 0.9375rem;
}

.news-filters-modal .mb-4 {
    margin-bottom: 1.5rem !important;
}

/* News filter modal: date inputs match app UI (same as sort/search) */
.news-filters-modal input[type="date"].filter-input,
.news-filters-modal .news-date-input {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-text);
    background-color: #fff;
    border: 2px solid rgba(44, 30, 26, 0.15);
    border-radius: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    accent-color: var(--accent-rust);
    color-scheme: light;
}

.news-filters-modal input[type="date"].filter-input:hover,
.news-filters-modal .news-date-input:hover {
    border-color: rgba(184, 92, 56, 0.4);
    background-color: rgba(253, 248, 240, 0.6);
}

.news-filters-modal input[type="date"].filter-input:focus,
.news-filters-modal .news-date-input:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
    outline: none;
}

/* Flatpickr calendar: app-themed (rust/gold, rounded, Poppins) */
.flatpickr-calendar {
    font-family: 'Poppins', sans-serif !important;
    border-radius: 1rem !important;
    border: 2px solid rgba(44, 30, 26, 0.12) !important;
    box-shadow: 0 12px 40px rgba(44, 30, 26, 0.15) !important;
    background: #fff !important;
    /* Vertical padding only so fixed-width day grid doesn't overflow */
    padding: 1rem 0 1.25rem !important;
    z-index: 1060 !important;
}

.flatpickr-calendar.open {
    z-index: 1060 !important;
}

.flatpickr-innerContainer {
    padding: 0 1rem !important;
}

.flatpickr-months {
    margin-bottom: 0.5rem !important;
}

.flatpickr-months .flatpickr-month {
    min-height: 40px !important;
}

.flatpickr-weekdays {
    margin-bottom: 0.25rem !important;
}

.flatpickr-days {
    padding-top: 0.25rem !important;
    width: 100% !important;
}

.dayContainer {
    padding: 0.25rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.flatpickr-day {
    max-width: 13.5% !important;
}

.flatpickr-calendar.arrowTop:before { border-bottom-color: rgba(44, 30, 26, 0.12) !important; }
.flatpickr-calendar.arrowTop:after { border-bottom-color: #fff !important; }
.flatpickr-calendar.arrowBottom:before { border-top-color: rgba(44, 30, 26, 0.12) !important; }
.flatpickr-calendar.arrowBottom:after { border-top-color: #fff !important; }

.flatpickr-months .flatpickr-month {
    color: var(--primary-text) !important;
    fill: var(--primary-text) !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: var(--primary-text) !important;
    fill: var(--primary-text) !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    color: var(--accent-rust) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent-rust) !important;
}

.flatpickr-current-month {
    color: var(--primary-text) !important;
    font-weight: 600 !important;
}

.flatpickr-current-month .numInputWrapper input.cur-year {
    color: var(--primary-text) !important;
}

span.flatpickr-weekday {
    color: rgba(44, 30, 26, 0.7) !important;
    font-weight: 600 !important;
}

.flatpickr-day {
    color: var(--primary-text) !important;
    border-radius: 0.75rem !important;
}

.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: rgba(184, 92, 56, 0.08) !important;
    border-color: rgba(184, 92, 56, 0.2) !important;
    color: var(--accent-rust) !important;
}

.flatpickr-day.today {
    border-color: var(--accent-gold) !important;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    background: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: #fff !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: var(--accent-rust) !important;
    border-color: var(--accent-rust) !important;
    color: #fff !important;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange {
    background: rgba(184, 92, 56, 0.12) !important;
    border-color: transparent !important;
    box-shadow: -5px 0 0 rgba(184, 92, 56, 0.12), 5px 0 0 rgba(184, 92, 56, 0.12) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: rgba(44, 30, 26, 0.35) !important;
}

.tournaments-hero {
    background: linear-gradient(120deg, rgba(44, 30, 26, 0.82), rgba(74, 46, 42, 0.88)),
        url('https://picsum.photos/seed/tournaments-hero/1920/800');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 6rem;
    position: relative;
}

.tournament-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tournament-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(44, 30, 26, 0.2) !important;
}

.tournament-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.tournament-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tournament-card:hover .tournament-image-wrapper img {
    transform: scale(1.1);
}

.tournament-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-gold);
    color: var(--primary-text);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tournament-sport-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(184, 92, 56, 0.1);
    border-radius: 999px;
}

.tournament-details {
    margin-top: auto;
}

.tournament-detail-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.tournament-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tournament-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.tournament-status-badge-large {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--primary-text);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tournament-content {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.schedule-timeline {
    position: relative;
    padding-left: 2rem;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-rust), var(--accent-gold));
    border-radius: 999px;
}

.schedule-day {
    position: relative;
    padding-left: 2rem;
}

.schedule-day::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--accent-rust);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(44, 30, 26, 0.2);
}

.tournament-info-card,
.tournament-contact-card {
    background-color: #ffffff !important;
    border-radius: 1.5rem;
    padding: 2rem;
}

.sport-detail-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.sport-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sport-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sport-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.sport-content {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.sport-info-card {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 1.5rem;
    padding: 2rem;
}

.info-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(44, 30, 26, 0.1);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.breadcrumb-nav {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(44, 30, 26, 0.1);
}

.breadcrumb {
    margin-bottom: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: var(--accent-rust);
    padding: 0 0.5rem;
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--accent-rust);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-text);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--primary-text);
    font-weight: 500;
}

.news-detail-hero {
    padding: 3rem 0 2rem;
    background-color: rgba(255, 255, 255, 0.4);
}

.news-detail-image {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(44, 30, 26, 0.15);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-header {
    max-width: 900px;
    margin: 0 auto;
}

.news-category-badge {
    display: inline-block;
    background-color: rgba(184, 92, 56, 0.1);
    color: var(--accent-rust);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.news-detail-content {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 3rem;
}

.news-body {
    color: var(--primary-text);
    line-height: 1.8;
}

.news-body p {
    margin-bottom: 1.5rem;
}

.news-body p:last-child {
    margin-bottom: 0;
}

.news-related-links a {
    transition: all 0.3s ease;
}

.news-related-links a:hover {
    color: var(--primary-text);
    transform: translateX(4px);
}

.photo-slider-wrapper {
    position: relative;
}

.photo-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 8px 24px rgba(44, 30, 26, 0.15);
}

.photo-slider-container {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%;
    overflow: hidden;
}

.photo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.photo-slide.active {
    opacity: 1;
}

.photo-slide img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    display: block;
}

.photo-slide-caption {
    background-color: rgba(44, 30, 26, 0.05);
    padding: 1rem;
    margin: 0;
    text-align: center;
}

.photo-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 30, 26, 0.2);
    color: var(--primary-text);
}

.photo-slider-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(44, 30, 26, 0.3);
}

.photo-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.photo-slider-prev {
    left: 1rem;
}

.photo-slider-next {
    right: 1rem;
}

.photo-slider-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.photo-slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.photo-slider-indicator.active,
.photo-slider-indicator:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
}

.video-wrapper video {
    box-shadow: 0 8px 24px rgba(44, 30, 26, 0.15);
}

.video-caption,
.youtube-caption {
    font-style: italic;
}

.youtube-wrapper iframe {
    box-shadow: 0 8px 24px rgba(44, 30, 26, 0.15);
}

.contact-hero {
    background: linear-gradient(135deg, rgba(184, 92, 56, 0.9) 0%, rgba(44, 30, 26, 0.9) 100%),
        url('https://picsum.photos/seed/contact/1200/600') center/cover;
}

.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid rgba(44, 30, 26, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
}

.contact-form .form-label {
    margin-bottom: 0.5rem;
}

.contact-info-wrapper {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 2.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.contact-info-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(44, 30, 26, 0.1);
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(184, 92, 56, 0.1);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.contact-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: rgba(184, 92, 56, 0.1);
    border-radius: 50%;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .contact-info-wrapper {
        position: static;
        margin-top: 2rem;
    }
}

.login-hero {
    background: linear-gradient(135deg, rgba(184, 92, 56, 0.9) 0%, rgba(44, 30, 26, 0.9) 100%),
        url('https://picsum.photos/seed/login/1200/600') center/cover;
}

.login-form-wrapper {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 8px 24px rgba(44, 30, 26, 0.15);
}

.login-form .form-control {
    border: 2px solid rgba(44, 30, 26, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    padding-right: 3rem;
}

.login-form .form-control:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
}

.login-form .form-label {
    margin-bottom: 0.5rem;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-rust);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: var(--primary-text);
}

.password-toggle-btn:focus {
    outline: none;
}

.password-eye,
.password-eye-slash {
    width: 20px;
    height: 20px;
}

.form-check-input:checked {
    background-color: var(--accent-rust);
    border-color: var(--accent-rust);
}

.form-check-input:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
}

.sort-dropdown-wrapper {
    position: relative;
    display: inline-block;
    min-width: 180px;
}

.sort-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-rust);
    pointer-events: none;
    z-index: 2;
}

.sort-select {
    border-radius: 999px;
    border: 2px solid rgba(44, 30, 26, 0.15);
    padding: 0.75rem 1.25rem 0.75rem 2.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-text);
    background-color: rgba(255, 255, 255, 0.9);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232C1E1A' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 30, 26, 0.08);
}

.sort-select:hover {
    border-color: var(--accent-rust);
    box-shadow: 0 4px 12px rgba(184, 92, 56, 0.15);
    background-color: rgba(255, 255, 255, 1);
}

.sort-select:focus {
    border-color: var(--accent-rust);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
    outline: none;
    background-color: rgba(255, 255, 255, 1);
}

.sort-select option {
    padding: 0.5rem;
    background-color: #fff;
    color: var(--primary-text);
}

/* News page: mobile-friendly toolbar and modal */
@media (max-width: 575.98px) {
    .news-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .news-toolbar .d-flex.gap-2 {
        width: 100%;
        justify-content: stretch;
    }

    .sort-dropdown-wrapper {
        flex: 1;
        min-width: 0;
    }

    .sort-select {
        width: 100%;
        min-height: 48px;
        padding: 0.875rem 1rem 0.875rem 2.5rem;
        font-size: 1rem;
        -webkit-appearance: none;
        appearance: none;
    }

    .news-filter-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 0.875rem 1rem;
    }
}

.news-filter-btn {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    /* Fullscreen modal on mobile: ensure content fills and footer is safe */
    #filterModal .modal-dialog.modal-fullscreen-sm-down,
    #newsFilterModal .modal-dialog.modal-fullscreen-sm-down,
    #tournamentFilterModal .modal-dialog.modal-fullscreen-sm-down {
        max-width: 100%;
        margin: 0;
    }

    #filterModal .modal-content,
    #newsFilterModal .modal-content,
    #tournamentFilterModal .modal-content {
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
    }

    #filterModal .modal-footer,
    #newsFilterModal .modal-footer,
    #tournamentFilterModal .modal-footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 4.5rem 0 4rem;
    }

    .president-portrait {
        width: 200px;
        height: 200px;
    }

    .cta-panel {
        padding: 2rem;
        text-align: center;
    }

    .cta-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* RTL overrides for Arabic layout */
[dir="rtl"] body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
}

[dir="rtl"] .font-heading {
    font-family: 'Tajawal', 'Cinzel', serif;
    letter-spacing: 0;
}

[dir="rtl"] .letter-spacing-wide {
    letter-spacing: 0.1em;
}

[dir="rtl"] .glance-images-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-union .navbar-collapse {
    justify-content: flex-start;
}

[dir="rtl"] .footer-main .row.gy-4 {
    flex-direction: row-reverse;
}

