@php
            $berita = \App\Models\Backend\ContentArticle::with(['translations' => function($q) use ($lang) { $q->where('article_translation_language', $lang); }])->where('article_category', 'NEWS')->where('article_status', 'ACTIVE')->orderBy('article_date', 'desc')->orderBy('created_at', 'desc')->take(5)->get();
            $downloads = \App\Models\Backend\ContentDownload::where('download_language', $lang)->where('download_status', 'ACTIVE')->orderBy('download_date', 'desc')->take(4)->get();
            $galleries = \App\Models\Backend\ContentPhotoGallery::with(['translations' => function($q) use ($lang) { $q->where('gallery_translation_language', $lang); }])->where('gallery_status', 'ACTIVE')->orderBy('gallery_date', 'desc')->take(4)->get();
            $videos = \App\Models\Backend\ContentVideo::with(['translations' => function($q) use ($lang) { $q->where('video_translation_language', $lang); }])->where('video_status', 'ACTIVE')->orderBy('video_date', 'desc')->take(3)->get();
            $events = \App\Models\Backend\ContentCalendar::with(['translations' => function($q) use ($lang) { $q->where('calendar_translation_language', $lang); }])->where('calendar_status', 'ACTIVE')->where('calendar_date_start', '>=', now()->format('Y-m-d'))->orderBy('calendar_date_start')->take(4)->get();
            @endphp
            <style>
            /* ===== NEWS TICKER ===== */
            .ticker-section {
                background: var(--white);
                border-bottom: 1px solid var(--gray-200);
            }
            .ticker-wrap {
                display: flex; align-items: stretch;
                border-radius: 0;
                overflow: hidden;
            }
            .ticker-label {
                background: var(--accent);
                color: white;
                font-weight: 700;
                font-size: 0.75rem;
                padding: 10px 20px;
                display: flex; align-items: center;
                gap: 8px;
                text-transform: uppercase;
                letter-spacing: 1px;
                flex-shrink: 0;
            }
            .ticker-label i { font-size: 0.8rem; }
            .ticker-content {
                flex: 1;
                padding: 10px 20px;
                overflow: hidden;
                display: flex; align-items: center;
            }
            .ticker-content p {
                font-size: 0.82rem;
                color: var(--gray-500);
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
            
            /* ===== FEATURE CARDS ===== */
            .feature-cards {
                padding: 40px 0;
                background: var(--gray-50);
            }
            .feature-cards .container {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }
            .feature-card {
                position: relative;
                height: 190px;
                border-radius: var(--radius-lg);
                overflow: hidden;
                box-shadow: var(--shadow-md);
                cursor: pointer;
                display: flex; align-items: flex-end;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }
            .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
            .feature-card::before {
                content: '';
                position: absolute; inset: 0;
                background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
                z-index: 1;
                transition: opacity 0.3s;
            }
            .feature-card:hover::before { opacity: 0.85; }
            .feature-card .fc-content {
                position: relative; z-index: 2;
                padding: 24px;
                color: white;
                width: 100%;
            }
            .feature-card .fc-content h3 {
                font-size: 1.2rem; font-weight: 700;
                margin-bottom: 4px;
                letter-spacing: -0.02em;
            }
            .feature-card .fc-content p {
                font-size: 0.78rem; opacity: 0.8;
                font-weight: 400;
            }
            .feature-card .fc-content .fc-icon {
                font-size: 1.6rem;
                margin-bottom: 8px;
                opacity: 0.9;
            }
            
            /* ===== SECTION ===== */
            .section { padding: 56px 0; }
            .section-alt { background: var(--gray-50); }
            .section-title { text-align: center; margin-bottom: 40px; }
            .section-title h2 {
                font-size: 1.5rem; font-weight: 800;
                color: var(--gray-800);
                letter-spacing: -0.03em;
            }
            .section-title h2 span { color: var(--accent); }
            .section-title .title-line {
                width: 48px; height: 4px;
                background: linear-gradient(90deg, var(--accent), var(--primary));
                margin: 10px auto 0;
                border-radius: 4px;
            }
            .section-title p {
                color: var(--gray-400);
                font-size: 0.88rem;
                margin-top: 8px;
                max-width: 500px;
                margin-left: auto; margin-right: auto;
            }
            
            /* ===== NEWS GRID ===== */
            .news-grid {
                display: grid;
                grid-template-columns: 2fr 1fr;
                gap: 24px;
            }
            .featured-news {
                position: relative;
                border-radius: var(--radius-lg);
                overflow: hidden;
                min-height: 380px;
                display: flex; align-items: flex-end;
                cursor: pointer;
            }
            .featured-news-bg {
                position: absolute; inset: 0;
                background: linear-gradient(135deg, #1c294c, #2a1a3a);
                transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            }
            .featured-news:hover .featured-news-bg { transform: scale(1.06); }
            .featured-news::after {
                content: '';
                position: absolute; inset: 0;
                background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
            }
            .featured-news .fc-badge {
                position: absolute;
                top: 20px; left: 20px;
                z-index: 3;
                background: var(--accent);
                color: white;
                font-size: 0.65rem; font-weight: 700;
                padding: 4px 14px;
                border-radius: 100px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            .featured-news-content {
                position: relative; z-index: 2;
                padding: 28px;
                color: white;
                width: 100%;
            }
            .featured-news-content h3 {
                font-size: 1.3rem; font-weight: 700;
                margin-bottom: 8px; line-height: 1.3;
            }
            .featured-news-content p {
                font-size: 0.82rem;
                color: rgba(255,255,255,0.65);
                margin-bottom: 12px;
            }
            .featured-news-content .news-date {
                font-size: 0.75rem;
                color: rgba(255,255,255,0.45);
                display: flex; align-items: center; gap: 6px;
            }
            .news-sidebar { display: flex; flex-direction: column; gap: 14px; }
            .news-item {
                display: flex; gap: 14px;
                padding: 14px;
                background: var(--white);
                border-radius: var(--radius);
                border: 1px solid var(--gray-100);
                transition: all 0.25s;
            }
            .news-item:hover {
                box-shadow: var(--shadow-md);
                border-color: var(--gray-200);
                transform: translateX(3px);
            }
            .news-item-thumb {
                width: 64px; height: 64px;
                border-radius: 8px; flex-shrink: 0;
                background: var(--gray-100);
                display: flex; align-items: center; justify-content: center;
                color: var(--gray-300);
            }
            .news-item-text { flex: 1; min-width: 0; }
            .news-item-text h4 {
                font-size: 0.82rem; font-weight: 600;
                color: var(--gray-800);
                margin-bottom: 4px;
                line-height: 1.35;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            .news-item-text .news-date-sm {
                font-size: 0.7rem;
                color: var(--gray-400);
                display: flex; align-items: center; gap: 4px;
            }
            
            /* ===== DOKUMEN POPULAR ===== */
            .docs-section { padding: 56px 0; background: var(--white); }
            .docs-section .section-title { text-align: center; margin-bottom: 36px; }
            .docs-section .section-title h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-800); margin: 0 0 6px; }
            .docs-section .section-title h2 span { color: var(--accent); }
            .docs-section .section-title p { color: var(--gray-400); font-size: 0.88rem; margin: 0 auto; max-width: 500px; }
            .docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
            .doc-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); text-decoration: none; transition: all 0.2s; }
            .doc-card:hover { background: var(--white); border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
            .doc-icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--accent-light); color: var(--accent); border-radius: 10px; font-size: 1.1rem; }
            .doc-text { min-width: 0; }
            .doc-text h4 { font-size: 0.85rem; font-weight: 600; color: var(--gray-800); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            .doc-text p { font-size: 0.7rem; color: var(--gray-400); margin: 0; }
            
            /* ===== GALERI TERPILIH ===== */
            .gallery-section { padding: 56px 0; background: var(--gray-50); }
            .gallery-section .section-title { text-align: center; margin-bottom: 36px; }
            .gallery-section .section-title h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-800); margin: 0 0 6px; }
            .gallery-section .section-title h2 span { color: var(--accent); }
            .gallery-section .section-title p { color: var(--gray-400); font-size: 0.88rem; margin: 0 auto; max-width: 500px; }
            .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
            .gallery-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; text-decoration: none; display: block; box-shadow: var(--shadow-md); }
            .gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
            .gallery-card:hover img { transform: scale(1.08); }
            .gallery-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%); }
            .gallery-card-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; color: white; font-size: 0.85rem; font-weight: 600; z-index: 2; margin: 0; }
            
            /* ===== VIDEO TERKINI ===== */
            .videos-section { padding: 56px 0; background: var(--white); }
            .videos-section .section-title { text-align: center; margin-bottom: 36px; }
            .videos-section .section-title h2 { font-size: 1.5rem; font-weight: 800; color: var(--gray-800); margin: 0 0 6px; }
            .videos-section .section-title h2 span { color: var(--accent); }
            .videos-section .section-title p { color: var(--gray-400); font-size: 0.88rem; margin: 0 auto; max-width: 500px; }
            .videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
            .video-card { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-50); border: 1px solid var(--gray-200); text-decoration: none; transition: all 0.2s; }
            .video-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
            .video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
            .video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
            .video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); transition: background 0.2s; }
            .video-card:hover .video-play { background: rgba(0,0,0,0.4); }
            .video-play i { width: 46px; height: 46px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; padding-left: 3px; }
            .video-info { padding: 14px; }
            .video-info h4 { font-size: 0.88rem; font-weight: 600; color: var(--gray-800); margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
            .video-info span { font-size: 0.7rem; color: var(--gray-400); }
            
            /* ===== ACARA AKAN DATANG ===== */
            .events-section { padding: 56px 0; background: linear-gradient(135deg, var(--primary) 0%, #1c294c 100%); color: white; position: relative; overflow: hidden; }
            .events-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 50%), radial-gradient(ellipse at 70% 20%, rgba(192,72,73,0.1) 0%, transparent 50%); z-index: 0; }
            .events-section .container { position: relative; z-index: 1; }
            .events-section .section-title { text-align: center; margin-bottom: 36px; }
            .events-section .section-title h2 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin: 0 0 6px; }
            .events-section .section-title h2 span { color: var(--gold); }
            .events-section .section-title p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin: 0 auto; max-width: 500px; }
            .events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
            .event-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 20px; text-decoration: none; color: white; transition: all 0.2s; }
            .event-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
            .event-date { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
            .event-date .day { font-size: 1.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
            .event-date .month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.65); }
            .event-card h4 { font-size: 0.9rem; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
            .event-card p { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
            
            /* ===== RESPONSIVE ===== */
            @media (max-width: 1024px) {
                .news-grid { grid-template-columns: 1fr; }
                .feature-cards .container { grid-template-columns: repeat(2, 1fr); }
                .module-grid { grid-template-columns: repeat(2, 1fr); }
                .docs-grid { grid-template-columns: repeat(2, 1fr); }
                .gallery-grid { grid-template-columns: repeat(2, 1fr); }
                .videos-grid { grid-template-columns: repeat(2, 1fr); }
                .events-grid { grid-template-columns: repeat(2, 1fr); }
            }
            @media (max-width: 768px) {
                .ticker-label { padding: 10px 14px; font-size: 0.68rem; }
                .ticker-label i { display: none; }
                .feature-cards .container { grid-template-columns: 1fr; }
                .module-grid { grid-template-columns: 1fr 1fr; }
                .feature-card { height: 150px; }
                .docs-grid { grid-template-columns: 1fr; }
                .gallery-grid { grid-template-columns: 1fr; }
                .videos-grid { grid-template-columns: 1fr; }
                .events-grid { grid-template-columns: 1fr; }
            }
            </style>
                <!-- ===== FEATURE CARDS ===== -->
                <section class="feature-cards">
                    <div class="container">
                        <a href="#" class="feature-card" style="background: linear-gradient(135deg, #1c294c, #2a3d6b);">
                            <div class="fc-content">
                                <div class="fc-icon"><i class="fas fa-newspaper"></i></div>
                                <h3>TERKINI</h3>
                                <p>Berita dan Pengumuman</p>
                            </div>
                        </a>
                        <a href="#" class="feature-card" style="background: linear-gradient(135deg, #0d9488, #0369a1);">
                            <div class="fc-content">
                                <div class="fc-icon"><i class="fas fa-globe"></i></div>
                                <h3>Perkhidmatan</h3>
                                <p>Pelbagai Perkhidmatan Dalam Talian</p>
                            </div>
                        </a>
                        <a href="#" class="feature-card" style="background: linear-gradient(135deg, #c04849, #8f3536);">
                            <div class="fc-content">
                                <div class="fc-icon"><i class="fas fa-headset"></i></div>
                                <h3>Hubungi Kami</h3>
                                <p>Maklumat Perhubungan dan Lokasi</p>
                            </div>
                        </a>
                    </div>
                </section>
            
                <!-- ===== NEWS SECTION ===== -->
                <section class="section section-alt">
                    <div class="container">
                        <div class="section-title">
                            <h2><span>Berita</span> Terkini</h2>
                            <div class="title-line"></div>
                            <p>Ikuti perkembangan terkini dari agensi kami</p>
                        </div>
                        @if($berita->count())
                        <div class="news-grid">
                            @php $featured = $berita->first(); $f = $featured->translations->first(); @endphp
                            @if($f)
                            <a href="/{{ $siteSlug }}/article-web?id={{ $featured->article_code }}" class="featured-news">
                                <div class="featured-news-bg" @if($featured->article_image) style="background-image:url('{{ image_url($featured->article_image) }}');background-size:cover;background-position:center;" @endif></div>
                                <span class="fc-badge">Pengumuman</span>
                                <div class="featured-news-content">
                                    <h3>{{ $f->article_translation_title }}</h3>
                                    <p>{{ strip_tags(Str::limit($f->article_translation_content, 160)) }}</p>
                                    <span class="news-date"><i class="far fa-calendar-alt"></i> {{ \Carbon\Carbon::parse($featured->article_date)->format('d M Y') }}</span>
                                </div>
                            </a>
                            @endif
                            <div class="news-sidebar">
                                @foreach($berita->skip(1) as $item)
                                @php $t = $item->translations->first(); @endphp
                                @if($t)
                                <a href="/{{ $siteSlug }}/article-web?id={{ $item->article_code }}" class="news-item">
                                    <div class="news-item-thumb">
                                        @if($item->article_image)
                                        <img src="{{ image_url($item->article_image) }}" alt="{{ $t->article_translation_title }}" style="width:100%;height:100%;object-fit:cover;display:block;border-radius:8px;">
                                        @else
                                        <i class="far fa-image fa-lg"></i>
                                        @endif
                                    </div>
                                    <div class="news-item-text">
                                        <h4>{{ $t->article_translation_title }}</h4>
                                        <span class="news-date-sm"><i class="far fa-calendar-alt"></i> {{ \Carbon\Carbon::parse($item->article_date)->format('d M Y') }}</span>
                                    </div>
                                </a>
                                @endif
                                @endforeach
                            </div>
                        </div>
                        @else
                        <div style="text-align:center;padding:40px 0;color:var(--gray-400);">
                            <p>Tiada berita buat masa ini.</p>
                        </div>
                        @endif
                    </div>
                </section>
            
                <!-- ===== DOKUMEN POPULAR ===== -->
                <section class="docs-section">
                    <div class="container">
                        <div class="section-title">
                            <h2><span>Dokumen</span> Popular</h2>
                            <div class="title-line"></div>
                            <p>Muat turun dokumen dan borang yang sering digunakan</p>
                        </div>
                        @if($downloads->count())
                        <div class="docs-grid">
                            @foreach($downloads as $doc)
                            <a href="{{ image_url($doc->download_file) }}" target="_blank" class="doc-card">
                                <div class="doc-icon"><i class="fas fa-file-pdf"></i></div>
                                <div class="doc-text">
                                    <h4>{{ $doc->download_title }}</h4>
                                    <p>{{ \Carbon\Carbon::parse($doc->download_date)->format('d M Y') }}</p>
                                </div>
                            </a>
                            @endforeach
                        </div>
                        @else
                        <div style="text-align:center;color:var(--gray-400);padding:20px 0;"><p>Tiada dokumen buat masa ini.</p></div>
                        @endif
                    </div>
                </section>
            
                <!-- ===== GALERI TERPILIH ===== -->
                <section class="gallery-section">
                    <div class="container">
                        <div class="section-title">
                            <h2><span>Galeri</span> Terpilih</h2>
                            <div class="title-line"></div>
                            <p>Liputan gambar aktiviti dan program terkini</p>
                        </div>
                        @if($galleries->count())
                        <div class="gallery-grid">
                            @foreach($galleries as $gallery)
                            @php $gt = $gallery->translations->first(); @endphp
                            @if($gt)
                            <a href="/{{ $siteSlug }}/gallery-web" class="gallery-card">
                                @if($gallery->gallery_thumbnail)
                                <img src="{{ image_url($gallery->gallery_thumbnail) }}" alt="{{ $gt->gallery_translation_title }}">
                                @else
                                <div style="width:100%;height:100%;background:var(--gray-200);display:flex;align-items:center;justify-content:center;color:var(--gray-400);"><i class="far fa-image fa-2x"></i></div>
                                @endif
                                <h4 class="gallery-card-title">{{ $gt->gallery_translation_title }}</h4>
                            </a>
                            @endif
                            @endforeach
                        </div>
                        @else
                        <div style="text-align:center;color:var(--gray-400);padding:20px 0;"><p>Tiada galeri buat masa ini.</p></div>
                        @endif
                    </div>
                </section>
            
                <!-- ===== VIDEO TERKINI ===== -->
                <section class="videos-section">
                    <div class="container">
                        <div class="section-title">
                            <h2><span>Video</span> Terkini</h2>
                            <div class="title-line"></div>
                            <p>Tonton video dan siaran langsung terkini</p>
                        </div>
                        @if($videos->count())
                        <div class="videos-grid">
                            @foreach($videos as $video)
                            @php $vt = $video->translations->first(); @endphp
                            @if($vt)
                            <a href="{{ $video->video_url ?? $video->video_external ?? '#' }}" target="_blank" class="video-card">
                                <div class="video-thumb">
                                    @if($video->video_img)
                                    <img src="{{ image_url($video->video_img) }}" alt="{{ $vt->video_translation_title }}">
                                    @else
                                    <div style="width:100%;height:100%;background:var(--gray-200);display:flex;align-items:center;justify-content:center;color:var(--gray-400);"><i class="far fa-image fa-2x"></i></div>
                                    @endif
                                    <div class="video-play"><i class="fas fa-play"></i></div>
                                </div>
                                <div class="video-info">
                                    <h4>{{ $vt->video_translation_title }}</h4>
                                    <span>{{ \Carbon\Carbon::parse($video->video_date)->format('d M Y') }}</span>
                                </div>
                            </a>
                            @endif
                            @endforeach
                        </div>
                        @else
                        <div style="text-align:center;color:var(--gray-400);padding:20px 0;"><p>Tiada video buat masa ini.</p></div>
                        @endif
                    </div>
                </section>
            
                <!-- ===== ACARA AKAN DATANG ===== -->
                <section class="events-section">
                    <div class="container">
                        <div class="section-title">
                            <h2><span>Acara</span> Akan Datang</h2>
                            <div class="title-line"></div>
                            <p>Jangan ketinggalan program dan aktiviti akan datang</p>
                        </div>
                        @if($events->count())
                        <div class="events-grid">
                            @foreach($events as $event)
                            @php $et = $event->translations->first(); @endphp
                            @if($et)
                            <a href="/{{ $siteSlug }}/calendar-web" class="event-card">
                                <div class="event-date">
                                    <span class="day">{{ \Carbon\Carbon::parse($event->calendar_date_start)->format('d') }}</span>
                                    <span class="month">{{ \Carbon\Carbon::parse($event->calendar_date_start)->format('M Y') }}</span>
                                </div>
                                <h4>{{ $et->calendar_translation_title }}</h4>
                                @if($et->calendar_translation_content)
                                <p>{{ strip_tags(Str::limit($et->calendar_translation_content, 80)) }}</p>
                                @endif
                            </a>
                            @endif
                            @endforeach
                        </div>
                        @else
                        <div style="text-align:center;color:rgba(255,255,255,0.5);padding:20px 0;"><p>Tiada acara akan datang.</p></div>
                        @endif
                    </div>
                </section>
            
                
            
            
            <style>
            .back-to-top {
                position: fixed; bottom: 30px; right: 30px;
                z-index: 999;
                width: 44px; height: 44px;
                border-radius: 50%;
                background: var(--accent);
                color: white;
                border: none;
                cursor: pointer;
                display: flex; align-items: center; justify-content: center;
                font-size: 1.1rem;
                box-shadow: 0 4px 16px rgba(192,72,73,0.35);
                opacity: 0; visibility: hidden;
                transform: translateY(10px);
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }
            .back-to-top.visible {
                opacity: 1; visibility: visible;
                transform: translateY(0);
            }
            .back-to-top:hover {
                transform: translateY(-3px);
                box-shadow: 0 8px 24px rgba(192,72,73,0.5);
            }
            </style>
            <button class="back-to-top" id="backToTop" onclick="window.scrollTo({top:0,behavior:'smooth'})" aria-label="Kembali ke atas">
                <i class="fas fa-arrow-up"></i>
            </button>
            <script>
            document.addEventListener('scroll', function() {
                document.getElementById('backToTop').classList.toggle('visible', window.scrollY > 400);
            });
            </script>
            