body.theme-fresk#page-site-index {
    #page-content {
        margin-top: unset;
        #region-main {
            background: #fff;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgb(0 0 0 / 6%);
            h1, h2, h3 {
                font-size: 30px;
                color: $graytext !important;
            }
            .info {
                h3 {
                    a {
                        font-size: 20px;
                        color: $graytext !important;
                        &:hover {
                            color: $primary !important;
                        }
                    }
                }
            }
            .course-content {
                .sitetopic {
                    .topics.frontpage {
                        .course-section {
                            padding-top: 0;
                            padding-bottom: 0;
                            [data-for="cmlist"] {
                                .activity {
                                    .activity-item {
                                        border: 0;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            #frontpage-available-course-list {
                .frontpage-course-list-all {
                    margin-top: 1em;
                    .coursebox {
                        .course-data-item {
                            margin-left: 0 !important;
                            .content-datacourse {
                                .content-box-header {
                                    margin-top: 15px;
                                }
                                .data-summary {
                                    overflow: auto;
                                    .people-info {
                                        .enrolled-users {
                                            .btn-enrolled-users {
                                                display: flex;
                                                flex-flow: row nowrap;
                                                justify-content: center;
                                                align-items: center;
                                                font-size: 12px;
                                                box-shadow: 0 0 5px rgba(0,0,0,.1);
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            #frontpage-category-combo {
                .course_category_tree {
                    .content {
                        .subcategories {
                            .category {
                                .content {
                                    .courses {
                                        .coursebox {
                                            padding: .5rem;
                                            border: 1px solid #dee2e6;
                                            margin-bottom: .5rem;
                                            border-radius: .5rem;
                                            .course-data-item {
                                                margin-left: 0 !important;
                                                .content-datacourse {
                                                    .content-box-header {
                                                        margin-top: 15px;
                                                    }
                                                    .data-summary {
                                                        overflow: auto;
                                                        .people-info {
                                                            .enrolled-users {
                                                                .btn-enrolled-users {
                                                                    display: flex;
                                                                    flex-flow: row nowrap;
                                                                    justify-content: center;
                                                                    align-items: center;
                                                                    font-size: 12px;
                                                                    box-shadow: 0 0 5px rgba(0, 0, 0, .1);
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

body.theme-fresk#page-site-index {
    #page-content {
        #region-main {
            #frontpage-category-combo,
            #frontpage-course-list,
            #frontpage-course-list-all,
            #frontpage-available-course-list {
                .coursebox .content {
                    .summary {
                        margin-left: 0;
                    }
                    .people-info {
                        flex-direction: column;
                        margin-top: auto;
                        .teachers {
                            width: 100% !important;
                        }
                        .align-items-center:has(.course-tag) {
                            flex-wrap: wrap;
                            .course-tag {
                                margin-left: 0;
                            }
                        }
                    }
                }
            }
        }
    }
}