/**
 * WisdomTree Customizations - Styles
 * Includes:
 * 1. 3-Age-Group Tuition Pricing:
 *    - Middle card prominently featured & larger (matching original design)
 *    - Orchestrated entrance animation (Middle card enters FIRST, side cards follow)
 *    - Liquid Sliding Glider Tab Switcher
 * 2. Footer Social Media Horizontal Layout
 */

/* ==========================================================================
   Tuition Pricing Component
   ========================================================================== */

/* Wrapper */
.wisdomtree-tuition-wrapper {
	width: 100%;
	position: relative;
	margin: 0 auto;
}

/* Age Switcher Container */
.wt-age-switcher-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 35px auto 48px auto;
	padding: 0 15px;
	position: relative;
	z-index: 5;
}

.wt-age-switcher {
	position: relative;
	display: inline-flex;
	background: #ffffff;
	border-radius: 60px;
	padding: 6px;
	box-shadow: 0 8px 28px rgba(52, 50, 124, 0.09);
	border: 2px solid rgba(209, 40, 129, 0.15);
	max-width: 100%;
}

/* Sliding Glider Indicator */
.wt-tab-glider {
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 0;
	width: 0;
	background: #d12881;
	border-radius: 50px;
	box-shadow: 0 6px 20px rgba(209, 40, 129, 0.38);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
	z-index: 1;
	will-change: transform, width;
}

/* Individual Tab Button */
.wt-age-tab {
	position: relative;
	z-index: 2;
	background: transparent !important;
	border: none;
	outline: none !important;
	cursor: pointer;
	padding: 11px 30px;
	border-radius: 50px;
	transition: color 0.3s ease, transform 0.15s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #34327c;
	min-width: 155px;
	user-select: none;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
}

.wt-age-tab:active {
	transform: scale(0.96);
}

.wt-age-tab.active {
	color: #ffffff !important;
}

.wt-tab-program {
	font-family: 'Alegreya Sans', sans-serif;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 700;
	opacity: 0.88;
	line-height: 1.2;
	transition: opacity 0.25s ease;
}

.wt-tab-age {
	font-family: 'Alegreya Sans', sans-serif;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	margin-top: 2px;
}

/* Tab Panels */
.wt-pricing-panels-container {
	position: relative;
	min-height: 520px;
}

.wt-pricing-panel {
	display: none;
	opacity: 0;
}

.wt-pricing-panel.active {
	display: block;
	opacity: 1;
}

.wt-pricing-panel.wt-panel-exiting {
	display: block;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

/* Cards Layout */
.wt-pricing-palden {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center; /* Center side cards vertically relative to taller middle card */
}

/* Base Pricing Card (Side Cards: 2-Day & 5-Day) */
.wt-pricing-card {
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
	margin: 2.4em 0 !important;
	position: relative;
	padding: 0 !important;
	box-shadow: 0 4px 22px rgba(52, 50, 124, 0.08);
}

.wt-pricing-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 35px rgba(52, 50, 124, 0.15);
}

/* Featured Middle Card (3-Day) - Prominently Taller & Elevated */
.wt-pricing-card.pricing-item-featured {
	margin: 0 !important;
	z-index: 10 !important;
	box-shadow: 0 18px 55px rgba(52, 50, 124, 0.26) !important;
	border: none !important;
}

.wt-pricing-card.pricing-item-featured:hover {
	transform: translateY(-8px) scale(1.015);
	box-shadow: 0 24px 65px rgba(52, 50, 124, 0.32) !important;
}

/* Deco Header Heights */
.wt-pricing-deco {
	position: relative;
	padding: 3.2em 0 7.8em !important;
	transition: background-color 0.3s ease;
}

/* Middle featured card has taller deco header just like original screenshot */
.wt-pricing-card.pricing-item-featured .wt-pricing-deco {
	padding: 4.5em 0 8.8em !important;
}

/* ==========================================================================
   Staggered Entrance Animation:
   Middle card enters FIRST (0ms delay),
   then Left card & Right card enter AFTERWARDS (140ms delay)
   ========================================================================== */
