/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

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

a {
  text-decoration: none;
  color: #0078d7;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
}

h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

/* Header styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  padding: 15px 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex: 1;
}

/* Logo link styles */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.logo a:hover {
  transform: scale(1.05);
}

.logo a:active {
  transform: scale(0.95);
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

nav {
  flex: 2;
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #0078d7;
}

.social-header {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.social-header a {
  display: flex;
  align-items: center;
}

.social-header img {
  transition: transform 0.3s;
}

.social-header img:hover {
  transform: translateY(-3px);
}

/* Product Hunt badge specific styling */
.product-hunt-badge img {
  width: 250px;
  height: 54px;
  object-fit: contain;
}

/* Other social icons styling */
.social-header a:not(.product-hunt-badge) img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Responsive adjustments for Product Hunt badge */
@media (max-width: 768px) {
  .product-hunt-badge img {
    width: 180px;
    height: 39px;
  }
}

@media (max-width: 480px) {
  .product-hunt-badge img {
    width: 150px;
    height: 32px;
  }
}

/* Banner styles */
.banner {
  background: linear-gradient(135deg, #4fc3f7, #2196f3);
  color: white;
  padding: 100px 0;
}

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

.banner-content {
  flex: 1;
  padding-right: 40px;
  text-align: left;
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -20px;
  margin-right: -20px;
}

.gradient-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(to bottom, #ffffff, #ffd54f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-align: left;
}

.gradient-title {
  text-align: center;
}

.centered-text {
  display: block;
  text-align: center;
}

/* 修改Study Now按钮样式，使其更大 */
.study-now-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  color: white;
  font-size: 1.4rem; /* 增大字体大小 */
  font-weight: bold;
  padding: 15px 45px; /* 增大内边距 */
  border-radius: 30px;
  margin-top: 25px; /* 增大上边距 */
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4); /* 增强阴影 */
  transition: all 0.3s ease;
}

.study-now-btn:hover {
  transform: translateY(-5px); /* 增大悬停时的上移距离 */
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5); /* 增强悬停时的阴影 */
}

.benefits {
  margin-bottom: 30px;
}

