/**
 * Single Groups Page Styles
 *
 * Styles for the single-groups.php template, used to display a LearnDash
 * Group page. Hides redundant elements (featured image, progress header, empty post info)
 * that are not needed in the group context.
 *
 * @package dmc-bridge-child
 * @see     templates/single-groups.php
 */

/* Style the Course Grid on group pages */
.single-groups {
    /* The course grid already includes the featured image, so we hide the redundant one. */
    .post_image {
        display: none !important;
    }

    /* Remove progress bar and header from group pages */
    .ld-layout__header {
        display: none !important;
    }

    /* This appears to be empty but takes up vertical space, so we hide it. */
    .post_info {
        display: none !important;
    }
    .post_text_inner {
        padding: 0;
    }

    /* The course grid includes the featured image, but we don't want it. */
    .ld-featured-image {
        display: none !important;
    }

    /*
     * Right sidebar
     */
    .ld-layout__sidebar {
        /*
         * Hide the 'login' link. We are using JS to force the user to log in before
         * accessing the group page, so this link is redundant and can be confusing
         * if it appears on the page after login.
         */
        .ld-enrollment__login {
            position: absolute !important;
            left: -9999px !important;
        }
    }
}
