/* Help module: reusable premium styling for Help and FAQ pages */
.help-module-page {
    --help-primary: #0B5ED7;
    --help-secondary: #20ACEA;
    --help-success: #2E7D32;
    --help-parent: #6A1B9A;
    --help-teacher: #1565C0;
    --help-principal: #C62828;
    --help-surface: #ffffff;
    --help-surface-soft: #f8fbff;
    --help-border: rgba(11, 94, 215, 0.12);
    --help-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --help-shadow-hover: 0 22px 60px rgba(11, 94, 215, 0.14);
    color: #183153;
}

.help-module-page .help-hero-shell {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    background: linear-gradient(135deg, #052F8B 0%, #0B5ED7 45%, #20ACEA 100%);
    color: #fff;
    box-shadow: var(--help-shadow);
}

.help-module-page .help-hero-shell::before,
.help-module-page .help-hero-shell::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(0.25rem);
    pointer-events: none;
}

.help-module-page .help-hero-shell::before {
    width: 18rem;
    height: 18rem;
    right: -5rem;
    top: -5rem;
}

.help-module-page .help-hero-shell::after {
    width: 12rem;
    height: 12rem;
    left: -3rem;
    bottom: -4rem;
}

.help-module-page .help-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.help-module-page .help-hero-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.help-module-page .help-hero-lead {
    max-width: 68rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.help-module-page .help-hero-actions .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.8rem 1.25rem;
}

.help-module-page .help-surface-card,
.help-module-page .help-service-card,
.help-module-page .help-info-card,
.help-module-page .help-faq-card {
    background: var(--help-surface);
    border: 1px solid var(--help-border);
    border-radius: 1.35rem;
    box-shadow: var(--help-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.help-module-page .help-surface-card:hover,
.help-module-page .help-service-card:hover,
.help-module-page .help-info-card:hover,
.help-module-page .help-faq-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--help-shadow-hover);
    border-color: rgba(11, 94, 215, 0.22);
}

.help-module-page .help-service-card .card-body,
.help-module-page .help-info-card .card-body,
.help-module-page .help-faq-card .card-body {
    padding: 1.3rem;
}

.help-module-page .help-section {
    margin-top: 1.25rem;
}

.help-module-page .help-section-title {
    font-size: clamp(1.45rem, 1.2rem + 0.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #10233f;
    margin-bottom: 0.35rem;
}

.help-module-page .help-section-lead {
    color: #5b6b82;
    line-height: 1.7;
    max-width: 60rem;
}

.help-module-page .help-chip-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.help-module-page .help-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #eef5ff;
    color: #0b5ed7;
    border: 1px solid rgba(11, 94, 215, 0.12);
}

.help-module-page .help-chip.success { background: rgba(46, 125, 50, 0.1); color: var(--help-success); }
.help-module-page .help-chip.parent { background: rgba(106, 27, 154, 0.1); color: var(--help-parent); }
.help-module-page .help-chip.teacher { background: rgba(21, 101, 192, 0.1); color: var(--help-teacher); }
.help-module-page .help-chip.principal { background: rgba(198, 40, 40, 0.1); color: var(--help-principal); }

.help-module-page .accordion-item {
    border-radius: 1rem !important;
    overflow: hidden;
    border: 1px solid rgba(11, 94, 215, 0.12);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.help-module-page .accordion-button {
    font-weight: 700;
    color: #10233f;
    background: #fff;
    padding: 1rem 1.15rem;
}

.help-module-page .accordion-button:not(.collapsed) {
    color: #fff;
    background: linear-gradient(135deg, #0B5ED7 0%, #20ACEA 100%);
    box-shadow: none;
}

.help-module-page .accordion-body {
    padding: 1rem 1.15rem 1.15rem;
    color: #334155;
    line-height: 1.8;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.help-module-page .help-callout {
    border-radius: 1.35rem;
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.06), rgba(32, 172, 234, 0.08));
    border: 1px solid rgba(11, 94, 215, 0.12);
}

.help-module-page .contact-support-section {
    background: linear-gradient(135deg, rgba(11, 94, 215, 0.045), rgba(32, 172, 234, 0.07), rgba(255, 255, 255, 0.94)) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06) !important;
}

.help-module-page .contact-support-section h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #10233f;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.help-module-page .contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.help-module-page .contact-method {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding: 1.45rem 1.35rem !important;
    border-radius: 1.4rem !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95)) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-module-page .contact-method:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

.help-module-page .contact-method > i,
.help-module-page .contact-method a > i {
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 1.35rem;
    color: #0B5ED7;
    background: rgba(11, 94, 215, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    margin-bottom: 0.35rem;
}

.help-module-page .contact-method a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.help-module-page .contact-method h4,
.help-module-page .contact-method p,
.help-module-page .contact-method small {
    margin-bottom: 0;
}

.help-module-page .contact-method p {
    font-weight: 700;
    color: #10233f;
}

.help-module-page .help-footnote {
    color: #667085;
    font-size: 0.95rem;
}

.help-module-page .help-role-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.help-module-page .help-role-grid .card {
    min-height: 100%;
}

.help-module-page .help-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
}

.help-module-page .help-role-tag.student { background: rgba(46, 125, 50, 0.1); color: var(--help-success); }
.help-module-page .help-role-tag.parent { background: rgba(106, 27, 154, 0.1); color: var(--help-parent); }
.help-module-page .help-role-tag.teacher { background: rgba(21, 101, 192, 0.1); color: var(--help-teacher); }
.help-module-page .help-role-tag.principal { background: rgba(198, 40, 40, 0.1); color: var(--help-principal); }

