<div class="alumni-section">
    <div class="alumni-image-wrapper">
        <img src="{{ asset('storage/' . $alumni->background_image) }}" alt="alumni-top-image" class="alumni-image">
    </div>
    <div class="alumni-content-box">
        <h2 class="alumni-title">{{ $alumni->main_title }}</h2>
        <p class="alumni-description">{{ $alumni->main_description }}</p>
    </div>
</div>
<style>
.alumni-section {
    margin-top: 120px;
    position: relative;
    width: 100%;
    min-height: 800px;
    background: #f5f5f5;
    margin-bottom: 80px;
}
.alumni-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.alumni-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.alumni-content-box {
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 32px 24px;
    text-align: center;
    z-index: 2;
}
.alumni-title {
    color: #1e8dd2;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10%;
}
.alumni-description {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
/* Enhanced responsive styles */
@media (max-width: 1200px) {
    .alumni-section {
        margin-top: 100px;
        min-height: 700px;
        margin-bottom: 70px;
    }
    .alumni-content-box {
        width: 85%;
        max-width: 800px;
        padding: 28px 20px;
        bottom: -35px;
    }
    .alumni-title {
        font-size: 1.25rem;
        margin-bottom: 8%;
    }
    .alumni-description {
        font-size: 0.98rem;
        line-height: 1.6;
    }
}

@media (max-width: 900px) {
    .alumni-section {
        margin-top: 80px;
        min-height: 600px;
        margin-bottom: 60px;
    }
    .alumni-content-box {
        width: 90%;
        max-width: 700px;
        padding: 24px 18px;
        bottom: -30px;
    }
    .alumni-title {
        font-size: 1.2rem;
        letter-spacing: 1.5px;
        margin-bottom: 7%;
    }
    .alumni-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 700px) {
    .alumni-section {
        margin-top: 60px;
        min-height: 500px;
        margin-bottom: 50px;
    }
    .alumni-content-box {
        width: 95%;
        padding: 20px 8px;
        bottom: -25px;
    }
    .alumni-image-wrapper {
        height: 140px;
    }
    .alumni-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
        margin-bottom: 6%;
    }
    .alumni-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 600px) {
    .alumni-section {
        margin-top: 50px;
        min-height: 400px;
        margin-bottom: 40px;
    }
    .alumni-content-box {
        width: 96%;
        padding: 18px 6px;
        bottom: -20px;
    }
    .alumni-image-wrapper {
        height: 120px;
    }
    .alumni-title {
        font-size: 1rem;
        letter-spacing: 0.5px;
        margin-bottom: 5%;
    }
    .alumni-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .alumni-section {
        margin-top: 40px;
        min-height: 350px;
        margin-bottom: 35px;
    }
    .alumni-content-box {
        width: 98%;
        padding: 16px 4px;
        bottom: -15px;
    }
    .alumni-image-wrapper {
        height: 100px;
    }
    .alumni-title {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        margin-bottom: 4%;
    }
    .alumni-description {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 360px) {
    .alumni-section {
        margin-top: 30px;
        min-height: 300px;
        margin-bottom: 30px;
    }
    .alumni-content-box {
        width: 99%;
        padding: 14px 3px;
        bottom: -12px;
    }
    .alumni-image-wrapper {
        height: 80px;
    }
    .alumni-title {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        margin-bottom: 3%;
    }
    .alumni-description {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Ensure proper border radius on smaller screens */
@media (max-width: 480px) {
    .alumni-content-box {
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    .alumni-content-box {
        border-radius: 6px;
    }
}
</style>
