/* style/sports.css */

/* Base styles for the page content */
.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); /* Apply header offset here for PC and mobile */
}

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

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

.page-sports__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0; /* Internal padding, not for header offset */
    overflow: hidden;
    min-height: 600px;
    background: linear-gradient(135deg, #017439, #004d26); /* Brand color gradient */
    color: #ffffff;
    text-align: center;
}

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

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

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

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

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

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Login font color */
    border: 2px solid #C30808; /* Login color */
}

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

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

.page-sports__video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-sports__video-link {
    display: block;
    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;
    border-radius: 10px;
    display: block;
}

/* Features Section */
.page-sports__features-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-sports__features-section .page-sports__section-title,
.page-sports__features-section .page-sports__section-description {
    color: #333333;
}

.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: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-sports__feature-icon {
    width: 200px; /* Min size */
    height: 150px; /* Min size */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
}

.page-sports__feature-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.page-sports__feature-list li {
    margin-bottom: 8px;
    color: #555555;
}

.page-sports__feature-link,
.page-sports__btn-text-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-sports__feature-link:hover,
.page-sports__btn-text-link:hover {
    color: #004d26;
    text-decoration: underline;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color dark background */
    color: #ffffff;
    text-align: center;
}

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

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

.page-sports__guide-title {
    font-size: 1.8em;
    color: #FFFF00; /* Accent color for titles */
    margin-bottom: 15px;
}

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

/* Bet Types Section */
.page-sports__bet-types-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-sports__bet-types-section .page-sports__section-title,
.page-sports__bet-types-section .page-sports__section-description {
    color: #333333;
}

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

.page-sports__bet-type-card {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-sports__bet-type-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-sports__bet-type-text {
    font-size: 0.95em;
    color: #555555;
}

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

.page-sports__promo-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-sports__promo-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__promo-details {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-sports__promo-subtitle {
    font-size: 1.8em;
    color: #FFFF00;
    margin-top: 20px;
    margin-bottom: 10px;
}

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

/* About Section */
.page-sports__about-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-sports__about-section .page-sports__section-title,
.page-sports__about-section .page-sports__section-description {
    color: #333333;
}

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

.page-sports__about-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
}

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

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

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color dark background */
    color: #ffffff;
    text-align: center;
}

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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-sports__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-sports__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Adjust padding for visual consistency */
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important; /* Apply padding when active */
}

.page-sports__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__promo-content {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__promo-details {
        min-width: unset;
    }
    .page-sports__promo-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__container {
        padding: 0 15px;
    }

    .page-sports__hero-section {
        padding: 60px 0; /* Adjust internal padding */
        min-height: 500px;
    }

    .page-sports__hero-title {
        font-size: 2.5em;
    }

    .page-sports__hero-description {
        font-size: 1em;
    }

    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__video-section,
    .page-sports__features-section,
    .page-sports__guide-section,
    .page-sports__bet-types-section,
    .page-sports__promotions-section,
    .page-sports__about-section,
    .page-sports__faq-section {
        padding: 50px 0;
    }
    
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-sports__features-grid,
    .page-sports__guide-steps,
    .page-sports__bet-types-grid,
    .page-sports__about-grid {
        grid-template-columns: 1fr;
    }

    .page-sports__feature-icon {
        width: 180px; /* Adjusted min size for mobile */
        height: 135px;
    }

    .page-sports__promo-image {
        max-width: 100%;
    }

    .page-sports__promo-details {
        text-align: center;
    }

    .page-sports__promo-subtitle {
        font-size: 1.5em;
    }

    .page-sports__faq-question {
        padding: 15px;
    }

    .page-sports__faq-title {
        font-size: 1.1em;
    }

    .page-sports__faq-answer {
        padding: 0 15px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px !important;
    }

    /* Ensure content containers also adapt */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container,
    .page-sports__promo-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-sports__container if needed */
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__hero-section {
        min-height: 400px;
    }
    .page-sports__hero-buttons {
        gap: 10px;
    }
}