/* Base Styles */
.page-jl-lopez {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0;
  background-color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.page-jl-lopez__section-title {
  font-size: 2.5em;
  color: #ffd700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-jl-lopez__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #ffd700;
  border-radius: 2px;
}

.page-jl-lopez__text-content {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #cccccc;
}

.page-jl-lopez__cta-button,
.page-jl-lopez__quick-link-button,
.page-jl-lopez__game-button,
.page-jl-lopez__promo-button,
.page-jl-lopez__contact-button,
.page-jl-lopez__read-more {
  display: inline-block;
  background-color: #ffd700;
  color: #1a1a1a;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
  white-space: nowrap;
}

.page-jl-lopez__cta-button:hover,
.page-jl-lopez__quick-link-button:hover,
.page-jl-lopez__game-button:hover,
.page-jl-lopez__promo-button:hover,
.page-jl-lopez__contact-button:hover,
.page-jl-lopez__read-more:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* Hero Section */
.page-jl-lopez__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 50px 0; /* Decorative top padding, body handles header-offset */
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.page-jl-lopez__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.page-jl-lopez__hero-content {
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-jl-lopez__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-jl-lopez__hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #e0e0e0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-jl-lopez__cta-button--secondary {
  background-color: transparent;
  color: #ffd700;
  border: 2px solid #ffd700;
}

.page-jl-lopez__cta-button--secondary:hover {
  background-color: #ffd700;
  color: #1a1a1a;
}

/* Introduction Section */
.page-jl-lopez__intro-section {
  padding: 80px 0;
  background-color: #222;
}

.page-jl-lopez__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-jl-lopez__feature-item {
  background-color: #333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jl-lopez__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-jl-lopez__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-jl-lopez__feature-title {
  font-size: 1.5em;
  color: #ffd700;
  margin-bottom: 10px;
}

.page-jl-lopez__feature-description {
  color: #ccc;
}

/* Quick Links Section */
.page-jl-lopez__quick-links-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-jl-lopez__quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-jl-lopez__quick-link-button {
  min-width: 200px;
  text-align: center;
  background-color: #007bff;
  color: #fff;
  padding: 15px 30px;
}

.page-jl-lopez__quick-link-button:hover {
  background-color: #0056b3;
}

/* Games Section */
.page-jl-lopez__games-section {
  padding: 80px 0;
  background-color: #222;
}

.page-jl-lopez__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-jl-lopez__game-category {
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jl-lopez__game-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-jl-lopez__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #444;
}

.page-jl-lopez__game-title {
  font-size: 1.6em;
  color: #ffd700;
  margin: 20px 0 10px;
}

.page-jl-lopez__game-description {
  color: #ccc;
  padding: 0 20px 20px;
}

.page-jl-lopez__game-button {
  margin-bottom: 20px;
}

.page-jl-lopez__game-providers {
  margin-top: 80px;
  text-align: center;
}

.page-jl-lopez__providers-title {
  font-size: 1.8em;
  color: #ffd700;
  margin-bottom: 30px;
}

.page-jl-lopez__provider-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-jl-lopez__provider-logo {
  height: 60px; /* Adjusted height for gamelogo */
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%);
  transition: filter 0.3s ease;
}

.page-jl-lopez__provider-logo:hover {
  filter: grayscale(0%) brightness(100%);
}

