﻿/* All page styles should be inside #content-wrapper to scope them */
#content-wrapper {
    .wbs-card {
        width: 100%;

        @media (min-width: 1024px){
            & {
                width: calc(50% - var(--card-padding) / 2);
            }
        }

        .wbs-card-content {
            gap: 1em;

            span.wbs-blue {
                color: var(--wbs-blue-3);
            }

            .entry {
                display: flex;
                justify-content: space-between;

                &.column {
                    flex-direction: column;
                }

                & > div:First-child {
                    display: flex;
                    flex-direction: column;
                }
            }

            @media (max-width: 768px) {
                & {
                    width: 100%;
                }
            }
        }
    }

    .wbs-card:has(#courseinformation){
        .entry {
            &:not(:last-child){
                border-bottom: 1px solid var(--wbs-blue-3);
                padding: var(--padding-md) 0;
            }
        }
    }

    .wbs-card:has(.help-link){
        background: initial;
        box-shadow: none;
        padding: 0;

        .help-link {
            --link-colour: var(--wbs-blue-3);
            background: var(--wbs-white);
            color: initial;
            border: 2px solid var(--link-colour);
            border-radius: var(--border-radius-sm);
            display: flex;
            text-decoration: none;
            cursor: pointer;
            
            &:hover, &:active {
                box-shadow: 0 0 0 1px var(--wbs-white),
                            0 0 0 3px var(--link-colour);
            }
        
            & .icon-area {
                display: flex;
                align-items: center;
                padding: 0 var(--padding-md);
                color: var(--wbs-white);
                background: var(--link-colour);

                i {
                    font-size: 3em;
                }
            }

            div:last-child {
                flex: 1;
                display: flex;
                flex-direction: column;
                padding: var(--padding-md);
            }
        }
    }
}