@keyframes wtMiddleCardEnter {
	0% {
		opacity: 0;
		transform: translateY(38px) scale(0.94);
	}
	70% {
		opacity: 1;
		transform: translateY(-4px) scale(1.02);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes wtSideCardEnter {
	0% {
		opacity: 0;
		transform: translateY(28px) scale(0.96);
	}
	70% {
		opacity: 0.95;
		transform: translateY(-2px) scale(1.008);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Card 2 (Middle, 3-Day): Emerges FIRST at 0.02s delay */
.wt-pricing-panel.active .wt-pricing-card:nth-child(2) {
	animation: wtMiddleCardEnter 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.02s both;
}

/* Card 1 (Left, 2-Day): Emerges SECOND at 0.14s delay */
.wt-pricing-panel.active .wt-pricing-card:nth-child(1) {
	animation: wtSideCardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

/* Card 3 (Right, 5-Day): Emerges SECOND at 0.16s delay */
.wt-pricing-panel.active .wt-pricing-card:nth-child(3) {
	animation: wtSideCardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

/* Price Pop Micro-Interaction */
@keyframes wtPricePop {
	0% {
		opacity: 0.5;
		transform: scale(0.9);
	}
	60% {
		transform: scale(1.05);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.wt-pricing-panel.active .wt-price-val {
	display: inline-block;
	animation: wtPricePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
}

.wt-pricing-panel.active .wt-savings-badge {
	animation: wtPricePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.22s both;
}

/* Header Deco Colors - High specificity to override theme inline styles */
.wisdomtree-tuition-wrapper .wt-pricing-card.wt-color-pink .pricing-deco,
.elementor-widget-alphabet-pricing .wt-pricing-card.wt-color-pink .pricing-deco {
	background-color: #d12881 !important;
}

.wisdomtree-tuition-wrapper .wt-pricing-card.wt-color-pink:hover .pricing-deco,
.elementor-widget-alphabet-pricing .wt-pricing-card.wt-color-pink:hover .pricing-deco {
	background-color: #bd1f72 !important;
}

.wisdomtree-tuition-wrapper .wt-pricing-card.wt-color-navy .pricing-deco,
.elementor-widget-alphabet-pricing .wt-pricing-card.wt-color-navy .pricing-deco {
	background-color: #34327c !important;
}

.wisdomtree-tuition-wrapper .wt-pricing-card.wt-color-navy:hover .pricing-deco,
.elementor-widget-alphabet-pricing .wt-pricing-card.wt-color-navy:hover .pricing-deco {
	background-color: #26245f !important;
}

.pricing-palden .wt-pricing-price {
	font-size: 4.6em !important;
	margin-bottom: 0.1em;
	line-height: 0.85;
	font-weight: 700;
	color: #ffffff !important;
}

.pricing-palden .wt-pricing-price .pricing-currency {
	font-size: 0.42em !important;
	vertical-align: top;
	margin-right: 2px;
}

.pricing-palden .wt-pricing-price .pricing-period {
	font-size: 0.28em !important;
	font-style: normal;
	font-weight: 600;
	margin-left: 2px;
	opacity: 0.9;
}

.wt-schedule-title {
	font-size: 2.2em;
	margin: 4px 0 0 0;
	color: #ffffff !important;
	font-family: 'Alegreya Sans', sans-serif;
	font-weight: 800;
}

.wt-schedule-days {
	color: rgba(255, 255, 255, 0.92);
	font-size: 15px;
	font-weight: 600;
	font-family: 'Alegreya Sans', sans-serif;
	margin-top: 2px;
	letter-spacing: 0.5px;
}

/* Tuition & Subsidy Breakdown Box */
.wt-card-breakdown {
	margin: 20px 22px 14px 22px;
	background: #fdfbf7;
	border-radius: 12px;
	padding: 12px 16px;
	border: 1px dashed #e3ddd5;
	min-height: 126px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wt-pricing-card.pricing-item-featured .wt-card-breakdown {
	margin: 24px 22px 16px 22px;
	padding: 14px 18px;
}

.wt-breakdown-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
	font-size: 13.5px;
	font-family: 'Lato', sans-serif;
}

.wt-breakdown-label {
	color: #666666;
	font-weight: 500;
}

.wt-breakdown-num {
	color: #999999;
	font-weight: 600;
}

.wt-breakdown-num del {
	opacity: 0.8;
}

.wt-savings-badge {
	background-color: #e6f7ec;
	color: #17813a;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 13px;
	display: inline-block;
}

.wt-breakdown-row.wt-net-cost {
	border-top: 1px solid #eee8df;
	margin-top: 5px;
	padding-top: 7px;
	font-weight: 700;
}

.wt-breakdown-row.wt-net-cost .wt-breakdown-label {
	color: #34327c;
	font-weight: 700;
}

.wt-net-highlight {
	color: #d12881;
	font-size: 15px;
	font-weight: 800;
}

/* Features List */
.wt-feature-list {
	flex-grow: 1;
	padding: 8px 18px !important;
	list-style: none !important;
	margin: 0 !important;
}

.wt-feature-list li {
	padding: 8px 0 !important;
	font-size: 15px !important;
	color: #555555 !important;
	border-bottom: 1px solid #f6f3ed;
	font-family: 'Lato', sans-serif;
}

.wt-feature-list li:last-child {
	border-bottom: none;
}

/* Action Button Container */
.wt-card-btn-container {
	padding: 15px 0 25px 0;
}

.wt-pricing-card.pricing-item-featured .wt-card-btn-container {
	padding: 20px 0 35px 0;
}

.wt-cta-btn {
	display: inline-block;
	background-color: #ff5757 !important;
	border-color: #e04444 !important;
	color: #ffffff !important;
	transition: all 0.3s ease !important;
}

.wt-cta-btn:hover {
	background-color: #e04444 !important;
	transform: scale(1.04);
}

/* Transparent Bottom Disclaimers & Notes Box */
.wt-tuition-notes-box {
	max-width: 960px;
	margin: 45px auto 10px auto;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 16px;
	padding: 22px 28px;
	box-shadow: 0 4px 20px rgba(52, 50, 124, 0.05);
	border: 1px solid rgba(209, 40, 129, 0.18);
	text-align: left;
}

.wt-note-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.6;
	color: #4b4b4b;
	font-family: 'Lato', sans-serif;
}

.wt-note-item:last-child {
	margin-bottom: 0;
}

.wt-note-bullet {
	color: #d12881;
	font-size: 16px;
	line-height: 1.4;
	margin-right: 8px;
	flex-shrink: 0;
}

.wt-note-grandfather strong {
	color: #34327c;
}

.wt-gov-link {
	color: #d12881 !important;
	font-weight: 700;
	text-decoration: underline !important;
	transition: color 0.2s ease;
	margin-left: 4px;
}

.wt-gov-link:hover {
	color: #34327c !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
	.wt-pricing-card {
		margin: 1.2em 0 !important;
	}

	.wt-pricing-card.pricing-item-featured {
		margin: 1.2em 0 !important;
	}
}

@media (max-width: 767px) {
	.wt-age-switcher {
		width: 100%;
		flex-direction: column;
		border-radius: 20px;
		padding: 8px;
	}

	.wt-tab-glider {
		transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.wt-age-tab {
		width: 100%;
		min-width: auto;
		border-radius: 14px;
		padding: 10px 16px;
		margin-bottom: 4px;
	}

	.wt-age-tab:last-child {
		margin-bottom: 0;
	}

	.wt-tuition-notes-box {
		padding: 16px 18px;
		margin-top: 30px;
	}
}

/* ==========================================================================
   Footer Social Media - Horizontal Row Layout
   ========================================================================== */
footer .social-media {
	display: flex !important;
	flex-direction: row !important;
	justify-content: center !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 12px !important;
	margin-top: 15px !important;
	width: 100% !important;
}

footer .social-media br {
	display: none !important;
}

/* Hide Twitter icon if present */
footer .social-media a:has(.fa-twitter),
footer .social-media a[href*="twitter"] {
	display: none !important;
}

footer .social-media a {
	display: inline-flex !important;
	justify-content: center !important;
	align-items: center !important;
	margin: 0 !important;
	text-decoration: none !important;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

footer .social-media a:hover {
	transform: translateY(-4px) scale(1.15) !important;
}

footer .social-media a i {
	display: inline-flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 42px !important;
	min-width: 42px !important;
	height: 42px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	font-size: 18px !important;
}

/* ==========================================================================
   Hero H1 SEO Enhancement (Visually matches theme .well h3 design)
   ========================================================================== */
.well h1.wt-hero-title {
	font-size: 24px;
	font-size: 120%;
	font-weight: 700;
	margin-top: 20px;
	margin-bottom: 20px;
	line-height: 1.2;
	color: inherit;
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}
