

    <div class="student-life-container" style="background-image: url('{{ asset('storage/' . $studentLife->background_image) }}');">
        <div class="student-life-content">
            <div class="student-life-headings">
                <h1 class="student-life-title">{{ $studentLife->main_title }}</h1>
                <p class="student-life-subtitle">{{ $studentLife->text }}</p>
            </div>
        </div>
    </div>
    <div class="triangle-shape"></div>
    <div class="student-life-blue-shape">
            <div class="student-life-description">
                <p>{{ $studentLife->description }}</p>
            </div>
    </div>

<style>
    .student-life-container {
        margin-top: 120px;
        position: relative;
        width: 100%;
        aspect-ratio: 16/9;
        background-size: cover;
        background-position: center;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .student-life-content {
        padding: 5rem;
        color: white;
        z-index: 2;
    }

    .student-life-headings {
        max-width: 70%;
    }

    .student-life-title {
        font-size: 4.5rem;
        font-weight: 800;
        color: #FFA500;
        text-transform: uppercase;
        margin: 0;
    }

    .student-life-subtitle {
        font-size: 1.5rem;
        margin-top: 1rem;
        color: #f1f1f1;
    }
    .triangle-shape {
    position: relative;
    margin-top: -13%;
    width: 100%;         /* or 100% if you want it relative to parent */
    height: 125px;        /* adjust to match your image's height */
    background: #004675;  /* use the orange color from your image */
    clip-path: polygon(0 70%, 70% 0, 100% 70%, 100% 100%, 0% 100%);
    z-index: 5;
}


    .student-life-blue-shape {
        width: 100%;
        height: 45%;
        background-color: #004675;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -10px;
    }

    .student-life-description {
        font-family: Poppins;
        font-weight: 400;
        font-size: 16px;
        line-height: 28px;
        letter-spacing: 0px;
        text-align: justify;
        color: #F8F8F8;
        padding: 3rem 5rem;

    }

    .student-life-description p {
        font-size: 1rem;
        line-height: 1.7;
        padding-top: 2rem;
    }

      /* Enhanced responsive styles */
      @media (max-width: 1200px) {
        .student-life-container {
            aspect-ratio: 16/10;
        }
        .student-life-content {
            padding: 4rem;
        }
        .student-life-headings {
            max-width: 80%;
        }
        .student-life-title {
            font-size: 3.5rem;
        }
        .student-life-subtitle {
            font-size: 1.2rem;
        }
        .student-life-blue-shape {
            height: 50%;
        }
        .student-life-description {
            padding: 2.5rem 4rem;
            font-size: 15px;
        }
        .student-life-description p {
            font-size: 0.95rem;
            padding-top: 1.5rem;
        }
        .triangle-shape {
            height: 100px;
        }
    }

    @media (max-width: 900px) {
        .student-life-content {
            padding: 3rem;
        }
        .student-life-headings {
            max-width: 100%;
        }
        .student-life-title {
            font-size: 2.8rem;
        }
        .student-life-subtitle {
            font-size: 1rem;
        }
        .student-life-blue-shape {
            height: 60%;
        }
        .student-life-description {
            padding: 2rem 2rem;
            font-size: 14px;
        }
        .student-life-description p {
            font-size: 0.9rem;
            padding-top: 1rem;
        }
        .triangle-shape {
            height: 80px;
        }
    }

    @media (max-width: 768px) {
        .student-life-container {
            aspect-ratio: 16/12;
            height: auto;
        }
        .student-life-content {
            padding: 2rem;
        }
        .student-life-title {
            font-size: 2rem;
        }
        .student-life-subtitle {
            font-size: 0.95rem;
        }
        .student-life-blue-shape {
            height: auto;
        }
        .student-life-description {
            padding: 1.2rem 1rem;
            font-size: 13px;
        }
        .student-life-description p {
            font-size: 0.85rem;
            padding-top: 0.7rem;
        }
        .triangle-shape {
            height: 60px;
        }
    }

    @media (max-width: 600px) {
        .student-life-container {
            aspect-ratio: 16/14;
        }
        .student-life-content {
            padding: 1rem;
        }
        .student-life-title {
            font-size: 1.3rem;
        }
        .student-life-subtitle {
            font-size: 0.8rem;
        }
        .student-life-description {
            padding: 0.8rem 0.5rem;
            font-size: 12px;
        }
        .student-life-description p {
            font-size: 0.8rem;
            padding-top: 0.5rem;
        }
        .triangle-shape {
            height: 40px;
        }
    }

    @media (max-width: 400px) {
        .student-life-container {
            aspect-ratio: 1/1;
        }
        .student-life-content {
            padding: 0.5rem;
        }
        .student-life-title {
            font-size: 1rem;
        }
        .student-life-subtitle {
            font-size: 0.7rem;
        }
        .student-life-description {
            padding: 0.4rem 0.2rem;
            font-size: 11px;
        }
        .student-life-description p {
            font-size: 0.7rem;
            padding-top: 0.3rem;
        }
        .triangle-shape {
            height: 25px;
        }
    }

    @media (max-width: 360px) {
        .student-life-container {
            aspect-ratio: 1/1.2;
        }
        .student-life-content {
            padding: 0.2rem;
        }
        .student-life-title {
            font-size: 0.8rem;
        }
        .student-life-subtitle {
            font-size: 0.6rem;
        }
        .student-life-description {
            padding: 0.2rem 0.1rem;
            font-size: 10px;
        }
        .student-life-description p {
            font-size: 0.6rem;
            padding-top: 0.1rem;
        }
        .triangle-shape {
            height: 15px;
        }
    }
</style>
