/*
Theme Name: Kadence Child
Template: kadence
*/

    /* 變數設定與字體 */
    @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

    .jgs-home-container {
        --jgs-bg-v-light: #fdfaf7;
        --jgs-bg-light: #f7f1e9;
        --jgs-accent-light: #e8dbcc;
        --jgs-accent-mid: #d4bc9e;
        --jgs-primary: #9e7a56;
        --jgs-primary-dark: #7d5e41;
        --jgs-text-deep: #3a2d22;
        --jgs-text-muted: #624a35;
        --jgs-white: #ffffff;
        
        font-family: 'Noto Sans TC', sans-serif;
        color: var(--jgs-text-deep);
        line-height: 1.6;
        background-color: var(--jgs-bg-v-light);
        width: 100%;
        overflow-x: hidden;
    }

    .jgs-home-container * { box-sizing: border-box; }

    /* 通用佈局 */
    .jgs-section {
        padding: 80px 20px;
        display: flex;
        justify-content: center;
    }

    .jgs-wrapper {
        width: 100%;
        max-width: 1200px;
    }

    .jgs-center { text-align: center; }

    .jgs-h2 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 30px;
        text-align: center;
    }

    /* Hero 區塊 - 恢復背景圖片與毛玻璃效果 */
    .jgs-hero {
        background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/wp-content/uploads/2026/03/金剛山門口.webp');
        background-size: cover;
        background-position: center;
        min-height: 55vh; 
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 60px 20px;
        color: #ffffff;
    }

    /* .jgs-hero-content {
  
    } */

    .jgs-tag {
        display: inline-block;
        background: var(--jgs-primary);
        color: #ffffff;
        padding: 6px 20px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 3px;
        margin-bottom: 24px;
        text-transform: uppercase;
    }

    .jgs-hero h1 {
        font-size: clamp(2rem, 5vw, 3.8rem);
        font-weight: 700;
        margin-bottom: 16px;
margin-top: 16px;
        color: #ffffff;
        text-shadow: 0 4px 15px rgba(0,0,0,0.4);
        line-height: 1.25;
    }

    .jgs-hero p {
        font-size: 19px;
        max-width: 700px;
        margin: 0 auto;
        color: rgba(255, 255, 255, 0.95);
        letter-spacing: 1px;
    }

    /* 文章卡片網格 */
    .jgs-article-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }

    .jgs-article-card {
        background: var(--jgs-white);
        border-radius: 15px;
        overflow: hidden;
        border: 1px solid var(--jgs-accent-light);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
    }

    .jgs-article-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(58, 45, 34, 0.12);
        border-color: var(--jgs-accent-mid);
    }

    .jgs-card-img {
        width: 100%;
        height: 230px;
        background-size: cover;
        background-position: center;
        transition: transform 0.5s ease;
    }

    .jgs-article-card:hover .jgs-card-img {
        transform: scale(1.05);
    }

    .jgs-card-content {
        padding: 25px;
        flex-grow: 1;
    }

    .jgs-category-tag {
        display: inline-block;
        color: #ffffff;
        background: var(--jgs-primary);
        padding: 2px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }

    .jgs-card-title {
        font-size: 21px;
        margin: 0 0 15px;
        line-height: 1.45;
        font-weight: 700;
    }

    .jgs-card-excerpt {
        color: var(--jgs-text-muted);
        font-size: 15px;
        margin-bottom: 0; 
        display: -webkit-box;
        /* -webkit-line-clamp: 2; */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 影音專區 */
    .jgs-video-section {
        background-color: var(--jgs-bg-light);
    }

    .jgs-video-wrapper {
        max-width: 850px;
        margin: 0 auto;
    }

    .jgs-video-container {
        position: relative;
        width: 100%;
        background: #000;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    }

    .jgs-video-container iframe {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%; border: 0;
    }

    @media (max-width: 768px) {
        .jgs-section { padding: 60px 15px; }
        .jgs-hero-content { padding: 35px 20px; }
        .jgs-h2 { font-size: 26px; }
    }