/* Promotions Section */
.page-jl-lopez__promo-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-jl-lopez__promo-card {
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jl-lopez__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-jl-lopez__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-jl-lopez__promo-title {
  font-size: 1.8em;
  color: #ffd700;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-jl-lopez__promo-description {
  color: #ccc;
  padding: 0 15px 20px;
}

.page-jl-lopez__promo-button {
  margin-bottom: 20px;
}

/* Security Section */
.page-jl-lopez__security-section {
  padding: 80px 0;
  background-color: #222;
}

.page-jl-lopez__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-jl-lopez__security-item {
  background-color: #333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-jl-lopez__security-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-jl-lopez__security-title {
  font-size: 1.5em;
  color: #ffd700;
  margin-bottom: 10px;
}

.page-jl-lopez__security-description {
  color: #ccc;
  margin-bottom: 20px;
}

.page-jl-lopez__contact-button {
  background-color: #28a745;
  color: #fff;
}

.page-jl-lopez__contact-button:hover {
  background-color: #218838;
}

/* FAQ Section */
.page-jl-lopez__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-jl-lopez__faq-list {
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-jl-lopez__faq-item {
  background-color: #222;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-jl-lopez__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #333;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #444;
  transition: background-color 0.3s ease;
}

.page-jl-lopez__faq-question:hover {
  background-color: #444;
}

.page-jl-lopez__faq-title {
  font-size: 1.3em;
  color: #ffd700;
  margin: 0;
  pointer-events: none; /* Prevent text selection interfering with click */
}

.page-jl-lopez__faq-toggle {
  font-size: 1.8em;
  color: #ffd700;
  font-weight: bold;
  pointer-events: none; /* Prevent icon interfering with click */
  transition: transform 0.3s ease;
}

.page-jl-lopez__faq-item.active .page-jl-lopez__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-jl-lopez__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #2a2a2a;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  color: #ccc;
}

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

/* Blog Section */
.page-jl-lopez__blog-section {
  padding: 80px 0;
  background-color: #222;
}

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

.page-jl-lopez__blog-card {
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jl-lopez__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-jl-lopez__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-jl-lopez__blog-content-wrapper {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-jl-lopez__blog-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-jl-lopez__blog-title a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-jl-lopez__blog-title a:hover {
  color: #e6c200;
}

.page-jl-lopez__blog-excerpt {
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-jl-lopez__read-more {
  align-self: flex-start;
  padding: 8px 15px;
  font-size: 0.9em;
  background-color: #007bff;
  color: #fff;
}

.page-jl-lopez__read-more:hover {
  background-color: #0056b3;
}

/* Floating Buttons */
.page-jl-lopez__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-jl-lopez__float-register-btn,
.page-jl-lopez__float-login-btn {
  background-color: #ffd700;
  color: #1a1a1a;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.page-jl-lopez__float-register-btn:hover,
.page-jl-lopez__float-login-btn:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-jl-lopez__hero-title {
    font-size: 3em;
  }
  .page-jl-lopez__hero-subtitle {
    font-size: 1.3em;
  }
  .page-jl-lopez__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-jl-lopez__hero-section {
    min-height: 500px;
  }
  .page-jl-lopez__hero-title {
    font-size: 2.5em;
  }
  .page-jl-lopez__hero-subtitle {
    font-size: 1.1em;
  }
  .page-jl-lopez__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-jl-lopez__cta-button {
    width: 80%;
    margin: 0 auto;
  }

  .page-jl-lopez__container {
    padding: 15px;
  }
  .page-jl-lopez__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-jl-lopez__text-content {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* List items mobile responsiveness */
  .page-jl-lopez__features-grid,
  .page-jl-lopez__game-categories,
  .page-jl-lopez__promo-grid,
  .page-jl-lopez__security-grid,
  .page-jl-lopez__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-jl-lopez__feature-item,
  .page-jl-lopez__game-category,
  .page-jl-lopez__promo-card,
  .page-jl-lopez__security-item,
  .page-jl-lopez__blog-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px !important; /* Adjust padding as needed */
  }

  .page-jl-lopez__faq-list {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 15px !important; /* Adjust padding as needed */
  }

  .page-jl-lopez__faq-item {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-jl-lopez__faq-question,
  .page-jl-lopez__faq-answer {
    padding: 15px 20px !important;
  }

  .page-jl-lopez__faq-title {
    font-size: 1.1em;
  }

  .page-jl-lopez__provider-logo {
    height: 40px;
  }

  .page-jl-lopez__floating-buttons {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .page-jl-lopez__float-register-btn,
  .page-jl-lopez__float-login-btn {
    padding: 10px 15px;
    font-size: 0.9em;
  }

  /* Ensure text wraps */
  .page-jl-lopez__text-content,
  .page-jl-lopez__feature-description,
  .page-jl-lopez__game-description,
  .page-jl-lopez__promo-description,
  .page-jl-lopez__security-description,
  .page-jl-lopez__blog-excerpt,
  .page-jl-lopez__faq-answer p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}

@media (max-width: 480px) {
  .page-jl-lopez__hero-title {
    font-size: 2em;
  }
  .page-jl-lopez__hero-subtitle {
    font-size: 1em;
  }
  .page-jl-lopez__cta-button {
    padding: 10px 20px;
  }
  .page-jl-lopez__section-title {
    font-size: 1.5em;
  }
  .page-jl-lopez__quick-link-button {
    width: 100%;
  }
}