/* Legacy Help landing page overrides so the existing Help/Index view matches the premium module design */
.help-page-wrapper.help-module-page {
    color: #183153;
}

.help-page-wrapper .help-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    margin: 0 0 1.5rem;
    padding: clamp(3rem, 6vw, 5rem) 0 !important;
    background: linear-gradient(135deg, #052F8B 0%, #0B5ED7 45%, #20ACEA 100%) !important;
    box-shadow: var(--help-shadow);
}

.help-page-wrapper .help-hero::before {
    content: "";
    position: absolute;
    inset: auto;
    width: 18rem;
    height: 18rem;
    right: -5rem;
    top: -5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(0.25rem);
    pointer-events: none;
}

.help-page-wrapper .help-hero::after {
    content: "";
    position: absolute;
    inset: auto;
    width: 12rem;
    height: 12rem;
    left: -3rem;
    bottom: -4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(0.25rem);
    pointer-events: none;
}

.help-page-wrapper .help-hero h1,
.help-page-wrapper .help-hero p {
    color: #fff !important;
    position: relative;
    z-index: 1;
}

.help-page-wrapper .help-hero h1 {
    font-size: clamp(2.1rem, 1.5rem + 2vw, 3.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}

.help-page-wrapper .help-hero p {
    font-size: 1.05rem !important;
    max-width: 68rem;
    margin-inline: auto;
    opacity: 0.94;
}

.help-page-wrapper .help-search-container {
    max-width: 720px;
}

.help-page-wrapper .help-search-box input {
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16) !important;
}

.help-page-wrapper .help-content,
.help-page-wrapper .faq-section,
.help-page-wrapper .contact-support-section {
    background: transparent !important;
    padding: 1rem 0 0 !important;
}

.help-page-wrapper .help-content .container,
.help-page-wrapper .faq-section .container,
.help-page-wrapper .contact-support-section .container {
    position: relative;
}

.help-page-wrapper .quick-link-card {
    background: var(--help-surface) !important;
    border: 1px solid var(--help-border) !important;
    border-radius: 1.35rem !important;
    box-shadow: var(--help-shadow) !important;
    color: #183153 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.help-page-wrapper .quick-link-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(11, 94, 215, 0.22) !important;
    box-shadow: var(--help-shadow-hover) !important;
}

.help-page-wrapper .quick-link-icon {
    background: linear-gradient(135deg, #052F8B 0%, #0B5ED7 100%) !important;
    box-shadow: 0 14px 30px rgba(11, 94, 215, 0.25);
}

.help-page-wrapper .quick-link-card h3,
.help-page-wrapper .screenshot-caption h3,
.help-page-wrapper .contact-method h4,
.help-page-wrapper .faq-section h2,
.help-page-wrapper .popular-topics h2 {
    color: #10233f !important;
}

.help-page-wrapper .quick-link-card p,
.help-page-wrapper .screenshot-caption p,
.help-page-wrapper .contact-method p,
.help-page-wrapper .contact-method small,
.help-page-wrapper .section-lead,
.help-page-wrapper .accordion-body {
    color: #5b6b82 !important;
}

.help-page-wrapper .quick-link-card .btn,
.help-page-wrapper .contact-support-section .btn,
.help-page-wrapper .topic-tag {
    border-radius: 999px !important;
    font-weight: 700 !important;
}

.help-page-wrapper .quick-link-card .btn,
.help-page-wrapper .contact-support-section .btn {
    background: linear-gradient(135deg, #0B5ED7 0%, #20ACEA 100%) !important;
    color: #fff !important;
    border: none !important;
}

.help-page-wrapper .faq-section h2,
.help-page-wrapper .popular-topics h2 {
    font-size: clamp(1.45rem, 1.2rem + 0.8vw, 2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.help-page-wrapper .accordion-item,
.help-page-wrapper .screenshot-card,
.help-page-wrapper .contact-method,
.help-page-wrapper .topic-tag {
    border: 1px solid rgba(11, 94, 215, 0.12) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04) !important;
}

.help-page-wrapper .accordion-button {
    font-weight: 700 !important;
    color: #10233f !important;
    background: #fff !important;
}

.help-page-wrapper .accordion-button:not(.collapsed) {
    color: #fff !important;
    background: linear-gradient(135deg, #0B5ED7 0%, #20ACEA 100%) !important;
}

.help-page-wrapper .contact-support-section {
    text-align: left !important;
}

.help-page-wrapper .contact-support-section .container > .mt-5 {
    text-align: center;
}

.help-page-wrapper .contact-method {
    background: var(--help-surface) !important;
    border-radius: 1.25rem !important;
    backdrop-filter: none !important;
    min-width: 220px;
}

.help-page-wrapper .contact-method:hover {
    transform: translateY(-2px) !important;
    background: var(--help-surface) !important;
}

.help-page-wrapper .screenshot-card {
    background: var(--help-surface) !important;
    border-radius: 1.35rem !important;
}

.help-page-wrapper .topic-tag {
    background: #eef5ff !important;
    color: #0b5ed7 !important;
}

.help-page-wrapper .topic-tag:hover {
    background: linear-gradient(135deg, #0B5ED7 0%, #20ACEA 100%) !important;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .help-module-page .help-role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .help-module-page .help-role-grid {
        grid-template-columns: 1fr;
    }

    .help-module-page .help-hero-shell {
        border-radius: 1.15rem;
    }
}
