/* style/support.css */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--primary-color, #0A1931); /* Inherit from shared or default dark blue */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-support__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-support__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-support__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E0B400; /* Gold accent */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

/* General Section Styling */
.page-support__section-title {
  font-size: 2.5em;
  color: #E0B400; /* Gold accent */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-support__btn-primary {
  background-color: #E0B400; /* Gold */
  color: #0A1931; /* Dark blue text */
  border: 2px solid #E0B400;
  margin: 10px;
}

.page-support__btn-primary:hover {
  background-color: #ffc107;
  border-color: #ffc107;
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #E0B400; /* Gold text */
  border: 2px solid #E0B400;
  margin: 10px;
}

.page-support__btn-secondary:hover {
  background-color: #E0B400;
  color: #0A1931;
}

.page-support__btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* Section Backgrounds */
.page-support__dark-bg {
  background-color: #0A1931;
  color: #f0f0f0;
  padding: 80px 0;
}

.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__channel-title,
.page-support__light-bg .page-support__guide-title,
.page-support__light-bg .page-support__faq-question h3 {
  color: #0A1931; /* Dark blue for titles on light background */
}

/* Channels Section */
.page-support__channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-support__channel-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.page-support__channel-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-support__channel-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #E0B400;
}

.page-support__channel-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #ffffff;
  color: #0A1931;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #f0f0f0;
}

.page-support__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #0A1931;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #E0B400;
  transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #fefefe;
  color: #333333;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-support__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  text-align: left;
}

/* Guides Section */
.page-support__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-support__guide-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-support__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-support__guide-title {
  font-size: 1.4em;
  color: #E0B400;
  margin: 20px 15px 10px;
}

.page-support__guide-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-support__guide-card .page-support__btn-primary {
  margin-top: auto; /* Push button to the bottom */
  margin-bottom: 20px;
  width: calc(100% - 40px);
  align-self: center;
}

/* Responsible Gaming Section */
.page-support__responsible-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-support__responsible-text {
  flex: 1;
  text-align: left;
}

.page-support__responsible-text h3 {
  font-size: 1.8em;
  color: #0A1931;
  margin-bottom: 20px;
}

.page-support__responsible-text p {
  margin-bottom: 15px;
  color: #333333;
  text-align: left;
}

.page-support__responsible-text ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
  text-align: left;
}

.page-support__responsible-text ul li {
  margin-bottom: 8px;
}

.page-support__responsible-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-support__responsible-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Contact CTA Section */
.page-support__contact-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 3em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
  .page-support__hero-section {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-support__hero-title {
    font-size: 2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__cta-buttons {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__channels-grid,
  .page-support__guides-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__channel-card,
  .page-support__guide-card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__faq-list {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__faq-question,
  .page-support__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__responsible-content {
    flex-direction: column;
    padding: 0 15px;
  }
  .page-support__responsible-text,
  .page-support__responsible-image-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-support__section, .page-support__card, .page-support__container, .page-support__responsible-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Ensure all content sections have padding on mobile */
  .page-support__channels-section, .page-support__faq-section, .page-support__guides-section, .page-support__responsible-gaming-section, .page-support__contact-cta-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}

/* Global image sizing for content area - min 200x200px */
.page-support img:not(.page-support__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Text contrast safety */
.page-support__dark-bg {
  background-color: #0A1931;
  color: #f0f0f0;
}

.page-support__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__channel-title,
.page-support__light-bg .page-support__guide-title,
.page-support__light-bg .page-support__faq-question h3,
.page-support__light-bg .page-support__responsible-text h3,
.page-support__light-bg .page-support__responsible-text p,
.page-support__light-bg .page-support__responsible-text ul li {
  color: #0A1931;
}

.page-support__faq-answer p {
  color: #333333;
}

/* Explicitly set color for links within cards/sections on dark background */
.page-support__channel-card a, .page-support__guide-card a {
  color: #E0B400; /* Gold for links on dark cards */
}

.page-support__channel-card a:hover, .page-support__guide-card a:hover {
  color: #ffc107;
}