
#customPageGrid .wcp-guides-grid {
    display: grid;
    grid-template-columns: repeat(var(--wcp-columns, 2), minmax(0, 1fr));
    gap: 24px;
}

#customPageGrid .wcp-guide-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

#customPageGrid .wcp-guide-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    overflow: visible;
    background: #f1f2f0;
}

#customPageGrid .wcp-guide-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

#customPageGrid .wcp-guide-badges {
    position: absolute;
    bottom: -12px;
    left: 25px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 40px);
}

#customPageGrid .wcp-guide-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #36563A;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .3px;
    text-transform: uppercase;
    border-radius: 5px;
}

#customPageGrid .wcp-guide-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

#customPageGrid .wcp-guide-title {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 10px;
}

#customPageGrid .wcp-guide-title a {
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 30px;
    text-decoration: none;
}

#customPageGrid .wcp-guide-excerpt {
    color: #666;
    line-height: 1.55;
    margin: 0 0 18px;
}

#customPageGrid .wcp-guide-button {
    color: #36563a;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
}

#customPageGrid .wcp-guide-button:hover {
    color: #1d3821;
}


/* BROWSE BY TOPIC */

#homeR1Icons {
    display: grid !important;
    grid-template-columns: minmax(180px, 1.2fr) repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

/* First child: Browse by Topic heading */

#homeR1Icons > .e-con:first-child {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    min-width: 0;
    min-height: 76px;
    padding: 0 8px 12px 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    transform: none;
}

/* Heading text */

#homeR1Icons > .e-con:first-child .elementor-heading-title {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #1A1A1A;
    white-space: nowrap;
    margin: 0;
}

/* Underline only below the heading's starting word */

#homeR1Icons > .e-con:first-child .elementor-heading-title::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    margin-top: 9px;
    background: #36563A;
}

/* Six topic cards */

#homeR1Icons > .e-con:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    padding: 12px 8px;
    background-color: #F7F8F7;
    border: 1px solid #F0F1EF;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.035);
    transition: all .25s ease;
}

#homeR1Icons > .e-con:not(:first-child) .elementor-widget {
    margin-bottom: 0;
}

#homeR1Icons > .e-con:not(:first-child):hover {
    background-color: #EFF2EF;
    border-color: #E1E6E0;
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
    transform: translateY(-2px);
}


/* TABLET */

@media (max-width: 1024px) {
    #customPageGrid .wcp-guides-grid {
        gap: 20px;
    }

    #homeR1Icons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #homeR1Icons > .e-con:first-child {
        grid-column: 1 / -1;
        min-height: auto;
        padding-bottom: 12px;
    }
}


/* MOBILE */

@media (max-width: 767px) {
    #customPageGrid .wcp-guides-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #customPageGrid .wcp-guide-body {
        padding: 18px;
    }

    #customPageGrid .wcp-guide-title a {
        font-size: 24px;
        line-height: 1.2;
    }

    #homeR1Icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
