<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>DailyNews</title>
  <script src="https://cdn.tailwindcss.com"></script>
</head>

<body class="bg-white">

<!-- ================= HEADER ================= -->

@include('header')

<main>


  <!--1st section  -->
<section class="py-10">
  <div class="max-w-7xl mx-auto px-4">

    <!-- Main Layout -->
    <div class="grid grid-cols-1 lg:grid-cols-[2.3fr_1fr] gap-10">

      <!-- ================= LEFT MAIN CONTENT ================= -->
      <div class="space-y-12">

        <!-- ===== Story Block 1 ===== -->
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8 items-start">

          <!-- Text -->
          <div class="md:col-span-1">
            <h3 class="text-xl font-bold leading-tight">
              <a title="{{ $latest[0]->title }}" href="{{ url(Str::lower(e($latest[0]->category_name)) . '/' . $latest[0]->encode_title) }}" >{{ $latest[0]->title }}</a>
            </h3>

            <p class="text-xs text-gray-500 mt-2">6 MIN READ</p>

            <div class="mt-4 border-t pt-4">
              <p class="text-sm font-bold mb-2">MORE COVERAGE</p>

              <ul class="space-y-3 text-xs">
                <li>■ <a title="{{ $latest[1]->title }}" href="{{ url(Str::lower(e($latest[1]->category_name)) . '/' . $latest[1]->encode_title) }}" >{{ $latest[1]->title }}</a></li>
                <li>■ <a title="{{ $latest[2]->title }}" href="{{ url(Str::lower(e($latest[2]->category_name)) . '/' . $latest[2]->encode_title) }}" >{{ $latest[2]->title }}</a></li>
                <li>■ <a title="{{ $latest[3]->title }}" href="{{ url(Str::lower(e($latest[3]->category_name)) . '/' . $latest[3]->encode_title) }}" >{{ $latest[3]->title }}</a></li>
              </ul>
            </div>
          </div>

          <!-- Image -->
          <div class="md:col-span-2">
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[0]->photo) }}" alt="{{ $latest[0]->img_alt }}" title="{{ $latest[0]->title }}" class="w-full h-[360px] object-cover rounded">
          </div>

        </div>


        <!-- ===== Story Block 2 ===== -->
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8 items-start">

          <!-- Text -->
          <div class="md:col-span-1">
            <h3 class="text-xl font-bold leading-tight">
              <a title="{{ $latest[4]->title }}" href="{{ url(Str::lower(e($latest[4]->category_name)) . '/' . $latest[4]->encode_title) }}" >{{ $latest[4]->title }}</a>
            </h3>

            <p class="text-xs text-gray-500 mt-2">6 MIN READ · 91</p>

            <div class="mt-4 border-t pt-4">
              <p class="text-sm font-bold mb-2">MORE COVERAGE</p>

              <ul class="space-y-3 text-xs">
                <li>■ <a title="{{ $latest[5]->title }}" href="{{ url(Str::lower(e($latest[5]->category_name)) . '/' . $latest[5]->encode_title) }}" >{{ $latest[5]->title }}</a></li>
                <li>■ <a title="{{ $latest[6]->title }}" href="{{ url(Str::lower(e($latest[6]->category_name)) . '/' . $latest[6]->encode_title) }}" >{{ $latest[6]->title }}</a></li>
                <li>■ <a title="{{ $latest[7]->title }}" href="{{ url(Str::lower(e($latest[7]->category_name)) . '/' . $latest[7]->encode_title) }}" >{{ $latest[7]->title }}</a></li>
              </ul>
            </div>
          </div>

          <!-- Image -->
          <div class="md:col-span-2">
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[4]->photo) }}" alt="{{ $latest[4]->img_alt }}" title="{{ $latest[4]->title }}" class="w-full h-[360px] object-cover rounded">
          </div>

        </div>

      </div>

      <!-- ================= RIGHT SIDEBAR ================= -->
      <aside>
        <!-- Top Story -->
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[5]->photo) }}" alt="{{ $latest[5]->img_alt }}" title="{{ $latest[5]->title }}" class="w-full h-40 object-cover rounded">

        <h3 class="font-bold text-xl mt-3 leading-tight">
          <a title="{{ $latest[5]->title }}" href="{{ url(Str::lower(e($latest[5]->category_name)) . '/' . $latest[5]->encode_title) }}" >{{ $latest[5]->title }}</a>
        </h3>
        <!-- List -->
        <div class="mt-6 space-y-4 border-t pt-4">

          <!-- Item -->
          <div class="flex gap-3 items-start">
            <div class="flex-1 text-sm font-semibold leading-tight">
              <a title="{{ $latest[6]->title }}" href="{{ url(Str::lower(e($latest[6]->category_name)) . '/' . $latest[6]->encode_title) }}" >{{ $latest[6]->title }}</a>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[6]->photo) }}" alt="{{ $latest[6]->img_alt }}" title="{{ $latest[6]->title }}" class="w-16 h-12 object-cover rounded">
          </div>

          <div class="flex gap-3 items-start">
            <div class="flex-1 text-sm font-semibold leading-tight">
              <a title="{{ $latest[7]->title }}" href="{{ url(Str::lower(e($latest[7]->category_name)) . '/' . $latest[7]->encode_title) }}" >{{ $latest[7]->title }}</a>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[7]->photo) }}" alt="{{ $latest[7]->img_alt }}" title="{{ $latest[7]->title }}" class="w-16 h-12 object-cover rounded">
          </div>

          <div class="flex gap-3 items-start">
            <div class="flex-1 text-sm font-semibold leading-tight">
              <a title="{{ $latest[8]->title }}" href="{{ url(Str::lower(e($latest[8]->category_name)) . '/' . $latest[8]->encode_title) }}" >{{ $latest[8]->title }}</a>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[8]->photo) }}" alt="{{ $latest[8]->img_alt }}" title="{{ $latest[8]->title }}" class="w-16 h-12 object-cover rounded">
          </div>

          <div class="flex gap-3 items-start">
            <div class="flex-1 text-sm font-semibold leading-tight">
              <a title="{{ $latest[9]->title }}" href="{{ url(Str::lower(e($latest[9]->category_name)) . '/' . $latest[9]->encode_title) }}" >{{ $latest[9]->title }}</a>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[9]->photo) }}" alt="{{ $latest[9]->img_alt }}" title="{{ $latest[9]->title }}" class="w-16 h-12 object-cover rounded">
          </div>

          <div class="flex gap-3 items-start">
            <div class="flex-1 text-sm font-semibold leading-tight">
              <a title="{{ $latest[10]->title }}" href="{{ url(Str::lower(e($latest[10]->category_name)) . '/' . $latest[10]->encode_title) }}" >{{ $latest[10]->title }}</a>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[10]->photo) }}" alt="{{ $latest[10]->img_alt }}" title="{{ $latest[10]->title }}" class="w-16 h-12 object-cover rounded">
          </div>

          <div class="flex gap-3 items-start">
            <div class="flex-1 text-sm font-semibold leading-tight">
              <a title="{{ $latest[11]->title }}" href="{{ url(Str::lower(e($latest[11]->category_name)) . '/' . $latest[11]->encode_title) }}" >{{ $latest[11]->title }}</a>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[11]->photo) }}" alt="{{ $latest[11]->img_alt }}" title="{{ $latest[11]->title }}" class="w-16 h-12 object-cover rounded">
          </div>

        </div>

      </aside>

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



