/* ============================================================================
   CNX Web CMS - Plant 3 (magazine3.seeddemo.com) & Seed Webs Stylesheet
   Mobile-First Architecture
   ============================================================================ */

:root {
    --s-color-1: #222222;
    --s-color-2: #777777;
    --s-accent: #47BE9D;
    --s-darkblue: #023456;
    --s-warm-bg: #fffdfb;
    --s-sand-bg: #f6f3ee;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-family: 'Anuphan', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2937;
    background-color: #ffffff;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Magazine3 / Plant3 Underline Readmore Link */
.btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 2px solid #111827;
    transition: all 0.2s ease;
}

.btn-readmore:hover {
    color: #47BE9D;
    border-bottom-color: #47BE9D;
}

/* Aspect Ratio 3:2 for Editorial & Software Cards (like magazine3 .entry-pic 66.66%) */
.entry-pic {
    position: relative;
    width: 100%;
    padding-top: 64%;
    overflow: hidden;
    background-color: #f3f4f6;
}

.entry-pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.s-content:hover .entry-pic img {
    transform: scale(1.06);
}

/* Category Overlay Blocks (Magazine3 TRAVEL / DESIGN / LIFESTYLE / GALLERY) */
.cat-banner-block {
    position: relative;
    height: 130px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .cat-banner-block {
        height: 165px;
    }
}

.cat-banner-block img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-banner-block:hover img {
    transform: scale(1.08);
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
    transition: background 0.3s ease;
}

.cat-banner-block:hover .cat-banner-overlay {
    background: linear-gradient(180deg, rgba(2,52,86,0.45) 0%, rgba(2,52,86,0.78) 100%);
}

/* Rich Content Prose */
.cms-prose h2, .cms-prose h3 {
    color: #111827;
    font-weight: 700;
    margin-top: 1.6rem;
    margin-bottom: 0.75rem;
}

.cms-prose h3 {
    font-size: 1.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e5e7eb;
}

.cms-prose p {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: #374151;
}

.cms-prose ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.cms-prose ul li {
    position: relative;
    padding-left: 1.65rem;
    margin-bottom: 0.6rem;
    line-height: 1.65;
}

.cms-prose ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 9999px;
    background-color: #d1fae5;
    color: #047857;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@media print {
    .no-print { display: none !important; }
}
