/* styles.css */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.black-section {
    flex: 1;
    min-height: 480px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 20px 40px;
    box-sizing: border-box;
    background-color: #f4f5f7;
}

.xagent-hero {
    text-align: center;
    color: #111;
}

.xagent-robot {
    display: block;
    width: 220px;
    height: 268px;
    margin: 0 auto;
}

.xagent-hero h1 {
    margin: 34px 0 0;
    font-size: 34px;
    line-height: 1.2;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 30px;
    background-color: #333;
    color: white;
    transition: background-color 0.3s;
}

.navbar:hover {
    background-color: #444;
}

.navbar .logo {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 3px;
}
.navbar .logo a {
    color: #fff;
    text-decoration: none;
 }

.navbar .hamburger-menu {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

.navbar .menu {
    display: flex;
    gap: 25px;
}

.navbar .menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.navbar .menu a:hover {
    background: #575757;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .navbar .menu {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    }

    .navbar .menu.active {
        display: flex;
    }

    .navbar .hamburger-menu {
        display: block;
    }
}

.content {
    padding: 20px 5px 50px;
    max-width: 1200px;
    margin: 0 auto;
    flex-grow: 1;
}

.content h1, .content h2 {
    color: #444;
}

.content p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 18px;
}
.article{
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px;
    background: white;
    border-radius: 5px;
}
.post-header {
    border-bottom: 2px solid #ddd;      
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.post-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 14px;
    color: #777;
}

.post-meta span {
    margin-right: 15px;}
    


.footer {
    background-color: #222;
    color: #ddd;
    padding: 40px 20px;
    font-size: 14px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    bottom: 0;
}

.footer .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 10px 0;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .footer .row {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
    }
}

.footer .column {
    margin: 10px 0;
    padding: 0 15px;
    max-width: 300px;
}

.footer .column h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.footer .column p, .footer .column a {
    color: #bbb;
    line-height: 1.6;
    text-decoration: none;
}

.footer .column a:hover {
    color: #0be6c1;
}


/* ===== Append this to the END of your style.css (nothing else is changed) ===== */

.black-section { align-items: center; padding-top: 40px; }

.bh-hero {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap-reverse;
    color: #222;
}

.bh-text { flex: 1 1 420px; }

.bh-hello {
    display: inline-block;
    background: #222;
    color: #0be6c1;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 16px;
}

.bh-text h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    line-height: 1.2;
    margin: 0 0 16px;
    color: #222;
}
.bh-name {
    color: #0a9c83;
    border-bottom: 4px solid #0be6c1;
}

.bh-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 20px;
    max-width: 560px;
}

