<div class="article-content-section">
    <div class="article-top-row">
        <div class="article-main-image">
            <img src="{{ asset('storage/' . $newEventContain->image) }}" alt="{{ $newEventContain->title }}">
        </div>
        <div class="article-text-block">
            <div class="article-meta-info">
                <span><i class="far fa-clock"></i> {{ $newEventContain->released_at }}</span>
                <span><i class="fas fa-share-alt"></i> Share</span>
            </div>
            <div class="title">{{ $newEventContain->title }}</div>
            <div class="description">
                @php
                    $paragraphs = preg_split('/\r\n|\n|\r/', $newEventContain->description);
                @endphp

                {!! $paragraphs[0] ?? '' !!}
            </div>
        </div>
    </div>
    <!-- Full Article Text -->
    <div class="article-full-text">
        @foreach(array_slice($paragraphs, 1) as $para)
            {!! $para !!}
        @endforeach
    </div>
</div>
<style>
       .article-content-section {
            padding: 40px 70px;
            background-color: #fff;
            box-sizing: border-box;
        }

        .article-top-row {
            display: flex;

            margin-bottom: 15px;
            align-items: flex-start; /* Align top of image with top of text */
        }

        .article-main-image {
            flex: 1; /* Takes equal space */
            overflow: hidden;

        }

        .article-main-image img {
            width: 687px;
            height: 362px;
            object-fit: cover;
            display: block;
        }

        .article-text-block {
            flex: 0.5; /* Takes more space for text */
            text-align: left;
        }

        .article-meta-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: #777;
            margin-bottom: 20px;
        }

        .article-meta-info span {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .article-meta-info i {
            color: #1E8DD2; /* Blue icon color */
            font-size: 1.1em;
        }

        .article-text-block .title {
            font-size: 2.2rem;
            color: #1E8DD2;
            margin-bottom: 15px;
            font-weight: 700;
            line-height: 1.2;
        }

        .article-text-block .description {
            font-size: 1rem;
            color: #555;
            line-height: 1.8;
        }

        .article-full-text {
            font-size: 1rem;
            color: #555;
            line-height: 1.8;

            margin-bottom: 60px;
            box-sizing: border-box;
        }


         /* Enhanced responsive styles */
    @media (max-width: 1200px) {
        .article-content-section {
            padding: 35px 60px;
        }
        .article-main-image img {
            width: 600px;
            height: 320px;
        }
        .article-text-block .title {
            font-size: 2rem;
            margin-bottom: 12px;
        }
        .article-text-block .description {
            font-size: 0.95rem;
        }
        .article-full-text {
            font-size: 0.95rem;
            margin-bottom: 50px;
        }
    }

    @media (max-width: 992px) {
        .article-content-section {
            padding: 30px 50px;
        }
        .article-main-image img {
            width: 500px;
            height: 280px;
        }
        .article-text-block .title {
            font-size: 1.8rem;
            margin-bottom: 10px;
        }
        .article-text-block .description {
            font-size: 0.9rem;
        }
        .article-full-text {
            font-size: 0.9rem;
            margin-bottom: 40px;
        }
    }

    @media (max-width: 900px) {
        .article-content-section {
            padding: 25px 40px;
        }
        .article-top-row {
            flex-direction: column;
            gap: 20px;
        }
        .article-main-image {
            flex: none;
            width: 100%;
        }
        .article-main-image img {
            width: 100%;
            height: 300px;
        }
        .article-text-block {
            flex: none;
            width: 100%;
        }
        .article-text-block .title {
            font-size: 1.6rem;
            margin-bottom: 8px;
        }
        .article-text-block .description {
            font-size: 0.85rem;
        }
        .article-full-text {
            font-size: 0.85rem;
            margin-bottom: 35px;
        }
    }

    @media (max-width: 768px) {
        .article-content-section {
            padding: 20px 30px;
        }
        .article-top-row {
            gap: 15px;
        }
        .article-main-image img {
            height: 250px;
        }
        .article-meta-info {
            font-size: 0.8rem;
            margin-bottom: 15px;
        }
        .article-meta-info span {
            gap: 6px;
        }
        .article-meta-info i {
            font-size: 1em;
        }
        .article-text-block .title {
            font-size: 1.4rem;
            margin-bottom: 6px;
        }
        .article-text-block .description {
            font-size: 0.8rem;
            line-height: 1.6;
        }
        .article-full-text {
            font-size: 0.8rem;
            line-height: 1.6;
            margin-bottom: 30px;
        }
    }

    @media (max-width: 600px) {
        .article-content-section {
            padding: 15px 20px;
        }
        .article-top-row {
            gap: 12px;
        }
        .article-main-image img {
            height: 200px;
        }
        .article-meta-info {
            font-size: 0.75rem;
            margin-bottom: 12px;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }
        .article-meta-info span {
            gap: 5px;
        }
        .article-text-block .title {
            font-size: 1.2rem;
            margin-bottom: 5px;
        }
        .article-text-block .description {
            font-size: 0.75rem;
            line-height: 1.5;
        }
        .article-full-text {
            font-size: 0.75rem;
            line-height: 1.5;
            margin-bottom: 25px;
        }
    }

    @media (max-width: 480px) {
        .article-content-section {
            padding: 12px 15px;
        }
        .article-top-row {
            gap: 10px;
        }
        .article-main-image img {
            height: 180px;
        }
        .article-meta-info {
            font-size: 0.7rem;
            margin-bottom: 10px;
            gap: 6px;
        }
        .article-meta-info span {
            gap: 4px;
        }
        .article-text-block .title {
            font-size: 1.1rem;
            margin-bottom: 4px;
        }
        .article-text-block .description {
            font-size: 0.7rem;
            line-height: 1.4;
        }
        .article-full-text {
            font-size: 0.7rem;
            line-height: 1.4;
            margin-bottom: 20px;
        }
    }

    @media (max-width: 360px) {
        .article-content-section {
            padding: 10px 12px;
        }
        .article-top-row {
            gap: 8px;
        }
        .article-main-image img {
            height: 160px;
        }
        .article-meta-info {
            font-size: 0.65rem;
            margin-bottom: 8px;
            gap: 5px;
        }
        .article-meta-info span {
            gap: 3px;
        }
        .article-text-block .title {
            font-size: 1rem;
            margin-bottom: 3px;
        }
        .article-text-block .description {
            font-size: 0.65rem;
            line-height: 1.3;
        }
        .article-full-text {
            font-size: 0.65rem;
            line-height: 1.3;
            margin-bottom: 15px;
        }
    }

</style>