<!-- 2nd section -->
<section class="max-w-7xl mx-auto px-4 py-8">

  <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">

    <!-- Card 1 -->
    <article class="group">
      <div class="overflow-hidden rounded">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[12]->photo) }}" alt="{{ $latest[12]->img_alt }}" title="{{ $latest[12]->title }}" class="w-full h-48 object-cover group-hover:scale-105 transition duration-300">
      </div>

      <h3 class="font-bold text-lg mt-3 group-hover:underline">
       <a title="{{ $latest[12]->title }}" href="{{ url(Str::lower(e($latest[12]->category_name)) . '/' . $latest[12]->encode_title) }}" >{{ $latest[12]->title }}</a>
      </h3>

      <p class="text-sm text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[12]->news_date)->format('F j, Y') }}</p>
    </article>

    <!-- Card 2 -->
    <article class="group">
      <div class="overflow-hidden rounded">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[13]->photo) }}" alt="{{ $latest[13]->img_alt }}" title="{{ $latest[13]->title }}" class="w-full h-48 object-cover group-hover:scale-105 transition duration-300">
      </div>

      <h3 class="font-bold text-lg mt-3 group-hover:underline">
       <a title="{{ $latest[13]->title }}" href="{{ url(Str::lower(e($latest[13]->category_name)) . '/' . $latest[13]->encode_title) }}" >{{ $latest[13]->title }}</a>
      </h3>

      <p class="text-sm text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[13]->news_date)->format('F j, Y') }}</p>
    </article>

    <!-- Card 3 -->
    <article class="group">
      <div class="overflow-hidden rounded">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[14]->photo) }}" alt="{{ $latest[14]->img_alt }}" title="{{ $latest[14]->title }}" class="w-full h-48 object-cover group-hover:scale-105 transition duration-300">
      </div>

      <h3 class="font-bold text-lg mt-3 group-hover:underline">
       <a title="{{ $latest[14]->title }}" href="{{ url(Str::lower(e($latest[14]->category_name)) . '/' . $latest[14]->encode_title) }}" >{{ $latest[14]->title }}</a>
      </h3>

      <p class="text-sm text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[14]->news_date)->format('F j, Y') }}</p>
    </article>

    <!-- Card 4 -->
    <article class="group">
      <div class="overflow-hidden rounded">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[15]->photo) }}" alt="{{ $latest[15]->img_alt }}" title="{{ $latest[15]->title }}" class="w-full h-48 object-cover group-hover:scale-105 transition duration-300">
      </div>

      <h3 class="font-bold text-lg mt-3 group-hover:underline">
       <a title="{{ $latest[15]->title }}" href="{{ url(Str::lower(e($latest[15]->category_name)) . '/' . $latest[15]->encode_title) }}" >{{ $latest[15]->title }}</a>
      </h3>

      <p class="text-sm text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[15]->news_date)->format('F j, Y') }}</p>
    </article>

  </div>

</section>



<!-- 3rd section -->
<section class="py-10">
  <div class="max-w-7xl mx-auto px-4">

    <!-- Main Layout: 2 Columns -->
    <div class="grid grid-cols-1 lg:grid-cols-3 gap-10">

      <!-- ================= LEFT MAIN COLUMN ================= -->
      <div class="lg:col-span-2">

        <!-- Header -->
        <div class="mb-6">
          <div class="relative border-t border-gray-300">
            <span class="absolute -top-[2px] left-0 w-16 h-2 bg-red-600"></span>
          </div>
          <h2 class="text-2xl font-extrabold mt-4">WEEKEND READS</h2>
        </div>

        <!-- Inner Layout: Text (1/3) + Image (2/3) -->
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8 items-start">

          <!-- Text Column -->
          <div class="md:col-span-1">
            <h3 class="text-xl font-bold leading-tight">
              <a title="{{ $latest[16]->title }}" href="{{ url(Str::lower(e($latest[16]->category_name)) . '/' . $latest[16]->encode_title) }}" >{{ $latest[16]->title }}</a>
            </h3>

            <p class="text-sm text-gray-600 mt-2">
              {{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[16]->news_content))), 101) }}
            </p>

            <p class="text-xs text-gray-500 mt-2">{{ \Carbon\Carbon::parse($latest[16]->news_date)->format('F j, Y') }}</p>

            <!-- Read More -->
            <div class="mt-6">
              <p class="text-sm font-bold mb-3 border-t pt-2">READ MORE</p>

              <div class="space-y-1 text-sm">

                <div>
                  <p class="font-semibold leading-tight"><span class="text-gray-500 text-2xl">›</span>  
                   <a title="{{ $latest[17]->title }}" href="{{ url(Str::lower(e($latest[17]->category_name)) . '/' . $latest[17]->encode_title) }}" >{{ $latest[17]->title }}</a>
                  </p>
                  <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[17]->news_date)->format('F j, Y') }}</p>
                </div>

                <div>
                  <p class="font-semibold leading-tight"><span class="text-gray-500 text-2xl">›</span>  
                   <a title="{{ $latest[18]->title }}" href="{{ url(Str::lower(e($latest[18]->category_name)) . '/' . $latest[18]->encode_title) }}" >{{ $latest[18]->title }}</a>
                  </p>
                  <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[18]->news_date)->format('F j, Y') }}</p>
                </div>

                <div>
                  <p class="font-semibold leading-tight"><span class="text-gray-500 text-2xl">›</span>  
                   <a title="{{ $latest[19]->title }}" href="{{ url(Str::lower(e($latest[19]->category_name)) . '/' . $latest[19]->encode_title) }}" >{{ $latest[19]->title }}</a>
                  </p>
                  <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[19]->news_date)->format('F j, Y') }}</p>
                </div>

              </div>
            </div>
          </div>

          <!-- Big Image Column -->
          <div class="md:col-span-2">
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[19]->photo) }}" alt="{{ $latest[19]->img_alt }}" title="{{ $latest[19]->title }}" class="w-full h-[460px] object-cover rounded">
          </div>

        </div>

      </div>


      <!-- ================= RIGHT COLUMN ================= -->
      <div class="lg:col-span-1">

        <!-- Header -->
        <div class="mb-6">
          <div class="relative border-t border-gray-300">
            <span class="absolute -top-[2px] left-0 w-16 h-2 bg-red-600"></span>
          </div>
          <h2 class="text-2xl font-extrabold mt-4">WEEKEND PLAYLIST</h2>
        </div>

        <!-- Top Story Image (smaller) -->
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[20]->photo) }}" alt="{{ $latest[20]->img_alt }}" title="{{ $latest[20]->title }}" class="w-full h-56 object-cover rounded">

        <h3 class="font-bold mt-3 leading-tight text-xl">
          <a title="{{ $latest[20]->title }}" href="{{ url(Str::lower(e($latest[20]->category_name)) . '/' . $latest[20]->encode_title) }}" >{{ $latest[20]->title }}</a>
        </h3>

        <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[20]->news_date)->format('F j, Y') }}</p>

        <!-- List -->
        <div class="mt-2 space-y-4 text-sm border-t pt-4">

          <div>
            <p class="font-semibold leading-tight">
              <a title="{{ $latest[21]->title }}" href="{{ url(Str::lower(e($latest[21]->category_name)) . '/' . $latest[21]->encode_title) }}" >{{ $latest[21]->title }}</a>
            </p>
            <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[21]->news_date)->format('F j, Y') }}</p>
          </div>

          <div>
            <p class="font-semibold leading-tight">
              <a title="{{ $latest[22]->title }}" href="{{ url(Str::lower(e($latest[22]->category_name)) . '/' . $latest[22]->encode_title) }}" >{{ $latest[22]->title }}</a>
            </p>
          </div>

        </div>

      </div>

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



