/*========================================
  PATENTS - AWARDS PAGE STYLES
  Sections:
   1. Tab shell (tabs / loader / panels / mobile accordion)
      -> copied 1:1 from style-podiatry-landingpg.css
   2. Shared (button, sr-only, empty state)
   3. Patents tab  (pat-)
   4. Awards tab   (awd-)
   5. Responsive
  RTL: logical properties (start/end, inline) are used wherever
  possible, so it flips automatically under dir="rtl".
  The banner (.pdc-hero) styles are NOT in this file.
========================================*/


/* ==========================================================================
   1. TAB SHELL — same structure & styles as the reference template
   ========================================================================== */
.podiatry-lp {
	--pod-blue: #127EC2;
	--pod-blue-dark: #0e6aa5;
	--pod-blue-bg: #eff6ff;
	--pod-blue-bg-soft: #dbeafe;
	--pod-green: #16a34a;
	--pod-purple: #7c3aed;
	--pod-red: #dc2626;
	--pod-amber: #d97706;
	--pod-orange: #ea580c;
	--pod-text: #111827;
	--pod-text-muted: #4b5563;
	--pod-border: #e5e7eb;
	--pod-radius-sm: 8px;
	--pod-radius-md: 14px;
	--pod-radius-lg: 20px;
	--pod-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
	--pod-max-width: 1682px;
	--pod-gap: 80px;

	max-width: var(--pod-max-width);
	margin: 0 auto;
	padding: 0 0 64px;
	color: var(--pod-text);
	position: relative;
}

.podiatry-lp * {
	box-sizing: border-box;
}

.podiatry-lp img {
	max-width: 100%;
	display: block;
}

/* Fade the whole component in once the cosmetic loader finishes */
.podiatry-lp.is-loading {
	opacity: 0;
}
.podiatry-lp.is-ready {
	opacity: 1;
	transition: opacity 280ms ease;
}

/* ---- Loader (first paint + every desktop tab switch) ---- */
.podiatry-loader {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(1px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 150ms ease;
	z-index: 40;
}
.podiatry-loader.is-visible {
	opacity: 1;
}
.podiatry-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid var(--pod-blue-bg-soft);
	border-top-color: var(--pod-blue);
	border-radius: 50%;
	animation: pod-spin 700ms linear infinite;
}
@keyframes pod-spin {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.podiatry-spinner { animation-duration: 1400ms; }
	.podiatry-lp.is-ready { transition: none; }
}

/* ---- Desktop tab bar ---- */
#tabSection {
	padding-top: 0;
}
.tab_outer {
	transform: translateY(-76px);
}
.podiatry-panel {
	padding-bottom: 0;
}
.podiatry-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid var(--pod-border);
	padding-top: 0;
	overflow-x: auto;
	scrollbar-width: none;
	border-radius: 10px 10px 0 0;
	background: #FFF;
	box-shadow: 0 -5px 31.7px -12px #ADB0B4;
}
.podiatry-tabs::-webkit-scrollbar {
	display: none;
}

.podiatry-tab-btn {
	appearance: none;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	padding: 14px 18px;
	font-size: 18px;
	font-weight: 500;
	color: var(--pod-text-muted);
	cursor: pointer;
	transition: color 150ms ease, border-color 150ms ease;
	flex: 1 1 auto;
	justify-content: center;
	line-height: 46px;
}
.podiatry-tab-btn:hover {
	color: var(--pod-blue-dark);
}
.podiatry-tab-btn:focus-visible {
	outline: 2px solid var(--pod-blue);
	outline-offset: 2px;
	border-radius: 4px;
}
.podiatry-tab-btn.is-active {
	color: #127EC2;
	border-bottom-color: var(--pod-blue);
}
.podiatry-tab-btn .tab-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	object-fit: contain;
}

/* ---- Panels — desktop behaviour ---- */
.podiatry-panels {
	padding-top: 0;
}

.podiatry-panel[hidden] {
	display: none;
}

.podiatry-panel.is-active {
	animation: pod-fade-in 260ms ease;
}
@keyframes pod-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.podiatry-panel.is-active { animation: none; }
}

/* Accordion trigger button — hidden on desktop, shown below breakpoint */
.podiatry-accordion-btn {
	display: none;
}

.podiatry-accordion-body {
	overflow: hidden;
}


/* ==========================================================================
   2. SHARED
   ========================================================================== */
.pa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	appearance: none;
	border: none;
	cursor: pointer;
	background: var(--pod-blue);
	color: #fff;
	text-decoration: none;
	font-family: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	padding: 14px 32px;
	border-radius: 999px;
	transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.pa-btn:hover,
