.page-game-lobby {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background: #FFFFFF; /* Default body background is light */
}

/* Container for main content */
.page-game-lobby__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-game-lobby__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    background: #FFFFFF; /* Ensure light background for this section if content is light */
}

.page-game-lobby__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-game-lobby__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-game-lobby__hero-content {
    padding: 40px 0;
    text-align: center;
    background: #FFFFFF; /* Explicitly set for contrast safety */
    color: #333333;
}

.page-game-lobby__main-title {
    font-size: 2.8em;
    font-weight: 700;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-game-lobby__description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555555;
}

.page-game-lobby__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.page-game-lobby__btn-primary {
    background: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom color for register/login font */
    border: 2px solid #C30808;
}

.page-game-lobby__btn-primary:hover {
    background: #e00b0b;
    border-color: #e00b0b;
}

.page-game-lobby__btn-secondary {
    background: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-game-lobby__btn-secondary:hover {
    background: #005a2d;
    border-color: #005a2d;
}

/* Section Common Styles */
.page-game-lobby__dark-bg {
    background: #017439;
    color: #FFFFFF;
}

.page-game-lobby__light-bg {
    background: #FFFFFF;
    color: #333333;
}

.page-game-lobby__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: inherit; /* Inherit from section background */
}

.page-game-lobby__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    color: inherit;
}

/* Game Categories Section */
.page-game-lobby__game-categories {
    padding: 60px 0;
}

.page-game-lobby__category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-game-lobby__category-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-game-lobby__category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-game-lobby__category-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-game-lobby__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: #017439;
}

.page-game-lobby__card-title a {
    text-decoration: none;
    color: #017439;
    transition: color 0.3s ease;
}

.page-game-lobby__card-title a:hover {
    color: #005a2d;
}

.page-game-lobby__card-text {
    font-size: 0.95em;
    margin: 0 20px 20px;
    color: #555555;
}

.page-game-lobby__card-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 8px 15px;
    background: #017439;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.page-game-lobby__card-link:hover {
    background: #005a2d;
}

/* About Games Section */
.page-game-lobby__about-games {
    padding: 60px 0;
}

.page-game-lobby__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-game-lobby__text-block {
    flex: 1;
}

.page-game-lobby__text-block p {
    margin-bottom: 20px;
    color: #333333;
}

.page-game-lobby__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-game-lobby__feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #333333;
}

.page-game-lobby__icon-check {
    color: #017439;
    margin-right: 10px;
    font-size: 1.2em; /* Assuming an icon font or SVG */
}
.page-game-lobby__icon-check::before {
    content: "✔"; /* Placeholder for checkmark icon */
}

.page-game-lobby__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-lobby__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-game-lobby__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

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

.page-game-lobby__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-game-lobby__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-game-lobby__faq-item summary.page-game-lobby__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;
  color: #FFFFFF; /* Text color for dark background */
  font-weight: 600;
}
details.page-game-lobby__faq-item summary.page-game-lobby__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-lobby__faq-item summary.page-game-lobby__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}
.page-game-lobby__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
}
.page-game-lobby__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-lobby__faq-item .page-game-lobby__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.1); /* Slightly darker background for answer */
  border-radius: 0 0 8px 8px;
  color: #f0f0f0; /* Lighter text for answer */
  font-size: 1em;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
    .page-game-lobby__main-title {
        font-size: 2.2em;
    }
    .page-game-lobby__section-title {
        font-size: 1.8em;
    }
    .page-game-lobby__category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-game-lobby__about-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-game-lobby__image-block {
        order: -1; /* Image above text on smaller screens */
    }
    .page-game-lobby__btn-primary,
    .page-game-lobby__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* General content area padding */
    .page-game-lobby__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-game-lobby__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }
    .page-game-lobby__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-game-lobby__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-game-lobby__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-lobby__btn-primary,
    .page-game-lobby__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Game Categories Section */
    .page-game-lobby__game-categories {
        padding: 40px 0;
    }
    .page-game-lobby__section-title {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    .page-game-lobby__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-game-lobby__category-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .page-game-lobby__category-image {
        height: 180px;
    }
    .page-game-lobby__card-title {
        font-size: 1.2em;
        margin: 15px 15px 8px;
    }
    .page-game-lobby__card-text {
        font-size: 0.9em;
        margin: 0 15px 15px;
    }
    .page-game-lobby__card-link {
        margin: 0 15px 15px;
    }

    /* About Games Section */
    .page-game-lobby__about-games {
        padding: 40px 0;
    }
    .page-game-lobby__about-content {
        gap: 25px;
    }
    .page-game-lobby__text-block p {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    .page-game-lobby__feature-list li {
        font-size: 0.95em;
        margin-bottom: 8px;
    }
    .page-game-lobby__btn-large {
        padding: 15px 25px !important;
        font-size: 1.1em !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-game-lobby__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* FAQ Section */
    .page-game-lobby__faq-section {
        padding: 40px 0;
    }
    details.page-game-lobby__faq-item summary.page-game-lobby__faq-question {
        padding: 15px !important;
    }
    .page-game-lobby__faq-qtext {
        font-size: 1em !important;
    }
    .page-game-lobby__faq-toggle {
        font-size: 20px !important;
        width: 24px !important;
        height: 24px !important;
    }
    details.page-game-lobby__faq-item .page-game-lobby__faq-answer {
        padding: 0 15px 15px !important;
        font-size: 0.95em !important;
    }

    /* Universal image responsive styles */
    .page-game-lobby img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-game-lobby__hero-image-wrapper,
    .page-game-lobby__category-card,
    .page-game-lobby__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}