/* style/sports.css */

/* --- Base Styles --- */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f4f4f4 */
    background-color: transparent; /* Main content background is handled by body and sections */
}

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

.page-sports__section {
    padding: 60px 0;
    text-align: center;
}

.page-sports__section-title {
    font-size: 36px;
    color: #CC0000; /* Main brand color */
    margin-bottom: 40px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-sports__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

/* --- Color Contrast Helpers --- */
.page-sports__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text */
}

.page-sports__dark-bg {
    background-color: #CC0000; /* Main brand color as background */
    color: #ffffff; /* White text for contrast */
}

.page-sports__dark-bg .page-sports__section-title {
    color: #FFD700; /* Accent color for titles on dark background */
}

.page-sports__dark-bg .page-sports__text-block {
    color: #f0f0f0; /* Slightly off-white for body text on dark background */
}

/* --- 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;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #CC0000 0%, #FFD700 100%); /* Brand colors gradient */
    overflow: hidden; /* Prevent content 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%;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-sports__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 0; /* Image behind text if overlaid */
}

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

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff; /* White text for contrast on gradient background */
}

.page-sports__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-sports__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-sports__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #FFD700; /* Accent color for CTA */
    color: #CC0000; /* Main color for text on accent background */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-sports__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- Image Wrapper for content images --- */
.page-sports__image-wrapper {
    margin: 40px auto;
    max-width: 1000px; /* Example max-width for content images */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px; /* Match wrapper border-radius */
}

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

.page-sports__card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    border: 1px solid #e0e0e0;
}

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

.page-sports__card-title {
    font-size: 22px;
    color: #CC0000;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__card-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

/* Specific card styles for dark background section */
.page-sports__dark-bg .page-sports__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-sports__dark-bg .page-sports__card-title {
    color: #FFD700; /* Accent color for titles on dark background cards */
}

.page-sports__dark-bg .page-sports__card-text {
    color: #f0f0f0;
}

/* --- Guide List --- */
.page-sports__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
}

.page-sports__guide-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    border-left: 5px solid #CC0000; /* Highlight with main brand color */
}

.page-sports__guide-item-title {
    font-size: 20px;
    color: #CC0000;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__guide-item p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 0;
}

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

.page-sports__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__feature-title {
    font-size: 22px;
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__feature-text {
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0;
}

/* --- Buttons --- */
.page-sports__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
    max-width: 800px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding for mobile */
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    flex-grow: 1; /* Allow buttons to grow */
    flex-basis: 200px; /* Minimum width before wrapping */
}

.page-sports__btn-primary {
    background: #CC0000;
    color: #ffffff;
    border: 2px solid #CC0000;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
}

.page-sports__btn-primary:hover {
    background: #a30000;
    border-color: #a30000;
    box-shadow: 0 6px 15px rgba(204, 0, 0, 0.4);
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background: #ffffff;
    color: #CC0000;
    border: 2px solid #CC0000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__btn-secondary:hover {
    background: #f0f0f0;
    color: #a30000;
    border-color: #a30000;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.page-sports__inline-link {
    color: #CC0000;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-sports__inline-link:hover {
    color: #FFD700;
}

/* --- FAQ Section --- */
.page-sports__faq-section {
    padding-bottom: 80px;
}