.ecc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.ecc-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.07); overflow: hidden; display: flex; flex-direction: column; }
/*.ecc-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }*/
.ecc-card-image { width: 100%; height: 220px; object-fit: cover; }
.ecc-card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.ecc-card-title { margin: 0 0 20px 0; flex-grow: 1; color: #002D4B; font-family: sans-serif; font-size: 1.4em; line-height: 1.4; font-weight: bold; }
.ecc-button { cursor: pointer; padding: 12px 25px; border: none; border-radius: 50px; font-weight: bold; background-color: #52D1C5; color: #fff; text-align: center; align-self: flex-start; }
.ecc-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10001; display: flex; justify-content: center; align-items: center; visibility: hidden; opacity: 0; transition: visibility 0s .3s, opacity .3s ease; }
.ecc-popup.active { visibility: visible; opacity: 1; transition-delay: 0s; }
.ecc-popup-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 20, 48, 0.8); backdrop-filter: blur(5px); cursor: pointer; }
.ecc-popup-content { flex-wrap: wrap; position: relative; background: #fff; border-radius: 20px; max-width: 950px; width: 90%; max-height: 90vh; display: flex; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); overflow-y: auto; transform: translateY(20px); transition: transform .3s ease, opacity .3s ease; opacity: 0; }
.ecc-popup.active .ecc-popup-content { transform: translateY(0); opacity: 1; }
.ecc-popup-close { position: absolute;  width: 34px; height: 34px;   border-radius: 50%;  cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; }
.ecc-popup-text-wrapper { flex: 1; padding-right: 0px; }
.ecc-popup-text-wrapper.title { padding-right: 30px; }
.ecc-popup-text-wrapper.description { min-width:100%;  padding-top:20px;}
.ecc-popup-image-wrapper { width: 40%; position: relative; }
.ecc-popup-image { width: 100%; height: auto; border-radius: 15px; display: block; }
.ecc-popup-image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(82, 209, 197, 0.7); border-radius: 15px; color: white; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: bold; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
/*.ecc-popup-image-wrapper:hover .ecc-popup-image-overlay { opacity: 1; }*/
.ecc-popup-title { margin: 0 0 20px 0; color: #002D4B; font-family: sans-serif; font-size: 2.2em; line-height: 1.3; font-weight: bold; }
.ecc-popup-title span { color: #005A7A; font-size: 0.6em; display: block; margin-bottom: 5px; font-weight: normal; }
.ecc-popup-description { color: #555; line-height: 1.7; }
.ecc-popup-button-wrapper { margin-top: 30px; }
.ecc-popup-image-wrapper {
    max-width: 270px;
    border-radius: 20px;
}
button.ecc-popup-close {
    font-size: 25px!important;
    font-weight: 400!important;
    max-width: 34px;
    max-height: 34px;
    padding: 0!important;
    border: 1px solid #57BDBD;
    right: 17px;
    top: 17px;
    background: white!important;
}
.ecc-popup-image-wrapper img {
    border-radius: 20px!important;
}
.ecc-popup-button:hover{
    color: #fff;
    opacity: .8;
}
.ecc-popup-button { display: inline-block; text-decoration: none; border-radius: 50px; padding: 15px 35px; background-color: #52D1C5; color: #fff; font-weight: bold; transition: all .4s;}
@media (max-width: 767px) {
    .ecc-popup-content { flex-direction: row; text-align: left; padding:20px;}
    .ecc-popup-text-wrapper { padding-right: 0; margin-bottom: 0;
        margin-top: 15px; }
    .ecc-popup-image-wrapper { order:-1; width: 100%; }
    .ecc-popup-image-wrapper {
    max-width: 100%;
}
.ecc-popup-text-wrapper.description
 {
    margin-top: 0;
    padding-top: 0;
}

.ecc-popup-text-wrapper.title { padding-right: 0px; }
h2.ecc-popup-title {
    line-height: 32px!important;
}
}