<div class="container">

    <div class="slider-hero-img-outline">
        <div class="slider-hero-box"
            style="background-image: url('{{ asset('storage/' . $about->background_image) }}'); background-size: cover; background-position: center;">
            <div class="slider-hero-card">
                <div class="slider-hero-card-bar"></div>
                <div class="slider-hero-card-text">
                    {{ $about->short_description }}
                </div>
            </div>
        </div>
    </div>

    <!-- About Us Section -->
    <div class="section">
        <div class="section-title">{{ $about->main_title }}</div>
        <div class="about-row">
            <div class="about-vertical-line"></div>
            <div class="about-texts">
                <div class="about-content">
                    {{ $about->about_description }}
                </div>
            </div>
        </div>
        @php
            $mission = $about->additional_sections;
        @endphp
        <div class="mission-vision-row">
            @foreach ($mission as $section)
                <div class="mission-vision-box">
                    <div class="mission-vision-title">{{ $section['title'] }}</div>
                    <div>{{ $section['description'] }}</div>
                </div>
            @endforeach
        </div>
    </div>

</div>


<style>
    /* Responsive styles for top content section */
    @media (max-width: 1200px) {
        .container {
            padding: 0 30px;
        }
        .slider-hero-box {
            min-height: 500px;
        }
        .slider-hero-card {
            max-width: 600px;
            padding: 40px 30px;
        }
        .section {
            padding: 60px 0;
        }
        .mission-vision-row {
            gap: 30px;
        }
    }

    @media (max-width: 900px) {
        .container {
            padding: 0 24px;
        }
        .slider-hero-box {
            min-height: 450px;
        }
        .slider-hero-card {
            max-width: 500px;
            padding: 35px 25px;
        }
        .slider-hero-card-text {
            font-size: 1.1rem;
            line-height: 1.6;
        }
        .section {
            padding: 50px 0;
        }
        .section-title {
            font-size: 1.8rem;
            margin-bottom: 30px;
        }
        .about-row {
            gap: 30px;
        }
        .about-content {
            font-size: 0.95rem;
            line-height: 1.6;
        }
        .mission-vision-row {
            flex-direction: column;
            gap: 25px;
        }
        .mission-vision-box {
            padding: 25px 20px;
        }
    }

    @media (max-width: 700px) {
        .container {
            padding: 0 20px;
        }
        .slider-hero-box {
            min-height: 400px;
        }
        .slider-hero-card {
            max-width: 450px;
            padding: 30px 20px;
        }
        .slider-hero-card-text {
            font-size: 1rem;
            line-height: 1.5;
        }
        .section {
            padding: 40px 0;
        }
        .section-title {
            font-size: 1.6rem;
            margin-bottom: 25px;
        }
        .about-row {
            gap: 25px;
        }
        .about-vertical-line {
            width: 3px;
        }
        .about-content {
            font-size: 0.9rem;
            line-height: 1.5;
        }
        .mission-vision-box {
            padding: 20px 16px;
        }
        .mission-vision-title {
            font-size: 1.1rem;
            margin-bottom: 12px;
        }
    }

    @media (max-width: 480px) {
        .container {
            padding: 0 16px;
        }
        .slider-hero-box {
            min-height: 350px;
        }
        .slider-hero-card {
            max-width: 100%;
            padding: 25px 16px;
        }
        .slider-hero-card-text {
            font-size: 0.9rem;
            line-height: 1.4;
        }
        .section {
            padding: 30px 0;
        }
        .section-title {
            font-size: 1.4rem;
            margin-bottom: 20px;
        }
        .about-row {
            gap: 20px;
        }
        .about-vertical-line {
            width: 2px;
        }
        .about-content {
            font-size: 0.85rem;
            line-height: 1.4;
        }
        .mission-vision-row {
            gap: 20px;
        }
        .mission-vision-box {
            padding: 18px 14px;
        }
        .mission-vision-title {
            font-size: 1rem;
            margin-bottom: 10px;
        }
        .mission-vision-box div:last-child {
            font-size: 0.85rem;
            line-height: 1.4;
        }
    }

    @media (max-width: 360px) {
        .container {
            padding: 0 12px;
        }
        .slider-hero-box {
            min-height: 300px;
        }
        .slider-hero-card {
            padding: 20px 12px;
        }
        .slider-hero-card-text {
            font-size: 0.85rem;
            line-height: 1.3;
        }
        .section {
            padding: 25px 0;
        }
        .section-title {
            font-size: 1.2rem;
            margin-bottom: 18px;
        }
        .about-row {
            gap: 16px;
        }
        .about-content {
            font-size: 0.8rem;
            line-height: 1.3;
        }
        .mission-vision-row {
            gap: 16px;
        }
        .mission-vision-box {
            padding: 16px 12px;
        }
        .mission-vision-title {
            font-size: 0.95rem;
            margin-bottom: 8px;
        }
        .mission-vision-box div:last-child {
            font-size: 0.8rem;
            line-height: 1.3;
        }
    }

    /* Ensure slider hero card bar is responsive */
    @media (max-width: 480px) {
        .slider-hero-card-bar {
            height: 4px;
            margin-bottom: 15px;
        }
    }

    @media (max-width: 360px) {
        .slider-hero-card-bar {
            height: 3px;
            margin-bottom: 12px;
        }
    }

    /* Ensure about vertical line is responsive */
    @media (max-width: 700px) {
        .about-vertical-line {
            min-height: 200px;
        }
    }

    @media (max-width: 480px) {
        .about-vertical-line {
            min-height: 150px;
        }
    }

    @media (max-width: 360px) {
        .about-vertical-line {
            min-height: 120px;
        }
    }
    </style>
