:root {
    --primary-color: #4A7C59; /* 竹綠色 */
    --secondary-color1: #8A9E8E; /* 淺綠色 */
    --accent-color: #C9B39C; /* 溫暖中性色 */
    --light-color: #F2F2F2; /* 淺灰色 */
    --dark-color: #333333; /* 深灰色 */
    --light-text: #666666;
    --accent-color: #D4AF37; /* 金色點綴 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 頁面標題 */
.page-title {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.page-title h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto;
}

.subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--light-text);
}


/* 分頁標籤 */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background-color: var(--light-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: var(--secondary-color1);
    color: white;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
}

/* 內容區塊 */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 學員心得與評價 */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: rgba(74, 124, 89, 0.1);
    font-family: serif;
}

.testimonial-content {
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
    color: var(--dark-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--secondary-color1);
}

/* 照片畫廊 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 20px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 影片展示 */
.videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.video-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(74, 124, 89, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.play-button::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid white;
    margin-left: 5px;
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.video-info p {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--secondary-color1);
}

.video-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.video-meta i {
    margin-right: 5px;
}

/* 獲獎紀錄 */
.awards {
    margin-bottom: 60px;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.award-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.award-card:hover {
    transform: translateY(-5px);
}

.award-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
}

.award-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(74, 124, 89, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.award-icon img {
    width: 30px;
    height: 30px;
}

.award-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.award-details {
    margin-bottom: 15px;
}

.award-details p {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-bottom: 5px;
    line-height: 1.5;
}

.award-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--secondary-color1);
}

.competition-name {
    font-weight: 600;
}

.award-year {
    background-color: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* 響應式設計 */
@media (max-width: 768px) {

    
    .testimonials, 
    .gallery, 
    .videos, 
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-button {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* 燈箱效果 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
}

.lightbox-prev, 
.lightbox-next {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lightbox-prev:hover, 
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
}