/* style/sports.css */

/* Custom Colors */
:root {
    --page-sports-primary: #11A84E;
    --page-sports-secondary: #22C768;
    --page-sports-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-sports-card-bg: #11271B;
    --page-sports-background: #08160F;
    --page-sports-text-main: #F2FFF6;
    --page-sports-text-secondary: #A7D9B8;
    --page-sports-border: #2E7A4E;
    --page-sports-glow: #57E38D;
    --page-sports-gold: #F2C14E;
    --page-sports-divider: #1E3A2A;
    --page-sports-deep-green: #0A4B2C;
}

/* Body already handles padding-top from shared.css */
.page-sports {
    font-family: Arial, sans-serif;
    color: var(--page-sports-text-main); /* Default text color for the page */
    background-color: var(--page-sports-background); /* Dark background */
}

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

.page-sports__section.page-sports__dark-section {
    background-color: var(--page-sports-deep-green);
    color: var(--page-sports-text-main);
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure width is 100% for desktop too */
    box-sizing: border-box;
}

.page-sports__section-title {
    font-size: clamp(2.2rem, 3.5vw, 2.8rem); 
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--page-sports-gold);
    line-height: 1.2;
}

.page-sports__section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-sports-text-secondary);
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding for hero section */
    overflow: hidden;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for hero image wrapper */
    margin: 0 auto;
    position: relative;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for aesthetic */
}

.page-sports__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    text-align: center;
    background: var(--page-sports-background); /* Ensure contrast */
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly with image for design */
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-sports__main-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem); 
    font-weight: bold;
    color: var(--page-sports-gold);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.2rem;
    color: var(--page-sports-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* 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: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
    width: auto; /* Default auto width */
}

.page-sports__btn-primary {
    background: var(--page-sports-btn-gradient);
    color: var(--page-sports-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
    background: transparent;
    color: var(--page-sports-primary);
    border: 2px solid var(--page-sports-primary);
    box-shadow: none;
}

.page-sports__btn-secondary:hover {
    background: var(--page-sports-primary);
    color: var(--page-sports-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Feature Section */
.page-sports__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-sports__feature-item {
    background-color: var(--page-sports-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Ensure equal height */
    border: 1px solid var(--page-sports-border);
}

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

.page-sports__feature-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--page-sports-gold);
    margin-bottom: 10px;
    text-align: center;
}

.page-sports__feature-text {
    font-size: 1rem;
    color: var(--page-sports-text-secondary);
    line-height: 1.6;
    text-align: center;
    flex-grow: 1; /* Allow text to grow */
}

/* Bet Types Section (Dark Background) */
.page-sports__bet-types-section .page-sports__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-sports__bet-types-section .page-sports__card {
    background-color: var(--page-sports-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--page-sports-border);
    height: 100%; /* Ensure equal height */
}

.page-sports__bet-types-section .page-sports__card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-sports-gold);
    margin-bottom: 10px;
}

.page-sports__bet-types-section .page-sports__card-text {
    font-size: 1rem;
    color: var(--page-sports-text-secondary);
    line-height: 1.6;
}

/* Promotions Section */
.page-sports__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-sports__promo-card {
    background-color: var(--page-sports-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    border: 1px solid var(--page-sports-border);
}

.page-sports__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-sports__promo-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--page-sports-gold);
    margin-bottom: 10px;
    text-align: center;
}

.page-sports__promo-text {
    font-size: 1rem;
    color: var(--page-sports-text-secondary);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Getting Started Section */
.page-sports__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-sports__step-item {
    background-color: var(--page-sports-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    border: 1px solid var(--page-sports-border);
}

.page-sports__step-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--page-sports-primary);
    margin-bottom: 15px;
    background: var(--page-sports-background);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--page-sports-primary);
}

.page-sports__step-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--page-sports-gold);
    margin-bottom: 10px;
    text-align: center;
}

.page-sports__step-text {
    font-size: 1rem;
    color: var(--page-sports-text-secondary);
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
}

/* Responsible Gambling Section */
.page-sports__responsible-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin: 40px auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-sports__responsible-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-sports__responsible-item {
    font-size: 1.1rem;
    color: var(--page-sports-text-secondary);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.page-sports__responsible-item::before {
    content: '✓';
    color: var(--page-sports-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.3rem;
}

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

.page-sports__faq-item {
    background-color: var(--page-sports-card-bg);
    border: 1px solid var(--page-sports-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-sports__faq-item summary {
    list-style: none; /* Remove default marker */
}

.page-sports__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit */
}

.page-sports__faq-question {
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-sports-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--page-sports-card-bg);
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: var(--page-sports-deep-green);
}

.page-sports__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--page-sports-gold);
    margin-left: 15px;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-sports__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-sports-text-secondary);
    line-height: 1.6;
}

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


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sports__hero-image {
        max-height: 500px;
    }
    .page-sports__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-sports__main-title {
        font-size: clamp(2rem, 3.5vw, 2.5rem);
    }
    .page-sports__hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-sports__section {
        padding: 40px 15px;
    }
    .page-sports__section-title {
        font-size: clamp(1.8rem, 4.5vw, 2.2rem);
    }
    .page-sports__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Hero Section Mobile */
    .page-sports__hero-section {
        padding-top: 10px !important; /* Body handles header offset */
    }
    .page-sports__hero-image {
        max-height: 300px;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        width: calc(100% - 30px) !important; /* Account for padding */
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__main-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
    .page-sports__hero-description {
        font-size: 0.95rem;
    }
    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Images Mobile */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__container,
    .page-sports__feature-item,
    .page-sports__card,
    .page-sports__promo-card,
    .page-sports__step-item,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px; /* Add padding to prevent content touching edges */
        margin-left: auto;
        margin-right: auto;
    }
    .page-sports__feature-image,
    .page-sports__promo-image,
    .page-sports__responsible-image {
        height: auto !important; /* Allow height to adjust */
        min-height: 200px !important; /* Ensure minimum size */
    }

    /* FAQ Mobile */
    .page-sports__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-sports__faq-toggle {
        font-size: 1.5rem;
    }
    .page-sports__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }
}