/* ==========================================================================
   The Capital — Great Deals
   Swiper slider with horizontal card layout (image left, text right),
   bottom-centred nav arrows + pagination dots.
   ========================================================================== */

/* ------------------------------------------------------------------
   1. Section Wrapper
   ------------------------------------------------------------------ */
.tc-deals {
	position: relative;
	overflow: hidden;
	background-image: url(../img/wave-down.svg);
    background-size: 100%;
	background-position: bottom;
    background-repeat: no-repeat;
	padding-bottom: 170px !important;

	@media (max-width: 767px) {
		padding-bottom: 90px !important;
		background-size: cover;
	}
}

.tc-deals.no-bg {
	background: none;
	padding-bottom: 40px !important;
}

/* ------------------------------------------------------------------
   2. Header Row
   ------------------------------------------------------------------ */
.tc-deals-header .elementor-row,
.tc-deals-header .elementor-container {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

/* "Great" — 90px white */
.tc-deals-title-line1 {
	margin-bottom: 0 !important;

	@media (max-width: 767px) {
		text-align: center !important;
	}
}

.tc-deals-title-line1 .elementor-heading-title {
	font-size: 90px !important;
}

/* "Deals" — 56px gold italic, indented halfway past "Great" */
.tc-deals-title-line2 {
	padding-left: 140px;

	@media (max-width: 767px) {
		text-align: center !important;
	}
}

.tc-deals-title-line2 .elementor-heading-title {
	font-size: 56px !important;
}

.tc-deals-header p {
	font-size: 21px;

	@media (max-width: 767px) {
		text-align: center !important;
	}
}

@media (max-width: 767px) {
	.tc-deals-title-line1 .elementor-heading-title {
		font-size: 81px !important;
		margin-left: -50px;
	}
	.tc-deals-title-line2 .elementor-heading-title {
		font-size: 51px !important;
	}
	.tc-deals-title-line2 {
		padding-left: 150px;
	}
}

/* Right column — push subtitle text right */
.tc-deals-subtitle {
	text-align: right;
}

/* ------------------------------------------------------------------
   3. Outer Wrapper  (created by JS)
   ------------------------------------------------------------------ */
.tc-deals-outer {
	position: relative;
	width: 100%;
	max-width: 1260px;
	margin: 0 auto;
	padding: 0 30px;
}

/* ------------------------------------------------------------------
   4. Swiper Overrides
   ------------------------------------------------------------------ */
.tc-deals-outer .swiper {
	overflow: hidden;
	padding: 40px 0;
}

.tc-deals-outer .swiper-wrapper {
	display: flex;
}

.tc-deals-outer .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

/* ------------------------------------------------------------------
   5. Deal Card — Horizontal layout (image left, body right)
   ------------------------------------------------------------------ */
.tc-deal-card {
	background: #000;
	border: 1px solid rgba(216, 218, 215, 0.33);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	height: 100%;
	position: relative;
	transition: border-color 0.3s ease;
}

.tc-deal-card:hover {
	border-color: rgba(235, 163, 24, 0.4);
}

/* ── Image Side ── */
.tc-deal-card-img-wrap {
	width: 50%;
	min-width: 0;
	padding: 25px;
	flex-shrink: 0;
	overflow: hidden;
}

.tc-deal-card-img-wrap .elementor-widget-image {
	max-width: 260px;

	@media (max-width: 767px) {
		max-width: none;
		width: auto;
	}
}

.tc-deal-card-img-wrap img,
.tc-deal-card-img-wrap .elementor-image img {
	width: 100%;
	height: 100% !important;
	min-height: 360px;
	object-fit: cover;
	border-radius: 4px !important;
	display: block;
	transition: transform 0.4s ease;

	@media (max-width: 767px) {
		max-height: 350px;
		min-height: 1px;
	}
}

.tc-deal-card:hover .tc-deal-card-img-wrap img {
	transform: scale(1.05);
}

/* ── Body Side ── */
.tc-deal-card-body {
	padding: 28px 24px;
	padding-left: 0;
	padding-right: 50px;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0; /* prevent text overflow */
}

/* Counter (1 / 4) — injected by JS */
.tc-deal-counter {
	font-family: var(--tc-font-body);
	font-size: 15px;
	font-weight: 500;
	color: #888;
	margin-bottom: 16px;
}

@media (max-width: 767px) {
	.tc-deal-counter {
		font-size: 13px;
	}
}

/* Card title */
.tc-deal-card-body .tc-deal-card-title {
	margin-bottom: 0;
}

.tc-deal-card-body .tc-deal-card-title .elementor-heading-title,
.tc-deal-card-body h4 {
	font-family: 'DM Sans', var(--tc-font-body), sans-serif !important;
	font-size: 25px !important;
	font-weight: 400 !important;
	line-height: 1.25;
	color: var(--tc-white);
}

/* Card description */
.tc-deal-card-body .elementor-widget-text-editor {
	font-size: 16px;
	color: #fff;
	line-height: 27px;
	margin-top: auto;
}

.tc-deal-card-body .tc-deal-card-desc {
	margin-bottom: 0;
}

/* Card button */
.tc-deal-card-body .elementor-widget-button {
	font-size: 14px;
}

.tc-deal-card-body .elementor-widget-button .elementor-button {
	padding: 0 !important;
	justify-content: flex-start;
	display: inline-flex !important;
}

.tc-deal-card-body .elementor-widget-button .elementor-button .elementor-button-icon svg {
	fill: var(--tc-gold);
}

/* Learn More link — pushed to bottom */
.tc-deal-card-body .tc-deal-card-link {
	margin-top: 40px;
}

/* Remove Elementor widget default spacing inside card body */
.tc-deal-card-body > .elementor-widget {
	margin-bottom: 12px;

	@media (max-width: 767px) {
		margin-bottom: 10px !important;
	}
}

.tc-deal-card-body > .elementor-widget:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------
   6. Learn More Link — Strip Elementor button chrome
   ------------------------------------------------------------------ */
.tc-deal-card-link .elementor-button,
.tc-deal-card-link a.elementor-button {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	font-family: var(--tc-font-body) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 1.5px !important;
	text-transform: uppercase !important;
	color: var(--tc-white) !important;
	transition: color 0.2s ease !important;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
}

.tc-deal-card-link .elementor-button:hover {
	color: var(--tc-gold) !important;
}

.tc-deal-card-link .elementor-button-icon {
	color: var(--tc-gold) !important;
	transition: transform 0.25s ease;
}

.tc-deal-card-link .elementor-button:hover .elementor-button-icon {
	transform: translateX(4px);
}

/* CPT-rendered "Learn More" link (no Elementor wrapper) */
a.tc-deal-card-link--cpt {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
	transition: color 0.2s ease;
}

a.tc-deal-card-link--cpt svg {
	color: var( --tc-gold, #EBA318 );
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

a.tc-deal-card-link--cpt:hover {
	color: var( --tc-gold, #EBA318 );
}

a.tc-deal-card-link--cpt:hover svg {
	transform: translateX( 4px );
}

/* ------------------------------------------------------------------
   7. Navigation — arrows absolute left/right of outer, dots centred below
   ------------------------------------------------------------------ */
.tc-deals-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	/* margin-top: 40px; */
	/* position: absolute; */
	width: 100%;
	left: 0;

	@media (max-width: 767px) {
		margin-top: 25px;
		position: static;
	}
}

/* Arrow buttons — absolute positioned at sides of .tc-deals-outer */
.tc-deals-outer .tc-deals-prev,
.tc-deals-outer .tc-deals-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 53px;
	height: 53px;
	background: #fff !important;
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #000;
	transition: background 0.2s ease;
	padding: 0;
	line-height: 1;
	z-index: 10;
}

.tc-deals-outer .tc-deals-prev svg,
.tc-deals-outer .tc-deals-next svg {
	width: 20px;
	height: auto;
}

.tc-deals-outer .tc-deals-prev:hover,
.tc-deals-outer .tc-deals-next:hover {
	background: rgba(255, 255, 255, 0.75);
}

.tc-deals-outer .tc-deals-prev.swiper-button-disabled,
.tc-deals-outer .tc-deals-next.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

.tc-deals-outer .tc-deals-prev {
	left: calc(-53px);
}

.tc-deals-outer .tc-deals-next {
	right: calc(-53px);
}

/* Pagination dots */
.tc-deals-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	position: static;
}

.tc-deals-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 1);
	opacity: 1;
	cursor: pointer;
	transition: background 0.25s ease, width 0.25s ease, border-radius 0.25s ease;
}

