/* ─────────────────────────────────────────────
   Reading practice — A2 articles & stories
   Exposes/extends window.READING_DATA
   ───────────────────────────────────────────── */

window.READING_DATA = (window.READING_DATA || []).concat([

  /* ─── A2 · ARTICLE 1 ─── */
  {
    id: 'how-bridge-built', level: 'A2', icon: '🌉', minutes: 4,
    kind: { en: 'Article', ar: 'مقال', tr: 'Makale' },
    title: { en: 'How a Bridge Is Built', ar: 'كيف يُبنى الجسر', tr: 'Bir Köprü Nasıl İnşa Edilir' },
    summary: {
      en: 'Bridges look simple, but building one takes years of careful work.',
      ar: 'تبدو الجسور بسيطة، لكن بناءها يستغرق سنوات من العمل الدقيق.',
      tr: 'Köprüler basit görünür ama birini inşa etmek yıllar süren dikkatli bir çalışma gerektirir.',
    },
    figure: {
      caption: { en: 'Engineers study the plans next to the river.', ar: 'المهندسون يدرسون المخططات بجانب النهر.', tr: 'Mühendisler nehrin yanında planları inceliyor.' },
      prompt: 'Kerem (cast figure) and a colleague reviewing large technical drawings at a riverside construction site, a partly built bridge in the background, cranes.',
    },
    body: [
      'Every day, millions of people cross bridges without thinking about them. But a bridge is one of the most difficult things an engineer can build. It must carry heavy [[loads]] — cars, trucks, trains — for a hundred years or more.',
      'The work starts long before the building. Engineers study the river, the ground, and the weather. They make a detailed [[design]] on computers and test it many times. If the design has a mistake, they must find it now — not later.',
      'The first real step is the [[foundation]]. Workers dig deep into the ground, sometimes under the water, and fill the holes with [[concrete]]. The foundation is the most important part of the bridge: everything stands on it.',
      'Next come the towers and the [[steel]] parts. Huge cranes lift them into place, piece by piece. Every piece is [[measured]] before and after. A mistake of a few centimeters can become a big problem later.',
      'Finally, [[inspectors]] test everything: the road, the lights, the safety systems. They drive heavy trucks across the bridge to check that it is strong. Only then does the bridge open — and people start to cross it, without thinking about it at all.',
    ],
    vocab: {
      'loads':      { pos: 'noun', def: 'the weight that a structure must carry', ex: 'The bridge carries heavy loads every day.' },
      'design':     { pos: 'noun', def: 'the detailed plan of how something will be built', ex: 'The design took two years to complete.' },
      'foundation': { pos: 'noun', def: 'the strong base under a building or bridge, usually underground', ex: 'A tall building needs a deep foundation.' },
      'concrete':   { pos: 'noun', def: 'a hard building material made from cement, sand, and water', ex: 'The walls are made of concrete.' },
      'steel':      { pos: 'noun', def: 'a very strong metal used in construction', ex: 'The tower is built from steel.' },
      'measured':   { pos: 'verb', def: 'checked the size or length of something exactly', ex: 'He measured the beam twice.' },
      'inspectors': { pos: 'noun', def: 'people whose job is to check that work is safe and correct', ex: 'The inspectors visit the site every month.' },
    },
    questions: [
      { type:'mcq', q:'What must a bridge carry for a hundred years or more?',
        options:['Only people','Heavy loads like cars, trucks, and trains','Water','Wind'], a:1,
        explainEn:'It must carry heavy loads — cars, trucks, trains.', explainAr:'يجب أن يحمل أحمالاً ثقيلة — سيارات وشاحنات وقطارات.' },
      { type:'mcq', q:'What do engineers do BEFORE building starts?',
        options:['They open the bridge','They study the river and make a design','They drive trucks across','They lift steel with cranes'], a:1,
        explainEn:'They study the river, ground, and weather, and make a detailed design.', explainAr:'يدرسون النهر والأرض والطقس ويضعون تصميماً مفصلاً.' },
      { type:'mcq', q:'Which part is called "the most important part of the bridge"?',
        options:['The towers','The road','The foundation','The lights'], a:2,
        explainEn:'"The foundation is the most important part — everything stands on it."', explainAr:'"الأساس هو أهم جزء — كل شيء يقوم عليه."' },
      { type:'mcq', q:'True or false: A mistake of a few centimeters is not a problem.',
        options:['True','False'], a:1,
        explainEn:'False — a small mistake can become a big problem later.', explainAr:'خطأ — خطأ صغير قد يصبح مشكلة كبيرة لاحقاً.' },
      { type:'fill', q:'The strong base under a building is the ___.', a:'foundation',
        explainEn:'Everything stands on the foundation.', explainAr:'الأساس هو القاعدة القوية تحت المبنى.' },
      { type:'fill', q:'People who check that work is safe and correct are ___.', a:'inspectors',
        explainEn:'Inspectors test everything before the bridge opens.', explainAr:'المفتشون يفحصون كل شيء قبل افتتاح الجسر.' },
    ],
  },

  /* ─── A2 · ARTICLE 2 ─── */
  {
    id: 'working-from-home', level: 'A2', icon: '🏠', minutes: 4,
    kind: { en: 'Article', ar: 'مقال', tr: 'Makale' },
    title: { en: 'Working From Home: Good or Bad?', ar: 'العمل من المنزل: جيد أم سيء؟', tr: 'Evden Çalışmak: İyi mi Kötü mü?' },
    summary: {
      en: 'Many engineers now work from home. Is it better than the office?',
      ar: 'كثير من المهندسين يعملون الآن من المنزل. هل هو أفضل من المكتب؟',
      tr: 'Artık birçok mühendis evden çalışıyor. Ofisten daha mı iyi?',
    },
    figure: {
      caption: { en: 'A home office: laptop, coffee, and a video meeting.', ar: 'مكتب منزلي: حاسوب محمول وقهوة واجتماع بالفيديو.', tr: 'Ev ofisi: dizüstü bilgisayar, kahve ve bir video toplantısı.' },
      prompt: 'A tidy home office desk with a laptop showing a video call with four small faces, a coffee cup, morning light through a window, a cat sleeping on a chair nearby.',
    },
    body: [
      'Ten years ago, almost every engineer worked in an office. Today, many work from home — some every day, some two or three days a week. Is this a good change? People do not agree.',
      'The biggest advantage is time. There is no [[commute]]: no bus, no traffic, no crowded metro. A person who saves ninety minutes every day saves more than seven hours every week. That is almost one full working day!',
      'Working from home can also be quieter. In a busy office, there are many [[distractions]] — people talking, phones ringing, meetings starting. At home, it can be easier to [[focus]] on difficult work, like writing code or checking calculations.',
      'But there are problems too. Some people feel alone. They miss talking to their [[colleagues]] at lunch. And [[communication]] is harder: a quick question that takes ten seconds at the office can become a long chain of messages online.',
      'There is also a danger at home: work never ends. When your office is your kitchen table, it is hard to stop. Many remote workers check emails late at night. Experts say the answer is a clear [[schedule]]: start at the same time, stop at the same time, and close the laptop when the day is done.',
      'So, good or bad? Probably both. Most companies now choose a middle way — some days at home for quiet work, and some days at the office for meetings and team spirit.',
    ],
    vocab: {
      'commute':       { pos: 'noun', def: 'the journey between home and work', ex: 'My commute takes forty minutes by bus.' },
      'distractions':  { pos: 'noun', def: 'things that take your attention away from your work', ex: 'Social media is a big distraction.' },
      'focus':         { pos: 'verb', def: 'to give all your attention to one thing', ex: 'I cannot focus when the TV is on.' },
      'colleagues':    { pos: 'noun', def: 'the people you work with', ex: 'I have lunch with my colleagues every day.' },
      'communication': { pos: 'noun', def: 'sharing information — talking, writing, messaging', ex: 'Good communication is important in a team.' },
      'schedule':      { pos: 'noun', def: 'a plan of times for doing things', ex: 'My schedule is full this week.' },
    },
    questions: [
      { type:'mcq', q:'What is the biggest advantage of working from home, according to the article?',
        options:['Better coffee','No commute — you save time','More meetings','Higher salary'], a:1,
        explainEn:'"The biggest advantage is time. There is no commute."', explainAr:'"أكبر ميزة هي الوقت. لا يوجد تنقل."' },
      { type:'mcq', q:'How much time does a person save if their commute is 90 minutes a day?',
        options:['About 2 hours a week','More than 7 hours a week','One hour a month','No time'], a:1,
        explainEn:'90 minutes a day = more than seven hours a week.', explainAr:'٩٠ دقيقة يومياً = أكثر من سبع ساعات أسبوعياً.' },
      { type:'mcq', q:'What problem does the article mention about working from home?',
        options:['The internet is slow','Some people feel alone','It is too noisy','The office is far'], a:1,
        explainEn:'"Some people feel alone. They miss talking to their colleagues."', explainAr:'"يشعر بعض الناس بالوحدة ويفتقدون زملاءهم."' },
      { type:'mcq', q:'What do experts recommend?',
        options:['Work at night','A clear schedule with a start and stop time','Never work from home','Check emails late'], a:1,
        explainEn:'Experts say the answer is a clear schedule.', explainAr:'يقول الخبراء إن الحل هو جدول واضح.' },
      { type:'fill', q:'The journey between home and work is your ___.', a:'commute',
        explainEn:'No commute = no bus, no traffic.', explainAr:'التنقل هو الرحلة بين المنزل والعمل.' },
      { type:'fill', q:'The people you work with are your ___.', a:'colleagues',
        explainEn:'Colleagues = workmates.', explainAr:'الزملاء هم الأشخاص الذين تعمل معهم.' },
    ],
  },

  /* ─── A2 · STORY 3 ─── */
  {
    id: 'email-saved-project', level: 'A2', icon: '📧', minutes: 4,
    kind: { en: 'Story', ar: 'قصة', tr: 'Hikâye' },
    title: { en: 'The Email That Saved the Project', ar: 'الرسالة التي أنقذت المشروع', tr: 'Projeyi Kurtaran E-posta' },
    summary: {
      en: 'Leila finds a small mistake late on Thursday night. What should she do?',
      ar: 'ليلى تجد خطأً صغيراً في وقت متأخر من ليلة الخميس. ماذا يجب أن تفعل؟',
      tr: 'Leila perşembe gecesi geç saatte küçük bir hata buluyor. Ne yapmalı?',
    },
    figure: {
      caption: { en: 'Leila re-reads the order document at her desk, late at night.', ar: 'ليلى تعيد قراءة مستند الطلب على مكتبها في وقت متأخر من الليل.', tr: 'Leila gece geç saatte masasında sipariş belgesini tekrar okuyor.' },
      prompt: 'Leila (cast figure, 45, glasses) at a desk lit by a lamp at night, reading a printed document carefully with a pen in hand, calm concentration.',
    },
    body: [
      'It was Thursday night, almost 9 p.m. Leila, the project manager, was checking the last documents before a big order. The [[deadline]] was Friday at noon. On Monday, the [[supplier]] would start making 5,000 metal parts for her company.',
      'She read the order one more time. Suddenly, she stopped. The [[drawing]] said the parts must be 45 millimeters. But the order document said 54 millimeters. Someone had switched the numbers — a small typing [[mistake]] with a very big price.',
      'Leila did a quick calculation. 5,000 wrong parts would cost the company about $80,000 — and six weeks of lost time. Her heart beat faster. But she stayed calm. This is why we check, she thought.',
      'She wrote a short, clear email to the supplier: "Please [[pause]] order #4417. There is an error in the size: it must be 45 mm, not 54 mm. I will send the corrected document tomorrow morning. Please [[confirm]] that you received this message."',
      'At 7:58 the next morning, the answer arrived: "Confirmed. Production has not started. We will wait for your new document. Thank you for catching this!"',
      'On Monday, the supplier started making the parts — the right parts. At the team meeting, Leila showed everyone the two numbers: 45 and 54. "Machines are fast," she said, "but a careful human read saved us eighty thousand dollars."',
    ],
    vocab: {
      'deadline': { pos: 'noun', def: 'the last day or time when something must be finished', ex: 'The deadline for the report is Friday.' },
      'supplier': { pos: 'noun', def: 'a company that sells materials or parts to another company', ex: 'Our supplier delivers the steel every month.' },
      'drawing':  { pos: 'noun', def: 'a technical picture that shows exact sizes and shapes', ex: 'Check the drawing before you cut the metal.' },
      'mistake':  { pos: 'noun', def: 'something that is wrong; an error', ex: 'I found a mistake in the calculation.' },
      'pause':    { pos: 'verb', def: 'to stop something for a short time', ex: 'Please pause the video.' },
      'confirm':  { pos: 'verb', def: 'to say officially that something is true or received', ex: 'Can you confirm the meeting time?' },
    },
    questions: [
      { type:'mcq', q:'What mistake did Leila find?',
        options:['The wrong supplier','The numbers 45 and 54 were switched','The deadline was wrong','The parts were too expensive'], a:1,
        explainEn:'The drawing said 45 mm, but the order said 54 mm.', explainAr:'الرسم يقول ٤٥ ملم لكن الطلب يقول ٥٤ ملم.' },
      { type:'mcq', q:'How much money could the mistake cost?',
        options:['$8,000','$45,000','$80,000','$540,000'], a:2,
        explainEn:'About $80,000 — and six weeks of lost time.', explainAr:'حوالي ٨٠ ألف دولار وستة أسابيع من الوقت الضائع.' },
      { type:'mcq', q:'What did Leila ask the supplier to do first?',
        options:['Start production quickly','Pause the order','Send new parts','Call her manager'], a:1,
        explainEn:'"Please pause order #4417."', explainAr:'"يرجى إيقاف الطلب رقم ٤٤١٧ مؤقتاً."' },
      { type:'mcq', q:'True or false: The supplier had already made the parts.',
        options:['True','False'], a:1,
        explainEn:'False — "Production has not started."', explainAr:'خطأ — "الإنتاج لم يبدأ بعد."' },
      { type:'fill', q:'The last time when something must be finished is the ___.', a:'deadline',
        explainEn:'The deadline was Friday at noon.', explainAr:'الموعد النهائي هو آخر وقت لإنهاء العمل.' },
      { type:'fill', q:'To say officially that you received a message is to ___ it.', a:'confirm',
        explainEn:'"Please confirm that you received this message."', explainAr:'confirm تعني يؤكد.' },
    ],
  },

  /* ─── A2 · ARTICLE 4 ─── */
  {
    id: 'robots-warehouse', level: 'A2', icon: '🤖', minutes: 4,
    kind: { en: 'Article', ar: 'مقال', tr: 'Makale' },
    title: { en: 'Robots in the Warehouse', ar: 'الروبوتات في المستودع', tr: 'Depodaki Robotlar' },
    summary: {
      en: 'Small orange robots now move goods in modern warehouses. How do they work?',
      ar: 'روبوتات برتقالية صغيرة تنقل الآن البضائع في المستودعات الحديثة. كيف تعمل؟',
      tr: 'Küçük turuncu robotlar artık modern depolarda ürünleri taşıyor. Nasıl çalışıyorlar?',
    },
    figure: {
      caption: { en: 'A robot carries a shelf of products to a worker\'s station.', ar: 'روبوت يحمل رفاً من المنتجات إلى محطة عامل.', tr: 'Bir robot, ürün dolu rafı bir çalışanın istasyonuna taşıyor.' },
      prompt: 'A flat orange warehouse robot carrying a tall shelf of boxes across a clean warehouse floor, a worker at a picking station in the background.',
    },
    body: [
      'In an old warehouse, workers walked many kilometers every day. They walked to a [[shelf]], picked up a product, and walked back. In a modern warehouse, it is the opposite: the shelves come to the workers — carried by robots.',
      'The robots are small, flat, and strong. One robot can lift a shelf with hundreds of products. It drives under the shelf, lifts it, and carries it to a worker\'s station. The worker takes the right product, and the robot carries the shelf away again.',
      'How do the robots find their way? The floor is covered with small [[codes]], like little QR squares. The robot reads them with a camera and always knows where it is. [[Sensors]] on every side help it stop if a person or another robot is too close.',
      'The robots work together like a team. A central computer gives each robot its next [[task]]: "Robot 27, bring shelf 490 to station 3." When a robot\'s [[battery]] is low, it drives itself to a charging station — no human needed.',
      'Do robots take jobs from people? In these warehouses, humans still do the careful work: checking products, packing boxes, solving problems. The robots do the walking. Together, one station can [[handle]] three times more orders than before — with fewer tired legs.',
    ],
    vocab: {
      'shelf':    { pos: 'noun', def: 'a flat board where products are kept (plural: shelves)', ex: 'The book is on the top shelf.' },
      'codes':    { pos: 'noun', def: 'printed squares or lines that a machine can read', ex: 'Scan the code with your phone.' },
      'sensors':  { pos: 'noun', def: 'small devices that feel or notice things (light, distance, heat)', ex: 'The car has sensors that see other cars.' },
      'task':     { pos: 'noun', def: 'one piece of work to do', ex: 'My first task today is answering emails.' },
      'battery':  { pos: 'noun', def: 'the part that stores electricity for a device', ex: 'My phone battery is at 10%.' },
      'handle':   { pos: 'verb', def: 'to deal with or manage something', ex: 'She can handle difficult customers very well.' },
    },
    questions: [
      { type:'mcq', q:'What is the big change in modern warehouses?',
        options:['Workers walk more','The shelves come to the workers','There are no products','Robots pack all the boxes'], a:1,
        explainEn:'"The shelves come to the workers — carried by robots."', explainAr:'"الرفوف تأتي إلى العمال — تحملها الروبوتات."' },
      { type:'mcq', q:'How do the robots know where they are?',
        options:['They ask workers','They read codes on the floor','They follow lights','They use maps on paper'], a:1,
        explainEn:'They read small codes on the floor with a camera.', explainAr:'تقرأ رموزاً صغيرة على الأرض بكاميرا.' },
      { type:'mcq', q:'What happens when a robot\'s battery is low?',
        options:['A worker changes it','It stops in the middle of the floor','It drives itself to a charging station','It goes home'], a:2,
        explainEn:'It drives itself to a charging station — no human needed.', explainAr:'يذهب بنفسه إلى محطة الشحن — دون تدخل بشري.' },
      { type:'mcq', q:'True or false: In these warehouses, humans no longer have any work.',
        options:['True','False'], a:1,
        explainEn:'False — humans do the careful work: checking, packing, solving problems.', explainAr:'خطأ — البشر يقومون بالعمل الدقيق: الفحص والتعبئة وحل المشكلات.' },
      { type:'fill', q:'Small devices that notice light, distance, or heat are ___.', a:'sensors',
        explainEn:'Sensors help the robot stop near people.', explainAr:'المستشعرات أجهزة صغيرة تلاحظ الأشياء.' },
      { type:'fill', q:'One piece of work to do is a ___.', a:'task',
        explainEn:'The computer gives each robot its next task.', explainAr:'المهمة هي عمل واحد يجب إنجازه.' },
    ],
  },

  /* ─── A2 · STORY 5 ─── */
  {
    id: 'day-field-engineer', level: 'A2', icon: '🧰', minutes: 4,
    kind: { en: 'Story', ar: 'قصة', tr: 'Hikâye' },
    title: { en: 'A Day With a Field Engineer', ar: 'يوم مع مهندس ميداني', tr: 'Bir Saha Mühendisiyle Bir Gün' },
    summary: {
      en: 'Follow Kerem for one working day — from the morning call to the final report.',
      ar: 'رافق كرم في يوم عمل واحد — من مكالمة الصباح إلى التقرير الأخير.',
      tr: 'Kerem\'i bir iş günü boyunca takip edin — sabah aramasından son rapora kadar.',
    },
    figure: {
      caption: { en: 'Kerem measures the pump base at the water station.', ar: 'كرم يقيس قاعدة المضخة في محطة المياه.', tr: 'Kerem su istasyonunda pompa tabanını ölçüyor.' },
      prompt: 'Kerem (cast figure) kneeling next to an industrial water pump with a measuring tool, toolbox open beside him, outdoor water treatment station.',
    },
    body: [
      'At 7:30 a.m., Kerem\'s phone rings. It is the water station outside the city. "Good morning," says the operator. "Pump number two is making a strange noise. Can you come today?" Kerem looks at his [[schedule]]. "I can be there at nine," he says.',
      'Kerem is a field engineer. He does not sit in an office all day — he drives to [[sites]] and fixes problems where they happen. His car is like a small workshop: tools, [[spare parts]], a laptop, and a very old radio.',
      'At the station, he listens to the pump. *Clack-clack-clack.* He knows this sound. He turns off the pump and opens the cover. Inside, one [[bearing]] is worn — an old part that lets the shaft turn smoothly. It is a common problem, and he has a new bearing in the car.',
      'The repair takes two hours. Kerem [[replaces]] the bearing, cleans the parts, and closes the cover. He starts the pump. It runs quietly now — a healthy hum. The operator smiles and brings him a cup of tea.',
      'But the work is not finished. In the car, Kerem opens his laptop and writes a short report: what he found, what he replaced, and one [[recommendation]]: "Check bearings on pumps 1 and 3 next month. They are the same age." Good engineers fix today\'s problem — great engineers [[prevent]] tomorrow\'s.',
    ],
    vocab: {
      'schedule':       { pos: 'noun', def: 'a plan of times for doing things', ex: 'My schedule is full on Monday.' },
      'sites':          { pos: 'noun', def: 'places where work happens — a factory, a station, a construction area', ex: 'He visits three sites every week.' },
      'spare parts':    { pos: 'noun', def: 'extra parts kept ready to replace broken ones', ex: 'We keep spare parts for all our machines.' },
      'bearing':        { pos: 'noun', def: 'a machine part that lets another part turn smoothly', ex: 'The motor needs a new bearing.' },
      'replaces':       { pos: 'verb', def: 'takes out an old thing and puts a new one in its place', ex: 'He replaces the old filter every month.' },
      'recommendation': { pos: 'noun', def: 'advice about what someone should do', ex: 'My recommendation is to test it again.' },
      'prevent':        { pos: 'verb', def: 'to stop a problem before it happens', ex: 'Regular checks prevent big failures.' },
    },
    questions: [
      { type:'mcq', q:'Why does the water station call Kerem?',
        options:['The pump stopped completely','Pump two is making a strange noise','They need a new pump','The operator is sick'], a:1,
        explainEn:'"Pump number two is making a strange noise."', explainAr:'"المضخة رقم اثنين تصدر صوتاً غريباً."' },
      { type:'mcq', q:'What does a field engineer do?',
        options:['Works only in an office','Drives to sites and fixes problems there','Teaches English','Sells pumps'], a:1,
        explainEn:'He drives to sites and fixes problems where they happen.', explainAr:'يقود إلى المواقع ويصلح المشكلات في مكانها.' },
      { type:'mcq', q:'What was the problem with the pump?',
        options:['A worn bearing','A water leak','A broken button','No electricity'], a:0,
        explainEn:'One bearing is worn — an old part that lets the shaft turn smoothly.', explainAr:'محمل متآكل — قطعة قديمة تسمح للعمود بالدوران بسلاسة.' },
      { type:'mcq', q:'What does Kerem recommend at the end?',
        options:['Buy a new pump','Check the bearings on pumps 1 and 3 next month','Turn off all pumps','Call him every day'], a:1,
        explainEn:'"Check bearings on pumps 1 and 3 next month. They are the same age."', explainAr:'"افحصوا محامل المضختين ١ و٣ الشهر القادم."' },
      { type:'fill', q:'Extra parts kept ready to replace broken ones are called spare ___.', a:'parts',
        explainEn:'His car carries tools and spare parts.', explainAr:'قطع الغيار جاهزة لاستبدال القطع التالفة.' },
      { type:'fill', q:'To stop a problem before it happens is to ___ it.', a:'prevent',
        explainEn:'"Great engineers prevent tomorrow\'s problems."', explainAr:'prevent تعني يمنع حدوث المشكلة.' },
    ],
  },

]);
