/* style/resources-latest-match-analysis.css */

/* --- General Page Styles --- */
.page-resources-latest-match-analysis {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #FFFFFF; /* From shared.css body background */
}

.page-resources-latest-match-analysis__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-latest-match-analysis__section {
    padding: 60px 0;
}

.page-resources-latest-match-analysis__section-title {
    font-size: 36px;
    color: #017439; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-resources-latest-match-analysis__section-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Hero Section --- */
.page-resources-latest-match-analysis__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, #FFFFFF);
    overflow: hidden;
}

.page-resources-latest-match-analysis__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-latest-match-analysis__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-match-analysis__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.page-resources-latest-match-analysis__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.page-resources-latest-match-analysis__hero-title {
    font-size: 48px;
    color: #FFFFFF; /* White text on dark/gradient background */
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-resources-latest-match-analysis__hero-description {
    font-size: 20px;
    color: #f0f0f0; /* Slightly off-white for contrast */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources-latest-match-analysis__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #C30808; /* Custom red for CTA */
    color: #FFFF00; /* Custom yellow for CTA text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
}

.page-resources-latest-match-analysis__cta-button:hover {
    background: #a30606; /* Darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- Overview Section --- */
.page-resources-latest-match-analysis__overview-section {
    background-color: #f8f8f8;
    color: #333333;
}

/* --- In-depth Analysis Section (Dark Background) --- */
.page-resources-latest-match-analysis__in-depth-analysis-section {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF; /* White text for contrast */
}

.page-resources-latest-match-analysis__in-depth-analysis-section .page-resources-latest-match-analysis__section-title {
    color: #FFFFFF; /* White title on dark background */
}

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

.page-resources-latest-match-analysis__grid-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-resources-latest-match-analysis__grid-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-latest-match-analysis__grid-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-latest-match-analysis__grid-title {
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-latest-match-analysis__grid-text {
    font-size: 16px;
    color: #f0f0f0;
    text-align: justify;
}

/* --- Betting Tips Section --- */
.page-resources-latest-match-analysis__betting-tips-section {
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-resources-latest-match-analysis__tip-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-resources-latest-match-analysis__tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-latest-match-analysis__tip-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-latest-match-analysis__tip-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-latest-match-analysis__tip-description {
    font-size: 16px;
    color: #555555;
    text-align: justify;
}

.page-resources-latest-match-analysis__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-resources-latest-match-analysis__btn-primary,
.page-resources-latest-match-analysis__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-latest-match-analysis__btn-primary {
    background: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-resources-latest-match-analysis__btn-primary:hover {
    background: #005f2e;
    border-color: #005f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-resources-latest-match-analysis__btn-secondary {
    background: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-resources-latest-match-analysis__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- News Updates Section --- */
.page-resources-latest-match-analysis__news-updates-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-resources-latest-match-analysis__news-updates-section .page-resources-latest-match-analysis__section-title {
    color: #FFFFFF;
}

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

.page-resources-latest-match-analysis__news-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources-latest-match-analysis__news-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources-latest-match-analysis__news-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

.page-resources-latest-match-analysis__news-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
    flex-grow: 1;
}

.page-resources-latest-match-analysis__news-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-latest-match-analysis__news-title a:hover {
    color: #FFFF00;
}

.page-resources-latest-match-analysis__news-excerpt {
    font-size: 15px;
    color: #f0f0f0;
    margin-bottom: 15px;
    text-align: justify;
}

.page-resources-latest-match-analysis__read-more-link {
    display: inline-block;
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
}

.page-resources-latest-match-analysis__read-more-link:hover {
    text-decoration: underline;
    color: #FFFFFF;
}

/* --- Why Choose Section --- */
.page-resources-latest-match-analysis__why-choose-section {
    background-color: #f8f8f8;
    color: #333333;
}

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

.page-resources-latest-match-analysis__feature-item {
    background-color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #017439;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-latest-match-analysis__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-resources-latest-match-analysis__feature-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-resources-latest-match-analysis__feature-description {
    font-size: 16px;
    color: #555555;
    text-align: justify;
}

/* --- FAQ Section --- */
.page-resources-latest-match-analysis__faq-section {
    background-color: #f0f0f0;
    color: #333333;
}

.page-resources-latest-match-analysis__faq-list {
    margin-top: 40px;
}

/* FAQ容器样式 */
.page-resources-latest-match-analysis__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources-latest-match-analysis__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展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-resources-latest-match-analysis__faq-item.active .page-resources-latest-match-analysis__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值 đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

/* Vấn đề kiểu dáng */
.page-resources-latest-match-analysis__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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-resources-latest-match-analysis__faq-item.active .page-resources-latest-match-analysis__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

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

.page-resources-latest-match-analysis__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề kiểu dáng */
.page-resources-latest-match-analysis__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
}

/* Chuyển đổi biểu tượng */
.page-resources-latest-match-analysis__faq-toggle {
  font-size: 24px;
  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; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-latest-match-analysis__faq-item.active .page-resources-latest-match-analysis__faq-toggle {
  color: #017439;
  transform: rotate(45deg);
}

.page-resources-latest-match-analysis__faq-answer p {
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
    margin: 0;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources-latest-match-analysis__hero-title {
        font-size: 40px;
    }
    .page-resources-latest-match-analysis__hero-description {
        font-size: 18px;
    }
}