/* style/support.css */

:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
}

.page-support {
  background-color: var(--deep-navy); /* Body background is deep-navy from shared.css */
  color: var(--text-main); /* Default text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-support__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  display: block;
  margin-bottom: 40px;
}

.page-support__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-support__hero-title {
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-support__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support a[class*="button"],
.page-support a[class*="btn"] {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-support__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Dark Section Styling */
.page-support__dark-section {
  background-color: var(--primary-color);
  padding: 60px 0;
  color: var(--text-main);
}

.page-support__dark-section .page-support__section-title {
  color: var(--gold-color);
}

.page-support__dark-section .page-support__section-description {
  color: var(--text-secondary);
}

/* Why Choose Section */
.page-support__why-choose-section {
  padding: 60px 0;
}

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

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

.page-support__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  min-width: 200px;
  min-height: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__feature-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-support__feature-text {
  color: var(--text-secondary);
}

/* Video Tutorial Section */
.page-support__video-tutorial-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

.page-support__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  width: 100%; /* Ensure width is 100% for desktop */
}

.page-support__video-wrapper .page-support__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

.page-support__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.page-support__video-cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

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

.page-support__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

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

.page-support__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider-color);
  list-style: none; /* Remove default marker */
}

.page-support__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-support__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-support__faq-item[open] .page-support__faq-question {
  border-bottom: 1px solid var(--divider-color);
}

.page-support__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: var(--text-secondary);
  text-align: left;
}

.page-support__faq-answer p {
  margin-bottom: 15px;
}

.page-support__faq-btn {
  margin-top: 10px;
}

/* Contact Methods Section */
.page-support__contact-methods-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

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

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

.page-support__contact-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  min-width: 200px;
  min-height: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__contact-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-support__contact-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-support__contact-btn {
  width: 100%;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
  padding: 60px 0;
}

/* CTA Section */
.page-support__cta-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
  text-align: center;
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-support__cta-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  min-width: 200px;
  min-height: 200px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-support__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-support__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px;
  }

  .page-support__hero-image {
    max-height: 300px;
    margin-bottom: 30px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__hero-title {
    font-size: 1.8em;
  }

  .page-support__hero-description {
    font-size: 1em;
  }

  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-support__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-support__features-grid,
  .page-support__contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__feature-card,
  .page-support__contact-card {
    padding: 20px;
  }

  .page-support__feature-icon,
  .page-support__contact-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-support__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-support__video-wrapper .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-support__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }

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

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support a[class*="btn"] {
    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-support__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Ensure content area images are not too small */
  .page-support img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.5em;
  }
  .page-support__section-title {
    font-size: 1.5em;
  }
  .page-support__faq-item summary {
    font-size: 1em;
  }
  .page-support__faq-toggle {
    font-size: 1.2em;
  }
}