@use '../../utils' as *;

/*----------------------------------------*/
/*  4.28 program css
/*----------------------------------------*/

.bd-program-curriculum {
    .accordion-common-style.accordion-transparent .accordion-button:not(.collapsed) {
        background-color: var(--primary-rgb-05);
    }
}

.bd-program-curriculum-table {
    text-align: center;

    &:not(:last-child) {
        margin-bottom: 30px;
        margin-top: 30px;
    }

    .title {
        font-size: 16px;
        color: var(--bd-white);
        font-weight: var(--bd-fw-medium);
        background-color: var(--bd-primary);
        display: inline-block;
        padding: 10px 15px;
        margin-bottom: 15px;
        border-radius: 4px;
    }
}

.bd-program-sidebar-widget {
    padding: 30px 30px 30px 30px;
    background-color: var(--bd-white);
    box-shadow: 0px 10px 30px rgba(28, 51, 84, 0.08);
    border-radius: 5px;

    .bd-program-sidebar-link {
        &:not(:last-child) {
            margin-bottom: 15px;
        }
    }
}

.bd-program-sidebar-faq {
    .description {
        color: var(--bd-taxonomy-color);
        font-size: 18px;

        a {
            color: var(--bd-secondary);
            font-weight: var(--bd-fw-medium);
        }
    }

    .thumb {
        margin-bottom: -30px;
    }
}

/* kindergarten program css */

.bd-program-details {
    &-slider {
        overflow: hidden;
        height: 100%;
        &-thumb {
            height: 100%;
            img {
                border-radius: 32px;
                height: 100%;
                width: 100%;
                object-fit: cover;
            }
        }
    }
    &-next,
    &-prev {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border: 2px solid var(--bd-white);
        z-index: 1;
        border-radius: 50%;
        inset-inline-end: 25px;
        transition: all 0.3s ease-in-out;
        color: var(--bd-white);

        &:hover {
            background-color: var(--bd-white);
            border-color: var(--bd-white);
            color: var(--bd-black);
        }
    }
    &-prev {
        inset-inline-end: auto;
        inset-inline-start: 25px;
    }
    &-widget{
        &-content {
            padding: 30px 30px;
            border-radius: 32px;
            p {
                line-height: 30px;
                margin-bottom: 20px;
            }
            
        }
        &-title {
            font-size: 42px;
            margin-bottom: 20px;
            @media #{$sm,$xs} {
                font-size: 26px;
                margin-bottom: 15px;
            }
        }
    }
    &-author{
        display: flex;
        gap: 10px;
        align-items: center;
        &-wrapper {
            display: flex;
            align-items: center;
            gap: 20px 50px;
            flex-wrap: wrap;
        }
        &-thumb {
            height: 73px;
            width: 73px;
            img {
                height: 100%;
                width: 100%;
                border-radius: 50%;
                object-fit: cover;
            }
        }
        &-name {
            span {
                display: inline-block;
                margin-bottom: 10px;
            }
            h5 {
                font-size: 23px;
            }
        }
    }
    &-cat {
        position: relative;
        &::before {
            content: "";
            position: absolute;
            height: 100%;
            width: 1px;
            background-color: var(--bd-secondary);
            top: 0;
            inset-inline-start: -25px;
        }
        @media #{$xl,$sm,$xs} {
            &:last-child::before {
                display: none;
            }
        }
        span {
            display: inline-block;
            margin-bottom: 10px;
        }
        h5 {
            font-size: 23px;
        }
    }
    &-card {
        min-height: 290px;
        width: 100%;
        background: #E7F6F0;
        border-radius: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 25px 0;
        transition: all 0.5s ease-out 0s;
        filter: drop-shadow(4px 4px 0px #B5E3D2);
        @media #{$xl} {
            min-height: 260px;
            width: 260px;
        }
        @media #{$lg} {
            min-height: auto;
            width: 100%;
        }

        @media #{$md} {
            min-height: 290px;
            width: 100%;
        }

        @media #{$md} {
            min-height: 290px;
            width: 100%;
        }

        @media #{$sm} {
            min-height: 245px;
            width: 100%;
        }

        @media #{$xs} {
            min-height: 100%;
            width: 100%;
        }
        &:hover {
            filter: drop-shadow(4px 4px 0px var(--bd-primary));
        }
        &-title {
            font-weight: 600;
            height: 120px;
            width: 120px;
            padding: 0px;
            margin-bottom: 40px;
            background-color: var(--bd-primary);
            &.cat-1 {
                border-radius: 44% 56% 44% 56%/58% 47% 53% 42%;
            }
            &.cat-2 {
                background-color: var(--bd-secondary);
                border-radius: 81% 19% 23% 77%/58% 52% 48% 42%;
            }
            &.cat-3 {
                background-color: var(--bd-teal);
                border-radius: 37% 63% 61% 39%/52% 49% 51% 48%;
            }
            &.cat-4 {
                background-color: var(--bd-danger);
                border-radius: 42% 58% 37% 63%/52% 37% 63% 48%;
            }
        }
        &-icon {
            i {
                font-size: 50px;
                line-height: 120px;
                text-align: center;
                color: var(--bd-white);
            }
        }
        &-content {
            h6 {
                font-size: 18px;
                font-weight: 600;
                line-height: 1;
            }
        }
    }
}



.bd-routine-table .table-striped {
	border-radius: 24px;
    margin-bottom: 0;
}
.bd-routine-table .table > thead {
    background-color: var(--bd-primary);
    color: var(--bd-white);
	border: 0;
	border-radius: 24px !important;
}
.bd-routine-table {
    border-radius: 24px;
    overflow: hidden;
    .table {
        > thead {
            th {
                font-size: 23px;
                font-weight: 600 !important;
                line-height: 1.3;
                width: 50%;
                position: relative;
                background-color: var(--bd-primary);
                color: var(--bd-white);
                &::before {
                    content: "";
                    background: var(--bd-white);
                    height: 102%;
                    width: 2px;
                    position: absolute;
                    top: 0;
                    inset-inline-end: 0;
                  }
            }
        }
        > :not(caption) > * > * {
            padding: 20px 40px;
            background-color: rgba($color: $primary, $alpha: .3);
            border-bottom-width: 0px;
            box-shadow: none;
          }
    }
}
.bd-routine-table .table-striped > tbody > tr:nth-of-type(2n+1) > * {
	background: rgba($color: $primary, $alpha: .5);
	border: none;
}
.bd-routine-table .table-striped > tbody > tr td {
	position: relative;
}
.bd-routine-table .table-striped > tbody > tr td::before {
	content: "";
	background: var(--bd-white);
	height: 100%;
	width: 2px;
	position: absolute;
	top: 0;
	inset-inline-end: 0;
}


.bd-program-details-list ul {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.bd-program-details-list ul li {
	list-style-type: none;
	position: relative;
	padding-inline-start: 30px;
	color: var(--bd-black);
}
.bd-program-details-list ul li::before {
	content: "\f105";
	font-family: var(--ff-fontawesome);
	background: var(--bd-primary);
	height: 20px;
	width: 20px;
	font-size: 15px;
	position: absolute;
	border-radius: 50%;
	line-height: 20px;
	inset-inline-start: 0;
	top: 5px;
	text-align: center;
	color: var(--bd-white);
}