/* 🔹 Text & Image Container */
.text-image-container {
    display: flex;
    align-items: flex-start;;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping for small screens */
    margin-bottom: 40px;
    gap: 40px; /* Increase spacing for better readability */
}

/* 🔹 Text Section */
.text {
    flex: 1;
    width: 90%;
    max-width: 700px; /* Better balance between text and image */
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: left; /* Center align for small screens */
    margin: 0 auto;
}

/* 🔹 Image Section */
.content-img {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 600px;
}

.content-img img {
    width: 100%;
    max-width: 700px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* 🔹 Image Hover Effect (Enhanced) */
.content-img img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 🔹 Responsive Design - Medium Screens */
@media (max-width: 1024px) {
    .text {
        width: 100%;
        max-width: 500px; /* Adjust text width for better readability */
    }
    .content-img {
        flex: 0.8;
    }
    .content-img img {
        max-width: 500px;
        max-height: 350px;
    }
}

/* 🔹 Responsive Design - Small Screens */
@media (max-width: 768px) {
    .text-image-container {
        flex-direction: column; /* Stack text and image */
        text-align: center;
        gap: 20px;
    }

    .text {
        width: 100%;
        font-size: 16px; /* Slightly smaller text */
        padding: 15px;
        text-align: justify;
    }

    .content-img {
        justify-content: center;
        margin-top: 10px;
    }

    .content-img img {
        max-width: 90%;
        max-height: 350px; /* Ensures images don't stretch */
        object-fit: cover;
    }
}

/* 🔹 Additional Enhancements */
.text h2 {
    font-size: 28px;
    color: #0056b3; /* Highlighted heading */
    margin-bottom: 15px;
}

.text p {
    font-size: 18px;
    color: #555;
}

/* 🔹 Style for bullet points */
.custom-list {
    list-style-type: disc;
    padding-left: 30px;
    margin-top: 10px;
}

.custom-list li {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 5px;
}
