/* style/game-strategies-tips.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #0a192f;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

.page-game-strategies-tips {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
}

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

.page-game-strategies-tips__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-game-strategies-tips__section:nth-of-type(even) {
  background-color: #e9ecef;
}

.page-game-strategies-tips h1,
.page-game-strategies-tips h2,
.page-game-strategies-tips h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-game-strategies-tips h1 {
  font-size: 2.8em;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-game-strategies-tips h2 {
  font-size: 2.2em;
  border-bottom: 3px solid var(--secondary-color);
  display: inline-block;
  padding-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
}

.page-game-strategies-tips h3 {
  font-size: 1.6em;
  color: var(--text-color-dark);
  margin-bottom: 15px;
}

.page-game-strategies-tips p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-game-strategies-tips ul,
.page-game-strategies-tips ol {
  margin-bottom: 15px;
  padding-left: 25px;
}

.page-game-strategies-tips ul li,
.page-game-strategies-tips ol li {
  margin-bottom: 8px;
  text-align: justify;
}

.page-game-strategies-tips a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-game-strategies-tips a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-game-strategies-tips__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-game-strategies-tips__cta-button:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-game-strategies-tips__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-game-strategies-tips__call-to-action {
  text-align: center;
  margin-top: 30px;
}

/* Banner Section */
.page-game-strategies-tips__banner {
  position: relative;
  width: 100%;
  height: 450px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-color-light);
}

.page-game-strategies-tips__banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-game-strategies-tips__banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(255, 193, 7, 0.7));
  z-index: 2;
}

.page-game-strategies-tips__banner-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-game-strategies-tips__banner-content h1 {
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-game-strategies-tips__banner-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-align: center;
}

/* Image Styling */
.page-game-strategies-tips__img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Card Grid */
.page-game-strategies-tips__card-grid,
.page-game-strategies-tips__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-strategies-tips__card,
.page-game-strategies-tips__article-card {
  background: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-game-strategies-tips__card:hover,
.page-game-strategies-tips__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-game-strategies-tips__card-img,
.page-game-strategies-tips__article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-game-strategies-tips__card h3,
.page-game-strategies-tips__article-card h3 {
  font-size: 1.4em;
  margin: 20px 15px 10px;
  color: var(--primary-color);
  text-align: center;
}

.page-game-strategies-tips__card p,
.page-game-strategies-tips__article-card p {
  font-size: 0.95em;
  color: #555;
  padding: 0 15px 20px;
  flex-grow: 1;
  text-align: center;
}

.page-game-strategies-tips__card h3 a,
.page-game-strategies-tips__article-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  display: block;
}

.page-game-strategies-tips__card h3 a:hover,
.page-game-strategies-tips__article-card h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-game-strategies-tips__read-more {
  display: block;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-game-strategies-tips__read-more:hover {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  text-decoration: none;
}

/* Steps List */
.page-game-strategies-tips__steps-list {
  list-style: none;
  padding: 0;
}

.page-game-strategies-tips__steps-list li {
  background: var(--card-background);
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  counter-increment: step-counter;
  position: relative;
  padding-left: 80px;
}

.page-game-strategies-tips__steps-list li::before {
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 100%;
  background: var(--primary-color);
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 10px 0 0 10px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.page-game-strategies-tips__steps-list li h3 {
  margin-top: 0;
  margin-bottom: 10px;
  text-align: left;
  color: var(--primary-color);
  font-size: 1.4em;
}

.page-game-strategies-tips__steps-list li p {
  margin-bottom: 10px;
}

.page-game-strategies-tips__steps-list li ul {
  padding-left: 20px;
}

/* Strategy Grid */
.page-game-strategies-tips__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-strategies-tips__strategy-item {
  background: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-strategies-tips__strategy-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-game-strategies-tips__strategy-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: #f0f8ff;
  padding: 15px;
  box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.2);
}

.page-game-strategies-tips__strategy-item h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-game-strategies-tips__strategy-item p {
  font-size: 1em;
  color: #666;
  text-align: center;
}

/* FAQ Section */
.page-game-strategies-tips__faq-list {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-background);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
  text-align: left;
  flex-grow: 1;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: #555;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer p {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-game-strategies-tips__banner {
    height: 350px;
  }
  .page-game-strategies-tips h1 {
    font-size: 2.2em;
  }
  .page-game-strategies-tips h2 {
    font-size: 1.8em;
  }
  .page-game-strategies-tips h3 {
    font-size: 1.3em;
  }
  .page-game-strategies-tips__steps-list li::before {
    width: 50px;
    font-size: 1em;
  }
  .page-game-strategies-tips__steps-list li {
    padding-left: 70px;
  }
  .page-game-strategies-tips__strategy-img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .page-game-strategies-tips__section {
    padding: 40px 0;
  }
  .page-game-strategies-tips__container {
    padding: 15px;
  }
  .page-game-strategies-tips__banner {
    height: 300px;
  }
  .page-game-strategies-tips__banner-content h1 {
    font-size: 1.8em;
  }
  .page-game-strategies-tips__banner-content p {
    font-size: 1em;
  }
  .page-game-strategies-tips__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-game-strategies-tips__card-grid,
  .page-game-strategies-tips__article-grid,
  .page-game-strategies-tips__strategy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-strategies-tips__steps-list li {
    padding-left: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .page-game-strategies-tips__steps-list li::before {
    position: static;
    width: auto;
    height: auto;
    background: none;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 10px;
    display: block;
    text-align: left;
    box-shadow: none;
    border-radius: 0;
  }
  .faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .faq-question h3 {
    font-size: 1.1em;
    margin-right: 10px;
  }
  .faq-toggle {
    font-size: 20px;
    margin-left: auto;
  }
  .faq-item.active .faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-game-strategies-tips h1 {
    font-size: 1.5em;
  }
  .page-game-strategies-tips h2 {
    font-size: 1.6em;
  }
  .page-game-strategies-tips h3 {
    font-size: 1.2em;
  }
  .page-game-strategies-tips__banner {
    height: 250px;
  }
  .page-game-strategies-tips__banner-content p {
    font-size: 0.9em;
  }
  .page-game-strategies-tips__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}