/* style/support.css */
/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 100px 0 60px;
    background-color: #017439; /* Brand color as dark background */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    padding-top: var(--header-offset, 120px); /* Use header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.2; /* Subtle overlay */
}

.page-support__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Section Titles and Descriptions */
.page-support__section-title,
.page-support__cta-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #017439; /* Default for light backgrounds */
}

.page-support__section-description,
.page-support__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333; /* Default for light backgrounds */
}

/* Contact Methods Section */
.page-support__contact-methods {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-support__contact-methods .page-support__section-title,
.page-support__contact-methods .page-support__section-description {
    color: #333333;
}

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

.page-support__method-card {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__method-card .page-support__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439;
}

.page-support__method-card p {
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff; /* Light text */
}

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-description {
    color: #ffffff;
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-support__faq-question-text {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px 25px;
}

.page-support__faq-answer p {
    margin-bottom: 15px;
}

.page-support__faq-link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-support__faq-link:hover {
    color: #f0f0f0;
}

/* Resources Section */
.page-support__resources-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-support__resources-section .page-support__section-title,
.page-support__resources-section .page-support__section-description {
    color: #333333;
}

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

.page-support__resource-card {
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
    display: flex;
    flex-direction: column;
}

.page-support__resource-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-support__resource-card .page-support__card-title {
    font-size: 1.3em;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: #017439;
}

.page-support__resource-card .page-support__card-title a {
    color: #017439;
    text-decoration: none;
}

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

.page-support__resource-card p {
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* Call to Action Section */
.page-support__cta-section {
    padding: 60px 0;
    background-color: #017439; /* Brand color as dark background */
    color: #ffffff;
    text-align: center;
}

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

/* Buttons */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-support__btn-primary {
    background-color: #C30808; /* Login/Register color */
    color: #FFFF00; /* Login/Register font color */
    border: 2px solid #C30808;
}

.page-support__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

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

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

/* Image specific styles */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

/* Ensure minimum image display size in content area */
.page-support__resource-image {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-support__hero-title {
        font-size: 2.5em;
    }

    .page-support__section-title,
    .page-support__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 80px 0 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

    .page-support__section-title,
    .page-support__cta-title {
        font-size: 1.8em;
    }

    .page-support__section-description,
    .page-support__cta-description {
        font-size: 1em;
    }

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

    .page-support__faq-question {
        padding: 15px 20px;
    }

    .page-support__faq-question-text {
        font-size: 1.1em;
    }

    .page-support__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile specific image adaptation */
    .page-support img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* Mobile specific button adaptation */
    .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;
      margin-bottom: 10px; /* Add some spacing between stacked buttons */
    }

    /* Button containers for mobile */
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container,
    .page-support__hero-section .page-support__container { /* Target container for hero button */
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .page-support__hero-section .page-support__cta-button {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* General content containers for mobile */
    .page-support__section,
    .page-support__card,
    .page-support__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}