/*
 * EVS Grid — AIDEN publisher-php design (Oct 2026)
 * Original stylesheet for the job.evsbuzz.com-style magazine layout.
 * Loaded after the SmartMag base styles; every rule is scoped to body.design-evs so the
 * file is inert on any page that does not opt in.
 */

body.design-evs {
    --evs-main: #2ab391;
    --evs-main-dark: #208f74;
    --evs-text: #161616;
    --evs-muted: #595959;
    --evs-meta: #8a8a8a;
    --evs-line: #e8e8e8;
    --evs-soft: #f7f7f7;
    --evs-card: #fff;
    --evs-bg: #fff;
    --evs-footer: #000;
    --evs-width: 1200px;
    font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--evs-text);
    background: var(--evs-bg);
}
body.design-evs.scheme-dark {
    --evs-text: #f2f2f2;
    --evs-muted: #c4c4c4;
    --evs-meta: #9a9a9a;
    --evs-line: #2b2b2b;
    --evs-soft: #171717;
    --evs-card: #121212;
    --evs-bg: #0b0b0b;
}

body.design-evs h1, body.design-evs h2, body.design-evs h3, body.design-evs h4, body.design-evs h5,
body.design-evs .post-title, body.design-evs .post-title a {
    font-family: "Public Sans", system-ui, sans-serif;
    color: var(--evs-text);
}
body.design-evs a { color: inherit; }
body.design-evs a:hover { color: var(--evs-main); }

body.design-evs .container,
body.design-evs .wrap {
    max-width: var(--evs-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ---------- Header ---------- */
body.design-evs .smart-head-main {
    background: var(--evs-card);
    border-bottom: 1px solid var(--evs-line);
    box-shadow: 0 3px 4px rgba(209, 209, 209, .25);
}
body.design-evs.scheme-dark .smart-head-main { box-shadow: none; }
body.design-evs .smart-head-main .inner { min-height: 70px; display: flex; align-items: center; gap: 28px; }
body.design-evs .smart-head-logo img { max-height: 46px; width: auto; height: auto; }
body.design-evs .logo-dark { display: none; }
body.design-evs.scheme-dark .logo-dark { display: inline-block; }
body.design-evs.scheme-dark .logo-main:has(+ .logo-dark) { display: none; }
body.design-evs .items-center { flex: 1; min-width: 0; }
body.design-evs .navigation-main ul,
body.design-evs .navigation-main .menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.design-evs .navigation-main ul::-webkit-scrollbar { display: none; }
body.design-evs .navigation-main li a {
    display: block;
    white-space: nowrap;
    padding: 0 12px;
    line-height: 70px;
    font-size: 13px;
    font-weight: 600;
    color: var(--evs-text);
}
body.design-evs .navigation-main li.current-menu-item > a,
body.design-evs .navigation-main li a:hover { color: var(--evs-main); }
body.design-evs .items-right { display: flex; align-items: center; gap: 14px; }

/* ---------- Block headings ---------- */
body.design-evs .evs-block-head,
body.design-evs .main-content .block-head,
body.design-evs .home-section .section-header {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 24px;
    padding: 0 13px;
    background: var(--evs-soft);
    border-top: 1px solid var(--evs-line);
    border-bottom: 2px solid var(--evs-line);
}
body.design-evs .evs-block-head h2,
body.design-evs .main-content .block-head .heading,
body.design-evs .home-section .section-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--evs-text);
}
body.design-evs .block-head .heading .color { color: inherit; }

/* Sidebar headings: solid black bar, white caps (as on job.evsbuzz.com) */
body.design-evs .sidebar .block-head,
body.design-evs .sidebar .widget-title {
    display: block;
    margin: 0 0 18px;
    padding: 9px 13px;
    background: #000;
    border: 0;
}
body.design-evs .sidebar .block-head .heading,
body.design-evs .sidebar .widget-title,
body.design-evs .sidebar .block-head .heading .color {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------- Category badge ---------- */
body.design-evs .evs-badge {
    display: inline-block;
    padding: 3px 7px;
    background: var(--evs-main);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* The base lazy-load fade only marks an image "loaded" from a load listener, so an image that
   finished before the script ran (cached / repeated card) stayed invisible. Native lazy
   loading is enough here — never hide images. */
body.design-evs img[loading="lazy"] { opacity: 1; }

/* ---------- Media ---------- */
body.design-evs .evs-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--evs-soft);
}
body.design-evs .evs-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
body.design-evs a:hover > .evs-media img,
body.design-evs .evs-media:hover img { transform: scale(1.03); }
body.design-evs .evs-media .evs-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--evs-main) 0%, #0f5d4b 100%);
    color: rgba(255, 255, 255, .9);
    font-size: 42px;
    font-weight: 700;
}
body.design-evs .ar-16x9 { aspect-ratio: 16 / 9; }
body.design-evs .ar-3x2 { aspect-ratio: 3 / 2; }
body.design-evs .ar-1x1 { aspect-ratio: 1 / 1; }
body.design-evs .ar-4x3 { aspect-ratio: 4 / 3; }

