/* Base styles for the sports page */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Dark body background, so light text */
    background-color: var(--deep-navy); /* From shared.css */
}

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

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

.page-sports__dark-section {
    background-color: var(--card-bg); /* Use specified card background for dark sections */
    color: var(--text-main);
}

.page-sports__section-title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold); /* Use gold for main titles */
    line-height: 1.2;
}

.page-sports__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-main);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Buttons */
.page-sports__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button adapts to width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 59, 122, 0.4);
}

.page-sports__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background: transparent;
    color: var(--text-main); /* Light text on dark background */
    border: 2px solid var(--border);
}

.page-sports__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-sports__btn--center {
    margin-left: auto;
    margin-right: auto;
    display: block; /* For single button to center */
    max-width: 300px; /* Limit width for single button */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body has --header-offset */
    padding-bottom: 60px;
    background-color: var(--deep-navy);
}

.page-sports__hero-image {
    width: 100%;
    max-height: 550px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-sports__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover for desktop */
}

.page-sports__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-sports__main-title {
    font-size: clamp(32px, 4.5vw, 56px); /* Use clamp for H1 */
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Introduction Section */
.page-sports__introduction-section .page-sports__text-block {
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Betting Types Section (Cards) */
.page-sports__betting-types-section {
    background-color: var(--card-bg); /* Custom background for this section */
    color: var(--text-main);
}

.page-sports__betting-types-section .page-sports__section-title {
    color: var(--gold);
}

.page-sports__betting-types-section .page-sports__text-block {
    color: var(--text-secondary);
}

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

.page-sports__card {
    background-color: var(--card-bg); /* Card background color */
    border: 1px solid var(--border); /* Border color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

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

.page-sports__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-sports__card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: var(--gold);
}

.page-sports__card-text {
    font-size: 16px;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    flex-grow: 1; /* Make text block grow to fill space */
}

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

.page-sports__advantage-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.page-sports__advantage-item:hover {
    transform: translateY(-5px);
}

.page-sports__advantage-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-sports__advantage-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 15px;
}

.page-sports__advantage-text {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Guide Section */
.page-sports__guide-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-sports__guide-steps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-sports__step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-sports__step-number {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: var(--text-main);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(17, 59, 122, 0.4);
}

.page-sports__step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin-top: 5px;
    margin-bottom: 5px;
}

.page-sports__step-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 0;
}

.page-sports__guide-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__guide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

/* FAQ Section */
details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 10px; /* Increased border-radius for modern look */
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg); /* Use card background for FAQ items */
  color: var(--text-main);
}
details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
  display: none;
}
details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: rgba(242, 193, 78, 0.1); /* Subtle hover effect using Gold rgb */
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 18px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* Ensure text is visible */
}
.page-sports__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  color: var(--gold); /* Gold color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px; /* Larger toggle area */
  text-align: center;
}
details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-navy); /* Darker background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
  font-size: 16px;
}
.page-sports__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Conclusion Section */
.page-sports__conclusion-section .page-sports__text-block {
    text-align: justify;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Global image styles for content area */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for most images */
}

/* Responsive Styles */
/* Tablet & smaller desktop screens */
@media (max-width: 1024px) {
    .page-sports__container {
        padding: 20px;
    }

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

    .page-sports__hero-section {
        padding-bottom: 40px;
    }

    .page-sports__main-title {
        font-size: clamp(28px, 4vw, 48px);
    }

    .page-sports__hero-description {
        font-size: 17px;
    }

    .page-sports__btn {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-sports__guide-content {
        flex-direction: column;
    }

    .page-sports__guide-image-wrapper {
        order: -1; /* Image above steps on tablet */
        max-width: 80%;
    }
}

/* Mobile specific styles */
@media (max-width: 849px) { /* HERO specific breakpoint */
    .page-sports__hero-image img {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        height: auto !important; /* Ensure height adjusts */
    }
}

@media (max-width: 768px) {
    .page-sports__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__section {
        padding: 40px 0;
    }

    .page-sports__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .page-sports__text-block {
        font-size: 16px;
        text-align: left; /* Adjust text alignment for mobile */
    }

    /* HERO Section */
    .page-sports__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .page-sports__main-title {
        font-size: clamp(24px, 7vw, 36px); /* Smaller clamp for mobile H1 */
        margin-bottom: 15px;
    }

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

    .page-sports__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px; /* Add padding to container */
        padding-right: 15px;
    }

    .page-sports__btn {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-sports__btn--center {
        max-width: 100% !important;
    }

    /* Images */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Card Layouts */
    .page-sports__content-grid,
    .page-sports__advantages-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-sports__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }

    .page-sports__card-title {
        font-size: 20px;
        margin: 15px 15px 8px;
    }

    .page-sports__card-text {
        font-size: 15px;
        padding: 0 15px 15px;
    }

    .page-sports__advantage-item {
        padding: 20px;
    }

    .page-sports__advantage-title {
        font-size: 20px;
    }

    .page-sports__advantage-icon {
        max-width: 180px;
    }

    /* Guide Section */
    .page-sports__guide-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-sports__guide-image-wrapper {
        max-width: 100%;
    }

    .page-sports__step-item {
        gap: 10px;
    }

    .page-sports__step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .page-sports__step-title {
        font-size: 19px;
    }

    .page-sports__step-text {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-sports__faq-item summary.page-sports__faq-question { padding: 15px; }
    .page-sports__faq-qtext { font-size: 16px; }
    .page-sports__faq-toggle { font-size: 24px; width: 28px; }
    details.page-sports__faq-item .page-sports__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* General responsive for content area */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__content-grid,
    .page-sports__advantages-grid,
    .page-sports__promotions-grid,
    .page-sports__guide-content,
    .page-sports__guide-image-wrapper,
    .page-sports__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-sports__article-body {
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}