/*
Theme Name: Muyi Bilingual | 慕義堂雙語崇拜
Author: Colin Macrae
Description: A custom theme for Muyi Bilingual Congregation 慕義堂雙語崇拜
Version: 2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, featured-images
*/

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Variables */
:root {
  --deep-navy: #1B365D;
  --warm-beige: #F5E9D7;
  --muted-gold: #C9A66B;
  --sage-green: #A3B899;
  --soft-white: #F8F8F8;
}

/* Base Styles */
.muyi-body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: black;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Typography */
.muyi-serif-heading {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: normal;
}

.muyi-main-heading {
  font-size: 3.5rem;
  color: black
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

.muyi-chinese-heading {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: var(--muted-gold);
  text-align: center;
}

.muyi-section-heading {
  font-size: 2.5rem;
  color: black;
  margin-bottom: 2rem;
  text-align: center;
}

.muyi-section-subheading {
  font-size: 1.8rem;
}

.muyi-subheading {
  font-size: 1.5rem;
  color: black;
  margin-bottom: 1rem;
  text-align: center;
}

.muyi-body-text {
  margin-bottom: .5rem;
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mb-2rem {
  margin-bottom: 2rem;
}

.muyi-chinese-text {
  font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  line-height: 1.8;
  text-align: center;
}

/* Layout Sections */
.muyi-hero-section {
  background-color: var(--warm-beige);
  padding: 6rem 1rem;
  width: 100%;
  color: var(--deep-navy)
}

.muyi-services-section {
  background-color: var(--soft-white);
  padding: 4rem 1rem;
  width: 100%;
}

.muyi-about-section {
  background-color: var(--sage-green);
  padding: 4rem 1rem;
  width: 100%;
}

/* Three Column Layout */
.muyi-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.muyi-column {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
}

.muyi-card {
  padding: 1rem;
}

/* Content Container */
.muyi-content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Image Styles */
.muyi-image-wrapper {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* List Styles */
.muyi-list {
  padding-left: 0;
  list-style-position: inside;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .muyi-main-heading {
    font-size: 2.5rem;
  }
  
  .muyi-chinese-heading {
    font-size: 2rem;
  }
  
  .muyi-section-heading {
    font-size: 2rem;
  }
  
  .muyi-three-columns {
    flex-direction: column;
  }
  
  .muyi-column {
    flex: 1 1 100%;
  }
}

/******************** Header Styles **********************/
.muyi-header {
  background-color: var(--deep-navy);
  padding: 1rem 0;
  /* position: sticky; */
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.muyi-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.muyi-header-logo img {
  width: 160px;
  height: auto;
  transition: transform 0.3s ease;
}

.muyi-header-logo img:hover {
  transform: scale(1.05);
}

.muyi-header-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.muyi-header-nav a {
  color: var(--soft-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.muyi-header-nav a:hover {
  color: var(--muted-gold);
}

.muyi-header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--muted-gold);
  transition: width 0.3s ease;
}

.muyi-header-nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle (for future responsive implementation) */
.muyi-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--soft-white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .muyi-header-container {
    padding: 0 1rem;
  }
  
  .muyi-header-nav ul {
    gap: 1rem;
  }
}

/******************** Footer Styles **********************/

/* Footer Styles */
.muyi-footer {
  background-color: var(--deep-navy);
  color: var(--soft-white);
  padding: 3rem 1rem;
  width: 100%;
}

.muyi-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.muyi-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.muyi-footer-logo-section {
  flex: 1 1 300px;
}

.muyi-footer-logo {
  width: 160px;
  margin-bottom: 1.5rem;
}

.muyi-footer-text {
  color: var(--warm-beige);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.muyi-footer-nav-columns {
  flex: 2 1 600px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.muyi-footer-column-title {
  font-size: 1.25rem;
  color: var(--soft-white);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--muted-gold);
  display: inline-block;
}

.muyi-footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.muyi-footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.muyi-footer-icon {
  color: var(--muted-gold);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

.muyi-footer-link {
  color: var(--warm-beige);
  text-decoration: none;
  transition: color 0.3s ease;
}

.muyi-footer-link:hover {
  color: var(--muted-gold);
}

.muyi-footer-copyright {
  border-top: 1px solid var(--sage-green);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.muyi-footer-copyright-text {
  color: var(--warm-beige);
  font-size: 0.875rem;
}

.muyi-footer-social-links {
  display: flex;
  gap: 1.5rem;
}

.muyi-footer-social-icon {
  color: var(--warm-beige);
  width: 1.5rem;
  height: 1.5rem;
  transition: color 0.3s ease;
}

.muyi-footer-social-icon:hover {
  color: var(--muted-gold);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .muyi-footer-nav-columns {
    grid-template-columns: 1fr;
  }
  
  .muyi-footer-copyright {
    flex-direction: column;
    text-align: center;
  }
  
  .muyi-footer-social-links {
    justify-content: center;
  }
}


/* **************announcements styles *************** */
/* Main page container */
.announcements-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
    background-color: white;
    min-height: 80vh;
}

/* Page title */
.announcements-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #1E2A38;
}

/* Announcements list container */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Individual announcement */
.announcement {
    padding-bottom: 2rem;
    border-bottom: 1px solid #C9A46D;
}

.announcement:last-child {
    border-bottom: none;
}

/* Announcement title */
.announcement-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.announcement-title a {
    color: #1E2A38;
    text-decoration: none;
    transition: color 0.3s ease;
}

.announcement-title a:hover {
    color: #C9A46D;
}

/* Meta information */
.announcement-meta {
    font-size: 0.875rem;
    color: #333333;
    margin-bottom: 1rem;
}

.meta-separator {
    margin: 0 0.5rem;
}

/* Content */
.announcement-content {
    color: #333333;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: #C9A46D;
    font-weight: 500;
    margin-top: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #1E2A38;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid #1E2A38;
    text-decoration: none;
}

.pagination .current {
    background-color: #1E2A38;
    color: white;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

/* No announcements message */
.no-announcements {
    color: #333333;
}


/* ************  single blog post ************* */
/* Base Styles */
body {
    background: white;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Layout */
#primary {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Article Styles */
.single-post {
    margin-bottom: 3rem;
    min-height: 80vh;
}

/* Header */
.entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.entry-title {
    color: #333333;
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.entry-meta {
    color: #C9A46D;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.byline::before {
    content: "•";
    margin: 0 0.5rem;
}

/* Featured Image */
.post-thumbnail {
    margin: 1.5rem 0;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Content */
.entry-content {
    font-size: 1.1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: #1B365D;
    text-decoration: underline;
    text-decoration-color: #C9A66B;
}

.entry-content a:hover {
    color: #C9A66B;
}

.entry-content h2,
.entry-content h3 {
    color: #1B365D;
    margin: 2rem 0 1rem;
}

.entry-content h2 {
    font-size: 1.75rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

/* Footer */
.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #F5E9D7;
}

.post-categories,
.post-tags {
    margin-bottom: 1rem;
}

.post-categories a,
.post-tags a {
    display: inline-block;
    background: #F5E9D7;
    color: #1B365D;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.post-categories a:hover,
.post-tags a:hover {
    background: #C9A66B;
    color: white;
}

/* Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-previous a,
.nav-next a {
    color: #1B365D;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #F5E9D7;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #1B365D;
    color: white;
    border-color: #1B365D;
}

/* Responsive */
@media (max-width: 600px) {
    .entry-title {
        font-size: 2rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}



/* Back to Blog Link */
.back-to-blog {
    margin-bottom: 2rem;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    color: #1B365D;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-to-blog a:hover {
    color: #C9A66B;
}

.back-to-blog a::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B365D'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.2s ease;
}

.back-to-blog a:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C9A66B'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
}

