/* ========================================
   GOOD TV 好家庭關懷平台 - 主要樣式表
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主題色 */
:root {
    --primary-color: #ff9933;
    --primary-dark: #ff7166;
    --secondary-color: #ffd700;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #fff8f0;
}

/* Header / Navigation */
.navbar {
    background: linear-gradient(90deg, #f93 20%, #ff7166 80%);
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Breadcrumb */
.breadcrumb-nav {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #999;
}

.navbar-brand {
   /* background-color: white;*/
    /*padding: 8px 20px;*/
    /*border-radius: 4px;*/
    transition: all 0.3s;
}

.navbar-brand:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.8rem 0.8rem !important;
    transition: all 0.3s;
    border-radius: 4px;
    margin: 0;
    white-space: nowrap;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link.btn-login {
    background-color: white;
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-left: 1rem;
}

.navbar-nav .nav-link.btn-login:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    background-color: #ff8855;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    margin: 0 10px;
  


}

.btn-primary-custom {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline-custom {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 153, 51, 0.2);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(90deg, #f93 20%, #ff7166 80%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* Courses Page Styles */
body.courses-page {
    background-color: #f8f9fa;
}

.page-header {
    /*background: linear-gradient(90deg, #f93 20%, #ff7166 80%);*/
   /* color: white;*/
    padding: 60px 0 40px;
    margin-bottom: 40px;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 153, 51, 0.25);
}

.course-badge {
    background: linear-gradient(90deg, #f93 20%, #ff7166 80%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.course-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-course {
    background: linear-gradient(90deg, #f93 20%, #ff7166 80%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s;
}

.btn-course:hover {
    background: linear-gradient(90deg, #ff7166 20%, #f93 80%);
    color: white;
    transform: translateY(-2px);
}

.alert-info-custom {
    background-color: #fff8f0;
    border-left: 4px solid #ff9933;
    color: #cc6600;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* Login Page Styles */
.login-card-main {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-header-main {
    background-color: white;
    padding: 40px 40px 20px;
    text-align: center;
}

.login-header-main img {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.login-header-main h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 24px;
}

.login-header-main p {
    color: #666;
}

.login-body-main {
    padding: 20px 40px 40px;
}

.register-link-login {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.register-link-login:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-control {
    height: 45px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: #ff9933;
    box-shadow: 0 0 0 0.2rem rgba(255, 153, 51, 0.25);
}

.btn-login {
    background: linear-gradient(90deg, #f93 20%, #ff7166 80%);
    color: white;
    height: 45px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    width: 100%;
    transition: all 0.3s;
}

.btn-login:hover {
    background: linear-gradient(90deg, #ff7166 20%, #f93 80%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 51, 0.4);
}

.back-home {
    text-align: center;
    margin-top: 20px;
}

.back-home a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.back-home a:hover {
    text-decoration: underline;
}

.alert-info {
    background-color: #fff8f0;
    border-color: #ff9933;
    color: #cc6600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 40px;
        margin-left: 15px;
    }

    .feature-card {
        margin-bottom: 30px;
    }
}
