

.projcard-container {
    margin: 50px auto;
    width: 100%;
    max-width: 1000px; /* Ensure container doesn't exceed viewport width */
}

.projcard {
    position: relative;
    width: 100%;
    height: auto; /* Adjust height for better fit on smaller screens */
    margin-bottom: 40px;
    border-radius: 10px;
    border: 2px solid #ddd;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 21px -12px rgba(0, 0, 0, .66);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    

}

.projcard-description{
min-height:80px;
}

.projcard-container .btn{
margin-bottom:10px;
}


.projcard-tagbox
{
margin-top:20px;
}

.projcard:hover {
    box-shadow: 0 34px 32px -33px rgba(0, 0, 0, .18);
    transform: translate(0px, -3px);
}

/* Style for the first .projcard and every other one (1st, 3rd, 5th, etc.) */
.projcard:nth-child(odd)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(-70deg, #DA9743, transparent 50%);
    opacity: 0.07;
}

/* Style for the second .projcard and every other one (2nd, 4th, 6th, etc.) */
.projcard:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(-250deg, #DA9743, transparent 50%);
    opacity: 0.07;
}




.projcard-innerbox {
    position: relative;
    width: 100%;
    height: auto;
}

.projcard-img {
    display: block;
    width: 100%;
    height: auto; /* Maintain aspect ratio */
}

.projcard-textbox {
    position: relative;
    padding: 10px;
}

.projcard-title {
    font-family: 'Voces', 'Open Sans', arial, sans-serif;
    font-size: 24px;
    color:#374253;
}

.projcard-subtitle {
    font-family: 'Voces', 'Open Sans', arial, sans-serif;
    color: #374253;
}

.projcard-bar {
    width: 50px;
    height: 5px;
    margin: 10px 0;
    border-radius: 5px;
	background-color: #DA9743;
    transition: width 0.2s ease;
}


@media (max-width: 992px) {
      .projcard
      {
max-width:450px;      
margin-left:auto;
margin-right:auto;

}

.projcard:hover {
     box-shadow: none;
        transform: none;
}

}



/* Desktop Styles */
@media (min-width: 992px) {
    .projcard {
        min-height: 300px;
    }

    .projcard-img {
    position: absolute;
    height: 300px;
    width: 400px;
    top: 0;
    left: 0;
    object-fit: cover; /* This property ensures the image covers the container without stretching */
    transition: transform 0.2s ease;
}

    .projcard-textbox {
        position: absolute;
        top: 7%;
        bottom: 7%;
        left: 430px;
        width: calc(100% - 470px);
        font-size: 17px;
    }
    
    .projcard:nth-child(2n) .projcard-img {
        left: initial;
        right: 0;
    }

    .projcard:nth-child(2n) .projcard-textbox {
        left: initial;
        right: 430px;
    }
}
