/* Attendico Knowledge Base — frontend, 1.0.4 */
.attkb {
    --attkb-primary: #24384D;
    --attkb-primary-soft: rgba(36, 56, 77, .075);
    --attkb-primary-hover: rgba(36, 56, 77, .05);
    --attkb-border: #e2e8ec;
    --attkb-body: #263544;
    --attkb-muted: #647482;
    --attkb-surface: #ffffff;
    --attkb-radius: 0px;
    --attkb-hero-image: url("https://attendico.com/wp-content/uploads/2026/10/attendico-ats-cloud.png");
    font-family: inherit;
    color: var(--attkb-body);
    line-height: 1.5;
    width: 100%;
    min-width: 0;
}
/* Center KB listings/search results at a 1200px maximum on wide screens.
   The image-backed hero remains full-width within its Elementor parent. */
.attkb .attkb-content {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767px) {
    .attkb .attkb-content {
        padding-left: 16px;
        padding-right: 16px;
    }
}
.attkb *, .attkb *::before, .attkb *::after { box-sizing: border-box; }
.attkb a { text-decoration: none; }
.attkb svg { display: block; width: 22px; height: 22px; }
.attkb .attkb-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.attkb .attkb-title {
    color: var(--attkb-primary);
    font-size: clamp(27px, 3.3vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
    padding: 0;
    margin: 0;
}
/* KB hero matches the Elementor single-post Help Center hero:
   a sharp, cover-sized image behind a translucent frosted-glass PANEL.
   Blur only what is behind that panel, not the background image itself. */
.attkb .attkb-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    isolation: isolate;
    width: 100%;
    min-height: 350px;
    margin: 0 0 36px;
    text-align: center;
    background-color: #dfe7ed;
    background-image: var(--attkb-hero-image);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.attkb .attkb-hero-glass {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 350px;
    margin: 0 auto;
    padding: clamp(34px, 4.5vw, 58px) clamp(18px, 5vw, 64px);
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.attkb .attkb-hero-content {
    width: 100%;
    margin: 0 auto;
}
.attkb .attkb-hero .attkb-title {
    color: #24384D;
    text-shadow: 0 1px 10px rgba(255, 255, 255, .35);
}
.attkb .attkb-hero .attkb-subtitle {
    margin-left: auto;
    margin-right: auto;
    color: #344a5e;
}
.attkb .attkb-hero--search-only .attkb-hero-glass {
    min-height: 250px;
}
.attkb .attkb-subtitle {
    color: var(--attkb-muted);
    font-size: 15px;
    line-height: 1.65;
    max-width: 740px;
    margin-top: 10px;
    margin-bottom: 0;
}
.attkb-category-header { margin: 0 0 24px; }
.attkb-breadcrumbs {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 12px;
    color: var(--attkb-muted);
    margin: 0 0 17px;
}
.attkb-breadcrumbs a { color: var(--attkb-muted); }
.attkb-breadcrumbs a:hover { color: var(--attkb-primary); text-decoration: underline; }
.attkb-breadcrumbs span[aria-current] { color: var(--attkb-primary); font-weight: 650; }
.attkb-search {
    width: 100%;
    max-width: 780px;
    margin: 0 0 31px;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    background: #fff;
    border: 1px solid #cbd6df;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(25, 43, 58, .045);
    transition: border-color .18s ease, box-shadow .18s ease;
}
/* A translucent, frosted search surface above the blurred hero artwork. */
.attkb-search-home {
    margin: 30px auto 0;
    background: rgba(255, 255, 255, .80);
    border: 1px solid rgba(255, 255, 255, .88);
    box-shadow: 0 13px 36px rgba(16, 35, 52, .17);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    backdrop-filter: blur(14px) saturate(125%);
}
.attkb-hero--search-only .attkb-search-home { margin-top: 0; }
.attkb-hero .attkb-search:focus-within {
    border-color: #24384D;
    box-shadow: 0 0 0 2px rgba(36, 56, 77, .22), 0 13px 36px rgba(16, 35, 52, .16);
}

.attkb-search:focus-within { border-color: var(--attkb-primary); box-shadow: 0 0 0 3px rgba(36, 56, 77, .09); }
.attkb-search-icon { color: #7c8c99; margin-left: 19px; flex: 0 0 auto; }
.attkb-search-icon svg { width: 21px; height: 21px; }
.attkb-search input[type="search"] {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    outline: 0 !important;
    min-width: 0;
    flex: 1;
    padding: 16px 15px;
    height: auto;
    color: var(--attkb-body);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
}
.attkb-search input::placeholder { color: #8c9aa5; opacity: 1; }
.attkb-search button[type="submit"] {
    flex: 0 0 auto;
    appearance: none;
    border: 0;
    border-radius: 0px;
    background: var(--attkb-primary);
    color: #fff;
    cursor: pointer;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 5px;
    min-height: 42px;
    transition: background-color .18s ease;
}
.attkb-search button:hover { background: #334f6b; }
.attkb .attkb-section-heading { margin: 32px 0 17px; }
.attkb .attkb-section-heading h2 { color: var(--attkb-primary); font-size: clamp(20px, 2.5vw, 25px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 5px; padding: 0; }
.attkb .attkb-section-heading p { color: var(--attkb-muted); font-size: 14px; margin: 0; }
.attkb .attkb-section-heading-inner { margin-top: 25px; }
.attkb-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; align-items: stretch; }
.attkb-card {
    display: flex;
    flex-direction: column;
    background: var(--attkb-surface);
    border: 1px solid var(--attkb-border);
    border-radius: 0px;
    padding: 25px;
    min-width: 0;
    box-shadow: 0 2px 8px rgba(22, 42, 60, .018);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.attkb-card:hover { transform: translateY(-3px); border-color: rgba(36, 56, 77, .45); box-shadow: 0 12px 34px rgba(36, 56, 77, .09); }
.attkb-card-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.attkb-card-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex: 0 0 48px;
    color: var(--attkb-primary);
    background: var(--attkb-primary-soft);
    border-radius: 0px;
    transition: color .2s ease, background-color .2s ease;
}
.attkb-card:hover .attkb-card-icon { background: var(--attkb-primary); color: #fff; }
.attkb-card-icon svg { width: 24px; height: 24px; }
.attkb-card-head h3 { font-size: 19px; line-height: 1.3; font-weight: 650; margin: 0; padding: 0; letter-spacing: -.015em; overflow-wrap: anywhere; }
.attkb-card-head h3 a { color: var(--attkb-primary); }
.attkb-card-head h3 a:hover { text-decoration: underline; }
.attkb-card-description { font-size: 13.5px; color: var(--attkb-muted); line-height: 1.65; margin: 14px 0 0; }
.attkb-card-children { list-style: none !important; padding: 14px 0 0 !important; margin: 18px 0 0 !important; border-top: 1px solid var(--attkb-border); display: flex; flex-direction: column; gap: 3px; }
.attkb-card-children li { padding: 0 !important; margin: 0 !important; list-style: none !important; }
.attkb-card-children li a { display: flex; align-items: center; gap: 9px; width: 100%; color: #34495b; padding: 10px 9px; border-radius: 0px; font-size: 13.5px; font-weight: 500; transition: background-color .18s ease, color .18s ease; }
.attkb-card-children li a > span:first-child { color: #657b8e; flex: 0 0 auto; }
.attkb-card-children li a > span:first-child svg { width: 16px; height: 16px; }
.attkb-card-children li a > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.attkb-card-children li a:hover { color: var(--attkb-primary); background: var(--attkb-primary-hover); }
.attkb-child-chevron { opacity: .55; }
.attkb-child-chevron svg { width: 16px; height: 16px; }
.attkb-card-no-children { font-size: 13px; color: var(--attkb-muted); margin: 20px 0 0; }
.attkb-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-top: auto; padding-top: 20px; font-size: 13px; font-weight: 650; color: var(--attkb-primary); }
.attkb-card-footer svg { width: 16px; height: 16px; }
.attkb-card-footer:hover { text-decoration: underline; }
.attkb-card-children + .attkb-card-footer, .attkb-card-no-children + .attkb-card-footer { margin-top: auto; }
.attkb-rows { overflow: hidden; border: 1px solid var(--attkb-border); border-radius: 0px; background: #fff; }
.attkb .attkb-row { display: flex; align-items: center; gap: 15px; padding: 17px 19px; color: var(--attkb-body); min-height: 72px; transition: background-color .18s ease; }
.attkb .attkb-row + .attkb-row { border-top: 1px solid var(--attkb-border); }
.attkb .attkb-row:hover { background: var(--attkb-primary-hover); }
.attkb-row-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; background: var(--attkb-primary-soft); color: var(--attkb-primary); border-radius: 0px; }
.attkb-row-icon svg { width: 21px; height: 21px; }
.attkb-row-body { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 3px; }
.attkb-row-title { color: var(--attkb-primary); font-size: 14.5px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.attkb-row-desc { color: var(--attkb-muted); font-size: 12.5px; line-height: 1.5; }
.attkb-row-meta { color: #7d8a95; font-size: 11.5px; }
.attkb-row-arrow { color: #9baab6; margin-left: auto; flex: 0 0 auto; }
.attkb-row-arrow svg { width: 17px; height: 17px; }
.attkb-row:hover .attkb-row-arrow { color: var(--attkb-primary); }
.attkb-result-intro { margin: 0 0 19px; color: var(--attkb-muted); font-size: 14px; }
.attkb-empty { background: #f5f8fa; border: 1px dashed var(--attkb-border); color: var(--attkb-muted); font-size: 14px; padding: 22px; border-radius: 0px; }
.attkb-alert { padding: 15px; border: 1px solid #e1a7a7; border-radius: 0px; }
.attkb-pagination { margin: 22px 0 3px; display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--attkb-muted); font-size: 13px; }
.attkb-pagination a { color: var(--attkb-primary); font-weight: 650; }
.attkb-pagination a:hover { text-decoration: underline; }
.attkb a:focus-visible, .attkb button:focus-visible, .attkb input:focus-visible { outline: 2px solid #24384D !important; outline-offset: 3px; }
@media (max-width: 1024px) { .attkb-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) {
    .attkb-card-grid { grid-template-columns: 1fr; gap: 15px; }
    .attkb-card { padding: 21px; }
    .attkb-search button[type="submit"] { padding: 12px 15px; }
    .attkb-search input[type="search"] { padding: 13px 10px; font-size: 14px; }
    .attkb-search-icon { margin-left: 12px; }
    .attkb .attkb-row { gap: 11px; padding: 14px 12px; }
    .attkb-row-icon { width: 37px; height: 37px; flex-basis: 37px; }
}
@media (prefers-reduced-motion: reduce) {
    .attkb *, .attkb *::before, .attkb *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Explicitly override any theme/Elementor border radius within the KB. */
.attkb,
.attkb *,
.attkb *::before,
.attkb *::after {
    border-radius: 0px !important;
}

@media (max-width: 680px) {
    .attkb .attkb-hero { min-height: 320px; margin-bottom: 28px; padding: 0 12px; }
    .attkb .attkb-hero-glass { min-height: 320px; padding: 32px 16px; }
    .attkb .attkb-hero--search-only .attkb-hero-glass { min-height: 230px; }
    .attkb-hero .attkb-search-home { margin-top: 24px; }
    .attkb-hero--search-only .attkb-search-home { margin-top: 0; }
    .attkb-hero .attkb-search button[type="submit"] { margin: 4px; }
}

/* ============================================================
   1.0.4 — Consistent archive/search layout like KB single posts
   HERO IMAGE + FROSTED SEARCH → BREADCRUMBS → DIVIDER → CONTENT
   ============================================================ */
.attkb--search .attkb-hero,
.attkb--category .attkb-hero {
    margin-bottom: 0;
    min-height: 350px;
}
.attkb--search .attkb-hero-glass,
.attkb--category .attkb-hero-glass {
    min-height: 350px;
}
.attkb .attkb-hero-brand {
    color: #24384D;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: clamp(24px, 3.4vw, 43px);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.3;
    text-shadow: 0 1px 10px rgba(255, 255, 255, .35);
    overflow-wrap: anywhere;
}
.attkb .attkb-hero-brand strong { font-weight: 700; }
.attkb--search .attkb-search-home,
.attkb--category .attkb-search-home {
    margin: 26px auto 0;
}
.attkb .attkb-breadcrumb-band {
    width: 100%;
    border-bottom: 1px solid #e2e8ec;
    background: #fff;
    padding: 19px 16px;
}
.attkb .attkb-breadcrumb-band .attkb-content {
    max-width: 1200px;
    margin: 0 auto;
}
.attkb .attkb-breadcrumb-band .attkb-breadcrumbs {
    justify-content: start;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}
.attkb .attkb-main {
    padding-top: 38px;
    padding-bottom: 65px;
}
.attkb .attkb-main .attkb-page-title { margin: 0 0 24px; }
.attkb .attkb-main .attkb-category-header { margin: 0 0 26px; }
.attkb--search .attkb-result-intro { margin-top: 0; }
/* Comfortable side spacing where the 1200px content approaches viewport edges. */
@media (max-width: 1232px) {
    .attkb .attkb-main { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 680px) {
    .attkb--search .attkb-hero,
    .attkb--category .attkb-hero { min-height: 320px; margin-bottom: 0; }
    .attkb--search .attkb-hero-glass,
    .attkb--category .attkb-hero-glass { min-height: 320px; }
    .attkb .attkb-breadcrumb-band { padding: 15px 12px; }
    .attkb .attkb-main { padding-top: 26px; padding-bottom: 44px; }
    .attkb .attkb-hero-brand { letter-spacing: 0; }
    .attkb--search .attkb-search-home,
    .attkb--category .attkb-search-home { margin-top: 22px; }
}
