/* ============================================================
   pages.css — consolidated page-level styles
   Absorbs the former inline <style> blocks from blog.php,
   blog-details.php and about.php (deduplicated + tokenized).
   Loaded sitewide after public-bizdire.css.
   ============================================================ */

/* ---------- Blog listing & article shared ---------- */

/* Blog / related cards */
.blog-card,
.related-card {
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    border: none;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover,
.related-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.blog-card .badge-cat,
.article-header .badge-cat {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .03em;
}

.blog-card .card-title a,
.related-card .card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.related-card .card-title a { font-size: var(--fs-sm); }

.blog-card .card-title a:hover,
.related-card .card-title a:hover {
    color: var(--clr-primary);
}

.blog-card .read-more {
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* Contrast-safe meta text (was #999 / #aaa / #6c757d — failed 4.5:1) */
.blog-card .meta-row,
.article-meta-row {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* Sidebar (shared by listing + detail pages) */
.sidebar-widget {
    border: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.4rem;
}

.sidebar-widget .card-header {
    background: var(--bg-page);
    border-bottom: 2px solid var(--clr-primary);
    font-weight: 700;
    font-size: var(--fs-sm);
    padding: .6rem 1rem;
}

.cat-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .42rem .85rem;
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.cat-list-item:last-child { border-bottom: none; }

.cat-list-item:hover,
.cat-list-item.active {
    background: var(--c-blue-50);
    color: var(--clr-primary);
}

.cat-list-item .badge { font-size: var(--fs-xs); }

.sidebar-post-item {
    display: flex;
    gap: .7rem;
    padding: .5rem .85rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-post-item:last-child { border-bottom: none; }

.sidebar-post-item a {
    font-size: var(--fs-sm);
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
}

.sidebar-post-item a:hover { color: var(--clr-primary); }

.sidebar-post-item .sp-meta {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.sidebar-post-num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--clr-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Active category filter pill */
.active-filter-bar {
    background: var(--c-blue-50);
    border: 1px solid var(--c-blue-200);
    border-radius: 6px;
    padding: .5rem .9rem;
    font-size: var(--fs-sm);
    margin-bottom: 1.2rem;
}

/* ---------- Blog detail article ---------- */
.article-content {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--text-primary);
}

.article-content h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: .5rem;
}

.article-content h3 {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-top: 1.4rem;
    margin-bottom: .4rem;
}

.article-content p { margin-bottom: 1rem; }

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    /* Logical property: flips automatically in RTL */
    padding-inline-start: 1.4rem;
}

.article-content blockquote {
    border-inline-start: 4px solid var(--clr-primary);
    padding: .6rem 1rem;
    background: var(--c-blue-50);
    border-radius: 0 6px 6px 0;
    margin: 1.2rem 0;
    color: var(--text-primary);
}

.article-content a { color: var(--clr-primary); }

.article-content a:hover {
    color: var(--brand-action-hover);
    text-decoration: underline;
}

/* Share bar — button colors come from data attributes in the template */
.share-bar {
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: var(--fs-sm);
}

.share-bar a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .65rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-sm);
    /* WCAG 2.5.8: comfortable share-button target */
    min-height: 44px;
}

/* ---------- About page ---------- */
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: clamp(24px, 4vw, 32px);
    margin-bottom: clamp(20px, 3vw, 28px);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

.feature-icon {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: clamp(16px, 2vw, 20px);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 8vw, 60px);
    height: clamp(48px, 8vw, 60px);
    background: var(--primary-light);
    border-radius: 12px;
}

.feature-card h3 {
    font-size: var(--fs-xl);
    font-weight: 800;
    margin-bottom: clamp(12px, 2vw, 16px);
    color: var(--neutral-dark);
    line-height: 1.3;
}

.feature-card p {
    color: var(--neutral-gray);
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
    font-size: var(--fs-base);
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: var(--neutral-dark);
    margin-bottom: clamp(36px, 6vw, 52px);
    text-align: center;
    line-height: var(--lh-heading);
    letter-spacing: -0.5px;
}

.values-grid {
    display: grid;
    /* Intrinsic grid: no breakpoint needed */
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: clamp(20px, 3vw, 32px);
    margin: clamp(32px, 5vw, 48px) 0;
}

.value-item {
    text-align: center;
    padding: clamp(24px, 4vw, 32px);
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f9ff 100%);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

.value-item-icon {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: clamp(12px, 2vw, 16px);
    display: block;
    color: var(--primary);
}

.value-item h4 {
    font-weight: 800;
    color: var(--neutral-dark);
    margin-bottom: 8px;
    font-size: var(--fs-lg);
}

.value-item p {
    color: var(--neutral-gray);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    margin: 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: clamp(48px, 8vw, 72px) 0;
    border-radius: 16px;
    text-align: center;
    margin: clamp(48px, 8vw, 72px) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h3 {
    font-size: var(--fs-3xl);
    font-weight: 900;
    margin-bottom: clamp(16px, 2vw, 24px);
    color: #ffffff;
    line-height: var(--lh-heading);
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto clamp(16px, 2vw, 24px);
    font-size: var(--fs-md);
    line-height: var(--lh-body);
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
    font-weight: 700;
    padding: clamp(10px, 2vw, 14px) clamp(20px, 3vw, 28px);
    border-radius: 8px;
    transition: all var(--transition-fast);
    font-size: var(--fs-base);
}

.cta-section .btn-light:hover {
    background: #f9fafb;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-light {
    background: #f9fafb !important;
    color: var(--primary) !important;
}

h4.mb-3 {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: clamp(12px, 2vw, 20px) !important;
}

.list-unstyled li {
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--neutral-gray);
    margin-bottom: clamp(8px, 1.5vw, 12px) !important;
}

.list-unstyled li i {
    color: var(--accent-emerald);
    font-size: .9rem;
    margin-inline-end: 8px;
}

@media (max-width: 767.98px) {
    .about-hero {
        padding: clamp(40px, 6vw, 48px) 0;
    }
}
