/*
 * This CSS is for the Prottyashi Program Grid widget.
 * It is now fully responsive for mobile, tablet, and desktop.
 */

/* Main Grid Container for Desktop (3 columns) */
.prottyashi-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

/* Individual Post Card */
.prottyashi-post-card {
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.prottyashi-post-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Image Container */
.prottyashi-card-image {
    position: relative;
    padding-bottom: 66.66%; /* 3:2 Aspect Ratio */
    background-size: cover;
    background-position: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Category Bar on top of the image */
.prottyashi-card-category-bar {
    position: absolute;
    bottom: -20px;
    left: 10%;
    width: 80%;
    background-color: #007A09;
    color: #fff;
    text-align: center;
    padding: 3px 0;
    font-weight: 500;
    font-size: 14px;
    /*text-transform: uppercase;*/
    /*letter-spacing: 1px;*/
}

/* Content below the image */
.prottyashi-card-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/* Title Styling */
 h3.prottyashi-card-title{
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    color: #333;
    margin: 15px 0 15px 0;
    /*text-align: justify;*/
    padding: 0px 10px 0px 10px;
    /*line-height: 1.3;*/
    /*letter-spacing: 0.5px;*/
}

 h3.prottyashi-card-title:hover{
      color: #007a09;
 }

/* Read More Button Wrapper for bottom alignment */
.prottyashi-card-footer {
    margin-top: auto;
}

/* Read More Link */
.prottyashi-card-read-more {
    display: inline-block;
    color: #007A09;
    border: 1px solid #007A09;
    padding: 0px 5px 0px 5px ;
    margin: 0px 0px 0px 10px;
    border-radius: 1px;
    /*text-decoration: none;*/
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
       text-decoration: none !important;
}

.prottyashi-card-read-more:hover {
    background-color: #007A09;
    color: #fff;
    text-decoration: none; 
}

/* --- Responsive Design Media Queries --- */

/* Tablet Layout (2 columns) */
@media (max-width: 992px) {
    .prottyashi-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Layout (1 column) */
@media (max-width: 768px) {
    .prottyashi-grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}