/* style/sports.css */

/* Base styles for the sports page content */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f9f9f9 */
    background-color: #f9f9f9; /* Ensure consistent background if shared.css doesn't set body */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #0A2342; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Buttons */
.page-sports__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
}

.page-sports__button--primary {
    background-color: #FFD700; /* Gold accent color */
    color: #0A2342; /* Dark blue text for contrast */
    border: 2px solid #FFD700;
}

.page-sports__button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-sports__button--secondary {
    background-color: transparent;
    color: #0A2342; /* Dark blue text */
    border: 2px solid #0A2342;
    margin-left: 15px;
}

.page-sports__button--secondary:hover {
    background-color: #0A2342;
    color: #FFD700;
}

.page-sports__button--small {
    padding: 8px 18px;
    font-size: 0.9em;
    border-radius: 6px;
    margin-top: 15px;
}

.page-sports__button--center {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 250px;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden; /* Ensure image doesn't overflow */
    background-color: #0A2342; /* Dark background for hero section */
    color: #ffffff; /* White text for contrast */
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3; /* Subtle background image */
}

.page-sports__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Ensure image display size is large enough */
    min-width: 200px;
    min-height: 200px;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-sports__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Gold for main title */
}

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

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

/* Overview Section */
.page-sports__overview-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-sports__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-sports__card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    /* Image size constraint */
    min-width: 200px;
    min-height: 200px;
}

.page-sports__card-title {
    font-size: 1.8em;
    color: #0A2342;
    margin-bottom: 10px;
}

.page-sports__card-text {
    font-size: 0.95em;
    color: #666666;
    flex-grow: 1; /* Allow text to take up available space */
}

/* Live Betting Section */
.page-sports__live-betting-section {
    padding: 80px 0;
    background-color: #e8eef4; /* Light blue-grey background */
}

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

.page-sports__feature-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
}

.page-sports__feature-title {
    font-size: 1.6em;
    color: #0A2342;
    margin-bottom: 10px;
}

.page-sports__feature-text {
    color: #666666;
}

.page-sports__live-betting-image {
    text-align: center;
    margin-bottom: 50px;
}

.page-sports__live-betting-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    /* Image size constraint */
    min-width: 200px;
    min-height: 200px;
}

/* Why jiliph888 Section */
.page-sports__why-jiliph888-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-sports__advantage-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.page-sports__advantage-item:hover {
    background-color: #eef4f9;
}

.page-sports__advantage-title {
    font-size: 1.7em;
    color: #0A2342;
    margin-bottom: 15px;
}

.page-sports__advantage-text {
    color: #666666;
}

.page-sports__conclusion-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 60px auto 0 auto;
    color: #333333;
    font-style: italic;
}

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

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

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

.page-sports__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    /* Image size constraint */
    min-width: 200px;
    min-height: 200px;
}

.page-sports__promo-title {
    font-size: 1.8em;
    color: #0A2342;
    margin-bottom: 10px;
}

.page-sports__promo-text {
    font-size: 0.95em;
    color: #666666;
    flex-grow: 1;
}

/* App Section */
.page-sports__app-section {
    padding: 80px 0;
    background-color: #0A2342; /* Dark blue background */
    color: #ffffff;
}

.page-sports__app-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-sports__app-content {
    flex: 1;
    min-width: 300px;
}

.page-sports__app-content .page-sports__section-title,
.page-sports__app-content .page-sports__section-description {
    text-align: left;
    color: #ffffff; /* White text for dark background */
}

.page-sports__app-content .page-sports__section-title {
    color: #FFD700; /* Gold title */
}

.page-sports__app-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    margin-bottom: 40px;
}

.page-sports__app-feature-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-sports__app-feature-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #FFD700;
}

.page-sports__app-image {
    flex: 0 0 auto; /* Prevent shrinking */
    width: 400px; /* Fixed width for desktop */
    text-align: center;
}

.page-sports__app-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    /* Image size constraint */
    min-width: 200px;
    min-height: 200px;
}

/* Getting Started Section */
.page-sports__getting-started-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-sports__step-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__step-title {
    font-size: 1.8em;
    color: #0A2342;
    margin-bottom: 15px;
}

.page-sports__step-text {
    font-size: 1em;
    color: #666666;
    flex-grow: 1;
}

/* CTA Section */
.page-sports__cta-section {
    padding: 80px 0;
    background-color: #0A2342; /* Dark blue background */
    color: #ffffff;
    text-align: center;
}

.page-sports__section-title--cta {
    color: #FFD700; /* Gold title */
}

.page-sports__section-description--cta {
    color: #f0f0f0;
    margin-bottom: 50px;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2.2em;
    }
    .page-sports__app-container {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__app-content {
        text-align: center;
    }
    .page-sports__app-content .page-sports__section-title,
    .page-sports__app-content .page-sports__section-description {
        text-align: center;
    }
    .page-sports__app-features {
        text-align: left; /* Keep feature list left-aligned */
        margin: 30px auto;
        max-width: 400px;
    }
    .page-sports__app-image {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding: 80px 15px;
        min-height: 500px;
    }
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__button--secondary {
        margin-left: 0;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-sports__button {
        width: 80%;
        max-width: 300px;
    }
    .page-sports__grid,
    .page-sports__features-list,
    .page-sports__advantages-grid,
    .page-sports__promotions-grid,
    .page-sports__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-sports__card img,
    .page-sports__promo-card img {
        height: auto; /* Allow image height to adjust */
    }
    .page-sports__app-image img,
    .page-sports__live-betting-image img {
        max-width: 100%;
        height: auto;
        /* Critical for mobile overflow */
        min-width: 200px;
        min-height: 200px;
    }
    /* Ensure all content area images are responsive and don't overflow */
    .page-sports img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__section-title {
        font-size: 1.6em;
    }
    .page-sports__hero-section {
        padding: 60px 10px;
    }
    .page-sports__container {
        padding: 0 15px;
    }
    .page-sports__button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-sports__app-feature-item {
        font-size: 1em;
    }
}