/* ==========================================================================
   PakResult — design system
   Faithful to gp-jobs theme: light + green (#1db37e), Lexend Deca, 1200px
   ========================================================================== */

:root {
    --brand:        #1db37e;
    --brand-hover:  #1c976c;
    --brand-dark:   #0f7a56;
    --text-1:       #1d1d1d;
    --text-2:       #383838;
    --text-muted:   #64748b;
    --link:         #2e67d9;
    --border:       #e4e4e4;
    --bg:           #ffffff;
    --bg-soft:      #f5f7fa;
    --bg-hero-a:    #12b886;
    --bg-hero-b:    #0ca678;

    --status-new:      #3fa355;
    --status-updated:  #0088cc;
    --status-extended: #7b5bba;

    --radius:   10px;
    --radius-sm: 6px;
    --shadow:  0 1px 4px rgba(0,0,0,.10);
    --shadow-md: 0 6px 18px rgba(0,0,0,.08);
    --container: 1200px;

    --font: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2);
    background: var(--bg-soft);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--brand-hover); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--text-1); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 28px; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---- Announcement bar ---- */
.announce-bar {
    background: var(--brand-dark); color: #fff; text-align: center;
    font-size: 14px; padding: 7px 16px;
}

/* ---- Header / nav ---- */
.site-header {
    background: #fff; box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand-text { font-size: 25px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }
.brand-img { max-height: 42px; }

.main-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.main-nav a {
    color: var(--text-1); font-weight: 500; font-size: 15.5px;
    padding: 10px 16px; border-radius: var(--radius-sm); display: block;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--brand); }

/* ---- Ad slots ---- */
.ad-slot { margin: 22px 0; text-align: center; overflow: hidden; }
.ad-slot ins, .ad-slot img { margin: 0 auto; }

/* ---- Subscribe widget ---- */
.subscribe-box { padding: 16px; }
.subscribe-box p { margin: 0 0 12px; font-size: 14px; color: var(--text-muted); }
.subscribe-box input, .subscribe-box select {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font: inherit; font-size: 14px; margin-bottom: 8px; background: #fff;
}
.subscribe-box button {
    width: 100%; background: var(--brand); color: #fff; border: 0; padding: 11px;
    border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; font-size: 14.5px;
}
.subscribe-box button:hover { background: var(--brand-hover); }
.subscribe-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---- Contact form ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-field input, .form-field textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font: inherit; font-size: 15px; background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px #dcfce7; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-msg { padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.form-msg.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.form-msg.err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

