/* style/ththao.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f9f9f9;
    --background-dark: #26A9E0; /* Using primary color for dark background sections */
    --login-button-color: #EA7C07;
    --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-ththao {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default dark text for light body background */
    background: var(--secondary-color); /* Matches body background #FFFFFF */
}

/* Page sections */
.page-ththao__section {
    padding: 60px 20px;
    text-align: center;
}

.page-ththao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Headings */
.page-ththao h1 {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
    max-width: 900px; /* To prevent too long lines on wide screens */
    margin-left: auto;
    margin-right: auto;
}

.page-ththao h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.page-ththao h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-ththao p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* HERO Section */
.page-ththao__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    /* body { padding-top: var(--header-offset); } handles main spacing */
    padding-top: 10px; /* Small decorative top padding */
    background: linear-gradient(135deg, var(--primary-color) 0%, #007bb6 100%); /* Gradient for visual appeal */
}

.page-ththao__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-ththao__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-ththao__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-ththao__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-ththao__hero-content h1 {
    color: var(--text-light); /* White text for dark hero background */
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    margin-bottom: 15px;
}

.page-ththao__hero-description {
    color: var(--text-light); /* White text for dark hero background */
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* CTA Buttons */
.page-ththao__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-grow: 1; /* Allow buttons to grow within the flex container */
    max-width: 220px; /* Limit individual button width */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-ththao__btn-primary {
    background: var(--login-button-color); /* #EA7C07 */
    color: var(--text-light);
    border: 2px solid transparent;
}

.page-ththao__btn-primary:hover {
    background: #d46f06; /* Slightly darker #EA7C07 */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-ththao__btn-secondary {
    background: var(--secondary-color); /* White */
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-ththao__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-ththao__btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-ththao__btn-text:hover {
    color: #1f8bc2; /* Slightly darker #26A9E0 */
}

/* Section backgrounds */
.page-ththao__light-bg {
    background-color: var(--background-light); /* Light gray for contrast */
    color: var(--text-dark);
}

.page-ththao__dark-bg {
    background-color: var(--background-dark); /* Primary color as dark background */
    color: var(--text-light);
}

.page-ththao__dark-bg h2,
.page-ththao__dark-bg h3,
.page-ththao__dark-bg p,
.page-ththao__dark-bg li {
    color: var(--text-light); /* Ensure all text is light on dark background */
}

/* Grid layout for categories and promotions */
.page-ththao__grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__grid--3-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-ththao__grid--2-col {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-ththao__card, .page-ththao__promo-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-ththao__card img, .page-ththao__promo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block; /* Ensure no extra space below image */
}

.page-ththao__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left; /* Align text within feature items */
}

.page-ththao__feature-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text to start */
    color: var(--text-dark);
}

.page-ththao__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    display: block;
}

.page-ththao__feature-item h3 {
    color: var(--primary-color);
    text-align: left;
}
.page-ththao__feature-item p {
    text-align: left;
}

/* Why Choose List */
.page-ththao__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-ththao__advantage-list li {
    background: var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-ththao__advantage-list li strong {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Get Started Steps */
.page-ththao__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__step-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
}

.page-ththao__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.page-ththao__step-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-ththao__step-item p {
    flex-grow: 1; /* Allow paragraph to take available space */
    margin-bottom: 20px;
}

/* Responsible Gaming */
.page-ththao__responsible-gaming p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-ththao__faq-section {
    padding-bottom: 80px;
}

.page-ththao__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-ththao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}
details.page-ththao__faq-item summary.page-ththao__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;
  color: var(--text-dark);
}
details.page-ththao__faq-item summary.page-ththao__faq-question::-webkit-details-marker {
  display: none;
}
details.page-ththao__faq-item summary.page-ththao__faq-question:hover {
  background: var(--background-light);
}
.page-ththao__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.page-ththao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}