
import re

raw_text = """
1. Bedroom Furniture

Wooden and modular beds

Box beds with storage

Side tables & dressing tables

Headboards & wall panels

Customized bedroom sets

2. Almari / Wardrobe Works

Sliding and hinged wardrobes

Modular almirah

Wooden & steel wardrobes

Loft cabinets & storage units

Shelves, drawers & organizers

3. Office Furniture

Office desks & workstations

Executive tables & chairs

Reception counters

File storage cabinets

Conference tables

Office partitions & cubicles

4. Home Furniture

Sofa sets & center tables

Dining tables & chairs

TV units & showcases

Study tables & bookshelves

Modular kitchen cabinets

Interior wooden décor works

5. Meeting Hall / Conference Furniture

Conference tables

Comfortable seating chairs

Podium & presentation desk

Wall paneling

Storage units

Custom layout arrangements

6. Interior & Custom Works

False ceiling wood designs

Wall cladding & paneling

Display racks & counters

Hotel & showroom furniture

Repair, polishing & renovation works    

7. Outdoor & Garden Furniture ??

Patio chairs & tables

Garden benches & swings

Outdoor storage cabinets

Gazebo & pergola furniture

Customized weather-resistant furniture

8. Hospitality & Commercial Furniture ??

Hotel room furniture (beds, wardrobes, tables)

Restaurant tables & seating arrangements

Lounge & lobby furniture

Retail & showroom display units

Customized commercial furniture solutions

9. Decorative & Specialty Furniture ?

Designer coffee tables & console tables

Wall-mounted shelves & display units

Custom-made wooden décor items

Artistic furniture with inlay, carving, or laminate finishes

Customized storage solutions for niche requirements

10. Furniture Repair, Restoration & Polishing ?

Refurbishing old or damaged furniture

Wood polishing & finishing services

Upholstery repairs and replacement

Modular & antique furniture restoration

Timely maintenance contracts                

---

### **11. Modular & Smart Furniture Solutions** ???

* Space-saving modular furniture for small homes & offices
* Smart storage units with pull-out and foldable mechanisms
* Wall-mounted desks & study units
* Multi-functional beds and sofas
* Customized modular shelving systems

---

### **12. Educational & Institutional Furniture** ??

* School & college classroom desks & chairs
* Laboratory workstations & storage units
* Library shelves & bookcases
* Lecture hall seating & podiums
* Staff room and administrative furniture

---

### **13. Healthcare & Laboratory Furniture** ?

* Hospital beds & bedside cabinets
* Medical trolleys & storage cabinets
* Laboratory workbenches & stools
* Nursing station desks & chairs
* Sterilizable and durable furniture solutions

---

### **14. Specialized Wooden & Metal Works** ?

* Carved wooden panels & designer doors
* Customized metal furniture & racks
* Wooden partitions & room dividers
* Wooden frames & ceiling décor
* Combination wood-metal furniture

---

### **15. Turnkey Interior & Furniture Projects** ???

* Complete interior design & furniture execution
* Conceptualization, design, and 3D visualization
* On-site measurement, manufacturing, and installation
* Customized themes for residential, commercial & hospitality spaces
* Maintenance and renovation contracts



---

### **16. Luxury & Designer Furniture** ?

* High-end bedroom, living, and dining furniture
* Designer wardrobes, study tables, and modular kitchens
* Customized luxury office furniture
* Premium materials: teak, walnut, oak, metal, glass, and leather
* Artistic finishes, inlays, and carvings

---

### **17. Eco-Friendly & Sustainable Furniture** ?

* Furniture using engineered wood, bamboo, and recycled materials
* Low-VOC finishes and environmentally friendly paints
* Modular and reusable designs for minimal waste
* Sustainable outdoor furniture
* Green solutions for offices, homes, and public spaces

---

### **18. Storage & Utility Solutions** ?

* Customized storage units for homes and offices
* Loft storage, overhead cabinets, and under-bed storage
* Wall-mounted shelves & racks
* Garage, warehouse, and industrial storage solutions
* Multi-functional furniture for compact spaces

---

### **19. Commercial Fit-Out & Interior Furnishing** ?

* Complete showroom and retail store furniture
* Restaurant and café seating arrangements
* Hotel lobby, lounge, and room furniture
* Customized reception and display counters
* Interior wood paneling, décor, and furniture integration

---

### **20. Maintenance & After-Sales Services** ???

* Regular furniture maintenance contracts
* Repair, polishing, and refinishing services
* Upholstery replacement and re-cushioning
* Warranty-based services for modular furniture
* Emergency repairs for commercial & institutional clients




---

### **21. Outdoor & Recreational Furniture** ?

* Park benches, swings, and garden seating
* Outdoor dining & lounge sets
* Pergolas, gazebos, and patios
* Poolside furniture & deck seating
* Weather-resistant, durable furniture for open spaces

---

### **22. Customized Paneling & Partition Works** ?

* Wooden wall paneling and decorative cladding
* Acoustic and decorative partitions for offices and halls
* Sliding and folding room dividers
* Modular partition systems for co-working spaces
* Specialty feature walls with integrated storage

---

### **23. Event & Exhibition Furniture** ?

* Portable display racks & counters
* Custom exhibition booths and stalls
* Conference and seminar seating arrangements
* Podiums, stage tables, and lecterns
* Temporary modular furniture solutions for events

---

### **24. Smart & Automated Furniture Solutions** ?

* Motorized adjustable beds and desks
* Automated storage units with electronic mechanisms
* Space-saving foldable furniture
* Integrated lighting and charging solutions
* Smart office and home furniture solutions

---

### **25. Antique & Heritage Furniture Restoration** ?

* Restoration of antique wooden furniture
* Polishing, refinishing, and structural repair
* Upholstery repair with period-accurate materials
* Conservation of heritage pieces for museums and collectors
* Custom replication of classic designs

---

### **26. Decorative & Artistic Wooden Works** ?

* Designer coffee tables, console tables, and showpieces
* Carved wooden panels and doors
* Artistic inlays with metal, glass, or resin
* Designer shelving, racks, and feature units
* Customized decorative furniture for homes and offices

---

### **27. Modular & Space-Saving Solutions** ?

* Foldable tables, sofa-beds, and convertible furniture
* Wall-mounted desks and storage units
* Loft and mezzanine storage solutions
* Multi-purpose furniture for compact homes
* Innovative designs for maximizing usable space

---








---

### **28. Kitchen & Pantry Furniture** ?

* Modular kitchen cabinets and storage units
* Pantry shelves and racks
* Countertops and island units
* Pull-out drawers and organizers
* Customized kitchen layouts with aesthetic finishes

---

### **29. Bathroom & Washroom Furniture** ?

* Vanity units and cabinets
* Mirror cabinets with storage
* Shelves and towel racks
* Modular washroom storage solutions
* Durable, moisture-resistant finishes

---

### **30. Retail & Display Furniture** ???

* Product display shelves and racks
* Counters and cashier stations
* Wall-mounted display units
* Glass showcases and podiums
* Custom showroom and retail furniture solutions

---

### **31. Lighting & Integrated Furniture** ?

* Furniture with built-in lighting solutions
* LED-integrated display cabinets
* Backlit wall panels and headboards
* Functional lighting for workstations and study tables
* Smart lighting integration with furniture

---

### **32. Acoustic & Soundproof Furniture** ?

* Acoustic panels for walls and ceilings
* Soundproof partitions for offices and studios
* Wooden and upholstered acoustic furniture
* Customized designs for meeting rooms and halls
* Noise-reducing furniture solutions

---

### **33. Vehicle & Transportation Furniture** ?

* Cabin furniture for buses, coaches, and trains
* Driver and passenger seating solutions
* Foldable tables and storage units for vehicles
* Modular interiors for transport and logistics vehicles
* Custom-made furniture for mobile offices and lounges

---

### **34. Specialty Industrial & Laboratory Furniture** ??

* Workbenches and storage units for factories
* Heavy-duty cabinets and racks
* Laboratory furniture with chemical-resistant finishes
* Modular industrial storage systems
* Custom industrial workstations

---

### **35. Smart Office & Co-Working Furniture** ???

* Ergonomic workstations & height-adjustable desks
* Modular cubicles & partitions
* Collaborative meeting tables & lounge seating
* Integrated storage with power/data ports
* Smart office furniture solutions for productivity

---

### **36. Entertainment & Media Room Furniture** ?

* Home theater seating & recliners
* TV cabinets, consoles, and racks
* Soundproof media panels & wall units
* Gaming tables and multimedia furniture
* Custom designs for media rooms & lounges

---

### **37. Luxury Hospitality Furniture** ?

* Boutique hotel room furniture
* Premium lobby and lounge seating
* Restaurant & bar furniture with designer finishes
* Customized hotel reception counters & back-office furniture
* Integrated storage & display solutions

---

### **38. Modular Laboratory & Scientific Furniture** ?

* Laboratory workbenches & storage units
* Fume hoods and chemical-resistant cabinets
* Lab seating & ergonomic stools
* Custom modular lab systems for schools, colleges, and industries
* Specialized furniture for research and testing environments

---

### **39. Public & Institutional Furniture** ?

* Government office desks & chairs
* Classroom furniture for schools & colleges
* Library shelving & storage units
* Waiting area seating for hospitals & institutions
* Durable and maintenance-friendly furniture

---

### **40. Heritage & Museum Furniture** ?

* Display cabinets for artifacts & collectibles
* Carved and heritage-style furniture
* Custom wooden panels & show cases
* Preservation-grade storage furniture
* Restoration & replication of antique pieces

---

### **41. Outdoor Adventure & Recreational Furniture** ???

* Camping & portable seating solutions
* Durable benches & picnic tables
* Outdoor gym & playground furniture
* Multi-functional recreational furniture
* Weatherproof materials & designs

---

### **42. Customized Art & Sculptural Furniture** ?

* Artistic tables, chairs, and consoles
* Carved and inlaid wooden décor furniture
* Statement furniture pieces for interiors
* Designer functional art pieces
* Integrated lighting and material combinations

---


---

### **43. Modular Retail & Pop-Up Furniture** ?

* Temporary retail displays & racks
* Pop-up store counters and seating
* Portable and foldable furniture solutions
* Custom branding integrated furniture
* Easy-assembly units for exhibitions and markets

---

### **44. Hospitality Outdoor & Resort Furniture** ?

* Poolside loungers & chairs
* Outdoor dining tables for cafes & resorts
* Cabana furniture & sunbeds
* Weatherproof garden and patio sets
* Resort lounge & recreational furniture

---

### **45. Smart Home & IoT-Integrated Furniture** ?

* Furniture with built-in charging ports & USB hubs
* Motorized and adjustable smart desks and beds
* Integrated lighting and climate control features
* Multi-functional modular smart furniture
* Home automation-compatible furniture solutions

---

### **46. Transportation & Mobile Furniture Solutions** ?

* Bus, train, and airplane seating & interiors
* Mobile office desks & storage solutions
* Foldable and space-saving vehicle furniture
* Modular cabin furniture for trucks & coaches
* Customized interiors for ambulances and service vehicles

---

### **47. Acoustic, Studio & Music Room Furniture** ?

* Soundproof partitions & panels
* Acoustic wall cladding & ceiling units
* Recording studio desks & racks
* Music room seating and storage
* Modular furniture for sound clarity and space optimization

---

### **48. Event & Banquet Furniture** ?

* Chairs, tables, and banquet seating
* Stage podiums & lecterns
* Foldable and transportable furniture solutions
* Customized wedding, conference, and party setups
* Temporary furniture rentals for events

---

### **49. Luxury & Designer Customized Projects** ?

* Bespoke furniture with premium materials
* Designer inlays, carvings, and finishes
* Artistic and functional statement pieces
* Integration with interiors and décor themes
* Luxury modular furniture for high-end residences and offices

---

### **50. Furniture for Special Needs & Accessibility** ?

* Ergonomic furniture for disabled and elderly
* Adjustable-height desks and beds
* Accessible storage units and cabinets
* Safety-enhanced furniture for hospitals and care centers
* Inclusive designs for homes, offices, and public spaces

---

---

### **51. Outdoor Sports & Fitness Furniture** ???

* Gym benches, racks, and storage units
* Outdoor fitness equipment & seating
* Yoga and exercise platforms
* Multipurpose training stations
* Durable weather-resistant sports furniture

---

### **52. Co-Living & Hostel Furniture** ???

* Bunk beds & loft beds with storage
* Study tables & chairs
* Wardrobes & shoe racks
* Common area sofas and seating
* Modular solutions for compact spaces

---

### **53. Smart Office Collaborative Furniture** ?

* Adjustable conference tables
* Modular collaboration desks & workstations
* Whiteboard-integrated tables
* Movable partitions for agile workspaces
* Smart storage with charging and IoT integration

---

### **54. Retail Display & Merchandising Units** ?

* Product display racks & shelves
* Cashier counters and POS desks
* Custom showrooms and brand activation furniture
* Glass display cabinets and podiums
* Modular and portable exhibition solutions

---

### **55. Children's Furniture & Educational Units** ?

* Kids’ beds, study tables, and chairs
* Toy storage & playroom furniture
* Classroom desks and chairs for schools
* Library shelving & cubbies for children
* Colorful and safe modular solutions for kids

---

### **56. Luxury Lounge & Entertainment Furniture** ?

* Designer recliners & sofas
* Home theater seating & media consoles
* Gaming tables & chairs
* Bar cabinets & mini-fridges integrated furniture
* Stylish, high-end entertainment room solutions

---

### **57. Eco-Luxury & Sustainable Designer Furniture** ?

* Bamboo, reclaimed wood, and recycled materials
* Eco-friendly finishes and paints
* Modular sustainable designs for homes and offices
* Outdoor furniture using natural & durable materials
* Innovative solutions for green architecture

---

### **58. Industrial & Heavy-Duty Furniture** ??

* Factory workbenches & storage racks
* Tool cabinets & heavy-duty lockers
* Workshop tables & modular industrial furniture
* Steel & wood combination furniture
* Custom solutions for production & manufacturing units

---

### **59. Healthcare & Medical Furniture** ?

* Hospital beds, stretchers, and bedside cabinets
* Modular nursing stations & office desks
* Lab furniture with chemical-resistant surfaces
* Waiting area seating & storage units
* Ergonomic and maintenance-friendly solutions

---

### **60. Future & Tech-Integrated Furniture** ?

* IoT-enabled desks, chairs, and storage units
* Motorized and foldable smart furniture
* Furniture with integrated lighting, power, and sensors
* AI-assisted smart home & office furniture solutions
* Adaptive modular designs for futuristic living


---

### **61. Modular Lab & Research Furniture** ?

* Chemical-resistant lab benches
* Storage cabinets for lab equipment
* Adjustable seating & ergonomic stools
* Modular workstations for research labs
* Customized furniture for laboratories and testing centers

---

### **62. Library & Archive Furniture** ?

* Shelving systems for libraries & archives
* Reading tables and study carrels
* Book storage cabinets & filing units
* Modular and movable shelving solutions
* Preservation-grade furniture for rare collections

---

### **63. Smart Storage & Automation Furniture** ?

* Automated pull-out drawers & cabinets
* IoT-enabled storage units
* Space-optimized modular storage systems
* Furniture integrated with sensors and smart locks
* Home & office solutions for smart organization

---

### **64. Acoustic & Music Room Furniture** ?

* Soundproof partitions & acoustic panels
* Recording studio desks & racks
* Music room seating & storage
* Modular furniture for sound optimization
* Furniture integrated with audio technology

---

### **65. Outdoor Hospitality & Resort Furniture** ?

* Poolside loungers & umbrellas
* Patio seating & tables
* Outdoor dining furniture for restaurants & resorts
* Gazebo & pergola integrated furniture
* Weather-resistant and luxury outdoor sets

---

### **66. Event, Conference & Banquet Furniture** ?

* Folding tables & chairs for events
* Stage furniture, podiums, and lecterns
* Temporary exhibition counters & displays
* Conference room modular furniture
* Custom event furniture solutions

---

### **67. Designer & Luxury Furniture** ?

* High-end residential furniture
* Bespoke office furniture
* Artistic tables, chairs, and consoles
* Premium materials: wood, metal, glass, leather
* Unique and statement furniture pieces

---

### **68. Sustainable & Eco-Friendly Furniture** ?

* Bamboo, recycled wood, and engineered materials
* Low-VOC finishes and eco-friendly paints
* Modular designs for minimal waste
* Green office & residential furniture
* Innovative solutions for sustainable interiors

---

### **69. Children & Educational Furniture** ?

* Kids’ beds, desks, and chairs
* Playroom & storage furniture
* Classroom tables, chairs, and bookcases
* Library shelving & study units
* Colorful, safe, and modular solutions

---

### **70. Furniture for Special Needs & Accessibility** ?

* Ergonomic furniture for elderly & differently-abled
* Adjustable beds, chairs, and tables
* Accessible storage units & cabinets
* Safety-enhanced furniture for hospitals and care centers
* Inclusive design for homes, offices, and public spaces

---




---

### **71. Modular Kitchen & Pantry Solutions** ???

* Modular kitchen cabinets & countertops
* Pantry shelves, drawers, and organizers
* Pull-out units and spice racks
* Island units & breakfast counters
* Customized layouts with aesthetic finishes

---

### **72. Bathroom & Washroom Furniture** ?

* Vanity units & cabinets
* Mirror cabinets with storage
* Shelves, towel racks & organizers
* Modular washroom units for homes & offices
* Moisture-resistant finishes and durable designs

---

### **73. Vehicle & Transport Furniture** ?

* Bus, coach, and train seating & interiors
* Mobile office desks & storage solutions
* Foldable and space-saving vehicle furniture
* Cabin furniture for trucks, ambulances, and mobile labs
* Modular and ergonomic interiors for vehicles

---

### **74. Outdoor Recreational & Adventure Furniture** ???

* Camping benches, portable tables & chairs
* Outdoor fitness & sports furniture
* Playground and adventure park furniture
* Weather-resistant picnic tables & loungers
* Multi-functional recreational furniture

---

### **75. Industrial & Heavy-Duty Furniture** ??

* Factory workbenches & storage racks
* Tool cabinets & workshop tables
* Heavy-duty lockers & industrial shelving
* Modular industrial workstations
* Steel and wood combination furniture

---

### **76. Smart & IoT-Integrated Furniture** ?

* Motorized desks, beds & chairs
* Automated storage units with sensors
* Smart modular furniture for homes and offices
* Furniture with integrated lighting and power ports
* Adaptive furniture for modern smart living

---

### **77. Acoustic & Studio Furniture** ?

* Soundproof partitions & wall panels
* Recording studio desks & racks
* Music room seating & storage
* Modular furniture for acoustic optimization
* Integration with audio systems

---

### **78. Event, Banquet & Exhibition Furniture** ?

* Folding tables & chairs for events
* Podiums, lecterns & stages
* Temporary exhibition counters & display racks
* Conference room modular furniture
* Custom solutions for large events

---

### **79. Library & Archive Furniture** ?

* Reading tables & study carrels
* Shelving systems for libraries & archives
* Book storage cabinets & filing units
* Modular and movable shelving
* Preservation-grade storage solutions

---

### **80. Children’s Furniture & Educational Units** ?

* Beds, desks, and chairs for children
* Playroom and toy storage furniture
* Classroom tables, chairs, and bookcases
* Library shelving & study units
* Safe, colorful, and modular solutions

---

---

### **81. Tiny Home & Compact Living Furniture** ?

* Foldable beds, tables, and chairs
* Multi-purpose storage units
* Wall-mounted desks and shelving
* Space-optimized modular furniture
* Compact living solutions for apartments & studios

---

### **82. Floating & Wall-Mounted Furniture** ?

* Wall-mounted beds & desks
* Floating shelves and cabinets
* Mounted TV units & storage
* Space-saving furniture for small spaces
* Designer wall-mounted décor furniture

---

### **83. Multi-Sensory & Smart Furniture** ?

* Furniture integrated with lights, sound, and sensors
* Smart beds, chairs, and tables
* Adjustable desks with health & posture monitoring
* Furniture with IoT & automation capabilities
* Adaptive furniture for futuristic homes/offices

---

### **84. Home Theater & Entertainment Room Furniture** ?

* Recliners & luxury seating
* Media consoles & TV units
* Soundproof furniture panels
* Gaming tables & chairs
* Designer furniture for lounges & entertainment rooms

---

### **85. Outdoor Adventure & Camping Furniture** ???

* Portable benches & tables
* Foldable seating for campsites
* Outdoor gym & exercise furniture
* Multi-functional adventure park furniture
* Weather-resistant, durable designs

---

### **86. Vehicle Interiors & Mobile Furniture** ?

* Custom furniture for buses, trains, and vans
* Mobile office desks & storage units
* Foldable and ergonomic vehicle furniture
* Cabin furniture for trucks, coaches & ambulances
* Modular interiors for mobile labs & workshops

---

### **87. Hospitality & Resort Luxury Furniture** ?

* Hotel room furniture & wardrobes
* Lounge seating & dining furniture
* Outdoor resort tables & chairs
* Poolside loungers & cabana furniture
* Designer luxury hospitality furniture

---

### **88. Industrial, Factory & Heavy-Duty Furniture** ??

* Workbenches & assembly tables
* Tool cabinets & lockers
* Industrial storage racks & shelving
* Modular furniture for production floors
* Steel & wood combination units

---

### **89. Healthcare & Hospital Furniture** ?

* Hospital beds & bedside cabinets
* Nursing station desks & chairs
* Laboratory & diagnostic furniture
* Waiting area seating & storage
* Ergonomic, maintenance-friendly furniture

---

### **90. Educational & Institutional Furniture** ?

* School & college desks, chairs, and benches
* Laboratory workstations & shelves
* Library furniture & book storage
* Lecture hall seating & podiums
* Staff room and administrative furniture



---

### **91. Designer & Artistic Furniture** ?

* Sculptural tables, chairs, and consoles
* Carved wood panels and inlay designs
* Statement pieces for residential and commercial spaces
* Functional art furniture integrating aesthetics and utility
* Customized artistic décor furniture

---

### **92. Smart Office Pods & Workstations** ?

* Soundproof individual work pods
* Modular office desks with IoT integration
* Adjustable ergonomic chairs & tables
* Smart storage with built-in charging and sensors
* Collaborative modular office furniture

---

### **93. Co-Living & Hostel Furniture** ???

* Bunk beds & loft beds with storage
* Study tables & chairs
* Wardrobes & shoe racks
* Common area sofas & lounge seating
* Modular solutions for compact living spaces

---

### **94. Floating & Wall-Mounted Furniture** ?

* Floating beds & wall-mounted desks
* Wall-mounted shelves and storage units
* Space-saving TV units and consoles
* Designer wall-mounted décor furniture
* Multi-functional mounted furniture for small homes

---

### **95. Tiny Home & Compact Living Solutions** ?

* Foldable tables, chairs, and sofas
* Wall-mounted beds & storage
* Space-optimized modular furniture
* Convertible furniture for multipurpose use
* Smart furniture for micro-apartments

---

### **96. Outdoor Furniture & Recreational Seating** ?

* Garden benches & swings
* Patio sets & outdoor dining tables
* Lounge seating for poolside & resorts
* Weather-resistant outdoor furniture
* Multi-functional recreational furniture

---

### **97. Event, Banquet & Exhibition Furniture** ?

* Folding tables & chairs for events
* Podiums, lecterns & stage furniture
* Temporary exhibition counters & racks
* Conference room modular furniture
* Customized event and banquet solutions

---

### **98. Floating & Multi-Purpose Storage Furniture** ?

* Pull-out drawers & cabinets
* Modular shelving units
* Wall-mounted storage systems
* Compact, space-saving furniture
* Smart storage with automation and IoT

---

### **99. Luxury & High-End Furniture** ?

* Premium bedroom, living, and dining furniture
* Designer office desks & executive seating
* Luxury materials: wood, metal, leather, glass
* Bespoke furniture for residences, offices, and hotels
* Unique statement pieces with artistic finishes

---

### **100. Eco-Friendly & Sustainable Furniture** ?

* Bamboo, reclaimed wood, and recycled materials
* Low-VOC finishes and eco-paints
* Modular, reusable, and minimal-waste designs
* Sustainable outdoor & indoor furniture
* Green furniture solutions for homes, offices, and public spaces
"""

