/* ==========================================================================
   Travel DMC – Blog listing modernization
   Loaded ONLY on the blog index + archives/category/tag (see tdmc-customizations.php).
   Pure CSS over the Webnus EasyWeb "template 1" markup (parts/blogloop.php):
       article.blog-post.blgtyp1 > .blog-inner > { .blgt1-top-sec , <a><img.full> , .blgt1-inner , hr }
   No theme/core files are modified. Accent: #00c2e5 (theme brand).
   Key breakpoint: 960px (theme convention).
   ========================================================================== */

/* ---- Page title bar ----------------------------------------------------- */
#headline {
	background: #ffffff;
	border-top: none;
	border-bottom: 1px solid #eee;
	padding: 40px 0 6px;
}
#headline h2 {
	font-size: 40px;
	font-weight: 800;
	color: #101010;
	letter-spacing: .3px;
	text-transform: none;
	margin: 0 12px 14px;
}
#headline h2 small {
	display: block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #00c2e5;
	margin-bottom: 6px;
}

/* ---- The post card ------------------------------------------------------ */
.blog-post.blgtyp1 {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba(16, 16, 16, .06);
	overflow: hidden;
	padding: 0;
	margin-bottom: 30px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.blog-post.blgtyp1:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(16, 16, 16, .12);
}

/* Re-order: featured image to the top of the card, then header, then excerpt */
.blog-post.blgtyp1 .blog-inner {
	display: flex;
	flex-direction: column;
}
.blog-post.blgtyp1 .blog-inner > a {        /* the featured-image link */
	order: 1;
	display: block;
	margin: 0;
	line-height: 0;
}
.blog-post.blgtyp1 .blgt1-top-sec {
	order: 2;
	margin: 0;
	padding: 22px 28px 0;
}
.blog-post.blgtyp1 .blgt1-inner {
	order: 3;
	padding: 0 28px 24px;
}
.blog-post.blgtyp1 .blog-inner > hr {       /* drop the legacy divider */
	display: none;
}

/* Featured image: uniform 16:9 crop, full-bleed top of card */
.blog-post.blgtyp1 .blog-inner > a > img,
.blog-post.blgtyp1 img.full {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
	background: #f2f4f6;
}
/* Video / gallery format posts (iframe / slider) keep full width at the top */
.blog-post.blgtyp1 .blog-inner > iframe,
.blog-post.blgtyp1 .blog-inner > .flexslider {
	order: 1;
	margin: 0;
}

/* No-image posts: add a slim accent strip so cards still read as cards */
.blog-post.blgtyp1.post-no-image .blgt1-top-sec {
	padding-top: 26px;
	border-top: 4px solid #00c2e5;
}

/* ---- Hide the always-"0" comment badge --------------------------------- */
.blog-post.blgtyp1 .blog-comments {
	display: none;
}

/* ---- Title -------------------------------------------------------------- */
.blog-post.blgtyp1 .blog1-header-wrap {
	margin-bottom: 12px;
	letter-spacing: 0;
}
.blog-post.blgtyp1 .blog1-header-wrap h3 {
	font-size: 23px;
	line-height: 1.32;
	font-weight: 700;
	margin: 0 0 10px;
}
.blog-post.blgtyp1 .blog1-header-wrap h3 a {
	color: #131516;
	transition: color .18s ease;
}
.blog-post.blgtyp1 .blog1-header-wrap h3 a:hover {
	color: #00c2e5;
}

/* ---- Meta (author · date · category) ----------------------------------- */
.blog-post.blgtyp1 .blgt1-top-sec h6 {
	font-size: 12.5px;
	color: #9aa0a8;
}
.blog-post.blgtyp1 .blog-author,
.blog-post.blgtyp1 .blog-date,
.blog-post.blgtyp1 .blog-cat {
	font-weight: 400;
}
.blog-post.blgtyp1 .blgt1-top-sec h6 a {
	color: #00c2e5;
}
.blog-post.blgtyp1 .blog-date a {
	color: #9aa0a8;
}

/* ---- Excerpt ------------------------------------------------------------ */
.blog-post.blgtyp1 .blgt1-inner p {
	color: #5b6068;
	font-size: 15px;
	line-height: 1.75;
	margin: 0;
}

/* ---- "Continue Reading" pill ------------------------------------------- */
.blog-post.blgtyp1 a.readmore {
	display: inline-block;
	background: #00c2e5;
	color: #fff !important;
	border: none;
	border-radius: 50px;
	padding: 12px 26px;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 1.5px;
	font-weight: 700;
	text-transform: uppercase;
	margin: 6px 0 0;
	transition: background .2s ease, transform .2s ease;
}
.blog-post.blgtyp1 a.readmore:hover {
	background: #101010;
	color: #fff !important;
	transform: translateY(-1px);
}
.blog-post.blgtyp1 a.readmore:after {
	display: none;
}

/* ---- Sidebar widgets ---------------------------------------------------- */
.sidebar .widget {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 22px 22px 10px;
	margin-bottom: 24px;
	box-shadow: 0 2px 12px rgba(16, 16, 16, .04);
}
.sidebar .widget .subtitle-wrap {
	margin-top: 0;
}
.sidebar .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* "Show more / Show less" toggle for long category/archive lists & tag clouds
   (collapsing is handled by blog.js — items past the limit get display:none). */
.sidebar .tdmc-showmore {
	display: inline-block;
	margin: 14px 0 2px;
	padding: 9px 18px;
	background: transparent;
	border: 1px solid #d8dce1;
	border-radius: 50px;
	color: #0098b5;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all .18s ease;
}
.sidebar .tdmc-showmore:hover {
	background: #00c2e5;
	border-color: #00c2e5;
	color: #fff;
}
.sidebar .tdmc-showmore:after {
	content: " \25be";          /* ▾ */
	font-size: 11px;
}
.sidebar .tdmc-showmore.is-open:after {
	content: " \25b4";          /* ▴ */
}
.sidebar .widget ul li {
	list-style: none;
	padding: 9px 0;
	border-bottom: 1px solid #f1f2f4;
	line-height: 1.5;
}
.sidebar .widget ul li:last-child {
	border-bottom: none;
}
.sidebar .widget ul li a {
	color: #4a4f57;
	transition: color .18s ease;
}
.sidebar .widget ul li a:hover {
	color: #00c2e5;
}

/* ---- Pagination --------------------------------------------------------- */
.wp-pagenavi {
	margin-top: 8px;
	text-align: center;
}
.wp-pagenavi a,
.wp-pagenavi span {
	display: inline-block;
	border: 1px solid #e3e3e3;
	border-radius: 9px;
	padding: 9px 15px;
	margin: 0 3px 6px;
	color: #555;
	font-weight: 600;
	transition: all .18s ease;
}
.wp-pagenavi span.current {
	background: #00c2e5;
	border-color: #00c2e5;
	color: #fff;
}
.wp-pagenavi a:hover {
	border-color: #00c2e5;
	color: #00c2e5;
}

/* ---- Responsive (theme breakpoint = 960px) ----------------------------- */
@media (max-width: 960px) {
	#headline {
		padding: 26px 0 4px;
	}
	#headline h2 {
		font-size: 28px;
	}
	.blog-post.blgtyp1 .blgt1-top-sec {
		padding: 18px 18px 0;
	}
	.blog-post.blgtyp1 .blgt1-inner {
		padding: 0 18px 20px;
	}
	.blog-post.blgtyp1 .blog1-header-wrap h3 {
		font-size: 20px;
	}
}