.pa-btn:focus-visible {
	background: var(--pod-blue-dark);
	color: #fff;
	text-decoration: none;
}
.pa-btn:focus-visible {
	outline: 2px solid var(--pod-blue);
	outline-offset: 3px;
}
.pa-btn:active {
	transform: translateY(1px);
}

/* Visually hidden text (accessible button names) */
.pa-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pa-empty {
	text-align: center;
	color: var(--pod-text-muted);
	font-size: 18px;
	padding: 48px 0;
	margin: 0;
}


/* ==========================================================================
   3. PATENTS TAB — slick slider (1 slide, 1200px, centred)
   Prefix "pat-" — unique to this tab.
   ========================================================================== */
.pat-wrap {
	--pat-max-width: 1200px;
	max-width: var(--pat-max-width);
	margin: 0 auto;
	padding: 56px 0 8px;
}

/* Heading on the start side, arrows on the end side (auto-flips in RTL) */
.pat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 36px;
}

.pat-header-copy {
	min-width: 0;
}

.pat-heading {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	text-align: start;
	color: var(--pod-text);
}

.pat-desc {
	margin: 10px 0 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--pod-text-muted);
	text-align: start;
}

/* ---- arrows (injected by slick via appendArrows) ---- */
.pat-arrows {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}
.pat-arrow {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	margin: 0;
	background: #fff;
	color: var(--pod-blue);
	border: 1.5px solid var(--pod-blue);
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.pat-arrow:hover,
.pat-arrow:focus-visible {
	background: var(--pod-blue);
	color: #fff;
}
.pat-arrow:focus-visible {
	outline: 2px solid var(--pod-blue);
	outline-offset: 3px;
}
.pat-arrow:active {
	transform: scale(0.95);
}
.pat-arrow svg {
	display: block;
	width: 20px;
	height: 20px;
}
/* Chevrons mirror under RTL so they keep pointing the right way */
[dir="rtl"] .pat-arrow svg {
	transform: scaleX(-1);
}

/* ---- slider shell ---- */
.pat-slider {
	position: relative;
}

/* Before slick.js runs (or if there is only one slide), show just the first
   slide so several slides never flash stacked on top of each other. */
.pat-slider:not(.slick-initialized) .pat-slide:not(:first-child) {
	display: none;
}

.pat-slider .pat-slide {
	outline: none;
}

.pat-slider.slick-slider {
	margin-bottom: 0;
}

.pat-slide-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 2px;
}

/* Patent image: never cropped or distorted — keeps its own ratio and
   only shrinks to fit the 1200px column. */
.pat-slide-media {
	width: 100%;
	display: flex;
	justify-content: center;
}
.pat-slide-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

.pat-slide-title {
	margin: 0;
	padding: 48px 0;
	font-size: 24px;
	font-weight: 700;
	text-align: center;
	color: var(--pod-text);
}

.pat-slide-cta {
	margin-top: 40px;
	padding-bottom: 8px;
	text-align: center;
}


/* ==========================================================================
   4. AWARDS TAB — card grid + "Load more"
   Prefix "awd-" — unique to this tab.
   ========================================================================== */
.awd-wrap {
	--awd-max-width: 1200px; /* set to none for a full-width grid */
	--awd-gap: 24px;
	max-width: var(--awd-max-width);
	margin: 0 auto;
	padding: 56px 0 8px;
}

.awd-header {
	margin-bottom: 36px;
}

.awd-heading {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	text-align: start;
	color: var(--pod-text);
}

.awd-desc {
	margin: 10px 0 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--pod-text-muted);
	text-align: start;
}

.awd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--awd-gap);
}

/* ---- card ----
   Smooth entrance: every card fades/slides up. --awd-delay (set inline by
   PHP: 0, 80, 160 ... ms) staggers the cards of each batch, so the first 6
   and every "Load more" batch animate in one after another. */
.awd-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e7e9ec;
	border-radius: 8px;
	overflow: hidden;
	text-align: start;
	animation: awd-card-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
	animation-delay: var(--awd-delay, 0ms);
	transition: border-color 220ms ease, box-shadow 220ms ease;
}
.awd-card:hover {
	border-color: #cfe3f3;
	box-shadow: inset 0 0 0 1px #cfe3f3;
}

@keyframes awd-card-in {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}

.awd-card-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
	overflow: hidden;
}
.awd-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover; /* switch to "contain" if logos must never be cropped */
	object-position: center;
	transition: transform 450ms ease;
}
.awd-card:hover .awd-card-img {
	transform: scale(1.04);
}

.awd-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 22px 22px 24px;
}

.awd-card-title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pod-text);
	text-align: start;
}

.awd-card-excerpt {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--pod-text-muted);
	text-align: start;
}

