@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yesteryear&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

:root{
    --primary: #383F9A;
    --secondary: #F4D319;
    --color-primary: #383F9A;
    --color-secondary: #F4D319;
}


.singature{
    font-family: "Yesteryear", cursive;
}

body{
    font-family: "Work Sans", sans-serif;
}

html,body{
    scroll-behavior: smooth;
}

.menu{
    > ul{

        &:hover{
            > li > a{
                opacity: 0.4;
            }
        }

        >li {
            position: relative;
            padding-block: 10px;

            > a{
                position: relative;
                transition: all 0.3s ease-out;
                

                &:before{
                    content: "";
                    position: absolute;
                    bottom: -2px;
                    left: 0;
                    width: 0%;
                    transition: all 0.3s ease-out;
                    background: var(--secondary);
                    height: 2px;
                }

                
            }

            &:hover{

                > a{
                    opacity: 1;    
                    &:before{
                        width: 100%;
                    }

                }

            }

            > ul{
                position: absolute;
                top: 100%;
                left: 0;
                min-width: 300px;
                background: white;
                color: black;
                line-height: 1.1;
                font-size: 1rem;
                transition: all 0.3s ease-out;
                opacity: 0;
                transform: translateY(20px);
                pointer-events: none;
                border: 1px solid #eee;
                border-bottom: none;

                

                a{
                    display: block;
                    padding: 1rem;
                    border-bottom: 1px solid #eee;
                    transition: all 0.3s ease-out;

                    &:hover{
                        color: rgba(0 0 0 / 60%);
                    }
                }
            }

            &:hover{
                > ul{
                    opacity: 1;
                    pointer-events: all;
                    transform: translateY(0);
                }
            }
        }
    }
}

.header-cta{

    overflow: hidden;
    z-index: 1;
    position: relative;

    &:before{
        content: "";
        position: absolute;
        background: var(--secondary);
        z-index: -1;
        right: 0;
        width: 0;
        height: 100%;
        transition: all 0.3s ease-out;
    }

    &:hover{
        &:before{
            width: 100%;
            left: 0;
        }
    }
}

.line-animation{
    position: relative;

    &:before{
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 0%;
        transition: all 0.3s ease-out;
        background: var(--secondary);
        height: 2px;
    }

    &:hover:before{
         width: 100%;
    }
}

.hover-effect:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0;
    width: 100%;
    background: var(--hover-color);
    z-index: -1;
    transition: all 0.3s ease-out;
}

.hover-effect:hover:before,.main-cta:hover .hover-effect:before {
    height: 100%;
}

.course-description{
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 2rem;
    width: 100%;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease-out;
    

}



.courses{

    h3.course-title{
   position: absolute;
    left: 0;
    bottom: 0;
    padding: 2rem;
    z-index: 2; 
    transition: all 0.3s 0.3s ease-out;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    max-height: 520px;
}

    

    h3{
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.2;
       
    }

    color: white;
    counter-reset: courses;

    >div{
        counter-increment: courses;

        &:before{
            content: '0'counter(courses);
            position: absolute;
            left: 2rem;
            top: 2rem;
            font-size: 3rem;
            color: transparent;
            -webkit-text-stroke: 1px var(--secondary);
            font-weight: 900;
            z-index: 2;
            line-height: 1;
        }

        p{
            font-size: 1.1rem;
        }

        &:hover{
            .course-title{
                opacity: 0;
                transition: all 0.3s ease-out;
            }
            .course-description{
                opacity: 1;
                transition: all 0.3s 0.3s ease-out;
            }
        }

    }
}

.home-slogan {
    -webkit-text-stroke: 1px var(--primary);
    font-family: "Merriweather", serif;
    transition: all 0.3s ease-out;

    &:hover{
        color: var(--primary);
    }
}

.info-boxes{

    a{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        transition: all 0.3s ease-out;
        z-index: 1;
        overflow: hidden;

        &:before{
            content: "";
            width: 120%;
            aspect-ratio: 1;
            background: var(--secondary);
            border-radius: 100%;
            position: absolute;
            bottom: 0;
            left: 50%;
            transition: all 0.6s ease-out;
            transform: translateX(-50%) translateY(70%) scale(0);
            z-index: -1;
        }

        &:hover{
            color: var(--primary);
        }

        &:hover:before{
            transform: translateX(-50%) translateY(70%) scale(2);
        }
    }

    p{
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1.3rem;
        font-weight: 600;
    }
}

#breadcrumbs{
    a{
        transition: all 0.3s ease-out;
        &:hover{
            text-decoration: underline;
            color: var(--primary);
        }
    }
}

.steps-slider-container{
    counter-reset: steps;

    li > div{
        counter-increment: steps;
        position: relative;
        z-index: 1;

        &:before{
            content: counter(steps);
            line-height: 0.7;
            position: absolute;
            position: absolute;
            top: 1rem;
            right: 1rem;
            color: var(--primary);
            font-weight: 900;
            opacity: 0.1;
            font-size: 6rem;
            z-index: -1;
        }
    }
}

