/* /public/css/help.css */
.help-wrapper {
    width: 750px;
    margin: 50px auto;
    margin-bottom: 50px !important;
    background: rgba(40, 42, 54, 0.93);
    border-radius: 32px;
    border: 2.2px solid #49506a;
    padding: 0px 25px 50px 25px;
    color: #e8eaed;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(3px);
    text-align: center;
    box-shadow:
        0 0 0 3px #23252f,
        0 0 0 8px #767b915c,
        0 6px 16px 0 rgba(50, 56, 82, 0.15),
        0 1.5px 0 0 #2e313c;
    border: 5px solid #464749;
}

.help-wrapper h2 {
    font-size: 2.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0;
}

.help-wrapper-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.help-wrapper section {
    width: 320px;
    min-height: 400px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow: hidden;
    margin-bottom: 0;
}

.help-wrapper h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.45rem;
    color: #ffd36d;
    font-weight: 700;
}

.help-wrapper ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.help-wrapper li {
    padding: 7px 0 7px 0;
    border-bottom: 1px solid rgba(240, 240, 255, 0.09);
    font-size: 1.07rem;
    letter-spacing: 0.02em;
}
.help-wrapper li:last-child {
    border-bottom: none;
}

.search-bar-wrap {
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 2;
    border: 2px solid #ffd36d;
    border-radius: 16px;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    background: #292838;
    width: fit-content;
}

.search-bar-wrap:focus-within {
    box-shadow: 0 0 0 2.5px #ffe184bb;
}

#help-search {
    width: 340px;
    padding: 13px 22px;
    border: none;
    border-radius: 16px 0 0 16px;
    background: rgba(44, 49, 70, 1);
    color: #ffe99b;
    font-size: 1.15rem;
    outline: none;
    box-shadow: none;
    transition: background 0.17s;
}

#help-search:focus {
    background: rgba(44, 49, 70, 0.98);
}

#help-search-btn {
    border-radius: 0 13px 13px 0;
    border: none;
    background: linear-gradient(90deg, #ffe184, #ffd36d);
    color: #32313e;
    font-size: 1.32rem;
    font-weight: bold;
    padding: 0 20px;
    height: 48px;
    cursor: pointer;
    transition:
        background 0.14s,
        color 0.14s;
    box-shadow: none;
    background: linear-gradient(90deg, #ffe184 60%, #fff6d0 100%);
}

#help-search-btn:hover,
#help-search-btn:focus {
    background: linear-gradient(90deg, #ffd36d, #ffe184);
    color: #000;
}

/* New/additional styles for sections/pages/tables */
.help-section-title {
    color: #62ffe9;
    letter-spacing: 0.021em;
    font-size: 1.44rem;
    text-transform: uppercase;
    margin: 30px 0 10px 0;
    text-align: left;
}
.help-pages-list {
    font-size: 1.11rem;
    color: #e0e3fa;
    margin: 8px 0 28px 0;
    text-align: left;
    padding-left: 2px;
}
.help-pages-list b {
    color: #ffd36d;
}
.help-page-desc {
    font-size: 1.05rem;
    color: #bad9fa;
    margin: 5px 0 13px 12px;
    padding-left: 2px;
}
.quick-tip {
    color: #27eca0;
    font-size: 1.03rem;
    margin-top: 10px;
    margin-bottom: 26px;
}
.help-how-title {
    color: #ffd36d;
    font-size: 1.16em;
    margin: 38px 0 10px 0;
    font-weight: 700;
    letter-spacing: 0.021em;
    text-align: left;
}
.help-how-table {
    width: 95%;
    margin: 0 auto 45px auto;
    border-radius: 11px;
    border-spacing: 0;
    background: #2a2d47;
    box-shadow: 0 1px 8px 0 #16182572;
    color: #cfffef;
    font-size: 1rem;
    line-height: 1.64em;
}
.help-how-table th,
.help-how-table td {
    border-bottom: 1px solid #2ddfd64a;
    padding: 11px 17px;
    text-align: left;
}
.help-how-table th {
    font-weight: 800;
    color: #ffd36d;
    letter-spacing: 0.04em;
    background: #25324b;
    border-bottom: 2px solid #ffd36dda;
}
.help-how-table tr:last-child td {
    border-bottom: none;
}
.help-how-table tr td:first-child {
    font-weight: 600;
    color: #95ffea;
}

.help-pages-list {
    font-size: 1.11rem;
    color: #e0e3fa;
    margin: 8px 0 28px 0;
    text-align: left;
    padding-left: 2px;
    /* NEW: more space between items */
    line-height: 1.05em;
}

.help-page-desc {
    font-size: 1.05rem;
    color: #bad9fa;

    padding-left: 0;
    display: block; /* force each .help-page-desc to be on its own line */
}

.help-pages-list:last-of-type {
    line-height: 28px; /* extra vertical spacing for Important section */
    margin-top: 13px;
    margin-bottom: 6px;
}

@media (max-width: 850px) {
    .help-wrapper {
        margin-left: 20px;
        width: 85%;
    }
}

@media (max-width: 650px) {
    .help-wrapper {
        margin-left: 20px;
        width: 80%;
    }

    .help-how-table {
        width: 85vw !important;
        min-width: 0 !important;
        max-width: 85vw !important;
        margin-left: calc(-1 * (25px + 5vw)) !important;
        margin-right: 0 !important;
        font-size: 0.98rem;
        margin-left: 0px !important;
        overflow-x: auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .help-how-table {
        width: 80vw !important;
        max-width: 80vw !important;
        margin-left: 0px !important;
        font-size: 8px;
        border-radius: 7px;
    }
    .help-how-table th,
    .help-how-table td {
        padding: 8px 8px;
        font-size: 10px;
        word-break: break-word;
    }
}

@media (max-width: 525px) {
    .help-wrapper {
        margin-left: 12px;
        width: 79%;
    }

    .search-bar-wrap {
        width: 95%;
    }
    #help-search {
        width: 60vw;
        min-width: 90px;
        max-width: 82vw;
        padding: 9px 14px;
        font-size: 1rem;
        border-radius: 14px 0 0 14px;
    }
    #help-search-btn {
        height: 38px;
        font-size: 1.05rem;
        padding: 0 14px;
        border-radius: 0 13px 13px 0;
    }
}

@media (max-width: 450px) {
    .help-wrapper {
        margin-left: 10px;
        width: 77%;
    }
}

@media (max-width: 400px) {
    .help-wrapper {
        margin-left: 10px;
        width: 75%;
    }
}

@media (max-width: 375px) {
    .help-wrapper {
        margin-left: 10px;
        width: 73%;
    }
}

@media (max-width: 350px) {
    .help-wrapper {
        margin-left: 10px;
        width: 71%;
    }
}

@media (max-width: 325px) {
    .help-wrapper {
        margin-left: 10px;
        width: 69%;
    }
}

@media (max-width: 300px) {
    .help-wrapper {
        margin-left: 10px;
        width: 67%;
    }
}
