/* style/sports.css */

/* Base styles for the page */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default white */
}

/* Sections */
.page-sports__section {
    padding: 60px 20px;
    text-align: center;
}

.page-sports__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit;
}

.page-sports__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit;
}

.page-sports__mt-20 {
    margin-top: 20px;
}

.page-sports__mt-40 {
    margin-top: 40px;
}

/* Hero Section */
.page-sports__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-offset, 120px) 20px 60px 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.page-sports__hero-content {
    max-width: 600px;
    z-index: 1;
    position: relative;
    margin-right: 40px;
}

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

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

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

.page-sports__hero-image-wrapper {
    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;
    filter: brightness(0.7);
}

/* Buttons */
.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;
}

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

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

/* Specific login/register button styling to override primary for brand color #EA7C07 */
.page-sports__btn-login, .page-sports__btn-action:first-child {
    background-color: #EA7C07;
    color: #333333; /* Dark text for contrast with orange */
    border-color: #EA7C07;
}

.page-sports__btn-login:hover, .page-sports__btn-action:first-child:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

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

.page-sports__btn-secondary:hover {
    background-color: #e6f7ff;
    color: #1e87c2;
    border-color: #1e87c2;
}

/* Content Area */
.page-sports__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

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

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

.page-sports__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

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

/* Sport Categories Grid */
.page-sports__sport-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__category-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

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

.page-sports__category-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eeeeee;
}

.page-sports__category-card h3 {
    padding: 20px 25px 0;
}

.page-sports__category-title {
    font-size: 1.4em;
    color: #333333;
    margin-bottom: 10px;
}

.page-sports__category-link {
    text-decoration: none;
    color: #26A9E0;
}

.page-sports__category-link:hover {
    text-decoration: underline;
}

.page-sports__category-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 25px 25px;
}

/* Video Section */
.page-sports__video-wrapper {
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    background-color: #000;
}

.page-sports__video-link {
    display: block;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.page-sports__video {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-sports__guide-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

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

.page-sports__guide-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eeeeee;
}

.page-sports__guide-card h3 {
    padding: 20px 25px 0;
}

.page-sports__guide-title {
    font-size: 1.4em;
    color: #333333;
    margin-bottom: 10px;
}

.page-sports__guide-link {
    text-decoration: none;
    color: #26A9E0;
}

.page-sports__guide-link:hover {
    text-decoration: underline;
}

.page-sports__guide-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 25px 25px;
}

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

.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.05);
    text-align: left;
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-sports__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__promo-card h3 {
    padding: 20px 25px 0;
}

.page-sports__promo-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-sports__promo-link {
    text-decoration: none;
    color: #ffffff;
}

.page-sports__promo-link:hover {
    text-decoration: underline;
}

.page-sports__promo-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 25px 25px;
}

/* Responsible Gaming */
.page-sports__responsible-gaming-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto;
    text-align: left;
}

.page-sports__responsible-gaming-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-sports__responsible-gaming-text {
    flex: 1;
}

.page-sports__text-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-sports__text-paragraph {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

/* FAQ Section */
.page-sports__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

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

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

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

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    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 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
}

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

.page-sports__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* CTA Section */
.page-sports__cta-section {
    padding: 80px 20px;
    color: #ffffff;
}

.page-sports__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-sports__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ffffff;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__hero-section {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
    }

    .page-sports__hero-content {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .page-sports__hero-buttons {
        justify-content: center;
    }

    .page-sports__responsible-gaming-content {
        flex-direction: column;
        text-align: center;
    }

    .page-sports__responsible-gaming-image {
        margin-bottom: 30px;
    }
}

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

    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 30px;
    }

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

    .page-sports__hero-description,
    .page-sports__section-description,
    .page-sports__text-paragraph,
    .page-sports__cta-description {
        font-size: 1em;
    }

    .page-sports__section-title {
        font-size: 2em;
    }

    .page-sports__cta-title {
        font-size: 2.2em;
    }

    .page-sports__hero-buttons,
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports a[class*="button"],
    .page-sports a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-sports__hero-image,
    .page-sports__feature-icon,
    .page-sports__category-image,
    .page-sports__video,
    .page-sports__guide-image,
    .page-sports__promo-image,
    .page-sports__responsible-gaming-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__video-wrapper,
    .page-sports__features-grid,
    .page-sports__sport-categories-grid,
    .page-sports__guides-grid,
    .page-sports__promotions-grid,
    .page-sports__responsible-gaming-content,
    .page-sports__faq-list,
    .page-sports__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-sports__feature-card,
    .page-sports__category-card,
    .page-sports__guide-card,
    .page-sports__promo-card {
        margin-bottom: 20px;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 20px 20px;
    }
}