/*--------------------------------------------------------------
# Global Base Styles
--------------------------------------------------------------*/
body {
  background-color: #f0f3f5;
  color: #444;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 20px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600; /* Semi-bold for headings */
  color: #222;
  margin-bottom: 1em;
  line-height: 1.2;
}

p, ul, ol, table, pre, dl {
  margin-bottom: 1.2em;
  line-height: 1.6;
}

a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: #069;
  text-decoration: underline;
}

strong {
  color: #222;
  font-weight: 600;
}

small {
  font-size: 13px;
}

hr {
  border: 0;
  background: #e5e5e5;
  height: 1px;
  margin: 0 0 20px;
}

blockquote {
  border-left: 1px solid #e5e5e5;
  margin: 20px auto;
  padding: 0 0 0 20px;
  font-style: italic;
}

img {
  max-width: 100%;
}

.logo {
   margin-bottom: 20px;
}

.ads {
  margin: 10px auto;
}

.button {
  padding: 10px 20px;
  background-color: #0056b3;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: transparent;
  border: 1px solid #0056b3;
  color: #0056b3;
}

/*--------------------------------------------------------------
# Two Column List
--------------------------------------------------------------*/
/* Two Column List - Color Only */
.two-column-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  background-color: #f8f9fa;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.item-link {
  display: block;
  padding: 14px 16px;
  color: #212529;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
}

/* Hover Effects */
.list-item:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.item-link:hover {
  color: #0056b3;
}

/* Optional: Add arrow icon on hover */
.item-link::after {
  content: "→";
  position: absolute;
  right: 16px;
  opacity: 0;
  transition: all 0.2s ease;
}

.item-link:hover::after {
  opacity: 1;
  right: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .two-column-list {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Layout Elements
--------------------------------------------------------------*/

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  background: #fff;
}

.main-container {
  display: flex;
  min-height: 100vh;
}

.sticky-header {
  position: sticky;
  top: 0;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 200px;
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
  height: 100vh;
}

.sticky-header ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sticky-header li {
  margin-bottom: 10px;
}

.content {
  flex: 1;
  width: 600px;
  padding: 20px;
  box-sizing: border-box;
}

footer {
  margin-top: 20px;
  text-align: center;
  padding: 10px;
  background: #f0f3f5;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}
input, textarea {
  width: 90%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  margin-top: 20px;
  background-color: #007BFF;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 90%;
}
button:hover {
  background-color: #0056b3;
}

/*--------------------------------------------------------------
# Navigation Menus
--------------------------------------------------------------*/

.nav-menu ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  display: block;
  padding: 7px;
  background-color: #f2f2f2;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.nav-menu li a:hover {
  background-color: #e0e0e0;
}

/*--------------------------------------------------------------
# Post & Content Styles
--------------------------------------------------------------*/
.post-header {
  margin: 20px auto;
}

.post-title {
    font-size: 2rem;
    margin: 0.5rem auto;
}

.post-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.post-featured-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 6px;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

/*--------------------------------------------------------------
# Masonry Layout
--------------------------------------------------------------*/
.masonry {
  column-count: 2;
  column-gap: 1rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .masonry {
    column-count: 1;
  }
}

/*--------------------------------------------------------------
# Pagination
--------------------------------------------------------------*/

.pagination ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    gap: 8px; /* Adds nice space between buttons */
}

.pagination li {
    display: inline-block;
    margin: 40px auto;
}

.pagination a, 
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #0056b3;
    text-decoration: none;
    transition: 0.3s;
}

.pagination a:hover {
    background-color: #0056b3;
    color: white;
}

.pagination .active span {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/*--------------------------------------------------------------
# Table
--------------------------------------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: 'Arial', sans-serif;
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

table th {
  background-color: #4a6fa5; /* Soft blue - church color */
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
}

table td {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

table tr:nth-child(even) {
  background-color: #f8f9fa; /* Very light gray for zebra stripes */
}

table tr:hover {
  background-color: #f1f5fd; /* Light blue hover effect */
}

table th:first-child {
  border-radius: 4px 0 0 0;
}

table th:last-child {
  border-radius: 0 4px 0 0;
}

table tr:last-child td {
  border-bottom: none; /* Remove border from last row */
}

/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
@media (max-width: 500px) {
  .card-container {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 720px) {
  .wrapper {
    width: 100%;
    margin: 0;
  }

  .main-container {
    flex-direction: column;
  }

  .sticky-header {
    width: 100%;
    height: auto;
    position: relative;
    padding: 15px;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }

  .content {
    width: 100%;
    padding: 15px;
  }
}
