/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #f8f9fa; /* Light background for the page */
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand color gradient */
  color: #ffffff; /* White text for dark/gradient background */
  overflow: hidden; /* Prevent image overflow */
}

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

.page-support__hero-section img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-support__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff; /* White text for hero section */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.page-support__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #f0f0f0; /* Slightly off-white for contrast */
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login/CTA color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
  background: #d46a06;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-support__section-heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for headings */
}

.page-support__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Contact Section */
.page-support__contact-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

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

.page-support__contact-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-support__contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__contact-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%; /* Important for responsiveness */
  display: block;
}

.page-support__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-support__contact-card p {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

/* Secondary Button Style */
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background for brand color */
  color: #ffffff; /* White text for dark background */
}

.page-support__faq-section .page-support__section-heading,
.page-support__faq-section .page-support__section-description {
  color: #ffffff; /* Ensure white text on dark background */
}

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Ensure content expands fully */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f0f8ff; /* Light background for answer */
  color: #333333; /* Dark text for answer */
  border-radius: 0 0 5px 5px;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  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:active {
  background: #eeeeee;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333; /* Dark text for question */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #26A9E0; /* Brand color when active */
  transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

/* Primary Button Style */
.page-support__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary:hover {
  background: #1e87bb;
  border-color: #1e87bb;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.4);
}

/* Guides Section */
.page-support__guides-section {
  padding: 80px 0;
  background-color: #f0f8ff; /* Light blue background */
  color: #333333;
}

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

.page-support__guide-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 480px; /* Ensure cards have similar height */
}

.page-support__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-support__guide-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%; /* Important for responsiveness */
  display: block;
}

.page-support__guide-card .page-support__card-title {
  margin-bottom: 10px;
  flex-grow: 0;
}

.page-support__guide-card .page-support__card-title a {
  color: #26A9E0;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-support__guide-card .page-support__card-title a:hover {
  color: #1e87bb;
}

.page-support__guide-card p {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__view-all-resources {
  text-align: center;
  margin-top: 50px;
}

/* Security & Responsible Gaming Section */
.page-support__security-responsible-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff; /* White text for dark background */
}

.page-support__security-responsible-section .page-support__section-heading,
.page-support__security-responsible-section .page-support__section-description {
  color: #ffffff; /* Ensure white text on dark background */
}

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

.page-support__security-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 400px; /* Ensure cards have similar height */
}

.page-support__security-item img {
   /* Smaller icon-like images */
  
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-support__security-item .page-support__card-title {
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-support__security-item p {
  color: #f0f0f0;
  font-size: 0.95em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__main-heading {
    font-size: 2.8em;
  }
  .page-support__section-heading {
    font-size: 2em;
  }
  .page-support__intro-text,
  .page-support__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__hero-section img {
    border-radius: 4px;
    margin-bottom: 20px;
  }
  .page-support__main-heading {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-support__intro-text {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-support__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    width: 100% !important; /* Button responsive */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__section-heading {
    font-size: 1.8em;
  }
  .page-support__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-support__contact-section,
  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__security-responsible-section {
    padding: 40px 0;
  }

  .page-support__contact-methods,
  .page-support__guides-grid,
  .page-support__security-responsible-content {
    grid-template-columns: 1fr; /* Stack cards on mobile */
    gap: 20px;
  }

  .page-support__contact-card,
  .page-support__guide-card,
  .page-support__security-item {
    padding: 20px;
    min-height: auto; /* Allow height to adjust */
  }

  .page-support__contact-card img,
  .page-support__guide-card img {
    
  }
  .page-support__security-item img {
    
    
  }

  .page-support__card-title {
    font-size: 1.3em;
  }

  .page-support__btn-secondary,
  .page-support__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ specific mobile styles */
  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-support__faq-question h3 {
    font-size: 1em;
    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;
  }

  /* All images responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-support__main-heading {
    font-size: 1.8em;
  }
  .page-support__section-heading {
    font-size: 1.6em;
  }
}