/* Base styles for the page */
.page-365ph-com {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f8f8;
  overflow-x: hidden;
  padding-top: 10px; /* Decorative top padding, assuming body has header offset */
}

/* Section styling */
.page-365ph-com__section-title {
  font-size: 2.2em;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
  padding: 0 15px;
}

.page-365ph-com__section-subtitle {
  font-size: 1.1em;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
}

/* Buttons */
.page-365ph-com__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.page-365ph-com__button--primary {
  background-color: #e02b2b; /* A vibrant red, common in gaming/casino */
  color: #fff;
  border: 2px solid #e02b2b;
}

.page-365ph-com__button--primary:hover {
  background-color: #c02020;
  transform: translateY(-2px);
}

.page-365ph-com__button--secondary {
  background-color: #333;
  color: #fff;
  border: 2px solid #333;
}

.page-365ph-com__button--secondary:hover {
  background-color: #000;
  transform: translateY(-2px);
}

.page-365ph-com__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 6px;
}

.page-365ph-com__button--large {
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 10px;
}

.page-365ph-com__button--xl {
  padding: 18px 35px;
  font-size: 1.2em;
  border-radius: 12px;
}

/* Hero Section */
.page-365ph-com__hero-section {
  position: relative;
  width: 100%;
  height: 60vh; /* Adjust height for mobile first */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 400px;
}

.page-365ph-com__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-365ph-com__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
  max-width: 100%;
}

.page-365ph-com__hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 90%;
  padding: 20px;
  box-sizing: border-box;
}

.page-365ph-com__hero-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-365ph-com__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-365ph-com__hero-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* Game Categories Section */
.page-365ph-com__categories-section {
  padding: 60px 20px;
  background-color: #fff;
}

.page-365ph-com__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-365ph-com__category-item {
  background-color: #fefefe;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-365ph-com__category-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-365ph-com__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  max-width: 100%;
}

.page-365ph-com__category-title {
  font-size: 1.6em;
  color: #e02b2b;
  margin: 20px 15px 10px 15px;
}

.page-365ph-com__category-description {
  font-size: 1em;
  color: #666;
  padding: 0 15px 20px 15px;
}

.page-365ph-com__cta-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Promotions Section */
.page-365ph-com__promotions-section {
  padding: 60px 20px;
  background-color: #f0f2f5;
}

.page-365ph-com__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-365ph-com__promo-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-365ph-com__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.page-365ph-com__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  max-width: 100%;
}

.page-365ph-com__promo-title {
  font-size: 1.5em;
  color: #1a1a1a;
  margin: 20px 15px 10px 15px;
}

.page-365ph-com__promo-description {
  font-size: 1em;
  color: #666;
  padding: 0 15px 20px 15px;
}

/* App Download Section */
.page-365ph-com__app-section {
  padding: 60px 20px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.page-365ph-com__app-content {
  text-align: center;
}

.page-365ph-com__app-features {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-365ph-com__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 500px;
  text-align: left;
}

.page-365ph-com__feature-item {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-365ph-com__feature-item::before {
  content: '✓';
  color: #e02b2b;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-365ph-com__app-image-wrapper {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-365ph-com__app-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* Why Choose Us Section */
.page-365ph-com__why-choose-us-section {
  padding: 60px 20px;
  background-color: #f0f2f5;
}

.page-365ph-com__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-365ph-com__benefit-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  text-align: center;
  box-sizing: border-box;
}

.page-365ph-com__benefit-title {
  font-size: 1.5em;
  color: #e02b2b;
  margin-bottom: 15px;
}

.page-365ph-com__benefit-description {
  font-size: 1em;
  color: #555;
}

/* FAQ Section */
.page-365ph-com__faq-section {
  padding: 60px 20px;
  background-color: #fff;
}

.page-365ph-com__faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-365ph-com__faq-item {
  background-color: #fefefe;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.page-365ph-com__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #1a1a1a;
  cursor: pointer;
  user-select: none;
  background-color: #eee;
  transition: background-color 0.3s ease;
}

.page-365ph-com__faq-question:hover {
  background-color: #e0e0e0;
}

.page-365ph-com__faq-q-text {
  margin: 0;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #e02b2b;
}

.page-365ph-com__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  pointer-events: none; /* Prevent toggle from blocking click event */
  transition: transform 0.3s ease;
}

.page-365ph-com__faq-item.active .page-365ph-com__faq-toggle {
  transform: rotate(45deg); /* Plus turns into a cross/minus */
}

.page-365ph-com__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  box-sizing: border-box;
}

