import re

html_to_inject = """
          <!-- 3.5 Bible Quote Section -->
          <section id="bible-quote-section" style="padding: 7rem 0; background-color: #0a0a0a; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 12px); color: #ffffff; text-align: center; border-radius: 32px; margin: 0 3rem 4rem 3rem; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.2);">
              <div style="position: relative; z-index: 2; max-width: 800px; margin: 0 auto; padding: 0 2rem;">
                  <div style="display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.1); padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 2.5rem; border: 1px solid rgba(255,255,255,0.05);">
                      <span style="width: 6px; height: 6px; background-color: #c8102e; border-radius: 50%; display: inline-block;"></span>
                      <span style="color: #ffffff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Instrument Sans', sans-serif;">WORD OF GOD</span>
                  </div>
                  
                  <h2 style="font-family: 'Phudu', sans-serif !important; font-size: clamp(2.8rem, 6vw, 4.5rem) !important; font-weight: 700 !important; color: #ffffff !important; text-transform: uppercase; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.5rem;">
                      &ldquo;BE STILL AND<br>KNOW THAT I AM GOD.&rdquo;
                  </h2>
                  
                  <p style="font-family: 'Instrument Sans', sans-serif; font-size: 1.15rem; color: #a8a29e; margin: 0;">
                      Book of Psalms
                  </p>
              </div>
          </section>
"""

with open('index.html', 'r', encoding='utf-8') as f:
    content = f.read()

# Make sure it's not already there
if "BE STILL AND" not in content:
    content = content.replace('<section id="news-section"', html_to_inject + '\n          <section id="news-section"')
    with open('index.html', 'w', encoding='utf-8') as f:
        f.write(content)
    print("Quote injected.")
else:
    print("Quote already exists.")
