/* static/css/landing/help.css */

/* Main Heading - Right Aligned */
body,
html {
    margin: 0;
    font-size: 16px;
    line-height: normal;
    color: var(--text-color);
    background: #FAFBFF !important;
    text-wrap: balance;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-display: swap
}

.main-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: left;
    font-weight: 600;
}

.help-header{
    margin: 1rem 0;
}

.page-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-card {
    width: 100%;
    background: white;
    padding: 1.5rem;
    transition: all 0.2s;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #EDEFFF;
    break-inside: avoid;
    box-shadow: 0 5px 11px rgba(229, 229, 229, 0.4);
    text-wrap: auto;
    margin-top: 1rem;
}

.help-card.mh{
    min-height: 40vh;
}

.help-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.help-card h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem !important;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-align: left;
}

.help-hero h1 {
    margin: 0;
    font-weight: 700;
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0 0 3rem;
}
.help-card ul.main-ul{
    list-style: none;
    padding: 0;
}

.help-card li {
    margin: 10px 0;
}

.help-card a {
    color: var(--main-color);
    text-decoration: none;
}

.help-card a:hover{
    text-decoration: underline !important
}

.help-card .btn-primary{
    margin: 1rem 0;
    width: fit-content;
}

.help-card a.btn-primary{
    color: white !important;
    text-decoration: none;
}

.help-card a.btn-primary:hover{
    text-decoration: none;
}

.help-article {
    margin: 2rem auto 4rem;
}

.footer-list a{
    color: white !important;
    opacity: 0.8;
}

.footer-brand .navbar-brand img[alt="CheckIQ logo"] {
  content: url("/static/img/shared/logos/CheckIQ-logo-w.png");
}

.footer-brand .credit{
    color: white;
    opacity: 0.5;
}


/* Language switcher */
.lang-switcher {
    position: relative;
    margin-bottom: 14px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1f2937;
    border: 1px solid #e6e8ee;
    border-radius: 999px;
    padding: 0px 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.lang-btn:focus, .lang-btn:active{
    outline: transparent;
}

.lang-btn .flag {
    font-size: 18px
}

.lang-btn .label {
    font-size: 14px
}

.lang-btn .chevron {
    font-size: 12px;
    color: #6b7280
}

.help-topbar .lang-menu {
    position: absolute;
    bottom: unset;
    top: calc(100% + 8px);
    background: #fff;
    min-width: 220px;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    padding: 6px;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    display: none;
    z-index: 1000;
}

.lang-menu.show {
    display: block
}

.lang-menu li {
    margin: 0
}

.help-topbar .lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color) !important;
    font-weight: 500;
}

.lang-item:hover {
    background: #f6f6ff;
}

.lang-item .flag {
    font-size: 18px
}

.lang-btn:focus,
.lang-btn:active,
.lang-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.lang-item:focus,
.lang-item:active,
.lang-item:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Chevron animation */
.chevron {
    transition: transform 0.3s ease;
}

.lang-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.current-check {
  margin-left: auto;
  color: var(--main-color) !important;
  font-size: 16px;
}

.help-body a {
    color: var(--main-color);
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .help-grid {
        grid-template-columns: 1fr;
    }

    .help-article {
        margin: 1rem auto;
    }

    .page-header {
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .main-heading{
        font-size: 1.75rem !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 992px) {
    .lang-switcher {
        margin-left: 0;
        margin-bottom:1rem;
    }
}