.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Default light background */
}

.page-contact__section {
  padding: 40px 20px;
  margin-bottom: 20px;
}

.page-contact__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-contact__hero-section {
  display: flex;
  align-items: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.page-contact__hero-image-container {
  flex: 1;
  min-width: 300px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-content {
  flex: 1;
  min-width: 300px;
  padding-right: 20px;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  background-color: #d86c00;
}

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
  background-color: #e0e0e0;
}

.page-contact__btn-text {
  background: none;
  border: none;
  color: #26A9E0;
  padding: 0;
  text-decoration: underline;
}

.page-contact__btn-text:hover {
  color: #1a7bbd;
}

.page-contact__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section for contrast */
}

.page-contact__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__method-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-contact__method-icon {
  width: 100%;
  max-width: 250px;
  height: 180px; /* Fixed height for consistent image display */
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
}

.page-contact__method-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover to fill space, crop if necessary */
  display: block;
}

.page-contact__method-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-contact__method-text {
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__office-section {
  text-align: center;
}

.page-contact__office-info {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  max-width: 700px;
  margin: 30px auto;
  color: #f0f0f0;
}

.page-contact__office-info p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.page-contact__faq-section {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #dcdcdc;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-contact__faq-item[open] .page-contact__faq-question {
  background-color: #26A9E0;
  color: #ffffff;
  border-bottom: 1px solid #26A9E0;
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
}

.page-contact__commitment-section {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-contact__commitment-content {
  flex: 1;
  min-width: 300px;
  padding-left: 20px;
}

.page-contact__commitment-image-container {
  flex: 1;
  min-width: 300px;
}

.page-contact__commitment-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Ensure all images are responsive */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-section,
  .page-contact__commitment-section {
    flex-direction: column;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-contact__hero-content,
  .page-contact__commitment-content {
    padding-right: 0;
    padding-left: 0;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .page-contact__section-title {
    font-size: clamp(2rem, 5vw, 2.2rem);
  }

  .page-contact__hero-image-container {
    order: -1; /* Image above text for hero */
  }
  
  .page-contact__commitment-section .page-contact__commitment-image-container {
    order: 0; /* Image below text for commitment section */
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__section {
    padding: 20px 15px;
  }

  .page-contact__hero-section,
  .page-contact__commitment-section {
    padding-top: 10px !important; /* Small top padding */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .page-contact__hero-description {
    font-size: 1rem;
  }

  .page-contact__section-title {
    font-size: clamp(1.8rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

  .page-contact__section-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-contact__method-card {
    padding: 20px;
    min-height: unset; /* Allow height to adjust */
  }

  .page-contact__method-icon {
    height: 150px;
  }

  .page-contact__method-title {
    font-size: 1.4rem;
  }

  .page-contact__office-info {
    padding: 20px;
    margin: 20px auto;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-contact__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile image adaptation */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__commitment-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button adaptation */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }
  
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }
  
  .page-contact__faq-answer .page-contact__btn-text {
    width: auto !important;
    max-width: unset !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .page-contact__hero-image-container {
    order: -1; /* Image above text for hero */
  }
  
  .page-contact__commitment-section .page-contact__commitment-image-container {
    order: 0; /* Image below text for commitment section */
  }

  /* Specific 768px rules for modules (as per checklist) */
  /* Hero section already handled with flex-direction: column */
  /* Game grid not present on this page */
  /* Winner list not present on this page */
  /* Other content modules (FAQ, office) handled with padding/font-size adjustments */
}