/* style/sports.css */

/* Base styles for the page content, ensuring proper spacing from fixed header */
.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, default to white */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

/* Section common styles */
.page-sports__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-sports__sub-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

.page-sports__text-block--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333333;
}

.page-sports__list li {
    margin-bottom: 10px;
}

.page-sports__list-highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Button styles */
.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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-sports__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

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

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

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

.page-sports__hero-cta-buttons,
.page-sports__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
}

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

/* Image styles */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Section background colors */
.page-sports__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__sub-title,
.page-sports__dark-bg .page-sports__text-block,
.page-sports__dark-bg .page-sports__list,
.page-sports__dark-bg .page-sports__list li,
.page-sports__dark-bg .page-sports__card-title a {
    color: #ffffff;
}

.page-sports__dark-bg .page-sports__list-highlight {
    color: #f0f8ff; /* Lighter shade for highlight on dark background */
}

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

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__sub-title,
.page-sports__light-bg .page-sports__text-block,
.page-sports__light-bg .page-sports__list,
.page-sports__light-bg .page-sports__list li {
    color: #333333;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
}

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

.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: #f0f8ff;
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for better text contrast */
    position: absolute;
    top: 0;
    left: 0;
}

/* About Section */
.page-sports__about-section {
    padding: 60px 0;
}

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

.page-sports__feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: #f8f8f8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-sports__feature-item:hover {
    transform: translateY(-5px);
}

.page-sports__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 0; /* Icons typically don't have rounded corners */
}

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

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

/* Games Section */
.page-sports__games-section {
    padding: 60px 0;
}

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

.page-sports__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-sports__card-image {
    width: 100%;
    height: 220px; /* Increased height for better visual impact */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.page-sports__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: #ffffff; /* Text color for dark background */
}

.page-sports__card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-sports__card-title a:hover {
    color: #f0f8ff;
}

.page-sports__card-description {
    font-size: 0.95em;
    color: #f0f8ff; /* Text color for dark background */
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 60px 0;
}

.page-sports__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-sports__image-text-block img {
    flex: 1;
    max-width: 50%;
}

.page-sports__image-text-block .page-sports__text-content {
    flex: 1;
    max-width: 50%;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 60px 0;
}

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

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

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

.page-sports__promo-card .page-sports__card-image {
    height: 220px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.page-sports__promo-card .page-sports__card-title {
    color: #ffffff;
    margin-top: 0;
}

.page-sports__promo-card .page-sports__card-description {
    color: #f0f8ff;
    padding: 0 20px;
    margin-bottom: 25px;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 60px 0;
}

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

.page-sports__step-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-sports__step-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-sports__step-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
}

/* App Section */
.page-sports__app-section {
    padding: 60px 0;
}

.page-sports__app-download {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-sports__app-image {
    flex: 1;
    max-width: 50%;
    object-fit: contain; /* Adjust to fit QR code/phone image */
}

.page-sports__app-info {
    flex: 1;
    max-width: 50%;
}

.page-sports__app-info .page-sports__btn-primary {
    margin-bottom: 15px;
}

/* Video Section */
.page-sports__video-section {
    padding: 60px 0;
}

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

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    cursor: pointer; /* Indicate clickability */
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 0;
}

.page-sports__faq-list {
    margin-top: 40px;
}

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

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

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

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