/* All CSS class names must use BEM naming rules: .page-contact__element-name */
/* Styles are scoped to .page-contact */
/* Colors from custom palette: #FF8C1A, #FFA53A, #17191F, #0D0E12, #FFF3E6, #A84F0C, #FFB04D, #D96800 */

.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Default text color for dark body background */
  background-color: #0D0E12; /* Default background for page content */
}

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

/* HERO Section */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  color: #FFF3E6;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-contact__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 800px;
  padding: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  box-shadow: 0 0 20px rgba(255, 132, 26, 0.5);
  color: #FFF3E6;
}

.page-contact__hero-title {
  font-size: clamp(2em, 3.5vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFB04D;
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #FFB04D;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Contact Info Section */
.page-contact__contact-info-section {
  background-color: #0D0E12;
  padding: 60px 0;
}

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

.page-contact__info-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border */
  color: #FFF3E6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__info-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px #FFB04D);
}

.page-contact__info-card-title {
  font-size: 1.8em;
  color: #FFB04D;
  margin-bottom: 15px;
}

.page-contact__info-text {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #FFF3E6;
}

.page-contact__info-detail {
  font-size: 1.2em;
  font-weight: bold;
  color: #FFA53A;
  margin-bottom: 20px;
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.page-contact__social-icon-link {
  color: #FFF3E6;
  font-size: 1.1em;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #D96800;
  transition: background-color 0.3s ease;
}

.page-contact__social-icon-link:hover {
  background-color: #FFA53A;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #17191F;
  padding: 60px 0;
}

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

.page-contact__faq-item {
  background-color: #0D0E12;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF3E6;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFB04D;
  background-color: #17191F;
  position: relative;
  list-style: none;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.05em;
  color: #FFF3E6;
}

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

/* CTA Section */
.page-contact__cta-section {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  padding: 60px 0;
  text-align: center;
  color: #FFF3E6;
}

.page-contact__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-contact__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 132, 26, 0.4);
}

.page-contact__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 132, 26, 0.6);
}

.page-contact__btn-secondary {
  background-color: #17191F;
  color: #FFB04D;
  border: 2px solid #FFB04D;
}

.page-contact__btn-secondary:hover {
  background-color: #FFB04D;
  color: #0D0E12;
  transform: translateY(-3px);
}

/* Generic Button for Info Cards */
.page-contact a[class*="btn-secondary"] {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact a[class*="btn-secondary"]:hover {
  opacity: 0.9;
}

/* --- CSS Boilerplate for other sections (as per strict checklist) --- */
/* This contact page does not inherently need these, but the checklist requires them */

/* Long text gold frame area (page-contact__home-content equivalent) */
.page-contact__home-content {
  border: 1px solid #A84F0C;
  border-radius: 10px;
  height: auto;
  min-height: 400px; /* Adjusted for contact page, not fixed height */
  overflow-y: auto;
  padding: 40px;
  margin: 40px auto;
  max-width: 900px;
  background-color: #17191F;
  color: #FFF3E6;
}

.page-contact__home-content h2 {
  color: #FFB04D;
  margin-bottom: 20px;
  font-size: 2em;
}

/* Game Carousel (page-contact__slider-wrapper equivalent) - minimal, non-functional for contact page */
.page-contact__row-games, .page-contact__row-sport, .page-contact__row-coop {
  background-color: #0D0E12;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
  overflow: hidden; /* Ensure no overflow if track is too wide */
}

.page-contact__games-title, .page-contact__sport-title, .page-contact__coop-title {
  color: #FFB04D;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

.page-contact__slider-wrapper {
  overflow: hidden;
  position: relative;
}

.page-contact__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

.page-contact__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #17191F;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: #FFF3E6;
  padding: 15px;
  text-align: center;
  min-height: 150px;
}

.page-contact__game-slide img {
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Partner Grid (page-contact__banners-top-wrapper equivalent) */
.page-contact__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 1000px; /* Adjusted max-width */
  margin: 40px auto;
  padding: 20px;
  background-color: #17191F;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-contact__banner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #0D0E12;
  border-radius: 8px;
  border: 1px solid #A84F0C;
}

.page-contact__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: grayscale(100%) brightness(1.5);
  transition: filter 0.3s ease;
}