.benefits li {
  margin-bottom: 15px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.benefit-icon {
  color: #ffd54f;
  margin-right: 10px;
  font-style: normal;
  font-size: 1rem;
}

.banner-video {
  flex: 0.5; /* Reduce to half size */
  max-width: 400px;
}

.banner-video video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Features styles */
.features {
  background-color: #f9f9f9;
  padding: 100px 0;
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.feature-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  min-height: 250px;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-content {
  flex: 1.3;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-image {
  flex: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.feature-image img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Testimonials styles */
.testimonials {
  background-color: white;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 20px;
  color: #555;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.testimonial-author span {
  font-weight: bold;
  color: #333;
}

/* Prayer styles */
.prayer-section {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.prayer-breadcrumb {
  margin-bottom: 20px;
  color: #666;
}

.prayer-breadcrumb a {
  color: #0078d7;
}

.prayer-content {
  margin: 40px 0;
}

.prayer-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.prayer-date {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: #777;
}

.calendar-icon {
  font-size: 1rem;
  margin-right: 5px;
  vertical-align: middle;
}

.prayer-scripture {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.prayer-scripture .verse {
  font-style: italic;
  margin-bottom: 10px;
}

.prayer-scripture .reference {
  text-align: right;
  font-weight: bold;
}

.prayer-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Vertical Prayer Categories */
.prayer-categories-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
}

.prayer-category-item {
  display: flex;
  align-items: center;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  color: white;
  overflow: hidden;
}

.prayer-category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.prayer-category-icon {
  font-size: 2.5rem;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.prayer-category-content {
  flex: 1;
}

.prayer-category-content h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: white;
}

.prayer-category-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Gradient backgrounds for prayer categories */
.healing-gradient {
  background: linear-gradient(135deg, rgba(255, 126, 95, 0.6), rgba(254, 180, 123, 0.6));
}

.strength-gradient {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.6), rgba(0, 242, 254, 0.6));
}

.protection-gradient {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
}

.prayer-navigation {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  text-align: center;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #333;
}

.btn-secondary:hover {
  background-color: #e0e0e0;
  transform: translateY(-3px);
}

/* Download styles - Simple version for download page */
.download-simple {
  background-color: white;
  padding: 100px 0;
  text-align: center;
}

.download-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.download-platforms {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-section {
  text-align: center;
  min-width: 250px;
}

.platform-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #2c3e50;
}

.waitlist-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.waitlist-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 18px 35px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  display: inline-block;
}

.waitlist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  color: white;
}

.waitlist-text {
  font-size: 1rem;
  color: #666;
  margin: 0;
  max-width: 250px;
  line-height: 1.5;
}

.qr-code {
  margin-top: 30px;
  text-align: center;
}

.qr-code img {
  width: 180px;
  height: 180px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.qr-code p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.app-store img {
  height: 70px;
  transition: transform 0.3s;
  margin-bottom: 20px;
}

.app-store img:hover {
  transform: scale(1.05);
}

/* Footer styles */
footer {
  background-color: #333;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  color: #fff;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-links img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s;
}

.social-links img:hover {
  transform: translateY(-5px);
}

.footer-column p {
  margin-top: 10px;
}

.footer-column a {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s;
}

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

.legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-btn {
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  margin-bottom: 10px;
  margin-top: 20px;
}

.cta-section .cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Responsive styles */
@media (max-width: 992px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .logo,
  nav,
  .social-header {
    justify-content: center;
  }

  .social-header {
    margin-top: 10px;
  }

  .banner .container {
    flex-direction: column;
  }

  .banner-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .feature-card {
    flex-direction: column;
  }

  .feature-content {
    order: 2;
  }

  .feature-image {
    order: 1;
  }

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

  .prayer-category-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .download-platforms {
    flex-direction: column;
    gap: 40px;
  }

  .platform-section {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    justify-content: center;
  }

  nav ul li {
    margin: 0 10px;
  }

  .gradient-title {
    font-size: 2.2rem;
  }

  .testimonial-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar {
    margin-right: 0;
    margin-bottom: 10px;
  }

  section {
    padding: 60px 0;
  }

  h1,
  h2 {
    font-size: 2rem;
  }
}

/* Add these styles for the calendar icon and prayer formatting */

#daily-prayer {
  margin-top: 20px;
}

#daily-prayer p {
  margin-bottom: 15px;
  line-height: 1.8;
  text-align: center;
}

#daily-prayer p:first-child {
  font-weight: bold;
  font-size: 1.2rem;
}

#daily-prayer p:last-child {
  font-style: italic;
  margin-top: 20px;
}

/* Add text-center utility class */
.text-center {
  text-align: center;
}

/* Add these styles at the end of the file */

/* Subcategory List Styles */
.subcategory-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.subcategory-card {
  display: flex;
  align-items: center;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  color: white;
  overflow: hidden;
  text-decoration: none;
}

.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.subcategory-icon {
  font-size: 2.5rem;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.subcategory-content {
  flex: 1;
}

.subcategory-content h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: white;
}

.subcategory-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Prayer Detail Styles */
.prayer-detail-header {
  display: flex;
  align-items: center;
  padding: 30px;
  border-radius: 10px;
  margin: 30px 0;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: #333;
}

.prayer-detail-icon {
  font-size: 3.5rem;
  margin-right: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.prayer-detail-title {
  flex: 1;
}

.prayer-detail-title h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #333;
  text-align: left;
}

.prayer-detail-title p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.prayer-detail-content {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin-bottom: 30px;
  min-height: 300px;
  color: white;
}

.healing-content {
  background: linear-gradient(135deg, rgba(255, 126, 95, 0.6), rgba(254, 180, 123, 0.6));
}

.strength-content {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.6), rgba(0, 242, 254, 0.6));
}

