/* HUSOC Works — สไตล์ฝั่งผู้ชม
   ใช้ฟอนต์จากธีมของเว็บคณะ กำหนดเฉพาะสีและระยะห่างที่จำเป็น */

.hw-wrap {
	--hw-accent: #c4510f;
	--hw-accent-2: #e8641b;
	--hw-line: #e6e2dd;
	--hw-muted: #7a736c;
	--hw-soft: #faf6f2;
	max-width: 1100px;
	margin: 0 auto;
}

.hw-wrap * {
	box-sizing: border-box;
}

/* ---------- ข้อความแจ้งผล ---------- */

.hw-note {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 22px;
	border-left: 4px solid;
	font-size: .95rem;
}

.hw-note-ok {
	background: #eaf7f0;
	border-color: #0b7a53;
	color: #0b5c3f;
}

.hw-note-err {
	background: #fdeceb;
	border-color: #c0392b;
	color: #96271b;
}

/* ---------- ฟอร์ม ---------- */

.hw-legend {
	margin: 28px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--hw-line);
	color: var(--hw-accent);
	font-size: 1.05rem;
}

.hw-form p {
	margin: 0 0 16px;
}

.hw-form label {
	display: block;
	font-weight: 600;
	font-size: .9rem;
	margin-bottom: 6px;
}

.hw-form input[type="text"],
.hw-form input[type="email"],
.hw-form input[type="url"],
.hw-form input[type="search"],
.hw-form select,
.hw-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--hw-line);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.hw-form input:focus,
.hw-form select:focus,
.hw-form textarea:focus {
	outline: 2px solid var(--hw-accent-2);
	outline-offset: 1px;
	border-color: transparent;
}

.hw-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.hw-row-link {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 10px;
	margin-bottom: 10px;
}

.hw-req {
	color: #c0392b;
}

.hw-help {
	font-size: .85rem;
	color: var(--hw-muted);
	background: var(--hw-soft);
	padding: 10px 14px;
	border-radius: 8px;
}

/* กับดักบอท — ต้องไม่แสดงผล */
.hw-hp {
	position: absolute;
	left: -9999px;
}

.hw-actions {
	margin-top: 26px;
}

