/*底板與全域樣式*/

body {
	background-image: url(http://www.cust.edu.tw/www/img/layout/public_style_01/body_bg.jpg);
	font-family: \5FAE\8EDF\6B63\9ED1\9AD4, \65B0\7D30\660E\9AD4, Tahoma, PMingLiU;
	padding: 0;
}

body:before {
	position: absolute;
	content: '';
	height: 300px;
	width: 100%;
	background-image: url(https://www.cust.edu.tw/www/img/layout/public_style_01/body_top_bg.jpg);
}

.bar-inner {
	min-width: 970px;
}

#wrapper {
	position: relative;
	background-color: #fff;
	width: 970px;
	margin: 0 auto;
	box-shadow: 0 0 6px #888;
}

#header {
	position: relative;
	padding-top: 65px;
	background-image: url(http://www.cust.edu.tw/www/img/layout/public_style_01/header_bg.jpg);
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.title {
	display: inline-block;
	border-left: 10px solid #339cd8;
	padding-left: 15px;
}

.title:hover {
	border-left-color: #08c;
}

.title h1 {
	font-size: 1.5em;
	font-weight: 500;
	color: #339cd8;
	letter-spacing: 1px;
	margin: 0;
}

.title:hover h1 {
	color: #059;
}

.title p {
	margin: 5px 0 0;
	font-size: 0.8em;
	color: #555;
}

.title:hover p {
	color: #000;
}

.header_top_menu {
	position: absolute;
	right: 10px;
	top: 66px;
	padding: 6px 8px;
	background-color: #339cd8;
	border-radius: 5px;
}

.header_top_menu li {
	display: inline;
	padding: 0;
}

.header_top_menu li a {
	vertical-align: top;
	font-size: 0.8em;
	padding: 0 10px 0 5px;
	border-right: 1px solid #fff;
	color: #fff;
	text-shadow: 1px 1px #059;
}

.header_top_menu li:last-child a {
	border-right: 0;
	padding-right: 5px;
}

.header_top_menu li a:hover {
	color: #f0f0f0;
}

nav {
	position: absolute;
	/* *position: relative; */
	z-index: 1;
	width: 97%;
	margin-top: 20px;
	/* *margin-bottom: -20px; */
	left: 1.5%;
	border-radius: 5px;
	color: #fff;
	background-color: #339cd8;
	background-image: -webkit-gradient(linear, center top, center bottom, color-stop(48%, #339cd8), color-stop(52%, #008bd8));
	background-image: -webkit-linear-gradient(top, #339cd8 48%, #008bd8 52%);
	background-image: -moz-linear-gradient(top, #339cd8 48%, #008bd8 52%);
	background-image: -ms-linear-gradient(top, #339cd8 48%, #008bd8 52%);
	background-image: -o-linear-gradient(top, #339cd8 48%, #008bd8 52%);
	background-image: linear-gradient(to bottom, #339cd8 48%, #008bd8 52%);
	box-shadow: 0 3px 6px #059;
}

.main_nav {
	width: 100%;
	margin: 0 auto;
}

.main_nav li {
	width: calc(100% / 7);
	/* width: 14.28%; fallback if needed, but calc is better */
	float: left;
	text-align: center;
	position: relative;
}

.main_nav li:hover > ul {
	display: block;
}

.main_nav ul ul {
	top: 0;
	left: 100%;
}

.main_nav li:first-child {
	border-radius: 5px 0 0 5px;
}

.main_nav li:last-child {
	border-radius: 0 5px 5px 0;
}

.main_nav li:first-child:before {
	content: none;
	display: none;
}

.main_nav>li:before {
	position: absolute;
	content: '';
	width: 1px;
	height: 60%;
	left: 0;
	top: 20%;
	background-color: #007cb6;
}

.main_nav>li:after {
	position: absolute;
	content: '';
	width: 1px;
	height: 60%;
	right: 0;
	top: 20%;
	background-color: #33acff;
}

.main_nav li:hover:before {
	content: none;
	display: none;
}

.main_nav li:hover:after {
	content: none;
	display: none;
}

.main_nav li:last-child:after {
	content: none;
	display: none;
}

.main_nav a {
	display: block;
	width: 100%;
	padding: 10px 0;
	font-size: 0.9em;
	color: #fff;
	letter-spacing: 1px;
	text-shadow: 1px 1px #007cb6;
}

.main_nav>li>a:hover {
	background-color: #059;
	background-image: -webkit-gradient(linear, center top, center bottom, color-stop(96%, #059), color-stop(100%, #00386d));
	background-image: -webkit-linear-gradient(top, #059 96%, #00386d 100%);
	background-image: -moz-linear-gradient(top, #059 96%, #00386d 100%);
	background-image: -ms-linear-gradient(top, #059 96%, #00386d 100%);
	background-image: -o-linear-gradient(top, #059 96%, #00386d 100%);
	background-image: linear-gradient(to bottom, #059 96%, #00386d 100%);
}

.main_nav ul {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	width: 150px;
	background-color: #059;
	background-image: -webkit-gradient(linear, center bottom, center top, color-stop(96%, #059), color-stop(100%, #00386d));
	background-image: -webkit-linear-gradient(bottom, #059 96%, #00386d 100%);
	background-image: -moz-linear-gradient(bottom, #059 96%, #00386d 100%);
	background-image: -ms-linear-gradient(bottom, #059 96%, #00386d 100%);
	background-image: -o-linear-gradient(bottom, #059 96%, #00386d 100%);
	background-image: linear-gradient(to top, #059 96%, #00386d 100%);
	box-shadow: 0 2px 4px #000;
}

.main_nav ul:hover {
	display: block;
}

.main_nav ul li {
	width: 100%;
	float: none;
	position: relative;
}

.main_nav ul a {
	width: 94%;
	margin: 6px auto;
	padding: 8px 0;
	border-radius: 5px;
}

.main_nav ul a:hover {
	background-color: #339cd8;
	text-shadow: 1px 1px #007cb6;
}

.main_nav ul:after {
	display: block;
	content: '';
	width: 100%;
	height: 4px;
	background-color: #008bd8;
}

.main_nav:after {
	display: block;
	content: '';
	height: 0;
	visibility: hidden;
	clear: both;
}

#container {
	width: 97%;
	margin: 38px auto 20px;
	/* *margin: 0 auto; */
}

.share {
	margin-top: 30px;
	margin-bottom: -30px;
}

.share li {
	width: 20px;
	float: right;
	margin-right: 16px;
}

.share a {
	display: block;
	height: 20px;
	width: 20px;
	background: #08c;
	border-radius: 2px;
	background-image: url(http://www.cust.edu.tw/www/img/layout/share.jpg);
	background-size: 300% 100%;
	background-repeat: no-repeat;
}

.twitter {
	background-position: 50% !important;
}

.google {
	background-position: 100% !important;
}

.facebook {
	background-position: 0;
}

.content hgroup {
	width: 100%;
	padding-top: 10px;
}

.content article {
	width: 98%;
	margin: 0 auto;
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.content article:after {
	display: block;
	content: '';
	height: 0;
	visibility: hidden;
	clear: both;
}

.content h3 {
	font-size: 1.4em;
	font-weight: 500;
	color: #339cd8;
}

.content hgroup h3 {
	margin: 18px 0;
	margin: 22px 0 0;
}

.content hgroup h5 {
	font-size: 1.2em;
	margin: 0 0 18px;
	margin: 22px 0 0;
	color: #555;
	line-height: 1.4;
}

.content h4 {
	font-size: 1.2em;
	font-weight: 500;
	color: #555;
}

.content article h4 {
	margin: 30px 0 10px;
	font-weight: 600;
}

.content article h4:first-child {
	margin: 20px 0 10px;
}

.content h5 {
	font-size: 1.3em;
	font-weight: 500;
	color: #339cd8;
}

.content p {
	font-size: 0.9em;
	text-indent: 2em;
	line-height: 1.4;
}

.content article p img {
	float: left;
	margin-right: 15px;
	margin-bottom: 5px;
}

.content img {
	max-width: 100%;
	height: auto;
	border: 4px solid #fff;
	box-shadow: 0 0 6px #888;
}

.content>img {
	width: 80%;
	display: block;
	margin: 0 auto;
}

.content th {
	background-color: #339cd8;
	color: #fff;
	padding: 5px 0;
	text-shadow: 1px 1px #059;
	text-align: left;
	font-size: 0.9em;
	text-indent: 0.9em;
}

.content th,
td {
	_padding: 10px 0;
}

.content article:after {
	display: block;
	content: '';
	height: 0;
	visibility: hidden;
	clear: both;
}

.content article ul {
	padding-left: 40px;
	list-style-type: square;
	line-height: 1.8;
}

.content:after {
	display: block;
	content: '';
	height: 0;
	visibility: hidden;
	clear: both;
}

#footer {
	position: relative;
	background-color: #f5f5f5;
	padding: 10px 0 20px;
	border-top: 1px solid #ddd;
}

#footer:before {
	display: block;
	position: absolute;
	content: '';
	width: 40px;
	height: 40px;
	top: 16px;
	left: 15px;
	background-image: url(http://www.cust.edu.tw/www/img/layout/s_logo.png);
	background-size: 100% 100%;
	background-repeat: no-repeat;

}

#footer ul {
	padding: 35px 0 0 70px;
}

#footer ul:before {
	position: absolute;
	display: block;
	content: 'design by computer center';
	color: #aaa;
	height: 20px;
	top: 16px;
	left: 68px;
	border-bottom: 1px solid #ddd;
	letter-spacing: 1px;
}

#footer li {
	line-height: 1.4;
}

/*index樣式*/

.main {
	width: 75%;
	float: left;
	_margin-top: -20px;
}

.bulletin {
	position: relative;
	width: 96%;
	padding-bottom: 20px;
}

.bulletin:first-child {
	margin-top: 30px;
}

.bulletin h4 {
	font-size: 1.4em;
	position: relative;
	z-index: 3;
	margin: 20px 0 2px;
	padding-bottom: 6px;
	border-bottom: 1px dotted #ddd;
}

.bulletin iframe {
	margin-top: -30px;
	width: 100%;
	height: 480px;
}

.more {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 0.9em;
}

.more a {
	display: block;
	padding: 2px 8px;
	font-size: 0.9em;
	color: #fff;
	border-radius: 5px;
	background-color: #888;
}

.more a:hover {
	font-size: 0.9em;
	background-color: #555;
}

.bulletin_text {
	_overflow: hidden;
}

.bulletin_text li {
	padding: 10px 0;
	border-bottom: 1px dotted #ddd;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.bulletin_text li a {
	line-height: 1.4;
	color: #888;
}

.date {
	display: inline-block;
	margin-right: 10px;
	color: #08c;
}

.bulletin_pic li {
	width: 33.3%;
	float: left;
	margin: 10px 0;
}

.bulletin_pic img {
	display: block;
	width: 92%;
	border: 4px solid #fff;
	box-shadow: 0 0 4px #888;
	margin: 0 auto;
}

.bulletin_pic p {
	width: 96%;
	margin: 6px auto 0;
	height: 19px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-indent: 0;
}

.bulletin_pic ul:after {
	display: block;
	content: '';
	height: 0;
	visibility: hidden;
	clear: both;
}

.side {
	width: 25%;
	float: left;
}

.block {
	position: relative;
	padding: 20px 0;
	background-color: #f0f0f0;
	margin: 10px 0;
}

.block>ul,
.block>h5,
.block>p {
	width: 90%;
	margin: 0 auto;
}

.block h5 {
	margin-bottom: 2px;
	padding-bottom: 6px;
	border-bottom: 1px solid #339cd8;
}

.block .more {
	top: 20px;
	right: 10px;
}

.block .more a {
	background-color: #339cd8;
}

.block .more a:hover {
	background-color: #059;
}

.about img {
	float: left;
	max-width: 90px;
	border: 4px solid #fff;
	box-shadow: 0 0 4px #888;
	margin-right: 10px;
}

.about p {
	text-indent: 2em;
	line-height: 1.4;
	margin-top: 20px;
}

.links ul {
	padding-top: 6px;
}

.links li {
	padding: 10px 0;
}

.links li:last-child {
	padding-bottom: 0;
}

.links li a {
	color: #555;
}

.links li a:hover {
	color: #888;
}

.links img {
	display: block;
	width: 98%;
	margin: -6px auto;
	border: 1px solid #ddd;
	box-shadow: 0 0 4px #888
}

.pics {
	background-color: #fff;
	padding: 10px 0;
}

.pics li {
	padding: 4px 0;
}

.pics img {
	display: block;
	margin: 0 auto;
	width: 92%;
	border: 4px solid #fff;
	box-shadow: 0 0 4px #888;
}

/*text樣式*/

/*table樣式*/

/*list樣式*/

/*news樣式*/

article .bulletin_text {
	width: 100%;
	padding-bottom: 0;
}

article .bulletin_text ul {
	padding-left: 0;
}

article .bulletin_text li:last-child {
	border-bottom: 0;
}

/*interduce樣式*/

.interduce {
	width: 439px;
	margin: 10px;
	_margin: 10px 6px;
	border: 1px solid #ddd;
	float: left;
	background-color: #f5f5f5;
	height: inherit;
}

.interduce img {
	width: 110px !important;
	height: 130px !important;
	margin: 10px;
	float: left;
}

.content .interduce ul {
	padding: 0;
	list-style: none;
	width: 280px;
	height: 600px;
	overflow: visible;
	line-height: 1.3;
	/* *line-height: 1.2; */
	float: left;
	font-size: 0.9em;
	margin-top: 8px;
	margin-right: 10px;
	margin-bottom: 8px;
	margin-left: 10px;
}

.interduce li {
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.interduce li:first-child {
	font-size: 1.1em;
	line-height: 1.8;
	font-weight: 600;
}

/*album樣式*/
.content .pic_pops img {
	width: 30%;
	margin: 10px;
}

.img_href {
	display: block;
	width: 25%;
	/* *width: 24.9%; */
	padding: 10px 0;
	float: left;
}

.img_href div {
	width: 90%;
	height: 120px;
	margin: 0 auto;
	border: 5px solid #fff;
	border-bottom: 26px solid #fff;
	box-shadow: 0 0 4px #888;
	/* *border: 1px solid #888; */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
/* 下載區塊專用樣式 */
.download-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 15px;
	margin-bottom: 30px;
}

.download-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.06);
	padding: 20px;
	border-top: 4px solid #339cd8;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.download-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.download-title {
	font-weight: 600;
	font-size: 1.05em;
	color: #333;
	margin-bottom: 15px;
	line-height: 1.4;
}

.download-links {
	display: flex;
	gap: 10px;
}

.download-btn {
	flex: 1;
	display: inline-block;
	text-align: center;
	padding: 8px 10px;
	border-radius: 5px;
	font-size: 0.85em;
	font-weight: bold;
	color: #fff !important;
	text-decoration: none;
	letter-spacing: 1px;
	transition: filter 0.2s;
}

.download-btn:hover {
	filter: brightness(1.1);
	color: #fff !important;
}

.btn-word {
	background-color: #2b579a; /* Word Blue */
}

.btn-odt {
	background-color: #df601f; /* ODT Orange */
}

.btn-excel {
	background-color: #217346; /* Excel Green */
}

/* 收合面板樣式 */
.download-accordion {
	background: transparent;
}
.download-accordion summary {
	font-size: 1.3em;
	font-weight: bold;
	color: #339cd8;
	cursor: pointer;
	padding: 10px 0 15px;
	margin-bottom: 15px;
	list-style: none;
	display: flex;
	align-items: center;
	border-bottom: 2px solid #eee;
}
.download-accordion summary::-webkit-details-marker {
	display: none;
}
.download-accordion summary::after {
	content: '▼';
	margin-left: auto;
	font-size: 0.8em;
	color: #888;
	transition: transform 0.3s ease;
}
.download-accordion[open] summary::after {
	transform: rotate(-180deg);
	color: #339cd8;
}

/* PDF 按鈕專用樣式 */
.btn-pdf { background-color: #e23d3d; /* PDF Red */ }

/* 次分類標題樣式 */
.category-title {
	font-size: 1.15em;
	font-weight: bold;
	color: #444;
	margin: 20px 0 15px 0;
	padding-bottom: 5px;
	border-bottom: 2px solid #339cd8;
	display: inline-block;
}

/* 次分類標題樣式 */
.category-title {
	font-size: 1.15em;
	font-weight: bold;
	color: #444;
	margin: 20px 0 15px 0;
	padding-bottom: 5px;
	border-bottom: 2px solid #339cd8;
	display: inline-block;
}

/* 次分類標題樣式 */
.category-title {
	font-size: 1.15em;
	font-weight: bold;
	color: #444;
	margin: 20px 0 15px 0;
	padding-bottom: 5px;
	border-bottom: 2px solid #339cd8;
	display: inline-block;
}

/* 次分類標題樣式 */
.category-title {
	font-size: 1.15em;
	font-weight: bold;
	color: #444;
	margin: 20px 0 15px 0;
	padding-bottom: 5px;
	border-bottom: 2px solid #339cd8;
	display: inline-block;
}

/* 次分類標題樣式 */
.category-title {
	font-size: 1.15em;
	font-weight: bold;
	color: #444;
	margin: 20px 0 15px 0;
	padding-bottom: 5px;
	border-bottom: 2px solid #339cd8;
	display: inline-block;
}

/* 次分類標題樣式 */
.category-title {
	font-size: 1.15em;
	font-weight: bold;
	color: #444;
	margin: 20px 0 15px 0;
	padding-bottom: 5px;
	border-bottom: 2px solid #339cd8;
	display: inline-block;
}

/* --- Modern Profile Cards (.interduce Replacement) --- */
.people-grid {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 30px;
}

.profile-card {
	display: flex;
	flex-direction: row;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
	padding: 25px 30px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid #f0f0f0;
	align-items: flex-start;
}

.profile-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.profile-avatar {
	flex-shrink: 0;
	margin-right: 35px;
	width: 135px;
}

.profile-avatar img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.1);
	object-fit: cover;
}

.profile-details {
	flex-grow: 1;
}

.profile-name {
	font-size: 1.3em;
	color: #1a365d;
	margin-top: 0;
	margin-bottom: 15px;
	border-bottom: 2px solid #edf2f7;
	padding-bottom: 12px;
	font-weight: bold;
}

.profile-contact {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
	color: #4a5568;
	line-height: 1.6;
	font-size: 0.95em;
}

.profile-contact li {
	margin-bottom: 6px;
	display: flex;
	align-items: center;
}

.profile-contact a {
	color: #3182ce;
	text-decoration: none;
	transition: color 0.2s;
}

.profile-contact a:hover {
	color: #2b6cb0;
	text-decoration: underline;
}

.profile-tasks h5 {
	font-size: 1.05em;
	color: #2d3748;
	margin: 0 0 12px 0;
	font-weight: bold;
}

.profile-tasks ol, .profile-tasks ul {
	padding-left: 20px;
	color: #4a5568;
	line-height: 1.8;
	margin: 0;
	font-size: 0.95em;
}

.profile-tasks li {
	margin-bottom: 4px;
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
	.profile-card {
		flex-direction: column;
		align-items: center;
		padding: 20px;
	}
	
	.profile-avatar {
		margin-right: 0;
		margin-bottom: 25px;
		width: 140px;
	}
	
	.profile-name {
		text-align: center;
	}
	
	.profile-contact {
		text-align: center;
	}
	
	.profile-tasks ol, .profile-tasks ul {
		text-align: left;
	}
}
