@extends('frontend.layout.master')
@section('title', $pageTitle)
@section('content')

<style>
       

        h3 {
            text-wrap: balance;
            text-decoration: underline;
            text-underline-offset: 6px;
            text-decoration-thickness: 2px;
            margin-bottom: 30px;
        }

        .faq-inner-div-1 details {
            border: 1px solid rgba(112, 112, 112, 0.1);
            border-radius: 4px;
            padding: 0.5em 0.5em 0;
            margin-bottom: 10px;
            cursor: pointer;
        }

        .faq-inner-div-1 summary {
            font-weight: 600;
            margin: -0.5em -0.5em 0;
            padding: 0.5em;
            list-style-type: "+";
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-inner-div-1 details[open] {
            padding: 0.5em;
            border: none;
            background-color: #0981ca2e;
             padding: 16px;
        }

        .faq-inner-div-1  summary::marker {
            color: #0000ff;
            font-size: 1.2em;
            margin-right: 20px;
        }

        .faq-inner-div-1 details:hover {
            background-color: #0981ca2e;
        }

        .faq-inner-div-1 details summary::after {
            content: "+";
            float: right;
            font-size: 1.2em;
            color: green;
        }

        .faq-inner-div-1 details[open]  summary::after {
            content: "-";
            float: right;
            font-size: 1.5em;
            color: green;
        }
    </style>

    <div class="nk_about_div_1">
        <div class="nk_about_div_2" style="background-image: url({{ url('/') }}/frontend/img/about-banner.png);">
            <div class="nk_about_div_3">
                <div class="nk_about_div_4">
                    <p class="nk_about_p_1">FAQ</p>
                </div>
            </div>
        </div>
      

        <div class="faq-div-new py-5">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">

                    <div class="faqs-container">
    @foreach($allfaq as $faq)
        <div class="faq-inner-div-1">
            <details name="faq">
                <summary>
                    {{ $faq->question }} <!-- Assuming 'question' is the column name for the FAQ question -->
                </summary>
                <p class="content">
                    {{ $faq->answare }} <!-- Assuming 'answer' is the column name for the FAQ answer -->
                </p>
            </details>
        </div>
    @endforeach
</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

@endsection