/* ---------- Home: hero ---------- */
body.design-evs .home-main .page-header { display: none; }
body.design-evs .evs-home { padding: 34px 0 10px; }
body.design-evs .evs-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}
body.design-evs .evs-hero-main { text-align: center; }
body.design-evs .evs-hero-main .evs-media { aspect-ratio: 16 / 9; }
body.design-evs .evs-hero-card {
    position: relative;
    margin: -44px 16px 0;
    padding: 0 22px 6px;
    background: var(--evs-card);
    z-index: 1;
}
body.design-evs .evs-hero-card .evs-badge { position: relative; top: -10px; }
body.design-evs .evs-hero-card h2 {
    margin: 0 0 10px;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
}
body.design-evs .evs-meta { font-size: 11px; color: var(--evs-meta); }
body.design-evs .evs-excerpt {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--evs-muted);
}
body.design-evs .evs-hero-main .evs-excerpt { font-size: 14px; }
body.design-evs .evs-hero-side { display: grid; gap: 20px; align-content: start; }
body.design-evs .evs-side-post { text-align: center; }
body.design-evs .evs-side-post .evs-media { aspect-ratio: 3 / 2; }
body.design-evs .evs-side-post .evs-badge { position: relative; margin-top: -11px; }
body.design-evs .evs-side-post h3 {
    margin: 10px 4px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

/* ---------- Home: picks (numbered) ---------- */
body.design-evs .evs-picks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 44px;
}
body.design-evs .evs-pick .evs-media { aspect-ratio: 1 / 1; margin-bottom: 14px; }
body.design-evs .evs-pick-row { display: flex; gap: 10px; align-items: flex-start; }
body.design-evs .evs-num {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--evs-main);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}
body.design-evs .evs-pick h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Home: list + overlay column ---------- */
body.design-evs .evs-feed {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 0 56px;
    margin-bottom: 40px;
}
body.design-evs .evs-feed-list { padding-right: 0; }
body.design-evs .evs-feed-side { border-left: 1px solid var(--evs-line); padding-left: 28px; margin-left: -28px; }
body.design-evs .evs-list-post {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 24px;
}
body.design-evs .evs-list-post .evs-media { aspect-ratio: 3 / 2; }
body.design-evs .evs-list-post .evs-media .evs-badge { position: absolute; left: 0; bottom: 0; z-index: 1; }
body.design-evs .evs-list-post h3 {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.32;
}
body.design-evs .evs-list-post .evs-excerpt { margin: 0; font-size: 14px; }
body.design-evs .evs-overlay {
    position: relative;
    display: block;
    margin-bottom: 24px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
body.design-evs .evs-overlay .evs-media { position: absolute; inset: 0; }
body.design-evs .evs-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78) 100%);
    pointer-events: none;
}
body.design-evs .evs-overlay h3 {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
body.design-evs .evs-more {
    display: block;
    width: 245px;
    max-width: 100%;
    margin: 8px auto 0;
    padding: 9px 0;
    border: 1px solid var(--evs-line);
    background: var(--evs-card);
    color: var(--evs-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

/* Home categories section (Browse by Category) */
body.design-evs .categories-section { margin-bottom: 40px; }
body.design-evs .categories-section .categories-grid { gap: 14px; }
body.design-evs .categories-section a,
body.design-evs .categories-section .category-card {
    border: 1px solid var(--evs-line);
    border-radius: 0 !important;
    background: var(--evs-card);
}

/* ---------- Sidebar small posts ---------- */
body.design-evs .sidebar .small-post { display: flex; gap: 14px; margin-bottom: 16px; }
body.design-evs .sidebar .small-post .media { flex: 0 0 105px; height: 70px; overflow: hidden; }
body.design-evs .sidebar .small-post .media > a { display: block; height: 70px; padding: 0 !important; }
body.design-evs .sidebar .small-post .media .img,
body.design-evs .sidebar .small-post .media img { display: block; width: 105px; height: 70px; object-fit: cover; border-radius: 0; }
body.design-evs .sidebar .img-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 105px; height: 70px;
    background: linear-gradient(135deg, var(--evs-main) 0%, #0f5d4b 100%) !important;
    color: #fff; font-weight: 700; border-radius: 0 !important;
}
body.design-evs .sidebar .small-post .post-title { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
body.design-evs .sidebar .post-date { font-size: 11px; color: var(--evs-meta); }
body.design-evs .sidebar .tag-cloud a,
body.design-evs .sidebar .tagcloud a {
    border: 1px solid var(--evs-line);
    border-radius: 0;
    background: transparent;
    color: var(--evs-text);
}

/* ---------- Article ---------- */
/* Ad containers can be injected straight into the article/sidebar flex row; give them their
   own full-width line so the two columns stay side by side. */
body.design-evs .content-wrap.ts-row { display: flex; flex-wrap: wrap; }
body.design-evs .content-wrap.ts-row > [class*="gam-"],
body.design-evs .content-wrap.ts-row > [class*="ad-"] { flex: 0 0 100%; max-width: 100%; order: -1; }
body.design-evs .content-wrap.ts-row > .main-content { order: 0; }
body.design-evs .content-wrap.ts-row > .sidebar { order: 1; }
body.design-evs .post-classic .post-header { margin: 0 0 18px; }
body.design-evs .post-classic .post-title { font-size: 34px; font-weight: 700; line-height: 1.25; }
body.design-evs .post-classic .featured-image { margin: 0 0 22px; }
body.design-evs .post-classic .featured-image img { width: 100%; height: auto; display: block; }
body.design-evs .post-content.entry-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--evs-text);
}
body.design-evs .post-content.entry-content > p:first-child {
    padding: 18px 20px;
    border: 1px solid var(--evs-line);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
body.design-evs .related-posts > h3 { display: none; }

/* ---------- Category / tag lists (server-generated cards) ---------- */
body.design-evs .archive-header { padding: 30px 0 10px; }
body.design-evs .archive-header h1 { font-size: 30px; font-weight: 700; margin: 0 0 8px; }
body.design-evs .posts-list { display: block !important; }
body.design-evs .posts-list .article-card {
    display: grid !important;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    margin: 0 0 24px;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent;
    transform: none !important;
}
body.design-evs .posts-list .article-card:not(:has(.article-image)) { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--evs-line); padding-bottom: 18px; }
body.design-evs .posts-list .article-image { height: auto !important; aspect-ratio: 3 / 2; }
body.design-evs .posts-list .article-content { padding: 0 !important; }
body.design-evs .posts-list .article-title { font-size: 21px !important; color: var(--evs-text) !important; }
body.design-evs .posts-list .article-excerpt { font-size: 14px !important; color: var(--evs-muted) !important; }
body.design-evs .posts-list #loadMoreBtn {
    background: var(--evs-card) !important;
    color: var(--evs-text) !important;
    border: 1px solid var(--evs-line) !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------- Footer ---------- */
body.design-evs .main-footer {
    margin-top: 40px;
    padding: 40px 0 34px;
    background: var(--evs-footer);
    color: #bbb;
    text-align: center;
}
body.design-evs .main-footer .footer-policy-links { border: 0; padding: 0; margin: 0 0 18px; }
body.design-evs .main-footer .footer-policy-links a,
body.design-evs .main-footer .footer-nav a {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
}
body.design-evs .main-footer .copyright,
body.design-evs .main-footer .copyright a { color: #9a9a9a; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    body.design-evs .evs-hero,
    body.design-evs .evs-feed { grid-template-columns: minmax(0, 1fr); }
    body.design-evs .evs-feed-side { border-left: 0; padding-left: 0; margin-left: 0; }
    body.design-evs .evs-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 600px) {
    body.design-evs .evs-hero-card { margin: -30px 8px 0; padding: 0 12px 4px; }
    body.design-evs .evs-hero-card h2 { font-size: 21px; }
    body.design-evs .evs-list-post,
    body.design-evs .posts-list .article-card { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
    body.design-evs .evs-list-post h3,
    body.design-evs .posts-list .article-title { font-size: 16px !important; }
    body.design-evs .evs-list-post .evs-excerpt { display: none; }
    body.design-evs .evs-list-post .evs-badge { display: none; }
    body.design-evs .post-classic .post-title { font-size: 26px; }
    body.design-evs .evs-picks { grid-template-columns: minmax(0, 1fr); }
}
