.pcg-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.pcg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 25px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 380px;
    width: 100%;
}

.pcg-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pcg-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.pcg-card-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.85); /* Default light overlay for contrast */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.pcg-card:hover .pcg-card-bg,
.pcg-card:hover .pcg-card-bg-overlay {
    opacity: 1;
}

.pcg-card-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.pcg-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pcg-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #183b75; /* Default fallback */
}

.pcg-accordion-toggle {
    display: none; /* Hidden on desktop */
    padding: 5px;
    pointer-events: none; /* Let card handle click */
}

.pcg-toggle-icon {
    transition: transform 0.3s ease;
    color: #1a1a1a;
    transform: rotate(0deg); /* Start pointing down */
}

.pcg-card.is-active .pcg-toggle-icon {
    transform: rotate(180deg); /* Point up when active */
}

.pcg-text-wrapper {
    transition: opacity 0.4s ease;
    opacity: 1;
}

.pcg-card:hover .pcg-text-wrapper {
    opacity: 0;
    pointer-events: none;
}

.pcg-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.pcg-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.pcg-card-bottom {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.pcg-cta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff; /* Typically white to stand out over images */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.pcg-card:hover .pcg-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------
   Mobile Accordion Styles 
----------------------------------- */
@media (max-width: 1024px) {
    .pcg-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .pcg-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pcg-card {
        min-height: auto;
        cursor: pointer; /* Indicate it's clickable */
    }

    .pcg-card-content {
        padding: 20px;
        display: block; /* Disable flex col to allow natural height */
    }

    .pcg-header-row {
        margin-bottom: 0; /* Tighten up spacing for mobile */
    }

    .pcg-accordion-toggle {
        display: block; /* Show toggle on mobile */
    }

    /* Override hover effects on mobile */
    .pcg-card:hover .pcg-text-wrapper {
        opacity: 1;
        pointer-events: auto;
    }

    .pcg-card:hover .pcg-card-bg,
    .pcg-card:hover .pcg-card-bg-overlay {
        opacity: 0; /* Disable bg reveal on mobile hover */
    }

    .pcg-card:hover .pcg-cta {
        opacity: 1;
        transform: translateY(0);
    }
    
    .pcg-cta {
        opacity: 1;
        transform: none;
        color: #1a1a1a; /* Force visibility */
    }

    .pcg-title {
        margin-top: 15px; /* Add spacing above title on mobile */
        margin-bottom: 0;
    }

    /* Collapsible Content Area */
    .pcg-dropdown-content {
        display: none; /* Hidden by default on mobile */
        margin-top: 15px;
    }
    
    .pcg-card-bottom {
        display: none; /* Hidden by default on mobile */
    }

    .pcg-card.is-active .pcg-dropdown-content,
    .pcg-card.is-active .pcg-card-bottom {
        display: block; /* Show when active */
    }
}