/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.pg-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Card styles */
.pg-card {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease-in;
}

.pg-card:hover {
    transform: scale(1.01);
}

.pg-card-inner {
    display: flex;
    flex-direction: column;
    background-color: #333;
    border-radius: 15px;
    overflow: hidden;
    transition: outline 0.3s ease-in;
}

.pg-card:hover {
    outline: 1px solid #8a2be2; /* Purple outline on hover */
    border-radius: 15px;
}

/* Image styles */
.pg-image-container {
    width: 100%;
    position: relative;
    padding-top: 80%; /* 5:4 aspect ratio (4/5 = 0.8 = 80%) */
    overflow: hidden;
}

.pg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in;
}

.pg-card:hover .pg-image {
    transform: scale(1.05);
}

/* Content styles */
.pg-content {
    padding: 25px;
}

.pg-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
}

.pg-description {
    color: #cccccc;
    line-height: 1.6;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .pg-card-inner {
        flex-direction: row;
    }
    
    .pg-image-container {
        width: 33.333%;
        padding-top: 26.67%; /* 5:4 aspect ratio at 33.333% width (0.8 * 33.333% = 26.67%) */
    }
    
    .pg-content {
        width: 66.667%;
    }
}