/* WealthYatra Curated Articles — frontend */

.wy-ca {
	--wy-gold: #c9a247;
	--wy-gold-dark: #b08d3a;
	--wy-ink: #1f2329;
	--wy-muted: #6b7280;
	--wy-line: #e8e6e1;
	--wy-bg-tab: #f7f5f2;
	--wy-radius: 12px;
	font-family: inherit;
	color: var(--wy-ink);
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px 48px;
	box-sizing: border-box;
}

.wy-ca *,
.wy-ca *::before,
.wy-ca *::after {
	box-sizing: border-box;
}

/* Tabs */
.wy-ca__tabs-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
}

.wy-ca__tabs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	flex: 1;
	padding: 4px 2px;
}

.wy-ca__tabs::-webkit-scrollbar {
	display: none;
}

.wy-ca__tabs-nav {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid var(--wy-line);
	background: #fff;
	color: var(--wy-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.wy-ca__tabs-nav:hover {
	border-color: var(--wy-gold);
	color: var(--wy-gold-dark);
}

.wy-ca__tab {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 132px;
	padding: 12px 16px;
	border: 1px solid var(--wy-line);
	border-radius: 10px;
	background: var(--wy-bg-tab);
	color: var(--wy-ink);
	cursor: pointer;
	text-align: left;
	transition: background .2s, color .2s, border-color .2s;
}

.wy-ca__tab-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.wy-ca__tab-sub {
	font-size: 11px;
	color: var(--wy-muted);
	line-height: 1.2;
}

.wy-ca__tab.is-active {
	background: var(--wy-gold);
	border-color: var(--wy-gold);
	color: #fff;
}

.wy-ca__tab.is-active .wy-ca__tab-sub {
	color: rgba(255, 255, 255, 0.85);
}

/* Toolbar / Sort bar — full-width pill, left cluster matching mockup */
.wy-ca__toolbar {
	margin-bottom: 22px;
}

.wy-ca__sort-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 10px 20px;
	border: 1px solid #e5e2dc;
	border-radius: 14px;
	background: #fff;
}

.wy-ca__sort-label {
	flex: 0 0 auto;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1f2329;
	line-height: 1;
}

.wy-ca__sort-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wy-gold);
	line-height: 0;
}

.wy-ca__sort-dropdown {
	position: relative;
	flex: 0 0 auto;
}

.wy-ca__sort-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1f2329;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.wy-ca__sort-trigger:focus {
	outline: none;
}

.wy-ca__sort-trigger:focus-visible {
	outline: 2px solid var(--wy-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.wy-ca__sort-chevron {
	flex: 0 0 auto;
	color: #1f2329;
	transition: transform .15s ease;
}

.wy-ca__sort-dropdown.is-open .wy-ca__sort-chevron {
	transform: rotate(180deg);
}

.wy-ca__sort-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 20;
	min-width: 160px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid #e5e2dc;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(20, 20, 20, 0.12);
}

.wy-ca__sort-menu[hidden] {
	display: none !important;
}

.wy-ca__sort-menu li {
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2329;
	cursor: pointer;
}

.wy-ca__sort-menu li:hover,
.wy-ca__sort-menu li[aria-selected="true"] {
	background: #f7f5f2;
	color: var(--wy-gold-dark);
}

/* View toggle (Grid / List) */
.wy-ca__view-toggle {
	display: inline-flex;
	align-items: stretch;
	margin-left: auto;
	flex: 0 0 auto;
	border: 1px solid #e5e2dc;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.wy-ca__view-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 8px 14px;
	border: 0;
	border-right: 1px solid #e5e2dc;
	background: #fff;
	color: #1f2329;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.wy-ca__view-btn:last-child {
	border-right: 0;
}

.wy-ca__view-btn svg {
	flex: 0 0 auto;
}

.wy-ca__view-btn:focus {
	outline: none;
}

.wy-ca__view-btn:focus-visible {
	outline: 2px solid var(--wy-gold);
	outline-offset: -2px;
}

.wy-ca__view-btn.is-active {
	background: var(--wy-gold);
	color: #fff;
}

.wy-ca__view-btn:not(.is-active):hover {
	background: #f7f5f2;
	color: var(--wy-gold-dark);
}

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

.wy-ca__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wy-ca__card.is-hidden,
.wy-ca__card.is-overflow {
	display: none !important;
}

/* List view */
.wy-ca[data-view="list"] .wy-ca__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 32px;
	row-gap: 0;
	align-items: stretch;
}

.wy-ca[data-view="list"] .wy-ca__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--wy-line);
}

.wy-ca[data-view="list"] .wy-ca__card.is-hidden,
.wy-ca[data-view="list"] .wy-ca__card.is-overflow {
	display: none !important;
}

.wy-ca[data-view="list"] .wy-ca__thumb {
	display: none;
}

.wy-ca[data-view="list"] .wy-ca__body {
	display: contents;
}

.wy-ca[data-view="list"] .wy-ca__cat,
.wy-ca[data-view="list"] .wy-ca__title,
.wy-ca[data-view="list"] .wy-ca__date {
	grid-column: 1;
}

.wy-ca[data-view="list"] .wy-ca__cat {
	order: 1;
}

.wy-ca[data-view="list"] .wy-ca__title {
	order: 2;
	font-size: 15px;
	margin: 0;
}

.wy-ca[data-view="list"] .wy-ca__date {
	order: 3;
	margin: 0;
}

