/**
 * Certify — 導師單頁 (/members/{user_login})
 *
 * @package Certify
 */

.cms-page {
	--cms-primary: #494949;
	--cms-primary-dark: #152a45;
	--cms-accent: #ccd226;
	--cms-accent-light: #f5d78a;
	--cms-blue: #2563eb;
	--cms-tag-bg: #e8f4fc;
	--cms-tag-text: #2563eb;
	--cms-muted: #64748b;
	--cms-radius: 16px;
	--cms-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
	background: linear-gradient(180deg, #eef4fb 0%, #f8fafc 240px, #f1f5f9 100%);
	padding-bottom: 64px;
}

div#main > .container-fluid {
	padding: 0;
}

/* 頂部列 */
.cms-topbar {
	background: var(--cms-primary);
	border-bottom: 3px solid var(--cms-accent);
}

.cms-topbar__inner {
	display: flex;
	justify-content: flex-end;
	padding-top: 10px;
	padding-bottom: 10px;
}

.cms-topbar__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: inherit;
	text-decoration: none;
	cursor: pointer;
}

.cms-topbar__back:hover {
	color: var(--cms-accent-light);
}

.cms-topbar__back-icon {
	width: 18px;
	height: 18px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hero 主卡 */
.cms-hero {
	padding: 28px 0 8px;
}

.cms-hero__card {
	background: #fff;
	border-radius: var(--cms-radius);
	box-shadow: var(--cms-shadow);
	padding: 28px 28px 24px;
	position: relative;
}

.cms-hero__profile {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 24px 28px;
	align-items: start;
}

.cms-hero__avatar {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	border: 5px solid var(--cms-accent);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
	margin-top: -56px;
	background: #fff;
}

.cms-hero__avatar--placeholder {
	display: block;
	background: linear-gradient(145deg, #dbeafe, #93c5fd);
}

.cms-hero__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px 14px;
	margin-bottom: 8px;
}

.cms-hero__name {
	margin: 0;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}

.cms-hero__role {
	font-size: 16px;
	color: var(--cms-muted);
	font-weight: 600;
}

.cms-hero__badges-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.cms-hero__plan-badge {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f59e0b, #e8a317);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.cms-hero__stars {
	display: inline-flex;
	gap: 3px;
}

.cms-hero__star {
	width: 18px;
	height: 18px;
	background: var(--cms-accent);
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.cms-hero__member-id {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--cms-muted);
}

.cms-hero__subjects {
	margin-bottom: 14px;
}

.cms-hero__subjects .certify-member-card__subjects {
	margin: 0;
}

.cms-hero__tagline {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.65;
	color: #334155;
	max-width: 640px;
}

.cms-hero__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cms-hero__contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #cbd5e1;
	color: #0f172a;
	background: #fff;
}

.cms-hero__contact:hover {
	background: #f8fafc;
}

.cms-hero__contact--whatsapp {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
}

.cms-hero__contact--whatsapp:hover {
	background: #1ebe57;
	color: #fff;
}

.cms-hero__contact-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background: currentColor;
}

