.pg2-grid {
    display: grid;
    gap: 30px;
}

.pg2-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers immediate children (logo, title, text) */
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    gap: 20px; /* Internal Element Spacing */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden; /* Ensures child elements (like images pushed out via negative margins) don't break the card border radius */
}

/* Hover Animations */
.pg2-anim-translate-y .pg2-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pg2-anim-scale .pg2-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.pg2-anim-glow .pg2-card:hover {
    box-shadow: 0 0 25px rgba(0, 119, 190, 0.3);
}

.pg2-logo img {
    max-width: 100px;
    height: auto;
}

/* Image Container handles alignment and margin overrides */
.pg2-image-container {
    width: 100%;
    display: flex;
    justify-content: center; /* Alignment set by Elementor control */
}

/* Image Wrap handles width/sizing */
.pg2-image-wrap {
    /* Width controlled by Elementor, default 100% */
}

.pg2-image-wrap img {
    width: 100%;
    max-width: 100%;
    /* Height and Object-fit controlled by Elementor */
    display: block; 
}

.pg2-title {
    margin: 0;
}

.pg2-desc {
    flex-grow: 1;
}

.pg2-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.3s, background-color 0.3s;
}

.pg2-btn:hover {
    opacity: 0.8;
    color: #fff;
}
