/* style/support.css */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #0a0a0a;
    --background-light: #f1f3f5;
    --border-color: #e0e0e0;
}

.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark); /* Inherits from body via shared.css */
}

/* Fixed navigation bar spacing */
.page-support__intro-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

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

.page-support__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-support__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-support__main-title {
    font-size: 3.2em;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-support__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-support__description,
.page-support__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-support__intro-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-support__contact-card {
    background: #ffffff;
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__contact-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-support__card-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-support__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
}

.page-support__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.page-support__btn-primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-support__faq-list {
    margin-top: 40px;
}

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--text-dark);
}

.page-support__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-support__faq-question:active {
    background: #eeeeee;
}

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-support__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.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;
    padding: 0 25px;
    opacity: 0;
    color: var(--text-dark);
    background: #f9f9f9;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.page-support__faq-answer p {
    margin: 0 0 10px 0;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-support__link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-support__link:hover {
    color: var(--secondary-color);
}

/* Resources Section */
.page-support__resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__resource-card {
    background: #ffffff;
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 30px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__resource-image {
    width: 100%;
    max-width: 300px; /* Adjust as needed for card aesthetics, min 200px */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Policies Section */
.page-support__policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-support__policy-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__policy-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-support__policy-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 2.8em;
    }
    .page-support__section-title {
        font-size: 2.2em;
    }
    .page-support__description, .page-support__text-block {
        font-size: 1em;
    }
    .page-support__contact-icon {
        width: 80px;
        height: 80px;
    }
    .page-support__card-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-support__intro-section {
        padding-top: 100px !important; /* Mobile: Adjust for mobile fixed header */
    }
    .page-support__container {
        padding: 20px 15px !important;
    }
    .page-support__main-title {
        font-size: 2.2em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__description, .page-support__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-support__intro-image {
        margin-top: 20px;
    }
    .page-support__contact-methods,
    .page-support__resource-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__contact-card,
    .page-support__resource-card {
        padding: 20px;
    }
    .page-support__contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    .page-support__card-title {
        font-size: 1.2em;
    }
    .page-support__card-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .page-support__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* FAQ Mobile */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-support__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 22px;
    }
    .page-support__faq-answer {
        padding: 0 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }
    .page-support__faq-answer p {
        font-size: 0.95em;
    }

    .page-support__policy-links {
        flex-direction: column;
        align-items: center;
    }
    .page-support__policy-link {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Ensure all images are responsive */
    .page-support img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .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;
    }
}

@media (max-width: 480px) {
    .page-support__main-title {
        font-size: 1.8em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__btn-primary {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-support__faq-question h3 {
        font-size: 0.95em;
    }
    .page-support__faq-toggle {
        font-size: 20px;
    }
}