/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-sports__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff; /* Default text color for dark sections */
}

.page-sports__text-block--white {
    color: #ffffff;
}

.page-sports__text-block a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-sports__text-block a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-sports__btn-primary {
    background-color: #C30808; /* Register/Login button background */
    color: #000000; /* Changed from #FFFF00 to #000000 for WCAG AA contrast (5.67:1) */
    border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #ffffff; /* White text on hover for better contrast */
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

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

.page-sports__btn-secondary--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-sports__cta-buttons--center {
    text-align: center;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 0; /* Header offset is on .page-sports */
}

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

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-sports__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

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

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Introduction Section */
.page-sports__introduction-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    padding: 80px 0;
    color: #ffffff;
}

.page-sports__introduction-section .page-sports__section-title {
    color: #017439;
}

.page-sports__introduction-section .page-sports__text-block {
    color: #ffffff;
}

.page-sports__image-full-width {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Features/Grid Section */
.page-sports__features-section {
    background-color: #0a0a0a; /* Dark background */
    padding: 80px 0;
    color: #ffffff;
}

.page-sports__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__card--dark {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

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

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

.page-sports__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-sports__card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    color: #f0f0f0;
}

.page-sports__card-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.page-sports__card-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
}

.page-sports__image-centered {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 60px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-sports__video-section {
    background-color: #1a1a1a;
    padding: 80px 0;
    color: #ffffff;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer; /* Indicate it's clickable */
}

.page-sports__video-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Guide Section */
.page-sports__guide-section {
    background-color: #0a0a0a;
    padding: 80px 0;
    color: #ffffff;
}

.page-sports__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-sports__guide-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-sports__guide-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__guide-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-sports__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-sports__promotions-section {
    background-color: #1a1a1a;
    padding: 80px 0;
    color: #ffffff;
}

.page-sports__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__promotions-section .page-sports__card {
    background-color: rgba(255, 255, 255, 0.05);
    text-align: left;
    padding: 25px;
}

.page-sports__promotions-section .page-sports__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-sports__promotions-section .page-sports__card-text {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: left;
}

/* Security Section */
.page-sports__security-section {
    background-color: #0a0a0a;
    padding: 80px 0;
    color: #ffffff;
}

.page-sports__feature-item {
    text-align: center;
    padding: 20px;
    color: #ffffff;
}

.page-sports__feature-icon {
    width: 100px; /* Enforce min size for icons */
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain; /* Ensure icons are not distorted */
}

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

.page-sports__feature-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #1a1a1a;
    padding: 80px 0;
    color: #ffffff;
}

.page-sports__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}