/* style/promo.css */

:root {
  --taya365-primary: #F2C14E;
  --taya365-secondary: #FFD36B;
  --taya365-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --taya365-card-bg: #111111;
  --taya365-background: #0A0A0A;
  --taya365-text-main: #FFF6D6;
  --taya365-border: #3A2A12;
  --taya365-glow: #FFD36B;
  --header-offset: 120px; /* Default for desktop, adjusted by shared.css media query */
}

.page-promo {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--taya365-text-main); /* Main text color for the page content */
  background-color: var(--taya365-background); /* Overall page background */
}

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

.page-promo__section-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  font-weight: 700;
  color: var(--taya365-primary);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-promo__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* H1 specific font size */
  font-weight: 800;
  color: var(--taya365-primary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__text-block--margin-top {
  margin-top: 30px;
}

.page-promo__text-block--small {
  font-size: 0.9em;
  margin-top: 30px;
}

.page-promo__link-text {
  color: var(--taya365-secondary);
  text-decoration: underline;
}

.page-promo__link-text:hover {
  color: var(--taya365-primary);
}

.page-promo__btn-primary,
.page-promo__btn-secondary,
.page-promo a[class*="button"],
.page-promo a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-promo__btn-primary {
  background: var(--taya365-button-gradient);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-promo__btn-secondary {
  background: transparent;
  color: var(--taya365-primary);
  border: 2px solid var(--taya365-primary);
}

.page-promo__btn-secondary:hover {
  background: var(--taya365-primary);
  color: var(--taya365-background);
}

.page-promo__hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--taya365-background);
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-promo__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-promo__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-promo__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 40px; /* Space below header offset */
  padding-bottom: 40px;
}

.page-promo__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--taya365-text-main);
}

.page-promo__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-promo__about-section,
.page-promo__promotions-section,
.page-promo__games-section,
.page-promo__cta-section,
.page-promo__app-section,
.page-promo__security-section,
.page-promo__faq-section,
.page-promo__partners-section,
.page-promo__join-now-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-promo__dark-section {
  background-color: var(--taya365-background);
  color: var(--taya365-text-main);
}

.page-promo__light-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--taya365-text-main);
}

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

.page-promo__benefit-card {
  background-color: var(--taya365-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--taya365-border);
}

.page-promo__benefit-card .page-promo__card-title {
  color: var(--taya365-primary);
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

.page-promo__promotion-card.page-promo__card {
  background-color: var(--taya365-card-bg);
  border: 1px solid var(--taya365-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.page-promo__promotion-card .page-promo__card-title {
  font-size: 1.3em;
  color: var(--taya365-secondary);
  margin: 20px 15px 10px 15px;
  line-height: 1.3;
}

.page-promo__promotion-card .page-promo__card-link {
  color: var(--taya365-secondary);
  text-decoration: none;
}

.page-promo__promotion-card .page-promo__card-link:hover {
  text-decoration: underline;
}

.page-promo__promotion-card .page-promo__card-description {
  font-size: 0.95em;
  color: #ccc;
  padding: 0 15px;
  flex-grow: 1;
}

.page-promo__promotion-card .page-promo__btn-primary {
  margin: 20px 15px;
}

.page-promo__cta-centered {
  text-align: center;
  margin-top: 50px;
}

.page-promo__games-section .page-promo__section-title {
  color: var(--taya365-primary);
}

.page-promo__game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-promo__category-card {
  background-color: var(--taya365-card-bg);
  border: 1px solid var(--taya365-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--taya365-text-main);
  min-width: 120px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promo__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

.page-promo__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.page-promo__category-name {
  font-weight: 600;
  font-size: 1.1em;
  text-align: center;
}

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

.page-promo__step-card.page-promo__card {
  background-color: var(--taya365-card-bg);
  border: 1px solid var(--taya365-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promo__step-card .page-promo__card-title {
  font-size: 1.4em;
  color: var(--taya365-primary);
  margin-bottom: 15px;
}

.page-promo__cta-buttons--spaced {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-promo__app-section {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-promo__app-content {
  flex: 1;
  min-width: 300px;
}

.page-promo__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-promo__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-promo__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
}

.page-promo__app-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--taya365-text-main);
}

.page-promo__app-cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-promo__security-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-promo__security-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23F2C14E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  font-size: 1.05em;
  color: var(--taya365-text-main);
}

.page-promo__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__faq-item {
  background-color: var(--taya365-card-bg);
  border: 1px solid var(--taya365-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--taya365-text-main);
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promo__faq-question h3 {
  margin: 0;
  color: var(--taya365-text-main);
  font-size: 1.2em;
}

.page-promo__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  color: var(--taya365-primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

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

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ccc;
  font-size: 1em;
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-promo__faq-answer p {
  margin-bottom: 15px;
  text-align: left;
}

.page-promo__partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-promo__partner-logo {
  max-width: 167px;
  height: 127px;
  object-fit: contain;
  filter: brightness(0.8) grayscale(100%);
  transition: filter 0.3s ease;
}

.page-promo__partner-logo:hover {
  filter: brightness(1) grayscale(0%);
}

.page-promo__cta-buttons--single {
  margin-top: 50px;
}

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

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-promo__section-title {
    margin-bottom: 30px;
  }
  .page-promo__app-section {
    flex-direction: column;
    gap: 30px;
  }
  .page-promo__app-content,
  .page-promo__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-promo {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-promo__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }
  .page-promo__hero-content {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .page-promo__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }
  .page-promo__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-promo__hero-cta-buttons,
  .page-promo__cta-buttons--spaced,
  .page-promo__app-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promo__btn-primary,
  .page-promo__btn-secondary,
  .page-promo a[class*="button"],
  .page-promo a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-promo__about-section,
  .page-promo__promotions-section,
  .page-promo__games-section,
  .page-promo__cta-section,
  .page-promo__app-section,
  .page-promo__security-section,
  .page-promo__faq-section,
  .page-promo__partners-section,
  .page-promo__join-now-section {
    padding: 50px 0;
  }
  .page-promo__container {
    padding: 0 15px;
  }
  .page-promo__section-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
    margin-bottom: 25px;
  }
  .page-promo__text-block {
    font-size: 1em;
    margin-bottom: 15px;
  }
  .page-promo__benefits-grid,
  .page-promo__promotions-grid,
  .page-promo__process-steps,
  .page-promo__security-features,
  .page-promo__partners-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promo__promotion-card .page-promo__card-image {
    height: 180px;
  }
  .page-promo__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-promo__faq-answer {
    padding: 0 20px;
  }
  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 15px 20px;
  }
  .page-promo img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-promo__section,
  .page-promo__card,
  .page-promo__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promo__app-features li,
  .page-promo__security-features li {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-promo__hero-cta-buttons {
    gap: 10px;
  }
  .page-promo__app-cta-buttons {
    gap: 10px;
  }
  .page-promo__btn-primary,
  .page-promo__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-promo__category-card {
    min-width: 100px;
    padding: 15px;
  }
  .page-promo__category-name {
    font-size: 0.9em;
  }
}