/**
 * Advanced Testimonial — frontend styles.
 *
 * Theming is driven by CSS custom properties set inline on .at-wrapper:
 *   --at-primary, --at-accent, --at-text, --at-radius, --at-gap,
 *   --at-columns, --at-shadow
 *
 * @package AdvancedTestimonial
 */

.at-wrapper {
	--at-primary: #2563eb;
	--at-accent: #f59e0b;
	--at-text: #1f2937;
	--at-radius: 12px;
	--at-gap: 24px;
	--at-columns: 3;
	--at-shadow: 0 2px 10px rgba( 0, 0, 0, 0.06 );
	color: var( --at-text );
	box-sizing: border-box;
	margin-bottom: 2rem;
}

.at-wrapper *,
.at-wrapper *::before,
.at-wrapper *::after {
	box-sizing: border-box;
}

/* Width breakout — let the testimonials exceed the theme content width.
   Uses the canonical margin-based full-bleed technique (symmetric, no transform),
   which centers against a horizontally-centered theme container. */
.at-wrapper.at-width-wide {
	width: min( 1180px, 94vw );
	max-width: none;
	margin-left: calc( 50% - min( 1180px, 94vw ) / 2 );
	margin-right: calc( 50% - min( 1180px, 94vw ) / 2 );
}

.at-wrapper.at-width-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc( 50% - 50vw );
	margin-right: calc( 50% - 50vw );
	padding-left: clamp( 16px, 4vw, 60px );
	padding-right: clamp( 16px, 4vw, 60px );
	box-sizing: border-box;
}

.at-title {
	margin: 0 0 var( --at-gap, 24px );
	font-size: 1.6rem;
	line-height: 1.3;
	text-align: center;
	color: var( --at-text );
}

.at-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

/* ---------- Card ---------- */
.at-card {
	height: 100%;
}

.at-card__inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	padding: 26px;
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: var( --at-radius );
	box-shadow: var( --at-shadow );
}

.at-card__headline {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var( --at-text );
}

.at-card-layout .at-card__headline,
.at-carousel--spotlight .at-card__headline {
	font-size: 1.35rem;
}

.at-card__review {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var( --at-text );
	quotes: none;
}

.at-card__review p {
	margin: 0 0 0.6em;
}

.at-card__review p:last-child {
	margin-bottom: 0;
}

/* ---------- Stars ---------- */
.at-stars {
	display: inline-flex;
	gap: 2px;
}

.at-star {
	width: 18px;
	height: 18px;
	display: block;
}

.at-star.is-filled {
	fill: var( --at-accent );
}

.at-star.is-empty {
	fill: #d6dae0;
}

/* Half star: empty base with an accent-filled copy clipped to the left half. */
.at-star--half {
	position: relative;
}

.at-star__bg,
.at-star__fg {
	width: 18px;
	height: 18px;
	display: block;
}

.at-star__bg {
	fill: #d6dae0;
}

.at-star__fg {
	position: absolute;
	top: 0;
	left: 0;
	fill: var( --at-accent );
	clip-path: inset( 0 50% 0 0 );
}

/* ---------- Author ---------- */
.at-card__author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
}

.at-card__avatar {
	flex: 0 0 auto;
}

.at-avatar__img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.at-avatar__fallback {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --at-primary );
	color: #fff;
	font-weight: 700;
	font-size: 1.25rem;
	text-transform: uppercase;
}

/* Avatar shape */
.at-avatar-rounded .at-avatar__img,
.at-avatar-rounded .at-avatar__fallback {
	border-radius: 12px;
}

.at-avatar-square .at-avatar__img,
.at-avatar-square .at-avatar__fallback {
	border-radius: 0;
}

.at-card__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	min-width: 0;
}

.at-card__name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var( --at-text );
}

.at-card__role,
.at-card__location,
.at-card__date {
	font-size: 0.85rem;
	color: #6b7280;
}

