/*
 * JTECH SmartCall Messenger Help Center
 * Stylesheet reorganized for readability and future maintenance.
 * Original selectors and styles preserved unless noted in section 13.
 * CSS works independently of the PHP 5.6 version.
 */

/* ========== 01. BASE, LAYOUT AND SITE HEADER ========== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f6f8fb;
    color: #172b44;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

button,input,textarea,select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1140px,calc(100% - 40px));
    margin: auto;
}

.topbar {
    background: white;
    border-bottom: 1px solid #e6ebf1;
}

.bar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    width: 132px;
    height: 56px;
    object-fit: contain;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.toplabel {
    font-weight: 650;
    font-size: 14px;
}

.adminlink {
    font-size: 13px;
    color: #49637c;
}

.adminlink:hover {
    text-decoration: underline;
}


/* ========== 02. HERO AND SEARCH ========== */
.hero {
    background: linear-gradient(120deg,#142c49,#204f75);
    color: white;
}

.hero-inner {
    text-align: center;
    padding: 68px 0 76px;
}

.eyebrow,.kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

.eyebrow {
    color: #b5d3e8;
}

h1,h2,h3,p {
    margin-top: 0;
}

.hero h1 {
    font-size: clamp(32px,5vw,52px);
    line-height: 1.15;
    margin: 15px 0;
}

.hero p {
    color: #dbe8f2;
    font-size: 16px;
}

.searchbox {
    margin: 30px auto 0;
    max-width: 655px;
    background: white;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 12px;
    padding: 0 18px;
    box-shadow: 0 14px 38px #08192b42;
}

.searchbox svg {
    width: 21px;
    stroke: #64788c;
    stroke-width: 2;
    fill: none;
}

.searchbox input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 18px 0;
    color: #172b44;
    background: none;
}


/* ========== 03. CONTENT, FILTERS AND CARDS ========== */
.content {
    padding: 55px 0 70px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.kicker {
    color: #486e90;
}

.section-head h2,.contact h2 {
    font-size: 28px;
    margin: 8px 0;
}

.section-head p {
    color: #6b7c8e;
}

.result-count {
    color: #667a8c;
    font-size: 13px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0 25px;
}

.filter {
    border: 1px solid #dbe3ed;
    background: white;
    padding: 9px 16px;
    border-radius: 99px;
    color: #3a5873;
    font-size: 13px;
}

.filter:hover,.filter.active {
    background: #204f75;
    border-color: #204f75;
    color: white;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    border: 1px solid #e5ebf1;
    background: white;
    padding: 24px;
    border-radius: 15px;
    box-shadow: 0 4px 12px #172b4408;
    transition: transform .15s,box-shadow .15s;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 25px #172b4418;
}

.resource-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e9f2f8;
    color: #225c85;
    font-weight: 750;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
}

.resource-type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #5c7490;
    font-weight: 700;
}

.resource-card h3 {
    font-size: 18px;
    margin: 8px 0;
}

.resource-card p {
    font-size: 13px;
    color: #6c7b8d;
    flex: 1;
}

.resource-action {
    font-size: 13px;
    font-weight: 700;
    color: #195e91;
}

.resource-card[hidden],.empty[hidden] {
    display: none;
}

.empty {
    text-align: center;
    background: white;
    border: 1px dashed #cbd9e5;
    padding: 44px 24px;
    border-radius: 16px;
}

.empty h3 {
    margin: 7px 0;
}

.empty p {
    color: #6b7c8e;
    margin: 0;
}

.empty-icon {
    font-size: 34px;
    color: #46728e;
}

.initial-empty {
    margin-top: 15px;
}


/* ========== 04. CONTACT AND FOOTER ========== */
.contact {
    margin-top: 42px;
    padding: 32px 36px;
    border-radius: 17px;
    background: #e7eff6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.contact p {
    margin: 0;
    color: #596c7f;
    font-size: 14px;
}

.contact-button,.primary-button {
    display: inline-block;
    border: 0;
    border-radius: 9px;
    padding: 12px 18px;
    color: white;
    background: #204f75;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.contact-button:hover,.primary-button:hover {
    background: #153c5d;
}

footer {
    background: white;
    border-top: 1px solid #e5ebf1;
}

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 75px;
    color: #788797;
    font-size: 12px;
}