.cms-hero__contact-icon--phone {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6.6 10.8a15 15 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M6.6 10.8a15 15 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1L6.6 10.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-hero__contact-icon--email {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-hero__contact-icon--whatsapp {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.5 14.5c-.3-.2-1.8-.9-2.1-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.2-1.2-.4-2.3-1.4-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.5.1-.6.1-.1.3-.3.4-.5.1-.2.1-.3 0-.5-.1-.2-.7-1.7-1-2.3-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.7.3-.2.3-.9.9-.9 2.1s.9 2.5 1.1 2.6c.1.2 1.9 2.9 4.6 4 .6.3 1.1.4 1.5.3.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.1-1.2-.1-.1-.3-.2-.6-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.5 14.5c-.3-.2-1.8-.9-2.1-1-.3-.1-.5-.2-.7.2-.2.3-.8 1-.9 1.2-.2.2-.3.2-.6.1-.3-.2-1.2-.4-2.3-1.4-.9-.8-1.4-1.7-1.6-2-.2-.3 0-.5.1-.6.1-.1.3-.3.4-.5.1-.2.1-.3 0-.5-.1-.2-.7-1.7-1-2.3-.2-.6-.5-.5-.7-.5h-.6c-.2 0-.5.1-.7.3-.2.3-.9.9-.9 2.1s.9 2.5 1.1 2.6c.1.2 1.9 2.9 4.6 4 .6.3 1.1.4 1.5.3.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.1-1.2-.1-.1-.3-.2-.6-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-hero__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 160px;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.cms-hero__meta li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cms-hero__meta-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background: var(--cms-accent);
}

.cms-hero__meta-icon--region {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-hero__meta-icon--joined {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm0 16H5V10h14v10z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm0 16H5V10h14v10z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-hero__meta-icon--qual {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4 0-8 2-8 6v2h16v-2c0-4-4-6-8-6z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4 0-8 2-8 6v2h16v-2c0-4-4-6-8-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 兩欄主體 */
.cms-body {
	padding-top: 24px;
}

.cms-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: 24px;
	align-items: start;
}

.cms-panel {
	background: #fff;
	border-radius: var(--cms-radius);
	box-shadow: var(--cms-shadow);
	padding: 24px 26px;
	margin-bottom: 20px;
}

.cms-panel__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--cms-accent);
	font-size: 18px;
	font-weight: 800;
	color: var(--cms-primary);
}

.cms-panel__icon {
	width: 22px;
	height: 22px;
	background: var(--cms-primary);
	flex-shrink: 0;
}

.cms-panel__icon--about {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18 2H6a2 2 0 00-2 2v16l4-2 4 2 4-2 4 2V4a2 2 0 00-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18 2H6a2 2 0 00-2 2v16l4-2 4 2 4-2 4 2V4a2 2 0 00-2-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-panel__icon--skills {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-panel__icon--events {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm0 16H5V10h14v10z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm0 16H5V10h14v10z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-about {
	font-size: 15px;
	line-height: 1.75;
	color: #334155;
}

.cms-about p {
	margin: 0 0 1em;
}

.cms-about p:last-child {
	margin-bottom: 0;
}

.cms-skills {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cms-skills li {
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--cms-tag-bg);
	color: var(--cms-tag-text);
	font-size: 14px;
	font-weight: 600;
}

.cms-panel__icon--qualifications {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l2.4 4.9 5.4.8-3.9 3.8.9 5.3L12 14.8 8.2 17l.9-5.3-3.9-3.8 5.4-.8L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l2.4 4.9 5.4.8-3.9 3.8.9 5.3L12 14.8 8.2 17l.9-5.3-3.9-3.8 5.4-.8L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-panel__icon--gallery {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5v14l11-7L8 5z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5v14l11-7L8 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 資歷認證 */
.cms-cert-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cms-cert-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid #e8edf3;
	border-radius: 12px;
	background: #f8fafc;
}

.cms-cert-item__icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--cms-primary);
}

.cms-cert-item--cert .cms-cert-item__icon {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
	background: var(--cms-primary);
}

.cms-cert-item--education .cms-cert-item__icon {
	border-radius: 10px;
	background: #e8f4fc;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M18 2H6a2 2 0 00-2 2v16l4-2 4 2 4-2 4 2V4a2 2 0 00-2-2z'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M18 2H6a2 2 0 00-2 2v16l4-2 4 2 4-2 4 2V4a2 2 0 00-2-2z'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
	background: #2563eb;
}

.cms-cert-item__body {
	min-width: 0;
}

.cms-cert-item__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
	color: #0f172a;
}

.cms-cert-item__meta {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cms-muted);
}

.cms-cert-item__badge {
	flex-shrink: 0;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: var(--cms-primary);
}

.cms-cert-item__badge--expired {
	background: #64748b;
}

/* 活動花絮 */
.cms-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.cms-gallery__item {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #e2e8f0;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.cms-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.cms-gallery__item:hover img {
	transform: scale(1.03);
}

/* 活動側欄 */
.cms-aside .cms-panel {
	margin-bottom: 0;
}

.cms-events-empty {
	margin: 0;
	color: var(--cms-muted);
	font-size: 14px;
}

.cms-events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cms-event {
	padding: 18px 0;
	border-bottom: 1px solid #e8dcc4;
}

.cms-event:first-child {
	padding-top: 4px;
}

.cms-event:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.cms-event__title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
}

.cms-event__title a {
	color: #0f172a;
	text-decoration: none;
}

.cms-event__title a:hover {
	color: var(--cms-blue);
}

.cms-event__meta {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--cms-muted);
}

.cms-event__meta li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cms-event__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background: var(--cms-muted);
}