<!-- 4th section -->
<!-- ================= MOST WATCHED VIDEOS ================= -->
<section class="py-10">
  <div class="max-w-7xl mx-auto px-4">

    <!-- Custom Ratio -->
    <div class="grid grid-cols-1 lg:grid-cols-[2.5fr_1fr] gap-10">

      <!-- LEFT (Bigger) -->
      <div>

        <!-- Header -->
        <div class="mb-6">
          <div class="relative border-t border-gray-300">
            <span class="absolute -top-[2px] left-0 w-16 h-1 bg-red-600"></span>
          </div>
          <div class="flex items-center mt-4 space-x-2">
            <h2 class="text-2xl font-extrabold">MOST WATCHED VIDEOS</h2>
            <span class="text-gray-500 text-2xl">›</span>
          </div>
        </div>

        <!-- Text + Video -->
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8">

          <!-- Text -->
          <div class="md:col-span-1">
            <h3 class="text-xl font-bold leading-tight">
             <a title="{{ $latest[23]->title }}" href="{{ url(Str::lower(e($latest[23]->category_name)) . '/' . $latest[23]->encode_title) }}" >{{ $latest[23]->title }}</a>
            </h3>

            <div class="mt-4 border-t pt-4">
              <p class="text-sm font-bold mb-3">WATCH MORE</p>

              <ul class="space-y-3 text-xs">
                <li>■ <a title="{{ $latest[24]->title }}" href="{{ url(Str::lower(e($latest[24]->category_name)) . '/' . $latest[24]->encode_title) }}" >{{ $latest[24]->title }}</a></li>
                <li>■ <a title="{{ $latest[25]->title }}" href="{{ url(Str::lower(e($latest[25]->category_name)) . '/' . $latest[25]->encode_title) }}" >{{ $latest[25]->title }}</a></li>
                <li>■ <a title="{{ $latest[26]->title }}" href="{{ url(Str::lower(e($latest[26]->category_name)) . '/' . $latest[26]->encode_title) }}" >{{ $latest[26]->title }}</a></li>
                <li>■ <a title="{{ $latest[27]->title }}" href="{{ url(Str::lower(e($latest[27]->category_name)) . '/' . $latest[27]->encode_title) }}" >{{ $latest[27]->title }}</a></li>
              </ul>
            </div>
          </div>

          <!-- Video (Big) -->
          <div class="md:col-span-2 relative">
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[27]->photo) }}" alt="{{ $latest[27]->img_alt }}" title="{{ $latest[27]->title }}" class="w-full h-[360px] object-cover rounded">

            <!-- Play Button -->
          
          </div>

        </div>

      </div>


      <!-- RIGHT (Smaller) -->
      <div>
        <p class="text-xs text-gray-500 uppercase mb-2 text-center">Advertisement</p>
        <div class="bg-white p-2 rounded shadow-sm">
          <img src="images/img1.webp" class="w-full h-[320px] object-cover rounded">
        </div>
      </div>

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



<!-- 5th section -->
<section class="bg-black py-12">
  <div class="max-w-7xl mx-auto px-4">

    <!-- Header -->
    <div class="flex items-center justify-between mb-6">

      <div>
        <div class="relative border-t border-gray-700 w-full">
          <span class="absolute -top-[2px] left-0 w-16 h-1 bg-red-600"></span>
        </div>
        <h2 class="text-2xl font-extrabold text-white mt-4">
          <span class=" text-white px-2 py-1">SHORT STORIES</span>
        </h2>
      </div>

<div class="hidden md:flex gap-3">
  <button id="storiesPrev" class="w-9 h-9 rounded-full bg-gray-700 text-white flex items-center justify-center hover:bg-gray-600">
    ‹
  </button>
  <button id="storiesNext" class="w-9 h-9 rounded-full bg-red-600 text-white flex items-center justify-center hover:bg-red-700">
    ›
  </button>