/* ========== 05. ADMINISTRATION STYLES ========== */
.adminmain {
    padding-top: 45px;
    padding-bottom: 65px;
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 25px;
}

.admin-heading h1,.login-card h1 {
    margin: 8px 0;
    font-size: 30px;
}

.admin-heading p,.login-card p {
    color: #65788c;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(280px,430px) minmax(350px,1fr);
    gap: 20px;
    align-items: start;
}

.panel,.login-card {
    background: white;
    border: 1px solid #e2e9f0;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 5px 18px #132b4510;
}

.panel h2 {
    font-size: 18px;
    margin-bottom: 18px;
}

.panel label,.login-card label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    color: #3b526b;
    margin: 14px 0 6px;
}

.panel input:not([type=checkbox]),.panel textarea,.panel select,.login-card input {
    border: 1px solid #ccd7e1;
    border-radius: 8px;
    width: 100%;
    padding: 10px;
    background: white;
    color: #172b44;
}

.panel input:focus,.panel textarea:focus,.panel select:focus {
    outline: 2px solid #9bc1dc;
}

.panel .checklabel {
    display: flex;
    align-items: center;
    gap: 9px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.secondary-button,.danger-button {
    background: #fff;
    border: 1px solid #cad8e3;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 13px;
    color: #385b78;
}

.danger-button {
    color: #a83838;
    border-color: #ebc8c8;
}

.resource-admin-list {
    display: flex;
    flex-direction: column;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f4;
}

.admin-item strong {
    font-size: 14px;
}

.mini-meta {
    font-size: 12px;
    color: #7a8895;
    margin-top: 3px;
}

.published {
    color: #25764b;
}

.item-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.muted {
    color: #8999a7;
    font-weight: 400;
}

.login-card {
    max-width: 430px;
    margin: 50px auto;
}

.login-card button {
    margin-top: 20px;
    width: 100%;
}

.alert {
    background: #e4f5e8;
    color: #24673a;
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 9px;
    font-size: 13px;
}

.alert.error {
    background: #ffeded;
    color: #943333;
}


/* ========== 06. ORIGINAL RESPONSIVE BREAKPOINTS ========== */
@media (max-width:760px) {
    .container {
        width: min(100% - 30px,1140px);
    }
    .toplabel {
        display: none;
    }
    .hero-inner {
        padding: 53px 0 58px;
    }
    .content {
        padding-top: 38px;
    }
    .cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .contact {
        flex-direction: column;
        align-items: start;
    }
    .section-head {
        align-items: start;
        flex-direction: column;
    }
    .foot {
        flex-direction: column;
        align-items: start;
        justify-content: center;
        padding: 17px 0;
    }
}

@media (max-width:520px) {
    .cards {
        grid-template-columns: 1fr;
    }
    .resource-card {
        min-height: 190px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .section-head h2 {
        font-size: 24px;
    }
    .contact {
        padding: 25px;
    }
    .admin-item {
        flex-direction: column;
    }
    .bar {
        min-height: 68px;
    }
    .logo {
        width: 113px;
        height: auto;
    }
}


/* ========== 07. ARTICLE LAYOUT ========== */
.article-wrap {
    padding-top: 46px;
    padding-bottom: 75px;
    max-width: 940px;
}

.article-panel {
    background: white;
    border: 1px solid #e5ebf2;
    border-radius: 18px;
    padding: clamp(22px,5vw,54px);
    margin-top: 24px;
    box-shadow: 0 12px 40px rgba(18,39,60,.06);
}

.article-panel h1 {
    font-size: clamp(27px,4vw,44px);
    color: #17314a;
}


/* ========== 11. GUIDES, FAQs AND WELCOME ========== */
.article-text {
    white-space: normal;
    line-height: 1.9;
    color: #35475a;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.archive-note {
    background: #fff8ec;
    border: 1px solid #f0d5a4;
    color: #624710;
    border-radius: 12px;
    padding: 16px 19px;
    margin: 24px 0;
}

.archive-note p {
    margin: 8px 0 0;
}

.legacy-note {
    margin-top: 28px;
    border-top: 1px solid #dce4ed;
    padding-top: 15px;
    color: #44576b;
}

/* Editorial navigation and article typography */

.main-nav {
    background: #173b5c;
    color: #fff;
    border-bottom: 1px solid #234a6b;
}

.nav-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 15px 17px;
    color: #fff;
    font-weight: 650;
    font-size: 12px;
    white-space: nowrap;
    border-right: 1px solid #ffffff1c;
}

.main-nav a:hover,.main-nav a:focus-visible {
    background: #295a7f;
}

.article-panel h1 {
    line-height: 1.18;
    margin-bottom: 25px;
}

.article-text {
    font-size: 15px;
    line-height: 1.72;
    max-width: 78ch;
}

.article-text h2 {
    font-size: 23px;
    line-height: 1.3;
    margin: 30px 0 12px;
    color: #193c58;
    padding-top: 6px;
    border-top: 1px solid #edf1f5;
}

.article-text h3 {
    font-size: 19px;
    margin: 24px 0 10px;
}

.article-text h4 {
    font-size: 16px;
    margin: 20px 0 7px;
}

.article-text p {
    margin: 0 0 15px;
}

.article-text strong {
    font-weight: 750;
    color: #19354e;
}

.article-text ul {
    padding-left: 24px;
    margin: 0 0 19px;
}

.article-text li {
    padding: 3px 0;
}

.article-text a {
    color: #17659d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-panel {
    padding: clamp(22px,4vw,48px);
}

.archive-note {
    font-size: 14px;
    line-height: 1.5;
}

.article-wrap {
    max-width: 1010px;
}

.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 9px;
}

