/* style/sports.css */

/* --- General Page Styling --- */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: var(--background-color, #f8f8f8); /* Inherit from shared or use light gray */
}

.page-sports a {
    color: #26A9E0;
    text-decoration: none;
}

.page-sports a:hover {
    text-decoration: underline;
}

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

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

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

.page-sports__section-description {
    font-size: 18px;
    color: #666666;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-sports__section-text {
    font-size: 16px;
    color: #333333;
    max-width: 900px;
    margin: 20px auto;
    text-align: left;
}

/* --- 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); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Example gradient, adjust if needed */
    color: #ffffff;
}

.page-sports__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-sports__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 1000px; /* Limit hero image width */
}

.page-sports__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    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 image slightly for better visual flow */
    color: #333333; /* Dark text for better contrast on lighter hero background */
}

.page-sports__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0; /* Use primary color for main title */
}

.page-sports__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #555555;
}

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-sports__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 180px; /* Ensure buttons have a minimum width */
    text-align: center;
}

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

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

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

.page-sports__btn-secondary:hover {
    background: #e0f2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Introduction Section --- */
.page-sports__introduction-section {
    background-color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-sports__image-wrapper {
    margin: 40px auto;
    max-width: 800px;
}

.page-sports__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Featured Sports Section --- */
.page-sports__featured-sports-section {
    background-color: #26A9E0; /* Darker background for contrast */
    color: #ffffff;
}

.page-sports__featured-sports-section .page-sports__section-title,
.page-sports__featured-sports-section .page-sports__section-description {
    color: #ffffff;
}

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

.page-sports__sport-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    padding-bottom: 30px;
}

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

.page-sports__sport-card .page-sports__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-sports__sport-card .page-sports__card-text {
    font-size: 15px;
    color: #555555;
    margin: 0 20px 20px 20px;
    line-height: 1.5;
}

.page-sports__sport-card .page-sports__btn-primary {
    margin: 0 20px;
    width: calc(100% - 40px);
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
}

/* --- Betting Guide Section --- */
.page-sports__betting-guide-section {
    background-color: #f9f9f9;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-sports__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-sports__guide-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

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

.page-sports__guide-item p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 25px;
}

.page-sports__guide-item .page-sports__btn-primary {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
}

/* --- Promotions Section --- */
.page-sports__promotions-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-sports__promotions-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-description {
    color: #ffffff;
}

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

.page-sports__promo-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    padding-bottom: 30px;
}

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

.page-sports__promo-card .page-sports__card-title {
    font-size: 24px;
    color: #26A9E0;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-sports__promo-card .page-sports__card-text {
    font-size: 15px;
    color: #555555;
    margin: 0 20px 20px 20px;
    line-height: 1.5;
}

.page-sports__promo-card .page-sports__btn-primary {
    margin: 0 20px;
    width: calc(100% - 40px);
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
}

.page-sports__center-button {
    margin-top: 50px;
}

/* --- FAQ Section --- */
.page-sports__faq-section {
    background-color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

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

/* FAQ默认状态 - 答案隐藏 */
.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;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-sports__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-sports__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Question title style */
.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
  color: #333333;
}

/* Toggle icon */
.page-sports__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; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Changed from '-' to rotate '+' for visual effect */
}


/* --- News Section --- */
.page-sports__news-section {
    background-color: #f0f8ff; /* Light blue background for news */
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-sports__news-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-sports__news-card:hover {
    transform: translateY(-5px);
}

.page-sports__news-card .page-sports__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-sports__news-card .page-sports__card-title {
    font-size: 22px;
    color: #26A9E0;
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-sports__news-card .page-sports__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-sports__news-card .page-sports__card-title a:hover {
    text-decoration: underline;
}

.page-sports__news-card .page-sports__card-text {
    font-size: 15px;
    color: #555555;
    margin: 0 20px 15px 20px;
    line-height: 1.5;
}

.page-sports__news-card .page-sports__news-date {
    display: block;
    font-size: 13px;
    color: #999999;
    margin: 0 20px 20px 20px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-sports__main-title {
        font-size: 40px;
    }
    .page-sports__section-title {
        font-size: 30px;
    }
    .page-sports__hero-content {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }
}