.hw-btn {
	background: var(--hw-accent-2);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 28px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.hw-btn:hover {
	background: var(--hw-accent);
}

.hw-btn-sm {
	padding: 9px 18px;
	font-size: .9rem;
}

/* ---------- ตัวกรอง ---------- */

.hw-filter {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.hw-filter input[type="search"] {
	flex: 1;
	min-width: 200px;
	padding: 10px 14px;
	border: 1px solid var(--hw-line);
	border-radius: 8px;
	font: inherit;
}

.hw-filter select {
	padding: 10px 14px;
	border: 1px solid var(--hw-line);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.hw-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.hw-chip {
	padding: 7px 16px;
	border: 1px solid var(--hw-line);
	border-radius: 999px;
	font-size: .85rem;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.hw-chip:hover {
	border-color: var(--hw-accent-2);
	color: var(--hw-accent);
}

.hw-chip.is-on {
	background: var(--hw-accent-2);
	border-color: var(--hw-accent-2);
	color: #fff;
}

/* ---------- การ์ดผลงาน ---------- */

.hw-grid-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.hw-card {
	border: 1px solid var(--hw-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: transform .15s ease, box-shadow .15s ease;
}

.hw-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(150, 70, 15, .13);
}

.hw-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.hw-card-cover {
	height: 150px;
	background: var(--hw-soft) center / cover no-repeat;
	border-bottom: 1px solid var(--hw-line);
}

.hw-card-body {
	padding: 14px 16px 10px;
}

.hw-tag {
	display: inline-block;
	background: #fdeede;
	color: var(--hw-accent);
	font-size: .72rem;
	padding: 3px 10px;
	border-radius: 999px;
}

.hw-card-title {
	margin: 8px 0 6px;
	font-size: 1rem;
	line-height: 1.45;
}

.hw-card-meta {
	margin: 0;
	font-size: .85rem;
	color: var(--hw-muted);
}

.hw-card-foot {
	display: flex;
	justify-content: space-between;
	padding: 10px 16px;
	border-top: 1px solid var(--hw-line);
	font-size: .78rem;
	color: var(--hw-muted);
}

.hw-empty {
	text-align: center;
	padding: 60px 0;
	color: var(--hw-muted);
}

.hw-pager {
	margin-top: 30px;
	text-align: center;
}

.hw-pager .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border: 1px solid var(--hw-line);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}

.hw-pager .page-numbers.current {
	background: var(--hw-accent-2);
	border-color: var(--hw-accent-2);
	color: #fff;
}

/* ---------- หน้ารายละเอียด ---------- */

.hw-single-by {
	color: var(--hw-muted);
	font-size: .95rem;
}

.hw-video {
	position: relative;
	padding-top: 56.25%;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	margin: 20px 0;
}

.hw-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.hw-files {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hw-file a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--hw-soft);
	border: 1px solid var(--hw-line);
	border-radius: 10px;
	margin-bottom: 8px;
	text-decoration: none;
	color: inherit;
}

.hw-file a:hover {
	border-color: var(--hw-accent-2);
}

.hw-file-ico {
	font-size: 1.3rem;
	line-height: 1;
}

.hw-file-name small {
	display: block;
	font-size: .72rem;
	color: var(--hw-accent);
	margin-top: 2px;
}

.hw-file-ext .hw-file-name small {
	color: #0b7a53;
}

/* ---------- จอเล็ก ---------- */

@media (max-width: 600px) {

	.hw-row-2,
	.hw-row-link {
		grid-template-columns: 1fr;
	}

	.hw-card-cover {
		height: 170px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.hw-card {
		transition: none;
	}

	.hw-card:hover {
		transform: none;
	}
}

/* ---------- ส่วนประกอบหน้าแรก ---------- */

.hw-hero {
	background: linear-gradient(125deg, #a03f08 0%, #c4510f 45%, #e8641b 100%);
	color: #fff;
	border-radius: 16px;
	padding: 54px 40px 58px;
	position: relative;
	overflow: hidden;
}

.hw-hero::after {
	content: "";
	position: absolute;
	right: -70px;
	top: -70px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
}

.hw-hero-title {
	margin: 0 0 14px;
	font-size: clamp(1.7rem, 4vw, 2.5rem);
	line-height: 1.25;
	color: #fff;
	position: relative;
	z-index: 1;
}

.hw-hero-sub {
	margin: 0;
	max-width: 620px;
	line-height: 1.75;
	opacity: .95;
	position: relative;
	z-index: 1;
}

.hw-hero-cta {
	margin-top: 28px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.hw-hero .hw-btn {
	text-decoration: none;
	display: inline-block;
	background: #fff;
	color: #a03f08;
}

.hw-hero .hw-btn:hover {
	background: #ffeede;
}

.hw-hero .hw-btn-ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8);
}

.hw-hero .hw-btn-ghost:hover {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

/* ---------- ตัวเลขสรุป ---------- */

.hw-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin: 30px 0;
}

.hw-stat {
	text-align: center;
	padding: 22px 16px;
	background: var(--hw-soft, #faf6f2);
	border: 1px solid var(--hw-line, #e6e2dd);
	border-radius: 12px;
}

.hw-stat-num {
	display: block;
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--hw-accent, #c4510f);
}

.hw-stat-label {
	display: block;
	margin-top: 6px;
	font-size: .88rem;
	color: var(--hw-muted, #7a736c);
}

/* ---------- หัวข้อส่วน ---------- */

.hw-sec-title {
	margin: 34px 0 18px;
	font-size: 1.3rem;
	position: relative;
	padding-left: 14px;
}

.hw-sec-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15em;
	bottom: .15em;
	width: 5px;
	border-radius: 3px;
	background: var(--hw-accent-2, #e8641b);
}

/* ---------- กล่องเชิญชวน ---------- */

.hw-invite {
	background: var(--hw-soft, #faf6f2);
	border: 1px solid var(--hw-line, #e6e2dd);
	border-radius: 16px;
	padding: 30px 34px 34px;
	margin: 40px 0;
}

.hw-invite .hw-sec-title {
	margin-top: 0;
}

.hw-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 8px;
}

.hw-step p {
	margin: 6px 0 0;
	font-size: .88rem;
	color: var(--hw-muted, #7a736c);
	line-height: 1.65;
}

.hw-step-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--hw-accent-2, #e8641b);
	color: #fff;
	font-weight: 700;
	font-size: .9rem;
	margin-bottom: 10px;
}

.hw-invite .hw-btn {
	text-decoration: none;
	display: inline-block;
}

@media (max-width: 600px) {

	.hw-hero {
		padding: 40px 24px 44px;
	}

	.hw-invite {
		padding: 24px 20px 28px;
	}
}

.hw-hint {
	background: #fff8e6;
	border: 1px dashed #d9a441;
	color: #7a5a12;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: .88rem;
	margin: 20px 0;
}
