/* style/sports.css */
/* body already has padding-top from shared.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --bg-dark-main: #0A0A0A;
    --bg-card: #111111;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --text-dark-contrast: #333333; /* For light backgrounds */
    --text-light-contrast: #ffffff; /* For dark backgrounds */
}

.page-sports {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the main content area */
    background-color: var(--bg-dark-main); /* Matches body background if set to --bg-dark */
}

.page-sports__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.page-sports__dark-section {
    background-color: var(--bg-card);
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add padding for mobile responsiveness */
    box-sizing: border-box;
}

.page-sports__main-title,
.page-sports__section-title {
    font-size: clamp(2.5rem, 5vw, 3rem); /* Adjusted H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-sports__section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-sports__text-block {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-main);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__small-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--bg-dark-main);
    overflow: hidden;
}

.page-sports__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

.page-sports__hero-content {
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-sports__hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-small {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure minimum width for buttons */
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
    background: var(--button-gradient);
    color: var(--text-light-contrast);
    border: 2px solid transparent;
}

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

.page-sports__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-sports__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    color: var(--bg-dark-main);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-sports__btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 5px;
    background: var(--button-gradient);
    color: var(--text-light-contrast);
    border: none;
    min-width: unset;
}

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

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

/* Image Rows/Grids */
.page-sports__image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-sports__image-item {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Benefits List */
.page-sports__benefits-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-sports__benefits-item {
    background-color: var(--bg-dark-main);
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-main);
}

.page-sports__benefits-item strong {
    color: var(--secondary-color);
}

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

.page-sports__sport-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-sports__sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-sports__sport-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-sports__sport-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
}

/* Steps List (How to Get Started) */
.page-sports__steps-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
    counter-reset: step-counter;
}

.page-sports__steps-item {
    background-color: var(--bg-card);
    padding: 20px 25px 20px 60px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-main);
    position: relative;
}

.page-sports__steps-item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--text-light-contrast);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.page-sports__steps-item strong {
    color: var(--secondary-color);
}

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

.page-sports__promo-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-sports__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-sports__promo-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-sports__promo-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Responsible Gaming List */
.page-sports__responsible-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-sports__responsible-item {
    background-color: var(--bg-dark-main);
    border-left: 5px solid var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-main);
}

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

.page-sports__faq-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
}

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

.page-sports__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1); /* Using primary color with opacity */
}

.page-sports__faq-question h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.2rem; /* Ensure H3 in FAQ is not too large */
}

.page-sports__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1;
    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: var(--bg-dark-main);
    color: var(--text-main);
}

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

.page-sports__faq-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Partners Section */
.page-sports__partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 2x5 grid of 167x127px images */
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    justify-items: center;
}

.page-sports__partner-logo {
    width: 100%;
    max-width: 167px; /* Fixed width as per requirement */
    height: 127px; /* Fixed height as per requirement */
    object-fit: contain; /* Ensure logo is fully visible */
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.05); /* Slight background for visibility */
    padding: 10px;
    box-sizing: border-box;
}

.page-sports__partner-logo:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-sports__section {
        padding: 40px 15px;
    }

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

    .page-sports__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .page-sports__text-block,
    .page-sports__hero-description,
    .page-sports__benefits-item,
    .page-sports__steps-item,
    .page-sports__responsible-item,
    .page-sports__faq-answer p {
        font-size: 1rem;
    }
}