/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure the main content area has appropriate padding-top */
/* body padding-top is handled by shared.css for header offset */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px; /* Limit height for aesthetic */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px; /* Space between image and text */
  display: block;
}

.page-support__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-support__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-support__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Match button gradient top color */
  border: 2px solid #2AD16F;
}

.page-support__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

.page-support__container {
  width: 100%; /* Ensure container width is 100% for responsiveness */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-support__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.page-support__text-block {
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

/* Card styles */
.page-support__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; /* Ensure cards in grid have same height */
  box-sizing: border-box;
}

.page-support__card-image {
  width: 100%;
  min-width: 200px;
  min-height: 200px;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-support__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-support__card-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

/* Contact Channels Section */
.page-support__contact-channels-section {
  padding-bottom: 80px;
}

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

/* FAQ Section */
.page-support__faq-section {
  padding-bottom: 80px;
}

.page-support__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-support__faq-item {
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  overflow: hidden;
  text-align: left; /* Override card text-align */
  padding: 0; /* Remove padding from card for details summary */
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

.page-support__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-support__faq-question:hover {
  background-color: #1E3A2A; /* Divider for hover */
}

.page-support__faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F;
}

.page-support__faq-answer {
  padding: 15px 30px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-support__faq-answer p {
    margin-bottom: 15px;
    color: #A7D9B8; /* Text Secondary */
}

.page-support__text-link {
    color: #57E38D; /* Glow color for links */
    text-decoration: none;
    font-weight: 500;
}

.page-support__text-link:hover {
    text-decoration: underline;
}

/* Resources Section */
.page-support__resources-section {
    padding-bottom: 80px;
}

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

.page-support__resource-item .page-support__card-button {
    margin-top: auto; /* Push buttons to bottom */
}

.page-support__button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Commitment Section */
.page-support__commitment-section {
    padding-bottom: 80px;
}

.page-support__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.page-support__commitment-list li {
    background-color: #11271B; /* Card BG */
    border-left: 5px solid #2AD16F; /* Highlight with button gradient color */
    padding: 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.5;
}

.page-support__commitment-list strong {
    color: #F2FFF6; /* Text Main */
    display: block;
    margin-bottom: 5px;
}

/* Final CTA Section */
.page-support__cta-final-section {
    padding-bottom: 80px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: clamp(2.2rem, 5.5vw, 3rem);
    }
    .page-support__section-title {
        font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    }
    .page-support__channels-grid,
    .page-support__resources-grid,
    .page-support__commitment-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 15px;
        line-height: 1.5;
    }
    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small top padding */
    }
    .page-support__hero-content {
        padding: 0 15px;
    }
    .page-support__main-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }
    .page-support__description {
        font-size: 1rem;
    }
    .page-support__section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        padding-top: 40px;
    }
    .page-support__container {
        padding: 0 15px !important;
    }
    .page-support__card {
        padding: 20px;
    }
    .page-support__card-image {
        height: 180px;
        min-width: unset;
        min-height: unset;
    }
    .page-support__card-title {
        font-size: 1.3rem;
    }
    .page-support__card-text {
        font-size: 0.9rem;
    }
    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1.05rem;
    }
    .page-support__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95rem;
    }
    .page-support__cta-button,
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support a[class*="button"],
    .page-support 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;
    }
    .page-support__button-group {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        padding-right: 0;
    }
    .page-support__commitment-list li {
        padding: 15px;
        font-size: 1rem;
    }
    
    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers are responsive */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__channels-grid,
    .page-support__resources-grid,
    .page-support__commitment-list,
    .page-support__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 15px; */ /* Handled by .page-support__container */
        /* padding-right: 15px; */ /* Handled by .page-support__container */
        overflow: hidden !important; /* Ensure no overflow */
    }
    /* Specific override for hero section padding to avoid double padding */
    .page-support__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-support__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}