/* General Section Styles */
.software-hero_section {
    background-color: var(--section-bg-color);
    padding: 2rem 0;
}

/* Section Title Styling */
.section__title,
.software_description {
    font-size: 34px;
    font-weight: 600;
    width: 59%;
}

/* Project Card Styling */
.project {
    background-color: #fff;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px;
    height: 689px; /* Adjusted height based on UI */
    width: 400px; /* Increase the card width */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    margin: 0 auto; /* Center the card */
}

/* Project Card Title */
.web_name {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    text-align: right;
}

/* Project Card Description */
.project p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.5;
}

/* Project Card Image */
.project__image {
    width: 100%; /* Full width of the card */
    height: 300px; /* Adjust height */
    overflow: hidden;
    border-radius: 10px; /* Rounded corners */
    position: relative;
    display: block;
}

.project__image img {
    width: 100%; /* Fit the full width of the container */
    height: 100%; /* Fill the height of the container */
    object-fit: cover; /* Ensure proper cropping without distortion */
    display: block; /* Avoid inline gaps */
}

/* Image Overlay Layer */
.layer {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 27.1%,
        rgba(0, 0, 0, 0.7) 87.11%
    );
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease; /* Smooth transition */
}

.project__image:hover .layer {
    opacity: 1; /* Reveal overlay on hover */
}

/* Link on Overlay */
.layer a {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.layer a i {
    font-size: 16px;
}

/* Services Section */
.software_service {
    background-color: #fff;
    padding: 1rem 1rem 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;

    align-items: start;
    gap: 1rem;
    height: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Add shadow for uniformity */
}
.software_service .software_service-description{
    flex-grow: 1;
}
.software_service-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #dde2f380;
}

.software_service-image img {
    width: 95%;
    object-fit: contain;
}

.software_service_name {
    font-size: 22px;
    font-weight: 600;
}

/* Swiper Heights */
.projects {
    height: auto; /* Dynamic height for better responsiveness */
}

.comments {
    height: 230px;
}

/* Pagination Bullets */
.swiper-pagination-bullet {
    width: 12px;
    height: 6px;
    border-radius: 4px;
    background: var(--main-color) !important;
    border: 1px solid var(--main-color);
}

.swiper-pagination-bullet-active {
    width: 30px;
    height: 6px;
    border-radius: 4px;
}


/* Recommended Projects Section */
.recommended__projects {
    padding: 3.5rem 0 2rem 0;
    background-image: url(../assets/media/pattern/background-remommended-course.png);
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
}

/* Service Cards */
.home-services{
    padding: 0 !important;
}
.home-services .home-services__card{
    height: 180px;
}
.home-services__container-card {
    padding-bottom: 20px;
    background-color: var(--primary-light-color);
    border-radius: var(--primary-border-radius);
}

.home-services__card {
    background-color: #fefcfb;
    border-radius: var(--primary-border-radius) var(--primary-border-radius) 20%
        0%;
    padding: 20px 0;
    box-shadow: 0px 0px 6px rgba(34, 67, 164, 0.1);
    height: 210px;
}

/* Service Card Image */
.home-services__img {
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    width: 70px !important;
    height: 70px !important;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid var(--primary-light-color);
    box-shadow: 0px 0px 6px rgba(34, 67, 164, 0.1);
    transition: 0.3s;

}

.home-services__card:hover .home-services__img {
    border: 1px solid var(--main-color);
}

/* Service Card Title */
.home-services__title {
    font-size: 22px;
    font-weight: 600;
    line-height: 41.23px;
    color: var(--main-text-Color);
}

.home-services__subtitle {
    font-size: 16px;
    font-weight: 600;
    line-height: 29.98px;
    color: var(--gray-color);
}

@media (max-width: 768px) {

    .software_solution {
        background-image: url("../assets/media/pattern/bg-profile-page.png");
        background-size: cover;
        background-repeat: no-repeat;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: end;
        align-items: start;
        padding: 2rem 0;
        padding-top: 8rem;
    }
    .section__title {
        width: 100%;
        margin-top: 4rem;
    }

    .project {
        height: auto; /* Adjust card height */
    }

    .project__image {
        height: 200px; /* Smaller image height */
    }

    .layer a {
        font-size: 16px;
        bottom: 10px;
        right: 10px;
    }

    .showall_button {
        display: block;
    }

    .showall-head {
        display: none;
    }

    .software_description {
        font-size: 24px !important;
        font-weight: 600;
        width: 100%;
    }
}
