/* style/support.css */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Matches shared.css body background */
}

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

.page-support__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

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

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

.page-support__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

.page-support__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-support__section-title {
    font-size: 2.2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

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

.page-support__about-support-section,
.page-support__faq-section,
.page-support__contact-channels-section,
.page-support__video-section,
.page-support__resources-section,
.page-support__final-cta-section {
    padding: 80px 0;
}

.page-support__about-support-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-support__grid-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.page-support__grid-item .page-support__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-support__item-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-support__item-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-support__faq-section {
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

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

.page-support__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

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

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

.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-out, padding 0.3s ease-out;
    color: #555555;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-support__contact-channels-section {
    background-color: #017439;
    color: #ffffff;
}

.page-support__contact-channels-section .page-support__section-title {
    color: #ffffff;
}

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

.page-support__channel-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__channel-card .page-support__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-support__card-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-support__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__email-link {
    color: #FFFF00;
    text-decoration: underline;
}

.page-support__email-link:hover {
    color: #ffffff;
}

.page-support__video-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto 30px auto;
    border-radius: 10px;
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

.page-support__video-cta {
    margin-top: 30px;
}

.page-support__resources-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-support__resource-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-support__resource-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-support__resource-card .page-support__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-support__resource-card .page-support__card-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
    flex-grow: 1;
}

.page-support__resource-card .page-support__card-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-support__final-cta-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-support__text-center {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
    }
    .page-support__about-support-section,
    .page-support__faq-section,
    .page-support__contact-channels-section,
    .page-support__video-section,
    .page-support__resources-section,
    .page-support__final-cta-section {
        padding: 50px 0;
    }
    .page-support__container {
        padding: 0 15px;
    }

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

    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__grid-item,
    .page-support__channel-card,
    .page-support__resource-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__video,
    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-support__video-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__grid-item,
    .page-support__channel-card,
    .page-support__resource-card {
        padding: 20px;
    }
}

/* Ensure content area images are not too small */
.page-support__grid-item .page-support__image,
.page-support__channel-card .page-support__image,
.page-support__resource-card .page-support__image {
  min-width: 200px;
  min-height: 200px;
}

/* Override for specific color contrast */
.page-support__light-bg .page-support__section-title, 
.page-support__light-bg .page-support__section-description, 
.page-support__light-bg .page-support__item-title, 
.page-support__light-bg .page-support__item-text, 
.page-support__light-bg .page-support__card-title, 
.page-support__light-bg .page-support__card-text, 
.page-support__light-bg p, 
.page-support__light-bg li, 
.page-support__light-bg a {
    color: #333333; /* Ensure dark text on light backgrounds */
}

.page-support__light-bg .page-support__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.page-support__light-bg .page-support__faq-question {
    background-color: #ffffff;
    color: #333333;
}

.page-support__light-bg .page-support__faq-question:hover {
    background-color: #f0f0f0;
}

.page-support__light-bg .page-support__faq-answer {
    color: #555555;
}

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

.page-support__light-bg .page-support__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}