/* Global Styles */
body {
    font-family: 'LXGW WenKai Mono TC', sans-serif;
    font-weight: 400;
    padding-top: 80px;  /* 導航欄高度 + padding */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'LXGW WenKai Mono TC', sans-serif;
    font-weight: 700;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    background-color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;  /* 添加過渡效果 */
}

/* 添加半透明效果的類 */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.navbar-brand img {
    height: 60px;
}

.navbar-text {
    color: #333;
    font-weight: 700; /* 加粗字體 */
    font-size: 1.2rem; /* 可選：稍微增加字體大小 */
}

.navbar .nav-item {
    margin: 0 0.5rem;
}

.navbar .nav-link {
    color: #333 !important;
    font-weight: 700; /* 加粗字體 */
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #000000 !important;
}

/* 更新navbar按鈕樣式，使其與banner一致 */
.navbar .btn-primary {
    background-color: #DFFF41;
    border-color: #DFFF41;
    color: #333 !important; /* 覆蓋 .nav-link 的顏色 */
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    background-color: #c8e639;
    border-color: #c8e639;
    transform: translateY(-2px);
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: center;
        padding: 1rem 0;
    }

    .navbar-nav {
        margin: 0 auto;
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }

    .navbar-nav .btn {
        display: inline-block;
        margin: 0.5rem auto;
    }

    body {
        padding-top: 70px;
    }
}

/* HERO Section Styles */
#hero {
    position: relative;
    background: url('../images/hero-image.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* 改變為 space-between */
    min-height: 80vh;  /* 添加最小高度 */
    padding: 4rem 0;   /* 添加上下內邊距 */
}

#hero h1 {
    margin-top: 1rem;
    text-shadow: 10px 10px 6px rgba(0, 0, 0, 0.5);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-size: 3.5rem;
}

@media (max-width: 1200px) {
    #hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.5rem;
    }
}

#hero .highlight {
    color: #DFFF41;
}

#hero .lead {
    text-shadow: 10px 10px 6px rgba(0, 0, 0, 0.5);
}

#hero .btn-custom {
    background-color: #DFFF41;
    border-color: #DFFF41;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

#hero .btn-custom:hover {
    background-color: #c8e639;
    border-color: #c8e639;
    transform: translateY(-2px);
}

#hero .coach-title {  /* 新增總教練的樣式 */
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero .coach-name {   /* 新增陳健良的樣式 */
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    #hero {
        min-height: 70vh;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero .lead {
        font-size: 1.1rem;
    }
}

/* Coach Section Styles */
#coach {
    position: relative;
    padding: 4rem 0;  /* 減少上下padding */
    min-height: auto; /* 移除最小高度限制 */
    background: url('../images/coach-bg.png') center/cover fixed;
}

#coach h2 {
    color: #333;
    font-weight: bold;
}

#coach h3 {
    color: #333;
}

#coach .row {
    margin-bottom: 5rem;
}

#coach .row:last-child {
    margin-bottom: 0;
}

#coach li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

#coach li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
}

#coach img {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border-radius: 30px;
}

#coach img:hover {
    transform: scale(1.02);
}

#coach .image-grid img {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border-radius: 30px;
}

#coach .image-grid img:hover {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    #coach {
        padding: 3rem 0;  /* 在手機版進一步減少padding */
    }

    #coach .row {
        margin-bottom: 2rem;  /* 減少區塊之間的間距 */
    }

    #coach .row:last-child {
        margin-bottom: 0;  /* 最後一個區塊不需要底部間距 */
    }

    #coach .col-md-6 {
        margin-bottom: 1.5rem;  /* 減少圖片和文字之間的間距 */
    }

    #coach .col-md-6:last-child {
        margin-bottom: 0;  /* 最後一個元素不需要底部間距 */
    }

    #coach img {
        margin-bottom: 1.5rem;  /* 減少圖片底部間距 */
    }

    #coach .order-md-2 {
        margin-bottom: 1.5rem;
    }

    #coach h3 {
        text-align: center;
    }

    #coach ul {
        text-align: center;
    }

    #coach li {
        padding-left: 0;  /* 移除原本的padding */
        display: flex;
        justify-content: center;
    }

    #coach li:before {
        content: none;  /* 移除原本的點點 */
    }
}

/* Courses Section Styles */
#courses .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

#courses .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

#courses .course-card {
    position: relative;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1;
}

#courses .adult-course {
    background-image: url('../images/adult-course.png');
}

#courses .primary-course {
    background-image: url('../images/primary-course.png');
}

#courses .secondary-course {
    background-image: url('../images/secondary-course.png');
}

#courses h3 {
    color: #333;
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
}

#courses li {
    position: relative;
    padding-left: 1.5rem;
    color: #666;
}

#courses li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #007bff;
}


/* Reviews Section Styles */
#reviews {
    background: url('../images/reviews-bg.png') center/cover fixed;
    position: relative;
    padding: 6rem 0;
}

#reviews .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#reviews .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

#reviews .card-img-top {
    height: 380px;
    object-fit: cover;
} 

#reviews .card-body {
    background-color: white;
}

#reviews .card-text {
    color: #666;
    font-style: italic;
}

/* Trial Section Styles */
#trial {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

#trial img {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 30px;
    transition: transform 0.3s ease;
}

#trial img:hover {
    transform: scale(1.02);
}

#trial .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#trial .btn {
    padding: 0.8rem 1.5rem;
    font-weight: 500;
}

#trial .btn-lg {
    border-radius: 50px;
}

#trial .gap-3 {
    gap: 1rem !important;
}

/* Footer Styles */
footer {
    background: url('../images/footer-bg.png') center/cover fixed;
    position: relative;
    padding: 6rem 0;
    color: #333;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

footer .social-icons a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #007bff;
}

footer .footer-links a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links a:not(.btn):hover {
    color: #007bff;
}

footer hr {
    background-color: #333;
}

footer .btn-primary {
    background-color: #DFFF41;
    border-color: #DFFF41;
    color: #333 !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

footer .btn-primary:hover {
    background-color: #c8e639;
    border-color: #c8e639;
    transform: translateY(-2px);
}