/* ── Infopace Course Grid — Frontend Styles ─────────────────── */

/* Grid */
.icg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

/* Equal height cards */
.icg-grid.icg-equal {
    align-items: stretch;
}
.icg-grid.icg-equal .icg-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.icg-grid.icg-equal .icg-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.icg-grid.icg-equal .icg-footer {
    margin-top: auto;
}

/* Card */
.icg-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.icg-card:hover {
    border-color: #c9962a;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(13, 27, 62, 0.08);
}

/* Thumbnail */
.icg-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f3f4f6;
}
.icg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.icg-card:hover .icg-img {
    transform: scale(1.04);
}
.icg-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d1b3e 0%, #1e3a6e 100%);
}

/* Badge */
.icg-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #c9962a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.4;
    z-index: 2;
}

/* Body */
.icg-body {
    padding: 20px;
}

/* Course name */
.icg-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    margin: 0 0 8px;
}
.icg-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.icg-name a:hover {
    color: #c9962a;
}

/* Description */
.icg-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 16px;
}

/* Meta block */
.icg-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 14px;
}
.icg-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}
.icg-meta-icon {
    font-size: 15px;
    color: #c9962a;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}
.icg-meta-label {
    color: #9ca3af;
    min-width: 62px;
    flex-shrink: 0;
}
.icg-meta-value {
    color: #1a1a2e;
    font-weight: 600;
}

/* Instructor inline */
.icg-instructor {
    display: flex;
    align-items: center;
    gap: 6px;
}
.icg-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Footer */
.icg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

/* Pricing */
.icg-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.icg-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #c9962a;
    line-height: 1;
}
.icg-price-original {
    font-size: 0.82rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Button */
.icg-btn {
    display: inline-block;
    background: #c9962a;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.4;
    white-space: nowrap;
}
.icg-btn:hover {
    background: #e8b94a;
    color: #ffffff;
}

/* ── Elementor responsive overrides (auto) ───────────────────
   The columns selector is written by Elementor via the
   responsive_control → selectors map. These are fallbacks
   for older Elementor or non-kit setups.                     */
@media (max-width: 1024px) {
    .icg-grid:not([style*="grid-template-columns"]) {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .icg-grid:not([style*="grid-template-columns"]) {
        grid-template-columns: 1fr;
    }
    .icg-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .icg-btn {
        width: 100%;
        text-align: center;
    }
}
