/* style/support.css */

/* Base Styles */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css #121212 */
}

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

.page-support__section-title {
  font-size: 38px;
  font-weight: bold;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-support__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  margin-top: 0;
  padding-bottom: 60px;
}

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

.page-support__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

.page-support__hero-title {
  font-size: 48px;
  color: #FFD700; /* Gold color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-support__hero-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: #FFD700;
  color: #000080; /* Navy text on gold background */
  border: 2px solid #FFD700;
}

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

.page-support__btn-secondary {
  background: #000080;
  color: #FFD700; /* Gold text on navy background */
  border: 2px solid #000080;
}

.page-support__btn-secondary:hover {
  background: #000050;
  border-color: #000050;
  color: #ffe066;
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

.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: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-support__contact-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
}

.page-support__contact-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-support__contact-icon img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
  width: 100%; /* Ensure it fills container */
  height: 100%; /* Ensure it fills container */
  object-fit: contain; /* Adjust as needed */
}

.page-support__contact-card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-support__contact-card-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #222222;
}

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #000080; /* Navy background for question */
  color: #FFD700; /* Gold text for question */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

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

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

.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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-item.active .page-support__faq-toggle {
  color: #ffe066;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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: rgba(255, 255, 255, 0.05); /* Light background for answer */
  color: #e0e0e0; /* Light text for answer */
  border-radius: 0 0 8px 8px;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.page-support__faq-answer p {
  margin-bottom: 10px;
  font-size: 16px;
  color: #e0e0e0;
}

.page-support__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-support__faq-answer a {
  color: #FFD700; /* Gold link in answer */
  text-decoration: underline;
}

.page-support__faq-answer a:hover {
  color: #ffe066;
}

/* Responsible Gambling & Security/Privacy Sections */
.page-support__responsible-gambling,
.page-support__security-privacy,
.page-support__feedback-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
}

.page-support__responsible-gambling .page-support__section-title,
.page-support__security-privacy .page-support__section-title,
.page-support__feedback-section .page-support__section-title {
  color: #FFD700;
}

.page-support__responsible-gambling .page-support__section-description,
.page-support__security-privacy .page-support__section-description,
.page-support__feedback-section .page-support__section-description {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  font-size: 17px;
}

.page-support__responsible-gambling .page-support__btn-primary,
.page-support__security-privacy .page-support__btn-primary,
.page-support__feedback-section .page-support__btn-primary {
  margin-top: 20px;
}

/* General Image Styling */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-support__hero-section {
    height: 450px;
  }

  .page-support__hero-title {
    font-size: 40px;
  }

  .page-support__hero-description {
    font-size: 18px;
  }

  .page-support__section-title {
    font-size: 32px;
  }

  .page-support__section-description {
    font-size: 16px;
  }

  .page-support__contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-support__contact-card-title {
    font-size: 22px;
  }

  .page-support__faq-question h3 {
    font-size: 17px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .page-support__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    padding-bottom: 40px;
  }

  .page-support__hero-content {
    padding: 15px;
    margin: 0 15px;
  }

  .page-support__hero-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .page-support__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__responsible-gambling,
  .page-support__security-privacy,
  .page-support__feedback-section {
    padding: 40px 0;
  }

  .page-support__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

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

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

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

  .page-support__contact-card {
    padding: 25px;
  }

  .page-support__contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
  }

  .page-support__contact-icon img {
    min-width: 200px !important; /* Maintain minimum size */
    min-height: 200px !important; /* Maintain minimum size */
    width: 100% !important;
    height: auto !important;
  }

  .page-support__contact-card-title {
    font-size: 20px;
  }

  .page-support__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .page-support__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
    margin-bottom: 0;
  }

  .page-support__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .page-support__faq-answer {
    padding: 0 20px;
  }

  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px 20px !important;
  }

  .page-support__faq-answer p {
    font-size: 15px;
  }

  /* General image and container responsiveness for mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__section,
  .page-support__card,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-support__contact-card .page-support__btn-secondary {
    width: auto !important;
    max-width: none !important;
  }
}