.wy-ca[data-view="list"] .wy-ca__view {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: center;
	justify-self: end;
	order: 4;
	margin-top: 0;
	white-space: nowrap;
}

.wy-ca__thumb {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--wy-radius);
	overflow: hidden;
	cursor: pointer;
	background: #111;
	aspect-ratio: 16 / 9;
}

.wy-ca__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wy-ca__play {
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	width: 54px;
	height: 54px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--wy-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	transition: transform .2s;
}

.wy-ca__play svg {
	margin-left: 2px;
	width: 22px;
	height: 22px;
}

.wy-ca__thumb:hover .wy-ca__play {
	transform: translate(-50%, -50%) scale(1.06);
}

.wy-ca__duration {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: rgba(0, 0, 0, 0.82);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 4px;
	line-height: 1.3;
}

.wy-ca__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wy-ca__cat {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wy-gold-dark);
}

.wy-ca__title {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
}

.wy-ca__title-btn {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	font-weight: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.wy-ca__title-btn:hover {
	color: var(--wy-gold-dark);
}

.wy-ca__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	color: var(--wy-muted);
}

.wy-ca__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--wy-muted);
	padding: 40px 0;
}

/* View more */
.wy-ca__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.wy-ca__more {
	display: none;
	border: 1px solid var(--wy-gold);
	background: #fff;
	color: var(--wy-gold-dark);
	font-weight: 700;
	font-size: 14px;
	padding: 12px 28px;
	border-radius: 8px;
	cursor: pointer;
}

.wy-ca__more.is-visible {
	display: inline-flex;
}

.wy-ca__more:hover {
	background: var(--wy-gold);
	color: #fff;
}



@media (max-width: 960px) {
	.wy-ca__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wy-ca[data-view="list"] .wy-ca__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
	}
}

@media (max-width: 640px) {
	.wy-ca {
		padding: 0 12px 40px;
	}

	.wy-ca__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.wy-ca[data-view="list"] .wy-ca__grid {
		grid-template-columns: 1fr;
		column-gap: 0;
	}

	.wy-ca[data-view="list"] .wy-ca__card {
		gap: 10px 12px;
		padding: 14px 0;
	}

	.wy-ca__tabs-nav {
		display: none;
	}

	.wy-ca__tab {
		min-width: 120px;
		padding: 10px 12px;
	}

	.wy-ca__sort-bar {
		min-height: 48px;
		padding: 10px 14px;
		gap: 8px;
		border-radius: 12px;
		flex-wrap: wrap;
	}

	.wy-ca__sort-label {
		font-size: 12px;
	}

	.wy-ca__sort-trigger {
		font-size: 14px;
	}

	.wy-ca__view-toggle {
		margin-left: auto;
	}

	.wy-ca__view-btn {
		padding: 8px 10px;
		font-size: 12px;
	}

	.wy-ca__view-btn span {
		display: none;
	}

}


/* Card tweaks for articles */
.wy-ca__thumb {
	background: #f0ebe3;
	color: #c9a247;
}

.wy-ca__placeholder {
	width: 100%;
	height: 100%;
	min-height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #f7f4ee 0%, #ebe4d6 100%);
	color: #c9a247;
}

.wy-ca__title a {
	color: inherit;
	text-decoration: none;
}

.wy-ca__title a:hover {
	color: var(--wy-gold-dark);
}

.wy-ca__view {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	margin-top: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wy-gold-dark);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
}

.wy-ca__view-arrow {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.wy-ca__view:hover {
	color: var(--wy-gold);
	background: none;
}

.wy-ca__view:hover .wy-ca__view-arrow {
	transform: translateX(3px);
}

/* Single article */
.wy-ca-single {
	max-width: 860px;
	margin: 0 auto;
	padding: 40px 16px 72px;
	color: #1f2329;
}

.wy-ca-single__cat {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #b08d3a;
}

.wy-ca-single__title {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.2;
	font-weight: 700;
}

.wy-ca-single__meta {
	margin: 0 0 24px;
	color: #6b7280;
	font-size: 14px;
}

.wy-ca-single__content {
	font-size: 17px;
	line-height: 1.7;
	margin-bottom: 32px;
}

.wy-ca-single__content p:first-child {
	margin-top: 0;
}

.wy-ca-single__gallery {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0 0 32px;
}

.wy-ca-single__gallery-item {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #f4f4f4;
}

.wy-ca-single__gallery-item img {
	width: 100%;
	height: auto;
	display: block;
}

.wy-ca-single__cta-wrap {
	margin: 0 0 32px;
}

.wy-ca-single__cta {
	display: inline-flex;
	align-items: center;
	padding: 12px 24px;
	border-radius: 8px;
	background: #c9a247;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}

.wy-ca-single__cta:hover {
	background: #b08d3a;
}

.wy-ca-single__share {
	padding: 20px;
	border: 1px solid #e5e2dc;
	border-radius: 12px;
	background: #fff;
	margin-bottom: 28px;
}

.wy-ca-single__share-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
}

.wy-ca-single__share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wy-ca-share-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid #e5e2dc;
	border-radius: 8px;
	background: #f7f5f2;
	color: #1f2329;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.wy-ca-share-btn:hover {
	border-color: #c9a247;
	color: #b08d3a;
}

.wy-ca-single__share-status {
	margin: 10px 0 0;
	font-size: 13px;
	color: #007017;
}

.wy-ca-single__back a {
	color: #b08d3a;
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 640px) {
	.wy-ca-single {
		padding: 24px 12px 56px;
	}
}