/* Pushes the button to the bottom so buttons line up across a row */
.awd-card-actions {
	margin-top: auto;
}
.awd-card-btn {
	padding: 11px 24px;
	font-size: 14.5px;
}

/* ---- Load more ---- */
.awd-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 44px;
	opacity: 1;
	transition: opacity 300ms ease, transform 300ms ease;
}
.awd-more-wrap[hidden] {
	display: none;
}
.awd-more-wrap.is-done {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
}

.awd-more-btn {
	position: relative;
	min-width: 170px;
	padding: 14px 36px;
}
.awd-more-btn:disabled {
	cursor: default;
	background: var(--pod-blue);
}
.awd-more-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pod-spin 700ms linear infinite;
}
.awd-more-btn.is-loading .awd-more-spinner {
	display: inline-block;
}

.awd-status {
	min-height: 0;
	margin: 20px 0 0;
	text-align: center;
	font-size: 15px;
	color: var(--pod-red);
}
.awd-status:empty {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.awd-card,
	.awd-card-img,
	.awd-more-wrap {
		animation: none;
		transition: none;
	}
	.awd-card:hover .awd-card-img {
		transform: none;
	}
	.awd-more-spinner {
		animation-duration: 1400ms;
	}
}


/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */

/* ---- Tablet & mobile: collapse tab bar into accordion (< 1024px) ---- */
@media (max-width: 1023px) {

	.podiatry-tabs {
		display: none;
	}

	.podiatry-panels {
		padding-top: 24px;
	}

	.podiatry-panel {
		border: 1px solid var(--pod-border);
		border-radius: var(--pod-radius-md);
		margin-bottom: 20px;
		overflow: hidden;
		background: #fff;
		padding-top: 0;
	}
	#tabSection {
		padding-bottom: 0;
	}

	/* On mobile, panels are shown/hidden purely by the accordion body's
	   max-height, so make sure the [hidden] attribute never fights that. */
	.podiatry-panel[hidden] {
		display: block;
	}
	.podiatry-panel[hidden] .podiatry-accordion-body {
		max-height: 0 !important;
	}

	.podiatry-accordion-btn {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		background: #fff;
		border: none;
		padding: 18px 20px;
		font-size: 15.5px;
		font-weight: 600;
		text-align: start;
		cursor: pointer;
		color: var(--pod-text);
	}
	.podiatry-accordion-btn .tab-icon {
		width: 20px;
		height: 20px;
		color: var(--pod-blue);
		flex-shrink: 0;
		object-fit: contain;
	}
	.podiatry-accordion-btn .tab-label {
		flex: 1;
		font-size: 19px;
		font-weight: 600;
	}
	.accordion-chevron {
		width: 18px;
		height: 18px;
		flex-shrink: 0;
		transition: transform 200ms ease;
	}
	.podiatry-accordion-btn[aria-expanded="true"] .accordion-chevron {
		transform: rotate(180deg);
	}
	.podiatry-accordion-btn[aria-expanded="true"] {
		border-bottom: 1px solid var(--pod-border);
		background-color: #dfdfdf47;
	}

	.podiatry-accordion-body {
		max-height: 0;
		transition: max-height 260ms ease;
	}

	.podiatry-panel-inner {
		padding: 20px;
	}

	/* ---- Patents / Awards ---- */
	.pat-wrap,
	.awd-wrap {
		padding-top: 12px;
	}
	.pat-heading,
	.awd-heading {
		font-size: 24px;
	}
	.pat-header {
		margin-bottom: 24px;
	}
	.awd-header {
		margin-bottom: 24px;
	}
	.pat-slide-cta {
		margin-top: 28px;
	}

	/* Awards: 2 cards per row on tablet */
	.awd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
	.awd-more-wrap {
		margin-top: 36px;
	}
}

/* ---- Mobile fine-tuning (< 640px) ---- */
@media (max-width: 639px) {

	.container.tab_outer {
		max-width: 100%;
	}
	.podiatry-lp {
		padding: 0 9px 40px;
	}

	.podiatry-accordion-btn[aria-expanded="true"] {
		padding: 18px 10px;
	}
	.podiatry-panel-inner {
		padding: 20px 15px;
	}

	.pat-heading,
	.awd-heading {
		font-size: 22px;
	}
	.pat-arrow {
		width: 40px;
		height: 40px;
	}
	.pat-arrow svg {
		width: 18px;
		height: 18px;
	}
	.pat-slide-title {
		font-size: 20px;
		padding: 28px 0;
	}

	/* Awards: 1 card per row on mobile */
	.awd-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
	.awd-card-body {
		padding: 20px 18px 22px;
	}
	.awd-card-title {
		font-size: 19px;
	}
	.awd-card-excerpt {
		font-size: 15px;
	}
}