.tournament-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.tournament-logo img {
    max-width: 250px;
    border-radius: 8px;
}


/*ZOOM*/
.tournament-logo {
    position: relative;
    overflow: hidden;
    width: 250px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}
.tournament-logo img {
    width: 100%;
    height: auto;
    cursor: zoom-in;
}
.zoom-lens {
    position: absolute;
    border: 1px solid #000;
    width: 100px; /* Size of magnified area */
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    display: none; /* Hidden by default */
}
.zoom-result {
    position: fixed; /* Ensure it doesn’t affect the document flow */
    top: 50px; /* Adjust dynamically via JavaScript */
    left: 500px; /* Adjust dynamically via JavaScript */
    width: 400px; /* Size of the zoom container */
    height: 400px;
    border: 1px solid #000;
    background-size: 200%; /* Zoom level, Adjust for 2x zoom */
    background-repeat: no-repeat;
    display: none; /* Hidden until triggered */
    z-index: 1000; /* Ensure it appears above other elements */
    background-color: #fff; /* Optional: Debugging background */
    pointer-events: none; /* Prevent interfering with mouse interactions */
	
}



.tournament-info h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.tournament-info {
    width: 60%;
}


.tournament-buttons .button {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
}

.tournament-buttons .button.primary {
    background-color: #001e43;
	transition: background-color 0.3s ease;
}
.tournament-buttons .button.primary:hover {
    background-color: #096cc6;
	transition: background-color 0.3s ease;
}


.tournament-buttons .button.secondary {
    background-color: #6c757d;
	transition: background-color 0.3s ease;
}
.tournament-buttons .button.secondary:hover {
    background-color: #dd3642;
	transition: background-color 0.3s ease;
}

.tournament-contact a {
    color: #007bff;
    text-decoration: none;
}

/* New styles for division cards */
.tournament-divisions {
    margin-top: 30px;
}

.division-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.division-card {
    flex: 1 1 calc(50% - 20px); /* Two cards per row on larger screens */
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.division-card p {
    margin: 8px 0;
    font-size: 14px;
}

.division-card .button {
    margin-top: 10px;
}

/* Tabs */
.tab-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-menu li {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 10px;
}

.tab-menu .active {
    background-color: #007bff;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}



/* Archive Container */
.tournament-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Archive Title */
.archive-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Tournament Grid */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
}

/* Tournament Card */
.tournament-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Card Logo */
.card-logo img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

/* Card Content */
.card-content {
    padding: 15px;
    text-align: center;
}

.card-content h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.card-content p {
    margin: 5px 0;
    font-size: 14px;
}

.card-content .button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.card-content .button:hover {
    background-color: #0056b3;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .tournament-grid {
        grid-template-columns: repeat(2, 1fr); /* 2-column grid on medium screens and above */
    }
}

@media (max-width: 767px) {
    .tournament-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
}




/* Responsive adjustments */
@media (max-width: 768px) {
    .tournament-logo,
    .tournament-info,
    .tournament-details,
    .tournament-contact {
        width: 100%; /* Full width for mobile */
        margin-bottom: 20px;
    }

    .tournament-logo img {
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }

    .tournament-header {
        display: block; /* Disable flex layout for stacking */
    }

    .tournament-logo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Division Cards */
    .division-card {
        flex: 1 1 100%; /* Full width for mobile */
    }
}
