/* style/sports.css */
/* Base styles for the sports page */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #ffffff; /* Explicitly set for consistency */
}

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

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

.page-sports__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #ffffff; /* Auxiliary color */
    color: #333333;
}

.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439;
}

.page-sports__section-title--light {
    color: #ffffff;
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-sports__section-description--light {
    color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding-bottom: 60px; /* Add some padding at the bottom for hero content */
}

.page-sports__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make background image subtle */
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-sports__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-sports__btn-primary {
    background-color: #C30808; /* Custom color for register/login type buttons, here used for primary CTA */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-sports__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Video Section */
.page-sports__video-section {
    padding-top: 0; /* Hero section already has header offset */
    padding-bottom: 60px;
    text-align: center;
}

.page-sports__video-container {
    padding: 20px;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 8px;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.page-sports__video-caption {
    margin-top: 20px;
    font-style: italic;
    color: #f0f0f0;
}

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

.page-sports__grid-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min size requirement */
    min-height: 200px;
}

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

.page-sports__card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px; /* Ensure cards have enough space for content and images */
}

.page-sports__card--dark {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    color: #ffffff;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-sports__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-sports__card--dark .page-sports__card-title {
    color: #ffffff;
}

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

/* Feature List */
.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-sports__feature-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__feature-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
}

.page-sports__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Step List (Download Guide) */
.page-sports__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-sports__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.page-sports__step-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-sports__step-text {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 800px;
    margin-bottom: 20px;
}

.page-sports__step-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

.page-sports__promo-grid .page-sports__card {
    min-height: auto; /* Adjust for promo cards */
    padding: 25px;
}

.page-sports__promo-grid .page-sports__card-title {
    color: #017439;
}

/* CTA Section */
.page-sports__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-sports__cta-container {
    max-width: 900px;
}

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-sports__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}