@charset "utf-8";
/* ===== PRAYER INDEX LAYOUT ===== */

.prayer-index {
  max-width: 48rem;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */

.index-header {
  text-align: center;
  margin-bottom: 3rem;
}

.index-header h1 {
  font-family: serif;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
}

.index-subtitle {
  font-style: italic;
  color: #666;
}

/* ===== PRAYER LIST (GRID, ROW-WISE) ===== */

.prayer-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem 2.5rem; /* row | column */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* grid item */
.prayer-list li {
  margin: 0;
    display: flex;
  justify-content: center;
}

/* link inside grid cell display: flex;*/
.prayer-list a {
 isplay: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.35rem 0;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

/* typography */
.prayer-number {
  font-weight: 600;
      min-width: 2.2rem;
  text-align: right;
}

.prayer-date {
  font-style: italic;
  color: #666;
}

/* ===== NAV ARROWS (IF USED) ===== */

.prev::before { content: "‹ "; }
.next::after  { content: " ›"; }

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .prayer-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .prayer-list {
    grid-template-columns: 1fr;
  }
}
/* ===== PERIOD GROUP HEADING ===== */

.prayer-group-heading {
  grid-column: 1 / -1;      /* span all columns */
  margin: 2rem 0 0.75rem;
  padding-top: 0.75rem;
  font-family: serif;
  font-size: 1.rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: #555;
  border-top: 1px solid #eee;
}
/* ===== PRAYER NAVIGATION ===== */

.prayer-nav {
  display: flex;
  justify-content: flex-end;   /* ← move to right */
  align-items: center;
  gap: 2rem;                   /* space between links */
  margin-top: 3rem;
  font-size: 0.95rem;
}
.prayer-text p:first-of-type::first-letter {
  float: left;
  font-size: 4rem;
  line-height: 0.85;
  font-weight: 700;
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  font-family: "Georgia", serif;
  color: #5a3d2b;
}
@media (max-width: 600px) {
  .prayer-text p:first-of-type::first-letter {
    font-size: 2.4rem;
  }
   .prayer-nav {
    gap: 1.2rem;
       justify-content: center;
  } 
}

/* ===== PRAYER Rendom p and M===== */
.prayer-section {
  margin: 3rem auto;
  max-width: 1000px;
  text-align: center;
    background: linear-gradient(to bottom, #e6f0ff, #cfe0ff);
  padding: 3rem 1rem;
  border-radius: 12px; 
    
}

.prayer-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.pdf-container {
  width: 100%;
  max-width: 850px;       /* control desktop width */ 
  margin: 0 auto;
  aspect-ratio: 1 / 1.414;     /* A4 portrait ratio */
  background: #d9e8ff; /* soft blue surface */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 60, 150, 0.15);
    position: relative;
}

#dailyPrayer {
  width: 100%;
  height: 100%;
  border: none;
      border-radius: 8px;
}

/* ========== Devotional Card ========== */

.devotional-card {
  display: none;
  height: 100%;
  background: linear-gradient(135deg, #e3f0ff, #c9dcff);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 60, 150, 0.15);
  padding: 2rem;
  align-items: center;
  justify-content: center;
}

.card-inner {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-symbol {
  font-size: 2rem;
  color: #3f78d1;
  margin-bottom: 1rem;
}

.card-heading {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.card-button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: #2f5fb3;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s ease;
}

.card-button:hover {
  background: #1d3f7f;
}

/* ========== Tablet & Mobile Switch ========== */

@media (max-width: 1024px) {

  #dailyPrayer {
    display: none;
  }

  .devotional-card {
    display: flex;
  }

}

/* ===== BACK TO TOP BUTTON ==========background: #6b4e2e; manuscript brown ================== */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #c9a227;

  color: #fff;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.3s ease;
  z-index: 9999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#backToTop:hover {
  transform: translateY(-3px);
  background: #d4af37;
  box-shadow: 0 0 8px rgba(212,175,55,0.5);
}


@media (max-width: 600px) {
  #backToTop {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}
