/* style/sports.css */

/* Base Styles for page-sports */
.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 */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* Color Contrast Handling */
.page-sports__dark-bg {
    background-color: #017439; /* Main brand color for sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-sports__light-bg .page-sports__section-title {
    color: #017439; /* Brand color for titles on light background */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    overflow: hidden;
    background-color: #017439; /* Main brand color */
}

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

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

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

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

.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;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
}

.page-sports__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
}

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

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

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

.page-sports__hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay to make text readable */
    display: block;
}

/* Intro Section */
.page-sports__intro-section .page-sports__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.page-sports__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-sports__feature-image {
    width: 100%;
    max-width: 400px; /* Constrain image width within card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

.page-sports__feature-card .page-sports__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight title */
    font-weight: bold;
}

.page-sports__feature-card .page-sports__card-description {
    font-size: 1em;
    line-height: 1.7;
    color: #f0f0f0;
}

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

.page-sports__betting-grid .page-sports__card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

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

.page-sports__betting-grid .page-sports__card-description {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

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

.page-sports__guide-list li {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-sports__list-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-sports__guide-list p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-sports__cta-buttons--centered {
    margin-top: 40px;
    text-align: center;
}

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

.page-sports__promotions-grid .page-sports__card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-sports__promotions-grid .page-sports__card-image {
    width: 100%;
    max-width: 400px; /* Constrain image width within card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

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

.page-sports__promotions-grid .page-sports__card-description {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
    flex-grow: 1; /* Make description take available space */
}

.page-sports__link-more {
    display: inline-block;
    margin-top: 20px;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-sports__link-more:hover {
    color: #004d26;
    text-decoration: underline;
}

/* Video Section */
.page-sports__video-section {
    background-color: #1a1a1a; /* Darker background for video */
    padding: 60px 0;
    text-align: center;
}

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

.page-sports__video-link {
    display: block; /* Make the whole area clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px; /* Match wrapper border-radius */
}

.page-sports__video-caption {
    font-size: 1em;
    color: #cccccc;
    margin-top: 15px;
}

/* FAQ Section */
.page-sports__faq-section {
    padding-bottom: 60px; /* Add padding to the bottom */
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    color: #017439;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

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

.page-sports__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #017439;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}