/* style/contact.css */

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

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-contact__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- 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;
  box-sizing: border-box; /* Important for responsive buttons */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

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

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

.page-contact__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

/* --- Channels Section --- */
.page-contact__channels-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
}

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

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

.page-contact__channel-icon {
  width: 200px; /* Enforce minimum size */
  height: 200px; /* Enforce minimum size */
  object-fit: cover; /* Ensure the image fills the area, may crop */
  margin-bottom: 20px;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

/* --- Issues Section --- */
.page-contact__issues-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

.page-contact__issues-section .page-contact__section-title,
.page-contact__issues-section .page-contact__section-description {
  color: #ffffff;
}

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

.page-contact__issue-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure cards have equal height */
}

.page-contact__issue-card .page-contact__card-title {
  color: #ffffff;
}

.page-contact__issue-card .page-contact__card-text {
  color: #f0f0f0;
  flex-grow: 1;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
}

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

.page-contact__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* Ensure content doesn't overflow when collapsed */
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or 'minus' effect */
}

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

.page-contact__faq-answer p {
  margin: 0;
}

.page-contact__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* --- Commitment Section --- */
.page-contact__commitment-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

.page-contact__commitment-section .page-contact__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-contact__commitment-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px; /* Example max width */
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-contact__commitment-section .page-contact__section-title,
.page-contact__commitment-section .page-contact__section-description {
  text-align: left;
  color: #ffffff;
  margin-left: 0;
  margin-right: 0;
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-contact__commitment-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  position: relative;
  padding-left: 30px;
}

.page-contact__commitment-list li::before {
  content: '✔';
  color: #ffffff;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-contact__commitment-highlight {
  color: #ffffff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__channels-grid,
  .page-contact__issues-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile header offset and general padding */
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    height: auto; /* Allow height to adjust */
    min-height: 450px;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-contact__hero-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add some side padding */
  }

  .page-contact__container,
  .page-contact__channels-section,
  .page-contact__issues-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  /* Specific image sizing for cards, ensuring they meet min size */
  .page-contact__channel-icon {
    width: 200px !important; /* Override to meet min-size */
    height: 200px !important; /* Override to meet min-size */
    object-fit: cover !important; /* Ensure fill, might crop */
  }

  .page-contact__commitment-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__commitment-section .page-contact__container {
    flex-direction: column;
  }
  .page-contact__commitment-section .page-contact__section-title,
  .page-contact__commitment-section .page-contact__section-description {
    text-align: center;
  }
  .page-contact__commitment-list li {
    padding-left: 25px;
  }
  .page-contact__commitment-list li::before {
    left: 0;
  }

  .page-contact__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px;
  }

  /* Ensure all content containers are responsive */
  .page-contact__channels-section,
  .page-contact__issues-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__channels-grid,
  .page-contact__issues-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }
  .page-contact__channel-card,
  .page-contact__issue-card {
    padding: 20px;
  }
}

/* Color contrast enforcement */
.page-contact__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* Specific text color for sections with brand color background */
.page-contact__issues-section .page-contact__card-title,
.page-contact__commitment-section .page-contact__section-title,
.page-contact__commitment-section .page-contact__section-description,
.page-contact__commitment-list li,
.page-contact__commitment-highlight {
  color: #ffffff;
}