/* About Page Specific Styles */
.page-header {
    background: linear-gradient(rgba(111,66,193, 0.9), rgba(111,66,193, 0.8)), url('/skin/img/banner.jpg') center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: white;
}
.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}
.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.story-section {
    padding: 100px 0;
    background-color: #fff;
}
.story-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}
.story-img {
    flex: 1;
    min-width: 300px;
}
.story-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.story-text {
    flex: 1;
    min-width: 300px;
}
.story-text h2 {
    color: var(--primary-green);
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}
.story-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 2px;
}
.story-text h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}
.story-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

.values-section {
    background-color: #F2F1F3; /* Light Green Background */
    padding: 80px 0;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.value-card {
    background: white;
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,150,64,0.1);
    border: 1px solid var(--primary-green);
}
.value-card i {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 25px;
    display: inline-block;
}
.value-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}
.value-card p {
    color: #777;
    line-height: 1.6;
}

.custom-stats {
    background: var(--primary-green);
    color: white;
    padding: 80px 0;
}
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 30px;
}
.stat-box h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}
.stat-box p {
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-box i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* New classes for inline style replacements */
.values-title-container {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.values-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}
.values-subtitle {
    color: #666;
}
.cta-section {
    padding: 80px 0;
    text-align: center;
}
.cta-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}
.cta-text {
    color: #666;
    margin-bottom: 40px;
    font-size: 18px;
}
.cta-btn {
    background: var(--primary-green);
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}

/* Contact Page Specific Styles */
.contact-header {
    background: linear-gradient(rgba(111,66,193, 0.9), rgba(111,66,193, 0.8)), url('/skin/img/banner.jpg') center/cover no-repeat;
}
/* 复用 page-header 的通用样式，通过 adding class 或者 CSS 组合 */
/* 由于 page-header 已经在上面定义了，这里我们只需覆盖背景即可，前提是 HTML 中同时使用了 page-header 和 contact-header 类，或者单独定义 */

.contact-section {
    padding: 100px 0;
    background-color: #fff;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: var(--primary-green);
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info p {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: #f5fff5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-green);
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.info-content span {
    color: #777;
    font-size: 14px;
    display: block;
    line-height: 1.5;
}

.contact-form-wrapper {
    flex: 1.5;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.submit-btn {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #007a33; /* Darker shade of primary green */
}

.map-section {
    width: 100%;
    height: 450px;
    background-color: #eee;
    margin-bottom: -6px; /* Fix any tiny gap at bottom */
}
.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* News List Page Specific Styles */
.news-header {
    background: linear-gradient(rgba(111,66,193, 0.9), rgba(111,66,193, 0.8)), url('/skin/img/banner.jpg') center/cover no-repeat;
}

.news-list-section {
    padding: 80px 0;
    background-color: #fff; 
}

/* Layout: Main + Sidebar */
.news-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.news-main {
    flex: 0 0 70%;
    max-width: 70%;
}

.news-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
}

/* Responsive */
@media (max-width: 992px) {
    .news-main, .news-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Minimal List Layout (Replacement for Grid) */
.news-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-item-minimal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #eee; /* 可选：添加底部分隔线 */
    padding-bottom: 40px;
}

.news-item-minimal:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary-green);
}

.news-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--primary-green);
}

.meta-category a, .meta-tags a {
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.meta-category a:hover, .meta-tags a:hover {
    border-bottom: 1px solid var(--primary-green);
}

.news-summary {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.read-more-link {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.read-more-link:hover {
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    font-size: 14px;
}

.pagination .page-status {
    color: #999;
    margin-right: auto;
    font-size: 13px;
}

.pagination span:not(.page-status) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    background: #fff;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .page-num-current,
.pagination .page-num-current:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: rgba(0, 150, 64, 0.08);
}

.pagination span a[onclick],
.pagination span a[href="javascript:;"] {
    cursor: default;
    opacity: 0.5;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    /* padding: 30px;  NowFi 的 sidebar 看起来也是极简的，可能不需要大背景块，这里先保留 padding 但去掉显眼的阴影 */
    padding: 0;
    margin-bottom: 40px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
    color: #333;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 50px;
    height: 2px;
    background: var(--primary-green);
}

/* Search Widget */
.search-widget form {
    display: flex;
    gap: 10px;
}

.search-widget input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-widget button {
    background: var(--primary-green);
    color: white;
    border: none;
    width: 45px;
    border-radius: 5px;
    cursor: pointer;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #f5f5f5;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--primary-green);
}

.category-list i {
    font-size: 12px;
    opacity: 0.5;
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-posts li:last-child {
    margin-bottom: 0;
}

.recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-info h4 a {
    color: #333;
    text-decoration: none;
}

.recent-post-info h4 a:hover {
    color: var(--primary-green);
}

.recent-post-info span {
    font-size: 12px;
    color: #999;
}

/* News Detail Page Specific Styles */
.news-detail-article {
    padding-bottom: 40px;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #777;
}

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

.article-meta i {
    color: var(--primary-green);
}

.article-content {
    color: #444;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.article-content h2, .article-content h3, .article-content h4 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.article-nav a {
    flex: 1;
    min-width: 200px;
    text-decoration: none;
    color: #333;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
}

.article-nav a:hover {
    border-color: var(--primary-green);
    background: #f9f9f9;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.nav-title {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}