/* =========================================================
   Ebrit Blog – Grid + Single Post
   ========================================================= */

/* ---------- Blog grid ---------- */
.ebrit-blog {padding: 90px 20px; font-family: inherit; }
.ebrit-blog-container { max-width: 1240px; margin: 0 auto; }

.ebrit-blog-heading { margin: 0 auto 42px; text-align: center; }
.ebrit-blog-label { display: inline-block; color: #ed0000; font-size: 12px; font-weight: 800; letter-spacing: 2px; margin-bottom: 13px; }
.ebrit-blog-heading h2 { color: #202020; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; font-weight: 800; margin: 0 0 16px; }
.ebrit-blog-heading p { color: #707070; font-size: 15px; line-height: 1.8; margin: 0; }

.ebrit-blog-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 42px; }
.ebrit-blog-filters button {
	border: 1px solid #e8e8e8; background: #fff; color: #333; padding: 12px 23px; border-radius: 4px;
	font-size: 13px; font-weight: 700; cursor: pointer; transition: all .3s ease;
}
.ebrit-blog-filters button:hover,
.ebrit-blog-filters button.active { background: #ed0000; color: #fff; border-color: #ed0000; }

.ebrit-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ebrit-blog-grid.ebrit-blog-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ebrit-blog-grid.ebrit-blog-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ebrit-blog-card {
	background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden;
	box-shadow: 0 5px 22px rgba(0,0,0,.055); transition: transform .35s ease, box-shadow .35s ease;
}
.ebrit-blog-card:hover { transform: translateY(-7px); box-shadow: 0 15px 35px rgba(0,0,0,.12); }
.ebrit-blog-card.is-hidden { display: none; }

.ebrit-blog-image { display: block; height: 235px; position: relative; overflow: hidden; background: #eee; }
.ebrit-blog-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ebrit-blog-card:hover .ebrit-blog-image img { transform: scale(1.07); }
.ebrit-blog-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 54px; background: linear-gradient(135deg, #2a2a2a, #ed0000); }

.ebrit-blog-date {
	position: absolute; top: 16px; left: 16px; background: #ed0000; color: #fff; border-radius: 6px;
	padding: 8px 12px; text-align: center; font-size: 11px; font-weight: 700; line-height: 1.2; text-transform: uppercase;
}
.ebrit-blog-date strong { display: block; font-size: 19px; font-weight: 800; }
.ebrit-blog-cat { position: absolute; bottom: 16px; left: 16px; background: #fff; color: #222; padding: 8px 13px; font-size: 11px; font-weight: 800; border-radius: 3px; }

.ebrit-blog-content { padding: 24px 23px 26px; }
.ebrit-blog-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #888; font-weight: 600; margin-bottom: 10px; }
.ebrit-blog-content h3 { font-size: 19px; line-height: 1.45; font-weight: 800; margin: 0 0 10px; }
.ebrit-blog-content h3 a { color: #202020; text-decoration: none; }
.ebrit-blog-content h3 a:hover { color: #ed0000; }
.ebrit-blog-content p { color: #777; font-size: 13.5px; line-height: 1.7; margin: 0 0 20px; }
.ebrit-blog-link { display: inline-flex; align-items: center; gap: 10px; color: #ed0000; font-size: 13px; font-weight: 800; text-decoration: none; transition: gap .3s ease; }
.ebrit-blog-link span { font-size: 18px; }
.ebrit-blog-link:hover { color: #b90000; gap: 16px; }

.ebrit-blog-related { background: #fafafa; margin-top: 20px; }

/* ---------- Reading progress ---------- */
.ebrit-blog-progress { position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 99999; background: transparent; }
.ebrit-blog-progress span { display: block; height: 100%; width: 0; background: #ed0000; transition: width .1s linear; }

/* ---------- Single post ---------- */
.ebrit-post { background: #fff; color: #333; font-family: inherit; }
.ebrit-post-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.ebrit-post-hero {
	position: relative; background: #1b1b1b center / cover no-repeat; min-height: 480px;
	display: flex; align-items: flex-end; padding: 130px 0 70px; color: #fff;
}
.ebrit-post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.88) 100%); }
.ebrit-post-hero .ebrit-post-container { position: relative; z-index: 1; width: 100%; }

.ebrit-post-crumbs { font-size: 13px; margin-bottom: 22px; color: rgba(255,255,255,.75); }
.ebrit-post-crumbs a { color: #fff; text-decoration: none; }
.ebrit-post-crumbs a:hover { color: #ed0000; }
.ebrit-post-crumbs span { margin: 0 6px; opacity: .6; }
.ebrit-post-crumbs em { font-style: normal; opacity: .75; }

.ebrit-post-badge { display: inline-block; background: #ed0000; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; padding: 7px 14px; border-radius: 3px; margin-bottom: 18px; text-decoration: none; }
.ebrit-post-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18; font-weight: 800; margin: 0 0 24px; max-width: 900px; }
.ebrit-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 14px; color: rgba(255,255,255,.88); font-weight: 600; }
.ebrit-post-author { display: inline-flex; align-items: center; gap: 10px; }
.ebrit-post-author img { border-radius: 50%; border: 2px solid #ed0000; }

.ebrit-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 52px; padding-top: 64px; padding-bottom: 60px; align-items: start; }

/* Entry content */
.ebrit-post-entry { font-size: 17px; line-height: 1.95; color: #4d4d4d; }
.ebrit-post-entry > p:first-of-type { font-size: 19px; color: #333; font-weight: 500; }
.ebrit-post-entry p { margin: 0 0 22px; }
.ebrit-post-entry h2 { position: relative; font-size: 27px; font-weight: 800; color: #202020; line-height: 1.3; margin: 44px 0 18px; padding-left: 18px; }
.ebrit-post-entry h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; background: #ed0000; border-radius: 3px; }
.ebrit-post-entry h3 { font-size: 21px; font-weight: 800; color: #202020; margin: 32px 0 12px; }
.ebrit-post-entry a { color: #ed0000; }
.ebrit-post-entry img { max-width: 100%; height: auto; border-radius: 8px; }
.ebrit-post-entry ul, .ebrit-post-entry ol { margin: 0 0 24px; padding-left: 0; list-style: none; }
.ebrit-post-entry ul li { position: relative; padding: 8px 0 8px 34px; }
.ebrit-post-entry ul li::before {
	content: "✓"; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: #ed0000; color: #fff;
	font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.ebrit-post-entry ol { counter-reset: eb; }
.ebrit-post-entry ol li { counter-increment: eb; position: relative; padding: 8px 0 8px 40px; }
.ebrit-post-entry ol li::before { content: counter(eb); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: #ed0000; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ebrit-post-entry blockquote {
	margin: 36px 0; padding: 28px 30px 28px 34px; background: #fafafa; border: 1px solid #eee; border-left: 5px solid #ed0000;
	border-radius: 6px; font-size: 20px; line-height: 1.6; font-weight: 700; color: #202020; font-style: italic;
}

/* Tags + share */
.ebrit-post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 44px; padding: 24px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; font-size: 14px; }
.ebrit-post-tags, .ebrit-post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ebrit-post-tags strong, .ebrit-post-share strong { color: #202020; margin-right: 4px; }
.ebrit-post-tags a, .ebrit-post-share a, .ebrit-post-share button {
	background: #f5f5f5; color: #333; border: 0; padding: 8px 14px; border-radius: 4px; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: all .3s ease;
}
.ebrit-post-tags a:hover, .ebrit-post-share a:hover, .ebrit-post-share button:hover { background: #ed0000; color: #fff; }

/* Author box */
.ebrit-author-box { display: flex; gap: 22px; align-items: center; background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 28px; margin-top: 36px; }
.ebrit-author-box img { border-radius: 50%; border: 3px solid #ed0000; flex-shrink: 0; }
.ebrit-author-box span { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: #ed0000; }
.ebrit-author-box h3 { font-size: 20px; font-weight: 800; color: #202020; margin: 4px 0 8px; }
.ebrit-author-box p { margin: 0; font-size: 14px; line-height: 1.7; color: #666; }

/* Prev / next */
.ebrit-post-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.ebrit-post-pn > div { border: 1px solid #eee; border-radius: 8px; padding: 20px 22px; }
.ebrit-post-pn > div:empty { visibility: hidden; }
.ebrit-post-pn > div:last-child { text-align: right; }
.ebrit-post-pn span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; color: #ed0000; text-transform: uppercase; margin-bottom: 6px; }
.ebrit-post-pn a { color: #202020; font-weight: 700; text-decoration: none; font-size: 15px; line-height: 1.5; }
.ebrit-post-pn a:hover { color: #ed0000; }
.ebrit-post-comments { margin-top: 50px; }

/* Sidebar */
.ebrit-post-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.ebrit-side-box { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 28px 26px; box-shadow: 0 5px 22px rgba(0,0,0,.055); }
.ebrit-side-box h3 { position: relative; font-size: 19px; font-weight: 800; color: #202020; margin: 0 0 22px; padding-bottom: 12px; }
.ebrit-side-box h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: #ed0000; border-radius: 2px; }

.ebrit-search { display: flex; border: 1px solid #e8e8e8; border-radius: 4px; overflow: hidden; }
.ebrit-search input[type=search] { flex: 1; border: 0; padding: 13px 14px; font-size: 14px; outline: none; min-width: 0; }
.ebrit-search button { background: #ed0000; color: #fff; border: 0; width: 50px; font-size: 20px; cursor: pointer; }
.ebrit-search button:hover { background: #b90000; }

.ebrit-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ebrit-recent li { display: flex; gap: 14px; align-items: center; }
.ebrit-recent-img { flex: 0 0 76px; height: 68px; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #2a2a2a, #ed0000); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ebrit-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.ebrit-recent div a { color: #202020; font-weight: 700; font-size: 14px; line-height: 1.45; text-decoration: none; display: block; }
.ebrit-recent div a:hover { color: #ed0000; }
.ebrit-recent small { color: #999; font-size: 12px; }

.ebrit-catlist { list-style: none; margin: 0; padding: 0; }
.ebrit-catlist li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: #888; }
.ebrit-catlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.ebrit-catlist a { color: #333; font-weight: 700; text-decoration: none; }
.ebrit-catlist a:hover { color: #ed0000; }

.ebrit-post-cta { background: #ed0000; border-color: #ed0000; }
.ebrit-post-cta h3 { color: #fff; }
.ebrit-post-cta h3::after { background: #fff; }
.ebrit-post-cta p { color: rgba(255,255,255,.9); font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.ebrit-post-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #ed0000; font-weight: 800; font-size: 14px; padding: 14px 20px; border-radius: 4px; text-decoration: none; transition: all .3s ease; }
.ebrit-post-btn:hover { background: #202020; color: #fff; }
.ebrit-post-phone { display: block; text-align: center; color: #fff; font-weight: 700; margin-top: 16px; text-decoration: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
	.ebrit-post-layout { grid-template-columns: 1fr; gap: 40px; }
	.ebrit-post-side { position: static; }
	.ebrit-blog-grid, .ebrit-blog-grid.ebrit-blog-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.ebrit-blog-image { height: 215px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.ebrit-blog { padding: 60px 16px; }
	.ebrit-blog-grid, .ebrit-blog-grid.ebrit-blog-cols-2, .ebrit-blog-grid.ebrit-blog-cols-4 { grid-template-columns: 1fr; gap: 22px; }
	.ebrit-blog-filters { gap: 8px; margin-bottom: 28px; }
	.ebrit-blog-filters button { padding: 10px 14px; font-size: 12px; }
	.ebrit-blog-image { height: 225px; }
	.ebrit-blog-content { padding: 22px 19px; }

	.ebrit-post-hero { min-height: 400px; padding: 100px 0 50px; }
	.ebrit-post-layout { padding-top: 40px; }
	.ebrit-post-entry { font-size: 16px; }
	.ebrit-post-entry h2 { font-size: 23px; }
	.ebrit-post-entry blockquote { font-size: 17px; padding: 22px; }
	.ebrit-author-box { flex-direction: column; text-align: center; }
	.ebrit-post-pn { grid-template-columns: 1fr; }
	.ebrit-post-pn > div:last-child { text-align: left; }
}
