.podifi-cards-container {
    position: relative;
    width: 1200px;
    margin: 0 auto;
    height: 565px;
}

.podifi-card {
    position: absolute;
    width: 385px;
    height: 235px;
    border-radius: 16px;
    box-shadow: 0px 8px 16px rgba(11, 26, 71, 0.3);
    color: white;
    cursor: pointer;
    padding: 20px;
    overflow: hidden;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.podifi-card:hover {
    /*transform: scale(1.01);*/
    box-shadow: 0px 16px 32px 0px #083DDBA3;
    box-shadow: 0px 4px 8px 0px #00000080;
}

.podifi-card-1 { background: #0B2347; }
.podifi-card-2 { background: #1E45BD; }
.podifi-card-3 { background: #132B76; }

.podifi-card-title {
    font-size: 21px;
    margin: 0;
    font-weight: 600;
    color: #fff;
    line-height: 30px;
    width: 75%;
}

.podifi-card-description {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.7s ease-in-out,
        max-height 0.7s ease-in-out;
    margin-top: 10px;
}

.podifi-plus-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    opacity: 0;
    transform: scale(0.9);
    transition:
        opacity 0.3s ease-out,
        transform 0.3s ease-out;
}

.podifi-card:hover .podifi-plus-icon {
    opacity: 1;
    transform: scale(1);
}

.podifi-card.expanded {
    top: 0 !important;
    left: 0 !important;
    width: 100%;
    height: auto;
    min-height: 510px;
    border-radius: 15px;
    z-index: 2;
    padding: 45px;
    transition: transform 0.9s ease, box-shadow 0.6s ease;
}

.podifi-card.expanded .podifi-card-description {
    opacity: 1;
    max-height: 400px;
    width: 75%;
}

.podifi-card.expanded .podifi-plus-icon {
    display: none;
}

.podifi-card.expanded .podifi-card-title {
    font-size: 28px;
    line-height: 1.3;
    transition: transform 0.7s ease, box-shadow 0.4s ease;
}

.podifi-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 65px;
    cursor: pointer;
    z-index: 10;
    font-weight: 100;
}

.podifi-card.move-out {
    transform: translateX(100vw);
    transition: transform 0.7s ease-in-out;
}

.podifi-pill-button {
    background: rgba(255, 255, 255, 0.2);
    width: 160px;
    height: 35px;
    border-radius: 39px;
    padding: 0px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.podifi-pill-button:hover {
    /*background: rgba(255, 255, 255, 0.35);*/
}

@media screen and (max-width: 480px) {
    .podifi-card {
        width: 100%;
    }
    .podifi-card-title {
        font-size: 1.2rem;
    }
    .podifi-pill-button {
        font-size: 14px;
        width: 150px;
        height: 40px;
    }
}

@media screen and (max-width: 1200px) {
    .podifi-cards-container {
        width: 100%;
        height: auto;
    }
    .podifi-card {
        width: 45%;
    }
}

@media screen and (max-width: 768px) {
    .podifi-card {
        position: relative;
        width: 90%;
        margin: 20px auto;
        left: 0 !important;
        top: 0 !important;
    }
    .podifi-cards-container {
        height: auto;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .podifi-cards-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; 
    }
    .podifi-card {
        width: 48%; 
        margin: 1%; 
        position: relative;
        left: 0 !important;
        top: 0 !important;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1200px) {
    .podifi-cards-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; 
    }
    .podifi-card {
        width: 48%; 
        margin: 1%; 
        position: relative;
        left: 0 !important;
        top: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .podifi-card {
        width: 100%;
    }
    .podifi-card-title {
        font-size: 1.2rem;
    }
}

.podifi-card {
    transition: transform 0.7s ease, box-shadow 0.4s ease;
}

@media (min-width: 700px) {
    .podifi-card.expanded .podifi-card-title {
        font-size: 30px; 
        line-height: 1.3;
        transition: font-size 0.5s ease;
        margin-top: 0px !important;
    }

    .podifi-card.expanded .podifi-card-description {
        font-size: 18px;
        transition: transform 0.7s ease, box-shadow 0.4s ease;
        width: 75%;
    }
}

@media (min-width: 700px) {
    .podifi-card.expanded svg {
        transform: scale(2.15);
        transition: transform 0.5s ease;
        margin-right: 100px;
        padding-top: 25px;
    }
}

.podifi-card.expanded .obves-btn svg,
.podifi-card.expanded .icon svg {
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: none !important;
}

/* ==== UNIVERSAL RESET FOR RESPONSIVENESS ==== */
.podifi-cards-container {
    overflow-x: hidden;
    /*width: 100%;*/
}

/* ================= MOBILE VIEW ================= */
@media screen and (max-width: 768px) {
    .podifi-cards-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
        padding: 0 15px 50px;
    }

    .podifi-cards-container.expanded {
        gap: 0!important;
    }

    .podifi-card {
        position: relative !important;
        /* removes absolute layout */
        width: 100% !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 auto !important;
        transform: none !important;
        z-index: auto !important;
        transition: all 0.4s ease;
    }

    .podifi-card.expanded {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }

    .podifi-card.expanded .podifi-card-title {
        font-size: 22px;
        line-height: 1.4;
    }

    .podifi-card.expanded .podifi-card-description {
        font-size: 15px;
        line-height: 1.6;
        max-height: none;
    }

    html,
    body {
        overflow-x: hidden;
    }
}

@media screen and (max-width: 768px) {
    .podifi-cards-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
        padding: 0 15px 50px;
        transition: gap 0.3s ease;
    }

    .podifi-cards-container.expanded-mode {
        gap: 0;
    }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
    .podifi-cards-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 0 15px;
        overflow-x: hidden;
        transition: gap 0.3s ease;
    }

    .podifi-cards-container.expanded-mode {
        gap: 0;
    }
}

/* ================= TABLET VIEW ================= */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    .podifi-cards-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 0 15px;
        overflow-x: hidden;
    }

    .podifi-card {
        position: relative !important;
        width: 45% !important;
        transform: none !important;
    }

    .podifi-card.expanded {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        transform: none !important;
        z-index: 10;
        padding: 35px 25px;
    }

    html,
    body {
        overflow-x: hidden;
    }
}


@media screen and (max-width: 700px) {

    .podifi-card.expanded {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px 16px;
    }

    .podifi-card.expanded .podifi-card-title {
        margin-top: 10px;
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .podifi-card.expanded .podifi-card-description {
        margin-top: 12px;
        font-size: 1rem;
        line-height: 1.6;
        width: 100%
    }
}

@media screen and (max-width: 1200px) {
    .podifi-card.expanded .podifi-plus-icon {
        display: none !important;
    }

    .podifi-card svg:first-of-type {
        display: block !important;
    }

    .podifi-card.expanded svg:first-of-type {
        display: block;
        margin-top: 40px;
    }
}

@media (max-width: 1200px) {
    .podifi-plus-icon {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .podifi-card:hover .podifi-plus-icon {
        opacity: 1;
        visibility: visible;
    }
}

.podifi-card-header {
    display: flex;
    justify-content: space-between;
}

.podifi-card-icon {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .podifi-card.expanded .podifi-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .podifi-card.expanded .podifi-card-icon {
        align-self: center;
    }
}
@media screen and (min-width: 329px) and (max-width: 499px) {
    .podifi-card.expanded .podifi-card-icon {
        margin-left: 100px;
    }
}
@media screen and (min-width: 500px) and (max-width: 825px) {
    .podifi-card.expanded .podifi-card-icon {
        margin-left: 125px;
    }
}