html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  margin: 0;
  padding: 0;
  background: #181a1b;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  word-wrap: break-word;
}

header {
  background: linear-gradient(135deg, #23272a 0%, #181a1b 100%);
  color: #fff;
  padding: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

footer {
  background-color: #181a1b;
  color: #e0e0e0;
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  width: 100%;
}

main {
  padding: 0 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  background: #181a1b;
}

section {
  background: #23272a;
  margin: 1rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
  color: #fff;
}

.hebrew {
  direction: rtl;
  text-align: right;
  font-family: "Noto Sans Hebrew", sans-serif;
}

section h2 {
  color: #fff;
  font-size: 2rem;
  margin: 0 0 1.5rem 0;
  position: relative;
  padding-bottom: 0.5rem;
  text-align: center;
  width: 100%;
}

/* section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #2563eb;
} */

.hebrew h2 {
  text-align: center;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.button {
  display: block;
  background: linear-gradient(135deg, #2563eb 0%, #1a237e 100%);
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  margin: 0.5rem 0;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-sizing: border-box;
}

.donate-button {
  background: linear-gradient(135deg, #b8860b 0%, #daa520 50%, #b8860b 100%);
  color: #000;
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid #8b6914;
  position: relative;
  overflow: hidden;
}

.donate-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.donate-button:hover {
  background: linear-gradient(135deg, #daa520 0%, #ffd700 50%, #daa520 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(255, 215, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.donate-button:hover::before {
  left: 100%;
}

.other-buttons-grid .button {
  font-size: 1.4rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .other-buttons-grid .button {
    font-size: 1.1rem;
  }
}

@media (max-width: 800px) {
  .button {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .button {
    font-size: 1.3rem;
    max-width: 100%;
    min-width: 0;
  }
}

.blog-list-container {
  margin: 1rem 0;
  padding: 1.5rem;
  color: #fff;
}
.blog-list-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  position: relative;
  padding-bottom: 0.5rem;
  text-align: center;
}
.toc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #333;
}

.toc-item {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #fff;
  transition: background-color 0.2s;
  border-bottom: 1px solid #333;
}

.toc-item:hover {
  background-color: #2a2d2e;
}

.toc-item-content {
  text-align: left;
}

.hebrew .toc-item-content {
  text-align: right;
}

.toc-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #fff;
}

.toc-item-excerpt {
  font-size: 1rem;
  color: #aaa;
  margin: 0;
  padding-left: 1rem;
  font-style: italic;
}

.hebrew .toc-item-excerpt {
  padding-left: 0;
  padding-right: 1rem;
}

.blog-post-container {
  margin: 1rem 0;
  padding: 1.5rem;
  color: #fff;
}
.blog-post-nav {
  margin-bottom: 2rem;
}
.blog-post-back {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}
.blog-post-article {
  width: 100%;
  max-width: 75ch;
  margin: 0 auto;
}
.blog-post-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
}
.blog-post-date {
  font-size: 1rem;
  color: #90caf9;
  margin-bottom: 1.5rem;
}
.blog-post-content {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.8;
  text-align: justify;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content h2, .blog-post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.3;
  text-align: start;
}
.blog-post-content a {
  color: #90caf9;
  text-decoration: none;
  border-bottom: 1px dotted #90caf9;
}

.blog-post-content a:hover {
  color: #a9d4fa;
  border-bottom: 1px solid #a9d4fa;
}

.blog-post-content ul, .blog-post-content ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.75rem;
}

.blog-post-content blockquote {
  border-left: 4px solid #444;
  padding-left: 1.5rem;
  margin-left: 0;
  margin-right: 0;
  font-style: italic;
  color: #bbb;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 2rem;
}
.big-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.blog-post-ctas {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0 1.5rem 0;
}
.blog-post-ctas .button {
  font-size: 1.3rem;
  font-weight: 700;
  max-width: 260px;
  min-width: 180px;
  padding: 1.1rem 1.5rem;
}
@media (max-width: 600px) {
  .blog-list-container, .blog-post-container {
    padding: 1rem;
  }
  .blog-post-title {
    font-size: 1.8rem;
  }

  .blog-post-content {
    font-size: 1rem;
    text-align: left;
  }
}
@media (max-width: 700px) {
  .big-title {
    font-size: 2rem;
  }
  .blog-post-ctas {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }
}

.other-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .other-buttons-grid {
    grid-template-columns: 1fr;
  }
}

/* Encountering Messiah Page Styles */
.encountering-messiah-content {
  max-width: 800px;
  margin: 0 auto;
}

.encountering-messiah-content .section {
  margin: 2rem 0;
}

.encountering-messiah-content h2 {
  color: #2563eb;
  font-size: 1.8rem;
  margin: 1.5rem 0 1rem 0;
  text-align: left;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 0.5rem;
}

.encountering-messiah-content p {
  margin: 0.5rem 0 1rem 0;
  color: #ccc;
  font-style: italic;
}

.encountering-messiah-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.encountering-messiah-content li {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  border-left: 3px solid #2563eb;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.encountering-messiah-content li:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateX(5px);
}

.encountering-messiah-content li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.encountering-messiah-content li a:hover {
  color: #2563eb;
}

.encountering-messiah-content li em {
  color: #ccc;
  font-style: italic;
}

.coming-soon {
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.encountering-messiah-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  margin: 2rem 0;
}

.blog-post-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  margin: 1rem 0;
  text-align: center;
}

.blog-post-author {
  font-size: 1rem;
  color: #999;
  margin: 0.5rem 0 2rem 0;
  text-align: center;
}

.home-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .home-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Search Component Styles */
.search-container {
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #404040;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #333;
}

.search-input::placeholder {
  color: #888;
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.search-loading {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
}

.search-clear {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-clear:hover {
  color: #e2e8f0;
  background: rgba(160, 174, 192, 0.1);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #404040;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.search-results-info {
  text-align: center;
  margin-top: 1rem;
  color: #888;
  font-size: 0.9rem;
}

.search-results-info p {
  margin: 0;
}

@media (max-width: 600px) {
  .search-input {
    font-size: 1rem;
    padding: 0.8rem 2.5rem 0.8rem 0.8rem;
  }
  
  .search-icon {
    right: 0.8rem;
  }
  
  .search-loading {
    right: 0.8rem;
  }
}

/* Pagination Styles */
.pagination {
  margin: 2rem 0;
  text-align: center;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pagination-nav {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #1a237e 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pagination-nav:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination-pages {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  background: #2d3748;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #4a5568;
}

.pagination-page:hover {
  background: #4a5568;
  color: #fff;
  transform: translateY(-1px);
}

.pagination-page-active {
  background: linear-gradient(135deg, #2563eb 0%, #1a237e 100%);
  color: #fff;
  border-color: #2563eb;
  font-weight: 600;
}

.pagination-page-active:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.pagination-ellipsis {
  color: #a0aec0;
  padding: 0 0.5rem;
  font-weight: 500;
}

.pagination-info {
  color: #a0aec0;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  .pagination-container {
    gap: 0.25rem;
  }
  
  .pagination-nav {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .pagination-page {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }
  
  .pagination-pages {
    gap: 0.125rem;
  }
}
