/* style/news-latest-match-predictions.css */

/* Base styles for the page content */
.page-news-latest-match-predictions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f4f4f4; /* Match body background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-news-latest-match-predictions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news-latest-match-predictions__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-news-latest-match-predictions__section-title {
    font-size: 36px;
    color: #0A2463; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Hero Banner Section */
.page-news-latest-match-predictions__hero-banner {
    background: linear-gradient(135deg, #0A2463, #1A3A83); /* Darker blue gradient */
    color: #ffffff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-news-latest-match-predictions__hero-banner .page-news-latest-match-predictions__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-news-latest-match-predictions__hero-content {
    flex: 1;
    text-align: left;
}

.page-news-latest-match-predictions__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Secondary color for main title */
}

.page-news-latest-match-predictions__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
}

.page-news-latest-match-predictions__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news-latest-match-predictions__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-news-latest-match-predictions__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-news-latest-match-predictions__btn-primary,
.page-news-latest-match-predictions__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news-latest-match-predictions__btn-primary {
    background: #FFD700; /* Secondary color */
    color: #0A2463; /* Primary color for text */
    border: 2px solid #FFD700;
}

.page-news-latest-match-predictions__btn-primary:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news-latest-match-predictions__btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-news-latest-match-predictions__btn-secondary:hover {
    background: #FFD700;
    color: #0A2463;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-news-latest-match-predictions__introduction p {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

/* Featured Predictions Grid */
.page-news-latest-match-predictions__featured-predictions {
    background-color: #ffffff; /* White background for cards */
}

.page-news-latest-match-predictions__predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news-latest-match-predictions__prediction-card {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news-latest-match-predictions__prediction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-news-latest-match-predictions__prediction-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-news-latest-match-predictions__card-title {
    font-size: 22px;
    font-weight: 700;
    color: #0A2463;
    padding: 20px 25px 10px;
    margin: 0;
}

.page-news-latest-match-predictions__card-title a {
    color: #0A2463;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-latest-match-predictions__card-title a:hover {
    color: #FFD700;
}

.page-news-latest-match-predictions__card-meta {
    font-size: 14px;
    color: #666;
    padding: 0 25px;
    margin-bottom: 15px;
}

.page-news-latest-match-predictions__card-text {
    font-size: 16px;
    color: #555;
    padding: 0 25px;
    flex-grow: 1;
}

.page-news-latest-match-predictions__read-more {
    display: block; /* Make it a block element */
    width: 100%; /* Make it full width of its parent */
    background: #0A2463;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push to bottom if flex column */
    text-align: center;
    box-sizing: border-box; /* Include padding/border in width */
}

.page-news-latest-match-predictions__read-more:hover {
    background: #FFD700;
    color: #0A2463;
}

/* Analysis & Tips Section */
.page-news-latest-match-predictions__analysis-tips {
    background-color: #f9f9f9;
}

.page-news-latest-match-predictions__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-news-latest-match-predictions__list li {
    background: #ffffff;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-left: 5px solid #0A2463;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 17px;
    color: #333333;
    transition: all 0.3s ease;
}

.page-news-latest-match-predictions__list li:hover {
    border-left-color: #FFD700;
    transform: translateX(5px);
}

.page-news-latest-match-predictions__list li strong {
    color: #0A2463;
}

/* Why 789be Section */
.page-news-latest-match-predictions__why-789be {
    background-color: #ffffff;
}

.page-news-latest-match-predictions__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-news-latest-match-predictions__feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-news-latest-match-predictions__feature-item:hover {
    transform: translateY(-8px);
}

.page-news-latest-match-predictions__feature-item img {
    width: 200px; /* Must be at least 200px */
    height: 200px; /* Must be at least 200px */
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-news-latest-match-predictions__feature-item h3 {
    font-size: 22px;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-news-latest-match-predictions__feature-item p {
    font-size: 16px;
    color: #555;
}

/* CTA Section */
.page-news-latest-match-predictions__cta-section .page-news-latest-match-predictions__container {
    background: #0A2463; /* Primary color background */
    color: #ffffff;
    text-align: center;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-news-latest-match-predictions__cta-section .page-news-latest-match-predictions__section-title {
    color: #FFD700; /* Secondary color for title */
    margin-bottom: 25px;
}

.page-news-latest-match-predictions__cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
}

.page-news-latest-match-predictions__cta-section .page-news-latest-match-predictions__cta-buttons {
    justify-content: center;
}

/* FAQ Area */
.page-news-latest-match-predictions__faq-area {
    background-color: #f9f9f9;
}

/* FAQ container style */
.page-news-latest-match-predictions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-news-latest-match-predictions__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;
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-news-latest-match-predictions__faq-item.active .page-news-latest-match-predictions__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use!important to ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff; /* Light background for answer */
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-news-latest-match-predictions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news-latest-match-predictions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-news-latest-match-predictions__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-news-latest-match-predictions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #0A2463; /* Primary color for question title */
  pointer-events: none; /* Prevent h3 from blocking click events */
}

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

.page-news-latest-match-predictions__faq-item.active .page-news-latest-match-predictions__faq-toggle {
  color: #0A2463; /* Primary color when active */
  transform: rotate(45deg); /* Rotate for minus sign visual */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-latest-match-predictions__hero-title {
        font-size: 40px;
    }
    .page-news-latest-match-predictions__hero-description {
        font-size: 16px;
    }
    .page-news-latest-match-predictions__section-title {
        font-size: 30px;
    }
    .page-news-latest-match-predictions__btn-primary,
    .page-news-latest-match-predictions__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-news-latest-match-predictions__prediction-card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-news-latest-match-predictions {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news-latest-match-predictions__container {
        padding: 0 15px;
    }

    .page-news-latest-match-predictions__hero-banner .page-news-latest-match-predictions__container {
        flex-direction: column;
        text-align: center;
    }

    .page-news-latest-match-predictions__hero-content {
        text-align: center;
    }

    .page-news-latest-match-predictions__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-news-latest-match-predictions__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-news-latest-match-predictions__hero-image {
        order: -1; /* Image above text on mobile */
        margin-bottom: 30px;
    }

    .page-news-latest-match-predictions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }
    .page-news-latest-match-predictions__btn-primary,
    .page-news-latest-match-predictions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important; /* Adjust padding for full width */
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-news-latest-match-predictions__section {
        padding: 40px 0;
    }

    .page-news-latest-match-predictions__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .page-news-latest-match-predictions__predictions-grid,
    .page-news-latest-match-predictions__features-grid {
        grid-template-columns: 1fr;
    }

    .page-news-latest-match-predictions__prediction-card img {
        
    }

    .page-news-latest-match-predictions__list li {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    /* Mobile image responsiveness */
    .page-news-latest-match-predictions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    .page-news-latest-match-predictions__section,
    .page-news-latest-match-predictions__card,
    .page-news-latest-match-predictions__container,
    .page-news-latest-match-predictions__prediction-card,
    .page-news-latest-match-predictions__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by container, but ensure no overflow */
    }

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