FAITH • HOPE • PRAYER

Find Peace Through Prayer & God's Word

Begin each day with faith, find comfort in prayer, and discover the timeless wisdom of God's Word. Let every moment bring you closer to His love.

✧ A little prayer can make a big difference.
SCROLL TO EXPLORE
/* ========================================================== PRAYERS EVERY DAY — HERO STYLES =========================================================== */ #pe-hero { --pe-navy: #15365b; --pe-gold: #d6a83f; --pe-cream: #fbf7ef; --pe-white: #ffffff; position: relative; width: 100%; min-height: 780px; overflow: hidden; isolation: isolate; color: var(--pe-white); font-family: inherit; background: #102c45; } #pe-hero *, #pe-hero *::before, #pe-hero *::after { box-sizing: border-box; } #pe-hero a { text-decoration: none; } .pe-scene { position: relative; min-height: 780px; overflow: hidden; background: linear-gradient( 110deg, rgba(12, 35, 57, .97) 0%, rgba(20, 49, 72, .91) 43%, rgba(41, 68, 83, .36) 100% ), linear-gradient(180deg, #244c67 0%, #c28b57 75%, #e3b875 100%); } /* Sky and sunrise */ .pe-sky { position: absolute; inset: 0; background: radial-gradient( ellipse at 76% 42%, rgba(255, 207, 125, .42), transparent 35% ), linear-gradient( 180deg, #173c5a 0%, #345e75 37%, #a8795d 74%, #d5a46d 100% ); z-index: -5; } .pe-sun-glow { position: absolute; width: 580px; height: 580px; top: 4%; right: 5%; border-radius: 50%; background: radial-gradient( circle, rgba(255, 215, 145, .4) 0%, rgba(255, 191, 105, .16) 35%, transparent 70% ); filter: blur(20px); animation: pe-sun-pulse 7s ease-in-out infinite alternate; } .pe-sun { position: absolute; width: 185px; height: 185px; top: 23%; right: 17%; border-radius: 50%; background: radial-gradient( circle at 40% 35%, #fff9d9, #f5d79a 48%, #e9ae6b 100% ); box-shadow: 0 0 50px rgba(255, 215, 148, .55), 0 0 130px rgba(255, 194, 111, .32); animation: pe-sun-rise 8s ease-in-out infinite alternate; z-index: -3; } @keyframes pe-sun-pulse { from { transform: scale(.95); opacity: .7; } to { transform: scale(1.12); opacity: 1; } } @keyframes pe-sun-rise { from { transform: translateY(12px); } to { transform: translateY(-10px); } } /* Rays */ .pe-rays { position: absolute; width: 700px; height: 700px; right: -1%; top: -2%; border-radius: 50%; pointer-events: none; animation: pe-ray-rotate 100s linear infinite; } .pe-rays span { position: absolute; left: 50%; top: 50%; width: 2px; height: 390px; transform-origin: top center; background: linear-gradient( to bottom, rgba(255, 225, 165, .22), transparent ); } .pe-rays span:nth-child(1) { transform: rotate(0deg); } .pe-rays span:nth-child(2) { transform: rotate(45deg); } .pe-rays span:nth-child(3) { transform: rotate(90deg); } .pe-rays span:nth-child(4) { transform: rotate(135deg); } .pe-rays span:nth-child(5) { transform: rotate(180deg); } .pe-rays span:nth-child(6) { transform: rotate(225deg); } .pe-rays span:nth-child(7) { transform: rotate(315deg); } @keyframes pe-ray-rotate { to { transform: rotate(360deg); } } /* Mountains */ .pe-mountains { position: absolute; left: 0; bottom: 100px; width: 100%; height: 63%; z-index: -2; } /* Mist */ .pe-mist { position: absolute; width: 120%; height: 100px; left: -10%; border-radius: 50%; filter: blur(28px); background: rgba(230, 220, 204, .12); pointer-events: none; } .pe-mist-one { bottom: 230px; animation: pe-mist-move 23s ease-in-out infinite alternate; } .pe-mist-two { bottom: 145px; opacity: .6; animation: pe-mist-move 30s ease-in-out infinite alternate-reverse; } @keyframes pe-mist-move { from { transform: translateX(-5%); } to { transform: translateX(5%); } } /* Water */ .pe-water { position: absolute; bottom: 0; left: 0; width: 100%; height: 190px; z-index: -1; background: linear-gradient( 180deg, rgba(36, 71, 86, .15), rgba(13, 39, 55, .9) ); } .pe-water-reflection { position: absolute; width: 250px; height: 130px; top: 0; right: 17%; background: radial-gradient( ellipse, rgba(255, 213, 147, .38), transparent 70% ); filter: blur(18px); animation: pe-reflection 5s ease-in-out infinite alternate; } @keyframes pe-reflection { from { opacity: .45; transform: scaleX(.8); } to { opacity: .9; transform: scaleX(1.15); } } /* Main layout */ .pe-container { position: relative; z-index: 4; width: min(1220px, calc(100% - 50px)); min-height: 650px; margin: 0 auto; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 20px; padding: 85px 0 145px; } .pe-content { max-width: 650px; animation: pe-content-in 1.1s ease both; } @keyframes pe-content-in { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } } .pe-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; color: #f0cf91; font-size: 11px; font-weight: 700; letter-spacing: 4px; } .pe-eyebrow-line { display: block; width: 28px; height: 1px; background: var(--pe-gold); } .pe-content h1 { max-width: 660px; margin: 0; color: #fffdf8; font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 5.2vw, 72px); line-height: 1.12; font-weight: 500; letter-spacing: -2px; text-shadow: 0 5px 25px rgba(0, 0, 0, .2); } .pe-heading-highlight { display: block; color: #f2d29a; font-style: italic; text-shadow: 0 0 35px rgba(242, 210, 154, .16); } .pe-description { max-width: 530px; margin: 24px 0 29px; color: rgba(255, 255, 255, .84); font-size: 16px; line-height: 1.85; font-weight: 400; } /* Search */ .pe-search { display: flex; align-items: center; width: min(560px, 100%); min-height: 62px; padding: 7px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(255, 255, 255, .13); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 12px 35px rgba(0, 0, 0, .12); transition: border-color .3s ease, background .3s ease; } .pe-search:focus-within { border-color: rgba(241, 207, 147, .8); background: rgba(255, 255, 255, .19); } .pe-search-icon { display: flex; align-items: center; justify-content: center; width: 43px; flex-shrink: 0; } .pe-search-icon svg { width: 21px; height: 21px; fill: none; stroke: #f4d9a8; stroke-width: 1.7; stroke-linecap: round; } .pe-search input { flex: 1; min-width: 0; padding: 10px 7px; border: 0; outline: none; background: transparent; color: #fff; font: inherit; font-size: 14px; box-shadow: none; } .pe-search input::placeholder { color: rgba(255, 255, 255, .72); } .pe-search button { flex-shrink: 0; padding: 14px 23px; border: 0; border-radius: 8px; background: var(--pe-gold); color: #192f43; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .3s ease, transform .3s ease; } .pe-search button:hover { background: #f0c96f; transform: translateY(-2px); } /* Buttons */ .pe-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 25px; } .pe-btn { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 54px; padding: 0 24px; border-radius: 8px; font-size: 14px; font-weight: 700; transition: all .3s ease; } .pe-btn-primary { background: var(--pe-gold); color: #18354b; box-shadow: 0 8px 25px rgba(214, 168, 63, .2); } .pe-btn-primary:hover { background: #f2ce7b; color: #15365b; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(214, 168, 63, .3); } .pe-btn-arrow { font-size: 20px; transition: transform .3s ease; } .pe-btn-primary:hover .pe-btn-arrow { transform: translateX(5px); } .pe-btn-secondary { color: white; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .07); } .pe-btn-secondary:hover { color: #f2d29a; border-color: var(--pe-gold); background: rgba(255, 255, 255, .13); } .pe-play-icon { color: #f2d29a; font-size: 17px; } .pe-inspiration { display: flex; align-items: center; gap: 9px; margin-top: 29px; color: rgba(255, 255, 255, .73); font-family: Georgia, serif; font-size: 14px; font-style: italic; } .pe-inspiration-icon { color: #edc77c; font-size: 20px; } /* Visual composition */ .pe-visual { position: relative; min-height: 450px; height: 100%; display: flex; align-items: center; justify-content: center; } .pe-cross-scene { position: absolute; width: 100%; height: 100%; top: 0; right: 0; } .pe-cross-halo { position: absolute; width: 330px; height: 390px; top: 2%; right: 17%; border-radius: 50%; background: radial-gradient( ellipse, rgba(255, 220, 162, .25), transparent 68% ); filter: blur(12px); animation: pe-halo-pulse 5s ease-in-out infinite alternate; } @keyframes pe-halo-pulse { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.13); opacity: 1; } } .pe-cross { position: absolute; top: 15%; right: 39%; width: 100px; height: 250px; filter: drop-shadow(0 0 15px rgba(255, 224, 170, .55)); animation: pe-cross-float 6s ease-in-out infinite; } .pe-cross-vertical { position: absolute; left: 43px; top: 0; width: 16px; height: 245px; border-radius: 2px; background: linear-gradient( 90deg, #76502c, #e6c17f, #8c6034 ); box-shadow: 0 0 25px rgba(255, 212, 142, .5); } .pe-cross-horizontal { position: absolute; top: 70px; left: 0; width: 100px; height: 15px; border-radius: 2px; background: linear-gradient( 180deg, #f1d69d, #8e6337 ); } .pe-cross-light { position: absolute; top: 50%; right: 18%; width: 250px; height: 90px; border-radius: 50%; background: rgba(255, 212, 145, .12); filter: blur(30px); } @keyframes pe-cross-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } /* Doves */ .pe-dove { position: absolute; width: 60px; opacity: .85; filter: drop-shadow(0 3px 8px rgba(255,255,255,.3)); } .pe-dove-one { top: 15%; left: 3%; animation: pe-dove-fly-one 13s ease-in-out infinite; } .pe-dove-two { top: 34%; right: 5%; width: 43px; opacity: .65; animation: pe-dove-fly-two 16s ease-in-out infinite; } @keyframes pe-dove-fly-one { 0%, 100% { transform: translate(0, 0) rotate(-5deg); } 50% { transform: translate(45px, -28px) rotate(8deg); } } @keyframes pe-dove-fly-two { 0%, 100% { transform: translate(0, 0) scale(.9); } 50% { transform: translate(-38px, -22px) scale(1.1); } } /* Open Bible */ .pe-bible-wrap { position: absolute; width: min(440px, 100%); bottom: 1%; right: 1%; z-index: 3; animation: pe-bible-float 7s ease-in-out infinite; } .pe-bible { display: block; width: 100%; filter: drop-shadow(0 22px 24px rgba(0,0,0,.32)); } .pe-bible-glow { position: absolute; width: 85%; height: 90%; left: 8%; bottom: 5%; background: rgba(255, 217, 151, .22); filter: blur(35px); border-radius: 50%; animation: pe-halo-pulse 4s ease-in-out infinite alternate; } .pe-bible-light { position: absolute; width: 60%; height: 20px; left: 20%; bottom: 17%; background: rgba(255, 226, 169, .4); filter: blur(17px); } @keyframes pe-bible-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-1deg); } } /* Floating orbs */ .pe-orb { position: absolute; border-radius: 50%; background: #f5d99d; box-shadow: 0 0 20px rgba(255, 217, 151, .9); animation: pe-orb-float 5s ease-in-out infinite alternate; } .pe-orb-one { width: 6px; height: 6px; top: 38%; left: 20%; } .pe-orb-two { width: 4px; height: 4px; top: 18%; right: 14%; animation-delay: 1.5s; } @keyframes pe-orb-float { from { transform: translateY(8px); opacity: .35; } to { transform: translateY(-20px); opacity: 1; } } /* Golden particles */ .pe-particles { position: absolute; inset: 0; pointer-events: none; z-index: 2; } .pe-particles i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #f8d58d; box-shadow: 0 0 10px 2px rgba(255, 210, 130, .65); animation: pe-particle 7s ease-in-out infinite alternate; } .pe-particles i:nth-child(1) { left: 8%; top: 25%; } .pe-particles i:nth-child(2) { left: 20%; top: 65%; animation-delay: 1s; } .pe-particles i:nth-child(3) { left: 32%; top: 18%; animation-delay: 2s; } .pe-particles i:nth-child(4) { left: 42%; top: 45%; animation-delay: 3s; } .pe-particles i:nth-child(5) { left: 55%; top: 22%; animation-delay: 1.5s; } .pe-particles i:nth-child(6) { left: 65%; top: 60%; animation-delay: 2.5s; } .pe-particles i:nth-child(7) { left: 75%; top: 18%; animation-delay: .5s; } .pe-particles i:nth-child(8) { left: 85%; top: 50%; animation-delay: 3.5s; } .pe-particles i:nth-child(9) { left: 95%; top: 30%; animation-delay: 1.2s; } .pe-particles i:nth-child(10) { left: 12%; top: 78%; animation-delay: 2.2s; } .pe-particles i:nth-child(11) { left: 28%; top: 40%; animation-delay: 3.2s; } .pe-particles i:nth-child(12) { left: 48%; top: 75%; animation-delay: .8s; } .pe-particles i:nth-child(13) { left: 58%; top: 35%; animation-delay: 2.8s; } .pe-particles i:nth-child(14) { left: 70%; top: 80%; animation-delay: 1.8s; } .pe-particles i:nth-child(15) { left: 90%; top: 70%; animation-delay: 3.8s; } .pe-particles i:nth-child(16) { left: 37%; top: 85%; animation-delay: 1.3s; } .pe-particles i:nth-child(17) { left: 62%; top: 12%; animation-delay: 2.3s; } .pe-particles i:nth-child(18) { left: 4%; top: 55%; animation-delay: 3.3s; } .pe-particles i:nth-child(19) { left: 80%; top: 38%; animation-delay: .3s; } .pe-particles i:nth-child(20) { left: 52%; top: 90%; animation-delay: 2.1s; } @keyframes pe-particle { 0% { transform: translateY(12px) scale(.7); opacity: .15; } 50% { opacity: .9; } 100% { transform: translateY(-35px) scale(1.3); opacity: .25; } } /* Feature bar */ .pe-feature-wrap { position: absolute; bottom: 40px; left: 50%; z-index: 5; width: min(1120px, calc(100% - 50px)); transform: translateX(-50%); } .pe-features { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 19px 24px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 13px; background: rgba(12, 35, 55, .58); backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px); box-shadow: 0 15px 45px rgba(0, 0, 0, .2); } .pe-feature { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 5px 12px; color: white; transition: transform .3s ease; } .pe-feature:hover { transform: translateY(-4px); } .pe-feature-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 43px; height: 43px; border: 1px solid rgba(214, 168, 63, .55); border-radius: 50%; color: #f0cf91; font-size: 22px; background: rgba(214, 168, 63, .09); } .pe-feature strong, .pe-feature small { display: block; } .pe-feature strong { color: #fff8e9; font-family: Georgia, serif; font-size: 14px; font-weight: 600; } .pe-feature small { margin-top: 5px; color: rgba(255,255,255,.67); font-size: 11px; } .pe-feature-divider { width: 1px; height: 37px; justify-self: center; background: rgba(255, 255, 255, .2); } /* Scroll */ .pe-scroll { position: absolute; bottom: 12px; left: 50%; z-index: 6; display: flex; align-items: center; gap: 9px; transform: translateX(-50%); color: rgba(255, 255, 255, .57); font-size: 9px; font-weight: 700; letter-spacing: 2px; } .pe-scroll i { display: block; width: 8px; height: 8px; border-right: 1px solid #f0cf91; border-bottom: 1px solid #f0cf91; transform: rotate(45deg); animation: pe-scroll-bounce 1.4s ease-in-out infinite; } @keyframes pe-scroll-bounce { 0%, 100% { transform: translateY(-3px) rotate(45deg); } 50% { transform: translateY(4px) rotate(45deg); } } /* Tablet */ @media (max-width: 1000px) { #pe-hero, .pe-scene { min-height: 760px; } .pe-container { grid-template-columns: 1fr .75fr; min-height: 630px; width: calc(100% - 42px); padding-top: 75px; } .pe-content h1 { font-size: clamp(42px, 5.5vw, 60px); } .pe-visual { min-height: 400px; } .pe-bible-wrap { width: 340px; right: -10%; } .pe-cross { right: 33%; } .pe-feature { gap: 9px; padding: 5px; } .pe-feature-icon { width: 36px; height: 36px; font-size: 18px; } } /* Mobile */ @media (max-width: 700px) { #pe-hero, .pe-scene { min-height: auto; } .pe-scene { padding-bottom: 35px; background: linear-gradient( 180deg, #173c5a 0%, #345e75 35%, #a8795d 75%, #173c50 100% ); } .pe-container { display: flex; flex-direction: column; align-items: stretch; width: calc(100% - 38px); min-height: 0; padding: 75px 0 10px; gap: 0; } .pe-content { max-width: 100%; text-align: center; } .pe-eyebrow { justify-content: center; gap: 8px; margin-bottom: 19px; font-size: 9px; letter-spacing: 3px; } .pe-eyebrow-line { width: 20px; } .pe-content h1 { font-size: clamp(39px, 10vw, 53px); line-height: 1.13; letter-spacing: -1.5px; } .pe-description { max-width: 490px; margin: 19px auto 23px; font-size: 14px; line-height: 1.75; } .pe-search { margin: 0 auto; min-height: 58px; } .pe-search input { font-size: 12px; } .pe-search button { padding: 13px 15px; font-size: 12px; } .pe-actions { justify-content: center; gap: 10px; margin-top: 20px; } .pe-btn { min-height: 49px; padding: 0 16px; font-size: 12px; } .pe-inspiration { justify-content: center; margin-top: 21px; font-size: 12px; } .pe-visual { min-height: 320px; width: 100%; margin-top: 5px; } .pe-cross-halo { width: 270px; height: 300px; right: 12%; top: 0; } .pe-cross { top: 0; right: calc(50% - 50px); transform: scale(.8); transform-origin: top center; } .pe-bible-wrap { width: min(350px, 95%); right: 50%; bottom: 0; transform: translateX(50%); } .pe-dove-one { left: 10%; top: 14%; width: 43px; } .pe-dove-two { right: 8%; top: 38%; width: 34px; } .pe-sun { width: 145px; height: 145px; right: 50%; transform: translateX(50%); top: 33%; } .pe-sun-glow { width: 380px; height: 380px; right: 50%; transform: translateX(50%); top: 20%; } .pe-mountains { height: 43%; bottom: 80px; } .pe-water { height: 130px; } .pe-feature-wrap { position: relative; left: auto; bottom: auto; width: calc(100% - 30px); margin: 0 auto; transform: none; } .pe-features { grid-template-columns: repeat(2, 1fr); gap: 17px 5px; padding: 18px 9px; } .pe-feature { justify-content: flex-start; gap: 9px; padding: 4px 7px; } .pe-feature-icon { width: 34px; height: 34px; font-size: 17px; } .pe-feature strong { font-size: 12px; } .pe-feature small { font-size: 9px; line-height: 1.4; } .pe-feature-divider { display: none; } .pe-scroll { display: none; } } /* Small phones */ @media (max-width: 380px) { .pe-container { width: calc(100% - 28px); } .pe-content h1 { font-size: 36px; } .pe-search-icon { width: 32px; } .pe-search button { padding: 12px 11px; } .pe-btn { padding: 0 12px; } .pe-feature { gap: 6px; padding: 3px; } } /* Accessibility: reduce motion */ @media (prefers-reduced-motion: reduce) { #pe-hero *, #pe-hero *::before, #pe-hero *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } } /* ========================================================== PRAYERS EVERY DAY — HERO INTERACTIONS =========================================================== */ (function () { "use strict"; const hero = document.getElementById("pe-hero"); if (!hero || hero.dataset.initialized === "true") { return; } hero.dataset.initialized = "true"; /* Prayer search: WordPress native search */ const searchForm = hero.querySelector("#pe-prayer-search"); const searchInput = hero.querySelector("#pe-search-input"); if (searchForm && searchInput) { searchForm.addEventListener("submit", function (event) { event.preventDefault(); const query = searchInput.value.trim(); if (!query) { searchInput.focus(); return; } window.location.href = "/?s=" + encodeURIComponent(query); }); } /* Gentle pointer parallax on desktop */ const visual = hero.querySelector(".pe-visual"); const reducedMotion = window.matchMedia( "(prefers-reduced-motion: reduce)" ).matches; if ( visual && window.matchMedia("(min-width: 701px)").matches && !reducedMotion ) { let frame = null; hero.addEventListener("mousemove", function (event) { if (frame) { cancelAnimationFrame(frame); } frame = requestAnimationFrame(function () { const rect = hero.getBoundingClientRect(); const x = (event.clientX - rect.left) / rect.width - 0.5; const y = (event.clientY - rect.top) / rect.height - 0.5; visual.style.transform = "translate3d(" + (x * 9) + "px," + (y * 7) + "px,0)"; }); }, { passive: true }); hero.addEventListener("mouseleave", function () { visual.style.transform = "translate3d(0,0,0)"; }); } })();
✦
FRESH INSPIRATION

