/* style/blog-xoxo66-code-beginner-guide.css */

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

/* Base styles for the page content, using BEM for isolation */
.page-blog-xoxo66-code-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--xoxo66-text-main); /* Main text color for dark background */
  background-color: var(--xoxo66-background); /* Overall page background */
}

.page-blog-xoxo66-code-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 80px; /* Small top padding, larger bottom for content */
  background: var(--xoxo66-deep-green); /* A darker green for hero background */
  overflow: hidden;
}

.page-blog-xoxo66-code-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px; /* Space between image and text */
}

.page-blog-xoxo66-code-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-blog-xoxo66-code-beginner-guide__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 15px;
}

.page-blog-xoxo66-code-beginner-guide__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: bold;
  color: var(--xoxo66-gold-color); /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-blog-xoxo66-code-beginner-guide__hero-description {
  font-size: 1.15rem;
  color: var(--xoxo66-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-xoxo66-code-beginner-guide__cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog-xoxo66-code-beginner-guide__btn-primary,
.page-blog-xoxo66-code-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog-xoxo66-code-beginner-guide__btn-primary {
  background: var(--xoxo66-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog-xoxo66-code-beginner-guide__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-blog-xoxo66-code-beginner-guide__btn-secondary {
  background: var(--xoxo66-card-bg); /* Darker background for secondary button */
  color: var(--xoxo66-secondary-color); /* Green text for secondary button */
  border: 2px solid var(--xoxo66-secondary-color);
}

.page-blog-xoxo66-code-beginner-guide__btn-secondary:hover {
  background: var(--xoxo66-secondary-color);
  color: var(--xoxo66-card-bg);
  transform: translateY(-2px);
}

.page-blog-xoxo66-code-beginner-guide__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

.page-blog-xoxo66-code-beginner-guide__section {
  padding: 60px 20px;
}

.page-blog-xoxo66-code-beginner-guide__dark-bg {
  background-color: var(--xoxo66-background);
  color: var(--xoxo66-text-main);
}

.page-blog-xoxo66-code-beginner-guide__light-bg {
  background-color: var(--xoxo66-card-bg); /* Slightly lighter dark for contrast */
  color: var(--xoxo66-text-main);
}

.page-blog-xoxo66-code-beginner-guide__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--xoxo66-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-blog-xoxo66-code-beginner-guide__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--xoxo66-text-secondary);
}

.page-blog-xoxo66-code-beginner-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-blog-xoxo66-code-beginner-guide__content-block {
  margin-bottom: 40px;
}

.page-blog-xoxo66-code-beginner-guide__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--xoxo66-secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog-xoxo66-code-beginner-guide__content-block p,
.page-blog-xoxo66-code-beginner-guide__content-block li {
  font-size: 1.05rem;
  color: var(--xoxo66-text-main);
  margin-bottom: 15px;
}

.page-blog-xoxo66-code-beginner-guide__list,
.page-blog-xoxo66-code-beginner-guide__ordered-list {
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-blog-xoxo66-code-beginner-guide__list li,
.page-blog-xoxo66-code-beginner-guide__ordered-list li {
  margin-bottom: 10px;
  color: var(--xoxo66-text-main);
}

.page-blog-xoxo66-code-beginner-guide__list li::marker,
.page-blog-xoxo66-code-beginner-guide__ordered-list li::marker {
  color: var(--xoxo66-secondary-color);
  font-weight: bold;
}

.page-blog-xoxo66-code-beginner-guide__inline-link {
  color: var(--xoxo66-secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-blog-xoxo66-code-beginner-guide__inline-link:hover {
  text-decoration: underline;
  color: var(--xoxo66-gold-color);
}

.page-blog-xoxo66-code-beginner-guide__grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .page-blog-xoxo66-code-beginner-guide__grid-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.page-blog-xoxo66-code-beginner-guide__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-blog-xoxo66-code-beginner-guide__game-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-xoxo66-code-beginner-guide__game-card {
  background-color: var(--xoxo66-card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--xoxo66-border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-blog-xoxo66-code-beginner-guide__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-blog-xoxo66-code-beginner-guide__game-image {
  width: 100%;
  height: auto;
  max-height: 200px; /* Constrain height for cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-blog-xoxo66-code-beginner-guide__game-title {
  font-size: 1.3rem;
  color: var(--xoxo66-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog-xoxo66-code-beginner-guide__game-card p {
  font-size: 0.95rem;
  color: var(--xoxo66-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog-xoxo66-code-beginner-guide__game-card .page-blog-xoxo66-code-beginner-guide__btn-primary {
  width: 100%;
}

.page-blog-xoxo66-code-beginner-guide__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: start;
}

.page-blog-xoxo66-code-beginner-guide__tip-card {
  background-color: var(--xoxo66-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--xoxo66-border-color);
}

.page-blog-xoxo66-code-beginner-guide__tip-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-blog-xoxo66-code-beginner-guide__tip-title {
  font-size: 1.4rem;
  color: var(--xoxo66-secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog-xoxo66-code-beginner-guide__tip-card p {
  color: var(--xoxo66-text-main);
  font-size: 1rem;
}

.page-blog-xoxo66-code-beginner-guide__tip-image-wrapper {
  grid-column: span 1; /* Default to 1 column */
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-blog-xoxo66-code-beginner-guide__tips-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-blog-xoxo66-code-beginner-guide__tip-image-wrapper {
    grid-column: 2 / span 1; /* Center image in a 3-column grid */
    grid-row: 1 / span 2; /* Span multiple rows */
  }
}

.page-blog-xoxo66-code-beginner-guide__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-xoxo66-code-beginner-guide__faq-item {
  background-color: var(--xoxo66-card-bg);
  border: 1px solid var(--xoxo66-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog-xoxo66-code-beginner-guide__faq-item[open] {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-blog-xoxo66-code-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--xoxo66-text-main);
  background-color: var(--xoxo66-deep-green); /* Slightly darker for question */
  transition: background-color 0.3s ease;
}

.page-blog-xoxo66-code-beginner-guide__faq-question:hover {
  background-color: var(--xoxo66-primary-color);
  color: var(--xoxo66-text-main);
}

.page-blog-xoxo66-code-beginner-guide__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-xoxo66-code-beginner-guide__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--xoxo66-gold-color);
}

.page-blog-xoxo66-code-beginner-guide__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: var(--xoxo66-text-secondary);
  border-top: 1px solid var(--xoxo66-divider-color);
}

.page-blog-xoxo66-code-beginner-guide__faq-answer p {
  margin-bottom: 0;
}

.page-blog-xoxo66-code-beginner-guide__faq-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-blog-xoxo66-code-beginner-guide__cta-section {
  text-align: center;
  padding: 80px 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-blog-xoxo66-code-beginner-guide__hero-section {
    padding: 10px 15px 60px;
  }

  .page-blog-xoxo66-code-beginner-guide__hero-content {
    padding: 0;
  }

  .page-blog-xoxo66-code-beginner-guide__main-title {
    font-size: 2rem;
  }

  .page-blog-xoxo66-code-beginner-guide__hero-description {
    font-size: 1rem;
  }

  .page-blog-xoxo66-code-beginner-guide__cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog-xoxo66-code-beginner-guide__btn-primary,
  .page-blog-xoxo66-code-beginner-guide__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-blog-xoxo66-code-beginner-guide__btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .page-blog-xoxo66-code-beginner-guide__section {
    padding: 40px 15px;
  }

  .page-blog-xoxo66-code-beginner-guide__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-blog-xoxo66-code-beginner-guide__sub-title {
    font-size: 1.3rem;
  }

  .page-blog-xoxo66-code-beginner-guide__content-block p,
  .page-blog-xoxo66-code-beginner-guide__content-block li {
    font-size: 0.95rem;
  }

  .page-blog-xoxo66-code-beginner-guide__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-xoxo66-code-beginner-guide__grid-layout,
  .page-blog-xoxo66-code-beginner-guide__game-showcase,
  .page-blog-xoxo66-code-beginner-guide__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-xoxo66-code-beginner-guide__game-card,
  .page-blog-xoxo66-code-beginner-guide__tip-card {
    padding: 20px;
  }

  .page-blog-xoxo66-code-beginner-guide__game-image {
    max-height: 180px;
  }

  .page-blog-xoxo66-code-beginner-guide__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-blog-xoxo66-code-beginner-guide__faq-toggle {
    font-size: 1.5rem;
  }

  .page-blog-xoxo66-code-beginner-guide__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.9rem;
  }

  /* Ensure all containers and elements with images/buttons are responsive */
  .page-blog-xoxo66-code-beginner-guide__section,
  .page-blog-xoxo66-code-beginner-guide__container,
  .page-blog-xoxo66-code-beginner-guide__game-showcase,
  .page-blog-xoxo66-code-beginner-guide__tips-grid,
  .page-blog-xoxo66-code-beginner-guide__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-blog-xoxo66-code-beginner-guide__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog-xoxo66-code-beginner-guide__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking for buttons */
    gap: 10px;
  }

  .page-blog-xoxo66-code-beginner-guide__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-blog-xoxo66-code-beginner-guide__main-title {
    font-size: 1.8rem;
  }

  .page-blog-xoxo66-code-beginner-guide__section-title {
    font-size: 1.6rem;
  }

  .page-blog-xoxo66-code-beginner-guide__btn-primary,
  .page-blog-xoxo66-code-beginner-guide__btn-secondary {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
}