/* style/support.css */

/* Base styles for the support page */
.page-support {
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-support__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #E34234; /* Accent color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__section-intro {
    font-size: 18px;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
    background: linear-gradient(135deg, #0A2463, #E34234);
    padding: 80px 0;
    text-align: center;
}

.page-support__hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
    background-color: #E34234; /* Red accent */
    color: #ffffff;
    border: 2px solid #E34234;
}

.page-support__btn-primary:hover {
    background-color: #ff574a;
    border-color: #ff574a;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(227, 66, 52, 0.4);
}

.page-support__btn-secondary {
    background-color: transparent;
    color: #E34234;
    border: 2px solid #E34234;
}

.page-support__btn-secondary:hover {
    background-color: #E34234;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(227, 66, 52, 0.4);
}

/* Contact Methods Section */
.page-support__contact-methods-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-support__method-card {
    background-color: #0A2463; /* Dark blue brand color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-support__method-card img {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect */
    object-fit: contain; /* Contain the image within the dimensions */
    margin-bottom: 25px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05); /* Slight background for contained images */
    padding: 15px; /* Padding inside the image container */
    box-sizing: border-box;
}

.page-support__method-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-support__method-description {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #0a0a0a;
}

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

/* FAQ item styles */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for FAQ item */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* FAQ default state - answer hidden */
.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 30px; /* Adjusted padding for dark background */
  opacity: 0;
  color: #f0f0f0; /* Light text for answer */
  background-color: #0A2463; /* Dark blue background for answer */
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important, large enough value */
  padding: 20px 30px !important; /* Adjusted padding for dark background */
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px; /* Adjusted padding for dark background */
  background-color: #1a1a1a;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* Light text for question */
}

.page-support__faq-question:hover {
  background-color: #2a2a2a; /* Slightly lighter hover */
}

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #ffffff;
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 30px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #E34234; /* Red accent for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px; /* Larger icon area */
  height: 35px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Plus to X */
}

/* Additional Resources Section */
.page-support__additional-resources-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

.page-support__resource-card {
    background-color: #0A2463;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-support__resource-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-support__resource-description {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* Final CTA Section */
.page-support__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0A2463; /* Dark blue background for CTA */
    color: #ffffff;
}

.page-support__cta-title {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__cta-description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 40px;
    }
    .page-support__section-title {
        font-size: 30px;
    }
    .page-support__cta-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding: 60px 0;
    }

    .page-support__hero-title {
        font-size: 32px;
    }

    .page-support__hero-description {
        font-size: 16px;
    }

    .page-support__section-title {
        font-size: 28px;
    }

    .page-support__section-intro {
        font-size: 16px;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-support__contact-methods-section,
    .page-support__faq-section,
    .page-support__additional-resources-section,
    .page-support__final-cta-section {
        padding: 40px 0;
    }

    .page-support__methods-grid {
        grid-template-columns: 1fr;
    }

    .page-support__method-card img {
        
    }

    .page-support__method-title {
        font-size: 20px;
    }

    .page-support__method-description {
        font-size: 15px;
    }

    /* FAQ mobile adjustments */
    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-question h3 {
        font-size: 16px;
    }
    .page-support__faq-toggle {
        font-size: 24px;
        width: 30px;
        height: 30px;
        margin-left: 15px;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px !important;
    }

    .page-support__resources-grid {
        grid-template-columns: 1fr;
    }

    .page-support__resource-title {
        font-size: 20px;
    }

    .page-support__resource-description {
        font-size: 15px;
    }

    .page-support__cta-title {
        font-size: 28px;
    }

    .page-support__cta-description {
        font-size: 16px;
    }

    /* General image responsiveness for mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    /* Container padding for mobile */
    .page-support__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    /* Button containers for mobile */
    .page-support__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;
    }
}