.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1521412644187-c49fa049e84d?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    color: #fff;
    padding: 140px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(12, 23, 47, 0.65);
    }

    .hero > .container {
        position: relative;
        z-index: 1;
    }

    .hero h1 {
        font-size: 3rem;
        font-weight: 700;
    }

.btn-cta {
    padding: 10px 28px;
    font-weight: 600;
}

.section-title {
    font-weight: 600;
    color: #0C172F;
    font-size: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
}

.login-section {
    background: #f8f9fa;
    padding: 40px 20px;
    border-radius: 8px;
}

.registration-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Align registration pages with home design */
.navbar-dark {
    background: #0C172F !important;
}


.navbar-modern {
    background: #0C172F !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .navbar-modern .nav-link {
        color: #ffffff !important;
        font-weight: 500;
    }

        .navbar-modern .nav-link:hover {
            color: #FFE066 !important;
        }


.enroll-now-btn {
    background: #FFE066;
    color: #000;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s ease;
}

    .enroll-now-btn:hover {
        background: #e6d818;
        color: #000;
    }

body {
    font-family: 'Jost', sans-serif;
    background-color: #f5f8fc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.registration-form {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--primary-light);
        border-color: var(--primary-light);
    }

.page-hero {
    position: relative;
    background-color: #0C172F;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    text-align: center;
}

    .page-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.5);
    }

    .page-hero > * {
        position: relative;
        z-index: 1;
    }

.tournament-hero-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.search-bar input {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding-left: 1.25rem;
}

    .search-bar input:focus {
        box-shadow: 0 0 0 0.25rem rgba(12,23,47,0.25);
        border-color: var(--primary-color);
    }

.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }

.step-indicators {
    display: flex;
    justify-content: space-between;
}

.step-indicator {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-bottom: 2px solid #dee2e6;
    color: #6c757d;
}

    .step-indicator.active {
        border-color: var(--primary-color);
        color: #000;
        font-weight: 600;
    }


.card-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.25rem;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    .card-container > .tournament-card,
    .card-container > .card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }

    @media (max-width: 576px) {
        .card-container > .tournament-card,
        .card-container > .card {
            flex: 0 0 240px;
            min-width: 240px;
            max-width: 240px;
        }
    }

.card-slides {
    flex: 0 0 auto;
    width: 240px;
}

