:root {
    --primary-color: #017439; /* Main brand color */
    --secondary-color: #C30808; /* Register/Login button color */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #017439;
    --border-color: #e0e0e0;
    --font-color-login-register: #FFFF00; /* As per specific requirement, will use this for text on secondary-color background */
}

/* General page styling */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background: var(--background-light); /* Default body background is light */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-support__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a9c68 100%); /* Green gradient for hero */
    color: var(--text-color-light);
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-support__hero-image img:hover {
    transform: scale(1.02);
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.page-support__main-heading {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-support__intro-text {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

.page-support__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsiveness */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    min-width: 180px; /* Minimum width for buttons */
}

.page-support__btn-primary {
    background: var(--secondary-color); /* #C30808 for Register/Login */
    color: var(--font-color-login-register); /* #FFFF00 for text on #C30808 */
    border: 2px solid var(--secondary-color);
}

.page-support__btn-primary:hover {
    background: #a80707; /* Slightly darker red on hover */
    border-color: #a80707;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-support__btn-secondary {
    background: var(--background-light); /* White background */
    color: var(--primary-color); /* Green text */
    border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background: var(--background-light);
}

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

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    border: 1px solid var(--border-color);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-item.active .page-support__faq-question {
    background-color: #f0f0f0;
    border-bottom: 1px solid transparent; /* Hide bottom border when active */
    border-radius: 10px 10px 0 0;
}

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

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

.page-support__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: 30px;
    height: 30px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(180deg);
}

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

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Use !important and large value */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 10px 10px;
}

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

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

.page-support__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-support__faq-answer a:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background: var(--background-dark); /* Dark background for contact section */
    color: var(--text-color-light);
}

.page-support__contact-section .page-support__section-title,
.page-support__contact-section .page-support__section-description {
    color: var(--text-color-light);
}

.page-support__contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__contact-method {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-support__contact-method:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-support__contact-method img {
    width: 100%;
    max-width: 200px; /* Adjust max-width for contact method images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min-width */
    min-height: 200px; /* Enforce min-height */
    object-fit: cover;
}

.page-support__contact-method h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-support__contact-method p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #e0e0e0;
}

/* Guides Section */
.page-support__guides-section {
    padding: 80px 0;
    background: var(--background-light);
}

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

.page-support__guide-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-support__guide-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-support__guide-card p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensure paragraphs take available space */
}

.page-support__card-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    align-self: flex-start; /* Align link to the start */
}

.page-support__card-link:hover {
    background: #005a2e; /* Darker green on hover */
    transform: translateY(-2px);
}

/* Announcements Section */
.page-support__announcements-section {
    padding: 80px 0;
    background: var(--background-dark);
    color: var(--text-color-light);
}

.page-support__announcements-section .page-support__section-title,
.page-support__announcements-section .page-support__section-description {
    color: var(--text-color-light);
}

.page-support__announcement-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__announcement-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-support__announcement-card h3 a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__announcement-card h3 a:hover {
    color: var(--font-color-login-register); /* Yellow on hover */
}

.page-support__announcement-card p {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.page-support__view-all-news-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--font-color-login-register);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.page-support__view-all-news-btn:hover {
    background: #a80707;
    border-color: #a80707;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__main-heading {
        font-size: 40px;
    }
    .page-support__intro-text {
        font-size: 20px;
    }
    .page-support__section-title {
        font-size: 32px;
    }
    .page-support__faq-question h3 {
        font-size: 17px;
    }
    .page-support__contact-method h3 {
        font-size: 22px;
    }
    .page-support__guide-card h3 {
        font-size: 20px;
    }
}

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

    .page-support__container {
        padding: 0 15px; /* Smaller padding on mobile */
    }

    /* Hero Section Mobile */
    .page-support__hero-section {
        padding: 40px 15px;
    }

    .page-support__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .page-support__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__hero-content {
        padding: 10px;
    }

    .page-support__main-heading {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-support__intro-text {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 6px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section Mobile */
    .page-support__faq-section {
        padding: 50px 0;
    }

    .page-support__faq-item {
        border-radius: 8px;
    }

    .page-support__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap; /* Allow question text to wrap */
    }

    .page-support__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px); /* Leave space for toggle */
    }

    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 22px;
    }

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

    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px !important;
    }

    /* Contact Section Mobile */
    .page-support__contact-section {
        padding: 50px 0;
    }

    .page-support__contact-method {
        padding: 25px;
    }

    .page-support__contact-method img {
        
        margin-bottom: 15px;
        min- /* Enforce min-width for mobile */
        min- /* Enforce min-height for mobile */
    }

    .page-support__contact-method h3 {
        font-size: 20px;
    }

    /* Guides Section Mobile */
    .page-support__guides-section {
        padding: 50px 0;
    }

    .page-support__guide-card {
        padding: 25px;
    }

    .page-support__guide-card h3 {
        font-size: 18px;
    }

    .page-support__card-link {
        padding: 10px 18px;
        font-size: 15px;
    }

    /* Announcements Section Mobile */
    .page-support__announcements-section {
        padding: 50px 0;
    }

    .page-support__announcement-card {
        padding: 25px;
    }

    .page-support__announcement-card h3 {
        font-size: 20px;
    }
    
    .page-support__announcement-card h3 a {
        display: block; /* Ensure link text wraps */
    }

    .page-support__view-all-news-btn {
        padding: 10px 25px;
        font-size: 15px;
    }

    /* Global image and container responsive rules for mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-support__section, 
    .page-support__card, 
    .page-support__container, 
    .page-support__contact-grid, 
    .page-support__guide-grid, 
    .page-support__announcement-card, 
    .page-support__faq-list { /* Including grid and card containers */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Specific override for hero-section padding-top to ensure it's not double-applied */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}