/* TrainND Custom Styles */

/* ===================== ANIMATIONS ===================== */

/* Scroll-triggered fade-in-up */
.trainnd-animate {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.trainnd-animate.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Counter animation - handled by JS, just style the number */
.trainnd-counter {
	font-size: 3rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	line-height: 1.1;
}

/* Testimonial carousel */
.trainnd-carousel {
	position: relative;
	overflow: hidden;
}
.trainnd-carousel-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
}
.trainnd-carousel-slide {
	min-width: 50%;
	flex-shrink: 0;
	padding: 0 1rem;
	box-sizing: border-box;
}
@media (max-width: 768px) {
	.trainnd-carousel-slide {
		min-width: 100%;
	}
}
.trainnd-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 1.5rem;
}
.trainnd-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	padding: 0;
}
.trainnd-carousel-dot.active {
	background: var(--wp--preset--color--primary);
}

/* ===================== LAYOUT ===================== */

/* Gradient borders - orange/teal above hero, green/red below photos */
.trainnd-hero-border {
	height: 8px;
	background: linear-gradient(to right, #df944b 50%, #016c96 50%);
	margin: 0 !important;
	padding: 0;
	line-height: 0;
	font-size: 0;
}
.trainnd-photo-border {
	height: 8px;
	background: linear-gradient(to right, #568a42 50%, #9e3b2d 50%);
	margin: 0 !important;
	padding: 0;
	line-height: 0;
	font-size: 0;
}
/* Step numbers - green circles overlapping card top edge like original */
.trainnd-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background-color: #8BAD7B;
	color: #fff;
	font-size: 60px;
	font-weight: 600;
	font-family: Arial, sans-serif;
	margin: -60px auto 1rem auto;
}

/* Cards with colored bottom borders */
.trainnd-card {
	background: #fff;
	border-radius: 10px;
	padding: 2rem;
	box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.trainnd-card-orange {
	border-bottom: 10px solid var(--wp--preset--color--accent-orange);
}
.trainnd-card-green {
	border-bottom: 10px solid var(--wp--preset--color--accent-green);
}
.trainnd-card-red {
	border-bottom: 10px solid var(--wp--preset--color--accent-red);
}
.trainnd-card-blue {
	border-bottom: 10px solid var(--wp--preset--color--primary);
}

/* Testimonial card - white card with shadow like original */
.trainnd-testimonial-card {
	background: #fff;
	border-radius: 10px;
	padding: 2rem;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	height: 100%;
}
.trainnd-testimonial {
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-style: italic;
	font-size: 1rem;
	line-height: 1.7;
	border-left: none;
	padding-left: 0;
	margin: 0;
}
.trainnd-testimonial cite {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-weight: 700;
	font-size: 0.9rem;
}

/* Director cards */
.trainnd-director img {
	border-radius: 50%;
	width: 150px;
	height: 150px;
	object-fit: cover;
}

/* Accordion 2x2 grid layout like original */
.trainnd-accordion-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (max-width: 768px) {
	.trainnd-accordion-grid {
		grid-template-columns: 1fr;
	}
}
.trainnd-accordion-grid ul {
	margin: 0;
	padding: 0 0 0 1.25rem;
	list-style: disc;
}
.trainnd-accordion-grid ul li {
	color: #fff;
	padding: 0.15rem 0;
}

/* Accordion styling - full colored backgrounds matching original */
details.trainnd-faq {
	border-radius: 10px;
	margin-bottom: 0;
	overflow: hidden;
}
details.trainnd-faq summary {
	font-weight: 700;
	font-size: 1.1rem;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 1.5rem;
	color: #fff;
}
details.trainnd-faq summary::after {
	content: '+';
	font-size: 1.5rem;
	font-weight: 400;
	color: #fff;
}
details.trainnd-faq[open] summary::after {
	content: '−';
}
details.trainnd-faq > div,
details.trainnd-faq > ul,
details.trainnd-faq .wp-block-list {
	padding: 0.5rem 1.5rem 1.25rem;
	color: #fff;
}
details.trainnd-faq .wp-block-list li {
	color: #fff;
}
/* Full colored backgrounds per accordion */
details.trainnd-faq.accent-orange {
	background-color: var(--wp--preset--color--accent-orange);
}
details.trainnd-faq.accent-green {
	background-color: var(--wp--preset--color--accent-green);
}
details.trainnd-faq.accent-red {
	background-color: var(--wp--preset--color--accent-red);
}
details.trainnd-faq.accent-blue {
	background-color: var(--wp--preset--color--primary);
}

/* Region buttons */
.trainnd-region-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 10px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

/* Image gallery - full bleed, no gaps */
.trainnd-photo-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	padding: 0;
	line-height: 0;
	font-size: 0;
}
.trainnd-photo-strip img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
}
@media (max-width: 768px) {
	.trainnd-photo-strip {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Full-bleed borders */
.trainnd-hero-border,
.trainnd-photo-border {
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

/* Full-bleed hero diamond */
.trainnd-hero-diamond {
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

/* CTA overlay - diamond pattern bg with blue overlay at 69% opacity */
.trainnd-cta-diamond {
	position: relative;
}
.trainnd-cta-diamond::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--wp--preset--color--primary);
	opacity: 0.69;
	z-index: 1;
}
.trainnd-cta-diamond > * {
	position: relative;
	z-index: 2;
}

/* Colored corner accents on images like original */
.trainnd-accent-corner {
	position: relative;
}
.trainnd-accent-corner::before {
	content: '';
	position: absolute;
	width: 50%;
	height: 50%;
	z-index: 0;
}
.trainnd-accent-corner.corner-tl-orange::before {
	top: -10px; left: -10px;
	background: #df944b;
}
.trainnd-accent-corner.corner-tr-blue::before {
	top: -10px; right: -10px; left: auto;
	background: #016c96;
}
.trainnd-accent-corner.corner-br-red::before {
	bottom: -10px; right: -10px; left: auto; top: auto;
	background: #9e3b2d;
}
.trainnd-accent-corner.corner-bl-green::before {
	bottom: -10px; left: -10px; top: auto;
	background: #568a42;
}

/* Dark section */
.trainnd-dark-section {
	background-color: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--white);
}
.trainnd-dark-section h2,
.trainnd-dark-section h3,
.trainnd-dark-section h4 {
	color: var(--wp--preset--color--white);
}

/* Light bg section */
.trainnd-light-section {
	background-color: var(--wp--preset--color--light-bg);
}

/* Hero diamond pattern - light triangles with dark text like original */
.trainnd-hero-diamond {
	position: relative;
}
.trainnd-hero-diamond h1 {
	margin: 0;
}

/* Header nav dropdown must appear above hero/content sections */
header .wp-block-navigation,
.wp-block-template-part[data-area="header"] {
	position: relative;
	z-index: 100;
}