</div>

    </div>
 
      <div id="storiesSlider" class="flex gap-6 overflow-x-auto pb-2 scrollbar-hide scroll-smooth">

      <!-- Card -->
      <div class="relative min-w-[220px] h-[380px] rounded overflow-hidden group">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[28]->photo) }}" alt="{{ $latest[28]->img_alt }}" title="{{ $latest[28]->title }}" class="w-full h-full object-cover group-hover:scale-105 transition duration-300">

        <!-- Overlay -->
        <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"></div>

        <!-- Content -->
        <div class="absolute bottom-4 left-4 right-4 text-white">
          <p class="font-semibold text-sm leading-tight">
           <a title="{{ $latest[28]->title }}" href="{{ url(Str::lower(e($latest[28]->category_name)) . '/' . $latest[28]->encode_title) }}" >{{ $latest[28]->title }}</a>
          </p>
        </div>
      </div>


      <!-- Card 2 -->
      <div class="relative min-w-[220px] h-[380px] rounded overflow-hidden group">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[29]->photo) }}" alt="{{ $latest[29]->img_alt }}" title="{{ $latest[29]->title }}" class="w-full h-full object-cover group-hover:scale-105 transition duration-300">

        <!-- Overlay -->
        <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"></div>

        <!-- Content -->
        <div class="absolute bottom-4 left-4 right-4 text-white">
          <p class="font-semibold text-sm leading-tight">
           <a title="{{ $latest[29]->title }}" href="{{ url(Str::lower(e($latest[29]->category_name)) . '/' . $latest[29]->encode_title) }}" >{{ $latest[29]->title }}</a>
          </p>
        </div>
      </div>


      <!-- Card 3 -->
      <div class="relative min-w-[220px] h-[380px] rounded overflow-hidden group">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[30]->photo) }}" alt="{{ $latest[30]->img_alt }}" title="{{ $latest[30]->title }}" class="w-full h-full object-cover group-hover:scale-105 transition duration-300">

        <!-- Overlay -->
        <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"></div>

        <!-- Content -->
        <div class="absolute bottom-4 left-4 right-4 text-white">
          <p class="font-semibold text-sm leading-tight">
           <a title="{{ $latest[30]->title }}" href="{{ url(Str::lower(e($latest[30]->category_name)) . '/' . $latest[30]->encode_title) }}" >{{ $latest[30]->title }}</a>
          </p>
        </div>
      </div>


      <!-- Card 4 -->
      <div class="relative min-w-[220px] h-[380px] rounded overflow-hidden group">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[31]->photo) }}" alt="{{ $latest[31]->img_alt }}" title="{{ $latest[31]->title }}" class="w-full h-full object-cover group-hover:scale-105 transition duration-300">

        <!-- Overlay -->
        <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"></div>

        <!-- Content -->
        <div class="absolute bottom-4 left-4 right-4 text-white">
          <p class="font-semibold text-sm leading-tight">
           <a title="{{ $latest[31]->title }}" href="{{ url(Str::lower(e($latest[31]->category_name)) . '/' . $latest[31]->encode_title) }}" >{{ $latest[31]->title }}</a>
          </p>
        </div>
      </div>


      <!-- Card 5 -->
      <div class="relative min-w-[220px] h-[380px] rounded overflow-hidden group">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[32]->photo) }}" alt="{{ $latest[32]->img_alt }}" title="{{ $latest[32]->title }}" class="w-full h-full object-cover group-hover:scale-105 transition duration-300">

        <!-- Overlay -->
        <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"></div>

        <!-- Content -->
        <div class="absolute bottom-4 left-4 right-4 text-white">
          <p class="font-semibold text-sm leading-tight">
           <a title="{{ $latest[32]->title }}" href="{{ url(Str::lower(e($latest[32]->category_name)) . '/' . $latest[32]->encode_title) }}" >{{ $latest[32]->title }}</a>
          </p>
        </div>
      </div>

      <div class="relative min-w-[220px] h-[380px] rounded overflow-hidden group">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[33]->photo) }}" alt="{{ $latest[33]->img_alt }}" title="{{ $latest[33]->title }}" class="w-full h-full object-cover group-hover:scale-105 transition duration-300">

        <!-- Overlay -->
        <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"></div>

        <!-- Content -->
        <div class="absolute bottom-4 left-4 right-4 text-white">
          <p class="font-semibold text-sm leading-tight">
           <a title="{{ $latest[33]->title }}" href="{{ url(Str::lower(e($latest[33]->category_name)) . '/' . $latest[33]->encode_title) }}" >{{ $latest[33]->title }}</a>
          </p>
        </div>
      </div>

      <div class="relative min-w-[220px] h-[380px] rounded overflow-hidden group">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[34]->photo) }}" alt="{{ $latest[34]->img_alt }}" title="{{ $latest[34]->title }}" class="w-full h-full object-cover group-hover:scale-105 transition duration-300">

        <!-- Overlay -->
        <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"></div>

        <!-- Content -->
        <div class="absolute bottom-4 left-4 right-4 text-white">
          <p class="font-semibold text-sm leading-tight">
           <a title="{{ $latest[34]->title }}" href="{{ url(Str::lower(e($latest[34]->category_name)) . '/' . $latest[34]->encode_title) }}" >{{ $latest[34]->title }}</a>
          </p>
        </div>
      </div>

      <div class="relative min-w-[220px] h-[380px] rounded overflow-hidden group">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[35]->photo) }}" alt="{{ $latest[35]->img_alt }}" title="{{ $latest[35]->title }}" class="w-full h-full object-cover group-hover:scale-105 transition duration-300">

        <!-- Overlay -->
        <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"></div>

        <!-- Content -->
        <div class="absolute bottom-4 left-4 right-4 text-white">
          <p class="font-semibold text-sm leading-tight">
           <a title="{{ $latest[35]->title }}" href="{{ url(Str::lower(e($latest[35]->category_name)) . '/' . $latest[35]->encode_title) }}" >{{ $latest[35]->title }}</a>
          </p>
        </div>
      </div>

    </div>

  </div>
</section> 
<style>
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
</style>



<!-- 6th section -->
<section class="max-w-7xl mx-auto px-4 py-10">

  <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">

    <!-- LEFT: Main Feature -->
    <div class="lg:col-span-1">
      <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[36]->photo) }}" alt="{{ $latest[36]->img_alt }}" title="{{ $latest[36]->title }}" class="w-full h-64 object-cover rounded">

      <h2 class="text-2xl font-bold mt-4">
       <a title="{{ $latest[36]->title }}" href="{{ url(Str::lower(e($latest[36]->category_name)) . '/' . $latest[36]->encode_title) }}" >{{ $latest[36]->title }}</a>
      </h2>

      <p class="text-gray-600 mt-2 text-sm">
        {{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[36]->news_content))), 118) }}
      </p>
    </div>

    <!-- MIDDLE: 2x2 Article Grid -->
    <div class="grid sm:grid-cols-2 gap-6">

      <!-- Card -->
      <article>
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[37]->photo) }}" alt="{{ $latest[37]->img_alt }}" title="{{ $latest[37]->title }}" class="w-full h-40 object-cover rounded">
        <h3 class="font-semibold mt-2"><a title="{{ $latest[37]->title }}" href="{{ url(Str::lower(e($latest[37]->category_name)) . '/' . $latest[37]->encode_title) }}" >{{ $latest[37]->title }}</a></h3>
      </article>

      <!-- Card -->
      <article>
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[38]->photo) }}" alt="{{ $latest[38]->img_alt }}" title="{{ $latest[38]->title }}" class="w-full h-40 object-cover rounded">
        <h3 class="font-semibold mt-2"><a title="{{ $latest[38]->title }}" href="{{ url(Str::lower(e($latest[38]->category_name)) . '/' . $latest[38]->encode_title) }}" >{{ $latest[38]->title }}</a></h3>
      </article>

      <!-- Card -->
      <article>
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[39]->photo) }}" alt="{{ $latest[39]->img_alt }}" title="{{ $latest[39]->title }}" class="w-full h-40 object-cover rounded">
        <h3 class="font-semibold mt-2"><a title="{{ $latest[39]->title }}" href="{{ url(Str::lower(e($latest[39]->category_name)) . '/' . $latest[39]->encode_title) }}" >{{ $latest[39]->title }}</a></h3>
      </article>

      <!-- Card -->
      <article>
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[40]->photo) }}" alt="{{ $latest[40]->img_alt }}" title="{{ $latest[40]->title }}" class="w-full h-40 object-cover rounded">
        <h3 class="font-semibold mt-2"><a title="{{ $latest[40]->title }}" href="{{ url(Str::lower(e($latest[40]->category_name)) . '/' . $latest[40]->encode_title) }}" >{{ $latest[40]->title }}</a></h3>
      </article>

    </div>


    <!-- RIGHT: Most Commented -->  
      <aside class="px-4 pb-4 rounded self-start">
        <h3 class="text-xl font-bold mb-4 mt-0">MOST COMMENTED STORIES</h3>

      <div class="space-y-4">

        <!-- Item -->
        <div class="flex gap-3">
          <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[41]->photo) }}" alt="{{ $latest[41]->img_alt }}" title="{{ $latest[41]->title }}" class="w-16 h-12 object-cover rounded">
          <div>
            <p class="text-sm font-semibold">
              <a title="{{ $latest[41]->title }}" href="{{ url(Str::lower(e($latest[41]->category_name)) . '/' . $latest[41]->encode_title) }}" >{{ $latest[41]->title }}</a>
            </p>
            <span class="text-xs text-gray-500">{{ \Carbon\Carbon::parse($latest[41]->news_date)->format('F j, Y') }}</span>
          </div>
        </div>

        <div class="flex gap-3">
          <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[42]->photo) }}" alt="{{ $latest[42]->img_alt }}" title="{{ $latest[42]->title }}" class="w-16 h-12 object-cover rounded">
          <div>
            <p class="text-sm font-semibold">
              <a title="{{ $latest[42]->title }}" href="{{ url(Str::lower(e($latest[42]->category_name)) . '/' . $latest[42]->encode_title) }}" >{{ $latest[42]->title }}</a>
            </p>
            <span class="text-xs text-gray-500">{{ \Carbon\Carbon::parse($latest[42]->news_date)->format('F j, Y') }}</span>
          </div>
        </div>

        <div class="flex gap-3">
          <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[43]->photo) }}" alt="{{ $latest[43]->img_alt }}" title="{{ $latest[43]->title }}" class="w-16 h-12 object-cover rounded">
          <div>
            <p class="text-sm font-semibold">
              <a title="{{ $latest[43]->title }}" href="{{ url(Str::lower(e($latest[43]->category_name)) . '/' . $latest[43]->encode_title) }}" >{{ $latest[43]->title }}</a>
            </p>
            <span class="text-xs text-gray-500">{{ \Carbon\Carbon::parse($latest[43]->news_date)->format('F j, Y') }}</span>
          </div>
        </div>

        <div class="flex gap-3">
          <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[44]->photo) }}" alt="{{ $latest[44]->img_alt }}" title="{{ $latest[44]->title }}" class="w-16 h-12 object-cover rounded">
          <div>
            <p class="text-sm font-semibold">
              <a title="{{ $latest[44]->title }}" href="{{ url(Str::lower(e($latest[44]->category_name)) . '/' . $latest[44]->encode_title) }}" >{{ $latest[44]->title }}</a>
            </p>
            <span class="text-xs text-gray-500">{{ \Carbon\Carbon::parse($latest[44]->news_date)->format('F j, Y') }}</span>
          </div>
        </div>
        <div class="flex gap-3">
          <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[45]->photo) }}" alt="{{ $latest[45]->img_alt }}" title="{{ $latest[45]->title }}" class="w-16 h-12 object-cover rounded">
          <div>
            <p class="text-sm font-semibold">
              <a title="{{ $latest[45]->title }}" href="{{ url(Str::lower(e($latest[45]->category_name)) . '/' . $latest[45]->encode_title) }}" >{{ $latest[45]->title }}</a>
            </p>
            <span class="text-xs text-gray-500">{{ \Carbon\Carbon::parse($latest[45]->news_date)->format('F j, Y') }}</span>
          </div>
        </div>

      </div>
    </aside>

  </div>
