/* style/online-poker.css */

/* Variables and Base Styles */
:root {
  --ph33-primary-color: #0A2463;
  --ph33-secondary-color: #FFD700;
  --ph33-text-light: #ffffff;
  --ph33-text-dark: #333333;
  --ph33-bg-dark: #1a1a1a; /* Inherited from body */
  --ph33-bg-light: #f8f9fa;
  --ph33-card-bg: rgba(255, 255, 255, 0.1);
  --ph33-border-color: rgba(255, 255, 255, 0.2);
  --header-offset: 80px; /* Default, will be overridden by shared.css */
}

.page-online-poker {
  color: var(--ph33-text-light); /* Default text color for dark body background */
  background-color: var(--ph33-bg-dark); /* Ensure consistency if body background isn't inherited directly */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* General Section Styling */
.page-online-poker__section {
  padding: 60px 0;
  text-align: center;
}

.page-online-poker__dark-section {
  background-color: var(--ph33-primary-color); /* Use primary color for dark sections */
  color: var(--ph33-text-light);
}

.page-online-poker__light-bg {
  background-color: var(--ph33-bg-light);
  color: var(--ph33-text-dark);
}

.page-online-poker__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-online-poker__container--flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

/* Headings */
.page-online-poker__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--ph33-secondary-color); /* Gold for main title */
}

.page-online-poker__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ph33-secondary-color);
}

.page-online-poker__section-title--dark-text {
  color: var(--ph33-primary-color);
}

.page-online-poker__hero-description,
.page-online-poker__section-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-online-poker__section-description--dark-text {
  color: var(--ph33-text-dark);
}

/* Buttons */
.page-online-poker__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-online-poker__cta-buttons--centered {
  justify-content: center;
}

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

.page-online-poker__btn-primary {
  background-color: var(--ph33-secondary-color);
  color: var(--ph33-primary-color);
  border: 2px solid var(--ph33-secondary-color);
}

.page-online-poker__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold */
  border-color: #e6c200;
}

.page-online-poker__btn-secondary {
  background-color: transparent;
  color: var(--ph33-secondary-color);
  border: 2px solid var(--ph33-secondary-color);
}

.page-online-poker__btn-secondary:hover {
  background-color: var(--ph33-secondary-color);
  color: var(--ph33-primary-color);
}

/* Hero Section */
.page-online-poker__hero-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: var(--ph33-primary-color);
  padding-top: 10px; /* Small top padding for first section, body padding-top handles header offset */
}

.page-online-poker__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.page-online-poker__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
}

.page-online-poker__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

/* Cards Grid */
.page-online-poker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-online-poker__card {
  background-color: var(--ph33-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ph33-text-light);
}

.page-online-poker__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-online-poker__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--ph33-secondary-color);
}

.page-online-poker__card-text {
  font-size: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

/* Step-by-Step Guide */
.page-online-poker__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-online-poker__step {
  background-color: var(--ph33-text-light);
  color: var(--ph33-text-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-top: 70px;
}

.page-online-poker__step-number {
  position: absolute;
  top: 20px;
  left: 30px;
  background-color: var(--ph33-primary-color);
  color: var(--ph33-text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-online-poker__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ph33-primary-color);
}

.page-online-poker__step-title--dark-text {
  color: var(--ph33-primary-color);
}

.page-online-poker__step-text--dark-text {
  color: var(--ph33-text-dark);
}

/* Game Cards */
.page-online-poker__game-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-online-poker__game-card {
  background-color: var(--ph33-card-bg);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ph33-text-light);
}

.page-online-poker__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-online-poker__game-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ph33-secondary-color);
}

.page-online-poker__game-card-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-online-poker__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-online-poker__promo-card {
  background-color: var(--ph33-card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ph33-text-light);
}

.page-online-poker__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%;
  display: block;
}

.page-online-poker__promo-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ph33-secondary-color);
}

.page-online-poker__promo-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Mobile Poker Section */
.page-online-poker__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-online-poker__mobile-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px;
}

.page-online-poker__mobile-content {
  flex: 1;
  padding-right: 20px;
}

.page-online-poker__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.page-online-poker__feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--ph33-text-light);
}

.page-online-poker__feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ph33-primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.page-online-poker__feature-list--dark-text li {
  color: var(--ph33-text-dark);
}

/* Responsible Gaming Section */
.page-online-poker__responsible-gaming-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-online-poker__feature-item {
  background-color: var(--ph33-card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--ph33-text-light);
}

.page-online-poker__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ph33-secondary-color);
}

.page-online-poker__feature-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* FAQ Section */
.page-online-poker__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-online-poker__faq-item {
  background-color: var(--ph33-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-online-poker__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly darker background for question */
  color: var(--ph33-text-light);
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-online-poker__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-online-poker__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.page-online-poker__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--ph33-secondary-color);
  transition: transform 0.3s ease;
}

.page-online-poker__faq-item.active .page-online-poker__faq-toggle {
  transform: rotate(45deg);
}

.page-online-poker__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--ph33-text-light);
}

.page-online-poker__faq-item.active .page-online-poker__faq-answer {
  max-height: 1000px !important;
  padding: 15px 25px 25px;
}

.page-online-poker__faq-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Join Community CTA Block */
.page-online-poker__cta-block {
  padding: 40px 20px;
  background-color: var(--ph33-bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: var(--ph33-text-dark);
}

.page-online-poker__cta-block .page-online-poker__section-title {
  color: var(--ph33-primary-color);
}

.page-online-poker__cta-block .page-online-poker__section-description {
  color: var(--ph33-text-dark);
}

/* Image Responsive Styles */
.page-online-poker img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure no filter is used for images */
.page-online-poker img {
  filter: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-online-poker__container--flex {
    flex-direction: column;
    text-align: center;
  }

  .page-online-poker__mobile-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .page-online-poker__feature-list {
    text-align: center;
  }

  .page-online-poker__feature-list li {
    padding-left: 0;
  }

  .page-online-poker__feature-list li::before {
    position: static;
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .page-online-poker__section {
    padding: 40px 0;
  }

  .page-online-poker__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-online-poker__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-online-poker__hero-content {
    padding: 30px 15px;
  }

  .page-online-poker__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-online-poker__btn-primary,
  .page-online-poker__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-online-poker__cta-buttons,
  .page-online-poker__button-group,
  .page-online-poker__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-online-poker__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-online-poker__grid,
  .page-online-poker__step-by-step,
  .page-online-poker__game-cards-wrapper,
  .page-online-poker__promo-grid,
  .page-online-poker__responsible-gaming-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-online-poker img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-online-poker__section,
  .page-online-poker__card,
  .page-online-poker__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-online-poker__hero-section {
    padding-top: 10px !important;
  }

  .page-online-poker__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-online-poker__faq-answer {
    padding: 0 20px;
  }

  .page-online-poker__faq-item.active .page-online-poker__faq-answer {
    padding: 10px 20px 20px;
  }
}