/* ===== Base ===== */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: #f4f6f9;
    color: #2c3338;
    line-height: 1.5;
}

a { color: #1a6dc4; text-decoration: none; }
a:hover { color: #0d4a8c; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, #1f2d3d 0%, #2c4a6b 100%);
    color: #fff;
    padding: 18px 0;
    border-bottom: 4px solid #f5a623;
    margin-bottom: 32px;
}
/* Sticky on desktop only */
@media (min-width: 901px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
        box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    }
}
.site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    letter-spacing: .2px;
    text-decoration: none;
}
.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f5a623;
    color: #000;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(245,166,35,.35);
}
.logo__mark--sm { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.logo__text { font-size: 20px; line-height: 1; }
.logo__dot { color: #f5a623; }
/* Keep brand colors stable on hover (override generic a:hover). */
.logo,
.logo:hover,
.logo:focus { color: #fff; }
.logo:hover .logo__mark,
.logo:focus .logo__mark { background: #f5a623; color: #000; }
.logo:hover .logo__dot,
.logo:focus .logo__dot { color: #f5a623; }
.pg-gap { padding: 0 6px; color: #8a96a8; font-weight: 600; }

.site-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.site-nav a {
    color: #c8d4e3;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all .15s ease;
}
.site-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.site-nav a.active {
    background: #f5a623;
    color: #1f2d3d;
}

/* ===== Search toggle + panel ===== */
.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #c8d4e3;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
    background: #f5a623;
    color: #1f2d3d;
}
.search-panel {
    display: none;
    background: #1f2d3d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 20px;
    margin-top: 14px;
}
.search-panel.is-open {
    display: block;
    animation: searchSlide .18s ease-out;
}
@keyframes searchSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.search-form input[type="search"] {
    flex: 1;
    height: 40px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #1f2d3d;
}
.search-form input[type="search"]::placeholder { color: #9aa6b6; }
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f5a623;
    color: #1f2d3d;
    cursor: pointer;
    transition: background .15s;
}
.search-form button:hover { background: #ffb84a; }

/* ===== Block heading ===== */
.block-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e3e7ee;
    padding-bottom: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 8px;
}
.block-heading__title {
    margin: 0;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c3338;
}
.block-heading__title .first-word { color: #f5a623; }
.page-indicator {
    font-size: 13px;
    color: #6b7785;
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e3e7ee;
}

/* ===== Sub-category chip nav ===== */
.sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
}
.sub-chip {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5566;
    background: #f3f5f9;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sub-chip:hover {
    background: #ffe9c9;
    color: #8a4a00;
}
.sub-chip.active {
    background: #f5a623;
    color: #fff;
    box-shadow: 0 2px 6px rgba(245, 166, 35, .3);
}
.block-heading__sub {
    font-size: 14px;
    font-weight: 400;
    color: #6b7785;
    margin-left: 6px;
}

/* ===== Cards Grid ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 1100px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .cards-grid { grid-template-columns: 1fr; } }

/* ===== Two-column layout (main + sidebar) ===== */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
.layout-main { min-width: 0; }
@media (max-width: 1100px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
}

/* ===== Sidebar cards ===== */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.side-card {
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.side-card__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #1f2d3d;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f6;
}
.side-card__title .first-word { color: #f5a623; }
.side-card__empty { color: #6b7785; font-size: 13px; margin: 0; }

/* Explore Categories chips */
.side-cats__group {
    margin: 12px 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7785;
    font-weight: 700;
}
.side-cats__group:first-child { margin-top: 0; }
.side-cats__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Trending Now list */
.trending-list { list-style: none; margin: 0; padding: 0; }
.trending-item + .trending-item { border-top: 1px solid #eef1f6; }
.trending-link {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.trending-link:hover .trending-title { color: #f5a623; }
.trending-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 48px;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f5f9;
}
.trending-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trending-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trending-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2d3d;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trending-date {
    font-size: 11px;
    color: #8a96a8;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(20,30,50,0.06), 0 4px 10px rgba(20,30,50,0.04);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(20,30,50,0.12);
}

.card__thumb {
    position: relative;
    display: block;
    background: #eef1f5;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.card:hover .card__thumb img { transform: scale(1.04); }

.card__category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(31, 45, 61, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 4px 9px;
    border-radius: 4px;
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card__title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(15px * 1.35 * 2);
}
.card__title a { color: #1f2d3d; }
.card__title a:hover { color: #1a6dc4; }

.card__excerpt {
    margin: 0 0 12px;
    color: #5a6573;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #6b7785;
    border-top: 1px solid #f0f2f6;
    padding-top: 10px;
}
.meta-item b { color: #2c3338; }
.meta-date { color: #8a94a3; }

.author-link { color: inherit; }
.author-link:hover b { color: #1a6dc4; }

/* Author page */
.author-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(20,30,50,0.06), 0 4px 12px rgba(20,30,50,0.04);
    overflow: hidden;
    margin-bottom: 28px;
}
.author-card__top {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 26px;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef4fb 100%);
    border-bottom: 1px solid #e3e7ee;
    flex-wrap: wrap;
}
.author-card__head { flex: 1; min-width: 220px; }
.author-card__body { padding: 24px 26px 28px; }

.author-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a6dc4, #f5a623);
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26,109,196,0.25);
}
.author-name {
    margin: 0 0 4px;
    font-size: 26px;
    color: #1f2d3d;
}
.author-handle {
    margin: 0 0 10px;
    color: #6b7785;
    font-size: 13px;
}
.author-handle span { color: #1a6dc4; font-weight: 600; }
.author-tagline {
    margin: 0 0 14px;
    color: #2c3338;
    font-size: 15px;
    line-height: 1.5;
}
.author-facts {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #5a6573;
}
.author-facts strong { color: #1f2d3d; margin-right: 4px; }

.author-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dee3eb;
    color: #1a6dc4;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all .15s ease;
}
.chip-link:hover {
    background: #1a6dc4;
    border-color: #1a6dc4;
    color: #fff;
}

.author-bio {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.65;
    color: #2c3338;
}
.skills-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
    background: #f0f7ff;
    color: #1a6dc4;
    border: 1px solid #d6e6f7;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 640px) { .projects-list { grid-template-columns: 1fr; } }

.project-item {
    background: #f8fafc;
    border: 1px solid #e3e7ee;
    border-left: 4px solid #f5a623;
    border-radius: 8px;
    padding: 14px 16px;
}
.project-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #1f2d3d;
}
.project-item p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #5a6573;
    line-height: 1.55;
}
.project-tech {
    font-size: 11px;
    color: #8a94a3;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 36px 0 20px;
}
.pg-numbers { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.pg-btn, .pg-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    color: #2c3338;
    border: 1px solid #dee3eb;
    font-size: 14px;
    font-weight: 600;
    transition: all .15s ease;
}
.pg-num:hover, .pg-btn:hover {
    background: #1a6dc4;
    border-color: #1a6dc4;
    color: #fff;
}
.pg-num.current {
    background: #f5a623;
    border-color: #f5a623;
    color: #fff;
    cursor: default;
}
.pg-btn.disabled {
    pointer-events: none;
    opacity: .45;
}

/* Mobile pagination — keep prev / numbers / next on a single line.
 * Replace verbose "Previous" / "Next" text with arrow glyphs only and
 * tighten spacing so the whole row fits on a 360px-wide screen. */
@media (max-width: 560px) {
    .pagination { flex-wrap: nowrap; gap: 4px; margin: 28px 0 16px; }
    .pg-numbers { flex-wrap: nowrap; gap: 4px; overflow: hidden; }
    .pg-btn, .pg-num {
        min-width: 32px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
    /* Hide the words; keep the chevrons via ::before */
    .pg-prev { font-size: 0; padding: 0 10px; }
    .pg-next { font-size: 0; padding: 0 10px; }
    .pg-prev::before { content: "\00ab"; font-size: 16px; line-height: 1; }
    .pg-next::before { content: "\00bb"; font-size: 16px; line-height: 1; }
    .pg-gap { padding: 0 2px; }
}

/* ===== Misc ===== */
.error-box {
    background: #fff4f4;
    border: 1px solid #f4c7c7;
    color: #a52929;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.site-footer {
    margin-top: 56px;
    padding: 40px 0 24px;
    background: linear-gradient(135deg, #1f2d3d 0%, #2c4a6b 100%);
    color: #c8d4e3;
    font-size: 13px;
    border-top: 4px solid #f5a623;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 32px;
    align-items: flex-start;
}
.site-footer__col h5.site-footer__heading {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 14px;
    font-weight: 700;
}
.site-footer__col--brand .logo--footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #fff;
}
.site-footer__col--brand .logo__mark {
    background: #f5a623;
    color: #1f2d3d;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.site-footer__col--brand .logo__text { font-weight: 700; font-size: 16px; }
.site-footer__col--brand .logo__dot { color: #f5a623; }
.site-footer__intro {
    margin: 0;
    color: #9fb0c6;
    line-height: 1.55;
    max-width: 280px;
}
.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer__links li { margin-bottom: 8px; }
.site-footer__links a {
    color: #c8d4e3;
    text-decoration: none;
    transition: color .15s;
}
.site-footer__links a:hover { color: #f5a623; }
.site-footer__col--end { text-align: left; }
.site-footer__copy {
    margin: 0 0 14px;
    color: #9fb0c6;
    line-height: 1.5;
}
.site-footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}
.site-footer__social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: background .15s, color .15s;
}
.site-footer__social a:hover {
    background: #f5a623;
    color: #1f2d3d;
}
@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; text-align: left; }
}

/* About-wplocker info card on post page */
.about-card {
    background: #f6f8fa;
    border-left: 4px solid #f5a623;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 24px 0;
}
.about-card__title {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1f2d3d;
}
.about-card__brand { color: #1f2d3d; }
.about-card p { margin: 0 0 8px; line-height: 1.55; color: #2f3a48; font-size: 14px; }
.about-card__note { color: #5b6a7d; font-size: 13px; }

/* FAQ accordion */
.faqs { margin-top: 36px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    color: #1f2d3d;
    position: relative;
    padding-right: 42px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #f5a623;
    font-weight: 700;
    transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { background: #f6f8fa; }
.faq-a {
    padding: 8px 18px 16px;
    color: #2f3a48;
    line-height: 1.6;
}
.faq-a p { margin: 0; }

/* Static informational pages */
.static-page__header { margin-bottom: 18px; }
.static-page__lead {
    color: #5b6a7d;
    font-size: 15px;
    margin: 6px 0 0;
}
.static-page__body h2 {
    margin: 28px 0 10px;
    font-size: 18px;
    color: #1f2d3d;
}
.static-page__body p,
.static-page__body li {
    line-height: 1.65;
    color: #2f3a48;
}
.static-page__body ul { padding-left: 20px; }
.static-page__body a { color: #2c4a6b; text-decoration: underline; }
.static-page__body a:hover { color: #f5a623; }

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 28px;
    max-width: 560px;
}
.contact-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #1f2d3d; font-weight: 600; }
.contact-form input,
.contact-form textarea {
    border: 1px solid #d3dae3;
    border-radius: 5px;
    padding: 9px 11px;
    font: inherit;
    font-size: 14px;
    color: #1f2d3d;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.18);
}
.contact-form .btn { align-self: flex-start; }
.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.btn--primary {
    background: #f5a623;
    color: #1f2d3d;
}
.btn--primary:hover { background: #e2961a; }

/* Alerts */
.alert {
    padding: 11px 14px;
    border-radius: 5px;
    margin: 14px 0;
    font-size: 14px;
}
.alert--success { background: #e8f5ee; color: #1d6a3a; border: 1px solid #b6e0c6; }
.alert--error   { background: #fde8e8; color: #8a1f1f; border: 1px solid #f0b6b6; }

img.img-fail { object-fit: contain; padding: 10px; }

/* ===== Single post page ===== */
.back-link { margin: 0 0 14px; }
.back-link a {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #1a6dc4;
}

.breadcrumbs {
    background: #fff;
    border: 1px solid #e3e7ee;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #6b7785;
    margin-bottom: 18px;
}
.breadcrumbs .sep { margin: 0 6px; color: #b9c1cc; }
.breadcrumbs .crumb:last-child { color: #2c3338; font-weight: 600; }

.single {
    background: #fff;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 1px 2px rgba(20,30,50,0.06), 0 4px 12px rgba(20,30,50,0.04);
}
.single__title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.25;
    color: #1f2d3d;
}
.single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #6b7785;
    font-size: 13px;
    border-bottom: 1px solid #eef1f5;
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.single__hero {
    margin: 0 0 22px;
    text-align: center;
    background: #f4f6f9;
    border-radius: 8px;
    overflow: hidden;
}
.single__hero img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}
.single__description p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: #2c3338;
}

.section-title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 28px 0 14px;
    border-bottom: 2px solid #e3e7ee;
    padding-bottom: 8px;
}
.section-title .first-word { color: #f5a623; }

/* Downloads */
.demo-line {
    margin: 0 0 18px;
    padding: 10px 14px;
    background: #f0f7ff;
    border-left: 4px solid #1a6dc4;
    border-radius: 4px;
    font-size: 14px;
    word-break: break-all;
}
.demo-line strong { margin-right: 6px; color: #1f2d3d; }

.quote-box {
    background: #f7f8fa;
    border: 1px solid #e3e7ee;
    border-left: 4px solid #f5a623;
    border-radius: 6px;
    padding: 14px 16px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #2c3338;
    white-space: pre-wrap;
    word-break: break-all;
    user-select: text;
}
.quote-note {
    margin: 8px 2px 0;
    font-size: 12px;
    color: #8a94a3;
    font-style: italic;
}

.downloads .dl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.downloads .dl-list li {
    background: #f8fafc;
    border: 1px solid #e3e7ee;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    word-break: break-all;
    transition: background .15s ease;
}
.downloads .dl-list li:hover { background: #eef4fb; }

/* Related */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
    display: block;
    background: #f8fafc;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    padding: 14px 16px;
    color: inherit;
    transition: all .15s ease;
}
.related-card:hover {
    background: #fff;
    border-color: #1a6dc4;
    box-shadow: 0 4px 12px rgba(20,30,50,0.08);
}
.related-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.35;
    color: #1f2d3d;
}
.related-card p {
    margin: 0 0 8px;
    font-size: 12px;
    color: #5a6573;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #8a94a3;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ===== Hamburger (mobile) ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    gap: 4px;
}
.nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Mobile drawer ===== */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,22,33,0.55);
    z-index: 90;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.mobile-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86%;
    max-width: 320px;
    background: linear-gradient(160deg, #1f2d3d 0%, #2c4a6b 100%);
    color: #fff;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,.0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-drawer__close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.mobile-drawer__close:hover { background: #f5a623; color: #1f2d3d; }
.mobile-drawer__search {
    margin: 18px;
    padding: 4px 4px 4px 16px;
    box-shadow: none;
}
.mobile-drawer__search input[type="search"] { height: 36px; font-size: 14px; }
.mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 6px 12px 24px;
    gap: 2px;
}
.mobile-drawer__nav a {
    display: block;
    padding: 13px 16px;
    color: #d8e0ec;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.mobile-drawer__nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-drawer__nav a.active { background: #f5a623; color: #1f2d3d; }
body.no-scroll { overflow: hidden; }

/* Mobile breakpoint: show hamburger, hide desktop nav */
@media (max-width: 900px) {
    .site-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header__row { flex-wrap: nowrap; }
    .search-panel { display: none !important; }
}

/* Post-page editorial extras */
.post-extras { margin-top: 32px; }
.post-extras .section-title { margin-top: 26px; }
.post-extras p { line-height: 1.65; color: #2f3a48; margin: 0 0 12px; }
.post-extras a { color: #2c4a6b; text-decoration: underline; }
.post-extras a:hover { color: #f5a623; }
