/* CSS Document */
/******************************
2. Body and some general stuff
******************************/
body {
    background-color: #f5f5f5;
}

.main_content
{
    padding-top: 40px;
	padding-bottom: 60px;
}
.container {
    max-width: 70%;
    margin: 0 auto;
    padding: 15px;
}

/* 頁面標題樣式 */
.page-title {
    margin-top: 70px;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* 卡片樣式 */
.notification-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.mark-all-read-btn {
    background-color: #00b8d4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mark-all-read-btn:hover {
    background-color: #008ba3;
}

/* 新增的標籤樣式 */
.filter-label {
    display: flex;
    align-items: center;
    margin-right: 5px;
    font-weight: 500;
}

.notification-list {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #e6f7ff;
    /* 改為淡藍色 */
}

.notification-item.unread {
    background-color: #f8f8f8;
}

.notification-pin {
    color: #ff4d4f;
    margin-right: 10px;
    font-size: 16px;
}

.notification-category {
    color: #3eaa09;
    font-weight: 500;
    margin-right: 15px;
    min-width: 80px;
}

.notification-title {
    flex: 1;
    font-weight: 400;
}

.notification-date {
    color: #999;
    margin-left: 15px;
    font-size: 14px;
}

.notification-read-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00b8d4;
    margin-left: 15px;
}

.notification-read-dot.read {
    display: none;
}

/* 模態視窗樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 70%;
    max-width: 950px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    transition: all 0.3s;
    color: #666;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1010;
}

.modal-close:hover {
    background-color: #ff4d4f;
    color: white;
}

/* 模態視窗樣式 - 清除重複定義 */
.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.modal-header-top {
    /* display: flex; */
    align-items: center;
    margin-bottom: 10px;
}

.modal-category {
    color: #3eaa09;
    font-weight: 500;
    font-size: 14px;
    margin-right: 10px;
}

.modal-date {
    color: #999;
    font-size: 14px;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.modal-body {
    line-height: 1.6;
    font-size: 16px;
}

.modal-category {
    color: #52c41a;
    font-size: 14px;
    margin-bottom: 5px;
    margin-right: 10px;
    display: inline-block;
}

.modal-date {
    color: #999;
    font-size: 12px;
    display: inline-block;
}

.modal-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 5px;
}

.modal-body {
    line-height: 1.6;
    font-size: 16px;
}

/* RWD 響應式設計 */
/* 在現有的 RWD 響應式設計部分添加以下樣式 */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
        margin-top: 10px;
        padding: 5px;
    }

    .modal-content {
        width: 95%;
    }

    /* 頁面標題樣式 */
    .page-title {
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .notification-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        width: 100%;
        margin-bottom: 10px;
        flex-direction: column; /* 讓過濾器垂直排列 */
    }

    .filter-group > * {
        margin-bottom: 10px; /* 每個元素之間添加間距 */
    }

    .filter-label {
        margin-bottom: 5px; /* 標籤與選擇器之間的間距 */
    }

    .filter-select {
        width: 100%; /* 讓選擇器佔滿整行 */
    }

    .mark-all-read-btn {
        align-self: flex-start;
    }

    .function-menu {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 95%;
        margin-top: 10px;
        padding: 0px;
    }

    .modal-content {
        /* background-color: #fff;
        margin: 10% auto;
        padding: 20px;
        border-radius: 8px; */
        width: 95%;
        /* max-width: 800px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        position: relative; */
    }

    /* 頁面標題樣式 */
    .page-title {
        margin-top: 30px;
        margin-bottom: 15px;
        /* font-size: 24px;
        color: #333; */
    }

    .function-item {
        padding: 6px 10px;
        font-size: 14px;
    }

    .notification-title {
        font-size: 14px;
    }

    .status-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .notification-category {
        min-width: 60px;
        font-size: 12px;
    }

    .notification-date {
        font-size: 12px;
    }

    .filter-select {
        min-width: 120px;
    }
}


