/* Page Base */
.tournaments-page {
    min-height: 100vh;
    background: #f8fafc;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0a2351 0%, #1a3a6e 50%, #0a2351 100%);
    height: 600px;
    /* Fixed height for consistency */
    padding: 150px 40px 0;
    /* Fixed top padding, bottom handled by flex/height */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align content to top */
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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='%23ffffff' fill-opacity='0.03'%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");
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-top: 20px;
    /* Reduced spacing */
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #f97316;
}

.stat-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.floating-icon {
    font-size: 12rem;
    opacity: 0.15;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* Featured Card */
.featured-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.featured-left {
    flex: 1;
}

.featured-label {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.featured-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.featured-card>.featured-left>p {
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.featured-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #475569;
}

.info-icon {
    font-size: 1.1rem;
    margin-right: 4px;
    /* added spacing */
}

.featured-buttons {
    display: flex;
    gap: 12px;
}

.btn-featured-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-featured-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10, 35, 81, 0.3);
    color: white;
}

.btn-featured-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #475569;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-featured-secondary:hover {
    border-color: #0a2351;
    color: #0a2351;
}

.featured-right {
    display: flex;
    align-items: center;
}

.countdown-box {
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    color: white;
    padding: 32px 48px;
    border-radius: 20px;
    text-align: center;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-unit {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 4px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Filters */
/* Filter Bar (Card Style) */
.filters-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.filter-chips {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    overflow-x: auto;
}

.chip {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.chip:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

.chip.active {
    background: white;
    color: #0a2351;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.results-text {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.card.championship .cat-dot {
    background: #dc2626;
}

.card.championship .card-category {
    color: #dc2626;
}

.card.grandprix .cat-dot {
    background: #2563eb;
}

.card.grandprix .card-category {
    color: #2563eb;
}

.card.open .cat-dot {
    background: #16a34a;
}

.card.open .card-category {
    color: #16a34a;
}

.card.junior .cat-dot {
    background: #9333ea;
}

.card.junior .card-category {
    color: #9333ea;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-location {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 8px;
}

.card-date {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card-btn {
    background: #f1f5f9;
    color: #475569;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-btn:hover {
    background: #0a2351;
    color: white;
}

.fav-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-btn:hover,
.fav-btn.active {
    opacity: 1;
    background: #fee2e2;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 48px;
}

.page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    background: white;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-item .page-link:hover {
    background: #f1f5f9;
    color: #0a2351;
    border-color: #cbd5e1;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(10, 35, 81, 0.3);
}

.page-item.disabled .page-link {
    color: #cbd5e1;
    background: #f8fafc;
    border-color: #f1f5f9;
    pointer-events: none;
    cursor: default;
}

/* WT Banner */
.wt-banner {
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    border-radius: 20px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
}

.wt-icon {
    font-size: 3rem;
}

.wt-text {
    flex: 1;
}

.wt-text h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.wt-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.wt-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wt-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 24px 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        gap: 24px;
    }

    .featured-card {
        flex-direction: column;
        padding: 24px;
    }

    .featured-right {
        justify-content: center;
    }

    .filters-bar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .wt-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
}