/* style/resources-new88-com-beginner-guide.css */
:root {
  --primary-color: #e53e3e; /* Đỏ mạnh */
  --secondary-color: #1a202c; /* Xám đen */
  --text-light: #ffffff;
  --text-dark: #cbd5e0; /* Xám nhạt hơn cho văn bản chính trên nền tối */
  --bg-light: #f7fafc;
  --bg-dark: #2d3748; /* Nền tối nhẹ hơn */
  --border-color: #4a5568;
  --button-hover-bg: #c53030;
  --card-bg: #2d3748;
  --faq-question-bg: #2d3748;
  --faq-answer-bg: #4a5568;
}

.page-resources-new88-com-beginner-guide {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--secondary-color);
}

.page-resources-new88-com-beginner-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-new88-com-beginner-guide__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-resources-new88-com-beginner-guide__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Hero Section */
.page-resources-new88-com-beginner-guide__hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-dark);
}

.page-resources-new88-com-beginner-guide__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources-new88-com-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-resources-new88-com-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-resources-new88-com-beginner-guide__hero-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-new88-com-beginner-guide__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-new88-com-beginner-guide__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources-new88-com-beginner-guide__cta-button:hover {
  background: var(--button-hover-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* General Content Styling */
.page-resources-new88-com-beginner-guide p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-resources-new88-com-beginner-guide h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-new88-com-beginner-guide ol,
.page-resources-new88-com-beginner-guide ul {
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources-new88-com-beginner-guide ol li,
.page-resources-new88-com-beginner-guide ul li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-resources-new88-com-beginner-guide ul li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-new88-com-beginner-guide ul li a:hover {
  text-decoration: underline;
}

.page-resources-new88-com-beginner-guide__content-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources-new88-com-beginner-guide__content-row:nth-child(even) {
  flex-direction: row-reverse;
}

.page-resources-new88-com-beginner-guide__content-text {
  flex: 1;
}

.page-resources-new88-com-beginner-guide__content-image {
  flex: 1;
  text-align: center;
}

.page-resources-new88-com-beginner-guide__img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-new88-com-beginner-guide__img-small {
  max-width: 80%; /* Adjust as needed for smaller images */
  margin: 20px auto;
  display: block;
}

.page-resources-new88-com-beginner-guide__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.page-resources-new88-com-beginner-guide__btn--primary {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources-new88-com-beginner-guide__btn--primary:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-new88-com-beginner-guide__btn--secondary {
  background-color: var(--bg-dark);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Deposit/Withdraw Tabs */
.page-resources-new88-com-beginner-guide__tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
}

.page-resources-new88-com-beginner-guide__tab-button {
  background: none;
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-dark);
  cursor: pointer;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.page-resources-new88-com-beginner-guide__tab-button:hover {
  color: var(--primary-color);
}

.page-resources-new88-com-beginner-guide__tab-button.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.page-resources-new88-com-beginner-guide__tab-content {
  display: none;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-new88-com-beginner-guide__tab-content.active {
  display: block;
}

/* Game Grid */
.page-resources-new88-com-beginner-guide__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-new88-com-beginner-guide__game-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

.page-resources-new88-com-beginner-guide__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-resources-new88-com-beginner-guide__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-resources-new88-com-beginner-guide__game-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-resources-new88-com-beginner-guide__game-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-resources-new88-com-beginner-guide__game-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources-new88-com-beginner-guide__game-link:hover {
  background-color: var(--button-hover-bg);
}

/* Promotion List */
.page-resources-new88-com-beginner-guide__promotion-list {
  list-style: none;
  padding: 0;
}

.page-resources-new88-com-beginner-guide__promotion-list li {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-new88-com-beginner-guide__promotion-list li h3 {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-resources-new88-com-beginner-guide__promotion-list li h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources-new88-com-beginner-guide__promotion-list li h3 a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-resources-new88-com-beginner-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--faq-question-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--text-light);
}

.faq-question:hover {
  background: #3a475a; /* Slightly lighter dark background on hover */
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--text-light);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: var(--faq-answer-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 5px 5px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px;
}

.faq-answer p {
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Conclusion Section */
.page-resources-new88-com-beginner-guide__conclusion {
  text-align: center;
}

.page-resources-new88-com-beginner-guide__conclusion p {
  font-size: 1.15em;
  max-width: 900px;
  margin: 0 auto 25px auto;
}

.page-resources-new88-com-beginner-guide__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: #999;
  background-color: #111;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-new88-com-beginner-guide__hero-title {
    font-size: 2.8em;
  }
  .page-resources-new88-com-beginner-guide__hero-description {
    font-size: 1.1em;
  }
  .page-resources-new88-com-beginner-guide__section-title {
    font-size: 2em;
  }
  .page-resources-new88-com-beginner-guide__content-row {
    flex-direction: column;
  }
  .page-resources-new88-com-beginner-guide__content-row:nth-child(even) {
    flex-direction: column;
  }
  .page-resources-new88-com-beginner-guide__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-resources-new88-com-beginner-guide__game-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-resources-new88-com-beginner-guide__hero {
    padding: 60px 15px;
  }
  .page-resources-new88-com-beginner-guide__hero-title {
    font-size: 2.2em;
  }
  .page-resources-new88-com-beginner-guide__hero-description {
    font-size: 1em;
  }
  .page-resources-new88-com-beginner-guide__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources-new88-com-beginner-guide__section {
    padding: 40px 0;
  }
  .page-resources-new88-com-beginner-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-new88-com-beginner-guide p, .page-resources-new88-com-beginner-guide ol li, .page-resources-new88-com-beginner-guide ul li {
    font-size: 1em;
  }
  .page-resources-new88-com-beginner-guide h3 {
    font-size: 1.5em;
  }
  .page-resources-new88-com-beginner-guide__tabs {
    flex-direction: column;
  }
  .page-resources-new88-com-beginner-guide__tab-button {
    padding: 12px 20px;
    font-size: 1em;
    border-bottom: none;
    border-radius: 5px;
    margin-bottom: 10px;
  }
  .page-resources-new88-com-beginner-guide__tab-button.active {
    border-bottom: none;
    background-color: var(--primary-color);
    color: var(--text-light);
  }
  .page-resources-new88-com-beginner-guide__game-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-new88-com-beginner-guide__game-image {
    height: 160px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-answer {
    padding: 15px;
  }
  .page-resources-new88-com-beginner-guide__copyright {
    padding: 20px 15px;
  }
}