.nav-search { display: flex; align-items: center; }
.nav-search input {
    border: 1px solid var(--border); border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 8px 12px; font: inherit; font-size: 14px; width: 170px; outline: none;
}
.nav-search input:focus { border-color: var(--brand); }
.nav-search button {
    background: var(--brand); color: #fff; border: 0; cursor: pointer;
    padding: 9px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex; align-items: center;
}
.nav-search button:hover { background: var(--brand-hover); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-1); margin: 5px 0; transition: .3s; }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(120deg, var(--bg-hero-a), var(--bg-hero-b));
    color: #fff; padding: 54px 0 46px; text-align: center;
}
.hero h1 { color: #fff; font-size: 34px; font-weight: 800; margin-bottom: 22px; }
.hero-search { max-width: 620px; margin: 0 auto; display: flex; }
.hero-search input {
    flex: 1; border: 0; padding: 15px 20px; font: inherit; font-size: 16px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm); outline: none;
}
.hero-search button {
    background: #1f2937; color: #fff; border: 0; padding: 0 24px; cursor: pointer;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 18px;
}
.hero-search button:hover { background: #111827; }

/* ---- Featured chips card ---- */
.featured-wrap {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
    margin: -30px auto 0; padding: 22px; position: relative; z-index: 5;
}
.chips-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.chip {
    color: #fff; font-weight: 600; font-size: 14px; line-height: 1.35;
    padding: 16px 18px; border-radius: var(--radius-sm); min-height: 70px;
    display: flex; align-items: center; transition: transform .15s, box-shadow .15s;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }

/* ---- Category icon grid ---- */
.section { padding: 36px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 14px; text-align: center; transition: .18s;
}
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cat-card .cat-icon {
    width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    background: var(--bg-soft);
}
.cat-card .cat-name { color: var(--text-1); font-weight: 600; font-size: 15px; }

/* ---- Join WhatsApp / Telegram ---- */
.join-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 4px; }
.join-box {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: #fff; border: 2px solid transparent; border-radius: var(--radius);
    padding: 16px 22px;
}
.join-box .join-label { font-weight: 700; color: var(--text-1); font-size: 17px; }
.join-box .join-btn {
    color: #fff; font-weight: 700; padding: 9px 22px; border-radius: 40px; font-size: 14px;
}
.join-wa { box-shadow: var(--shadow); animation: waBorder 1.4s infinite; }
.join-wa .join-btn { background: #25d366; }
.join-tg { box-shadow: var(--shadow); animation: tgBorder 1.4s infinite; }
.join-tg .join-btn { background: #027ebd; }
@keyframes waBorder { 0%,100% { border-color: transparent; } 50% { border-color: #25d366; } }
@keyframes tgBorder { 0%,100% { border-color: transparent; } 50% { border-color: #0086ce; } }

/* ---- Multi-column category boxes ---- */
.boxes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-box .box-head {
    background: linear-gradient(120deg, var(--bg-hero-a), var(--bg-hero-b));
    color: #fff; font-weight: 700; font-size: 16px; padding: 12px 18px;
    display: flex; align-items: center; gap: 8px;
}
.info-box ul { list-style: none; margin: 0; padding: 8px 0; }
.info-box li { border-bottom: 1px dashed var(--border); padding: 10px 18px; }
.info-box li:last-child { border-bottom: 0; }
.info-box li a { color: var(--text-1); font-weight: 500; font-size: 15px; display: block; }
.info-box li a:hover { color: var(--brand); }
.info-box .meta-line { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 12px; }
.box-foot { padding: 12px 18px; }
.box-foot a { color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---- Status badge ---- */
.status-badge {
    display: inline-block; background: color-mix(in srgb, var(--badge) 15%, #fff);
    color: var(--badge); font-size: 12px; font-weight: 600;
    padding: 2px 10px; border-radius: 20px; line-height: 1.6;
}

/* ---- Layout with sidebar ---- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; padding: 30px 0; }
.sidebar > .widget { margin-bottom: 26px; }
.widget {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.widget .widget-head {
    background: linear-gradient(120deg, var(--bg-hero-a), var(--bg-hero-b));
    color: #fff; font-weight: 700; padding: 11px 16px; font-size: 15px;
}
.widget ul { list-style: none; margin: 0; padding: 6px 0; }
.widget li { padding: 9px 16px; border-bottom: 1px dashed var(--border); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--text-1); font-weight: 500; font-size: 14.5px; }
.widget li a:hover { color: var(--brand); }

.sticky-side { position: sticky; top: 88px; }

/* ---- Single post ---- */
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.post-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.post-title { font-size: 27px; margin: 12px 0 14px; }
.post-meta { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: 14px; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 20px; }
.post-body { font-size: 16.5px; }
.post-body h2, .post-body h3 { margin-top: 1.4em; }
.post-body img { border-radius: var(--radius-sm); margin: 18px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.post-body th { background: var(--bg-soft); }

/* ---- Job details card (from theme) ---- */
.job-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 26px 0; background: #fff; }
.job-card-head {
    background: linear-gradient(120deg, var(--bg-hero-a), var(--bg-hero-b));
    color: #fff; padding: 15px 18px; font-size: 20px; font-weight: 700;
    display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
}
.job-card-desc { padding: 15px 18px; background: #edfaff; border-left: 4px solid var(--brand); color: var(--text-2); }
.job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 24px 18px; }
.job-item { display: flex; gap: 14px; align-items: flex-start; }
.job-item .ic { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.job-item .lbl { font-size: 13.5px; color: var(--text-muted); }
.job-item .val { font-weight: 700; font-size: 17px; color: #1e293b; }
.ic-blue   { background: #dbeafe; color: #2563eb; }
.ic-purple { background: #ede9fe; color: #7c3aed; }
.ic-pink   { background: #fce7f3; color: #db2777; }
.ic-green  { background: #dcfce7; color: #16a34a; }
.ic-orange { background: #ffedd5; color: #ea580c; }
.job-apply { padding: 0 18px 22px; text-align: center; }
.btn-apply {
    display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: #fff;
    padding: 12px 56px; border-radius: 50px; font-weight: 700; font-size: 16px;
    box-shadow: 0 4px 10px rgba(29,179,126,.3);
}
.btn-apply:hover { background: var(--brand-hover); color: #fff; }

/* ---- Important links table ---- */
.links-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.links-table .lt-head { background: var(--brand-dark); color: #fff; text-align: center; font-weight: 700; padding: 12px; }
.links-table .lt-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px dashed var(--border); gap: 16px; }
.links-table .lt-row:last-child { border-bottom: 0; }
.links-table .lt-label { font-weight: 600; color: var(--text-1); }
.btn-link { background: var(--brand); color: #fff; padding: 7px 20px; border-radius: 40px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.btn-link:hover { background: var(--brand-hover); color: #fff; }

/* ---- Social share ---- */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.share-row a { flex: 1; min-width: 110px; text-align: center; color: #fff; font-weight: 600; font-size: 14px; padding: 10px; border-radius: var(--radius-sm); }
.sh-fb { background: #3b5998; } .sh-tw { background: #111; } .sh-wa { background: #25d366; } .sh-tg { background: #027ebd; }

/* ---- Related / list cards ---- */
.post-list-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.post-list-item h3 { margin: 0 0 6px; font-size: 17px; }
.post-list-item h3 a { color: var(--text-1); }
.post-list-item h3 a:hover { color: var(--brand); }
.post-list-item .meta-line { display: flex; gap: 14px; font-size: 13px; color: var(--text-muted); }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-1); font-weight: 600; background: #fff;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .gap { border: 0; background: none; }

/* ---- SEO block ---- */
.seo-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 8px; color: var(--text-2); }
.seo-block h2 { font-size: 21px; }

/* ---- Footer ---- */
.site-footer { background: #14231d; color: #b9c6c0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 46px 20px 30px; }
.footer-brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #b9c6c0; font-size: 14.5px; }
.footer-col a:hover { color: var(--brand); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { color: #fff; font-weight: 600; font-size: 13px; padding: 7px 16px; border-radius: 40px; }
.chip-wa { background: #25d366; } .chip-tg { background: #027ebd; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13.5px; text-align: center; }

/* ---- Back to top ---- */
.to-top {
    position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand); color: #fff; border: 0; font-size: 20px; cursor: pointer;
    opacity: 0; visibility: hidden; transition: .25s; z-index: 90; box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---- Comment / misc ---- */
.author-box { display: flex; gap: 16px; background: var(--bg-soft); border-radius: var(--radius); padding: 18px; margin: 24px 0; }
.author-box .avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex-shrink: 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .chips-grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .boxes-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sticky-side { position: static; }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; left: -100%; width: 80%; max-width: 320px; height: 100vh;
        background: #fff; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        padding: 70px 16px 20px; box-shadow: var(--shadow-md); transition: left .28s; z-index: 200; overflow-y: auto;
    }
    .main-nav.open { left: 0; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 12px; border-bottom: 1px solid var(--border); }
    .nav-search { margin-top: 14px; }
    .nav-search input { width: 100%; }
    body.nav-open { overflow: hidden; }
    .chips-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .boxes-grid, .join-row, .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 26px; }
    .featured-wrap { margin-top: -18px; }
}
@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
    .chips-grid { grid-template-columns: 1fr 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
}
