/* LAYOUT */
html, body {
  height: 100%;
  background: #fdfcf9;
  color: #222;
  font-family: 'Georgia', serif;
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1rem;
}

/* Header Styling */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-header {
  background-color: #fdfaf6; /* Light neutral */
  border-bottom: 1px solid #eee;
  padding: 2rem 1rem;
  text-align: center;
}

.site-header .logo {
  max-width: 200px;
  height: auto;
}

.site-verse {
  flex: 1;
  font-size: 1.1rem;
  color: #444;
  font-style: italic;
  min-width: 250px;
}

.site-verse small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #666;
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

/* Responsive stacking on small screens */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .site-logo img {
    margin-bottom: 1rem;
  }
}

.header-divider {
  min-height: 4px;   /* ensure minimum height */
  height: 4px;
  background-color: #f5B041;
  width: 100%;
  margin: 0;
  transform-origin: left;
  transform: scaleX(0);
  animation: slideInLine 0.6s ease-out forwards;
  position: relative; /* Ensure it's positioned normally */
  z-index: 10; /* Make sure it is above any background */
}




@keyframes slideInLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}


/* Footer Styling */
footer {
  background-color: #fdfaf6;
  border-top: 1px solid #eee;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: auto;
}

/* Optional enhancements for smooth reading */
@media (max-width: 768px) {
  .site-verse {
    font-size: 1rem;
    padding: 0 1rem;
  }

  footer {
    font-size: 0.85rem;
  }
}

.reading-container {
  max-width: 70%;
  width: 100%;
  margin: 1rem auto;
  padding: .5rem;
  background-color: var(--light-bg, #fff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  transition: all 0.3s ease;
}

/* Ensure main content centers vertically if there's little content */
/*.reading-area {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: start;
}*/


/* Responsive for tablets and phones */
@media (max-width: 992px) {
  .reading-container {
    max-width: 90%;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6rem;
  }
}

@media (max-width: 576px) {
  .reading-container {
       width: 100%;
    padding: 0;
    margin: 0 auto;
    border: none;
  }

}


.landing-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* DEVOTIONAL CARD */
.devotional-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.devotional-section {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.section-title {
  font-size: 1.25rem;
  color: #005F73;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.devotional-verse {
  font-style: italic;
  font-size: 1.2rem;
  color: #333;
  padding-left: 1rem;
  border-left: 4px solid #94D2BD;
  margin: 0;
}

.devotional-verse footer {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
  color: #555;
}

.devotional-text {
  font-size: 1.05rem;
  color: #333;
  margin: 0;
}

/* No Content Message */
.no-content {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.2rem;
  color: #999;
}

/* Church Link */
.church-link-info {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.95rem;
  color: #666;
}

.church-link-info code {
  background: #f1f1f1;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* AOS Animations Overrides (optional) */
[data-aos] {
  transition-property: opacity, transform;
}

/* CHURCH PORTAL PAGE */
.church-portal {
  max-width: 1000px;
  margin: .5rem auto;
  padding: 1rem;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.church-logo-container {
  text-align: center;
  margin-bottom: 2rem;
}


.church-logo {
  max-width: 240px;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.portal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.portal-controls .form-select {
  min-width: 240px;
  max-width: 600px;
  border-radius: 0.75rem;
  border: 1px solid #ccc;
  padding: 0.6rem 1rem;
  font-size: 1rem;
}

.portal-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-outline {
  border: 1px solid #aaa;
  border-radius: 0.75rem;
  padding: 0.5rem 1.2rem;
  background: none;
  transition: all 0.2s ease-in-out;
  font-weight: 500;
}

.btn-outline:hover {
  background: #f3f3f3;
  border-color: #005f73;
  color: #005f73;
}

.devotional-viewer {
  padding: 1rem 0;
}

.devotional-title {
  font-size: 1.8rem;
  text-align: center;
  color: #5C677D;
  margin-bottom: 1.5rem;
}

.day-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #3b715b;
  margin: 1rem 0 0.5rem;
}

.day-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

.devotional-lead {
  font-style: italic;
  color: #444;
  margin-bottom: 1rem;
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 0.75rem;
}

.weekly-challenge {
  margin-top: 2rem;
  background: #e8f0ef;
  padding: 1.2rem;
  border-left: 6px solid #94d2bd;
  border-radius: 0.75rem;
  color: #004b4b;
}

.no-content-message {
  text-align: center;
  font-size: 1.1rem;
  color: #999;
  padding: 2rem;
}

/* Optional: Mobile stacking for controls */
@media (max-width: 600px) {
  .portal-controls {
    flex-direction: column;
    align-items: center;
  }

  .portal-navigation {
    flex-direction: column;
    align-items: center;
  }
}