</section> 



<!-- 7th section -->
<section class="py-10">
  <div class="max-w-7xl mx-auto px-4">

    <div class="grid grid-cols-1 lg:grid-cols-2 gap-12">

      <!-- LEFT: TODAY IN HISTORY -->
      <div>
        <!-- Header -->
        <div class="mb-6">
          <div class="relative border-t border-gray-300">
            <span class="absolute -top-[2px] left-0 w-16 h-2 bg-red-600"></span>
          </div>
          <div class="flex items-center mt-4 space-x-2">
            <h2 class="text-2xl font-extrabold">TODAY IN HISTORY</h2>
            <span class="text-gray-500 text-2xl">›</span>
          </div>
        </div>

        <div class="grid md:grid-cols-2 gap-1 items-start">

          <!-- Timeline -->
          <div>
            <h3 class="text-xl font-bold mb-2"><a title="{{ $latest[46]->title }}" href="{{ url(Str::lower(e($latest[46]->category_name)) . '/' . $latest[46]->encode_title) }}" >{{ $latest[46]->title }}</a></h3>

            <div class="space-y-6 text-sm">

              <!-- Item -->
              <div class="relative pl-4 border-l border-gray-300">
                <span class="absolute -left-[5px] top-1 w-2 h-2 bg-red-600"></span>
                <p class="font-semibold">{{ \Carbon\Carbon::parse($latest[47]->news_date)->format('F j, Y') }}</p>
                <p class="text-gray-700"><a title="{{ $latest[47]->title }}" href="{{ url(Str::lower(e($latest[47]->category_name)) . '/' . $latest[47]->encode_title) }}" >{{ $latest[47]->title }}</a></p>
              </div>

              <div class="relative pl-4 border-l border-gray-300">
                <span class="absolute -left-[5px] top-1 w-2 h-2 bg-red-600"></span>
                <p class="font-semibold">{{ \Carbon\Carbon::parse($latest[48]->news_date)->format('F j, Y') }}</p>
                <p class="text-gray-700"><a title="{{ $latest[48]->title }}" href="{{ url(Str::lower(e($latest[48]->category_name)) . '/' . $latest[48]->encode_title) }}" >{{ $latest[48]->title }}</a></p>
              </div>

              <div class="relative pl-4 border-l border-gray-300">
                <span class="absolute -left-[5px] top-1 w-2 h-2 bg-red-600"></span>
                <p class="font-semibold">{{ \Carbon\Carbon::parse($latest[49]->news_date)->format('F j, Y') }}</p>
                <p class="text-gray-700"><a title="{{ $latest[49]->title }}" href="{{ url(Str::lower(e($latest[49]->category_name)) . '/' . $latest[49]->encode_title) }}" >{{ $latest[49]->title }}</a></p>
              </div>

            </div>

            <a class="inline-block mt-6 text-sm font-semibold hover:underline" title="{{ $latest[50]->title }}" href="{{ url(Str::lower(e($latest[50]->category_name)) . '/' . $latest[50]->encode_title) }}" >{{ $latest[50]->title }}</a>
          </div>

          <!-- Image -->
          <div class="relative">
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[50]->photo) }}" alt="{{ $latest[50]->img_alt }}" title="{{ $latest[50]->title }}" class="w-full h-64 object-cover rounded">

            <!-- Date Badge -->
            <div class="absolute top-3 left-3 bg-white shadow px-3 py-2 text-center">
              <p class="text-xs font-semibold tracking-wide"> {{ \Carbon\Carbon::parse($latest[50]->news_date)->format('F') }}</p>
              <p class="text-2xl font-extrabold leading-none">{{ \Carbon\Carbon::parse($latest[50]->news_date)->format('d') }}</p>
            </div>
          </div>

        </div>
      </div>

      <!-- RIGHT: MOST READ -->
      <div>
        <!-- Header -->
        <div class="mb-6">
          <div class="relative border-t border-gray-300">
            <span class="absolute -top-[2px] left-0 w-16 h-2 bg-red-600"></span>
          </div>

          <h2 class="text-2xl font-extrabold mt-4">MOST READ</h2>
        </div>

        <div class="space-y-6">

          <!-- Item -->
          <div class="flex gap-4 items-start border-b pb-2">
            <span class="font-bold text-gray-700 w-5">1</span>
            <div class="flex-1">
              <p class="font-semibold text-sm leading-snug">
                <a title="{{ $latest[51]->title }}" href="{{ url(Str::lower(e($latest[51]->category_name)) . '/' . $latest[51]->encode_title) }}" >{{ $latest[51]->title }}</a>
              </p>
              <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[51]->news_date)->format('F j, Y') }}</p>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[51]->photo) }}" alt="{{ $latest[51]->img_alt }}" title="{{ $latest[51]->title }}" class="w-18 h-12 object-cover rounded">
          </div>

          <div class="flex gap-4 items-start border-b pb-2">
            <span class="font-bold text-gray-700 w-5">2</span>
            <div class="flex-1">
              <p class="font-semibold text-sm leading-snug">
                <a title="{{ $latest[52]->title }}" href="{{ url(Str::lower(e($latest[52]->category_name)) . '/' . $latest[52]->encode_title) }}" >{{ $latest[52]->title }}</a>
              </p>
              <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[52]->news_date)->format('F j, Y') }}</p>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[52]->photo) }}" alt="{{ $latest[52]->img_alt }}" title="{{ $latest[52]->title }}" class="w-18 h-12 object-cover rounded">
          </div>

          <div class="flex gap-4 items-start border-b pb-2">
            <span class="font-bold text-gray-700 w-5">3</span>
            <div class="flex-1">
              <p class="font-semibold text-sm leading-snug">
                <a title="{{ $latest[53]->title }}" href="{{ url(Str::lower(e($latest[53]->category_name)) . '/' . $latest[53]->encode_title) }}" >{{ $latest[53]->title }}</a>
              </p>
              <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[53]->news_date)->format('F j, Y') }}</p>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[53]->photo) }}" alt="{{ $latest[53]->img_alt }}" title="{{ $latest[53]->title }}" class="w-18 h-12 object-cover rounded">
          </div>

          <div class="flex gap-4 items-start border-b pb-2">
            <span class="font-bold text-gray-700 w-5">4</span>
            <div class="flex-1">
              <p class="font-semibold text-sm leading-snug">
                <a title="{{ $latest[54]->title }}" href="{{ url(Str::lower(e($latest[54]->category_name)) . '/' . $latest[54]->encode_title) }}" >{{ $latest[54]->title }}</a>
              </p>
              <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[54]->news_date)->format('F j, Y') }}</p>
            </div>
            <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[54]->photo) }}" alt="{{ $latest[54]->img_alt }}" title="{{ $latest[54]->title }}" class="w-18 h-12 object-cover rounded">
          </div>

        </div>
      </div>

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



