/* =====================================================================
   Shilpis – Blog Archive (Design 1 "Card Grid")
   Builds on blog-design.css (same tokens: --sa-o, --sa-ol, --sa-ink,
   --sa-mu, --sa-ln, --sa-shadow, cream background, white cards,
   .sa-mbar mobile bar). Only archive-specific parts live here.
   Elementor classes: sa-arch-head, sa-arch-label, sa-arch-title, sa-arch-sub
   ===================================================================== */

/* ---------- Header ---------- */
.sa-blog-arch .sa-arch-head { text-align: center; }
.sa-blog-arch .sa-arch-label .elementor-heading-title {
	font-size: 13px !important; font-weight: 800 !important; letter-spacing: 1.4px !important;
	color: var(--sa-o) !important; text-transform: uppercase;
}
.sa-blog-arch .sa-arch-title .elementor-heading-title {
	font-size: 44px !important; line-height: 1.15 !important; font-weight: 700 !important; color: var(--sa-ink) !important;
}
.sa-blog-arch .sa-arch-sub,
.sa-blog-arch .sa-arch-sub p {
	font-size: 17px !important; color: #666 !important; max-width: 620px; margin: 0 auto !important; line-height: 1.6;
}

/* ---------- Search ---------- */
.sa-asearch {
	display: flex; align-items: center; gap: 10px;
	width: 100%; max-width: 560px; margin: 0 auto; height: 54px; box-sizing: border-box;
	background: #fff; border: 1px solid var(--sa-ln); border-radius: 12px;
	padding: 0 7px 0 16px; box-shadow: var(--sa-shadow);
}
.sa-asearch__i { opacity: .55; font-size: 15px; }
.sa-asearch input[type=search] {
	flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important;
	box-shadow: none !important; height: 100%; padding: 0 !important; font-size: 15px; color: var(--sa-ink);
}
.sa-asearch button {
	background: var(--sa-o) !important; color: #fff !important; border: 0; border-radius: 9px;
	height: 40px; padding: 0 20px; font-weight: 700; font-size: 14px; cursor: pointer;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}

/* ---------- Category pills ---------- */
.sa-apills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sa-apills a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 18px; border-radius: 30px; background: #fff; border: 1px solid var(--sa-ln);
	font-size: 14.5px; font-weight: 600; color: var(--sa-ink) !important; text-decoration: none !important;
	white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.sa-apills a i { font-style: normal; font-size: 12.5px; opacity: .6; }
.sa-apills a:hover { border-color: var(--sa-o); color: var(--sa-o) !important; }
.sa-apills a.on { background: var(--sa-o); border-color: var(--sa-o); color: #fff !important; }
.sa-apills a.on i { opacity: .85; }

/* ---------- Shared card bits (same pill badge as related posts on the single page) ---------- */
.sa-am { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--sa-mu); }
.sa-am b { color: #ccc; font-weight: 400; }
.sa-acat {
	background: var(--sa-ol) !important; color: var(--sa-o) !important;
	padding: 6px 10px; border-radius: 8px; line-height: 1;
	font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; text-decoration: none !important;
}
.sa-ath { display: block; overflow: hidden; background: linear-gradient(135deg, #f6c897, var(--sa-o)); }
.sa-ath img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.sa-afeat:hover .sa-ath img,
.sa-acard:hover .sa-ath img { transform: scale(1.04); }

/* ---------- Featured post ---------- */
.sa-afeat {
	display: grid; grid-template-columns: 1.25fr 1fr;
	background: #fff; border-radius: 22px; overflow: hidden;
	box-shadow: 0 16px 50px rgba(165, 90, 20, .10); margin: 0 0 30px;
}
.sa-afeat .sa-ath { min-height: 340px; }
.sa-afeat__b { padding: 38px 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.sa-aflag {
	font-size: 11.5px; font-weight: 800; letter-spacing: 1px; color: #fff;
	background: var(--sa-ink); padding: 6px 10px; border-radius: 6px; width: fit-content;
}
.sa-afeat h2 { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 700; }
.sa-afeat h2 a, .sa-acard h3 a { color: var(--sa-ink) !important; text-decoration: none !important; }
.sa-afeat h2 a:hover, .sa-acard h3 a:hover { color: var(--sa-o) !important; }
.sa-afeat p { margin: 0; color: #555; font-size: 16px; line-height: 1.65; }
.sa-abtn {
	display: inline-block; width: fit-content; background: var(--sa-o); color: #fff !important;
	font-weight: 700; font-size: 14px; letter-spacing: .3px; padding: 13px 22px; border-radius: 8px;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); text-decoration: none !important;
}

/* ---------- Grid ---------- */
.sa-agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sa-acard {
	background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--sa-shadow);
	display: flex; flex-direction: column; min-width: 0;
}
.sa-acard .sa-ath { height: 210px; }
.sa-acard__b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sa-acard h3 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 700; }
.sa-acard p { margin: 0; font-size: 14.5px; color: #666; line-height: 1.6; }
.sa-acard__ft { margin-top: auto; padding-top: 12px; border-top: 1px solid #f1e8dc; }
.sa-arm { font-size: 13.5px; font-weight: 800; letter-spacing: .4px; color: var(--sa-o) !important; text-decoration: none !important; }

/* ---------- Pagination ---------- */
.sa-apg { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 40px 0 10px; }
.sa-apg .page-numbers {
	min-width: 42px; height: 42px; padding: 0 14px; border-radius: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--sa-ln); font-weight: 700; color: var(--sa-ink) !important; text-decoration: none !important;
}
.sa-apg .page-numbers.current { background: var(--sa-o); border-color: var(--sa-o); color: #fff !important; }
.sa-apg a.page-numbers:hover { border-color: var(--sa-o); color: var(--sa-o) !important; }
.sa-apg .dots { border: 0; background: transparent; }

.sa-aempty { background: #fff; border-radius: 18px; padding: 40px; text-align: center; box-shadow: var(--sa-shadow); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.sa-agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.sa-afeat__b { padding: 28px; }
	.sa-afeat h2 { font-size: 25px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	/* no bottom bar on the archive */
	body.sa-blog-arch { padding-bottom: 0 !important; }
	body.sa-blog-arch .sa-mbar { display: none !important; }
	body.sa-blog-arch #ht-ctc-chat { bottom: 15px !important; }
	body.sa-blog-arch .scrollToTop { bottom: 80px !important; }

	.sa-blog-arch .sa-arch-head { text-align: left; }
	.sa-blog-arch .sa-arch-title .elementor-heading-title { font-size: 30px !important; }
	.sa-blog-arch .sa-arch-sub, .sa-blog-arch .sa-arch-sub p { font-size: 15px !important; }

	.sa-asearch { height: 48px; }
	.sa-asearch button { height: 36px; padding: 0 14px; }

	.sa-apills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.sa-apills::-webkit-scrollbar { display: none; }
	.sa-apills a { padding: 9px 15px; font-size: 14px; }

	.sa-afeat { grid-template-columns: 1fr; border-radius: 18px; margin-bottom: 18px; }
	.sa-afeat .sa-ath { min-height: 0; height: 210px; }
	.sa-afeat__b { padding: 20px; gap: 12px; }
	.sa-afeat h2 { font-size: 22px; }
	.sa-afeat p { font-size: 15px; }

	.sa-agrid { grid-template-columns: 1fr; gap: 16px; }
	.sa-acard .sa-ath { height: 200px; }
	.sa-acard h3 { font-size: 17px; }

	.sa-apg { gap: 6px; }
	.sa-apg .page-numbers { min-width: 38px; height: 38px; padding: 0 11px; }
}
