.content {
    padding:120px 300px 65px;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-image: url(/static/images/背景素材-1.svg);
}
.consultant {
    margin-bottom: 64px;
}
.title-1 {
    font-size: 24px;
    line-height: 120%;
    color: #00306a;
}
.title-3 {
    font-size: 36px;
    line-height: 100%;
    color: #00306a;
    margin: 40px 0 0 0;
}
.line-title {
    font-size: 24px;
    line-height: 120%;
    color: #00479c;
    margin: 40px 0 10px 0;
}
hr {
    width: 100%;
    height: 2px;
    border: 1px solid #00479c;
    margin-bottom: 30px;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 從 repeat(2, 1fr) 改為 repeat(4, 1fr) */
    gap: 20px;
}
.photo-item {
    text-align: center;
}
.photo-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
}
.text-content {
    font-size: 20px;
    line-height: 150%;
    color: #333;
    margin: 20px 0;
}
.activity-list {
    margin-top: 20px;
}
.activity-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.activity-item img {
    margin-right: 15px;
}
.activity-item:last-child {
    border-bottom: none;
}
.more-link {
    display: inline-block;
    margin-top: 20px;
    color: #00479c;
    text-decoration: none;
}
.more-link:hover {
    text-decoration: underline;
}
/* 模態（放大圖片）樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明黑色背景 */
    overflow: auto;
}
.modal-content {
    display: block;
    margin: 0% auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}
.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 60px auto 0 auto;
    gap: 20px;
}
.image-grid .photo-item {
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-grid .photo-item img {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: 5px;
    cursor: pointer;
}

.text-content p {
    white-space: pre-wrap;   /* 保留換行和空格 */
    word-wrap: break-word;
    line-height: 1.8;
    margin: 16px 0;
}

/* Responsive Design - Mid-Large Screens (1024px to 1919px) */
@media screen and (max-width: 1919px) {
    .content {
        padding:120px 60px 50px;
    }
    .consultant {
        margin-bottom: 48px;
    }
    .title-1 {
        font-size: 22px;
    }
    .title-3 {
        font-size: 32px;
    }
    .line-title {
        font-size: 22px;
        margin: 30px 0 8px 0;
    }
    hr {
        margin-bottom: 25px;
    }
    .photo-grid {
        gap: 15px;
    }
    .text-content {
        font-size: 15px;
    }
}

/* Responsive Design - Tablet (768px to 1024px) */
@media screen and (max-width: 1024px) {
    .content {
        padding:120px 40px 40px;
    }
    .consultant {
        margin-bottom: 32px;
    }
    .title-1 {
        font-size: 20px;
    }
    .title-3 {
        font-size: 28px;
    }
    .line-title {
        font-size: 20px;
        margin: 20px 0 6px 0;
    }
    hr {
        margin-bottom: 20px;
    }
    .photo-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板維持兩張一排 */
        gap: 10px;
    }
    .text-content {
        font-size: 14px;
    }
    .modal-content{
        margin: 10% auto;
    }
}

/* Responsive Design - Mobile (below 768px) */
@media screen and (max-width: 768px) {
    .content {
        padding:120px 20px 30px;
    }
    .consultant {
        margin-bottom: 24px;
    }
    .title-1 {
        font-size: 18px;
    }
    .title-3 {
        font-size: 24px;
    }
    .line-title {
        font-size: 18px;
        margin: 15px 0 5px 0;
    }
    hr {
        margin-bottom: 15px;
    }
    .photo-item img {
        border-radius: 3px;
    }
    .text-content {
        font-size: 14px;
    }
    .activity-item img {
        max-width: 80px;
    }
    .modal-content{
        margin: 10% auto;
    }
    .image-grid{
        display: block;
    }
    .image-grid .photo-item img{
        padding: 20px 0;
    }
    .photo-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
}