/* Basic CSS for Mansfield Church Estate Charity */
body {
  font-family: Georgia, serif;
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section {
  display: flex;
  justify-content: center;   /* 水平居中 */
  align-items: center;       /* 垂直居中 */
  min-height: 100vh;         /* 占满整个视口高度 */
  text-align: center;        /* 文本居中 */
  box-sizing: border-box;
}

.hero-content h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #555;
}

.header {
  background: #1a365d;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  color: white;
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.nav-menu a:hover {
  background: #d69e2e;
  color: #1a365d;
  border-radius: 4px;
}

.hero-section {
  background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(45, 55, 72, 0.6)),
    url("background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  color: #1a365d;
  font-size: 2rem;
}

.about-section {
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.about-text h3 {
  color: #1a365d;
  margin-bottom: 1rem;
}

.about-text li {
  padding: 0.5rem 0;
}

.about-text li i {
  color: #d69e2e;
  margin-right: 0.5rem;
}

.about-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-img:hover {
  transform: scale(1.02);
}

.activities-section {
  background: #f7fafc;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.activity-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-icon {
  width: 80px;
  height: 80px;
  background: #d69e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.activity-icon i {
  font-size: 2rem;
  color: white;
}

.activity-card h3 {
  color: #1a365d;
  margin-bottom: 1rem;
}

.programs-section {
  background: white;
}

.programs-content {
  display: grid;
  gap: 2rem;
}

.program-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 4px solid #d69e2e;
}

.program-icon {
  width: 60px;
  height: 60px;
  background: #d69e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-icon i {
  font-size: 1.5rem;
  color: white;
}

.history-section {
  background: #f7fafc;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  background: #d69e2e;
  color: #1a365d;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.stories-section {
  background: white;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.story-card {
  background: #f7fafc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.story-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.story-img:hover {
  transform: scale(1.05);
}

.story-content {
  padding: 1.5rem;
}

.story-content h3 {
  color: #1a365d;
  margin-bottom: 1rem;
}

.subscribe-section {
  background: #1a365d;
  color: white;
}

.subscribe-section .section-header h2,
.subscribe-section .section-header p {
  color: white;
}

.subscribe-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  background: #d69e2e;
  color: #1a365d;
}

.btn:hover {
  background: #b7791f;
  transform: translateY(-2px);
}

.contact-section {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: #d69e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-item h3 {
  color: #1a365d;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #4a5568;
  margin: 0;
}

.contact-form {
  background: #f7fafc;
  padding: 2rem;
  border-radius: 8px;
}

.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.footer {
  background: #1a365d;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #d69e2e;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #cbd5e0;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #d69e2e;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #d69e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a365d;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 2rem;
  color: #a0aec0;
}

.image-placeholder {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #6c757d;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.image-placeholder:hover {
  border-color: #d69e2e;
  background: #fff3cd;
}

.image-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #d69e2e;
}

.image-placeholder p {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.image-dimensions {
  font-size: 0.8rem;
  color: #6c757d;
  background: #e9ecef;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-family: monospace;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}
