/* ==========================================================
   ACF Repeater Loop Grid — Frontend Styles
   ========================================================== */

/* ---- Editor Notice ---- */
.arlg-notice {
	padding: 20px 24px;
	background: #f8f9fa;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	color: #475569;
	font-size: 14px;
	text-align: center;
}

/* ---- Grid Layout ---- */
.arlg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

@media (max-width: 1024px) {
	.arlg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.arlg-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- Card ---- */
.arlg-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	height: 100%;
}

.arlg-card--hover:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* Image */
.arlg-card__image {
	position: relative;
	width: 100%;
	height: 220px;
	overflow: hidden;
	flex-shrink: 0;
}

.arlg-card__image img,
.arlg-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Content */
.arlg-card__content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

/* Overtitle */
.arlg-card__overtitle {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #6366f1;
}

/* Title */
.arlg-card__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #1e1e2e;
	margin: 0;
}

/* Description */
.arlg-card__description {
	font-size: 14px;
	line-height: 1.6;
	color: #64748b;
	margin: 0;
}
.arlg-card__description p:last-child {
	margin-bottom: 0;
}

/* Extras */
.arlg-card__extra {
	font-size: 14px;
	color: #475569;
	margin: 0;
}
.arlg-card__extra a {
	color: #6366f1;
	text-decoration: none;
}
.arlg-card__extra a:hover {
	text-decoration: underline;
}
.arlg-card__extra-image img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}
.arlg-card__extra-wysiwyg {
	font-size: 14px;
	line-height: 1.6;
}

/* ---- Carousel Wrapper ---- */
.arlg-carousel-wrapper {
	position: relative;
	width: 100%;
}

.arlg-swiper {
	width: 100%;
	padding-bottom: 48px; /* room for pagination */
}

.arlg-swiper .swiper-slide {
	height: auto;
}

/* Navigation Arrows */
.arlg-swiper-button-prev,
.arlg-swiper-button-next {
	position: absolute;
	top: calc(50% - 24px);
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
	transform: translateY(-50%);
}
.arlg-swiper-button-prev:hover,
.arlg-swiper-button-next:hover {
	background: rgba(0, 0, 0, 0.75);
}
.arlg-swiper-button-prev {
	left: -16px;
}
.arlg-swiper-button-next {
	right: -16px;
}

@media (max-width: 767px) {
	.arlg-swiper-button-prev {
		left: 4px;
	}
	.arlg-swiper-button-next {
		right: 4px;
	}
}

.arlg-swiper-button-prev svg,
.arlg-swiper-button-next svg {
	width: 20px;
	height: 20px;
}

.arlg-swiper-button-prev.swiper-button-disabled,
.arlg-swiper-button-next.swiper-button-disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* Pagination */
.arlg-carousel-wrapper .swiper-pagination {
	position: relative;
	bottom: 0;
	margin-top: 16px;
	text-align: center;
}

.arlg-carousel-wrapper .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #cbd5e1;
	opacity: 1;
	transition: background 0.2s ease, transform 0.2s ease;
}

.arlg-carousel-wrapper .swiper-pagination-bullet-active {
	background: #6366f1;
	transform: scale(1.2);
}

.arlg-carousel-wrapper .swiper-pagination-progressbar {
	background: #e2e8f0;
	height: 4px;
	border-radius: 2px;
}

.arlg-carousel-wrapper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
	background: #6366f1;
	border-radius: 2px;
}
