.page-lich-thi-dau {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #FFFFFF;
}

.page-lich-thi-dau__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f0f8ff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-lich-thi-dau__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
}

.page-lich-thi-dau__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default to cover for desktop */
}

.page-lich-thi-dau__hero-content {
    max-width: 900px;
    padding: 40px 20px 60px;
    z-index: 1;
    position: relative;
    background-color: #FFFFFF; /* Ensure content is readable */
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-lich-thi-dau__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-lich-thi-dau__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-lich-thi-dau__description--light {
    color: #f0f0f0;
}

.page-lich-thi-dau__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-lich-thi-dau__cta-buttons--center {
    margin-top: 30px;
}

.page-lich-thi-dau__btn-primary,
.page-lich-thi-dau__btn-secondary,
.page-lich-thi-dau__table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-lich-thi-dau__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-lich-thi-dau__btn-primary:hover {
    background-color: #1a8cc2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 169, 224, 0.3);
}

.page-lich-thi-dau__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-lich-thi-dau__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a8cc2;
    border-color: #1a8cc2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 169, 224, 0.1);
}

.page-lich-thi-dau__table-btn {
    padding: 8px 15px;
    font-size: 0.95rem;
    border-radius: 5px;
    background-color: #EA7C07; /* Login color for action */
    color: #FFFFFF;
    border: none;
}

.page-lich-thi-dau__table-btn:hover {
    background-color: #d46f06;
}

.page-lich-thi-dau__overview-section,
.page-lich-thi-dau__tournaments-section,
.page-lich-thi-dau__guide-section,
.page-lich-thi-dau__faq-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-lich-thi-dau__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 60px 20px;
}

.page-lich-thi-dau__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-lich-thi-dau__section-title--light {
    color: #FFFFFF;
}

.page-lich-thi-dau__text-block {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-lich-thi-dau__text-block--light p,
.page-lich-thi-dau__text-block--light ul,
.page-lich-thi-dau__text-block--light ol,
.page-lich-thi-dau__text-block--light li {
    color: #f0f0f0;
}

.page-lich-thi-dau__text-block ul,
.page-lich-thi-dau__text-block ol {
    list-style-position: inside;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-lich-thi-dau__text-block li {
    margin-bottom: 10px;
}

.page-lich-thi-dau__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-lich-thi-dau__schedule-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
}

.page-lich-thi-dau__schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Ensure table is wide enough for content */
}

.page-lich-thi-dau__schedule-table th,
.page-lich-thi-dau__schedule-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.page-lich-thi-dau__schedule-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
}

.page-lich-thi-dau__schedule-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.page-lich-thi-dau__schedule-table tbody tr:hover {
    background-color: #e6f7ff;
}

.page-lich-thi-dau__related-articles {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-lich-thi-dau__related-articles li {
    margin-bottom: 10px;
}

.page-lich-thi-dau__related-articles a {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: 500;
}

.page-lich-thi-dau__related-articles a:hover {
    color: #1a8cc2;
}

.page-lich-thi-dau__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

details.page-lich-thi-dau__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-lich-thi-dau__faq-item summary.page-lich-thi-dau__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-lich-thi-dau__faq-item summary.page-lich-thi-dau__faq-question::-webkit-details-marker {
  display: none;
}
details.page-lich-thi-dau__faq-item summary.page-lich-thi-dau__faq-question:hover {
  background: #f5f5f5;
}
.page-lich-thi-dau__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure text is dark on light background */
}
.page-lich-thi-dau__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-lich-thi-dau__faq-item .page-lich-thi-dau__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-lich-thi-dau__cta-final-section {
    padding: 80px 20px;
    text-align: center;
}

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-lich-thi-dau__hero-content {
        margin-top: -60px;
        padding: 30px 20px 50px;
    }

    .page-lich-thi-dau__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-lich-thi-dau__description {
        font-size: 1rem;
    }

    .page-lich-thi-dau__overview-section,
    .page-lich-thi-dau__tournaments-section,
    .page-lich-thi-dau__guide-section,
    .page-lich-thi-dau__faq-section {
        padding: 50px 20px;
    }

    .page-lich-thi-dau__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.5rem);
    }

    .page-lich-thi-dau__text-block {
        font-size: 1rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-lich-thi-dau__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
    }
    .page-lich-thi-dau__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-lich-thi-dau__hero-content {
        margin-top: -40px; /* Adjust overlap for mobile */
        padding: 25px 15px 40px;
        border-radius: 8px;
    }
    .page-lich-thi-dau__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* Smaller H1 on mobile */
        margin-bottom: 15px;
    }
    .page-lich-thi-dau__description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    /* 通用图片与容器 */
    .page-lich-thi-dau img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-lich-thi-dau__overview-section,
    .page-lich-thi-dau__tournaments-section,
    .page-lich-thi-dau__guide-section,
    .page-lich-thi-dau__faq-section,
    .page-lich-thi-dau__dark-section,
    .page-lich-thi-dau__cta-final-section {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-lich-thi-dau__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 25px;
    }
    .page-lich-thi-dau__text-block {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .page-lich-thi-dau__text-block ul,
    .page-lich-thi-dau__text-block ol {
        padding-left: 15px;
    }
    .page-lich-thi-dau__image-content {
        margin: 20px auto;
    }

    /* 按钮与按钮容器 */
    .page-lich-thi-dau__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-lich-thi-dau__btn-primary,
    .page-lich-thi-dau__btn-secondary,
    .page-lich-thi-dau__table-btn {
        width: 100% !important; /* Full width for buttons */
        padding: 12px 20px !important;
        font-size: 1rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Schedule table */
    .page-lich-thi-dau__schedule-table-wrapper {
        box-shadow: none; /* Remove shadow on mobile for better scroll */
        border-radius: 0;
    }
    .page-lich-thi-dau__schedule-table {
        min-width: 600px; /* Keep minimum width for table content */
    }
    .page-lich-thi-dau__schedule-table th,
    .page-lich-thi-dau__schedule-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* FAQ */
    details.page-lich-thi-dau__faq-item summary.page-lich-thi-dau__faq-question {
        padding: 15px;
    }
    .page-lich-thi-dau__faq-qtext {
        font-size: 15px;
    }
    .page-lich-thi-dau__faq-toggle {
        font-size: 20px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-lich-thi-dau__faq-item .page-lich-thi-dau__faq-answer {
        padding: 0 15px 15px;
    }
}