/**
 * Blog One widget base styles.
 *
 * Card design: rounded white card with inset featured image,
 * colored category, bold title and an uppercase meta row
 * (date / read time / views). On card hover a blue share
 * button fades in over the image together with a tooltip
 * showing the post title.
 */

.gp-blog-one {
	position: relative;
	background-color: #ffffff;
}

.gp-blog-one__wrap {
	width: 92%;
	max-width: 1180px;
	margin-inline: auto;
}

/* Head */
.gp-blog-one__head {
	margin-bottom: 30px;
}

.gp-blog-one__heading {
	font-size: 32px;
	line-height: 1.1;
	margin: 0 0 7px;
}

.gp-blog-one__subheading {
	margin: 0;
	color: #65736d;
}

/* Grid */
.gp-blog-one__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Card */
.gp-blog-one__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	background-color: #ffffff;
	border: 0;
	border-radius: 14px;
	padding: 10px;
	box-shadow: 0 6px 24px rgba(23, 43, 64, 0.08);
	transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gp-blog-one__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(23, 43, 64, 0.14);
}

.gp-blog-one__card:focus-within {
	outline-offset: 2px;
}

/* Featured image */
.gp-blog-one__media {
	position: relative;
}

.gp-blog-one__thumb {
	display: block;
	width: 100%;
	margin-bottom: 0;
}

.gp-blog-one__thumb img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	object-position: center;
	border-radius: 10px;
	background-color: #eef2f5;
}

/* Card body */
.gp-blog-one__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 12px 12px;
	text-align: left;
}

/* Category */
.gp-blog-one__cat {
	margin-bottom: 8px;
}

.gp-blog-one__cat-link {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.02em;
	color: #e8a33d;
	text-decoration: none;
	transition: color 0.3s ease;
}

.gp-blog-one__cat-link::after {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background-color: #c7d0d8;
	vertical-align: middle;
	margin-left: 9px;
}

/* Title */
.gp-blog-one__title {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.35;
	color: #17232f;
	margin: 0;
}

.gp-blog-one__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

/* Meta row */
.gp-blog-one__meta {
	margin-top: auto;
	padding-top: 26px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #97a3ab;
}

.gp-blog-one__meta-item {
	display: inline-block;
}

.gp-blog-one__meta-item + .gp-blog-one__meta-item::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background-color: currentColor;
	opacity: 0.55;
	vertical-align: middle;
	margin: -2px 9px 0;
}

/* Share button + tooltip (revealed on card hover) */
.gp-blog-one__share {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.gp-blog-one__card:hover .gp-blog-one__share,
.gp-blog-one__card:focus-within .gp-blog-one__share {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gp-blog-one__share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: #2f80ed;
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(47, 128, 237, 0.45);
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.gp-blog-one__share-btn:hover {
	background-color: #1f6fe0;
	transform: scale(1.06);
}

.gp-blog-one__share-btn svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.gp-blog-one__tooltip {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background-color: #ffffff;
	color: #17232f;
	border: 1px solid #e6eaf0;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 240px;
	box-shadow: 0 10px 26px rgba(23, 43, 64, 0.14);
	pointer-events: none;
	z-index: 4;
}

/* Empty state (Elementor editor only) */
.gp-blog-one__empty {
	border: 1px dashed #b8c8c0;
	border-radius: 14px;
	padding: 40px 20px;
	text-align: center;
	color: #65736d;
	font-size: 14px;
}

/*--------------------------------------------------------------
# Responsive
#
# Base breakpoints match Elementor (tablet 1024px, mobile 767px)
# so the Style tab device controls override these when set.
--------------------------------------------------------------*/

/* Tablet and below */
@media (max-width: 1024px) {
	.gp-blog-one__head {
		margin-bottom: 20px;
	}

	.gp-blog-one__heading {
		font-size: 28px;
	}

	.gp-blog-one__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.gp-blog-one__card {
		border-radius: 13px;
	}

	.gp-blog-one__thumb img {
		height: 180px;
	}

	.gp-blog-one__title {
		font-size: 19px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.gp-blog-one__head {
		margin-bottom: 16px;
	}

	.gp-blog-one__heading {
		font-size: 24px;
		line-height: 1.2;
		margin-bottom: 5px;
	}

	.gp-blog-one__subheading {
		font-size: 14px;
		line-height: 1.6;
	}

	.gp-blog-one__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.gp-blog-one__card {
		border-radius: 12px;
	}

	.gp-blog-one__thumb img {
		height: 210px;
	}

	.gp-blog-one__body {
		padding: 16px 10px 10px;
	}

	.gp-blog-one__title {
		font-size: 18px;
	}

	.gp-blog-one__meta {
		padding-top: 20px;
	}

	.gp-blog-one__tooltip {
		max-width: 200px;
		font-size: 14px;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

	.gp-blog-one__card,
	.gp-blog-one__card:hover,
	.gp-blog-one__title a,
	.gp-blog-one__cat-link,
	.gp-blog-one__share,
	.gp-blog-one__share-btn {
		transition: none;
		transform: none;
	}
}
