
<?php
    $full     = $full     ?? false;
    $title    = $title    ?? 'Learn Smarter.<br><span class="text-[#ED1C24]">Achieve</span> More.';
    $subtitle = $subtitle ?? 'Expert university-qualified teachers. Modern learning methods. A community that cares — from Grade 1 to 13.';
    $teachers = $teachers ?? collect();
?>

<section class="<?php echo e($full ? 'min-h-screen' : ''); ?>">

    
    <div class="lg:hidden relative <?php echo e($full ? 'min-h-screen' : 'min-h-[340px]'); ?> flex items-center bg-[#111] overflow-hidden">
        <img src="<?php echo e(asset('images/classroom-hero.jpg')); ?>" alt="SMART Academy"
             class="absolute inset-0 w-full h-full object-cover <?php echo e($full ? 'opacity-30' : 'opacity-20'); ?>">
        <div class="absolute inset-0 bg-gradient-to-br from-[#111]/95 via-red-950/55 to-[#111]"></div>
        <div class="relative z-10 px-7 <?php echo e($full ? 'pt-32 pb-20' : 'pt-28 pb-14'); ?> w-full">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($full): ?>
                <div class="flex flex-wrap gap-2 mb-6">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = ['Grade 1–13', '10 Subjects', '1,200+ Students']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $badge): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <span class="bg-red-600/25 border border-red-500/40 text-red-300 rounded-full px-4 py-1 text-xs font-semibold"><?php echo e($badge); ?></span>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            <h1 class="text-[clamp(32px,9vw,56px)] font-black text-white leading-[1.06] mb-5">
                <?php echo $title; ?>

            </h1>
            <p class="text-base text-white/70 leading-relaxed mb-9 max-w-sm"><?php echo e($subtitle); ?></p>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($full): ?>
                <div class="flex flex-col gap-3">
                    <a href="<?php echo e(route('login')); ?>"
                       class="bg-[#ED1C24] text-white rounded-full px-8 py-4 font-bold text-base text-center shadow-[0_8px_30px_rgba(237,28,36,0.5)] hover:bg-red-700 transition-colors flex items-center justify-center gap-2">
                        Access Student Portal
                        <svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" viewBox="0 0 24 24"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
                    </a>
                    <a href="/teachers" class="bg-white/10 border border-white/30 text-white rounded-full px-8 py-4 font-semibold text-base text-center backdrop-blur-sm hover:bg-white/20 transition">
                        Meet Our Teachers
                    </a>
                </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </div>

    
    <div class="hidden lg:grid grid-cols-2 <?php echo e($full ? 'min-h-screen' : 'min-h-[420px]'); ?>">
        
        <div class="bg-[#111] flex flex-col justify-center px-16 <?php echo e($full ? 'py-24' : 'py-20'); ?> relative">
            <div class="absolute left-0 top-1/5 bottom-1/5 w-1 bg-gradient-to-b from-transparent via-[#ED1C24] to-transparent rounded-full"></div>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($full): ?>
                <div class="flex flex-wrap gap-2.5 mb-8">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = ['Grade 1–13', '10 Subjects', '1,200+ Students']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $badge): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <span class="bg-red-600/20 border border-red-600/35 text-red-300 rounded-full px-4 py-1.5 text-xs font-bold tracking-wide"><?php echo e($badge); ?></span>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            <h1 class="text-[clamp(36px,4vw,64px)] font-black text-white leading-[1.05] mb-6">
                <?php echo $title; ?>

            </h1>
            <p class="text-lg text-white/70 leading-[1.8] mb-11 max-w-md"><?php echo e($subtitle); ?></p>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($full): ?>
                <div class="flex items-center gap-4 flex-wrap">
                    <a href="<?php echo e(route('login')); ?>"
                       class="bg-[#ED1C24] text-white rounded-full px-10 py-4 font-bold text-base shadow-[0_8px_30px_rgba(237,28,36,0.5)] hover:bg-red-700 transition-colors flex items-center gap-2.5">
                        Access Student Portal
                        <svg class="w-[18px] h-[18px]" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" viewBox="0 0 24 24"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
                    </a>
                    <a href="/teachers" class="border border-white/25 text-white/80 rounded-full px-8 py-4 font-semibold text-base hover:border-white/50 transition">
                        Meet Our Teachers
                    </a>
                </div>
                <div class="flex gap-9 mt-14 pt-9 border-t border-white/10">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = [['1,200+','Students'],['10','Subjects'],['18 Yrs','Max Experience']]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as [$n,$l]): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <div>
                            <div class="text-2xl font-black text-white"><?php echo e($n); ?></div>
                            <div class="text-xs text-white/50 mt-1"><?php echo e($l); ?></div>
                        </div>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
        
        <div class="relative overflow-hidden h-full">
            <img src="<?php echo e(asset('images/classroom-hero.jpg')); ?>" alt="SMART Academy classroom"
                 class="absolute inset-0 w-full h-full object-cover object-center">
            <div class="absolute inset-0 bg-gradient-to-r from-[#111]/60 via-red-950/25 to-transparent"></div>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($full && $teachers->isNotEmpty()): ?>
                <div class="absolute bottom-10 left-8 right-8">
                    <div class="bg-[#111]/85 backdrop-blur-xl rounded-2xl p-5 border border-white/10">
                        <div class="text-[11px] text-white/50 mb-3 font-semibold tracking-widest">OUR TEACHERS</div>
                        <div class="flex items-center gap-2">
                            <div class="flex">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $teachers->take(6); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $teacher): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                                    <div class="w-9 h-9 rounded-full overflow-hidden border-2 border-[#222] <?php echo e($i > 0 ? '-ml-2.5' : ''); ?> bg-gray-600">
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($teacher->photo): ?>
                                            <img src="<?php echo e(asset('images/' . $teacher->photo)); ?>" alt="<?php echo e($teacher->name); ?>"
                                                 class="w-full h-full object-cover object-top">
                                        <?php else: ?>
                                            <div class="w-full h-full flex items-center justify-center text-white font-bold text-xs bg-red-700"><?php echo e(substr($teacher->name, 0, 1)); ?></div>
                                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                    </div>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                            </div>
                            <span class="ml-2 text-white/80 text-sm font-semibold">+<?php echo e(max(0, $teachers->count() - 6)); ?> Expert Teachers</span>
                        </div>
                    </div>
                </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </div>

</section>
<?php /**PATH D:\Supun\smart academy\smart-academy\resources\views/website/partials/hero.blade.php ENDPATH**/ ?>