.tc-deals-pagination .swiper-pagination-bullet-active {
	width: 28px;
	border-radius: 4px;
	background: var(--tc-gold);
}

/* ------------------------------------------------------------------
   8. Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1400px) {
	.tc-deals-outer .tc-deals-prev {
		left: 25px;
	}
	.tc-deals-outer .tc-deals-next {
		right: 25px;
	}
}

@media (max-width: 1024px) {
	.tc-deal-card-img-wrap {
		width: 50%;
	}
}

@media (max-width: 767px) {
	.tc-deal-card-body .tc-deal-card-link {
		margin-top: 25px;
	}

	.tc-deals-outer .swiper {
		padding-bottom: 0px;
	}

	.tc-deals-outer .tc-deals-prev,
	.tc-deals-outer .tc-deals-next {
		/* right: 10px; */
        width: 40px;
        height: 40px;
	}

	.tc-deals-outer {
		padding: 0 70px;
	}

	.tc-deals-outer .tc-deals-next {
		right: 15px;
	}

	.tc-deals-outer .tc-deals-prev {
		left: 15px;
	}

	.tc-deals-mobile {
		margin-top: 10px;
	}

	/* Stack card vertically on mobile */
	.tc-deal-card {
		flex-direction: column;
		height: auto;
	}

	.tc-deal-card-img-wrap {
		width: 100%;
		min-width: 0;
		padding-bottom: 0;
		aspect-ratio: 9/5;
	}

	.tc-deal-card-body {
		padding: 20px;
	}

	/* Header stacking */
	.tc-deals-header .elementor-row,
	.tc-deals-header .elementor-container {
		flex-direction: column;
		gap: 0px;
	}

	.tc-deals-header .elementor-widget-text-editor,
	.tc-deals-header .elementor-widget-text-editor p {
		margin-bottom: 0 !important;
	}

	.tc-deals-subtitle {
		text-align: left;
	}

	.tc-deal-card-body .tc-deal-card-title .elementor-heading-title,
	.tc-deal-card-body h4 {
		font-size: 20px !important;
	}

	.tc-deal-card-body .elementor-widget-text-editor {
		font-size: 14px;
		line-height: 22px;
		margin-top: 25px;
	}

	.tc-deal-card-body .elementor-widget-button {
		font-size: 13px;
		margin-bottom: 0 !important;
	}

	.tc-deals-header {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.tc-deals-header .elementor-element-populated {
		padding: 0px !important;
	}
}