.page-contact__banner-item:hover img {
  filter: grayscale(0%) brightness(1);
}

/* Blog Card Section (page-contact__blog-masonry equivalent) */
.page-contact__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.page-contact__blog-card {
  background-color: #17191F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #A84F0C;
}

.page-contact__blog-card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-contact__blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-contact__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-contact__blog-card-title {
  font-size: 1.4em;
  color: #FFB04D;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-contact__blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-contact__blog-card-title a:hover {
  text-decoration: underline;
}

.page-contact__blog-card-excerpt {
  font-size: 0.95em;
  color: #FFF3E6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-contact__blog-card-link {
  display: inline-block;
  margin-top: auto;
  color: #FFA53A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__blog-card-link:hover {
  color: #FFB04D;
}

.page-contact__btn-outline {
  background-color: transparent;
  border: 2px solid #FFA53A;
  color: #FFA53A;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: auto;
}

.page-contact__btn-outline:hover {
  background-color: #FFA53A;
  color: #17191F;
}

/* Blog Slider (page-contact__blog-slider-track equivalent) */
.page-contact__blog-slider {
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
  overflow: hidden;
  position: relative;
}

.page-contact__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.5s ease-in-out;
}

.page-contact__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* Three slides with gap */
  max-width: calc(33.333% - 14px);
  background-color: #17191F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #A84F0C;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.5;
  }

  /* General Image Responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Containers and sections for mobile padding/width */
  .page-contact__container,
  .page-contact__hero-content,
  .page-contact__info-card,
  .page-contact__faq-item,
  .page-contact__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* HERO Section */
  .page-contact__hero-section {
    padding-top: 10px;
    min-height: 400px;
  }

  .page-contact__hero-content {
    padding: 20px;
    max-width: 95%;
  }

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

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Contact Info Section */
  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ Section */
  .page-contact__faq-question {
    font-size: 1.1em;
  }

  .page-contact__faq-answer {
    font-size: 1em;
  }

  /* CTA Section */
  .page-contact__cta-title {
    font-size: 2em;
  }

  .page-contact__cta-description {
    font-size: 1.1em;
  }

  /* --- Boilerplate for other sections (mobile) --- */

  /* Long text gold frame area */
  .page-contact__home-content {
    padding: 20px;
    margin: 20px auto;
    min-height: auto;
  }

  .page-contact__home-content h2 {
    font-size: 1.8em;
  }

  /* Game Carousel */
  .page-contact__row-games, .page-contact__row-sport, .page-contact__row-coop {
    padding: 20px 15px;
  }

  .page-contact__games-title, .page-contact__sport-title, .page-contact__coop-title {
    font-size: 1.8em;
  }

  .page-contact__slider-track {
    gap: 10px;
  }

  .page-contact__game-slide {
    flex: 0 0 160px !important;
    max-width: 160px !important;
    padding: 10px;
  }

  /* Partner Grid */
  .page-contact__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
    padding: 10px;
    margin: 20px auto;
  }

  .page-contact__banner-item img {
    
    
  }

  /* Blog Card Section */
  .page-contact__blog-masonry {
    grid-template-columns: 1fr !important;
    gap: 20px;
    margin: 40px auto;
    padding: 0 15px;
  }

  .page-contact__blog-card-title {
    font-size: 1.2em;
  }

  /* Blog Slider */
  .page-contact__blog-slider {
    margin: 40px auto;
    padding: 0 15px;
  }

  .page-contact__blog-slider-track {
    gap: 15px;
  }

  .page-contact__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}