<!-- 8th section -->
<section class="py-10">
  <div class="max-w-7xl mx-auto px-4">

    <div class="grid grid-cols-1 lg:grid-cols-4 gap-10">

      <!-- LEFT: Be Well Articles -->
      <div class="lg:col-span-3">

        <!-- Section Header -->
        <div class="mb-6">
          <div class="relative border-t border-gray-300">
            <span class="absolute -top-[2px] left-0 w-16 h-2 bg-red-600"></span>
          </div>
          <div class="flex items-center mt-4 space-x-2">
            <h2 class="text-2xl font-extrabold">BE WELL</h2>
            <span class="text-gray-500 text-2xl">›</span>
          </div>
        </div>

        <!-- Cards -->
        <div class="grid grid-cols-1 md:grid-cols-3 gap-6">

          <!-- Card 1 -->
          <article class="group">
            <div class="overflow-hidden rounded">
              <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[55]->photo) }}" alt="{{ $latest[55]->img_alt }}" title="{{ $latest[55]->title }}" class="w-full h-52 object-cover group-hover:scale-105 transition duration-300">
            </div>
            <h3 class="mt-3 font-semibold leading-tight group-hover:underline">
              <a title="{{ $latest[55]->title }}" href="{{ url(Str::lower(e($latest[55]->category_name)) . '/' . $latest[55]->encode_title) }}" >{{ $latest[55]->title }}</a>
            </h3>
          </article>

          <!-- Card 2 -->
          <article class="group">
            <div class="overflow-hidden rounded">
              <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[56]->photo) }}" alt="{{ $latest[56]->img_alt }}" title="{{ $latest[56]->title }}" class="w-full h-52 object-cover group-hover:scale-105 transition duration-300">
            </div>
            <h3 class="mt-3 font-semibold leading-tight group-hover:underline">
              <a title="{{ $latest[56]->title }}" href="{{ url(Str::lower(e($latest[56]->category_name)) . '/' . $latest[56]->encode_title) }}" >{{ $latest[56]->title }}</a>
            </h3>
          </article>

          <!-- Card 3 -->
          <article class="group">
            <div class="overflow-hidden rounded">
              <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[57]->photo) }}" alt="{{ $latest[57]->img_alt }}" title="{{ $latest[57]->title }}" class="w-full h-52 object-cover group-hover:scale-105 transition duration-300">
            </div>
            <h3 class="mt-3 font-semibold leading-tight group-hover:underline">
              <a title="{{ $latest[57]->title }}" href="{{ url(Str::lower(e($latest[57]->category_name)) . '/' . $latest[57]->encode_title) }}" >{{ $latest[57]->title }}</a>
            </h3>
          </article>

        </div>
      </div>

      <!-- RIGHT: Most Popular -->
      <aside>

        <!-- Header -->
        <div class="mb-4">
          <div class="relative border-t border-gray-300">
            <span class="absolute -top-[2px] left-0 w-16 h-2 bg-red-600"></span>
          </div>
          <h3 class="text-2xl font-extrabold mt-4">MOST POPULAR</h3>
        </div>

        <!-- List -->
        <div class="space-y-5 text-sm">

          <!-- Item -->
          <div class="flex gap-4 border-b pb-2">
            <span class="font-bold text-gray-700">1</span>
            <div>
              <p class="font-semibold leading-snug">
                <a title="{{ $latest[58]->title }}" href="{{ url(Str::lower(e($latest[58]->category_name)) . '/' . $latest[58]->encode_title) }}" >{{ $latest[58]->title }}</a>
              </p>
              <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[58]->news_date)->format('F j, Y') }}</p>
            </div>
          </div>

          <div class="flex gap-4 border-b pb-2">
            <span class="font-bold text-gray-700">2</span>
            <div>
              <p class="font-semibold leading-snug">
                <a title="{{ $latest[59]->title }}" href="{{ url(Str::lower(e($latest[59]->category_name)) . '/' . $latest[59]->encode_title) }}" >{{ $latest[59]->title }}</a>
              </p>
              <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[59]->news_date)->format('F j, Y') }}</p>
            </div>
          </div>

          <div class="flex gap-4 border-b pb-2">
            <span class="font-bold text-gray-700">3</span>
            <div>
              <p class="font-semibold leading-snug">
                <a title="{{ $latest[60]->title }}" href="{{ url(Str::lower(e($latest[60]->category_name)) . '/' . $latest[60]->encode_title) }}" >{{ $latest[60]->title }}</a>
              </p>
              <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[60]->news_date)->format('F j, Y') }}</p>
            </div>
          </div>

          <div class="flex gap-4">
            <span class="font-bold text-gray-700">4</span>
            <div>
              <p class="font-semibold leading-snug">
                <a title="{{ $latest[61]->title }}" href="{{ url(Str::lower(e($latest[61]->category_name)) . '/' . $latest[61]->encode_title) }}" >{{ $latest[61]->title }}</a>
              </p>
              <p class="text-xs text-gray-500 mt-1">{{ \Carbon\Carbon::parse($latest[61]->news_date)->format('F j, Y') }}</p>
            </div>
          </div>

        </div>

      </aside>

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



