/**
 * Solar Topics widget base styles.
 */

.gp-solar-topics {
	position: relative;
}

.gp-solar-topics__head {
	margin-bottom: 24px;
}

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

.gp-solar-topics__subheading {
	margin: 0;
	color: #65736d;
}

.gp-solar-topics__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 13px;
}

.gp-solar-topics__item {
	display: block;
	min-width: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	background-color: #ffffff;
	border: 1px solid #e1e9e4;
	border-radius: 18px;
	padding: 20px;
	color: inherit;
	text-decoration: none;
	transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gp-solar-topics__item:hover {
	transform: translateY(-2px);
}

.gp-solar-topics__item-icon {
	display: grid;
	place-items: center;
	width: 43px;
	height: 43px;
	font-size: 22px;
	line-height: 1;
	background-color: #eaf6f0;
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
}

.gp-solar-topics__item-icon img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: inherit;
	object-fit: contain;
}

.gp-solar-topics__item-icon i {
	display: block;
	line-height: 1;
}

.gp-solar-topics__item-title {
	display: block;
	font-weight: bold;
}

.gp-solar-topics__item-desc {
	color: #65736d;
}

/*--------------------------------------------------------------
# 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-solar-topics__head {
		margin-bottom: 20px;
	}

	.gp-solar-topics__heading {
		font-size: 28px;
	}

	.gp-solar-topics__subheading {
		font-size: 15px;
	}

	.gp-solar-topics__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
	.gp-solar-topics__item {
		padding: 16px;
		border-radius: 16px;
	}

	.gp-solar-topics__item-icon {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
}

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

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

	.gp-solar-topics__subheading {
		font-size: 14px;
		line-height: 1.6;
	}

	.gp-solar-topics__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.gp-solar-topics__item {
		padding: 14px;
		border-radius: 14px;
	}

	.gp-solar-topics__item-icon {
		width: 36px;
		height: 36px;
		font-size: 18px;
		border-radius: 10px;
		margin-bottom: 8px;
	}

	.gp-solar-topics__item-icon img,
	.gp-solar-topics__item-icon i {
		max-width: 22px;
		max-height: 22px;
	}

	.gp-solar-topics__item-title {
		font-size: 15px;
		line-height: 1.35;
	}

	.gp-solar-topics__item-desc {
		font-size: 13px;
		line-height: 1.5;
	}
}
