/* style/baccarat-tutorial.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark-card: rgba(0, 51, 102, 0.8);
  --border-light: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

/* Ensure main content is not hidden by fixed header */
.page-baccarat-tutorial {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  color: var(--text-light); /* Default text for dark background body */
}

/* General container and section styling */
.page-baccarat-tutorial__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-baccarat-tutorial__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-baccarat-tutorial__sub-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-baccarat-tutorial__text-block p,
.page-baccarat-tutorial__rule-card p,
.page-baccarat-tutorial__content-card p,
.page-baccarat-tutorial__promo-card p,
.page-baccarat-tutorial__news-card p,
.page-baccarat-tutorial__faq-answer p {
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-baccarat-tutorial__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-baccarat-tutorial__list li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* CTA Group */
.page-baccarat-tutorial__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-baccarat-tutorial__btn-primary,
.page-baccarat-tutorial__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-baccarat-tutorial__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-baccarat-tutorial__btn-primary:hover {
  background: #004488;
  border-color: #004488;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-baccarat-tutorial__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-dark);
  border: 2px solid var(--secondary-color);
}

.page-baccarat-tutorial__btn-secondary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-baccarat-tutorial__intro-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #004488 100%);
  color: var(--text-light);
}

.page-baccarat-tutorial__intro-section .page-baccarat-tutorial__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-baccarat-tutorial__text-block {
  flex: 1;
  padding: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95); /* Light background for text */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-baccarat-tutorial__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 25px;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.2;
}

.page-baccarat-tutorial__text-block p {
  color: var(--text-dark);
  font-size: 17px;
}

.page-baccarat-tutorial__image-wrapper {
  flex: 0 0 500px;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-baccarat-tutorial__intro-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Rules Section */
.page-baccarat-tutorial__rules-section {
  padding: 60px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-baccarat-tutorial__rules-section .page-baccarat-tutorial__section-title {
  color: var(--secondary-color);
}

.page-baccarat-tutorial__rules-section p {
  color: var(--text-light);
}

.page-baccarat-tutorial__rules-section .page-baccarat-tutorial__sub-title {
  color: var(--secondary-color);
}

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

.page-baccarat-tutorial__rule-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-light);
  color: var(--text-dark);
}

.page-baccarat-tutorial__rule-card h4 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-baccarat-tutorial__rules-section .page-baccarat-tutorial__rule-card p,
.page-baccarat-tutorial__rules-section .page-baccarat-tutorial__rule-card li {
  color: var(--text-dark);
}

