/* ── BUTTONS ── */
.btn-white {
	display: inline-flex; align-items: center; gap: 6px;
	background: #fff; color: var(--theme-primary);
	font-size: 13px; font-weight: 700;
	padding: 8px 18px; border-radius: var(--theme-button-radius);
	transition: background .15s;
}
.btn-white:hover { background: #f0f0f0; }
.btn-primary {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--theme-primary); color: #fff;
	font-size: 13px; font-weight: 700; padding: 10px 22px;
	border-radius: var(--theme-button-radius);
	transition: opacity .15s;
}
.btn-primary:hover { opacity: .9; }

/* ── HERO / FEATURED CAROUSEL ── */
.hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-bottom: var(--theme-section-spacing); }
.featured-card {
	position: relative; border-radius: var(--theme-image-radius); overflow: hidden;
	height: 290px; display: flex; align-items: flex-end; padding: 28px;
}
.featured-card .sd-thumb-img, .featured-card .sd-thumb-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 60%, transparent 100%); z-index: 1; }
.featured-content { position: relative; z-index: 2; color: #fff; }
.featured-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; background: rgba(255,255,255,.25); backdrop-filter: blur(4px); border-radius: 9999px; margin-bottom: 10px; }
.featured-title { font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.featured-desc { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.carousel-controls { position: absolute; bottom: 20px; right: 20px; display: flex; gap: 8px; z-index: 3; }
.carousel-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.25); backdrop-filter: blur(4px); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.carousel-btn:hover { background: rgba(255,255,255,.4); }
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(255,255,255,.45); transition: all .2s; }
.dot.active, .dot[aria-current="true"] { width: 20px; background: #fff; }
.hero-slide { display: none; }
.hero-slide.active { display: flex; }

/* ── NEWS PANEL ── */
.news-panel { background: var(--theme-surface); border: var(--theme-border-width) solid var(--theme-border); border-radius: var(--theme-image-radius); padding: 20px; }
.news-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.news-panel-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.news-item { display: flex; gap: 10px; margin-bottom: 16px; }
.news-item:last-child { margin-bottom: 0; }
.news-tag { flex-shrink: 0; font-size: 10px; font-weight: 800; padding: 2px 8px; background: var(--theme-primary-light, #e8f0fd); color: var(--theme-primary); border-radius: 9999px; height: fit-content; margin-top: 2px; }
.news-text { font-size: 13px; line-height: 1.45; color: var(--theme-text); }
.news-text a:hover { color: var(--theme-primary); }
.news-date { font-size: 11px; color: var(--theme-muted); margin-top: 3px; }

/* ── BLOG CARD (trending / list) ── */
.blog-card {
	background: var(--theme-surface); border: var(--theme-border-width) solid var(--theme-border);
	border-radius: var(--theme-card-radius); overflow: hidden; box-shadow: var(--theme-shadow);
	transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: var(--theme-shadow-md); transform: translateY(-2px); }
.blog-thumb { height: 150px; position: relative; flex-shrink: 0; }
.blog-thumb .sd-thumb-img, .blog-thumb .sd-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.blog-cat-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 9999px; margin-bottom: 8px; background: var(--theme-primary-light, #e8f0fd); color: var(--theme-primary); position: absolute; top: 10px; left: 10px; z-index: 2; }
.blog-title { font-size: 13px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; color: var(--theme-text); }
.blog-card:hover .blog-title { color: var(--theme-primary); }
.blog-desc { font-size: 12px; color: var(--theme-muted); line-height: 1.5; margin-bottom: 10px; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--theme-muted); }
.blog-meta .blog-meta-topic { background: var(--theme-primary-light, #e8f0fd); color: var(--theme-primary); padding: 2px 8px; border-radius: 9999px; font-size: 10px; font-weight: 700; }
.blog-card.blog-card-row { flex-direction: row; gap: 0; }
.blog-card.blog-card-row .blog-thumb { width: 100px; min-height: 90px; height: auto; border-radius: var(--theme-card-radius) 0 0 var(--theme-card-radius); }
.blog-card.blog-card-row .blog-card-body { border-radius: 0 var(--theme-card-radius) var(--theme-card-radius) 0; }

/* ── CATEGORY / EXAM CARD ── */
.cat-card {
	display: block; border-radius: var(--theme-card-radius); border: var(--theme-border-width) solid var(--theme-border);
	padding: 18px 16px; text-align: center; transition: box-shadow .2s, transform .2s;
	background: var(--theme-surface);
}
.cat-card:hover { box-shadow: var(--theme-shadow-md); transform: translateY(-2px); }
.cat-icon { font-size: 26px; margin-bottom: 8px; }
.cat-name { font-size: 14px; font-weight: 700; }
.cat-desc { font-size: 11px; color: var(--theme-muted); margin-top: 2px; }
.cat-count { font-size: 10px; color: #fff; border-radius: 9999px; padding: 3px 10px; margin-top: 8px; display: inline-block; font-weight: 600; background: var(--theme-primary); }

/* ── POST CARD (recent grid) ── */
.post-card { background: var(--theme-surface); border: var(--theme-border-width) solid var(--theme-border); border-radius: var(--theme-card-radius); overflow: hidden; box-shadow: var(--theme-shadow); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--theme-shadow-md); transform: translateY(-2px); }
.post-thumb { height: 180px; position: relative; display: flex; align-items: flex-end; }
.post-thumb .sd-thumb-img, .post-thumb .sd-thumb-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.2); }
.badge-abs { position: relative; z-index: 2; margin: 12px; }
.badge-abs a, .badge-abs span { background: var(--theme-primary-light, #e8f0fd); color: var(--theme-primary); font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 9999px; }
.post-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.post-title { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.post-card:hover .post-title { color: var(--theme-primary); }
.post-excerpt { font-size: 12px; color: var(--theme-muted); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--theme-muted); flex-wrap: wrap; gap: 6px; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.page-btn, .pagination a, .pagination span {
	min-width: 36px; height: 36px; padding: 0 10px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 8px; border: var(--theme-border-width) solid var(--theme-border);
	font-size: 13px; font-weight: 600; color: var(--theme-text);
}
.pagination .page-btn.active, .pagination .current { background: var(--theme-primary); color: #fff; border-color: var(--theme-primary); }
.pagination a:hover { background: var(--theme-primary-light, #e8f0fd); color: var(--theme-primary); }

/* ── TAGS ── */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-size: 11px; padding: 5px 12px; background: var(--theme-primary-light, #e8f0fd); color: var(--theme-primary); border-radius: 9999px; font-weight: 600; transition: background .15s, color .15s; }
.tag-pill:hover { background: var(--theme-primary); color: #fff; }

/* ── SEO / INFO BLOCK ── */
.seo-block { background: var(--theme-surface); border: var(--theme-border-width) solid var(--theme-border); border-radius: var(--theme-image-radius); padding: 36px; margin-bottom: 24px; }
.seo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.seo-col-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.seo-col-text { font-size: 13px; color: var(--theme-muted); line-height: 1.7; }

/* ── RESOURCES ── */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--theme-card-spacing); }
.resource-item { display: flex; gap: 12px; align-items: flex-start; background: var(--theme-surface); border: var(--theme-border-width) solid var(--theme-border); border-radius: var(--theme-card-radius); padding: 16px; transition: box-shadow .2s; }
.resource-item:hover { box-shadow: var(--theme-shadow-md); }
.resource-icon { font-size: 22px; flex-shrink: 0; }
.resource-title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.resource-desc { font-size: 12px; color: var(--theme-muted); line-height: 1.5; }

/* ── PAGE TABS (rarely used, kept for compatibility with reference markup) ── */
.page-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--theme-border); margin-bottom: 32px; }
.tab-btn { padding: 12px 24px; font-size: 14px; font-weight: 600; color: var(--theme-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s; }
.tab-btn.active { color: var(--theme-primary); border-bottom-color: var(--theme-primary); }
.tab-btn:hover { color: var(--theme-primary); }
