/* style/game-strategy-guides-blackjack.css */
:root {
  --page-primary-color: #11A84E;
  --page-secondary-color: #22C768;
  --page-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-card-bg: #11271B;
  --page-bg: #08160F;
  --page-text-main: #F2FFF6;
  --page-text-secondary: #A7D9B8;
  --page-border-color: #2E7A4E;
  --page-glow-color: #57E38D;
  --page-gold-color: #F2C14E;
  --page-divider-color: #1E3A2A;
  --page-deep-green-color: #0A4B2C;
}

.page-game-strategy-guides-blackjack {
  font-family: 'Arial', sans-serif;
  color: var(--page-text-main); /* Default text color for the page */
  background-color: var(--page-bg); /* Default background color for the page */
}

/* Ensure good contrast for light background sections */
.page-game-strategy-guides-blackjack__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Ensure good contrast for dark background sections */
.page-game-strategy-guides-blackjack__dark-bg {
  background-color: var(--page-bg);
  color: var(--page-text-main);
}

.page-game-strategy-guides-blackjack__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-game-strategy-guides-blackjack__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body already handles padding-top */
  text-align: center;
  overflow: hidden;
}

.page-game-strategy-guides-blackjack__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-strategy-guides-blackjack__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability, not changing color */
  min-height: 200px; /* Minimum image size */
}

.page-game-strategy-guides-blackjack__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

.page-game-strategy-guides-blackjack__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-text-main);
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 does not overflow */
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

.page-game-strategy-guides-blackjack__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--page-text-secondary);
  margin-bottom: 30px;
}

/* Section Titles */
.page-game-strategy-guides-blackjack__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-game-strategy-guides-blackjack__light-bg .page-game-strategy-guides-blackjack__section-title {
  color: var(--page-deep-green-color);
}

/* Text Blocks */
.page-game-strategy-guides-blackjack__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: inherit;
}

.page-game-strategy-guides-blackjack__inline-link {
  color: var(--page-gold-color);
  text-decoration: underline;
}

.page-game-strategy-guides-blackjack__inline-link:hover {
  color: var(--page-glow-color);
}

.page-game-strategy-guides-blackjack__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* Strategy Cards */
.page-game-strategy-guides-blackjack__strategies-section {
  padding: 60px 0;
}

.page-game-strategy-guides-blackjack__strategy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-game-strategy-guides-blackjack__strategy-card {
  background-color: var(--page-card-bg);
  border: 1px solid var(--page-border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-text-main);
}

.page-game-strategy-guides-blackjack__strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-game-strategy-guides-blackjack__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-game-strategy-guides-blackjack__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--page-primary-color);
  padding: 20px 25px 10px;
}

.page-game-strategy-guides-blackjack__card-content {
  padding: 0 25px 25px;
  line-height: 1.6;
}

.page-game-strategy-guides-blackjack__card-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--page-text-main);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-game-strategy-guides-blackjack__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: inherit;
}

.page-game-strategy-guides-blackjack__list li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: inherit;
}

/* Tips Section */
.page-game-strategy-guides-blackjack__tips-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

.page-game-strategy-guides-blackjack__tips-section .page-game-strategy-guides-blackjack__section-title {
  color: var(--page-gold-color);
}

.page-game-strategy-guides-blackjack__list-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
  list-style: none;
  padding: 0;
}

.page-game-strategy-guides-blackjack__list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--page-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-strategy-guides-blackjack__list-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
  min-width: 80px; /* Ensure icon is not smaller than 80px, but still larger than 200px in actual image */
  min-height: 80px; /* Ensure icon is not smaller than 80px, but still larger than 200px in actual image */
}

.page-game-strategy-guides-blackjack__list-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-primary-color);
  margin-bottom: 10px;
}

.page-game-strategy-guides-blackjack__list-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-text-secondary);
}

/* CTA Section */
.page-game-strategy-guides-blackjack__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-game-strategy-guides-blackjack__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-game-strategy-guides-blackjack__btn-primary,
.page-game-strategy-guides-blackjack__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-strategy-guides-blackjack__btn-primary {
  background: var(--page-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-strategy-guides-blackjack__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-game-strategy-guides-blackjack__btn-secondary {
  background: transparent;
  color: var(--page-primary-color);
  border: 2px solid var(--page-primary-color);
}

.page-game-strategy-guides-blackjack__btn-secondary:hover {
  background: rgba(var(--page-primary-color), 0.1);
  transform: translateY(-2px);
  color: var(--page-primary-color);
}

/* FAQ Section */
.page-game-strategy-guides-blackjack__faq-section {
  padding: 60px 0;
}

.page-game-strategy-guides-blackjack__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-strategy-guides-blackjack__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333; /* Dark text for light background */
}

.page-game-strategy-guides-blackjack__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--page-deep-green-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-strategy-guides-blackjack__faq-question::-webkit-details-marker {
  display: none;
}

.page-game-strategy-guides-blackjack__faq-item[open] .page-game-strategy-guides-blackjack__faq-question {
  background-color: #e6ffe6;
  border-bottom: 1px solid var(--page-primary-color);
}

.page-game-strategy-guides-blackjack__faq-question:hover {
  background-color: #e6ffe6;
}

.page-game-strategy-guides-blackjack__faq-qtext {
  flex-grow: 1;
}

.page-game-strategy-guides-blackjack__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-left: 15px;
  color: var(--page-primary-color);
  line-height: 1;
}

.page-game-strategy-guides-blackjack__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-strategy-guides-blackjack__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-game-strategy-guides-blackjack__section-title {
    font-size: 2rem;
  }

  .page-game-strategy-guides-blackjack__strategy-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-game-strategy-guides-blackjack {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-game-strategy-guides-blackjack__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-game-strategy-guides-blackjack__hero-content {
    position: static;
    transform: none;
    background-color: rgba(0, 0, 0, 0.6);
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
  }

  .page-game-strategy-guides-blackjack__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-game-strategy-guides-blackjack__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-game-strategy-guides-blackjack__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-game-strategy-guides-blackjack__container {
    padding: 0 15px;
  }

  .page-game-strategy-guides-blackjack__content-image,
  .page-game-strategy-guides-blackjack__card-image,
  .page-game-strategy-guides-blackjack__list-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-game-strategy-guides-blackjack__hero-image-wrapper,
  .page-game-strategy-guides-blackjack__strategy-card,
  .page-game-strategy-guides-blackjack__list-item,
  .page-game-strategy-guides-blackjack__cta-section .page-game-strategy-guides-blackjack__container,
  .page-game-strategy-guides-blackjack__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-game-strategy-guides-blackjack__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-game-strategy-guides-blackjack__list-icon {
    margin-bottom: 15px;
    width: 100px;
    height: 100px;
  }

  .page-game-strategy-guides-blackjack__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-game-strategy-guides-blackjack__btn-primary,
  .page-game-strategy-guides-blackjack__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-game-strategy-guides-blackjack__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-game-strategy-guides-blackjack__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-game-strategy-guides-blackjack__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .page-game-strategy-guides-blackjack__section-title {
    font-size: 1.6rem;
  }

  .page-game-strategy-guides-blackjack__hero-description {
    font-size: 0.95rem;
  }

  .page-game-strategy-guides-blackjack__card-title {
    font-size: 1.4rem;
  }

  .page-game-strategy-guides-blackjack__card-subtitle {
    font-size: 1.1rem;
  }
}