/* Strategy Section */
.page-baccarat-tutorial__strategy-section {
  padding: 60px 0;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-baccarat-tutorial__strategy-section .page-baccarat-tutorial__section-title {
  color: var(--primary-color);
}

.page-baccarat-tutorial__strategy-section .page-baccarat-tutorial__sub-title {
  color: var(--primary-color);
}

.page-baccarat-tutorial__content-card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.page-baccarat-tutorial__content-image {
  width: 150px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Platform Choice Section */
.page-baccarat-tutorial__platform-choice-section {
  padding: 60px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-baccarat-tutorial__platform-choice-section .page-baccarat-tutorial__section-title {
  color: var(--secondary-color);
}

.page-baccarat-tutorial__platform-choice-section p {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
}

.page-baccarat-tutorial__criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-baccarat-tutorial__criteria-card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
}

.page-baccarat-tutorial__criteria-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-baccarat-tutorial__criteria-card h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-baccarat-tutorial__platform-choice-section .page-baccarat-tutorial__criteria-card p {
  color: var(--text-dark);
  font-size: 15px;
  text-align: left;
}

/* Promotions Section */
.page-baccarat-tutorial__promotions-section {
  padding: 60px 0;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-baccarat-tutorial__promotions-section .page-baccarat-tutorial__section-title {
  color: var(--primary-color);
}

.page-baccarat-tutorial__promotions-section p {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-baccarat-tutorial__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-baccarat-tutorial__promo-card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-baccarat-tutorial__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-baccarat-tutorial__promo-card h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-baccarat-tutorial__promo-card .page-baccarat-tutorial__btn-primary,
.page-baccarat-tutorial__promo-card .page-baccarat-tutorial__btn-secondary {
  width: auto;
  padding: 10px 20px;
  font-size: 16px;
  margin-top: auto; /* Push buttons to the bottom */
}

/* Latest News Section */
.page-baccarat-tutorial__latest-news-section {
  padding: 60px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-baccarat-tutorial__latest-news-section .page-baccarat-tutorial__section-title {
  color: var(--secondary-color);
}

.page-baccarat-tutorial__latest-news-section p {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
}

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

.page-baccarat-tutorial__news-card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.page-baccarat-tutorial__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-baccarat-tutorial__news-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-baccarat-tutorial__news-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-baccarat-tutorial__news-card h3 a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-baccarat-tutorial__news-card p {
  font-size: 15px;
  color: var(--text-dark);
  flex-grow: 1;
  text-align: left;
}

.page-baccarat-tutorial__news-date {
  font-size: 14px;
  color: #666666;
  margin-top: 15px;
  display: block;
}

/* FAQ Section */
.page-baccarat-tutorial__faq-section {
  padding: 60px 0;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-baccarat-tutorial__faq-section .page-baccarat-tutorial__section-title {
  color: var(--primary-color);
}

.page-baccarat-tutorial__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-baccarat-tutorial__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;
}

.page-baccarat-tutorial__faq-item.active .page-baccarat-tutorial__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f1f3f5;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-baccarat-tutorial__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-baccarat-tutorial__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-baccarat-tutorial__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-baccarat-tutorial__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* General image responsiveness */
.page-baccarat-tutorial img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-baccarat-tutorial__intro-section .page-baccarat-tutorial__container {
    flex-direction: column;
    text-align: center;
  }

  .page-baccarat-tutorial__image-wrapper {
    order: -1; /* Image above text on smaller screens */
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-baccarat-tutorial__main-title {
    font-size: 36px;
  }

  .page-baccarat-tutorial__section-title {
    font-size: 30px;
  }

  .page-baccarat-tutorial__content-card {
    flex-direction: column;
    text-align: center;
  }

  .page-baccarat-tutorial__content-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
  }
}

@media (max-width: 768px) {
  .page-baccarat-tutorial {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile header height */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-baccarat-tutorial__container {
    padding: 0 15px;
  }

  .page-baccarat-tutorial__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-baccarat-tutorial__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-baccarat-tutorial__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
  }

  .page-baccarat-tutorial__text-block {
    padding: 20px;
  }

  .page-baccarat-tutorial__text-block p,
  .page-baccarat-tutorial__rule-card p,
  .page-baccarat-tutorial__content-card p,
  .page-baccarat-tutorial__promo-card p,
  .page-baccarat-tutorial__news-card p,
  .page-baccarat-tutorial__faq-answer p {
    font-size: 15px;
  }

  .page-baccarat-tutorial__list li {
    font-size: 15px;
  }

  .page-baccarat-tutorial__btn-primary,
  .page-baccarat-tutorial__btn-secondary {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
    min-width: unset;
  }

  .page-baccarat-tutorial__intro-section,
  .page-baccarat-tutorial__rules-section,
  .page-baccarat-tutorial__strategy-section,
  .page-baccarat-tutorial__platform-choice-section,
  .page-baccarat-tutorial__promotions-section,
  .page-baccarat-tutorial__latest-news-section,
  .page-baccarat-tutorial__faq-section {
    padding: 40px 0;
  }

  .page-baccarat-tutorial__rule-card-grid,
  .page-baccarat-tutorial__criteria-grid,
  .page-baccarat-tutorial__promo-grid,
  .page-baccarat-tutorial__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-baccarat-tutorial__content-image {
    max-width: 200px;
  }

  .page-baccarat-tutorial__criteria-icon {
    width: 60px;
    height: 60px;
  }

  .page-baccarat-tutorial__promo-image,
  .page-baccarat-tutorial__news-image {
    height: 150px;
  }

  .page-baccarat-tutorial__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-baccarat-tutorial__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-baccarat-tutorial__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-baccarat-tutorial__faq-answer {
    padding: 0 15px;
  }
  
  .page-baccarat-tutorial__faq-item.active .page-baccarat-tutorial__faq-answer {
    padding: 15px !important;
  }
  
  /* Force all images and containers to fit screen */
  .page-baccarat-tutorial img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-baccarat-tutorial__section,
  .page-baccarat-tutorial__card,
  .page-baccarat-tutorial__container,
  .page-baccarat-tutorial__text-block,
  .page-baccarat-tutorial__rule-card,
  .page-baccarat-tutorial__content-card,
  .page-baccarat-tutorial__criteria-card,
  .page-baccarat-tutorial__promo-card,
  .page-baccarat-tutorial__news-card,
  .page-baccarat-tutorial__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-baccarat-tutorial__cta-group {
    padding-left: 15px;
    padding-right: 15px;
  }
}