/* style/contact.css */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Ensure content background is light */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding: 80px 20px;
  background-color: #017439; /* Brand color as background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Container */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Section Titles and Intros */
.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles */
}

.page-contact__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

/* Dark Background Section */
.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-intro {
  color: #ffffff;
}
.page-contact__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

/* Light Background Section */
.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

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

.page-contact__btn-primary {
  background-color: #C30808; /* Custom color for primary action (register/login) */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
  margin-top: 20px;
}

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

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  margin-top: 20px;
}

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

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

.page-contact__channel-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__channel-icon {
  width: 100%; /* Occupy card width */
  max-width: 250px; /* Max size for icon-like imagery */
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 5px;
  min-width: 200px; /* Min size for content images */
  min-height: 200px;
}

.page-contact__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-contact__card-description {
  font-size: 1em;
  color: #555555;
  flex-grow: 1; /* Make description take available space */
}

.page-contact__contact-info {
  margin-top: 15px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
}

.page-contact__contact-info a,
.page-contact__social-link {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__contact-info a:hover,
.page-contact__social-link:hover {
  color: #004d27;
  text-decoration: underline;
}

.page-contact__social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Category Grid (When to contact) */
.page-contact__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__category-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #017439;
}

.page-contact__category-card .page-contact__card-title {
  color: #017439;
  margin-bottom: 20px;
  text-align: left;
}

.page-contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-contact__list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  color: #333333;
}

.page-contact__list li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Team Section */
.page-contact__team-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__team-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%; /* Adjust for larger screens */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Min size for content images */
}

.page-contact__team-text {
  flex: 1;
  min-width: 300px;
  color: #333333;
}

.page-contact__team-text .page-contact__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-contact__team-text p {
  margin-bottom: 20px;
  color: #555555;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  background-color: #f0fdf5; /* Light green background for question */
  cursor: pointer;
  border-bottom: 1px solid #e0e0e0;
}

.page-contact__faq-question:hover {
  background-color: #e6faed;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−';
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #555555;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

/* CTA Section */
.page-contact__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: #f0fdf5; /* Light green background */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__team-content {
    flex-direction: column;
    text-align: center;
  }
  .page-contact__team-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 15px;
    min-height: 300px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__channels-grid,
  .page-contact__category-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__channel-card,
  .page-contact__category-card {
    padding: 20px;
  }
  .page-contact__team-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-contact__team-text {
    min-width: unset;
  }
  .page-contact__team-text .page-contact__sub-title {
    font-size: 1.5em;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 15px 20px;
  }

  /* Universal image responsive styles for mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size for content images */
    min-height: 200px !important;
  }
  
  /* All containers with images/content for mobile */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__channels-section,
  .page-contact__when-to-contact-section,
  .page-contact__team-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Buttons responsive on mobile */
  .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 spacing between stacked buttons */
  }
  .page-contact__social-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure no filter on images */
.page-contact img {
  filter: none !important;
}

/* Details/Summary specific styles */
.page-contact__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}