.bh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bh-chips span {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 14px;
    transition: transform .2s, border-color .2s;
}
.bh-chips span:hover { transform: translateY(-3px) rotate(-2deg); border-color: #0be6c1; }

.black-section.blog-page {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
}

.blog-page .bh-hero {
    flex: 0 0 auto;
    justify-content: center;
}

.blog-posts {
    width: 100%;
    min-width: 0;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.blog-post {
    min-width: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}

.blog-title {
    margin: 0 0 5px;
    color: #222;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.blog-date {
    margin: 0 0 6px;
    color: #777;
    font-size: 10px !important;
}

.blog-read-more {
    color: #0a9c83;
    font-size: 12px;
    font-weight: bold;
}

@media (max-width: 520px) {
    .blog-posts-grid { grid-template-columns: 1fr; }
}

.bh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bh-btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #222;
    border: 2px solid #222;
    transition: transform .2s, background .2s, color .2s;
}
.bh-btn:hover { transform: translateY(-3px); background: #222; color: #fff; }
.bh-primary { background: #0be6c1; border-color: #0be6c1; }
.bh-primary:hover { background: #09c9a8; border-color: #09c9a8; color: #111; }

.bh-art { flex: 0 1 360px; width: 100%; }
.bh-art svg { width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
    .bh-art { margin-inline: auto; }
}

/* ---- SVG animations ---- */
.bh-float { animation: bh-float 3s ease-in-out infinite; }
@keyframes bh-float {
    0%, 100% { transform: translate(30px, 14px); }
    50%      { transform: translate(30px, 6px); }
}

.bh-eyes { transform-box: fill-box; transform-origin: center; animation: bh-blink 4s infinite; }
@keyframes bh-blink {
    0%, 92%, 100% { transform: scaleY(1); }
    96%           { transform: scaleY(0.1); }
}

.bh-sweat { animation: bh-sweat 2s ease-in infinite; }
@keyframes bh-sweat {
    0%   { transform: translateY(0);   opacity: 1; }
    80%  { transform: translateY(26px); opacity: 0; }
    100% { transform: translateY(26px); opacity: 0; }
}

.bh-bubble { transform-box: fill-box; transform-origin: bottom left; animation: bh-pop 3s ease-in-out infinite; }
@keyframes bh-pop {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06) rotate(-2deg); }
}

.bh-spark { transform-box: fill-box; transform-origin: center; animation: bh-twinkle 2s ease-in-out infinite; }
@keyframes bh-twinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

.tips-page {
    align-items: flex-start;
    padding: 48px 20px;
}

.tips-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.tips-header {
    margin-bottom: 28px;
}

.tips-eyebrow {
    margin: 0 0 8px;
    color: #0a9c83;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.tips-header h1 {
    margin: 0 0 8px;
    color: #222;
    font-size: clamp(28px, 4vw, 40px);
}

.tips-header > p:last-child {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.tips-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 20px;
}

.tips-search-label {
    width: 100%;
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.tips-search {
    flex: 1 1 260px;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font: inherit;
}

.tips-search:focus {
    border-color: #0a9c83;
    outline: 2px solid rgba(10, 156, 131, .2);
}

.tips-result-count {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tip-card {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

.tip-card[hidden] {
    display: none;
}

.tip-category {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e5f8f4;
    color: #087c69;
    font-size: 12px;
    font-weight: bold;
}

.tip-card h2 {
    margin: 0 0 8px;
    color: #222;
    font-size: 18px;
}

.tip-card > p {
    margin: 0 0 14px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.tip-card details {
    border-top: 1px solid #eee;
    padding-top: 12px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.tip-card summary {
    color: #0a9c83;
    cursor: pointer;
    font-weight: bold;
}

.tip-download {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #0be6c1;
    color: #222;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.tip-card ol {
    padding-left: 20px;
}

.tip-card code {
    max-width: 100%;
    padding: 2px 5px;
    border-radius: 4px;
    background: #f1f1f1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tips-empty {
    padding: 24px;
    color: #666;
    text-align: center;
}

@media (max-width: 800px) {
    .tips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
    .tips-page { padding: 32px 16px; }
    .tips-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .bh-float, .bh-eyes, .bh-sweat, .bh-bubble, .bh-spark { animation: none; }
}


/* ===== Append to the END of style.css ===== */

.sw-section { padding: 20px 20px 60px; }
.sw-wrap { max-width: 1200px; margin: 0 auto; }

.sw-head { text-align: center; margin-bottom: 32px; }
.sw-head h2 {
    display: inline-block;
    font-size: clamp(26px, 4vw, 36px);
    margin: 0;
    color: #222;
    border-bottom: 4px solid #0be6c1;
}
.sw-head p { margin: 12px 0 0; color: #666; font-size: 16px; }

.sw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---- card ---- */
.sw-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
    border-color: #0be6c1;
}

.sw-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.sw-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #222;
    color: #0be6c1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.sw-ver {
    background: #222;
    color: #0be6c1;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 999px;
}

.sw-card h3 { margin: 0 0 8px; font-size: 18px; color: #222; }
.sw-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #666; flex: 1; }

.sw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.sw-meta span {
    background: #f4f5f7;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    color: #555;
}
.sw-meta i { color: #0a9c83; }

/* ---- buttons ---- */
.sw-actions { display: flex; gap: 10px; }
.sw-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 2px solid #222;
    border-radius: 6px;
    color: #222;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: transform .2s, background .2s, color .2s;
}
.sw-btn:hover { transform: translateY(-2px); background: #222; color: #fff; }
.sw-dl { background: #0be6c1; border-color: #0be6c1; }
.sw-dl:hover { background: #09c9a8; border-color: #09c9a8; color: #111; }

/* ---- note strip ---- */
.sw-note {
    margin-top: 28px;
    background: #222;
    color: #ddd;
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sw-note i { color: #0be6c1; font-size: 28px; flex: none; }
.sw-note p { margin: 0; font-size: 14px; line-height: 1.6; }

/* ---- responsive ---- */
@media (max-width: 1000px) {
    .sw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .sw-section { padding: 10px 16px 48px; }
    .sw-grid { grid-template-columns: 1fr; }
}