@media (max-width:760px) {
    .main-nav a {
        padding: 13px 15px;
    }
    .article-panel {
        border-radius: 12px;
    }
}

.article-text .media-frame {
    position: relative;
    width: 100%;
    max-width: 820px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #e8f1f8;
    margin: 18px 0 8px;
}

.article-text .media-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-text img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
}

.article-text a {
    overflow-wrap: anywhere;
}

.article-text strong {
    font-weight: 750;
}

.article-text p {
    margin-bottom: 16px;
}

.article-text h2,.article-text h3 {
    color: #183951;
}

.article-text h2 {
    margin: 32px 0 12px;
}

.article-text table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

.article-text .browser-update {
    padding: 18px;
    border: 1px solid #d7e4ef;
    border-radius: 10px;
    background: #f8fafc;
}

/* v3: comfortable reading proportions on desktop and mobile */

.article-wrap {
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.article-panel {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.article-text {
    max-width: 78ch;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.article-text p,.article-text li {
    line-height: 1.85;
    margin: 0 0 1rem;
}

.article-text h2 {
    font-size: 1.55rem;
    line-height: 1.35;
    margin: 2.15rem 0 .85rem;
    color: #17324e;
    font-weight: 750;
}

.article-text h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 1.65rem 0 .65rem;
    color: #17324e;
    font-weight: 700;
}

.article-text strong,.article-text b {
    font-weight: 750;
    color: #162e46;
}

.article-text iframe {
    display: block;
    max-width: 100%;
    width: 100%;
    min-height: 380px;
    border: 0;
    border-radius: 10px;
}

.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.article-text ul,.article-text ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.article-text a {
    color: #175587;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-text hr {
    border: 0;
    border-top: 1px solid #dce5ed;
    margin: 1.8rem 0;
}

@media (max-width:700px) {
    .article-panel {
        padding: 22px 18px;
    }
    .article-text {
        font-size: 15px;
    }
    .article-text iframe {
        min-height: 220px;
    }
}

/* v3.1 content restored: accessible document hierarchy, no unformatted text walls */

.article-text {
    font-size: 16px;
    line-height: 1.72;
    max-width: 78ch;
    white-space: normal;
}

.article-text .guide-intro {
    padding: 20px 24px;
    background: #f3f7fb;
    border-left: 4px solid #265f88;
    border-radius: 9px;
    margin: 16px 0 28px;
}

.article-text .guide-intro h2 {
    margin: 0 0 12px;
    border: 0;
    padding: 0;
}

.article-text .guide-section {
    padding: 4px 0 16px;
    border-bottom: 1px solid #e6edf4;
    margin-bottom: 12px;
}

.article-text .guide-section h2 {
    border-top: 0;
    padding: 0;
    margin: 27px 0 12px;
    font-size: 23px;
}

.article-text .step-list {
    list-style: none;
    counter-reset: steps;
    padding: 0;
    margin: 14px 0 20px;
}

.article-text .step-list li {
    position: relative;
    padding: 12px 15px 12px 54px;
    margin: 8px 0;
    background: #f7f9fc;
    border: 1px solid #e3ebf2;
    border-radius: 9px;
    line-height: 1.55;
    counter-increment: steps;
}

.article-text .step-list li:before {
    content: counter(steps);
    position: absolute;
    left: 15px;
    top: 13px;
    width: 25px;
    height: 25px;
    background: #e2eff8;
    color: #1a5278;
    border-radius: 100%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: bold;
}

.article-text .faq-intro {
    margin-bottom: 25px;
    color: #4b637a;
}

.article-text .faq-item {
    padding: 18px 0 22px;
    border-bottom: 1px solid #e2eaf0;
}

.article-text .faq-item h2 {
    font-size: 18px;
    line-height: 1.4;
    border: 0;
    padding: 0;
    margin: 0 0 12px;
    font-weight: 750;
    color: #1d3c57;
}

.article-text .faq-answer {
    font-size: 15px;
    line-height: 1.75;
    color: #3d5369;
    margin: 0 0 8px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.article-text .faq-answer a {
    color: #145d91;
    font-weight: 650;
}

.article-text .resource-download {
    padding: 20px 24px;
    background: #edf5fb;
    border: 1px solid #d3e5f2;
    border-radius: 12px;
    margin: 24px 0;
}

.article-text .resource-download p {
    font-size: 14px;
    margin: 8px 0;
}

.article-text .resource-link {
    margin: 18px 0;
}

.article-text .media-frame {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
}

.welcome-section {
    padding-top: 36px;
}

.welcome-copy {
    background: white;
    border: 1px solid #e2eaf2;
    border-radius: 16px;
    padding: 34px 40px;
    max-width: 100%;
}

.welcome-copy h2 {
    font-size: clamp(24px,3vw,32px);
    line-height: 1.25;
    margin: 12px 0 16px;
}

.welcome-copy p {
    max-width: 78ch;
    color: #4c6174;
    line-height: 1.7;
    margin: 0 0 12px;
}

@media (max-width:600px) {
    .welcome-copy {
        padding: 24px 20px;
    }
    .article-text .step-list li {
        padding-left: 49px;
    }
}

.article-text ol:not(.step-list) {
    counter-reset: guide;
    list-style: none;
    padding: 0;
    margin: 16px 0 25px;
}

.article-text ol:not(.step-list)>li {
    counter-increment: guide;
    position: relative;
    padding: 12px 16px 12px 52px;
    background: #f7f9fc;
    border: 1px solid #e4ebf2;
    border-radius: 9px;
    margin: 9px 0;
    line-height: 1.65;
}

.article-text ol:not(.step-list)>li:before {
    content: counter(guide);
    position: absolute;
    left: 14px;
    top: 12px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #e2eff8;
    color: #1b527a;
    font-size: 13px;
    font-weight: bold;
    display: grid;
    place-items: center;
}

.article-text code {
    background: #edf3f8;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: .9em;
}

.welcome-copy a {
    color: #1b5d88;
    text-decoration: underline;
}

/* Automatic manuals library */


/* ========== 12. DOCUMENTS AND MANUAL LIBRARY ========== */
.manuals-cta {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #d9e4ee;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #f5f9fd;
}

.manuals-cta h2 {
    margin: .3rem 0;
}

.manuals-cta p {
    margin: .3rem 0;
}

.manual-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.manual-list li {
    margin: 0 0 .75rem;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
}

.manual-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.2rem;
    text-decoration: none;
}

.manual-list a:hover {
    background: #f5f9fd;
}

.manual-list span {
    font-size: .875rem;
}

/* ========== 13. COMPACT HERO: REQUESTED ADJUSTMENT ========== */
/*
 * The hero spacing is controlled by .hero-inner (not .hero).
 * These rules override the original 68px / 76px padding.
 * Adjust only the values below if you want a taller or shorter banner.
 */
.hero-inner {
    padding: 30px 0 35px;
}

.hero h1 {
    margin: 10px 0;
}

.hero p {
    margin-bottom: 10px;
}

.searchbox {
    margin-top: 18px;
}

/* Slightly tighter hero on narrow screens. */
@media (max-width: 760px) {
    .hero-inner {
        padding: 28px 0 32px;
    }
}