.cms-event__icon--date {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm0 16H5V10h14v10z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V6a2 2 0 00-2-2zm0 16H5V10h14v10z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-event__icon--location {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-event__icon--capacity {
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5C15 14.17 10.33 13 8 13zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cms-event__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.cms-event__price {
	font-size: 18px;
	font-weight: 800;
	color: var(--cms-blue);
}

.cms-event__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 8px;
	background: var(--cms-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.cms-event__cta:hover {
	background: var(--cms-primary-dark);
	color: #fff;
}

@media (max-width: 992px) {
	.cms-hero__profile {
		grid-template-columns: 1fr;
	}

	.cms-hero__avatar {
		margin-top: 0;
		width: 120px;
		height: 120px;
	}

	.cms-hero__meta {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.cms-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 992px) {
	.cms-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cms-hero__card {
		padding: 20px 16px;
	}

	.cms-hero__contacts {
		flex-direction: column;
	}

	.cms-hero__contact {
		width: 100%;
		justify-content: center;
	}

	.cms-cert-item {
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
	}

	.cms-cert-item__badge {
		grid-column: 2;
		justify-self: start;
		margin-top: 4px;
	}

	.cms-gallery {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── 資歷 Tabs ───────────────────────────────────────────────── */
.cms-qual-tabs {
	padding: 0;
	overflow: hidden;
}

/* Tab nav */
.cms-qual-tabs__nav {
	display: flex;
	gap: 0;
	border-bottom: 1px solid #e2e8f0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 0 26px;
}

.cms-qual-tabs__nav::-webkit-scrollbar {
	display: none;
}

.cms-qual-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 20px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--cms-muted);
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s ease;
	font-family: inherit;
}

.cms-qual-tabs__tab:hover {
	color: #1e293b;
}

.cms-qual-tabs__tab.is-active {
	color: #1e293b;
	font-weight: 700;
	border-bottom-color: var(--cms-accent);
}

.cms-qual-tabs__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Tab panels */
.cms-qual-tabs__panel {
	display: none;
	padding: 28px 26px;
}

.cms-qual-tabs__panel.is-active {
	display: block;
}

.cms-qual-empty {
	color: var(--cms-muted);
	font-size: 14px;
	margin: 0;
}

/* Two-column layout inside each panel */
.cms-qual-content {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 0 48px;
}

/* Section labels */
.cms-qual-section-label {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 500;
	color: var(--cms-muted);
	letter-spacing: 0.02em;
}

.cms-qual-section-label--spaced {
	margin-top: 20px;
}

.cms-qual-section-label--accent {
	color: #7a8e1a;
}

/* 認可資歷 badge */
.cms-qual-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px 8px 12px;
	border-radius: 999px;
	background: #f5f8d5;
	border: 1.5px solid #ccd226;
	font-size: 15px;
	font-weight: 700;
	color: #3a4d10;
	margin-bottom: 16px;
}

.cms-qual-badge__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: #7a9a20;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 15c3.5 0 6-2.5 6-5.5V4H6v5.5C6 12.5 8.5 15 12 15z'/%3E%3Cpath d='M8.5 20h7M12 15v5'/%3E%3Cpath d='M6 4H3v3c0 1.5 1.5 2.5 3 2.5M18 4h3v3c0 1.5-1.5 2.5-3 2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 15c3.5 0 6-2.5 6-5.5V4H6v5.5C6 12.5 8.5 15 12 15z'/%3E%3Cpath d='M8.5 20h7M12 15v5'/%3E%3Cpath d='M6 4H3v3c0 1.5 1.5 2.5 3 2.5M18 4h3v3c0 1.5-1.5 2.5-3 2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Date rows */
.cms-qual-date-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 9px 0;
	border-bottom: 1px solid #f1f5f9;
	gap: 12px;
}

.cms-qual-date-row:last-of-type {
	border-bottom: none;
}

.cms-qual-date-row__label {
	font-size: 13px;
	color: var(--cms-muted);
	flex-shrink: 0;
}

.cms-qual-date-row__value {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

/* Requirements */
.cms-qual-requirements {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cms-qual-requirements li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #334155;
	line-height: 1.55;
}

.cms-qual-requirements li::before {
	content: '';
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	background: #7a9a20;
	border-radius: 50%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Right column */
.cms-qual-right-section + .cms-qual-right-section {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #f1f5f9;
}

.cms-qual-intro {
	font-size: 14px;
	line-height: 1.75;
	color: #334155;
	margin: 0;
}

/* Courses heading */
.cms-qual-courses-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--cms-muted);
	font-weight: 500;
}

.cms-qual-courses-badge {
	background: var(--cms-accent);
	color: #3a4d10;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 4px;
}

/* Course list */
.cms-qual-courses {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cms-qual-courses li {
	border-bottom: 1px solid #f1f5f9;
}

.cms-qual-courses li:last-child {
	border-bottom: none;
}

.cms-qual-course-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	text-decoration: none !important;
	color: inherit;
}

.cms-qual-course-item:hover .cms-qual-course__title {
	color: var(--cms-primary);
	text-decoration: underline;
}

.cms-qual-course__book {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	background-color: #f8fafc;
	background-image: none;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E") center / 20px no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.cms-qual-course__body {
	flex: 1;
	min-width: 0;
}

.cms-qual-course__title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
	line-height: 1.35;
}

.cms-qual-course__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.cms-qual-course__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--cms-muted);
}

.cms-qual-course__meta-icon {
	flex-shrink: 0;
	width: 13px;
	height: 13px;
	background: var(--cms-muted);
	opacity: 0.7;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.cms-qual-course__meta-item--date .cms-qual-course__meta-icon {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.cms-qual-course__meta-item--seats .cms-qual-course__meta-icon {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.cms-qual-course__price {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	flex-shrink: 0;
}

.cms-qual-course__arrow {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border: 1.5px solid #e2e8f0;
	border-radius: 50%;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / 14px no-repeat;
	background-color: var(--cms-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
	.cms-qual-content {
		grid-template-columns: 1fr;
	}

	.cms-qual-content__left {
		border-bottom: 1px solid #e2e8f0;
		padding-bottom: 24px;
		margin-bottom: 24px;
	}
}

@media (max-width: 575px) {
	.cms-qual-tabs__tab {
		padding: 12px 14px;
		font-size: 13px;
	}

	.cms-qual-tabs__panel {
		padding: 20px 16px;
	}

	.cms-qual-course__price {
		display: none;
	}
}
