/* ==========================================================================
   GaryThinks Carousel — Frontend Styles
   Matches Elementor default widget aesthetic
   ========================================================================== */

/* Wrapper & Layout
   ========================================================================== */

.gt-carousel-wrapper {
	position: relative;
}

.gt-carousel-swiper {
	overflow: hidden;
}

.gt-carousel-slide {
	box-sizing: border-box;
	height: auto;    /* overridden by Elementor slide height slider */
	max-width: none; /* overridden by Elementor max-width slider */
	overflow: hidden; /* ensures rounded corners clip content */
}

/* ==========================================================================
   Navigation Arrows
   ========================================================================== */

.gt-carousel-btn-prev,
.gt-carousel-btn-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #6ec1e4;
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
	user-select: none;
}

.gt-carousel-btn-prev i,
.gt-carousel-btn-next i {
	font-size: 16px;
	color: inherit;
	line-height: 1;
}

/* Sides position (default) */
.gt-arrows-sides .gt-carousel-btn-prev {
	left: -20px;
}
.gt-arrows-sides .gt-carousel-btn-next {
	right: -20px;
}

/* Inside position */
.gt-arrows-inside .gt-carousel-btn-prev {
	left: 10px;
}
.gt-arrows-inside .gt-carousel-btn-next {
	right: 10px;
}

/* Bottom position */
.gt-arrows-bottom {
	padding-bottom: 60px;
}
.gt-arrows-bottom .gt-carousel-btn-prev,
.gt-arrows-bottom .gt-carousel-btn-next {
	top: auto;
	bottom: 0;
	transform: none;
}
.gt-arrows-bottom .gt-carousel-btn-prev {
	left: calc(50% - 48px);
}
.gt-arrows-bottom .gt-carousel-btn-next {
	right: calc(50% - 48px);
}

.gt-carousel-btn-prev:hover,
.gt-carousel-btn-next:hover {
	background-color: #4dafd9;
}

/* ==========================================================================
   Pagination Dots
   ========================================================================== */

.gt-carousel-swiper .swiper-pagination {
	position: relative;
	bottom: auto;
	margin-top: 16px;
	line-height: 1;
}

.gt-carousel-swiper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #c2c2c2;
	opacity: 1;
	transition: background 0.2s ease;
}

.gt-carousel-swiper .swiper-pagination-bullet-active {
	background: #6ec1e4;
}

/* ==========================================================================
   Images — Feature 1: size control, Feature 2: slide background
   ========================================================================== */

.gt-carousel-image {
	width: 100%;
	height: 300px;      /* default; overridden by Elementor slider */
	object-fit: cover;  /* default; overridden by Elementor select */
	display: block;
}

/* Image wrapper used for overlay button positioning */
.gt-carousel-image-wrap {
	position: relative;
	overflow: hidden;
}

/* Slide background color is applied via .gt-carousel-slide selector in Elementor */

/* ==========================================================================
   Images with Captions
   ========================================================================== */

.gt-carousel-caption-wrap {
	position: relative;
	overflow: hidden;
}

.gt-carousel-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px 16px;
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
}

/* ==========================================================================
   Cards — Feature 1: size, Feature 2: bg, Feature 3: keyline, Feature 4: hover
   ========================================================================== */

.gt-carousel-card {
	background-color: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	/* Feature 4: smooth transition for hover shadow & lift */
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Feature 3 — Keyline: border is applied via Elementor's Group_Control_Border selectors */

.gt-carousel-card-image img {
	width: 100%;
	height: 200px;      /* default; overridden by Elementor slider */
	object-fit: cover;
	display: block;
}

.gt-carousel-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gt-carousel-card-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 10px;
	line-height: 1.3;
}

.gt-carousel-card-description {
	font-size: 14px;
	color: #7a7a7a;
	line-height: 1.6;
	margin: 0 0 16px;
	flex: 1;
}

.gt-carousel-card-btn {
	display: inline-block;
	padding: 8px 20px;
	background-color: #6ec1e4;
	color: #fff;
	text-decoration: none;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 500;
	align-self: flex-start;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.gt-carousel-card-btn:hover {
	background-color: #4dafd9;
	color: #fff;
}

/* ==========================================================================
   Posts (overrides for linked title)
   ========================================================================== */

.gt-carousel-post-card .gt-carousel-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.gt-carousel-post-card .gt-carousel-card-title a:hover {
	color: #6ec1e4;
}

.gt-carousel-no-posts {
	text-align: center;
	color: #7a7a7a;
	padding: 20px;
}

/* ==========================================================================
   Global Button — Feature 5
   ========================================================================== */

/* Overlay button (centered over image) */
.gt-image-overlay-wrap {
	position: relative;
	overflow: hidden;
}

.gt-carousel-overlay-btn-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.15);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gt-image-overlay-wrap:hover .gt-carousel-overlay-btn-wrap {
	opacity: 1;
}

/* Below-image button */
.gt-carousel-below-btn-wrap {
	padding: 12px 0 4px;
	text-align: center;
}

/* Shared button base */
.gt-carousel-global-btn {
	display: inline-block;
	padding: 10px 24px;
	background-color: #6ec1e4;
	color: #fff;
	text-decoration: none;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.gt-carousel-global-btn:hover {
	background-color: #4dafd9;
	color: #fff;
}

/* ==========================================================================
   Testimonials — Feature 4: hover transition
   ========================================================================== */

.gt-carousel-testimonial {
	background-color: #fff;
	padding: 30px;
	text-align: center;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/* Feature 4: smooth hover transition */
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gt-carousel-testimonial-quote {
	font-size: 16px;
	font-style: italic;
	color: #444;
	line-height: 1.7;
	margin: 0 0 24px;
}

.gt-carousel-testimonial-author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.gt-carousel-testimonial-image img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.gt-carousel-testimonial-info {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gt-carousel-testimonial-name {
	font-weight: 700;
	font-size: 15px;
	color: #333;
	display: block;
}

.gt-carousel-testimonial-role {
	font-size: 13px;
	color: #999;
	display: block;
}