# Images to cycle through
images = [
    'our servies image/Services php/d2/bedroom.png',
    'our servies image/Our Services/interior_work.jpeg',
    'our servies image/Our Services/Construction_of_Building.jpeg',
    'our servies image/Our Services/fabrication_wor.jpeg',
    'our servies image/Our Services/Aluminium_work.jpeg',
    'our servies image/Our Services/Petro-Pump-Retail-Outlet.jpeg'
]

lines = raw_text.strip().split('\n')
steps = []
current_step = None
images_idx = 0

for line in lines:
    line = line.strip()
    if not line or line == '---':
        continue
    
    # Check for Numbered Title (e.g., "1. Bedroom Furniture" or "**11. Modular...**")
    # Clean up symbols like ** or ??
    cleaned_line = re.sub(r'[\*\?]', '', line).strip()
    
    match = re.match(r'^(\d+)\.\s*(.+)', cleaned_line)
    if match:
        # Save previous step if exists
        if current_step:
            steps.append(current_step)
        
        number = match.group(1)
        title = match.group(2)
        
        current_step = {
            'number': number,
            'title': title,
            'items': [],
            'image': images[images_idx % len(images)]
        }
        images_idx += 1
    elif current_step:
        # It's a list item
        # Remove bullet points if present (e.g. *, ?) 
        content_line = re.sub(r'^[\*\•\-\?]+\s*', '', line).strip()
        if content_line:
            current_step['items'].append(content_line)

# Append last step
if current_step:
    steps.append(current_step)

# Generate PHP Array Output
with open('steps_output.txt', 'w', encoding='utf-8') as f:
    f.write("'steps' => [\n")
    for step in steps:
        f.write("    [\n")
        f.write(f"        'number' => {step['number']},\n")
        f.write(f"        'title' => '{step['title']}',\n")
        
        # Generate content HTML
        content_html = "<ul class=\"custom-list\">\\n"
        for item in step['items']:
            content_html += f"            <li>• {item} <br> <br></li>\\n"
        content_html += "        </ul>"
        
        f.write(f"        'content' => '{content_html}',\n")
        f.write(f"        'image' => '{step['image']}'\n")
        f.write("    ],\n")
    f.write("]\n")
