<footer class="public-footer">
    <div class="public-shell">
        <div class="footer-card">
            <div class="footer-brand-col">
                <div class="footer-brand">
                    @if(!empty($branding['logo_url']))
                        <img src="{{ $branding['logo_url'] }}" alt="{{ $branding['site_name'] }}" class="brand-logo" />
                    @else
                        <span class="footer-name">{{ $branding['site_name'] ?? 'GPS Migration' }}</span>
                    @endif
                </div>
                <p class="footer-text">{{ $siteSettings['about_message'] ?? ($branding['tagline'] ?: 'Your trusted partner for studying abroad and complete admission guidance.') }}</p>
                @if(!empty($siteSettings['address']))
                    <p class="footer-location">{{ $siteSettings['address'] }}</p>
                @endif
            </div>

            <div>
                <h4>Quick Links</h4>
                <ul>
                    <li><a href="{{ route('countries.index') }}">Study Destinations</a></li>
                    <li><a href="{{ route('services') }}">Services</a></li>
                    <li><a href="{{ route('blogs.index') }}">Blogs</a></li>
                    <li><a href="{{ route('success-stories') }}">Success Stories</a></li>
                    <li><a href="{{ route('events.index') }}">Events</a></li>
                    <li><a href="{{ route('about') }}">About Us</a></li>
                    <li><a href="{{ route('contact') }}">Contact</a></li>
                </ul>
            </div>

            <div>
                <h4>Contact</h4>
                <ul class="footer-contact-list">
                    @if(!empty($siteSettings['phone']))<li><span class="footer-icon">☎</span>{{ $siteSettings['phone'] }}</li>@endif
                    @if(!empty($siteSettings['email']))<li><span class="footer-icon">✉</span>{{ $siteSettings['email'] }}</li>@endif
                </ul>
            </div>
        </div>

        <div class="footer-copy">
            &copy; {{ date('Y') }} {{ $branding['site_name'] ?? 'GPS Migration' }}. All rights reserved.
            <span class="mx-2">|</span>
            Powered by <a href="https://softalab.com/" target="_blank" rel="noopener noreferrer" class="font-semibold hover:underline">SoftaLab</a>
        </div>
    </div>
</footer>
