/**
 * Philly Golf Guys Pro — Carousel / Hero Slider
 *
 * Splide.js overrides and hero carousel layout.
 *
 * @package Philly Golf Guys Pro
 */

/* ==========================================================================
   Hero Carousel Container
   ========================================================================== */

.pgg-hero-carousel {
	width: 100%;
}

.pgg-hero-carousel .splide__track {
	border-radius: 0;
}

/* ==========================================================================
   Hero Slides
   ========================================================================== */

.pgg-hero-slide {
	display: block;
	overflow: hidden;
	position: relative;
}

.pgg-hero-slide__image {
	aspect-ratio: 21 / 9;
	min-height: 360px;
	overflow: hidden;
	width: 100%;
}

.pgg-hero-slide__image img {
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
	display: block;
}

.pgg-hero-slide__overlay {
	background: linear-gradient(
		100deg,
		rgba(27, 94, 32, 0.85) 0%,
		rgba(27, 94, 32, 0.5) 50%,
		rgba(0, 0, 0, 0.1) 100%
	);
	bottom: 0;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.pgg-hero-slide__content {
	bottom: 0;
	left: 0;
	max-width: 680px;
	padding: var(--pgg-space-2xl) var(--pgg-space-xl);
	position: absolute;
	right: 0;
}

@media (min-width: 960px) {
	.pgg-hero-slide__content {
		padding: var(--pgg-space-3xl) 60px;
	}
}

.pgg-hero-slide__category {
	background-color: var(--pgg-accent);
	border-radius: 4px;
	color: var(--pgg-dark);
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin-bottom: var(--pgg-space-md);
	padding: 4px 12px;
	text-transform: uppercase;
}

.pgg-hero-slide__title {
	color: var(--pgg-white) !important;
	font-family: var(--pgg-font-heading);
	font-size: clamp(1.6rem, 1.2rem + 1.8vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: var(--pgg-space-md);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.pgg-hero-slide__excerpt {
	color: rgba(255, 255, 255, 0.9);
	display: none;
	font-size: 17px;
	line-height: 1.6;
	margin-bottom: var(--pgg-space-lg);
}

@media (min-width: 768px) {
	.pgg-hero-slide__excerpt {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* ==========================================================================
   Splide Navigation Overrides
   ========================================================================== */

/* Arrows */
.pgg-hero-carousel .splide__arrow {
	background-color: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	height: 44px;
	opacity: 0;
	transition: background-color var(--pgg-transition), opacity var(--pgg-transition);
	width: 44px;
}

.pgg-hero-carousel:hover .splide__arrow {
	opacity: 1;
}

.pgg-hero-carousel .splide__arrow:hover {
	background-color: var(--pgg-accent);
	border-color: var(--pgg-accent);
}

.pgg-hero-carousel .splide__arrow svg {
	fill: var(--pgg-white);
}

.pgg-hero-carousel .splide__arrow--prev {
	left: 16px;
}

.pgg-hero-carousel .splide__arrow--next {
	right: 16px;
}

/* Pagination dots */
.pgg-hero-carousel .splide__pagination {
	bottom: 16px;
}

.pgg-hero-carousel .splide__pagination__page {
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	height: 8px;
	transition: background-color var(--pgg-transition), transform var(--pgg-transition);
	width: 8px;
}

.pgg-hero-carousel .splide__pagination__page.is-active {
	background: var(--pgg-accent);
	transform: scale(1.25);
}

/* ==========================================================================
   Homepage Sections Below Carousel
   ========================================================================== */

.pgg-featured-reviews,
.pgg-latest-posts,
.pgg-cta-section {
	padding: var(--pgg-space-3xl) 30px;
}

.pgg-featured-reviews {
	background-color: var(--pgg-light);
}

.pgg-latest-posts {
	background-color: var(--pgg-white);
}

.pgg-cta-section {
	background-color: var(--pgg-primary);
}

.pgg-featured-reviews .wrap,
.pgg-latest-posts .wrap,
.pgg-cta-section .wrap {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--pgg-max-width);
}

/* Section headings */
.pgg-section-header {
	align-items: baseline;
	display: flex;
	justify-content: space-between;
	margin-bottom: var(--pgg-space-xl);
}

.pgg-section-header h2 {
	font-family: var(--pgg-font-heading);
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
	font-weight: 700;
	margin-bottom: 0;
}

.pgg-featured-reviews .pgg-section-header h2,
.pgg-latest-posts .pgg-section-header h2 {
	color: var(--pgg-dark);
}

.pgg-cta-section .pgg-section-header h2 {
	color: var(--pgg-white);
}

/* CTA section text */
.pgg-cta-section p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	margin-bottom: var(--pgg-space-xl);
}
