/* Projects container styling */
.project_container {
    padding: 20px;
    background-color: #f5f5f5;
    /* or any desired color */
    display: flex;
    flex-wrap: wrap;
    /* allows the flex items to wrap */
    justify-content: space-between;
    /* provides spacing between the projects */

}

.jobs {
    margin: auto;
}


h2 {
    margin-top: 30px;
}


article {
    flex-basis: calc(33.3333% - 20px);
    /* this takes up one third of the container's width minus 20px for the margin */
    margin: 10px;
    padding: 10px 10px 10px 10px;
    /* margin around each project */
    background-color: #ffffff;
    /* white background for each card */
    border: 1px solid #e0e0e0;
    /* light border around each card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* subtle shadow */
    /* spacing between cards */
}

.article_text {
    padding-left: 5px;
    padding-right: 5px;
}

article img {
    width: 100%;
    /* make the image span the entire width of the card */
    height: auto;
    margin-bottom: 15px;
    /* space below the image */
}

article video {
    width: 100%;
    /* make the image span the entire width of the card */
    height: auto;
    margin-bottom: 15px;
    /* space below the image */
}

article h2 {
    font-size: 20px;
    margin-bottom: 10px;
    /* space below the title */
}

article p {
    font-size: 16px;
    color: #666;
    /* slightly grayish text */
    margin-bottom: 10px;
    /* space below the description */
}

article ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-bottom: 15px;
    /* space below the authors list */
}

article ul li {
    font-size: 14px;
    color: #888;
    /* even more grayish text for authors */
}

article a {
    font-size: 16px;
    color: #76b900;
    /* link color similar to bootstrap default */
    text-decoration: none;
    margin-left: 5px;
    margin-right: 5px;
    /* spacing between the "Project" and "Video" links */
    padding-bottom: 2px;
}

article a:hover {
    text-decoration: underline;
    /* add underline on hover for better UX */
}

article p sup {
    font-size: 10px;
}

.products-section {
    position: relative;
    /* allows absolute positioning within */
    width: 100%;
    /* or a specific width */
    overflow: hidden;
    /* hides the overflowing sessions */
}

.products-slider {
    display: flex;
    /* lays out sessions side-by-side */
    /* white-space: nowrap; */
    /* prevents wrapping */
    overflow-x: auto;
    /* horizontal scroll */
    scrollbar-width: thin;
    /* optional: thinner scrollbar for some browsers */
    scroll-padding: 0 20%;
    /* gives some padding during scroll snapping */
    scroll-snap-type: x mandatory;
    /* enables horizontal scroll snapping */
}

.product {
    height: 300px;
    flex-basis: calc(33.3333% - 20px);
    /* does not grow or shrink */
    width: calc(100% / 3);
    /* 3 sessions visible at a time */
    scroll-snap-align: start;
    /* aligns to the start edge */
    box-sizing: border-box;
    /* padding and borders included in width */
    padding: 10px;
    /* adjust as needed */
    /* additional styles for layout, colors, etc. */
}

.product img,
.product video {
    /* make the image span the entire width of the card */
    height: 80%;
    /* margin-bottom: 15px; */
    /* space below the image */
    display: block;
    margin: 0 auto;
}

.product p {
    width: 100%;
    font-size: 16px;
    color: #666;
    /* slightly grayish text */
    margin-bottom: 10px;
    /* space below the description */
}


/* Media query for mobile and tablet screens */
@media only screen and (max-width: 768px) {

    /* Adjust the projects container */
    .project_container {
        flex-direction: column;
    }

    /* Adjust each article to span the full width of the container */
    article {
        flex-basis: 100%;
        margin: 10px 0;
        /* Adjust margin */
    }

    /* Adjust product slider for mobile */
    .products-slider {
        flex-direction: column;
    }

    /* Adjust product to span the full width of the container */
    .product {
        flex-basis: 100%;
        width: 100%;
        /* Adjust width */
    }

    /* Adjust images inside products */
    .product img,
    .product video {
        width: 100%;
        height: auto;
    }

    /* Adjust font sizes for better readability on mobile */
    article h2 {
        font-size: 18px;
    }

    article p,
    article a {
        font-size: 14px;
    }

    article ul li {
        font-size: 12px;
    }

    .article_text {
        padding-left: 15px;
        padding-right: 15px;
    }
}