<!-- 9th section -->
<section class="max-w-7xl mx-auto px-4 py-10">

<div class="mb-6">
  <!-- Grey line with red segment attached -->
  <div class="relative border-t border-gray-300">
    <span class="absolute -top-[2px] left-0 w-16 h-2 bg-red-600"></span>
  </div>
  <!-- Title -->
  <div class="flex items-center mt-4 space-x-2">
    <h2 class="text-2xl font-extrabold tracking-tight">AP PHOTOGRAPHY</h2>
    <span class="text-gray-500 text-2xl">›</span>
  </div>
</div>

  <!-- Photo Grid -->
  <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">

    <!-- Card 1 -->
    <article class="group">
      <div class="overflow-hidden rounded">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[62]->photo) }}" alt="{{ $latest[62]->img_alt }}" title="{{ $latest[62]->title }}" class="w-full h-64 object-cover group-hover:scale-105 transition duration-300">
      </div>
      <h3 class="mt-3 font-semibold text-lg leading-tight group-hover:underline">
       <a title="{{ $latest[62]->title }}" href="{{ url(Str::lower(e($latest[62]->category_name)) . '/' . $latest[62]->encode_title) }}" >{{ $latest[62]->title }}</a>
      </h3>
    </article>

    <!-- Card 2 -->
    <article class="group">
      <div class="overflow-hidden rounded">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[63]->photo) }}" alt="{{ $latest[63]->img_alt }}" title="{{ $latest[63]->title }}" class="w-full h-64 object-cover group-hover:scale-105 transition duration-300">
      </div>
      <h3 class="mt-3 font-semibold text-lg leading-tight group-hover:underline">
       <a title="{{ $latest[63]->title }}" href="{{ url(Str::lower(e($latest[63]->category_name)) . '/' . $latest[63]->encode_title) }}" >{{ $latest[63]->title }}</a>
      </h3>
    </article>

    <!-- Card 3 -->
    <article class="group">
      <div class="overflow-hidden rounded">
        <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[64]->photo) }}" alt="{{ $latest[64]->img_alt }}" title="{{ $latest[64]->title }}" class="w-full h-64 object-cover group-hover:scale-105 transition duration-300">
      </div>
      <h3 class="mt-3 font-semibold text-lg leading-tight group-hover:underline">
       <a title="{{ $latest[64]->title }}" href="{{ url(Str::lower(e($latest[64]->category_name)) . '/' . $latest[64]->encode_title) }}" >{{ $latest[64]->title }}</a>
      </h3>
    </article>

  </div>

</section> 



<!-- 10th section -->
<section class="max-w-7xl mx-auto px-4 py-10">
  <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">

    <!-- ================= 1st coulmn ================= -->
    <div>
      <div class="flex items-center mb-4">
        <h2 class="text-xl font-extrabold">{{ Str::headline(Str::lower($latest[65]->category_name)) }}</h2>
        <span class="ml-2 text-gray-500 text-2xl">›</span>
      </div>

      <!-- Main Story -->
      <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[65]->photo) }}" alt="{{ $latest[65]->img_alt }}" title="{{ $latest[65]->title }}" class="w-full h-48 object-cover rounded">
      <h3 class="font-bold text-lg mt-3 leading-tight">
        <a title="{{ $latest[65]->title }}" href="{{ url(Str::lower(e($latest[65]->category_name)) . '/' . $latest[65]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[65]->news_content))), 86) }}</a>
      </h3>

      <!-- List Stories -->
      <div class="mt-4 space-y-3 text-sm">
        <p class="border-t pt-3">
          <a title="{{ $latest[66]->title }}" href="{{ url(Str::lower(e($latest[66]->category_name)) . '/' . $latest[66]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[66]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[67]->title }}" href="{{ url(Str::lower(e($latest[67]->category_name)) . '/' . $latest[67]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[67]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[68]->title }}" href="{{ url(Str::lower(e($latest[68]->category_name)) . '/' . $latest[68]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[68]->news_content))), 80) }}</a>
        </p>
      </div>
    </div>

    <!-- ================= 2nd coulmn ================= -->
    <div>
      <div class="flex items-center mb-4">
        <h2 class="text-xl font-extrabold">{{ Str::headline(Str::lower($latest[69]->category_name)) }}</h2>
        <span class="ml-2 text-gray-500 text-2xl">›</span>
      </div>

      <!-- Main Story -->
      <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[69]->photo) }}" alt="{{ $latest[69]->img_alt }}" title="{{ $latest[69]->title }}" class="w-full h-48 object-cover rounded">
      <h3 class="font-bold text-lg mt-3 leading-tight">
        <a title="{{ $latest[69]->title }}" href="{{ url(Str::lower(e($latest[69]->category_name)) . '/' . $latest[69]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[69]->news_content))), 86) }}</a>
      </h3>

      <!-- List Stories -->
      <div class="mt-4 space-y-3 text-sm">
        <p class="border-t pt-3">
          <a title="{{ $latest[70]->title }}" href="{{ url(Str::lower(e($latest[70]->category_name)) . '/' . $latest[70]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[70]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[71]->title }}" href="{{ url(Str::lower(e($latest[71]->category_name)) . '/' . $latest[71]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[71]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[72]->title }}" href="{{ url(Str::lower(e($latest[72]->category_name)) . '/' . $latest[72]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[72]->news_content))), 80) }}</a>
        </p>
      </div>
    </div>

    <!-- ================= 3rd coulmn ================= -->
    <div>
      <div class="flex items-center mb-4">
        <h2 class="text-xl font-extrabold">{{ Str::headline(Str::lower($latest[73]->category_name)) }}</h2>
        <span class="ml-2 text-gray-500 text-2xl">›</span>
      </div>

      <!-- Main Story -->
      <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[73]->photo) }}" alt="{{ $latest[73]->img_alt }}" title="{{ $latest[73]->title }}" class="w-full h-48 object-cover rounded">
      <h3 class="font-bold text-lg mt-3 leading-tight">
        <a title="{{ $latest[73]->title }}" href="{{ url(Str::lower(e($latest[73]->category_name)) . '/' . $latest[73]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[73]->news_content))), 86) }}</a>
      </h3>

      <!-- List Stories -->
      <div class="mt-4 space-y-3 text-sm">
        <p class="border-t pt-3">
          <a title="{{ $latest[74]->title }}" href="{{ url(Str::lower(e($latest[74]->category_name)) . '/' . $latest[74]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[74]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[75]->title }}" href="{{ url(Str::lower(e($latest[75]->category_name)) . '/' . $latest[75]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[75]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[76]->title }}" href="{{ url(Str::lower(e($latest[76]->category_name)) . '/' . $latest[76]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[76]->news_content))), 80) }}</a>
        </p>
      </div>
    </div>

    <!-- ================= 4th coulmn ================= -->
    <div>
      <div class="flex items-center mb-4">
        <h2 class="text-xl font-extrabold">{{ Str::headline(Str::lower($latest[77]->category_name)) }}</h2>
        <span class="ml-2 text-gray-500 text-2xl">›</span>
      </div>

      <!-- Main Story -->
      <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[77]->photo) }}" alt="{{ $latest[77]->img_alt }}" title="{{ $latest[77]->title }}" class="w-full h-48 object-cover rounded">
      <h3 class="font-bold text-lg mt-3 leading-tight">
        <a title="{{ $latest[77]->title }}" href="{{ url(Str::lower(e($latest[77]->category_name)) . '/' . $latest[77]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[77]->news_content))), 86) }}</a>
      </h3>

      <!-- List Stories -->
      <div class="mt-4 space-y-3 text-sm">
        <p class="border-t pt-3">
          <a title="{{ $latest[78]->title }}" href="{{ url(Str::lower(e($latest[78]->category_name)) . '/' . $latest[78]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[78]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[79]->title }}" href="{{ url(Str::lower(e($latest[79]->category_name)) . '/' . $latest[79]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[79]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[80]->title }}" href="{{ url(Str::lower(e($latest[80]->category_name)) . '/' . $latest[80]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[80]->news_content))), 80) }}</a>
        </p>
      </div>
    </div>

  </div>
