:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f4f4; /* From body background */
  --border-color: #e0e0e0;
}

.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
}

/* Fixed header spacing - applied to the first main content section */
.page-support__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text for dark background */
}

.page-support__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-support__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: bold;
}

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

/* General Section Styling */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%; /* Ensure container takes full width for mobile responsiveness */
  box-sizing: border-box;
}

.page-support__content-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

.page-support__text-white {
  color: var(--text-light) !important;
}

/* Card Styling */
.page-support__card {
  background: var(--text-light); /* White background for cards */
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-support__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-support__card img {
  width: 100%; /* Card images take full width of card */
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 6px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
  min-width: 200px;
}

/* Button Styling */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark blue text on gold */
  border-color: var(--secondary-color);
}

.page-support__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
  background: none;
  color: var(--primary-color); /* Dark blue text for secondary */
  border-color: var(--primary-color); /* Dark blue border */
}

.page-support__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Specific Section Styles */
.page-support__contact-channels {
  background: var(--background-light);
  padding: 60px 0;
}

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

.page-support__channel-item img {
   /* Placeholder, will be overridden by min-width/height */
  height: auto;
  max-width: 100%;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
  object-fit: contain; /* Ensure full image is visible */
  margin-bottom: 15px;
}

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

.page-support__channel-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow */
}

/* FAQ Section */
.page-support__faq-section {
  background: var(--primary-color); /* Dark blue background */
  padding: 60px 0;
  color: var(--text-light);
}

.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--text-light); /* White background for item */
  color: var(--text-dark);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to X or rotate for minus */
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* IMPORTANT: Ensures content expands fully */
  padding: 20px 25px !important; /* IMPORTANT: Ensures padding is applied */
  opacity: 1;
  background: #fdfdfd;
}

.page-support__faq-answer p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* Resources Section */
.page-support__resources-section {
  background: var(--background-light);
  padding: 60px 0;
}

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

.page-support__resource-item {
  text-align: left; /* Align text left within resource card */
}

.page-support__resource-item img {
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-support__resource-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-support__resource-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__resource-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-support__resource-text {
  font-size: 0.95em;
  color: #555555;
}

/* Responsible Gambling Section */
.page-support__responsible-gambling-section {
  background: var(--primary-color);
  padding: 60px 0;
  color: var(--text-light);
}

.page-support__center-image {
  max-width: 600px;
  height: auto;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  display: block; /* Ensure it's a block element for margin auto */
  min-width: 200px;
  min-height: 200px;
}

/* Feedback Section */
.page-support__feedback-section {
  background: var(--background-light);
  padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.5em;
  }

  .page-support__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* Mobile padding for main content sections */
  .page-support__container,
  .page-support__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Fixed header spacing for mobile */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
  }

  .page-support__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-support__cta-button,
  .page-support__btn-primary,
  .page-support__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important; /* Ensure buttons don't overflow */
    width: 100% !important;
    margin-top: 15px;
  }

  /* Ensure button groups wrap or stack */
  .page-support__channels-grid,
  .page-support__resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  /* Image responsiveness for mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-support__card img {
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: cover;
  }

  .page-support__channel-item img {
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: contain;
  }

  .page-support__resource-item img {
    min-width: 200px !important;
    min-height: 200px !important;
    object-fit: cover;
  }

  .page-support__center-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ mobile styles */
  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-support__faq-question h3 {
    font-size: 1.05em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-support__faq-answer {
    padding: 0 15px;
  }
  
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }
}