﻿/* ---- BLOG LISTING ---- */
.blog-layout { display:grid; grid-template-columns:1fr 340px; gap:48px; align-items:start; }

/* Featured post */
.blog-featured { background:#fff; border-radius:20px; overflow:hidden; box-shadow:var(--shadow-lg); margin-bottom:40px; display:grid; grid-template-columns:1.2fr 1fr; }
.bf-img { position:relative; height:100%; min-height:360px; overflow:hidden; }
.bf-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.6s; }
.blog-featured:hover .bf-img img { transform:scale(1.04); }
.bf-category { position:absolute; top:20px; left:20px; padding:5px 14px; border-radius:20px; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#fff; }
.bf-featured-tag { position:absolute; top:20px; right:20px; background:var(--gold); color:#111; padding:5px 14px; border-radius:20px; font-size:11px; font-weight:800; letter-spacing:1px; }
.bf-body { padding:40px; display:flex; flex-direction:column; justify-content:center; }
.bf-meta { display:flex; align-items:center; gap:14px; margin-bottom:14px; flex-wrap:wrap; }
.bf-meta .date { font-size:13px; color:var(--text-mid); display:flex; align-items:center; gap:5px; }
.bf-meta .read-time { font-size:12px; color:var(--blue-primary); font-weight:600; background:var(--blue-pale); padding:3px 10px; border-radius:20px; }
.bf-body h2 { font-family:'Playfair Display',serif; font-size:1.7rem; font-weight:800; margin-bottom:14px; line-height:1.3; }
.bf-body p { color:var(--text-mid); font-size:14.5px; line-height:1.8; margin-bottom:20px; }
.bf-author { display:flex; align-items:center; gap:10px; margin-bottom:22px; }
.bf-author img { width:40px; height:40px; border-radius:50%; object-fit:cover; border:2px solid var(--blue-light); }
.bf-author span { font-size:13px; font-weight:600; }
.bf-author em { font-size:12px; color:var(--text-mid); font-style:normal; display:block; }

/* Blog grid */
.blog-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.blog-card { background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); transition:all 0.35s; }
.blog-card:hover { transform:translateY(-7px); box-shadow:var(--shadow-lg); }
.bc-img { position:relative; height:200px; overflow:hidden; }
.bc-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.55s; }
.blog-card:hover .bc-img img { transform:scale(1.06); }
.bc-cat { position:absolute; bottom:12px; left:14px; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#fff; }
.bc-body { padding:24px; }
.bc-meta { display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.bc-meta .date { font-size:12.5px; color:var(--text-mid); display:flex; align-items:center; gap:5px; }
.bc-meta .rt { font-size:11.5px; color:var(--blue-primary); font-weight:600; }
.bc-body h3 { font-family:'Playfair Display',serif; font-size:1.12rem; font-weight:700; margin-bottom:10px; line-height:1.4; }
.bc-body h3 a { color:inherit; transition:color 0.25s; }
.bc-body h3 a:hover { color:var(--blue-primary); }
.bc-body p { font-size:13.5px; color:var(--text-mid); line-height:1.72; margin-bottom:16px; }
.bc-footer { display:flex; align-items:center; justify-content:space-between; padding-top:14px; border-top:1px solid #eef2f8; }
.bc-author { display:flex; align-items:center; gap:8px; }
.bc-author img { width:32px; height:32px; border-radius:50%; object-fit:cover; }
.bc-author span { font-size:12.5px; font-weight:600; }
.bc-read { font-size:13px; color:var(--blue-primary); font-weight:600; display:flex; align-items:center; gap:5px; }
.bc-read:hover { color:var(--green); }

/* Sidebar */
.sidebar-widget { background:#fff; border-radius:var(--radius); padding:28px; box-shadow:var(--shadow); margin-bottom:24px; }
.sw-title { font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:800; margin-bottom:18px; padding-bottom:12px; border-bottom:2px solid var(--blue-pale); color:var(--text-dark); }
.sidebar-search { display:flex; background:var(--gray-bg); border:2px solid #e4e9f0; border-radius:9px; overflow:hidden; }
.sidebar-search input { border:none; background:transparent; outline:none; padding:12px 14px; font-family:'DM Sans',sans-serif; font-size:14px; flex:1; }
.sidebar-search button { background:var(--blue-primary); color:#fff; border:none; padding:12px 18px; cursor:pointer; font-size:15px; }
.sidebar-search button:hover { background:var(--blue-bar); }

/* Categories */
.cat-list { list-style:none; }
.cat-list li { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #f0f4f8; }
.cat-list li:last-child { border-bottom:none; }
.cat-list li a { font-size:14px; color:var(--text-dark); font-weight:500; display:flex; align-items:center; gap:8px; transition:color 0.25s; }
.cat-list li a i { color:var(--blue-primary); font-size:12px; }
.cat-list li a:hover { color:var(--blue-primary); }
.cat-count { background:var(--blue-pale); color:var(--blue-primary); font-size:12px; font-weight:700; padding:2px 9px; border-radius:20px; }

/* Recent posts sidebar */
.recent-post { display:flex; gap:12px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid #f0f4f8; }
.recent-post:last-child { margin-bottom:0; padding-bottom:0; border-bottom:none; }
.recent-post img { width:72px; height:72px; border-radius:9px; object-fit:cover; flex-shrink:0; }
.rp-content h4 { font-size:13.5px; font-weight:700; line-height:1.4; margin-bottom:4px; }
.rp-content h4 a { color:var(--text-dark); }
.rp-content h4 a:hover { color:var(--blue-primary); }
.rp-content span { font-size:12px; color:var(--text-mid); }

/* Tags cloud */
.tag-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.tag-item { padding:5px 13px; border-radius:6px; font-size:12.5px; font-weight:600; color:var(--text-mid); background:var(--gray-bg); border:1.5px solid #e4e9f0; cursor:pointer; transition:all 0.25s; }
.tag-item:hover { background:var(--blue-primary); color:#fff; border-color:var(--blue-primary); }

/* Newsletter widget */
.newsletter-widget { background:linear-gradient(135deg,var(--blue-primary),var(--blue-bar)); border-radius:var(--radius); padding:28px; color:#fff; }
.newsletter-widget h3 { font-family:'Playfair Display',serif; font-size:1.2rem; font-weight:800; margin-bottom:8px; }
.newsletter-widget p { font-size:13.5px; opacity:0.85; margin-bottom:18px; line-height:1.65; }
.nl-form { display:flex; flex-direction:column; gap:10px; }
.nl-form input { padding:12px 14px; border:none; border-radius:8px; font-family:'DM Sans',sans-serif; font-size:14px; outline:none; }
.nl-form button { padding:12px; background:var(--gold); color:#111; border:none; border-radius:8px; font-family:'DM Sans',sans-serif; font-weight:700; font-size:14px; cursor:pointer; transition:all 0.3s; }
.nl-form button:hover { background:var(--gold-dark); color:#fff; }

/* Category filter tabs */
.blog-cats { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:32px; }
.bcat { padding:8px 20px; border-radius:8px; border:2px solid #e4e9f0; background:#fff; color:var(--text-dark); font-weight:600; font-size:13.5px; cursor:pointer; transition:all 0.25s; }
.bcat.active, .bcat:hover { background:var(--blue-primary); color:#fff; border-color:var(--blue-primary); }

/* Load more */
.load-more-wrap { text-align:center; margin-top:40px; }

@media(max-width:1000px) { .blog-layout { grid-template-columns:1fr; } .blog-featured { grid-template-columns:1fr; } .bf-img { min-height:280px; } }
@media(max-width:700px) { .blog-grid { grid-template-columns:1fr; } }


/* ---- BLOG DETAIL ---- */
.blog-detail-layout { display:grid; grid-template-columns:1fr 340px; gap:48px; align-items:start; }

/* Article Header */
.article-header { margin-bottom:32px; }
.article-cats { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.article-cat { padding:5px 14px; border-radius:20px; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#fff; }
.article-header h1 { font-family:'Playfair Display',serif; font-size:clamp(1.9rem,4vw,2.8rem); font-weight:900; line-height:1.22; margin-bottom:18px; color:var(--text-dark); }
.article-meta { display:flex; align-items:center; gap:20px; flex-wrap:wrap; padding:18px 0; border-top:1px solid #eef2f8; border-bottom:1px solid #eef2f8; margin-bottom:24px; }
.article-meta .am-item { display:flex; align-items:center; gap:6px; font-size:13.5px; color:var(--text-mid); }
.article-meta .am-item i { color:var(--blue-primary); }
.article-meta .am-item a { color:var(--blue-primary); font-weight:600; }

/* Author card at top */
.author-top { display:flex; align-items:center; gap:14px; background:var(--blue-pale); border-radius:12px; padding:18px 22px; margin-bottom:30px; }
.author-top img { width:56px; height:56px; border-radius:50%; object-fit:cover; border:3px solid var(--blue-primary); }
.author-top .name { font-weight:700; font-size:15px; }
.author-top .title { font-size:13px; color:var(--blue-primary); }
.author-top .bio-short { font-size:13px; color:var(--text-mid); margin-top:4px; }

/* Hero Image */
.article-hero-img { width:100%; height:480px; object-fit:cover; border-radius:16px; margin-bottom:40px; box-shadow:var(--shadow-lg); }

/* Article Content */
.article-body { line-height:1.9; font-size:16px; color:#333; }
.article-body h2 { font-family:'Playfair Display',serif; font-size:1.7rem; font-weight:800; margin:40px 0 16px; color:var(--text-dark); }
.article-body h3 { font-family:'Playfair Display',serif; font-size:1.3rem; font-weight:700; margin:32px 0 12px; color:var(--text-dark); }
.article-body p { margin-bottom:20px; }
.article-body strong { color:var(--text-dark); font-weight:700; }
.article-body a { color:var(--blue-primary); border-bottom:1px solid var(--blue-light); }
.article-body ul, .article-body ol { margin:20px 0 20px 28px; }
.article-body ul li, .article-body ol li { margin-bottom:10px; }

/* Blockquote */
.article-body blockquote { border-left:5px solid var(--blue-primary); background:var(--blue-pale); padding:24px 28px; border-radius:0 12px 12px 0; margin:32px 0; }
.article-body blockquote p { font-family:'Playfair Display',serif; font-size:1.2rem; font-style:italic; color:var(--text-dark); margin-bottom:10px; }
.article-body blockquote cite { font-size:13.5px; color:var(--blue-primary); font-weight:600; font-style:normal; }

/* Pull Quote */
.pull-quote { background:linear-gradient(135deg,var(--blue-primary),var(--green)); color:#fff; border-radius:16px; padding:36px 40px; margin:36px 0; text-align:center; }
.pull-quote p { font-family:'Playfair Display',serif; font-size:1.5rem; font-weight:700; font-style:italic; line-height:1.5; margin-bottom:10px; }
.pull-quote cite { font-size:14px; opacity:0.85; }

/* Inline Image */
.article-inline-img { width:100%; height:320px; object-fit:cover; border-radius:12px; margin:28px 0; }
.img-caption { text-align:center; font-size:13px; color:var(--text-mid); margin-top:-18px; margin-bottom:28px; font-style:italic; }

/* Stats callout */
.stats-callout { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; background:var(--gray-bg); border-radius:14px; padding:28px; margin:32px 0; }
.sc-item { text-align:center; }
.sc-num { font-family:'Playfair Display',serif; font-size:2.2rem; font-weight:900; color:var(--blue-primary); }
.sc-label { font-size:13px; color:var(--text-mid); margin-top:4px; }

/* Share Bar */
.share-bar { display:flex; align-items:center; gap:12px; padding:22px 0; border-top:1px solid #eef2f8; border-bottom:1px solid #eef2f8; margin:40px 0; flex-wrap:wrap; }
.share-bar span { font-weight:700; font-size:14px; }
.share-btn { display:flex; align-items:center; gap:7px; padding:9px 18px; border-radius:8px; font-size:13.5px; font-weight:600; transition:all 0.3s; }
.share-btn:hover { transform:translateY(-2px); }

/* Tags */
.article-tags { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:24px 0; }
.article-tags span { font-weight:700; font-size:13px; }
.at { padding:5px 13px; border:1.5px solid #e4e9f0; border-radius:6px; font-size:13px; color:var(--text-mid); cursor:pointer; transition:all 0.25s; }
.at:hover { background:var(--blue-primary); color:#fff; border-color:var(--blue-primary); }

/* Author Bio Card */
.author-bio-card { background:var(--gray-bg); border-radius:var(--radius); padding:32px; margin-top:48px; display:flex; gap:22px; }
.author-bio-card img { width:88px; height:88px; border-radius:50%; object-fit:cover; flex-shrink:0; border:3px solid var(--blue-light); }
.abc-body h4 { font-family:'Playfair Display',serif; font-size:1.2rem; font-weight:800; margin-bottom:4px; }
.abc-body .role { font-size:13px; color:var(--blue-primary); font-weight:600; margin-bottom:10px; }
.abc-body p { font-size:14px; color:var(--text-mid); line-height:1.75; }
.abc-social { display:flex; gap:8px; margin-top:14px; }
.abc-social a { width:34px; height:34px; border-radius:8px; background:#fff; color:var(--blue-primary); display:flex; align-items:center; justify-content:center; font-size:14px; transition:all 0.3s; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.abc-social a:hover { background:var(--blue-primary); color:#fff; }

/* Related Posts */
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.related-card { background:#fff; border-radius:14px; overflow:hidden; box-shadow:var(--shadow); transition:all 0.3s; }
.related-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.related-card img { width:100%; height:160px; object-fit:cover; }
.related-body { padding:18px; }
.related-body .rc-cat { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--blue-primary); margin-bottom:6px; }
.related-body h4 { font-family:'Playfair Display',serif; font-size:1rem; font-weight:700; line-height:1.4; margin-bottom:8px; }
.related-body h4 a { color:inherit; }
.related-body h4 a:hover { color:var(--blue-primary); }
.related-body span { font-size:12px; color:var(--text-mid); }

/* Comments */
.comment-section { margin-top:48px; }
.cs-title { font-family:'Playfair Display',serif; font-size:1.5rem; font-weight:800; margin-bottom:28px; }
.comment-item { display:flex; gap:16px; margin-bottom:28px; padding-bottom:28px; border-bottom:1px solid #eef2f8; }
.comment-item:last-of-type { border-bottom:none; }
.comment-item img { width:52px; height:52px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.comment-body .cm-name { font-weight:700; font-size:14.5px; }
.comment-body .cm-date { font-size:12px; color:var(--text-mid); margin-bottom:8px; }
.comment-body p { font-size:14px; color:var(--text-mid); line-height:1.75; }
.cm-reply { font-size:13px; font-weight:600; color:var(--blue-primary); margin-top:8px; cursor:pointer; }
.cm-reply:hover { color:var(--green); }

/* Comment Form */
.comment-form { background:var(--gray-bg); border-radius:14px; padding:32px; margin-top:32px; }
.comment-form h3 { font-family:'Playfair Display',serif; font-size:1.4rem; font-weight:800; margin-bottom:22px; }

/* Progress Bar */
.reading-progress { position:fixed; top:0; left:0; width:0%; height:3px; background:linear-gradient(90deg,var(--blue-primary),var(--gold)); z-index:9999; transition:width 0.1s; }

/* Sidebar styles (reusing from blogs.css) */
.sidebar-widget { background:#fff; border-radius:var(--radius); padding:28px; box-shadow:var(--shadow); margin-bottom:24px; }
.sw-title { font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:800; margin-bottom:18px; padding-bottom:12px; border-bottom:2px solid var(--blue-pale); }
.recent-post { display:flex; gap:12px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid #f0f4f8; }
.recent-post:last-child { margin-bottom:0; padding-bottom:0; border-bottom:none; }
.recent-post img { width:72px; height:72px; border-radius:9px; object-fit:cover; flex-shrink:0; }
.rp-content h4 { font-size:13.5px; font-weight:700; line-height:1.4; margin-bottom:4px; }
.rp-content h4 a { color:var(--text-dark); }
.rp-content h4 a:hover { color:var(--blue-primary); }
.rp-content span { font-size:12px; color:var(--text-mid); }
.tag-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.tag-item { padding:5px 13px; border-radius:6px; font-size:12.5px; font-weight:600; color:var(--text-mid); background:var(--gray-bg); border:1.5px solid #e4e9f0; cursor:pointer; transition:all 0.25s; }
.tag-item:hover { background:var(--blue-primary); color:#fff; border-color:var(--blue-primary); }
.newsletter-widget { background:linear-gradient(135deg,var(--blue-primary),var(--blue-bar)); border-radius:var(--radius); padding:28px; color:#fff; }
.newsletter-widget h3 { font-family:'Playfair Display',serif; font-size:1.2rem; font-weight:800; margin-bottom:8px; }
.newsletter-widget p { font-size:13.5px; opacity:0.85; margin-bottom:18px; line-height:1.65; }
.nl-form { display:flex; flex-direction:column; gap:10px; }
.nl-form input { padding:12px 14px; border:none; border-radius:8px; font-family:'DM Sans',sans-serif; font-size:14px; outline:none; }
.nl-form button { padding:12px; background:var(--gold); color:#111; border:none; border-radius:8px; font-family:'DM Sans',sans-serif; font-weight:700; font-size:14px; cursor:pointer; }
.nl-form button:hover { background:var(--gold-dark); color:#fff; }

@media(max-width:1000px) { .blog-detail-layout { grid-template-columns:1fr; } .related-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:640px) { .related-grid { grid-template-columns:1fr; } .author-bio-card { flex-direction:column; } .stats-callout { grid-template-columns:1fr; } .share-bar { gap:8px; } .article-hero-img { height:260px; } }