.protection-content {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prayer-detail-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .prayer-detail-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .prayer-detail-title h1 {
    text-align: center;
    font-size: 1.8rem;
  }

  .prayer-detail-content {
    padding: 25px;
  }
}

/* Resources Styles */
.resources-section {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.resources-tabs {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.resources-tab {
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.resources-tab.active {
  color: #0078d7;
  border-bottom: 2px solid #0078d7;
}

.resources-tab:hover {
  color: #0078d7;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.resource-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resource-card:hover {
  transform: translateY(-10px);
}

.resource-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.resource-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.resource-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

.resource-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 15px;
}

.resource-excerpt {
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
}

.resource-link {
  margin-top: auto;
  color: #0078d7;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.resource-link:hover {
  text-decoration: underline;
}

/* Resource Detail Page */
.resource-detail-section {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.resource-detail-header {
  margin-bottom: 30px;
}

.resource-detail-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333;
}

.resource-detail-date {
  font-size: 1rem;
  color: #888;
  margin-bottom: 30px;
}

.resource-detail-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Reduce the width to 70% on larger screens */
  width: 100%;
}

/* Add responsive sizing for different screen sizes */
@media (min-width: 768px) {
  .resource-detail-image {
    width: 80%;
  }
}

@media (min-width: 1024px) {
  .resource-detail-image {
    width: 70%;
  }
}

.resource-detail-content {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  color: #333;
}

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

.resource-detail-content h2 {
  font-size: 1.8rem;
  margin: 30px 0 20px;
  text-align: left;
}

.resource-detail-content h3 {
  font-size: 1.5rem;
  margin: 25px 0 15px;
  text-align: left;
}

.resource-detail-content ul,
.resource-detail-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.resource-detail-content li {
  margin-bottom: 10px;
}

.resource-detail-content blockquote {
  border-left: 4px solid #0078d7;
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .resources-tabs {
    flex-wrap: wrap;
  }

  .resource-detail-title {
    font-size: 2rem;
  }

  .resource-detail-content {
    padding: 25px;
  }
}

/* Table of Contents Styles */
.table-of-contents {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table-of-contents h3 {
  font-size: 1.3rem;
  color: #333;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #0078d7;
  text-align: left;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 8px;
}

.table-of-contents a {
  display: block;
  padding: 8px 12px;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  line-height: 1.4;
}

.table-of-contents a:hover {
  background-color: #e6f0ff;
  color: #0078d7;
  transform: translateX(5px);
}

.table-of-contents a:active {
  background-color: #cce7ff;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Add some padding to sections for better anchor positioning */
.resource-detail-content section {
  scroll-margin-top: 100px;
}

/* Responsive adjustments for table of contents */
@media (max-width: 768px) {
  .table-of-contents {
    padding: 15px;
    margin: 20px 0;
  }

  .table-of-contents h3 {
    font-size: 1.2rem;
  }

  .table-of-contents a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}

/* Add these styles at the end of the file */

/* Bible Lessons Page Styles */
.bible-lessons-section {
  background-color: #f5f7fa;
  padding: 60px 0;
  min-height: 100vh;
}

/* Bible Container with Sidebar */
.bible-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Bible Sidebar Styles */
.bible-sidebar {
  width: 250px;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-right: 30px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #333;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.mobile-toggle span:nth-child(1) {
  top: 0px;
}

.mobile-toggle span:nth-child(2) {
  top: 9px;
}

.mobile-toggle span:nth-child(3) {
  top: 18px;
}

.mobile-toggle.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-toggle.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

.sidebar-content {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.testament-section {
  margin-bottom: 25px;
}

.testament-section h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-list li a {
  display: block;
  padding: 8px 10px;
  color: #555;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.book-list li a:hover {
  background-color: #f5f7fa;
  color: #0078d7;
}

.book-list li a.active {
  background-color: #e6f0ff;
  color: #0078d7;
  font-weight: 500;
}

/* Bible Main Content Styles */
.bible-main-content {
  flex: 1;
}

.book-content {
  display: none;
}

.book-content.active {
  display: block;
}

/* Coming Soon Content Styles */
.coming-soon-container {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-top: 30px;
}

.book-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.chapters-list {
  margin-bottom: 40px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.chapter-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background-color: #f5f7fa;
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chapter-link:hover {
  background-color: #e6f0ff;
  color: #0078d7;
  transform: translateY(-2px);
}

.coming-soon-content {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #f0f0f0;
}

.coming-soon-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.coming-soon-content p {
  color: #666;
  margin-bottom: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-app-section {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lessons-header {
  text-align: center;
  margin-bottom: 40px;
}

.user-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 0;
  gap: 20px;
}

.progress-stats {
  display: flex;
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-item img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.current-part {
  background-color: #9c64ff;
  color: white;
  padding: 35px 30px;
  border-radius: 15px;
  margin: 30px auto 40px;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(156, 100, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.series-title {
  font-size: 2.5rem;
  margin: 0;
  color: white;
  font-weight: 700;
  line-height: 1.2;
}

.lesson-path {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Updated Lesson Card Styles */
.lesson-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.lesson-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.lesson-main-content {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.lesson-image {
  width: 120px;
  height: 80px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-right: 15px;
}

.lesson-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.completion-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background-color: #4caf50;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.lesson-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: #ff5722;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
}

.lesson-lock {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 16px;
}

.lesson-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lesson-info h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  color: #333;
}

.lesson-info p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Subcards Styles */
.lesson-subcards {
  display: flex;
  padding: 15px;
  gap: 10px;
  flex-wrap: wrap;
}

.subcard {
  flex: 1;
  min-width: 120px;
  background-color: #f5f7fa;
  border-radius: 10px;
  padding: 12px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.subcard:hover {
  background-color: #e8edf5;
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.subcard:active {
  transform: translateY(-1px);
}

/* 修改subcard内容垂直居中 */
.subcard-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直居中 */
  align-items: center; /* 水平居中 */
  height: 100%;
  text-align: center;
}

.subcard-content h4 {
  margin: 0 0 5px;
  color: #333;
  font-size: 0.95rem;
}

.lock-icon {
  position: static; /* 改为静态定位，不再绝对定位 */
  margin-top: 5px; /* 添加上边距 */
  font-size: 14px;
}

.subcard.premium {
  background-color: #f0e6ff;
}

.subcard.premium:hover {
  background-color: #e6d9ff;
}

.subcard.locked {
  opacity: 0.7;
  cursor: not-allowed;
}


.path-connector {
  width: 3px;
  height: 30px;
  background-color: #9c64ff;
  margin: 0 auto;
  position: relative;
}

/* 添加装饰元素使连接线更美观 */
.path-connector:before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background-color: #9c64ff;
  border-radius: 50%;
  opacity: 0.7;
}

.path-connector:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background-color: #9c64ff;
  border-radius: 50%;
  opacity: 0.7;
}

.lesson-card.completed {
  border-left: 5px solid #4caf50;
}

.lesson-card.active {
  border-left: 5px solid #ff5722;
}

.lesson-card.locked {
  opacity: 0.8;
  border-left: 5px solid #9e9e9e;
}

.lessons-footer {
  text-align: center;
  margin-top: 50px;
}

.download-app-btn {
  display: inline-block;
  background: linear-gradient(90deg, #4fc3f7, #2196f3);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
  transition: all 0.3s ease;
}

.download-app-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #333;
}

.modal-content h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.modal-content p {
  margin-bottom: 25px;
  color: #666;
}

.modal-content .download-app-btn {
  margin-top: 10px;
}

/* Responsive adjustments for Bible Lessons */
@media (max-width: 992px) {
  .bible-container {
    flex-direction: column;
  }

  .bible-sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
    position: relative;
    top: 0;
  }

  .sidebar-content {
    max-height: none;
    display: none;
  }

  .sidebar-content.active {
    display: block;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .series-title {
    font-size: 2rem;
  }

  .lesson-subcards {
    flex-direction: column;
  }

  .subcard {
    width: 100%;
    margin-bottom: 10px;
  }

  .chapter-grid {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  }
}

@media (max-width: 480px) {
  .current-part {
    padding: 25px 15px;
    margin-top: 40px;
  }

  .series-title {
    font-size: 1.6rem;
  }

  .lesson-main-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lesson-image {
    margin-right: 0;
    margin-bottom: 15px;
    width: 100%;
    height: 120px;
  }
}

/* App Store Links in Coming Soon */
.app-store-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.app-store img {
  height: 50px;
  transition: transform 0.3s;
}

.app-store img:hover {
  transform: scale(1.05);
}

/* Bible Book Background Colors */
.genesis-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.exodus-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.leviticus-bg {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.numbers-bg {
  background: linear-gradient(135deg, #16a085, #1abc9c);
}

.deuteronomy-bg {
  background: linear-gradient(135deg, #d35400, #e67e22);
}

.joshua-bg {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.judges-bg {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.ruth-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.samuel1-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.samuel2-bg {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.kings1-bg {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.kings2-bg {
  background: linear-gradient(135deg, #d35400, #e67e22);
}

.chronicles1-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.chronicles2-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.ezra-bg {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.nehemiah-bg {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.esther-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.job-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.psalms-bg {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.proverbs-bg {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.ecclesiastes-bg {
  background: linear-gradient(135deg, #d35400, #e67e22);
}

.song-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.isaiah-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.jeremiah-bg {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.lamentations-bg {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.ezekiel-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.daniel-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.hosea-bg {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.joel-bg {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.amos-bg {
  background: linear-gradient(135deg, #d35400, #e67e22);
}

.obadiah-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.jonah-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.micah-bg {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.nahum-bg {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.habakkuk-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.zephaniah-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.haggai-bg {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.zechariah-bg {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.malachi-bg {
  background: linear-gradient(135deg, #d35400, #e67e22);
}

.matthew-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.mark-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.luke-bg {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.john-bg {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.acts-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.romans-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.corinthians1-bg {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.corinthians2-bg {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.galatians-bg {
  background: linear-gradient(135deg, #d35400, #e67e22);
}

.ephesians-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.philippians-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.colossians-bg {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.thessalonians1-bg {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.thessalonians2-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.timothy1-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.timothy2-bg {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.titus-bg {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.philemon-bg {
  background: linear-gradient(135deg, #d35400, #e67e22);
}

.hebrews-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.james-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.peter1-bg {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.peter2-bg {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
}

.john1-bg {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.john2-bg {
  background: linear-gradient(135deg, #2980b9, #3498db);
}

.john3-bg {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.jude-bg {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.revelation-bg {
  background: linear-gradient(135deg, #d35400, #e67e22);
}

.default-bg {
  background: linear-gradient(135deg, #9c64ff, #7c4dff);
}

.path-connector {
  width: 2px;
  height: 20px; /* 减少高度 */
  background: repeating-linear-gradient(to bottom, #9c64ff 0px, #9c64ff 4px, transparent 4px, transparent 8px);
  margin: -10px auto 10px; /* 调整上下边距，使其更靠近卡片 */
  position: relative;
  animation: dashFlow 2s linear infinite;
  opacity: 0.8;
}

/* 删除之前的 :before 和 :after 伪元素 */
.path-connector:before,
.path-connector:after {
  display: none;
}

/* 添加动画关键帧 */
@keyframes dashFlow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 16px; /* 虚线移动的距离 */
  }
}

/* 调整课程卡片的下边距，为连接线留出空间 */
.lesson-card {
  margin-bottom: 15px; /* 减少卡片下边距 */
}

/* 在文件末尾添加以下代码 */

/* 连接线样式 */
.path-connector {
  width: 2px;
  height: 20px;
  margin: -10px auto 10px;
}

/* Product Hunt Badge Responsive Styles */
.social-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-header a img {
  transition: opacity 0.3s ease;
}

.social-header a:hover img {
  opacity: 0.8;
}
