/* style/support.css */

/* Base Styles */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f9fa; /* Light background for the page content */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #007bff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Increased height for visual impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-support__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-support__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-support__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-support__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
}

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

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

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

.page-support__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-support__text-link {
    color: #007bff;
    text-decoration: underline;
}

.page-support__text-link:hover {
    color: #0056b3;
}

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

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

.page-support__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #fefefe;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.page-support__faq-item.active .page-support__faq-question {
    border-bottom: none;
}

.page-support__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #333333;
    font-weight: bold;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    color: #007bff;
    transition: transform 0.3s ease;
    width: 20px; /* Fixed width for consistent alignment */
    text-align: center;
    line-height: 1;
}

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    background-color: #fefefe;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large height for content */
    padding: 15px 20px; /* Padding when active */
}

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

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background-color: #f0f8ff; /* Light blue background */
}

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

.page-support__contact-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
}

.page-support__contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-support__contact-icon {
    width: 200px; /* Adjusted to meet minimum size requirement */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Make it circular */
    border: 3px solid #007bff; /* Add a border */
    padding: 10px;
    background-color: #e6f2ff; /* Light background for icons */
}

.page-support__card-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__card-description {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Video Section */
.page-support__video-section {
    padding: 80px 0;
    background-color: #e9ecef; /* Slightly darker background */
}

.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin: 0 auto;
}

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

.page-support__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}


/* Resources Section */
.page-support__resources-section {
    padding: 80px 0;
    background-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: #fefefe;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.page-support__resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

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

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

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

.page-support__resource-card .page-support__card-description {
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-support__btn-text {
    color: #28a745;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.page-support__btn-text:hover {
    text-decoration: underline;
    color: #218838;
}

/* CTA Section */
.page-support__cta-section {
    padding: 80px 0;
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
}

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

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


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

@media (max-width: 768px) {
    /* General content padding for mobile */
    .page-support__container {
        padding: 0 15px;
    }

    /* Hero Section */
    .page-support__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .page-support__hero-buttons a {
        width: 100%;
    }

    /* Buttons responsive rules */
    .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__hero-buttons .page-support__btn-primary,
    .page-support__hero-buttons .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
    }
    .page-support__cta-buttons,
    .page-support__button-group,
    .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;
    }

    /* Sections Padding */
    .page-support__faq-section,
    .page-support__contact-section,
    .page-support__video-section,
    .page-support__resources-section,
    .page-support__cta-section {
        padding: 40px 0;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-intro {
        font-size: 1em;
    }

    /* FAQ */
    .page-support__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-support__faq-title {
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 15px;
    }

    /* Contact Cards */
    .page-support__contact-card {
        padding: 20px;
    }
    .page-support__contact-icon {
        width: 200px; /* Ensures minimum size */
        height: 200px;
    }
    .page-support__card-title {
        font-size: 1.3em;
    }

    /* Video Section */
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-support__video-wrapper {
        padding-bottom: 56.25% !important;
        height: 0 !important;
    }

    /* Resources Grid */
    .page-support__resources-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .page-support__cta-title {
        font-size: 1.8em;
    }
    .page-support__cta-description {
        font-size: 1em;
    }
    .page-support__btn-large {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    /* Image responsive rules */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__contact-section,
    .page-support__resources-section,
    .page-support__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Enforce min-size for content images if they are not specifically sized */
    .page-support img:not(.page-support__contact-icon) {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__hero-description {
        font-size: 0.95em;
    }
    .page-support__cta-title {
        font-size: 1.6em;
    }
}

/* Color Contrast Enforcement */
/* body background is default light, so text should be dark */
.page-support {
    color: #333333;
}

/* Dark background sections */
.page-support__hero-overlay,
.page-support__cta-section {
    background-color: #007bff;
    color: #ffffff;
}

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

.page-support__btn-secondary {
    border-color: #ffffff;
}

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

/* Light background sections */
.page-support__faq-section,
.page-support__resources-section,
.page-support__contact-card,
.page-support__resource-card {
    background-color: #ffffff;
    color: #333333;
}

.page-support__contact-section {
    background-color: #f0f8ff;
    color: #333333;
}

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

/* Button colors */
.page-support__btn-primary {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

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

/* Specific text links */
.page-support__text-link {
    color: #007bff;
}
.page-support__btn-text {
    color: #28a745;
}