Latest Article

New encouragement for your faith journey.

Loading our latest article...
/* ========================================== LATEST ARTICLE SECTION ========================================== */ #pe-latest-article { --pe-navy: #15365B; --pe-gold: #D6A83F; --pe-cream: #FBF7EF; width: 100%; padding: 55px 25px; background: var(--pe-cream); font-family: inherit; color: var(--pe-navy); box-sizing: border-box; } #pe-latest-article *, #pe-latest-article *::before, #pe-latest-article *::after { box-sizing: border-box; } #pe-latest-article a { text-decoration: none; } .pe-latest-inner { width: 100%; max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 245px 1fr 170px; align-items: center; gap: 35px; } /* Heading */ .pe-latest-heading { display: flex; align-items: center; gap: 15px; } .pe-latest-icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--pe-navy); color: var(--pe-gold); font-size: 25px; box-shadow: 0 7px 20px rgba(21,54,91,.14); } .pe-latest-kicker { display: block; margin-bottom: 5px; color: #A17A2E; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; } .pe-latest-label h2 { margin: 0; color: var(--pe-navy); font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.2; font-weight: 600; } .pe-latest-label p { margin: 6px 0 0; color: #778391; font-size: 11px; line-height: 1.5; } /* Article Content */ .pe-latest-post { min-width: 0; padding-left: 30px; border-left: 1px solid rgba(21,54,91,.16); } .pe-post-date { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #A17A2E; font-size: 11px; font-weight: 700; } .pe-post-date svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .pe-post-title { display: inline-block; margin: 0 0 8px; color: var(--pe-navy); font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 600; line-height: 1.35; transition: color .25s ease; } .pe-post-title:hover { color: #A17A2E; } .pe-post-excerpt { margin: 0; color: #687586; font-size: 13px; line-height: 1.75; } /* Read Article Button */ .pe-latest-footer { display: flex; justify-content: flex-end; } .pe-latest-read { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 19px; border-radius: 7px; background: var(--pe-navy); color: #fff !important; font-size: 12px; font-weight: 700; white-space: nowrap; transition: all .3s ease; } .pe-latest-read:hover { background: var(--pe-gold); color: var(--pe-navy) !important; transform: translateY(-2px); } .pe-latest-read span { font-size: 19px; } /* Explore All Link */ .pe-latest-all { display: inline-flex; align-items: center; gap: 8px; color: var(--pe-navy); font-size: 12px; font-weight: 700; } .pe-latest-all:hover { color: #A17A2E; } /* Loading */ .pe-latest-loading { display: flex; align-items: center; gap: 12px; min-height: 75px; color: #778391; font-size: 13px; } .pe-latest-spinner { width: 19px; height: 19px; flex-shrink: 0; border: 2px solid #e6ddca; border-top-color: var(--pe-gold); border-radius: 50%; animation: pe-latest-spin .8s linear infinite; } @keyframes pe-latest-spin { to { transform: rotate(360deg); } } .pe-latest-error { color: #778391; font-size: 13px; line-height: 1.6; } /* ========================================== TABLET ========================================== */ @media (max-width: 1000px) { .pe-latest-inner { grid-template-columns: 190px 1fr; gap: 25px; } .pe-latest-footer { grid-column: 2; justify-content: flex-start; } .pe-latest-post { padding-left: 23px; } .pe-post-title { font-size: 21px; } } /* ========================================== MOBILE ========================================== */ @media (max-width: 700px) { #pe-latest-article { padding: 30px 20px; } .pe-latest-inner { display: flex; flex-direction: column; align-items: stretch; gap: 19px; } .pe-latest-heading { padding-bottom: 17px; border-bottom: 1px solid rgba(21,54,91,.12); } .pe-latest-icon { width: 44px; height: 44px; font-size: 21px; } .pe-latest-label h2 { font-size: 23px; } .pe-latest-post { padding: 0; border: 0; } .pe-post-title { font-size: 21px; } .pe-post-excerpt { font-size: 13px; } .pe-latest-footer { display: flex; justify-content: stretch; } .pe-latest-read { width: 100%; min-height: 49px; } .pe-latest-all { padding: 5px 0; } } /* ========================================== WORDPRESS LATEST POST FETCHER ========================================== */ (function () { "use strict"; const section = document.getElementById( "pe-latest-article" ); if (!section || section.dataset.initialized === "true") { return; } section.dataset.initialized = "true"; const postContainer = section.querySelector( "#pe-latest-post" ); const apiURL = window.location.origin + "/wp-json/wp/v2/posts?per_page=1&status=publish&_fields=date,link,title,excerpt"; function createDateIcon() { const svg = document.createElementNS( "http://www.w3.org/2000/svg", "svg" ); svg.setAttribute("viewBox", "0 0 24 24"); const path = document.createElementNS( "http://www.w3.org/2000/svg", "path" ); path.setAttribute( "d", "M7 3v3m10-3v3M4 9h16M5 5h14a1 1 0 0 1 1 1v13H4V6a1 1 0 0 1 1-1Z" ); svg.appendChild(path); return svg; } function getCleanText(html) { const temp = document.createElement("div"); temp.innerHTML = html || ""; return (temp.textContent || temp.innerText || "") .replace(/\s+/g, " ") .trim(); } function displayLatestPost(post) { const dateRow = document.createElement("div"); dateRow.className = "pe-post-date"; dateRow.appendChild(createDateIcon()); const dateText = document.createElement("span"); const publishedDate = new Date(post.date); dateText.textContent = new Intl.DateTimeFormat( undefined, { month: "long", day: "numeric", year: "numeric" } ).format(publishedDate); dateRow.appendChild(dateText); const title = document.createElement("a"); title.className = "pe-post-title"; title.href = post.link; title.textContent = getCleanText( post.title.rendered ); const excerpt = document.createElement("p"); excerpt.className = "pe-post-excerpt"; excerpt.textContent = getCleanText( post.excerpt.rendered ); const readButton = document.createElement("a"); readButton.className = "pe-latest-read"; readButton.href = post.link; readButton.appendChild( document.createTextNode("Read Article") ); const arrow = document.createElement("span"); arrow.textContent = "→"; readButton.appendChild(arrow); postContainer.replaceChildren( dateRow, title, excerpt, readButton ); } function showError() { const message = document.createElement("p"); message.className = "pe-latest-error"; message.textContent = "Our latest article is temporarily unavailable. Please explore all our articles."; postContainer.replaceChildren(message); } fetch(apiURL, { method: "GET", credentials: "same-origin" }) .then(function (response) { if (!response.ok) { throw new Error("WordPress API request failed."); } return response.json(); }) .then(function (posts) { if (!Array.isArray(posts) || posts.length === 0) { throw new Error("No published posts found."); } displayLatestPost(posts[0]); }) .catch(function (error) { console.error( "Prayerseveryday latest post error:", error ); showError(); }); })();