.at-verified {
	display: inline-flex;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #10b981;
	align-items: center;
	justify-content: center;
}

.at-verified svg {
	width: 11px;
	height: 11px;
	fill: #fff;
}

.at-card__logo {
	margin-left: auto;
	flex: 0 0 auto;
}

.at-card__logo .at-logo__img {
	max-width: 88px;
	height: auto;
	display: block;
	opacity: 0.85;
}

/* ---------- Button ---------- */
.at-btn {
	display: inline-block;
	padding: 9px 18px;
	border-radius: calc( var( --at-radius ) / 1.6 );
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.at-btn-filled .at-btn {
	background: var( --at-primary );
	color: #fff;
}

.at-btn-filled .at-btn:hover {
	opacity: 0.9;
	color: #fff;
}

.at-btn-outline .at-btn {
	background: transparent;
	color: var( --at-primary );
	border: 1px solid var( --at-primary );
}

.at-btn-outline .at-btn:hover {
	background: var( --at-primary );
	color: #fff;
}

/* ---------- Socials ---------- */
.at-card__socials {
	display: flex;
	gap: 8px;
}

.at-social {
	display: inline-flex;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: #f1f3f6;
	color: var( --at-primary );
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.at-social:hover {
	background: var( --at-primary );
	color: #fff;
}

/* ---------- Grid ---------- */
.at-grid {
	display: grid;
	grid-template-columns: repeat( var( --at-columns, 3 ), minmax( 0, 1fr ) );
	gap: var( --at-gap, 24px );
}

/* ---------- List ---------- */
.at-list {
	display: flex;
	flex-direction: column;
	gap: var( --at-gap, 24px );
}

.at-list .at-card__inner {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.at-list .at-card__review {
	flex: 1 1 60%;
	order: 2;
}

.at-list .at-card__author {
	flex: 1 1 220px;
	margin-top: 0;
	order: 1;
}

/* ---------- Card layout ---------- */
.at-card-layout {
	display: flex;
	flex-direction: column;
	gap: var( --at-gap, 24px );
	max-width: 760px;
	margin: 0 auto;
}

.at-card-layout .at-card__inner {
	padding: 34px;
	text-align: center;
	align-items: center;
}

.at-card-layout .at-card__review {
	font-size: 1.15rem;
}

.at-card-layout .at-card__author {
	flex-direction: column;
	margin-top: 8px;
}

.at-card-layout .at-card__meta {
	align-items: center;
}

.at-card-layout .at-card__logo {
	margin-left: 0;
}

/* ---------- Masonry ---------- */
.at-masonry {
	/* column-width lets the count shrink to fit narrow containers; column-count
	   caps it, so a wide "columns" value never overcrowds a slim content area. */
	column-width: 260px;
	column-count: var( --at-columns, 3 );
	column-gap: var( --at-gap, 24px );
}

.at-masonry__item {
	break-inside: avoid;
	margin-bottom: var( --at-gap, 24px );
}

/* Cards flow at their natural height here; the shared equal-height rule would
   make each card fill the whole column and overlap its neighbours. */
.at-masonry .at-card,
.at-masonry .at-card__inner {
	height: auto;
}

/* ---------- Carousel ---------- */
.at-carousel {
	position: relative;
}

.at-carousel__viewport {
	overflow: hidden;
}

.at-carousel__track {
	display: flex;
	transition: transform 0.4s ease;
	will-change: transform;
}

.at-carousel__slide {
	flex: 0 0 100%;
	max-width: 100%;
	padding: 6px calc( var( --at-gap, 24px ) / 2 );
}

.at-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #fff;
	box-shadow: var( --at-shadow );
	cursor: pointer;
	z-index: 2;
	padding: 0;
}

.at-carousel__nav svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var( --at-primary );
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.at-carousel__nav:hover {
	background: var( --at-primary );
}

.at-carousel__nav:hover svg {
	stroke: #fff;
}

.at-carousel__prev {
	left: -8px;
}

.at-carousel__next {
	right: -8px;
}

.at-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.at-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cbd2da;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.at-carousel__dot.is-active {
	background: var( --at-primary );
	transform: scale( 1.25 );
}

/* ---------- Spotlight ---------- */
.at-carousel--spotlight .at-card__inner {
	padding: 40px;
	text-align: center;
	align-items: center;
}

.at-carousel--spotlight .at-card__review {
	font-size: 1.3rem;
	line-height: 1.6;
}

.at-carousel--spotlight .at-card__author {
	flex-direction: column;
	margin-top: 12px;
}

.at-carousel--spotlight .at-card__meta {
	align-items: center;
}

.at-carousel--spotlight .at-avatar__img,
.at-carousel--spotlight .at-avatar__fallback {
	width: 72px;
	height: 72px;
}

/* ---------- Read more ---------- */
/* Scoped + explicit resets so theme button styles (background, box, border)
   never apply — it stays a plain text link. */
.at-wrapper .at-readmore {
	display: none;
	align-self: flex-start;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var( --at-primary );
	font: inherit;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.at-wrapper .at-readmore:hover,
.at-wrapper .at-readmore:focus {
	background: none;
	box-shadow: none;
	text-decoration: underline;
	opacity: 0.75;
}

/* Clamp + button activate only after JS adds .at-has-readmore, so visitors
   without JS keep the full review text and no dead toggle. */
.at-has-readmore .at-readmore {
	display: inline-block;
}

.at-has-readmore .at-card__review--clamp {
	display: -webkit-box;
	-webkit-line-clamp: var( --at-clamp, 4 );
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.at-has-readmore .at-card__review--clamp.is-expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

/* ---------- Load more ---------- */
.at-loadmore-wrap {
	display: none;
	margin-top: var( --at-gap, 24px );
	text-align: center;
}

/* Activated by JS; without it every card stays visible and the button hidden. */
.at-has-loadmore .at-loadmore-wrap {
	display: block;
}

.at-has-loadmore .at-lm-collapsed {
	display: none;
}

.at-wrapper .at-loadmore {
	display: inline-block;
	padding: 10px 26px;
	border: 1px solid var( --at-primary );
	border-radius: 999px;
	background: var( --at-primary );
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.at-wrapper .at-loadmore:hover,
.at-wrapper .at-loadmore:focus {
	background: var( --at-primary );
	color: #fff;
	opacity: 0.88;
}

/* ---------- Group filter tabs ---------- */
.at-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: var( --at-gap, 24px );
}

.at-filter__btn {
	padding: 7px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: var( --at-text );
	font-size: 0.9rem;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.at-filter__btn:hover {
	border-color: var( --at-primary );
}

.at-filter__btn.is-active {
	background: var( --at-primary );
	border-color: var( --at-primary );
	color: #fff;
}

/* ---------- Marquee (continuous scroll) ---------- */
.at-marquee {
	position: relative;
}

.at-marquee__viewport {
	overflow: hidden;
}

.at-marquee__track {
	display: flex;
	width: max-content;
	padding: 8px 0;
	will-change: transform;
	animation: at-marquee-scroll var( --at-marquee-duration, 40s ) linear infinite;
}

.at-marquee__slide {
	flex: 0 0 auto;
	width: var( --at-marquee-item, 340px );
	max-width: 80vw;
	height: auto;
	margin-inline-end: var( --at-gap, 24px );
	box-sizing: border-box;
}

.at-marquee__slide,
.at-marquee__slide .at-card,
.at-marquee__slide .at-card__inner {
	height: 100%;
}

/* Pause while hovered or when a link inside is focused. */
.at-marquee:hover .at-marquee__track,
.at-marquee:focus-within .at-marquee__track {
	animation-play-state: paused;
}

/* JS adds this when the items do not overflow the row (nothing to scroll). */
.at-marquee--static .at-marquee__track {
	width: 100%;
	animation: none;
	justify-content: center;
}

/* Edge fade — masks both sides to transparent, so it works on any theme
   background (no assumed fill colour). */
.at-marquee--fade .at-marquee__viewport {
	-webkit-mask-image: linear-gradient( to right, transparent, #000 8%, #000 92%, transparent );
	mask-image: linear-gradient( to right, transparent, #000 8%, #000 92%, transparent );
}

/* Reverse direction (content scrolls left → right). */
.at-marquee--reverse .at-marquee__track {
	animation-direction: reverse;
}

@keyframes at-marquee-scroll {
	from {
		transform: translateX( 0 );
	}

	to {
		transform: translateX( -50% );
	}
}

/* RTL: flow in the opposite direction. */
.at-rtl .at-marquee__track {
	animation-name: at-marquee-scroll-rtl;
}

@keyframes at-marquee-scroll-rtl {
	from {
		transform: translateX( 0 );
	}

	to {
		transform: translateX( 50% );
	}
}

/* ---------- Keyboard focus (accessibility) ---------- */
.at-wrapper a:focus-visible,
.at-wrapper button:focus-visible,
.at-carousel__nav:focus-visible,
.at-carousel__dot:focus-visible {
	outline: 2px solid var( --at-primary );
	outline-offset: 2px;
}

/* ---------- Empty / RTL ---------- */
.at-empty {
	padding: 16px;
	background: #fff7ed;
	border: 1px dashed #fdba74;
	border-radius: 8px;
	color: #9a3412;
}

.at-rtl {
	direction: rtl;
}

.at-rtl .at-card__logo {
	margin-left: 0;
	margin-right: auto;
}

/* ---------- Responsive ---------- */
@media ( max-width: 900px ) {
	.at-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.at-masonry {
		column-count: 2;
	}
}

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

	.at-masonry {
		column-count: 1;
	}

	.at-list .at-card__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.at-carousel__prev {
		left: 2px;
	}

	.at-carousel__next {
		right: 2px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.at-carousel__track {
		transition: none;
	}

	/* Stop the marquee and let users scroll the strip manually instead. */
	.at-marquee__track {
		animation: none;
		width: 100%;
		flex-wrap: nowrap;
	}

	.at-marquee__viewport {
		overflow-x: auto;
	}
}

/* ============================================================
   Front-end Submission Form — [at_form]
   ============================================================ */

.at-form-wrap {
	max-width: 640px;
	margin: 0 auto;
	padding: 0;
}

.at-form-title {
	margin: 0 0 1.25rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--at-text, #1f2937);
}

.at-form-notice {
	padding: 0.875rem 1.125rem;
	border-radius: 8px;
	margin-bottom: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.at-form-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.at-form-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.at-form {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.at-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.at-form__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--at-text, #1f2937);
}

.at-form__required {
	color: #ef4444;
	margin-left: 0.15rem;
}

.at-form__input,
.at-form__textarea {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1.5px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.9375rem;
	color: var(--at-text, #1f2937);
	background: #fff;
	transition: border-color 0.18s;
	box-sizing: border-box;
	font-family: inherit;
}

.at-form__input:focus,
.at-form__textarea:focus {
	outline: none;
	border-color: var(--at-primary, #2563eb);
	box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.at-form__textarea {
	resize: vertical;
	min-height: 110px;
}

/* Star rating */
.at-form__stars {
	display: flex;
	gap: 0.25rem;
	align-items: center;
}

.at-form__star {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #d1d5db;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s, transform 0.1s;
}

.at-form__star svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
	stroke: none;
	display: block;
}

.at-form__star:hover,
.at-form__star:focus,
.at-form__star.at-form__star--hover,
.at-form__star.is-active {
	color: var(--at-accent, #f59e0b);
}

.at-form__star:focus {
	outline: 2px solid var(--at-primary, #2563eb);
	outline-offset: 2px;
	border-radius: 4px;
}

.at-form__star:active {
	transform: scale(0.92);
}

/* Submit button */
.at-form__actions {
	margin-top: 0.5rem;
}

.at-form__submit {
	display: inline-block;
	padding: 0.7rem 1.75rem;
	background: var(--at-primary, #2563eb);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
	font-family: inherit;
}

.at-form__submit:hover {
	background: #1d4ed8;
	box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.at-form__submit:focus {
	outline: 2px solid var(--at-primary, #2563eb);
	outline-offset: 3px;
}

.at-form__submit:active {
	transform: translateY(1px);
}

/* Honeypot — visually hidden from humans, accessible to bots */
.at-form__hp {
	position: absolute;
	left: -9999px;
	top: auto;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.at-form__submit {
		width: 100%;
		text-align: center;
	}
}

/* ============================================================
   Video testimonials — thumbnail, play button, lightbox
   ============================================================ */

.at-card__video {
	margin-bottom: 0.875rem;
}

.at-video {
	position: relative;
	border-radius: calc(var(--at-radius, 12px) - 4px);
	overflow: hidden;
}

.at-video__play {
	display: block;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	aspect-ratio: 16 / 9;
}

.at-video__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.at-video__thumb--placeholder {
	background: linear-gradient(135deg, var(--at-primary, #2563eb), #1e3a8a);
}

.at-video__play:hover .at-video__thumb,
.at-video__play:focus .at-video__thumb {
	transform: scale(1.04);
}

.at-video__play:focus {
	outline: 2px solid var(--at-primary, #2563eb);
	outline-offset: 2px;
}

.at-video__btn {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -27px 0 0 -31px; /* 54/2 = 27; 4px extra left nudge for optical centering */
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(17, 24, 39, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s;
}

.at-video__btn svg {
	width: 24px;
	height: 24px;
	fill: #fff;
	margin-left: 3px;
	display: block;
}

.at-video__play:hover .at-video__btn,
.at-video__play:focus .at-video__btn {
	background: var(--at-primary, #2563eb);
}

/* Lightbox */
.at-video-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.at-video-modal[hidden] {
	display: none;
}

.at-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.85);
}

.at-video-modal__dialog {
	position: relative;
	width: min(960px, 100%);
}

.at-video-modal__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.at-video-modal__frame iframe,
.at-video-modal__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.at-video-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.18s;
}

.at-video-modal__close:hover,
.at-video-modal__close:focus {
	background: rgba(255, 255, 255, 0.3);
}

.at-video-modal__close:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.at-video-modal__close svg {
	width: 20px;
	height: 20px;
	fill: #fff;
	display: block;
}

body.at-video-modal-open {
	overflow: hidden;
}

/* ============================================================
   Card skins — .at-style-{name}
   Base (.at-card__inner) IS the "classic" skin; each skin below
   only overrides the card look, never the markup. Adding a new
   skin = one entry in Renderer::card_styles() + a block here.
   ============================================================ */

/* --- Modern: primary-tinted card, no border, big quote mark --- */
.at-style-modern .at-card__inner {
	background: #eef3fd;
	background: color-mix( in srgb, var( --at-primary ) 8%, #ffffff );
	border: none;
}

.at-style-modern .at-card__review {
	position: relative;
	padding-top: 30px;
}

.at-style-modern .at-card__review::before {
	content: '\201C';
	position: absolute;
	top: -8px;
	left: 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 58px;
	line-height: 1;
	color: var( --at-primary );
}

/* --- Minimal: no box at all, just an accent rule + serif quote --- */
.at-style-minimal .at-card__inner {
	background: transparent;
	border: none;
	border-left: 3px solid var( --at-primary );
	border-radius: 0;
	box-shadow: none;
	padding: 10px 10px 10px 24px;
}

.at-style-minimal.at-rtl .at-card__inner {
	border-left: none;
	border-right: 3px solid var( --at-primary );
	padding: 10px 24px 10px 10px;
}

.at-style-minimal .at-card__review {
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: 1.05rem;
}

/* --- Bubble: review inside a chat bubble, author as the "sender" --- */
.at-style-bubble .at-card__inner {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0 0 6px;
}

.at-style-bubble .at-card__review {
	position: relative;
	background: #f1f3f6;
	border-radius: 16px;
	border-bottom-left-radius: 4px;
	padding: 16px 20px;
}

.at-style-bubble .at-card__review::after {
	content: '';
	position: absolute;
	left: 16px;
	bottom: -9px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 12px 0 0;
	border-color: #f1f3f6 transparent transparent transparent;
}

.at-style-bubble.at-rtl .at-card__review {
	border-bottom-left-radius: 16px;
	border-bottom-right-radius: 4px;
}

.at-style-bubble.at-rtl .at-card__review::after {
	left: auto;
	right: 16px;
	border-width: 10px 0 0 12px;
	border-color: #f1f3f6 transparent transparent transparent;
}

.at-style-bubble .at-card__author {
	padding-left: 6px;
}

/* --- Bold: dark card, big confident typography --- */
.at-style-bold .at-card__inner {
	background: #111827;
	border: none;
}

.at-style-bold .at-card__headline,
.at-style-bold .at-card__name {
	color: #ffffff;
}

.at-style-bold .at-card__review {
	color: #e5e7eb;
	font-size: 1.08rem;
	font-weight: 500;
	line-height: 1.6;
}

.at-style-bold .at-card__role,
.at-style-bold .at-card__location,
.at-style-bold .at-card__date {
	color: #9ca3af;
}

.at-style-bold .at-social {
	background: rgba( 255, 255, 255, 0.12 );
	color: #ffffff;
}

.at-style-bold .at-social:hover {
	background: var( --at-primary );
}

.at-style-bold .at-btn-outline .at-btn,
.at-style-bold.at-btn-outline .at-btn {
	color: #ffffff;
	border-color: rgba( 255, 255, 255, 0.4 );
}

.at-style-bold .at-card__logo .at-logo__img {
	filter: brightness( 0 ) invert( 1 );
	opacity: 0.75;
}

/* --- Glass: frosted translucent card (shines on colored sections) --- */
.at-style-glass .at-card__inner {
	background: rgba( 255, 255, 255, 0.55 );
	-webkit-backdrop-filter: blur( 12px );
	backdrop-filter: blur( 12px );
	border: 1px solid rgba( 255, 255, 255, 0.65 );
	box-shadow: 0 8px 32px rgba( 31, 41, 55, 0.12 );
}

/* --- Gradient: primary-to-accent gradient border frame --- */
.at-style-gradient .at-card__inner {
	border: 2px solid transparent;
	background:
		linear-gradient( #ffffff, #ffffff ) padding-box,
		linear-gradient( 135deg, var( --at-primary ), var( --at-accent ) ) border-box;
}

/* --- Outline: flat, transparent, just a confident primary border --- */
.at-style-outline .at-card__inner {
	background: transparent;
	border: 2px solid var( --at-primary );
	box-shadow: none;
}

/* --- Retro: neo-brutalist — thick ink border + hard offset shadow --- */
.at-style-retro .at-card__inner {
	background: #ffffff;
	border: 2px solid #111827;
	box-shadow: 5px 5px 0 #111827;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.at-style-retro .at-card:hover .at-card__inner {
	transform: translate( -2px, -2px );
	box-shadow: 7px 7px 0 #111827;
}

.at-style-retro .at-avatar__img,
.at-style-retro .at-avatar__fallback {
	border: 2px solid #111827;
}

.at-style-retro .at-btn-filled .at-btn {
	border: 2px solid #111827;
	box-shadow: 3px 3px 0 #111827;
	border-radius: 6px;
}