.carousel-wrapper {
    position: relative;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .carousel-control.prev {
        left: -18px;
    }

    .carousel-control.next {
        right: -18px;
    }

@media (max-width: 576px) {
    .card-slides {
        width: 180px;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
    }

    .hero {
        padding: 80px 0;
    }

        .hero h1 {
            font-size: 2rem;
        }
}

/* Dashboard tab icons */
.dashboard-page .nav-tabs .nav-link {
    padding: 0.5rem;
    font-size: 0.9rem;
}

    .dashboard-page .nav-tabs .nav-link i {
        font-size: 1.2rem;
    }

@media (max-width: 576px) {
    .dashboard-page .nav-tabs .nav-link span {
        font-size: 0.75rem;
    }
}

.footer {
    background: linear-gradient(45deg, #0C172F, #001A3E);
    color: #fff;
}

    .footer h5 {
        font-size: 1rem;
        font-weight: 600;
    }

    .footer hr {
        opacity: 0.15;
    }

    .footer a {
        color: #FFE066;
    }

        .footer a:hover {
            color: #fff;
            text-decoration: underline;
        }

#btn-create-tournament {
    background: #FCED23;
    color: #0C172F;
    text-shadow: 0px 0px;
    box-shadow: 4px 4px var(--bs-navbar-brand-color);
    border-radius: 2px;
}

.tournament-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    min-height: 340px;
    cursor: pointer;
    background: #fff;
}

    .tournament-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }

    /* Ensure consistent cover image size across all tournament cards */
    .tournament-card .card-img-top {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .tournament-card .card-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        padding: 12px 16px 16px;
        position: relative;
    }

    .tournament-card .card-title {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 2.5rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .tournament-card .text-muted {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .tournament-card .enroll-now-btn {
        margin-top: auto;
        position: relative;
        z-index: 2;
        background: #FFE066;
        color: #000;
        font-size: 0.75rem;
        padding: 6px 12px;
        border-radius: 6px;
        font-weight: 600;
        border: none;
        text-decoration: none;
        text-align: center;
    }

        .tournament-card .enroll-now-btn:hover {
            background: #e6d818;
            color: #000;
        }

    .tournament-card .stretched-link {
        z-index: 1;
    }

.tournament-card-logo {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 3;
}

.tournament-card .sports-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #007bff;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.profile-card {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

.dashboard-page .nav-pills .nav-link {
    border-radius: 50rem;
}

.social-links a {
    color: #FFE066;
    transition: color 0.2s ease;
}

.social-links i {
    font-size: 1.25rem;
}

.social-links a:hover {
    color: #fff;
}

.dashboard-page canvas {
    max-width: 100%;
}

.google-btn {
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 500;
}

    .google-btn:hover {
        background-color: #f7f8f8;
        color: #3c4043;
    }

/* Community Tab Styles */
.post-input {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    padding: 1rem;
}

.community-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .community-post:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .community-post .post-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .community-post .post-header img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

    .community-post .reaction-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        border-top: 1px solid #eee;
        padding-top: 0.5rem;
        font-size: 0.9rem;
    }

    /* Fallback for browsers without flex gap support */
    @supports not (gap: 0.5rem) {
        .community-post .reaction-bar > * {
            margin-right: 0.5rem;
        }
        .community-post .reaction-bar > *:last-child {
            margin-right: 0;
        }
    }

    .community-post .reaction-bar form {
        display: flex;
        align-items: center;
        margin: 0;
        flex: 0 0 auto;
    }

        .community-post .reaction-bar button {
            background: none;
            border: none;
            cursor: pointer;
            transition: transform 0.2s ease;
            display: flex;
            align-items: center;
        }

            .community-post .reaction-bar button.active {
                transform: scale(1.2);
            }

            .community-post .reaction-bar button.reacting {
                transform: scale(1.1);
                opacity: 0.8;
                transition: all 0.15s ease;
            }

.comment-section {
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.comment {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #fff;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

    .comment:hover {
        background: #f1f1f1;
    }

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background-color: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: uppercase;
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-weight: 600;
}

.comment-text {
    display: block;
}

.reply-btn {
    font-size: 0.8rem;
}

.toggle-replies {
    font-size: 0.8rem;
}

.replies {
    margin-left: 2rem;
    border-left: 2px solid #e0e0e0;
    padding-left: 0.75rem;
}

.reply-form {
    margin-left: 2rem;
}

.reaction-bar .toggle-comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sort-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

/* Announcement Styles */
.announcement-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem;
}

    .announcement-card.pinned {
        border-left: 4px solid #ff9800;
        background: #fff9f0;
    }

.announcement-body {
    font-size: 0.95rem;
    line-height: 1.4;
}

.announcement-text {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

.hey-champ-container {
    height: 281px;
    background: #0C172F;
    border-radius: 10px;
}

.hey-champ-para {
    color: #FFFFFF;
    line-height: 23px;
}

@media (max-width: 576px) {
    .sort-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .post-input,
    .community-post {
        padding: 0.75rem;
    }

        .community-post .post-header img,
        .comment-avatar {
            width: 32px;
            height: 32px;
        }

    .replies,
    .reply-form {
        margin-left: 1.5rem;
    }

    .page-hero {
        padding: 40px 0;
    }

    .tournament-hero-logo {
        width: 60px;
        height: 60px;
    }

    #tourTabs,
    .tab-nav-scroll {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

        #tourTabs::-webkit-scrollbar,
        .tab-nav-scroll::-webkit-scrollbar {
            display: none;
        }

        #tourTabs .nav-link,
        .tab-nav-scroll .nav-link {
            white-space: nowrap;
        }
}

/* Required field indicator */
.required-star {
    color: #dc3545;
    margin-left: .25rem;
}

/* Remove green highlight for optional fields */
.was-validated .form-control:optional:valid,
.was-validated .form-select:optional:valid,
.was-validated .form-check-input:optional:valid {
    border-color: #ced4da;
    box-shadow: none;
    background-image: none;
}

/* Star rating widget */
.rating {
    display: inline-flex;
    gap: 0.25rem;
}

.rating .star {
    font-size: 1.75rem;
    cursor: pointer;
}
