:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --card-bg: #17191F;
    --bg-color-main: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

.page-game-guides {
    color: var(--text-main);
    background-color: var(--bg-color-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-game-guides__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-game-guides__hero-section {
    padding-top: 10px; /* Rely on body padding-top for header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-game-guides__hero-image {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-game-guides__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255,165,58,0.5);
}

.page-game-guides__intro-text {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

.page-game-guides__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-game-guides__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 165, 58, 0.1);
}

.page-game-guides__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255,165,58,0.3);
}

.page-game-guides__text-block {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__game-categories {
    background-color: var(--bg-color-main);
}

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

.page-game-guides__category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-game-guides__category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-game-guides__category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-game-guides__card-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    padding: 20px 20px 10px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(255,165,58,0.2);
}

.page-game-guides__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: var(--primary-color);
}

.page-game-guides__card-description {
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0 20px 15px;
    flex-grow: 1;
    text-align: justify;
}

.page-game-guides__card-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
}

.page-game-guides__card-link:hover {
    background-color: var(--deep-orange);
}

.page-game-guides__new-player-tips,
.page-game-guides__advanced-strategies {
    background-color: var(--bg-color-main);
}

.page-game-guides__tip-list,
.page-game-guides__strategy-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.page-game-guides__tip-list li,
.page-game-guides__strategy-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.page-game-guides__tip-list li:hover,
.page-game-guides__strategy-list li:hover {
    transform: translateX(5px);
}

.page-game-guides__tip-list li strong,
.page-game-guides__strategy-list li strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.page-game-guides__final-cta {
    background-color: var(--bg-color-main);
}

.page-game-guides__dark-section {
    background: var(--primary-color);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #ffffff; /* Ensure white text on primary color background */
}

.page-game-guides__dark-section .page-game-guides__section-title {
    color: #ffffff;
    text-shadow: none;
    margin-bottom: 25px;
}

.page-game-guides__dark-section .page-game-guides__text-block {
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

/* FAQ Section */
details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: rgba(255, 165, 58, 0.1);
}
.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--secondary-color);
}
.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 165, 58, 0.05);
  border-radius: 0 0 5px 5px;
  color: var(--text-main);
}
details.page-game-guides__faq-item .page-game-guides__faq-answer p {
    margin: 0;
    padding: 0;
}

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

/* Media Queries */
@media (max-width: 1024px) {
    .page-game-guides__container {
        padding: 20px 30px;
    }

    .page-game-guides__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }

    .page-game-guides__intro-text {
        font-size: 1.1rem;
    }

    .page-game-guides__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-game-guides__category-card img {
        
    }

    .page-game-guides__tip-list li,
    .page-game-guides__strategy-list li {
        padding: 18px;
        font-size: 0.95rem;
    }
    .page-game-guides__faq-qtext {
        font-size: 15px;
    }
}

@media (max-width: 849px) {
    .page-game-guides__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding-top: 10px; /* Ensure small top padding, not header offset */
        padding-bottom: 40px;
    }

    .page-game-guides__hero-content {
        padding: 0 15px;
    }

    .page-game-guides__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-game-guides__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides a[class*="button"],
    .page-game-guides a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-game-guides__section {
        padding: 40px 0;
    }

    .page-game-guides__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-game-guides__text-block {
        font-size: 0.95rem;
        text-align: left;
    }

    .page-game-guides__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
        gap: 20px;
        overflow-x: hidden;
    }

    .page-game-guides__category-card img {
        
    }

    .page-game-guides__card-title {
        font-size: 1.2rem;
        padding: 15px 15px 8px;
    }

    .page-game-guides__card-description {
        font-size: 0.85rem;
        padding: 0 15px 10px;
    }

    .page-game-guides__card-link {
        margin: 0 15px 15px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .page-game-guides__tip-list,
    .page-game-guides__strategy-list {
        margin: 30px auto;
        padding: 0 15px;
    }

    .page-game-guides__tip-list li,
    .page-game-guides__strategy-list li {
        padding: 15px;
        font-size: 0.9rem;
    }

    .page-game-guides__tip-list li strong,
    .page-game-guides__strategy-list li strong {
        font-size: 1rem;
    }

    .page-game-guides__dark-section {
        padding: 30px 20px;
    }

    .page-game-guides__faq-item summary.page-game-guides__faq-question { padding: 15px; }
    .page-game-guides__faq-qtext { font-size: 15px; }
    .page-game-guides__faq-answer { padding: 0 15px 15px; }

    /* Ensure all content images are responsive */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides__category-grid {
        grid-template-columns: 1fr;
    }
    .page-game-guides__category-card {
        max-width: 100%;
    }
    .page-game-guides__category-card:nth-child(even) { /* Prevent two cards from being alone on a row */
        margin-left: 0;
    }
    .page-game-guides__category-card:nth-child(odd) {
        margin-right: 0;
    }
}