/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    line-height: 1.6;
}

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

.page-sports__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD36B; /* Glow / Auxiliary */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__section-description,
.page-sports__paragraph {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF6D6;
}

.page-sports__paragraph {
    text-align: left;
    margin: 20px auto;
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    width: auto; /* Default to auto, overridden by media query for mobile */
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #111111; /* Dark text for contrast on bright button */
    border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background: #111111; /* Card BG */
    color: #FFD36B; /* Glow */
    border: 2px solid #3A2A12; /* Border */
}

.page-sports__btn-secondary:hover {
    background: #FFD36B;
    color: #111111;
    border-color: #FFD36B;
    transform: translateY(-2px);
}

.page-sports__card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 25px;
    color: #FFF6D6;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-sports__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability, not color change */
}

.page-sports__hero-content-overlay {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-sports__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-sports__hero-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Use clamp for H1 */
    font-weight: 700;
    color: #FFD36B; /* Glow */
    margin-bottom: 10px;
    line-height: 1.1;
}

.page-sports__hero-description {
    font-size: 1.2em;
    color: #FFF6D6;
    max-width: 700px;
    margin-bottom: 30px;
}

/* Categories Section */
.page-sports__categories-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-sports__category-card {
    text-align: center;
    padding: 25px;
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.1);
}

.page-sports__category-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 15px;
    object-fit: contain;
}

.page-sports__category-title {
    font-size: 1.4em;
    color: #FFD36B; /* Glow */
    margin-bottom: 10px;
}

.page-sports__category-text {
    font-size: 0.95em;
    color: #FFF6D6;
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
}

.page-sports__live-betting-section .page-sports__container {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.page-sports__live-betting-content {
    flex: 1;
}

.page-sports__live-betting-content .page-sports__section-title,
.page-sports__live-betting-content .page-sports__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-sports__live-betting-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-sports__live-betting-features li {
    font-size: 1.1em;
    color: #FFF6D6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-sports__live-betting-features li::before {
    content: '✓';
    color: #FFD36B;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-sports__live-betting-image {
    flex: 1;
    text-align: center;
}

.page-sports__live-betting-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Why phdream Sports Section */
.page-sports__why-phdream-sports {
    padding: 80px 0;
    text-align: center;
}

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

.page-sports__advantage-card {
    text-align: left;
}

.page-sports__advantage-title {
    font-size: 1.5em;
    color: #FFD36B; /* Glow */
    margin-bottom: 10px;
}

.page-sports__advantage-text {
    font-size: 1em;
    color: #FFF6D6;
}

/* How to Start Section */
.page-sports__how-to-start-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
    text-align: center;
}

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

.page-sports__step-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.page-sports__step-number {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #111111; /* Dark text */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
}

.page-sports__step-title {
    font-size: 1.3em;
    color: #FFD36B; /* Glow */
}

.page-sports__step-text {
    font-size: 0.95em;
    color: #FFF6D6;
}

/* Featured Events Section */
.page-sports__featured-events-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-sports__event-card {
    overflow: hidden;
    text-align: left;
}

.page-sports__event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #3A2A12;
    margin-bottom: 15px;
}

.page-sports__event-title {
    font-size: 1.4em;
    color: #FFD36B; /* Glow */
    margin-bottom: 8px;
    padding: 0 15px;
}

.page-sports__event-date {
    font-size: 0.9em;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-sports__event-text {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-sports__event-card .page-sports__btn-primary {
    width: calc(100% - 30px); /* Adjust for padding */
    margin: 0 15px 15px 15px; /* Adjust for padding */
}

/* Responsible Gambling Section */
.page-sports__responsible-gambling-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
    text-align: center;
}

.page-sports__responsible-gambling-section .page-sports__content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-sports__responsible-list li {
    font-size: 1.1em;
    color: #FFF6D6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-sports__responsible-list li::before {
    content: '•';
    color: #F2C14E;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-sports__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    color: #FFD36B; /* Glow */
    background-color: #111111; /* Card BG */
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent font size */
    color: inherit;
}

.page-sports__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #F2C14E;
    transition: transform 0.3s ease;
    line-height: 1;
}

.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, padding 0.3s ease;
    color: #FFF6D6;
    text-align: left;
}

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

/* Bottom CTA Section */
.page-sports__cta-bottom-section {
    padding: 80px 0;
    background-color: #0A0A0A; /* Background */
    text-align: center;
}

.page-sports__cta-bottom-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Design */

/* All images base responsive style */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Video container specific styles */
.page-sports__hero-video-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-sports {
        font-size: 15px;
        line-height: 1.5;
    }

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

    .page-sports__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-sports__section-description,
    .page-sports__paragraph {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-sports__hero-section {
        min-height: 450px;
        padding-top: 10px !important; /* Body handles header offset */
    }

    .page-sports__hero-content-overlay {
        padding: 20px 15px;
    }

    .page-sports__hero-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

    .page-sports__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .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__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Categories Section */
    .page-sports__categories-section,
    .page-sports__live-betting-section,
    .page-sports__why-phdream-sports,
    .page-sports__how-to-start-section,
    .page-sports__featured-events-section,
    .page-sports__responsible-gambling-section,
    .page-sports__faq-section,
    .page-sports__cta-bottom-section {
        padding: 40px 0;
    }

    .page-sports__categories-grid {
        grid-template-columns: 1fr;
    }

    /* Live Betting Section */
    .page-sports__live-betting-section .page-sports__container {
        flex-direction: column;
        text-align: center;
    }

    .page-sports__live-betting-content .page-sports__section-title,
    .page-sports__live-betting-content .page-sports__section-description {
        text-align: center;
    }

    .page-sports__live-betting-features {
        text-align: left;
    }

    /* Why phdream Sports Section */
    .page-sports__advantages-grid {
        grid-template-columns: 1fr;
    }

    /* How to Start Section */
    .page-sports__steps-grid {
        grid-template-columns: 1fr;
    }

    /* Featured Events Section */
    .page-sports__events-grid {
        grid-template-columns: 1fr;
    }

    .page-sports__event-card .page-sports__btn-primary {
        width: calc(100% - 30px) !important;
    }

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

    .page-sports__faq-answer {
        padding: 0 20px;
    }

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

    /* Ensure all images inside .page-sports are responsive */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Video elements responsive */
    .page-sports__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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