/* .section_title_sm p
{
    font-size: 16px;
    font-weight: 400;
    color: var(--body_text);
    margin-top: 4px;
}
.filters_list
{
    margin-top: 26px;
}
.filter_item
{
    padding-top: 9px;
    padding-bottom: 9px;
    padding-left: 20px;
    padding-right: 20px;
    border: solid 1px var(--divider);
    border-radius: 22px;
    font-size: 16px;
    font-weight: 400;
    color: var(--body_text);
    cursor: pointer;
    margin-right: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.filter_item:hover
{
    background-color: var(--divider);
}
.filter_item.checked
{
    padding-left: 56px;
    border-color: var(--primary_color_light);
    color: var(--primary_color_light);
}
.filter_item.checked::after
{
    display: block;
    position: absolute;
    left: 20px;
    top: 50%;
    -webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);
    width: 18px;
    height: 14px;
    content: '';
    background-image:url(../image/filter_check.png);
    background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.course_cards_container
{
    margin-top: 12px;
}
.course_card
{
    margin-bottom: 24px;
	box-shadow: #4450bc 5px 5px 10px;
}
.course_card_top
{
	width: 100%;
	border-radius: var(--border_rad_l);
}
.course_card_top::after
{
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	content: '';
	border-radius: var(--border_rad_l);
	border: solid 1px var(--divider);
	z-index: -1;
}
.course_card_category
{
	position: absolute;
	top: 16px;
	left: 16px;
	height: 27px;
	background-color: var(--primary_text);
	border-radius: 14px;
	z-index: 1;
}
.course_card_category a
{
	display: block;
	height: 100%;
	padding-left: 16px;
	padding-right: 16px;
}
.course_card_category a span
{
	font-size: 12px;
	color: #fff;
	line-height: 27px;
}
.course_card_category:hover
{
	background-color: var(--primary_color);
}
.course_card_pic
{
	border-radius: var(--border_rad_l);
	overflow: hidden;
}
.course_card_content
{
	padding-left: 24px;
	padding-top: 20px;
	padding-bottom: 20px;
	padding-right: 24px;
}
.course_card_meta svg
{
	width: 13px;
	height: 13px;
	margin-right: 7px;
	margin-bottom: 1px;
	fill: var(--body_text);
	opacity: 0.8;
}
.course_card_meta span
{
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.015em;
	text-transform: uppercase;
}
.dot
{
	width: 2px;
	height: 2px;
	border-radius: 2px;
	background-color: var(--body_text);
	margin-left: 12px;
	margin-right: 12px;
}
.course_card_title
{
	margin-top: 13px;
}
.course_card_author
{
	margin-top: 3px;
}
.course_card_author a, .course_card_author span
{
	font-size: 14px;
	font-weight: 300;
	color: var(--body_text);
}
.course_card_author a:hover
{
	color: var(--primary_color);
}
.course_card_rating
{
	margin-top: 12px;
}
.course_card_rating span
{
	font-size: 12px;
	text-transform: uppercase;
	font-weight: 500;
	margin-top: 3px;
	margin-right: 7px;
}
.course_card_rating > div
{
	margin-bottom: 1px;
}
.course_card_rating > div:not(:last-child)
{
	margin-right: 2px;
}
.course_card_bottom
{
	height: 63px;
	margin-top: 12px;
	border: solid 1px var(--divider);
	border-radius: var(--border_rad_l);
	padding-left: 23px;
	padding-right: 24px;
}
.course_card_container:hover .course_card_bottom
{
	background-color: var(--divider);
}
.course_card_price
{
	font-size: 20px;
	font-weight: 500;
	color: var(--primary_text);
	padding-top: 2px;
}
.course_card_link
{
	padding-bottom: 2px;
}
.course_card_link img
{
	margin-top: 1px;
	margin-right: 6px;
}
.course_card_link span
{
	font-size: 14px;
	color: var(--body_text);
}
.course_card_link a:hover span
{
	color: var(--primary_color);
}
.course_card_link a:hover svg
{
	fill: var(--primary_color);
}
.course_card_link svg
{
	margin-top: 1px;
	margin-right: 2px;
	width: 26px;
	height: 26px;
	fill: var(--body_text);
}
.pagination
{
    margin-top: 28px;
}
.page_item
{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--white);
    overflow: hidden;
}
.pagination > div:not(:last-child)
{
    margin-right: 12px;
}
.page_item:hover
{
    background-color: var(--divider);
}
.page_item a
{
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 16px;
    color: var(--primary_color);
    text-align: center;
    line-height: 44px;
}
.page_item.active
{
    background-color: var(--primary_color);
}
.page_item.active a
{
    color: var(--white);
}
.page_nav_item
{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: solid 1px var(--divider);
}
.page_nav_item:hover
{
    background-color: var(--divider);
}
.page_nav_item a
{
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 16px;
    color: var(--primary_color);
    text-align: center;
    line-height: 39px;
}
.page_nav_item a svg
{
    width: 40px;
    height: 40px;
    fill: var(--primary_color);
}
.page_nav_left a svg
{
    -webkit-transform: translateX(-1px);
    -moz-transform: translateX(-1px);
    -ms-transform: translateX(-1px);
    -o-transform: translateX(-1px);
    transform: translateX(-1px);
}
.page_nav_right a svg
{
    transform: translateX(1px);
} */


/***********
11. 公告列表
***********/
/* .card {
    margin-top: 80px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background-color: #f8f9fa;
}

.table td, .table th {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }

    .table td, .table th {
        min-width: 120px;
    }

    .table td:last-child {
        min-width: 100px;
    }
} */

/* 分頁樣式 */
/* .pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    margin: 20px 0;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-item:first-child,
.pagination .page-item:last-child {
    margin: 0;
}

.pagination .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    z-index: 2;
    color: #0056b3;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

@media (max-width: 576px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-item {
        margin: 5px;
    }
} */