.steps-container{
    counter-reset: steps;

    > div{
        counter-increment: steps;
        position: relative;
        z-index: 1;

        &:before{
            content: counter(steps);
            line-height: 0.7;
            position: absolute;
            position: absolute;
            top: 1rem;
            right: 1rem;
            color: var(--primary);
            font-weight: 900;
            opacity: 0.1;
            font-size: 6rem;
            z-index: -1;
        }

        &:after{
            content: "";
            width: 200px;
            
            position: absolute;
            top: -50px;
            right: 0;
            
            border-top: 1px dashed black;
            
            height: 100px;
            border-radius: 100%;
            transform: translateX(50%);
            z-index: -1;
        }
    }

    > div:nth-of-type(even){
        &:after{
            top: auto;
            bottom: -50px;
            border-bottom:  1px dashed black;
            border-top: none;
        }
    }

    > div:last-of-type{
        &:after{
            display: none;
        }
    }
}

.accordion {
    .accordion-content {

        margin-top: 1rem;
        display: none;

        a{
            text-decoration: underline;
            text-decoration-color: var(--primary);
            display: inline-block;
        }

        ol{
            list-style: decimal;
            list-style-position: inside;
            margin-left: 1rem;
        }
        ul{
            list-style-type: disc;
            list-style-position: inside;
            margin-left: 1rem;
        }

    }

    .accordion-title {
        background: white;
        box-shadow: 0 5px 20px 0 rgba(0 0 0 /10%);
        padding: 1.3rem;
        font-size: 1.1rem;
        font-weight: 600;
        width: 100%;
        text-align: left;
        position: relative;
        transition: all 0.3s ease-out;
        display: flex;
        align-items: center;
        cursor: pointer;
        gap: 20px;

        img {
            max-height: 60px;
        }

        &:hover {
            color: var(--primary);
        }

        .toggle {
            position: absolute;
            top: 0;
            right: 0;
            width: 50px;
            height: 100%;
            background: rgb(244 211 25 / 30%);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease-out;

            span{
                transition: all 0.3s ease-out;
                display: block;
                line-height: 0;
            }
        }
    }
}

.accordion.active {
    .accordion-title {
        color: var(--primary);

        .toggle {
            background: var(--secondary);
            span{
                transform: rotate(180deg);
            }
        }
    }
}

.grid-list{
    > div:nth-of-type(even){
        .grid-icon{
            &:before{
                background: var(--secondary);
            }
        }
    }
}

.grid-icon{
    position: relative;
    margin-bottom: 1rem;
    width: 60px;
    padding: 0.8rem;
   

    &:before{
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        aspect-ratio: 1;
        transform: translate(-50%,-50%);
        background: var(--primary);
        opacity: 0.2;
        border-radius: 100%;
    }

    img{
        width: 100%;
        height: auto;
    }
}

.text-format{
    ul{
        list-style-type: disc;
        margin-left: 2.3rem;
    }
    ol{
        list-style-type: decimal;
        margin-left: 2.3rem;
    }
}
.tab-content-box{
    display: none;

    ul{
        list-style-type: disc;
        margin-left: 1rem;
    }
}

.tabs-nav{

    .active{
        button{
            background: var(--secondary);
            font-weight: 600;
        }
    }

    button{
        transition: all 0.3s ease-out;

        &:hover{
            background: var(--secondary);
        }
    }

    
}

.program-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 16px;
    text-align: center;
}

.program-table thead th {
    background: var(--color-secondary);
    color: #000;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 16px;
}

.program-table thead th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.program-table thead th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.program-table tbody tr {
    background: var(--color-primary);
    color: #fff;
    transition: background-color 0.2s ease;
}

.program-table tbody tr:hover {
    background: color-mix(in srgb, var(--color-primary) 90%, black);
}

.program-table tbody td {
    padding: 20px 16px;
}

.program-table tbody td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.program-table tbody td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.mobile-nav{
    > ul{
        display: grid;
        gap: 0.6em;
    }
    li:has(ul){
        > a{
            display: flex;
            align-items: center;
            justify-content: space-between;

            &:after{
                content: url('assets/images/chevron-down-outline.svg');
                display: block;
                line-height: 0;
                width: 20px;
                transition: all 0.3s ease-out;
            }
        }
        ul{
            display: none;
            opacity: 0.6;
            margin-top: 0.6rem;

            li{
                margin-top: 0.3rem;
            }
        }
    }
    li.open{
        > a:after{
            transform: rotate(180deg) !important;
        }
    }
}

@media(max-width:1024px){
    .tabs-nav{
        button{
            display: inline-block;
            width: auto !important;
        }
        .active{
            button{
                background: transparent;
                border-bottom: 2px solid var(--secondary);
                padding-bottom: 0.3rem !important;
            }
        }

    }
        
    }