/* ============================================================
   THE CG DIFFERENCE — Masonry Cards (Fixed)
   ============================================================ */
.cg-difference {
    padding: 5rem 0;
    background: var(--gray-light);
}

.cg-difference .label {
    color: var(--emerald);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.cg-difference .label i {
    font-size: 1rem;
}

.cg-title {
    font-family: 'DM Serif Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--black);
    margin-top: 0.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cg-subtitle {
    font-weight: 400;
    font-size: 1.1rem;
    color: #555;
    max-width: 680px;
    margin-left: 0 !important;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.cg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px; /* increased from 260px */
    gap: 18px;
}

.cg-card {
    position: relative;
    background: var(--white);
    padding: 1.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(13, 124, 79, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden; /* ensure no overflow */
}

.cg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 124, 79, 0.2);
}

.cg-card .cg-number {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem; /* reduced from 3.5rem */
    font-weight: 700;
    color: rgba(13, 124, 79, 0.12);
    line-height: 1;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}
.cg-card:hover .cg-number {
    color: rgba(13, 124, 79, 0.25);
}

.cg-card .cg-icon {
    font-size: 1.8rem;
    color: var(--emerald);
    margin-bottom: 0.5rem;
}

.cg-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem; /* reduced from 1.4rem */
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.cg-card p {
    font-size: 0.9rem; /* reduced from 0.95rem */
    color: #666;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Grid spans */
.cg-card.span-2 {
    grid-column: span 2;
}
.cg-card.span-2h {
    grid-row: span 2;
}
.cg-card.span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}
.cg-card.span-3 {
    grid-column: span 3;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .cg-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 260px;
        gap: 14px;
    }
    .cg-card.span-2 {
        grid-column: span 2;
    }
    .cg-card.span-2h {
        grid-row: span 2;
    }
    .cg-card.span-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }
    .cg-card.span-3 {
        grid-column: span 3;
    }
}

@media (max-width: 767.98px) {
    .cg-title {
        font-size: 2.5rem;
    }
    .cg-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 220px;
        gap: 10px;
    }
    .cg-card.span-2 {
        grid-column: span 2;
    }
    .cg-card.span-2h {
        grid-row: span 2;
    }
    .cg-card.span-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }
    .cg-card.span-3 {
        grid-column: span 2;
    }
    .cg-card {
        padding: 1.2rem 1rem;
    }
    .cg-card .cg-number {
        font-size: 2.2rem;
    }
    .cg-card h3 {
        font-size: 1.1rem;
    }
    .cg-card p {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .cg-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
        gap: 8px;
    }
    .cg-card {
        padding: 0.8rem 0.6rem;
        border-radius: 8px;
    }
    .cg-card .cg-number {
        font-size: 1.8rem;
    }
    .cg-card .cg-icon {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    .cg-card h3 {
        font-size: 0.95rem;
    }
    .cg-card p {
        font-size: 0.7rem;
        -webkit-line-clamp: 3;
    }
}