/* style/sports.css */

/* Custom properties for colors */
:root {
    --primary-color: #26A9E0; /* Main brand color */
    --secondary-color: #EA7C07; /* Login color */
    --background-light: #FFFFFF; /* Light background */
    --text-dark: #333333; /* Dark text for light backgrounds */
    --text-light: #ffffff; /* Light text for dark backgrounds */
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Base styles for the page content */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-light); /* Assuming shared body background is light */
}

/* Ensure the main content starts below the fixed header */
.page-sports {
    padding-top: var(--header-offset, 120px); /* Desktop default, overridden by shared.css or media query */
}

/* --- HERO Section --- */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #aed6f1 100%); /* Adjusted gradient for better contrast */
    color: var(--text-light);
    overflow: hidden; /* Ensure no overflow */
}

.page-sports__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-sports__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-sports__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-sports__main-title {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-sports__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 180px; /* Ensure minimum width for buttons */
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-sports__btn-primary:hover {
    background: #1f8ac6; /* Slightly darker primary */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
    background: var(--secondary-color); /* Login color for secondary CTA */
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.page-sports__btn-secondary:hover {
    background: #c76b06; /* Slightly darker secondary */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styles --- */
.page-sports__section {
    padding: 80px 20px;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.page-sports__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-sports__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
}

.page-sports__list-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Backgrounds */
.page-sports__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-sports__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.page-sports__dark-bg .page-sports__section-title {
    color: var(--text-light);
}
.page-sports__dark-bg .page-sports__section-description {
    color: var(--text-light);
}
.page-sports__dark-bg .page-sports__list-title {
    color: var(--text-light);
}

/* --- Content Grid for Text & Image --- */
.page-sports__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-sports__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-sports__text-block {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-sports__text-block p {
    margin-bottom: 15px;
}

.page-sports__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    object-fit: cover;
}

/* --- Cards Grid --- */
.page-sports__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__card {
    background: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: var(--text-dark);
    border: 1px solid var(--border-color); /* Added for contrast */
}

.page-sports__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-sports__card img {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-sports__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-sports__card-title a {
    color: inherit;
    text-decoration: none;
}
.page-sports__card-title a:hover {
    text-decoration: underline;
}

.page-sports__card-text {
    font-size: 1em;
    line-height: 1.7;
    flex-grow: 1; /* Allow text to take up available space */
    margin-bottom: 20px;
}

.page-sports__btn-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto; /* Push to bottom of card */
    transition: color 0.3s ease;
}

.page-sports__btn-link:hover {
    color: #1a7bb0; /* Darker blue on hover */
    text-decoration: underline;
}

/* --- Guide List --- */
.page-sports__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sports__guide-list li {
    margin-bottom: 30px;
    position: relative;
    padding-left: 40px;
}