/* =============================================================================
   c-aphs-category-help-support
   (source: aphsCategoryHelpSupport/aphsCategoryHelpSupport.css)
   ============================================================================= */

c-aphs-category-help-support {
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: APTypeProText, -apple-system, system-ui, sans-serif;
}

c-aphs-category-help-support * {
    box-sizing: border-box;
}

/*  Fluid container */
c-aphs-category-help-support .page-wrapper {
    width: 100%;
    padding: clamp(0px, 0vw, 0px) clamp(20px, 0vw, 0px);
    padding-bottom: 8px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/*  Loading / Error  */
c-aphs-category-help-support .spinner-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-height: 100px;
}

c-aphs-category-help-support .aphs-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(224, 26, 34, 0.2);
    border-top-color: #E01A22;
    border-radius: 50%;
    animation: aphs-spin 0.8s linear infinite;
}

@keyframes aphs-spin {
    to { transform: rotate(360deg); }
}

c-aphs-category-help-support .state-msg {
    text-align: center;
    padding: 40px;
    font-size: 14px;
    color: #595959;
}

c-aphs-category-help-support .error-msg {
    color: #B00020;
    font-weight: 600;
}

/*  Grid  */
c-aphs-category-help-support .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 2vw, 24px);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

c-aphs-category-help-support .card-item {
    display: block;
}

c-aphs-category-help-support .card-item:last-child:nth-child(odd) {
    --card-gap: clamp(12px, 2vw, 24px);
    grid-column: 1 / -1;
    width: calc((100% - var(--card-gap)) / 2);
    justify-self: center;
}
/*  Card  */
c-aphs-category-help-support .card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 0px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    min-width: 0;
    color: inherit;
    text-decoration: none !important;
}

c-aphs-category-help-support .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #e5e5e5;
    text-decoration: none !important;
}

c-aphs-category-help-support .card:focus-visible {
    outline: 1px dotted #4d4d54 !important;
    outline-offset: 2px;
    border-color: #e5e5e5;
    text-decoration: none !important;
}

/*  Icon  */
c-aphs-category-help-support .card-icon img {
    width: clamp(78px, 8vw, 104px);
    height: clamp(78px, 8vw, 104px);
    object-fit: contain;
    margin-bottom: clamp(16px, 2vw, 24px);
    display: block;
    flex-shrink: 0;
}

/*  Card content  */
c-aphs-category-help-support .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
}

c-aphs-category-help-support .card-title {
    font-size: clamp(14px, 1.5vw, 24px);
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    text-decoration: none !important;
}

c-aphs-category-help-support .card:hover .card-title {
    text-decoration: none !important;
}

c-aphs-category-help-support .card-desc {
    font-size: clamp(13px, 1.2vw, 16px);
    color: #4d4d54;
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-weight: 400;
    text-decoration: none !important;
}

c-aphs-category-help-support .card:hover .card-desc {
    text-decoration: none !important;
}

/*  Tablet  */
@media (max-width: 768px) {
    c-aphs-category-help-support .card-icon img {
        width: 80px;
        height: 80px;
    }
}

/*  Mobile — single column  */
@media (max-width: 600px) {
    c-aphs-category-help-support .page-wrapper {
        padding: 28px 16px 15px;
    }
    c-aphs-category-help-support .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    c-aphs-category-help-support .card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 32px 24px;
    }
    c-aphs-category-help-support .card-icon img {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }
    c-aphs-category-help-support .card-content {
        align-items: center;
    }
    c-aphs-category-help-support .card-desc {
        max-width: 100%;
    }
    c-aphs-category-help-support .card-item:last-child:nth-child(odd) {
        width: 100%;
    }
}

/*  Very small screens  */
@media (max-width: 380px) {
    c-aphs-category-help-support .page-wrapper {
        padding: 20px 12px 32px;
    }
} 