</section> 



<!-- 11th section -->
<section class="max-w-7xl mx-auto px-4 py-10">
  <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">

    <!-- ================= 1st coulmn ================= -->
    <div>
      <div class="flex items-center mb-4">
        <h2 class="text-xl font-extrabold">{{ Str::headline(Str::lower($latest[81]->category_name)) }}</h2>
        <span class="ml-2 text-gray-500 text-2xl">›</span>
      </div>

      <!-- Main Story -->
      <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[81]->photo) }}" alt="{{ $latest[81]->img_alt }}" title="{{ $latest[81]->title }}" class="w-full h-48 object-cover rounded">
      <h3 class="font-bold text-lg mt-3 leading-tight">
        <a title="{{ $latest[81]->title }}" href="{{ url(Str::lower(e($latest[81]->category_name)) . '/' . $latest[81]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[81]->news_content))), 86) }}</a>
      </h3>

      <!-- List Stories -->
      <div class="mt-4 space-y-3 text-sm">
        <p class="border-t pt-3">
          <a title="{{ $latest[82]->title }}" href="{{ url(Str::lower(e($latest[82]->category_name)) . '/' . $latest[82]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[82]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[83]->title }}" href="{{ url(Str::lower(e($latest[83]->category_name)) . '/' . $latest[83]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[83]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[84]->title }}" href="{{ url(Str::lower(e($latest[84]->category_name)) . '/' . $latest[84]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[84]->news_content))), 80) }}</a>
        </p>
      </div>
    </div>

    <!-- ================= 2nd coulmn ================= -->
    <div>
      <div class="flex items-center mb-4">
        <h2 class="text-xl font-extrabold">{{ Str::headline(Str::lower($latest[84]->category_name)) }}</h2>
        <span class="ml-2 text-gray-500 text-2xl">›</span>
      </div>

      <!-- Main Story -->
      <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[85]->photo) }}" alt="{{ $latest[85]->img_alt }}" title="{{ $latest[85]->title }}" class="w-full h-48 object-cover rounded">
      <h3 class="font-bold text-lg mt-3 leading-tight">
        <a title="{{ $latest[85]->title }}" href="{{ url(Str::lower(e($latest[85]->category_name)) . '/' . $latest[85]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[85]->news_content))), 86) }}</a>
      </h3>

      <!-- List Stories -->
      <div class="mt-4 space-y-3 text-sm">
        <p class="border-t pt-3">
          <a title="{{ $latest[86]->title }}" href="{{ url(Str::lower(e($latest[86]->category_name)) . '/' . $latest[86]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[86]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[87]->title }}" href="{{ url(Str::lower(e($latest[87]->category_name)) . '/' . $latest[87]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[87]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[88]->title }}" href="{{ url(Str::lower(e($latest[88]->category_name)) . '/' . $latest[88]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[88]->news_content))), 80) }}</a>
        </p>
      </div>
    </div>

    <!-- ================= 3rd coulmn ================= -->
    <div>
      <div class="flex items-center mb-4">
        <h2 class="text-xl font-extrabold">{{ Str::headline(Str::lower($latest[89]->category_name)) }}</h2>
        <span class="ml-2 text-gray-500 text-2xl">›</span>
      </div>

      <!-- Main Story -->
      <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[89]->photo) }}" alt="{{ $latest[89]->img_alt }}" title="{{ $latest[89]->title }}" class="w-full h-48 object-cover rounded">
      <h3 class="font-bold text-lg mt-3 leading-tight">
        <a title="{{ $latest[89]->title }}" href="{{ url(Str::lower(e($latest[89]->category_name)) . '/' . $latest[89]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[89]->news_content))), 86) }}</a>
      </h3>

      <!-- List Stories -->
      <div class="mt-4 space-y-3 text-sm">
        <p class="border-t pt-3">
          <a title="{{ $latest[90]->title }}" href="{{ url(Str::lower(e($latest[90]->category_name)) . '/' . $latest[90]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[90]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[91]->title }}" href="{{ url(Str::lower(e($latest[91]->category_name)) . '/' . $latest[91]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[91]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[92]->title }}" href="{{ url(Str::lower(e($latest[92]->category_name)) . '/' . $latest[92]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[92]->news_content))), 80) }}</a>
        </p>
      </div>
    </div>

    <!-- ================= 4th coulmn ================= -->
    <div>
      <div class="flex items-center mb-4">
        <h2 class="text-xl font-extrabold">{{ Str::headline(Str::lower($latest[93]->category_name)) }}</h2>
        <span class="ml-2 text-gray-500 text-2xl">›</span>
      </div>

      <!-- Main Story -->
      <img src="{{ url('https://financial-journal.xyz/newspaper/cms/public/uploads/' . $latest[93]->photo) }}" alt="{{ $latest[93]->img_alt }}" title="{{ $latest[93]->title }}" class="w-full h-48 object-cover rounded">
      <h3 class="font-bold text-lg mt-3 leading-tight">
        <a title="{{ $latest[93]->title }}" href="{{ url(Str::lower(e($latest[93]->category_name)) . '/' . $latest[93]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[93]->news_content))), 86) }}</a>
      </h3>

      <!-- List Stories -->
      <div class="mt-4 space-y-3 text-sm">
        <p class="border-t pt-3">
          <a title="{{ $latest[94]->title }}" href="{{ url(Str::lower(e($latest[94]->category_name)) . '/' . $latest[94]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[94]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[95]->title }}" href="{{ url(Str::lower(e($latest[95]->category_name)) . '/' . $latest[95]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[95]->news_content))), 80) }}</a>
        </p>
        <p class="border-t pt-3">
          <a title="{{ $latest[96]->title }}" href="{{ url(Str::lower(e($latest[96]->category_name)) . '/' . $latest[96]->encode_title) }}" >{{ Str::limit(preg_replace('/\s+/', ' ', str_replace('&nbsp;', ' ', strip_tags($latest[96]->news_content))), 80) }}</a>
        </p>
      </div>
    </div>

  </div>
</section> 




</main>


@include('footer')
<!-- ================= FOOTER ================= -->



<script src="./script.js"></script>
</body>
</html>