.page-365ph-com__faq-item.active .page-365ph-com__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 20px !important;
  opacity: 1;
}

.page-365ph-com__faq-answer p {
  margin: 0;
  color: #555;
  font-size: 1em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Final Call to Action Section */
.page-365ph-com__cta-final-section {
  padding: 60px 20px;
  background-color: #e02b2b; /* Red background for emphasis */
  color: #fff;
  text-align: center;
}

.page-365ph-com__cta-final-section .page-365ph-com__section-title,
.page-365ph-com__cta-final-section .page-365ph-com__section-subtitle {
  color: #fff;
}

.page-365ph-com__cta-final-section .page-365ph-com__button {
  background-color: #fff;
  color: #e02b2b;
  border-color: #fff;
}

.page-365ph-com__cta-final-section .page-365ph-com__button:hover {
  background-color: #f0f0f0;
  color: #c02020;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-365ph-com__hero-section {
    height: 70vh;
    min-height: 350px;
  }

  .page-365ph-com__hero-title {
    font-size: 2em;
  }

  .page-365ph-com__hero-description {
    font-size: 1em;
  }

  .page-365ph-com__hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-365ph-com__button--large {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
  }
  .page-365ph-com__button--xl {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
  }

  .page-365ph-com__section-title {
    font-size: 1.8em;
  }

  .page-365ph-com__section-subtitle {
    font-size: 1em;
  }

  .page-365ph-com__categories-section,
  .page-365ph-com__promotions-section,
  .page-365ph-com__app-section,
  .page-365ph-com__why-choose-us-section,
  .page-365ph-com__faq-section,
  .page-365ph-com__cta-final-section {
    padding: 40px 15px;
  }

  .page-365ph-com__category-grid,
  .page-365ph-com__promo-grid,
  .page-365ph-com__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* List item responsive */
  .page-365ph-com__feature-list {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .page-365ph-com__feature-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 25px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .page-365ph-com__feature-item::before {
    left: 0 !important;
  }

  .page-365ph-com__app-section {
    flex-direction: column;
  }

  .page-365ph-com__app-image-wrapper {
    max-width: 100%;
  }

  .page-365ph-com__faq-question {
    font-size: 1.1em;
    padding: 12px 15px;
  }

  .page-365ph-com__faq-answer {
    padding: 0 15px;
  }

  .page-365ph-com__faq-item.active .page-365ph-com__faq-answer {
    padding: 15px 15px !important;
  }
}

@media (min-width: 769px) {
  .page-365ph-com__hero-section {
    height: 70vh;
  }
  .page-365ph-com__hero-title {
    font-size: 3.5em;
  }
  .page-365ph-com__hero-description {
    font-size: 1.4em;
  }
  .page-365ph-com__hero-actions {
    flex-direction: row;
    gap: 20px;
  }
  .page-365ph-com__app-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .page-365ph-com__app-content {
    flex: 1;
    text-align: left;
    margin-right: 40px;
  }
  .page-365ph-com__app-image-wrapper {
    flex: 1;
    max-width: 500px;
  }
  .page-365ph-com__feature-list {
    margin-left: 0;
  }
}

/* Ensure all images are responsive */
.page-365ph-com img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Image containers for responsiveness */
.page-365ph-com__hero-background,
.page-365ph-com__category-item,
.page-365ph-com__promo-card,
.page-365ph-com__app-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Specific image handling for mobile */
@media (max-width: 768px) {
  .page-365ph-com img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-365ph-com__hero-image,
  .page-365ph-com__category-image,
  .page-365ph-com__promo-image,
  .page-365ph-com__app-image {
    width: 100% !important;
    height: auto !important; /* Allow height to adjust naturally */
  }
}