/* style/support.css */

/* Custom properties for colors */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --button-register: #C30808;
  --button-login: #C30808;
  --text-register-login: #FFFF00;
  --dark-text: #333333;
  --light-text: #ffffff;
  --background-color: #FFFFFF;
  --border-color: #e0e0e0;
  --hover-background: #f5f5f5;
  --active-background: #eeeeee;
}

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

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

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

.page-support__section-description {
  font-size: 18px;
  color: var(--dark-text);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

/* 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 content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color), #019c4d); /* Gradient with primary color */
  color: var(--light-text);
  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-image {
  width: 100%; /* HTML width="1200" height="675" */
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

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

.page-support__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--light-text);
  line-height: 1.2;
}

.page-support__intro-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: var(--light-text);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-support__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--button-register); /* Specific color for CTA */
  color: var(--text-register-login); /* Specific color for CTA text */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--text-register-login);
}

.page-support__cta-button:hover {
  background: #a80707; /* Darken on hover, calculated from #C30808 */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Channels Section */
.page-support__contact-channels {
  padding: 80px 0;
  background-color: var(--background-color);
  color: var(--dark-text);
}

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

.page-support__channel-item {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  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;
}

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

.page-support__channel-image {
  width: 100%; /* HTML width="600" height="400" */
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__channel-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-support__channel-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #555555;
  flex-grow: 1;
}

.page-support__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-support__btn-primary:hover {
  background: #005f2e; /* Darken on hover, calculated from #017439 */
  transform: translateY(-2px);
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #017439, #005f2e); /* Darker gradient for FAQ */
  color: var(--light-text);
}

.page-support__faq-section .page-support__section-title {
  color: var(--light-text);
}

.page-support__faq-section .page-support__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--secondary-color);
  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: var(--hover-background);
  border-color: #c0c0c0;
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark-text);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.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: #f9f9f9;
  color: var(--dark-text);
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg); /* Rotate for minus sign */
}

.page-support__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Resources Section */
.page-support__resources {
  padding: 80px 0;
  background-color: var(--background-color);
  color: var(--dark-text);
}

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

.page-support__resource-card {
  display: flex;
  flex-direction: column;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--dark-text);
  overflow: hidden;
}

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

.page-support__resource-image {
  width: 100%; /* HTML width="800" height="600" */
  height: 220px; /* Fixed height for resource images */
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}

.page-support__resource-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 25px 10px 25px;
  color: var(--primary-color);
}

.page-support__resource-card p {
  font-size: 16px;
  margin: 0 25px 25px 25px;
  color: #555555;
  flex-grow: 1;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
  padding: 80px 0;
  background: linear-gradient(135deg, #005f2e, #017439); /* Darker gradient */
  color: var(--light-text);
  text-align: center;
}

.page-support__responsible-gaming .page-support__section-title {
  color: var(--light-text);
}

.page-support__responsible-gaming .page-support__section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.page-support__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-support__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text);
  border-color: var(--light-text);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 40px;
  }
  .page-support__intro-description {
    font-size: 20px;
  }
  .page-support__section-title {
    font-size: 32px;
  }
  .page-support__section-description {
    font-size: 16px;
  }
  .page-support__channel-title, .page-support__resource-card h3 {
    font-size: 22px;
  }
  .page-support__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* Mobile specific adjustments for header offset */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  /* General mobile padding */
  .page-support__container {
    padding: 30px 15px;
  }
}