/*
Theme Name: MIC Church Theme
Theme URI: https://mckinneyinternationalchurch.org
Author: MIC Development Team
Author URI: https://mckinneyinternationalchurch.org
Description: A modern, bilingual (English/Chinese) WordPress theme for McKinney International Church with clean design and full translation support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mic-church
Domain Path: /languages
*/

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5f7c;
    --secondary-color: #4a90a4;
    --accent-color: #f4a261;
    --text-dark: #2b2d42;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand h1 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 110px;
    width: auto;
    object-fit: contain;
}

.nav-brand span {
    font-size: 0.9rem;
    color: var(--text-light);
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu .current-menu-item > a {
    color: var(--primary-color);
}

.nav-menu a.active::after,
.nav-menu .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.language-selector:hover {
    border-color: var(--primary-color);
}

.language-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 95, 124, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    min-width: 100%;
    min-height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: block;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInContent 0.8s ease 3s forwards;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 3s both;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 3.2s both;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 3.4s both;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 3.6s both;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #e76f51;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* 特色区域 */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* 活动区域 */
.events {
    padding: 80px 0;
    background: var(--white);
}

.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.event-date {
    min-width: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date .day {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.event-date .time {
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.event-content p {
    color: var(--text-light);
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* 页面内容样式 */
.page-content {
    padding: 80px 0;
    min-height: 60vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.content-section {
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section ul li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.content-section ul li strong {
    color: var(--primary-color);
}

/* 服务时间表格 */
.services-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.services-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.services-table th,
.services-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

.services-table th {
    font-weight: 700;
}

.services-table tbody tr:hover {
    background: var(--bg-light);
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 95, 124, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* 团队成员样式 */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.team-member-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-member-photo {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.team-member-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member-card:hover .team-member-photo img {
    transform: scale(1.05);
}

.team-member-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 1.2rem;
}

.team-member-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-member-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-member-title {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    font-style: italic;
}

.team-member-bio {
    color: var(--text-light);
    line-height: 1.8;
    flex-grow: 1;
}

.team-member-bio p {
    margin-bottom: 0.5rem;
}

.team-member-bio p:last-child {
    margin-bottom: 0;
}

/* 团队区域标题 */
.team-section-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
}

/* 捐赠页面样式 */
.donation-container {
    max-width: 800px;
    margin: 2rem auto;
}

.donation-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.donation-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.donation-section h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.donation-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.donation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.donation-method {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.donation-method:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.donation-method h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.donation-method p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.donation-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.donation-button:hover {
    background: #e76f51;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.donation-info {
    background: rgba(44, 95, 124, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* WordPress 内容样式 */
.entry-content {
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-brand span {
        display: none;
    }

    .logo-img {
        height: 80px;
    }

    .nav-actions {
        order: -1;
    }

    .language-selector {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    }

    .hero-subtitle {
        font-size: 1.2rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-description {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    .section-title {
        font-size: 2rem;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        min-width: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .services-table {
        font-size: 0.9rem;
    }

    .services-table th,
    .services-table td {
        padding: 0.75rem;
    }

    .team-members {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member-info {
        padding: 1.25rem;
    }
    
    .team-member-name {
        font-size: 1.25rem;
    }
    
    .team-section-title {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   Page Layout Styles
   ======================================== */

/* Full Width Page */
.full-width-page .container {
    max-width: 1200px;
}

/* Page with Sidebar */
.page-with-sidebar .page-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.page-with-sidebar .page-sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 768px) {
    .page-with-sidebar .page-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-with-sidebar .page-sidebar {
        position: static;
    }
}

/* ========================================
   Widget Styles
   ======================================== */

/* Widget Base Styles */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Contact Info Widget */
.mic-contact-widget .contact-item {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mic-contact-widget .contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.mic-contact-widget .contact-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.mic-contact-widget .contact-item a:hover {
    text-decoration: underline;
}

/* Social Media Widget */
.mic-social-widget .social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mic-social-widget .social-links li {
    margin-bottom: 0.8rem;
}

.mic-social-widget .social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.mic-social-widget .social-links a:hover {
    color: var(--primary-color);
}

.mic-social-widget .social-icon {
    font-size: 1.2rem;
}

/* Service Times Widget */
.mic-service-times-widget .service-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-light);
}

.mic-service-times-widget .service-item:last-child {
    border-bottom: none;
}

.mic-service-times-widget .service-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mic-service-times-widget .service-time {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mic-service-times-widget .service-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Church Info Widget */
.mic-church-info-widget .church-name {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mic-church-info-widget .church-description {
    color: var(--text-light);
    line-height: 1.8;
}

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

.mic-recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-light);
}

.mic-recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mic-recent-posts a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.3s;
}

.mic-recent-posts a:hover {
    color: var(--accent-color);
}

.mic-recent-posts .post-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Quick Links Widget */
.mic-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mic-quick-links li {
    margin-bottom: 0.8rem;
}

.mic-quick-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.mic-quick-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Events Widget */
.mic-events-widget .event-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.mic-events-widget .event-item:last-child {
    margin-bottom: 0;
}

.mic-events-widget .event-day {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.mic-events-widget .event-time {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mic-events-widget .event-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mic-events-widget .event-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer Widget Areas */
.footer .widget {
    margin-bottom: 1.5rem;
}

.footer .widget-title {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Sidebar Widget Styles */
.sidebar .widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Responsive Widget Styles */
@media (max-width: 768px) {
    .widget-title {
        font-size: 1.3rem;
    }
    
    .mic-service-times-widget .service-item h4,
    .mic-church-info-widget .church-name {
        font-size: 1.1rem;
    }
}


