// data.jsx — content defaults for INFOTECH.
//
// Everything here is a DEFAULT. When the WordPress backend provides managed
// content (window.INFOTECH.content) it is overlaid on top of these defaults,
// field by field, so:
//   • out of the box the site looks complete (with relevant Pexels images);
//   • anything the admin edits in wp-admin overrides the matching default;
//   • a missing/empty WP value silently falls back to the default (no bugs).
(function () {

  /* Pexels helper — all IDs below are verified to resolve. */
  const px = (id, w) => "https://images.pexels.com/photos/" + id + "/pexels-photo-" + id + ".jpeg?auto=compress&cs=tinysrgb&w=" + (w || 1200);

  /* Default images for the fixed layout slots (hero / intro / about / avatars).
     image-slot.js reads this map by element id. Admins can override any of these
     from Settings → INFOTECH Theme → Site Images. */
  window.INFOTECH_IMAGE_DEFAULTS = Object.assign({
    "hero-main": px(4144923),
    "intro-1": px(3184360),
    "about-1": px(5926382, 800),
    "about-2": px(4348404, 800),
    "about-3": px(270348, 800),
    "about-4": px(8636600, 800),
    "hero-av-0": px(1181686, 200),
    "hero-av-1": px(220453, 200),
    "hero-av-2": px(614810, 200),
    "hero-av-3": px(762020, 200),
  }, window.INFOTECH_IMAGE_DEFAULTS || {});

  const CATEGORIES = [
    { key: "all", label: "All Courses", icon: "grid" },
    { key: "design", label: "Design & Creative", icon: "palette" },
    { key: "marketing", label: "Digital Marketing", icon: "megaphone" },
    { key: "cad", label: "CAD & 3D", icon: "cube" },
    { key: "it", label: "IT Fundamentals", icon: "monitor" },
  ];

  const COURSES = [
    {
      slug: "graphic-designing", title: "Graphic Designing", cat: "design", icon: "palette", image: px(326503),
      featured: true, duration: "4 Months", level: "Beginner → Pro", fee: "Rs. 18,000",
      lessons: 64, software: ["Adobe Photoshop", "Adobe Illustrator", "CorelDraw"],
      tagline: "Turn ideas into striking visuals.",
      blurb: "Master the principles of visual communication — layout, color, typography and branding — and build a portfolio of real client-style work.",
      outcomes: ["Brand identity & logo design", "Print & social media layouts", "Typography & color theory", "Portfolio of 8+ projects"],
      modules: [
        { t: "Design Foundations", d: "Visual hierarchy, balance, grids, and the design process." },
        { t: "Photoshop Mastery", d: "Photo editing, compositing, masking and retouching." },
        { t: "Vector with Illustrator", d: "Logos, icons, illustrations and scalable artwork." },
        { t: "Branding & Identity", d: "Build a complete brand kit from brief to delivery." },
        { t: "Print & Digital Layout", d: "Brochures, flyers, social creatives and ad sets." },
        { t: "Capstone Portfolio", d: "Client-style brief delivered end to end." },
      ],
    },
    {
      slug: "digital-marketing", title: "Digital Marketing", cat: "marketing", icon: "megaphone", image: px(1106468),
      featured: true, duration: "3 Months", level: "Beginner → Pro", fee: "Rs. 20,000",
      lessons: 52, software: ["Meta Ads", "Google Ads", "Analytics", "Canva"],
      tagline: "Grow brands that get found and sell.",
      blurb: "Learn to plan and run data-driven campaigns across search and social, from strategy and content to paid ads and analytics.",
      outcomes: ["SEO & content strategy", "Facebook & Instagram ads", "Google Ads & search", "Analytics & reporting"],
      modules: [
        { t: "Marketing Strategy", d: "Funnels, personas, positioning and the customer journey." },
        { t: "Social Media Marketing", d: "Content calendars, organic growth and community." },
        { t: "Meta Ads Manager", d: "Audiences, creatives, budgets and optimization." },
        { t: "Google Ads & SEO", d: "Search campaigns, keywords and on-page SEO." },
        { t: "Analytics & Reporting", d: "Track, measure and report on what matters." },
        { t: "Live Campaign Project", d: "Run a real budgeted campaign end to end." },
      ],
    },
    {
      slug: "autocad", title: "AutoCAD", cat: "cad", icon: "building", image: px(2102416),
      featured: true, duration: "2 Months", level: "Beginner → Intermediate", fee: "Rs. 16,000",
      lessons: 40, software: ["AutoCAD 2D", "AutoCAD 3D"],
      tagline: "Precision drafting for every discipline.",
      blurb: "Produce accurate 2D drawings and 3D models used in architecture, engineering and manufacturing.",
      outcomes: ["2D drafting & dimensioning", "Layers, blocks & templates", "3D modelling basics", "Plotting & sheet layouts"],
      modules: [
        { t: "Interface & Setup", d: "Workspace, units, coordinate systems and navigation." },
        { t: "2D Drafting", d: "Lines, arcs, polylines, trim, offset and arrays." },
        { t: "Annotation & Layers", d: "Dimensions, text, hatch, layers and blocks." },
        { t: "3D Modelling", d: "Extrude, revolve, solids and surface basics." },
        { t: "Layouts & Plotting", d: "Viewports, sheets, scales and printing." },
      ],
    },
    {
      slug: "3d-studio-max", title: "3D Studio Max", cat: "cad", icon: "cube3d", image: px(3585047),
      featured: true, duration: "3 Months", level: "Intermediate", fee: "Rs. 24,000",
      lessons: 56, software: ["3ds Max", "V-Ray"],
      tagline: "Model, light and render like a studio.",
      blurb: "Create photorealistic 3D models, materials and renders for product, interior and architectural visualization.",
      outcomes: ["Polygon & spline modelling", "Materials & texturing", "Lighting & cameras", "V-Ray photoreal rendering"],
      modules: [
        { t: "3ds Max Essentials", d: "Viewports, transforms, modifiers and the stack." },
        { t: "Modelling Techniques", d: "Poly, spline and parametric modelling." },
        { t: "Materials & UVs", d: "Texturing, UV mapping and material libraries." },
        { t: "Lighting & Cameras", d: "Studio lighting, daylight and composition." },
        { t: "V-Ray Rendering", d: "Render settings, GI and post production." },
      ],
    },
    {
      slug: "ms-office", title: "MS Office Fundamentals", cat: "it", icon: "monitor", image: px(590016),
      featured: false, duration: "6 Weeks", level: "Beginner", fee: "Rs. 8,000",
      lessons: 28, software: ["Word", "Excel", "PowerPoint"],
      tagline: "Everyday productivity, done right.",
      blurb: "Build confident, professional skills in Word, Excel and PowerPoint for the workplace and study.",
      outcomes: ["Professional documents", "Excel formulas & charts", "Polished presentations", "Workplace shortcuts"],
      modules: [
        { t: "MS Word", d: "Formatting, styles, tables and mail merge." },
        { t: "MS Excel", d: "Formulas, functions, charts and pivot tables." },
        { t: "MS PowerPoint", d: "Slides, transitions and effective design." },
      ],
    },
    {
      slug: "advance-it", title: "Advance Information Technology", cat: "it", icon: "laptop", image: px(1181675),
      featured: false, duration: "4 Months", level: "Beginner → Intermediate", fee: "Rs. 19,000",
      lessons: 60, software: ["Windows", "Networking", "MS Office", "Internet"],
      tagline: "A complete computer-literacy foundation.",
      blurb: "A broad, job-ready IT program covering operating systems, office tools, networking basics and internet productivity.",
      outcomes: ["OS & file management", "Office suite proficiency", "Networking fundamentals", "Internet & email skills"],
      modules: [
        { t: "Computer Fundamentals", d: "Hardware, software and operating systems." },
        { t: "Office Productivity", d: "Word, Excel, PowerPoint for the workplace." },
        { t: "Networking Basics", d: "LAN, IP, sharing and troubleshooting." },
        { t: "Internet & Email", d: "Research, cloud tools and professional email." },
      ],
    },
    {
      slug: "adobe-illustrator", title: "Adobe Illustrator", cat: "design", icon: "pen", image: px(196645),
      featured: false, duration: "6 Weeks", level: "Beginner → Intermediate", fee: "Rs. 12,000",
      lessons: 30, software: ["Adobe Illustrator"],
      tagline: "Crisp vectors at any scale.",
      blurb: "Design logos, icons and illustrations with the industry-standard vector tool.",
      outcomes: ["Pen tool mastery", "Logo & icon design", "Vector illustration", "Print-ready export"],
      modules: [
        { t: "Vector Basics", d: "Shapes, paths, the pen tool and Bézier curves." },
        { t: "Logo Design", d: "Grids, golden ratio and brandmarks." },
        { t: "Illustration", d: "Color, gradients and complex artwork." },
        { t: "Export & Delivery", d: "Formats, color modes and handoff." },
      ],
    },
    {
      slug: "adobe-photoshop", title: "Adobe Photoshop", cat: "design", icon: "image", image: px(1714208),
      featured: false, duration: "6 Weeks", level: "Beginner → Intermediate", fee: "Rs. 12,000",
      lessons: 32, software: ["Adobe Photoshop"],
      tagline: "Edit, retouch and composite like a pro.",
      blurb: "Master photo editing, retouching and digital compositing for print and screen.",
      outcomes: ["Photo retouching", "Masking & compositing", "Color grading", "Social & web graphics"],
      modules: [
        { t: "Photoshop Core", d: "Layers, selections, masks and adjustments." },
        { t: "Retouching", d: "Skin, dodge & burn, frequency separation." },
        { t: "Compositing", d: "Blending, lighting and realistic montages." },
        { t: "Output", d: "Export for web, social and print." },
      ],
    },
    {
      slug: "architectural-visualization", title: "Architectural Visualization", cat: "cad", icon: "building", image: px(8636600),
      featured: true, duration: "4 Months", level: "Intermediate → Pro", fee: "Rs. 28,000",
      lessons: 64, software: ["3ds Max", "V-Ray", "Lumion", "Photoshop"],
      tagline: "Bring buildings to life before they exist.",
      blurb: "Produce stunning photoreal interior and exterior renders and walkthroughs that win clients.",
      outcomes: ["Exterior & interior renders", "Realistic materials & lighting", "Walkthrough animation", "Post-production polish"],
      modules: [
        { t: "Scene Setup", d: "Importing plans, scale and modelling cleanup." },
        { t: "Materials & Lighting", d: "PBR materials, daylight and interior lighting." },
        { t: "Rendering", d: "V-Ray and Lumion render workflows." },
        { t: "Animation", d: "Cameras, paths and walkthrough animation." },
        { t: "Post Production", d: "Compositing and color grading in Photoshop." },
      ],
    },
    {
      slug: "blender", title: "Blender", cat: "cad", icon: "cube", image: px(3194521),
      featured: false, duration: "3 Months", level: "Beginner → Intermediate", fee: "Rs. 18,000",
      lessons: 50, software: ["Blender", "Eevee", "Cycles"],
      tagline: "Free, powerful, end-to-end 3D.",
      blurb: "Model, sculpt, animate and render in the complete open-source 3D suite.",
      outcomes: ["3D modelling & sculpting", "Materials & shading", "Animation basics", "Cycles & Eevee rendering"],
      modules: [
        { t: "Blender Basics", d: "Navigation, modifiers and the interface." },
        { t: "Modelling & Sculpting", d: "Hard surface and organic modelling." },
        { t: "Shading & Texturing", d: "Nodes, materials and UV unwrapping." },
        { t: "Animation & Render", d: "Keyframes, cameras and final renders." },
      ],
    },
    {
      slug: "coreldraw", title: "CorelDraw", cat: "design", icon: "pen", image: px(256395),
      featured: false, duration: "5 Weeks", level: "Beginner", fee: "Rs. 10,000",
      lessons: 26, software: ["CorelDraw"],
      tagline: "Fast vector design for print shops.",
      blurb: "The go-to tool for flex, banners, cards and print production across Pakistan's design market.",
      outcomes: ["Vector design", "Print layouts", "Banners & flex", "Business cards & cards"],
      modules: [
        { t: "CorelDraw Basics", d: "Tools, objects and the workspace." },
        { t: "Layout & Text", d: "Pages, guides, paragraph and artistic text." },
        { t: "Print Production", d: "Color, bleed and export for printing." },
      ],
    },
    {
      slug: "lumion", title: "Lumion", cat: "cad", icon: "sun", image: px(374016),
      featured: false, duration: "5 Weeks", level: "Intermediate", fee: "Rs. 16,000",
      lessons: 28, software: ["Lumion"],
      tagline: "Real-time renders in minutes.",
      blurb: "Create beautiful architectural renders and videos in real time with Lumion's instant workflow.",
      outcomes: ["Real-time rendering", "Skies, weather & seasons", "Materials & nature", "Render videos & stills"],
      modules: [
        { t: "Lumion Essentials", d: "Importing models and navigating scenes." },
        { t: "Materials & Nature", d: "Surfaces, vegetation and population." },
        { t: "Lighting & Weather", d: "Skies, sun, fog and atmosphere." },
        { t: "Output", d: "Photos, clips and full walkthrough videos." },
      ],
    },
  ];

  const TESTIMONIALS = [
    { name: "Ayesha Khan", course: "Graphic Designing", rating: 5, photo: "test-ayesha", image: px(1181686, 300),
      quote: "INFOTECH completely changed my career path. The instructors are patient and the projects felt like real client work. I freelance full-time now." },
    { name: "Hamza Saleem", course: "Digital Marketing", rating: 5, photo: "test-hamza", image: px(220453, 300),
      quote: "I joined with zero marketing knowledge. Within three months I was running live ad campaigns for a local business. Best decision I made." },
    { name: "Usman Tariq", course: "AutoCAD", rating: 5, photo: "test-usman", image: px(614810, 300),
      quote: "The AutoCAD course was hands-on from day one. I landed a drafting job at an engineering firm right after finishing." },
    { name: "Maryam Nawaz", course: "Architectural Visualization", rating: 5, photo: "test-maryam", image: px(762020, 300),
      quote: "The arch-viz program is genuinely studio-level. My renders now win clients before a single brick is laid." },
    { name: "Bilal Ahmed", course: "3D Studio Max", rating: 4, photo: "test-bilal", image: px(91227, 300),
      quote: "Great balance of theory and practice. The V-Ray lighting modules alone were worth the fee." },
    { name: "Fatima Zahra", course: "Adobe Illustrator", rating: 5, photo: "test-fatima", image: px(1239291, 300),
      quote: "Friendly environment, modern labs and teachers who actually care. I built a logo portfolio I'm proud of." },
  ];

  const GALLERY = [
    { id: "g1", label: "Modern Computer Lab", cat: "Campus", span: "tall", image: px(5926382) },
    { id: "g2", label: "Design Studio Class", cat: "Classes", span: "wide", image: px(4348404) },
    { id: "g3", label: "Certificate Distribution", cat: "Events", span: "", image: px(8636600) },
    { id: "g4", label: "Student Project Showcase", cat: "Events", span: "", image: px(3184465) },
    { id: "g5", label: "Hands-on Workshop", cat: "Classes", span: "", image: px(4144923) },
    { id: "g6", label: "Graduation Ceremony 2024", cat: "Events", span: "wide", image: px(7681091) },
    { id: "g7", label: "3D Render Lab", cat: "Campus", span: "", image: px(270348) },
    { id: "g8", label: "Group Study Session", cat: "Classes", span: "tall", image: px(4145197) },
    { id: "g9", label: "Reception & Front Desk", cat: "Campus", span: "", image: px(1438072) },
  ];

  const STATS = [
    { value: "12+", label: "Professional Courses", icon: "book" },
    { value: "3,500+", label: "Students Trained", icon: "users" },
    { value: "95%", label: "Completion Rate", icon: "trophy" },
    { value: "8", label: "Years of Excellence", icon: "award" },
  ];

  const WHY = [
    { icon: "users", t: "Expert Instructors", d: "Learn from working professionals with years of real industry experience." },
    { icon: "laptop", t: "Hands-on Labs", d: "Modern computer labs and project-based learning from day one." },
    { icon: "certificate", t: "Verified Certificates", d: "Recognized certificates you — and employers — can verify online instantly." },
    { icon: "clock2", t: "Flexible Timings", d: "Morning, afternoon and evening batches to fit your schedule." },
    { icon: "briefcase", t: "Career Support", d: "Portfolio guidance, freelancing help and job referrals on completion." },
    { icon: "heart", t: "Affordable Fees", d: "Quality education with easy installment plans for every student." },
  ];

  const NAV = [
    { key: "home", label: "Home" },
    { key: "about", label: "About" },
    { key: "courses", label: "Courses" },
    { key: "gallery", label: "Gallery" },
    { key: "testimonials", label: "Testimonials" },
    { key: "verify", label: "Verify Certificate" },
    { key: "contact", label: "Contact" },
  ];

  const INSTITUTE = {
    name: "INFOTECH",
    full: "INFOTECH Institute of Computer Education",
    tagline: "Building Digital Skills for a Smarter Tomorrow",
    address: "1st Floor, Sadaat Plaza, GT Road, near Bank Al Habib, Nizampura, Lalamusa, 50200, Pakistan",
    phone: "+92 334 8223938",
    phoneHref: "+923348223938",
    email: "info@infotechlalamusa.edu.pk",
    hours: "Mon – Sat · 9:00 AM – 8:00 PM",
    facebook: "#", instagram: "#", linkedin: "#", youtube: "#",
  };

  /* ---- Overlay WordPress-managed content on top of the defaults ---- */
  const WP = (window.INFOTECH && window.INFOTECH.content) || {};
  const useArr = (key, def) => (Array.isArray(WP[key]) && WP[key].length ? WP[key] : def);
  const useObj = (key, def) => (WP[key] && typeof WP[key] === "object" && !Array.isArray(WP[key]) ? Object.assign({}, def, WP[key]) : def);

  window.DATA = {
    CATEGORIES,
    COURSES: useArr("COURSES", COURSES),
    TESTIMONIALS: useArr("TESTIMONIALS", TESTIMONIALS),
    GALLERY: useArr("GALLERY", GALLERY),
    STATS: useArr("STATS", STATS),
    WHY: useArr("WHY", WHY),
    NAV,
    INSTITUTE: useObj("INSTITUTE", INSTITUTE),
  };
})();
