.apg-main-heading {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 700;
}

.apg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}



.apg-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    padding-bottom: 20px;
    text-align: center;
    overflow: hidden;
}

.apg-img-wrap {
    position: relative;
    background: #f1f1f1;
    padding: 0px !important;
}
.apg-img-wrap:after{
    background-color: rgb(35 35 35 / 35%);
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0;
    transition: .3s;
}

.apg-img-wrap img {
    width: 100%;
    height: 200px !important;
    object-fit:cover;
}

.apg-hover-btn {
    /*position: absolute;*/
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    /*opacity: 0;*/
    /*z-index:2;*/
    /*transition: .3s;*/
}
.apg-card:hover .apg-img-wrap:after{ 
    opacity: 1;
}
.apg-card:hover .apg-hover-btn {
    opacity: 1;
}

.apg-hover-btn a {
    background: #ff7700;
    padding: 10px 20px;
    font-weight: 600;
    color: #000 !important;
    border-radius: 6px;
    text-decoration: none;
}

.apg-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 20px;
}
.apg-card p{
    padding:0 15px;
}
.apg-price {
    color: #555;
    margin-top: 7px;
}
.apple_education_card{
    position:relative;
}
.apple_education_card .apg-title{
    font-size:22px;
}
.apple_education_card p{
    color: #666666 !important;
}
@media(min-width:992px){
.apple_education_card{
   height: 700px;
}
.apple_education_card a{
    bottom: 2em;
    top: auto;
    left: 50%;
    right: auto;
    position: absolute;
    transform: translate(-50%);
}
}
@media(max-width:991px){
    .apg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
}
@media(max-width:767px){
        .apg-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}
}