def append_about_us():
    with open('about-us.html', 'r', encoding='utf-8') as f:
        content = f.read()

    # Split off the footer
    parts = content.split('<!-- 6. Footer')
    if len(parts) == 2:
        main_content = parts[0]
        footer = '<!-- 6. Footer' + parts[1]
    else:
        main_content = content
        footer = ''

    # Friaries Section
    friaries_section = """
    <section id="friaries-section" style="padding: 6rem 0; background-color: #FFFFFF; color: #57534e;">
        <div style="max-width: 1320px; margin: 0 auto; padding: 0 2rem;">
            <div style="text-align: center; margin-bottom: 4rem;">
                <h3 style="font-family: 'Phudu', sans-serif; font-size: 2.5rem; font-weight: 700; text-transform: uppercase; color: #1c1917;">Friaries & Locations</h3>
                <div style="width: 60px; height: 3px; background-color: #c8102e; margin: 1rem auto 0 auto;"></div>
            </div>
            
            <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;">
                
                <div style="background: #FAF7F0; padding: 2rem; border-radius: 16px; border-top: 4px solid #c8102e;">
                    <h5 style="font-family: 'Phudu', sans-serif; font-size: 1.2rem; font-weight: 700; color: #1c1917; margin-bottom: 1.5rem; text-transform: uppercase;">Archdiocese of Ranchi</h5>
                    <ul style="list-style: none; padding: 0; margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 0.95rem; line-height: 1.6;">
                        <li style="margin-bottom: 1.5rem;"><strong>Franciscan Ashram (Provincial Residence)</strong><br>P.O. Harmu Housing Colony, Ranchi – 834002<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 1978</span></li>
                        <li style="margin-bottom: 1.5rem;"><strong>Franciscan Training Institute</strong><br>Purulia Road (Dr. Camil Bulcke Path), P. Box No. 123, Ranchi – 834001<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 1954</span></li>
                        <li style="margin-bottom: 1.5rem;"><strong>Franciscan Ashram Banhora</strong><br>P.O. Hehel, Ranchi – 834005<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 1988</span></li>
                        <li><strong>Franciscan Ashram</strong><br>P.O. Getalsud (Via – Tatisilwai), Ranchi – 835101<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 2002</span></li>
                    </ul>
                </div>

                <div style="background: #FAF7F0; padding: 2rem; border-radius: 16px; border-top: 4px solid #c8102e;">
                    <h5 style="font-family: 'Phudu', sans-serif; font-size: 1.2rem; font-weight: 700; color: #1c1917; margin-bottom: 1.5rem; text-transform: uppercase;">Diocese of Khunti</h5>
                    <ul style="list-style: none; padding: 0; margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 0.95rem; line-height: 1.6;">
                        <li style="margin-bottom: 1.5rem;"><strong>St. Anthony’s Monastery</strong><br>P.O. Dorma (Via – Torpa), Khunti – 835227<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 1970</span></li>
                        <li style="margin-bottom: 1.5rem;"><strong>Franciscan Ashram Gaurbera</strong><br>P.O. Bhamini (Via - Muruhu), Khunti – 835216<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 1986</span></li>
                        <li style="margin-bottom: 1.5rem;"><strong>Assisi Bhavan</strong><br>P.O. Dorma (Via – Torpa), Khunti – 835227<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 2006</span></li>
                        <li><strong>Vinay Bhavan</strong><br>P.O. Bichna, Khunti - 835210<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 2009</span></li>
                    </ul>
                </div>

                <div style="background: #FAF7F0; padding: 2rem; border-radius: 16px; border-top: 4px solid #c8102e;">
                    <h5 style="font-family: 'Phudu', sans-serif; font-size: 1.2rem; font-weight: 700; color: #1c1917; margin-bottom: 1.5rem; text-transform: uppercase;">Diocese of Simdega</h5>
                    <ul style="list-style: none; padding: 0; margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 0.95rem; line-height: 1.6;">
                        <li style="margin-bottom: 1.5rem;"><strong>Franciscan Ashram Bhukumunda</strong><br>P.O. Targa, Simdega – 835226<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 1987</span></li>
                        <li style="margin-bottom: 1.5rem;"><strong>St. Joseph’s Church Kuruskela</strong><br>Simdega - 835228<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 2012</span></li>
                        <li><strong>Catholic Church Behrinbasa</strong><br>P.O. Behrinbasa, Simdega – 835226<br><span style="color: #a8a29e; font-size: 0.85rem;">Estd. 2013</span></li>
                    </ul>
                </div>
                
                <div style="background: #FAF7F0; padding: 2rem; border-radius: 16px; border-top: 4px solid #c8102e;">
                    <h5 style="font-family: 'Phudu', sans-serif; font-size: 1.2rem; font-weight: 700; color: #1c1917; margin-bottom: 1.5rem; text-transform: uppercase;">Other Dioceses (India)</h5>
                    <ul style="list-style: none; padding: 0; margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 0.95rem; line-height: 1.6;">
                        <li style="margin-bottom: 1.5rem;"><strong>Gumla:</strong> Franciscan Ashram Murumkela (Estd. 1998)</li>
                        <li style="margin-bottom: 1.5rem;"><strong>Purnea:</strong> Franciscan Ashram Thakurganj (Estd. 1996)</li>
                        <li style="margin-bottom: 1.5rem;"><strong>Bagdogra:</strong> Franciscan Ashram Adhikari (Estd. 1982)</li>
                        <li style="margin-bottom: 1.5rem;"><strong>Jalpaiguri:</strong> Franciscan Ashram Hasimara (Estd. 1984), Franciscan Ashram Chel-Line (Estd. 2018)</li>
                        <li style="margin-bottom: 1.5rem;"><strong>Rourkela:</strong> Franciscan Ashram Deorapara (Estd. 2003), Sneh Bhavan Jamunadipa (Estd. 2014)</li>
                        <li><strong>Bongaigaon:</strong> Franciscan Ashram Kashiabari</li>
                    </ul>
                </div>

                <div style="background: #FAF7F0; padding: 2rem; border-radius: 16px; border-top: 4px solid #c8102e;">
                    <h5 style="font-family: 'Phudu', sans-serif; font-size: 1.2rem; font-weight: 700; color: #1c1917; margin-bottom: 1.5rem; text-transform: uppercase;">Outside India</h5>
                    <ul style="list-style: none; padding: 0; margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 0.95rem; line-height: 1.6;">
                        <li style="margin-bottom: 1.5rem;"><strong>Pater Nicholas Tudu, TOR</strong><br>Pfarrei Mariä Himmelfahrt, Schulstr.1, 84051 Essenbach, Germany</li>
                        <li><strong>Pater Daison Thaikkattil, TOR</strong><br>Kirch Strasse 3a, 79793 Wutoeschingen, Germany</li>
                    </ul>
                </div>
            </div>
        </div>
    </section>
    """

    ministries_section = """
    <section id="ministries-section" style="padding: 6rem 0; background-color: #FAF7F0; color: #1c1917;">
        <div style="max-width: 1320px; margin: 0 auto; padding: 0 2rem;">
            <div style="text-align: center; margin-bottom: 4rem;">
                <h3 style="font-family: 'Phudu', sans-serif; font-size: 2.5rem; font-weight: 700; text-transform: uppercase;">Our Ministries</h3>
                <div style="width: 60px; height: 3px; background-color: #c8102e; margin: 1rem auto 0 auto;"></div>
            </div>

            <div style="display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 1000px; margin: 0 auto;">
                
                <div style="background: #ffffff; padding: 3rem; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; gap: 2rem; align-items: flex-start;">
                    <div style="width: 64px; height: 64px; background-color: #FAF7F0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; border: 1px solid #e7e5e4;">&#128362;</div>
                    <div>
                        <h4 style="font-family: 'Phudu', sans-serif; font-size: 1.6rem; font-weight: 700; color: #1c1917; margin-bottom: 1rem;">Pastoral Ministry</h4>
                        <p style="font-family: 'Instrument Sans', sans-serif; font-size: 1.05rem; color: #57534e; line-height: 1.6; margin-bottom: 1rem;">St. Francis gathered brothers around him to become heralds of the Good News. Inspired by this vision, the TOR Franciscans of the Province actively engage in pastoral ministry in parishes. Through this vital service to the Church, the friars dedicate themselves wholeheartedly to the mission of evangelization by their pastoral presence and ministry.</p>
                        <p style="font-family: 'Instrument Sans', sans-serif; font-size: 1.05rem; color: #57534e; line-height: 1.6;">The TOR Franciscans of St. Francis Province, Ranchi, currently serve in various dioceses and parishes both in India and abroad, particularly in areas where a Franciscan presence is most needed.</p>
                    </div>
                </div>

                <div style="background: #ffffff; padding: 3rem; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; gap: 2rem; align-items: flex-start;">
                    <div style="width: 64px; height: 64px; background-color: #FAF7F0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; border: 1px solid #e7e5e4;">&#127891;</div>
                    <div>
                        <h4 style="font-family: 'Phudu', sans-serif; font-size: 1.6rem; font-weight: 700; color: #1c1917; margin-bottom: 1rem;">Formation Ministry</h4>
                        <p style="font-family: 'Instrument Sans', sans-serif; font-size: 1.05rem; color: #57534e; line-height: 1.6; margin-bottom: 1rem;">Formation is the foundational ministry through which the Franciscan TOR charism and spirituality are creatively and faithfully proposed to and shared with successive generations. In accordance with the mind of the Church and the Order, our primary objective is to prepare candidates for the total consecration of themselves to God in the following of Christ, at the service of the Church’s mission.</p>
                        <p style="font-family: 'Instrument Sans', sans-serif; font-size: 1.05rem; color: #57534e; line-height: 1.6;">This vision is nurtured through a well-structured network of formation centres: two Minor Seminaries located in Dorma, Khunti, and in Ranchi; the Novitiate House in Bichna, Khunti; and the Clericate at Purulia Road, Ranchi.</p>
                    </div>
                </div>

                <div style="background: #ffffff; padding: 3rem; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; gap: 2rem; align-items: flex-start;">
                    <div style="width: 64px; height: 64px; background-color: #FAF7F0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; border: 1px solid #e7e5e4;">&#128218;</div>
                    <div>
                        <h4 style="font-family: 'Phudu', sans-serif; font-size: 1.6rem; font-weight: 700; color: #1c1917; margin-bottom: 1rem;">Education Ministry</h4>
                        <p style="font-family: 'Instrument Sans', sans-serif; font-size: 1.05rem; color: #57534e; line-height: 1.6; margin-bottom: 1rem;">Education is one of the principal ministries of St. Francis Province, Ranchi. Inspired by the vision of St. Francis of Assisi and the educational mission of the Catholic Church, the Province is committed to forming young people who are intellectually competent, morally upright, spiritually grounded, and socially responsible.</p>
                        <p style="font-family: 'Instrument Sans', sans-serif; font-size: 1.05rem; color: #57534e; line-height: 1.6;">To carry out this mission, the Province operates a network of educational institutions across Jharkhand, Bihar, and West Bengal, serving approximately 20,000 students. These include five Hindi-medium high schools, eleven middle schools, and six English-medium schools.</p>
                    </div>
                </div>

            </div>
        </div>
    </section>
    """

    friars_section = """
    <section id="friars-section" style="padding: 6rem 0; background-color: #FFFFFF; color: #1c1917;">
        <div style="max-width: 1320px; margin: 0 auto; padding: 0 2rem;">
            <div style="text-align: center; margin-bottom: 4rem;">
                <h3 style="font-family: 'Phudu', sans-serif; font-size: 2.5rem; font-weight: 700; text-transform: uppercase;">Our Friars & Necrology</h3>
                <div style="width: 60px; height: 3px; background-color: #c8102e; margin: 1rem auto 0 auto;"></div>
            </div>

            <div style="display: grid; grid-template-columns: 2fr 1fr; gap: 4rem;">
                
                <!-- Friars List -->
                <div>
                    <h4 style="font-family: 'Phudu', sans-serif; font-size: 1.5rem; font-weight: 600; text-transform: uppercase; margin-bottom: 2rem; color: #1c1917;">Friars</h4>
                    <div style="display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; font-family: 'Instrument Sans', sans-serif; font-size: 0.95rem; color: #57534e;">
                        <div>Fr. Anselm Kullu</div><div>Fr. George Palamattam</div><div>Fr. Jerome Alookaran</div><div>Br. Simon Gahatraj</div>
                        <div>Fr. Cyril Kochuvilayil</div><div>Fr. Marianus Kujur</div><div>Fr. Hilarius Barla</div><div>Fr. John Thakadiyel</div>
                        <div>Fr. Nicholas Tudu</div><div>Fr. Donatus Xaxa</div><div>Fr. Anthony Hemrom</div><div>Fr. Donatus Tirkey</div>
                        <div>Fr. Anthony Soren</div><div>Fr. Alphonse Ekka</div><div>Fr. Philip Kaduthanam</div><div>Fr. Mathew Kanayinkal</div>
                        <div>Br. Oscar Hemrom</div><div>Fr. George Mailadil</div><div>Br. Subhash P. Tete</div><div>Fr. Herman Kujur</div>
                        <div>Fr. John Horo</div><div>Fr. Vijay Kumar Ekka</div><div>Fr. Bigit Bage</div><div>Fr. Ajit Xalxo</div>
                        <div>Fr. Daison Thaikattil</div><div>Fr. Anand Kumar Barla</div><div>Fr. Leander Kerketta</div><div>Fr. Esidor Baa</div>
                        <div>Fr. Suman Kishore Dhan</div><div>Fr. Isidore Kerketta</div><div>Fr. Carolus Kiro</div><div>Fr. Ranjan Prakash Ekka</div>
                        <div>Fr. Abhay Tigga</div><div>Fr. Manoj Vengathanam</div><div>Fr. Manoj Kullu</div><div>Fr. Shaji Alapurath</div>
                        <div>Fr. Benjamin Tiru</div><div>Fr. Vincy Illickal</div><div>Fr. Xavier Kindo</div><div>Fr. Raju Tirkey</div>
                        <div>Fr. Anthers Bara</div><div>Fr. Ambose Lakra</div><div>Fr. Benedict Tirkey</div><div>Fr. Paulinus Kiro</div>
                        <div>Fr. Bijay Prakash Tirkey</div><div>Fr. Joseph Toppo</div><div>Fr. Gigesh Meckel</div><div>Fr. Ajit Tiru </div>
                        <div>Fr. Anup Toppo</div><div>Fr. Deepak Ekka</div><div>Fr. Amit Ekka</div><div>Fr. Chander Kujur</div>
                        <div>Fr. Sumit Bilsan Tigga</div><div>Fr. Ajeet Paul Kerketta</div><div>Fr. Naveen Kujur</div><div>Fr. Pradeep Lakra</div>
                        <div>Fr. Prashant Xalxo</div><div>Fr. Wilson Lugun</div><div>Fr. Anshu Anand Tiru</div><div>Fr. Matias Kandulna</div>
                        <div>Fr. Anand Barla</div><div>Fr. Mukesh Ekka</div><div>Fr. Rohit Ekka</div><div>Fr. Anil Soreng</div>
                        <div>Fr. Amit Kumar Beck</div><div>Fr. Flourence Tirkey</div><div>Fr. Jugal Barla</div><div>Fr. Udit lakra</div>
                        <div>Fr. Albert Kindo</div><div>Fr. Sujit Lakra</div><div>Fr. Sumit Tirkey</div><div>Fr. Kuldeep Ekka</div>
                        <div>Br. Ajit Topno</div><div>Br. Kishor Jaria</div><div>Fr. Santosh Toppo</div><div>Br. Mukesh Toppo</div>
                        <div>Fr. Jasman Toppo</div><div>Br. Anselm Mundu</div><div>Br. Oskar Soreng</div><div>Br. Amardeep Lakra</div>
                        <div>Br. Harshit Kerketta</div><div>Br. William Minz</div><div>Br. Roshan Soreng</div><div>Br. Bikash Kiro</div>
                    </div>
                </div>

                <!-- Necrology -->
                <div>
                    <h4 style="font-family: 'Phudu', sans-serif; font-size: 1.5rem; font-weight: 600; text-transform: uppercase; margin-bottom: 2rem; color: #1c1917;">Necrology</h4>
                    <div style="background: #fafafa; padding: 2rem; border-radius: 16px; border: 1px solid #e7e5e4;">
                        <ul style="list-style: none; padding: 0; margin: 0; font-family: 'Instrument Sans', sans-serif; font-size: 0.95rem; line-height: 2;">
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Br. Carlus Bara</span> <span>28.07.2002</span></li>
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Br. Michael Bhengra</span> <span>23.07.2003</span></li>
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Deacon Sabu Vettikottil</span> <span>13.12.2003</span></li>
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Fr. Dionis Kiro</span> <span>29.02.2008</span></li>
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Fr. James Lakra</span> <span>03.06.2013</span></li>
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Fr. Augustine Peedikamala</span> <span>14.10.2014</span></li>
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Br. Benedict Kullu</span> <span>28.01.2021</span></li>
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Fr. Gregory Kerketta</span> <span>20.04.2021</span></li>
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Fr. Donatus Soreng</span> <span>11.05.2021</span></li>
                            <li style="display: flex; justify-content: space-between; border-bottom: 1px solid #e7e5e4; padding-bottom: 0.5rem; margin-bottom: 0.5rem;"><span>Fr. Fabian Kunnappillil</span> <span>20.01.2025</span></li>
                            <li style="display: flex; justify-content: space-between;"><span>Fr. Sushil Prawin Tiru</span> <span>07.01.2026</span></li>
                        </ul>
                    </div>
                </div>

            </div>
        </div>
    </section>
    """

    with open('about-us.html', 'w', encoding='utf-8') as f:
        f.write(main_content)
        f.write(friaries_section)
        f.write(ministries_section)
        f.write(friars_section)
        f.write(footer)

append_about_us()
