/* ==========================================================================
   Al Nowais Partners Grid — Default Styles
   Design tokens sourced from https://alnowais.socioholics.online/
   Accent Gold: #C5A55F  |  Primary Heading: Playfair Display  |  Body: DM Sans
   All values are overridden by Elementor style controls when set.
   ========================================================================== */

/* ---- Grid Container ---- */
.an-partners-wrapper {
	position: relative;
	border: none;
}

.an-partners-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(197, 165, 95, 0.08);
	border: none;
}

/* ---- Card ---- */
.an-partner-card {
	background: #0B1A2E;
	padding: 32px 28px;
	position: relative;
	cursor: pointer;
	transition: background 0.3s ease, opacity 0.35s ease, transform 0.35s ease;
}

.an-partner-card:hover {
	background: #0F2240;
}

/* Filter animation states */
.an-partner-card.an-card--hiding {
	opacity: 0;
	transform: scale(0.95);
}

.an-partner-card.an-card--hidden {
	display: none;
}

.an-partner-card.an-card--showing {
	opacity: 0;
	transform: scale(0.95);
}

.an-partner-card.an-card--visible {
	opacity: 1;
	transform: scale(1);
}

/* Left accent line */
.an-partner-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 2px;
	height: 0;
	background: #C5A55F;
	transition: height 0.3s ease;
}

.an-partner-card:hover::after {
	height: 100%;
}

/* ---- Card link wrapper ---- */
.an-partner-card a.an-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* ---- Card Top Row ---- */
.an-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

/* Logo / Initials Box */
.an-card-logo {
	width: 44px;
	height: 44px;
	border: 0.5px solid rgba(197, 165, 95, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 13px;
	font-weight: 600;
	color: #C5A55F;
	letter-spacing: 1px;
	flex-shrink: 0;
	overflow: hidden;
}

/* Image Logo — no box styling, sits inline with country */
.an-card-logo--image {
	width: auto;
	height: 40px;
	max-width: 120px;
	border: none;
	background: none;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
	overflow: hidden;
}

.an-card-logo--image img {
	height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.an-card-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Country / Sublabel */
.an-card-country {
	font-family: "DM Sans", sans-serif;
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.25);
	font-weight: 400;
}

/* Partner Name */
.an-card-name {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 8px;
	line-height: 1.3;
}

/* Description */
.an-card-desc {
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.4);
	line-height: 1.7;
	margin-bottom: 20px;
	font-weight: 400;
}

/* Tags */
.an-card-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.an-card-tag {
	font-family: "DM Sans", sans-serif;
	font-size: 9px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 3px 8px;
	border: 0.5px solid rgba(197, 165, 95, 0.2);
	color: rgba(197, 165, 95, 0.65);
	font-weight: 400;
}

/* ---- Filter Bar ---- */
.an-filter-bar {
	padding: 24px 0;
	border-bottom: 0.5px solid rgba(197, 165, 95, 0.1);
	display: flex !important;
	gap: 8px;
	flex-wrap: wrap !important;
	align-items: center;
	margin-bottom: 0;
	justify-content: flex-start;
	overflow: visible !important;
	overflow-x: visible !important;
	max-width: 100%;
}

/* Filter bar alignment */
.an-filter-bar--center {
	justify-content: center !important;
}

.an-filter-bar--right {
	justify-content: flex-end !important;
}

.an-filter-label {
	font-family: "DM Sans", sans-serif;
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.3);
	margin-right: 8px;
	font-weight: 400;
}

.an-filter-btn {
	font-family: "DM Sans", sans-serif;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 6px 14px;
	border: 0.5px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.4);
	background: transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 2px;
	font-weight: 400;
	white-space: nowrap;
	flex-shrink: 0;
}

.an-filter-btn:hover,
.an-filter-btn.active {
	border-color: #C5A55F;
	color: #C5A55F;
	background: rgba(197, 165, 95, 0.06);
}

/* ---- Responsive: Tablet ---- */
@media (max-width: 1024px) {
	.an-partners-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.an-partner-card {
		padding: 28px 22px;
	}
}

/* ---- Responsive: Mobile ---- */
@media (max-width: 767px) {
	.an-partners-grid {
		grid-template-columns: 1fr;
	}

	.an-partner-card {
		padding: 24px 16px;
	}

	.an-filter-bar {
		flex-wrap: wrap !important;
		gap: 8px 8px;
		padding: 16px 0;
		overflow: visible !important;
		overflow-x: visible !important;
	}

	.an-filter-label {
		width: 100%;
		margin-right: 0;
		margin-bottom: 6px;
	}

	.an-filter-btn {
		white-space: normal;
		text-align: center;
	}

	.an-card-name {
		font-size: 16px;
	}

	.an-card-desc {
		font-size: 13px;
	}
}
