<!-- styles.css -->
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #fdfdfb;
  color: #222;
}

header {
  background: white;
  color: #2b3e50;
  padding: 1rem;
  text-align: left;
}

.hero {
  background: linear-gradient(to right, #e0f7fa, #e1bee7);
  padding: 2rem;
  text-align: center;
}

main section {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

footer {
  background: #2b3e50;
  color: white;
  text-align: center;
  padding: 1rem;
}

.article {
  border-bottom: 1px solid #ccc;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}
.article h3 {
  margin: 0;
}
.article p {
  margin: 0.5rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.article-card {
  background: white;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.article-card h3 {
  margin: 0 0 0.5rem;
}

.article-card a {
  color: #2b3e50;
  text-decoration: none;
}

.article-card a:hover {
  text-decoration: underline;
}

.article-card p {
  color: #444;
}

.article-card small {
  color: #777;
  font-size: 0.85rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: white;
  color: #2b3e50;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e0be99;
  padding: 0.5rem 1rem;
  position: relative;
}

/* Style the links inside the navigation bar */
.topnav a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.nav-icon {
  width: 16px;
  height: 16px;
}

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

.logo-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
/*margin-top: -10px;*/

/* --- Search page styling --- */
.search-page {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.search-bar-container {
  text-align: center;
  margin-bottom: 2rem;
}

.search-bar-container input {
  width: 90%;
  max-width: 500px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 30px;
  outline: none;
  transition: border-color 0.3s;
}

.search-bar-container input:focus {
  border-color: #04AA6D;
}

.menu-toggle {
  font-size: 1.8rem;
  display: block;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 0;       /* Reset if you've added it before */
  align-self: center;  /* Ensures it's aligned with other flex items */
  line-height: 1;      /* Helps with vertical centering */
}

nav {
  display: none;
  background-color: #2b3e50;
  flex-direction: column;
}

nav.open {
  display: block;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  transition: background-color 0.3s ease, border-left 0.3s ease;
}

nav ul li a:hover {
  background-color: #0077ff;
  border-left: 4px solid white;
}

/* ------------------------------------------------------------
    INDEX PAGE
-------------------------------------------------------------*/

.daily-inspiration {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  background: #f4f8fb;
}

.verse-card,
.prayer-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 400px;
  flex: 1 1 300px;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.verse-card:hover,
.prayer-card:hover {
  transform: translateY(-5px);
}

.verse-card h2,
.prayer-card h2 {
  font-size: 1.5rem;
  color: #2b3e50;
  margin-bottom: 1rem;
}

blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: #333;
  margin: 0;
  padding: 0 1rem;
}

.reference {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.5rem;
}

#prayerText {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   ARTICLE PAGE STYLING
------------------------------------------------------------ */
.article-page {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
  line-height: 1.75;
  font-size: 1.15rem;
  color: #333;
}

/* Loader */
.loader {
  text-align: center;
  font-style: italic;
  color: #666;
}

/* Container adjustments */
.article-content {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

/* Typography */
.article-content h1,
.article-content h2,
.article-content h3 {
  color: #2b3e50;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-content p {
  margin: 1rem 0;
}

.article-content a {
  color: #0077ff;
  text-decoration: none;
  border-bottom: 1px dotted #0077ff;
}

.article-content a:hover {
  border-bottom-style: solid;
}

/* First‑letter drop cap on the first paragraph */
.article-content p:first-of-type::first-letter {
  float: left;
  font-size: 3rem;
  line-height: 1;
  margin-right: 0.3rem;
  color: #2b3e50;
  font-weight: bold;
}

/* Blockquotes */
.article-content blockquote {
  margin: 2rem 1rem;
  padding: 1rem 1.5rem;
  background: #f4f4f4;
  border-left: 4px solid #2b3e50;
  font-style: italic;
  color: #555;
}

/* Code blocks */
.article-content pre {
  background: #272822;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Garamond', monospace;
}

/* Images */
.article-content img {
  max-width: 100%;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-content th,
.article-content td {
  border: 1px solid #ddd;
  padding: 0.6rem 1rem;
}

.article-content th {
  background: #2b3e50;
  color: white;
  text-align: left;
}

/* Fade‑in animation */
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ------------------------------------------------------------
   COMMUNITY PAGE
------------------------------------------------------------ */

.community-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
}

.community-card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  max-width: 300px;
  flex: 1 1 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.community-card h3 {
  margin-top: 0;
  color: #2b3e50;
}

.read-more {
  display:
}

/* ------------------------------------------------------------
   MY STORY PAGE
------------------------------------------------------------ */

/* Hero for Story */
.hero-story {
  background: url('images/faith-path.jpg') center/cover no-repeat;
  color: black;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  padding: 4rem 1rem;
  text-align: center;
}

/* Story Container */
.story-container {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #04AA6D;
}

.entry {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 50px;
}

.marker {
  position: absolute;
  left: 12px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: white;
  border: 4px solid #04AA6D;
  border-radius: 50%;
}

.entry .content h2 {
  margin: 0;
  color: #2b3e50;
}

.entry .content p {
  margin: 0.5rem 0 0 0;
  line-height: 1.6;
}

/* Fade‑in animation */
.entry {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
.entry:nth-child(1) { animation-delay: 0.2s; }
.entry:nth-child(2) { animation-delay: 0.4s; }
.entry:nth-child(3) { animation-delay: 0.6s; }
/* add more delays for extra items */

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Call to action */
.call-to-action {
  text-align: center;
  margin: 3rem 0;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #2b3e50;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn:hover {
  background: #04AA6D;
}

/* Responsive */
@media (max-width: 600px) {
  .timeline::before { left: 16px; }
  .entry { padding-left: 40px; }
  .marker { left: 6px; }
}

/* ------------------------------------------------------------
   SHOP PAGE
------------------------------------------------------------ */

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
}

.product {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  max-width: 200px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product img {
  max-width: 100%;
  border-radius: 8px;
}

button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #2b3e50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.shop-links {
  text-align: center;
  margin: 2rem 0;
}

.shop-button {
  display: inline-block;
  margin: 1rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.etsy {
  background-color: #f56400;
  color: white;
}

.shopify {
  background-color: #96bf48;
  color: white;
}

.shop-button:hover {
  opacity: 0.9;
}

.form-container {
  max-width: 700px;
  margin: 3rem auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #2b3e50;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 1rem;
  resize: vertical;
}

form button {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: #2b3e50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

form button:hover {
  background: #0077ff;
}


/* When the screen is less than 600px wide, stack the links and the search field vertically instead of horizontally */
@media screen and (max-width: 600px) {
  .topnav .search-container {
    float: none;
  }
  .topnav a, .topnav input.split {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 14px;
  }
  .topnav input.split {
    border: 1px solid #ccc;  
  }
}
