/* style/sports.css */

/* Base styles for the sports page content */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Use shared background variable, fallback to white */
}

/* Container for consistent content width */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

/* Section descriptions */
.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping by default */
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    min-width: 150px; /* Minimum width for buttons */
}

.page-sports__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-sports__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1a8cc2;
    border-color: #1a8cc2;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Default height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.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;
    max-width: 900px;
    padding: 20px;
}

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

.page-sports__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Introduction Section */
.page-sports__introduction-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.page-sports__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

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

.page-sports__text-block {
    flex: 1;
    font-size: 1.1em;
    color: #333333;
}

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

.page-sports__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensures images behave well with max-width */
}

.page-sports__image--full-width {
    width: 100%;
    margin-top: 40px;
}

/* Diverse Sports Section */
.page-sports__diverse-sports-section {
    padding: 60px 20px;
}

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

.page-sports__sport-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-sports__sport-card:hover {
    transform: translateY(-5px);
}

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

.page-sports__card-text {
    font-size: 1em;
    line-height: 1.7;
}

/* Odds Section */
.page-sports__odds-section {
    padding: 60px 20px;
    background-color: #f0f8ff; /* Light blue background */
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto 60px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background-color: #000; /* Fallback for video area */
}

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

.page-sports__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow clicks through by default */
}

.page-sports__video-wrapper:hover .page-sports__video-overlay {
    opacity: 1;
    pointer-events: auto; /* Enable clicks on hover */
}

.page-sports__video-title {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
}

.page-sports__video-cta {
    background-color: #EA7C07; /* Login color for CTA */
    border-color: #EA7C07;
}

.page-sports__video-cta:hover {
    background-color: #c76706;
    border-color: #c76706;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
}

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

.page-sports__promo-card {
    background-color: #fcfcfc;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__promo-card:hover {
    transform: translateY(-5px);
}

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

.page-sports__promo-card .page-sports__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
}

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

.page-sports__promo-card .page-sports__btn-secondary {
    margin-top: auto; /* Push button to bottom */
}

.page-sports__cta-full-width {
    text-align: center;
    margin-top: 60px;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

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

.page-sports__guide-step {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    color: #333333;
    position: relative;
    padding-left: 60px; /* Space for step number */
}

.page-sports__guide-step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 30px;
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-sports__guide-steps {
    counter-reset: step-counter; /* Reset counter for guide steps */
}

.page-sports__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__step-text {
    font-size: 1em;
    line-height: 1.7;
}

.page-sports__step-text a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-sports__step-text a:hover {
    color: #1a8cc2;
}

/* Support Section */
.page-sports__support-section {
    padding: 60px 20px;
    background-color: #f0f8ff; /* Light blue background */
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
}

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

.page-sports__faq-item {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f0f8ff;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: #e0f0ff;
}

.page-sports__faq-question h3 {
    margin: 0;
    font-size: 1.2em; /* Ensure heading size is consistent */
    color: #26A9E0;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}