/* style/sports.css */

/* Base styles for the page */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Body background from shared.css */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-sports__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-sports__subsection-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-align: justify;
}

.page-sports__text-block a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-sports__highlight {
    color: #FFFF00;
    font-weight: bold;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    box-sizing: border-box;
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

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

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

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 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;
    text-align: center;
}

.page-sports__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login 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; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

/* Introduction Section */
.page-sports__introduction-section {
    background-color: #1a1a1a;
    padding: 60px 0;
    color: #f0f0f0;
}

.page-sports__introduction-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__introduction-section .page-sports__section-title::after {
    background-color: #FFFF00;
}

.page-sports__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

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

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

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

.page-sports__feature-heading {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 10px;
}

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

/* Categories Section */
.page-sports__categories-section {
    background-color: #0d0d0d;
    padding: 60px 0;
    color: #f0f0f0;
}

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

.page-sports__category-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-sports__category-card:hover {
    transform: translateY(-10px);
    background-color: rgba(1, 116, 57, 0.2);
}

.page-sports__category-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-sports__category-description {
    font-size: 0.95em;
    color: #cccccc;
}

/* Bet Types Section */
.page-sports__bet-types-section {
    background-color: #1a1a1a;
    padding: 60px 0;
    color: #f0f0f0;
}

.page-sports__bet-types-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__bet-types-section .page-sports__section-title::after {
    background-color: #FFFF00;
}

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

.page-sports__bet-type-card {
    background-color: rgba(1, 116, 57, 0.15); /* Brand color with transparency */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: center;
}

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

.page-sports__bet-type-description {
    font-size: 0.95em;
    color: #e0e0e0;
}

/* Guide Section */
.page-sports__guide-section {
    background-color: #0d0d0d;
    padding: 60px 0;
    color: #f0f0f0;
}

.page-sports__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.page-sports__guide-step {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__step-number {
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.page-sports__step-title {
    font-size: 1.6em;
    color: #FFFF00;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-sports__step-description {
    font-size: 1em;
    color: #cccccc;
}

/* Promotions Section */
.page-sports__promotions-section {
    background-color: #1a1a1a;
    padding: 60px 0;
    color: #f0f0f0;
}

.page-sports__promotions-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__promotions-section .page-sports__section-title::after {
    background-color: #FFFF00;
}

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

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

.page-sports__promo-image {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-sports__promo-description {
    font-size: 1em;
    color: #cccccc;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Security Section */
.page-sports__security-section {
    background-color: #0d0d0d;
    padding: 60px 0;
    color: #f0f0f0;
}

.page-sports__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-sports__security-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-sports__security-text {
    flex: 1;
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #1a1a1a;
    padding: 60px 0;
    color: #f0f0f0;
}

.page-sports__faq-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__faq-section .page-sports__section-title::after {
    background-color: #FFFF00;
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(1, 116, 57, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-question:hover {
    background-color: rgba(1, 116, 57, 0.2);
}

.page-sports__faq-heading {
    font-size: 1.2em;
    color: #FFFF00;
    margin: 0;
}

.page-sports__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00;
    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, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
    color: #cccccc;
}

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

.page-sports__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
    color: #cccccc;
}

/* CTA Section */
.page-sports__cta-section {
    background-color: #0d0d0d;
    padding: 60px 0;
    text-align: center;
    color: #f0f0f0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }

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

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

    .page-sports__subsection-title {
        font-size: 1.6em;
    }

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

    .page-sports__security-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

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

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

    .page-sports__container {
        padding: 15px;
    }

    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-sports__subsection-title {
        font-size: 1.4em;
    }

    .page-sports__text-block {
        font-size: 0.95em;
    }

    .page-sports__feature-list,
    .page-sports__categories-grid,
    .page-sports__bet-types-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-sports__guide-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-sports__step-number {
        margin-bottom: 15px;
    }

    .page-sports__security-image {
        max-width: 100%;
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__hero-content,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__promo-card,
    .page-sports__bet-type-card,
    .page-sports__category-card,
    .page-sports__feature-item,
    .page-sports__guide-step,
    .page-sports__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

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

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

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

    .page-sports__cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }

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

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