/* style/sports.css */

/* --- General Page Styling --- */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default page background */
}

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

.page-sports__section {
    padding: 60px 0;
    text-align: center;
}

.page-sports__section-title {
    font-size: 38px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #017439; /* Brand color for titles */
}

.page-sports__section-description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* --- Hero Section --- */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #28a745); /* Gradient from primary to a lighter green */
    color: #ffffff;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-sports__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-sports__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure image is below content overlay */
}

.page-sports__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-top: -80px; /* Overlap content slightly on the image */
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 12px;
    box-sizing: border-box;
}

.page-sports__main-title {
    font-size: 52px;
    margin-bottom: 15px;
    font-weight: 900;
    color: #FFFF00; /* Yellow for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-sports__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-sports__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
}

.page-sports__cta-button.page-sports__btn-register {
    background: #C30808; /* Register button color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #FFFF00;
}

.page-sports__cta-button.page-sports__btn-register:hover {
    background: #a10707;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button.page-sports__btn-login {
    background: #C30808; /* Login button color */
    color: #FFFF00; /* Login font color */
    border: 2px solid #FFFF00;
}

.page-sports__cta-button.page-sports__btn-login:hover {
    background: #a10707;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Content Grid & Cards --- */
.page-sports__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-sports__card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333333;
}

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

.page-sports__card-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-sports__main-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* --- Section Specific Styles --- */
.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-sports__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__section-description {
    color: #ffffff;
}

.page-sports__dark-bg .page-sports__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-sports__dark-bg .page-sports__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2e;
}

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

.page-sports__sports-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-sports__sports-card-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Odds Section */
.page-sports__odds-section .page-sports__content-area {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__odds-section h3 {
    color: #017439;
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-sports__odds-section ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-sports__odds-section li {
    margin-bottom: 10px;
    color: #555555;
}

.page-sports__btn-primary {
    background: #017439;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
    background: #005f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-sports__promo-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-sports__promo-card-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Mobile App Section */
.page-sports__mobile-content {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    margin-top: 40px;
}

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

.page-sports__mobile-text h3 {
    font-size: 32px;
    color: #017439;
    margin-bottom: 20px;
}

.page-sports__mobile-text ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 25px;
    color: #555555;
}

.page-sports__mobile-text li {
    margin-bottom: 8px;
}

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

.page-sports__mobile-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    margin: 0 auto; /* Center image */
}

/* Security Support Section */
.page-sports__security-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* News Blog Section */
.page-sports__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-sports__news-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333333;
    display: flex;
    flex-direction: column;
}

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

.page-sports__news-card img {
    width: 100%;
    height: 225px; /* Fixed height for consistency, will be adjusted by object-fit */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e0e0e0;
}

.page-sports__news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__news-title {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-sports__news-title a {
    color: #017439;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.page-sports__news-title a:hover {
    color: #005f2e;
}

.page-sports__news-date {
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
}

.page-sports__news-content p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.page-sports__button-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

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

.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}