/* style/betting-tools.css */

/* General Page Styling */
.page-betting-tools {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Explicitly set for contrast checks */
}

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

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

.page-betting-tools__section-title {
    font-size: 36px;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-betting-tools__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); /* Ensure header offset */
    background: linear-gradient(135deg, #26A9E0 0%, #007bff 100%); /* Blue gradient for hero */
    color: #FFFFFF; /* White text for dark blue background */
}

.page-betting-tools__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.page-betting-tools__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-betting-tools__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-betting-tools__intro-text {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #F0F8FF;
}

.page-betting-tools__hero-image {
    width: 100%;
    max-width: 800px; /* Constrain image width for better layout */
    margin-top: 30px;
}

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

/* CTA Button Styles */
.page-betting-tools__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-betting-tools__cta-button:hover {
    background: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-betting-tools__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: 2px solid transparent;
}
.page-betting-tools__btn-primary:hover {
    background: #1e88e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.page-betting-tools__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}
.page-betting-tools__btn-secondary:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Features Section */
.page-betting-tools__features {
    background-color: #f8f8f8;
}

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

.page-betting-tools__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

.page-betting-tools__card-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-betting-tools__card-text {
    font-size: 16px;
    color: #555555;
    flex-grow: 1; /* Ensure text fills space */
}

/* Tool Showcase Section */
.page-betting-tools__tool-showcase {
    background-color: #FFFFFF;
}

.page-betting-tools__tool-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    text-align: left;
}

.page-betting-tools__tool-item:last-child {
    margin-bottom: 0;
}

.page-betting-tools__tool-item img {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-betting-tools__tool-content {
    flex: 1;
    max-width: 50%;
}

.page-betting-tools__tool-item--reverse {
    flex-direction: row-reverse;
}

.page-betting-tools__tool-item--reverse .page-betting-tools__tool-content {
    text-align: right;
}

.page-betting-tools__tool-title {
    font-size: 28px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-betting-tools__tool-text {
    font-size: 17px;
    color: #555555;
    margin-bottom: 20px;
}

/* CTA Section */
.page-betting-tools__cta-section {
    background: linear-gradient(45deg, #26A9E0, #1a7bbd);
    color: #FFFFFF;
    padding: 80px 20px;
}

.page-betting-tools__cta-section .page-betting-tools__section-title {
    color: #FFFFFF;
}

.page-betting-tools__cta-section .page-betting-tools__section-description {
    color: #F0F8FF;
}

.page-betting-tools__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* FAQ Section */
.page-betting-tools__faq-section {
    background-color: #f8f8f8;
}

.page-betting-tools__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-betting-tools__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-betting-tools__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-betting-tools__faq-item.active .page-betting-tools__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #eaf6ff; /* Lighter blue when active */
    border-color: #26A9E0;
}

.page-betting-tools__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-betting-tools__faq-question:active {
    background: #eeeeee;
}

.page-betting-tools__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click */
}

.page-betting-tools__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-betting-tools__faq-item.active .page-betting-tools__faq-toggle {
    color: #26A9E0;
    transform: rotate(0deg); /* Explicitly set for '-' */
}

.page-betting-tools__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.3s ease;
    padding: 0 20px;
    opacity: 0;
    background: #f9f9f9;
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

.page-betting-tools__faq-item.active .page-betting-tools__faq-answer {
    max-height: 2000px !important; /* Ensure it expands fully */
    padding: 20px !important;
    opacity: 1;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Image Responsive Styles */
.page-betting-tools img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-betting-tools__main-title {
        font-size: 40px;
    }
    .page-betting-tools__section-title {
        font-size: 32px;
    }
    .page-betting-tools__tool-item {
        flex-direction: column;
        text-align: center;
    }
    .page-betting-tools__tool-item img,
    .page-betting-tools__tool-content {
        max-width: 100%;
    }
    .page-betting-tools__tool-item--reverse {
        flex-direction: column;
    }
    .page-betting-tools__tool-item--reverse .page-betting-tools__tool-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-betting-tools__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-betting-tools__main-title {
        font-size: 32px;
    }
    .page-betting-tools__intro-text {
        font-size: 18px;
    }
    .page-betting-tools__section {
        padding: 40px 0;
    }
    .page-betting-tools__section-title {
        font-size: 28px;
    }
    .page-betting-tools__section-description {
        font-size: 16px;
    }

    /* Images */
    .page-betting-tools img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-betting-tools__card img {
         /* Adjust height for smaller screens */
    }

    /* Containers */
    .page-betting-tools__section,
    .page-betting-tools__card,
    .page-betting-tools__container,
    .page-betting-tools__tool-item,
    .page-betting-tools__hero-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-betting-tools__container {
        padding: 0 15px;
    }

    /* Buttons */
    .page-betting-tools__cta-button,
    .page-betting-tools__btn-primary,
    .page-betting-tools__btn-secondary,
    .page-betting-tools a[class*="button"],
    .page-betting-tools a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-betting-tools__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-betting-tools__cta-section .page-betting-tools__button-group {
      padding-left: 0;
      padding-right: 0;
    }

    /* FAQ */
    .page-betting-tools__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-betting-tools__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-betting-tools__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-betting-tools__faq-answer {
        padding: 0 15px;
    }
    .page-betting-tools__faq-item.active .page-betting-tools__faq-answer {
        padding: 15px !important;
    }
}

/* Color Contrast Fixes (if needed, applying to specific elements) */
.page-betting-tools__dark-section {
  color: #ffffff; /* Explicitly ensure white text on dark background */
}
.page-betting-tools__light-bg {
  background: #ffffff;
  color: #333333;
}
.page-betting-tools__text-contrast-fix {
  color: #ffffff !important; /* Force white text for dark backgrounds */
}

/* No CSS filters for images */
.page-betting-tools img {
    filter: none;
}