/* ── Grid Container ────────────────────────────────── */
.cpt-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
.cpt-meta-time{
	display:flex !important;
	align-items:center!important;
	gap:5px!important;
}
.cpt-meta-location{
	display:flex !important;
	align-items:center!important;
	gap:5px!important;
}
.cpt-icon{
	width:15px !important;
	height:15px !important;
}
/* ── Card ──────────────────────────────────────────── */
.cpt-grid-card {
    position: relative;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff; /* Ensure white background for the hover panel area */
    cursor: pointer;
}

.cpt-card-link {
    position: absolute;
    inset: 0;
    z-index: 20;
}

/* ── Image Layer ───────────────────────────────────── */
.cpt-grid-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    overflow: hidden;
    border-radius: inherit;
    transition: height 380ms cubic-bezier(.4,0,.2,1);
}

.cpt-grid-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 380ms ease;
}

/* IMAGE HOVER: Image shrinks and container height reduces to make room for panel */
.cpt-grid-card:hover .cpt-grid-image {
    height: 240px; /* Adjust this to match the visible image area on hover */
}

.cpt-grid-card:hover .cpt-grid-image img {
    transform: scale(1.1); /* Subtle zoom in looks better when container shrinks */
}

/* ── Overlay & Badge ───────────────────────────────── */
.cpt-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
    transition: opacity 380ms ease;
}

.cpt-grid-card:hover .cpt-grid-overlay {
    opacity: 0; /* Hide overlay on hover as shown in image 2 */
}

.cpt-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
}

/* ── Default Bottom Bar (Image 1 State) ────────────── */
.cpt-default-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 6;
    padding: 20px;
	padding-bottom:30px !important;
    display: flex;
    align-items: flex-start !important;
    justify-content: space-between;
    transition: opacity 300ms ease;
}

.cpt-bar-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.cpt-bar-time {
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cpt-grid-card:hover .cpt-default-bar {
    opacity: 0;
}

/* ── Hover Panel (Image 2 State) ───────────────────── */
.cpt-hover-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    height: 0;
    overflow: hidden;
    transition: height 380ms cubic-bezier(.4,0,.2,1);
}

.cpt-grid-card:hover .cpt-hover-panel {
    height: 180px; /* Height of the white text area */
}

.cpt-hover-panel-inner {
    padding: 20px;
}

.cpt-panel-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.cpt-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px 0;
}

.cpt-panel-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}