@import url('https://fonts.cdnfonts.com/css/segoe-ui-4');

:root{
    --black         : #111111;
    --yellowAccent  : #dbcc50;
    --yellowAccent2  : #c8b82a;
    --lightGrey     : #f6f6f6;
    --lightGrey2     : rgb(221, 221, 221);
    --darkGrey1     : #323232;
    --darkGrey2     : #252525;
}

body{
    font-family: 'Segoe UI', sans-serif;
    background-color: white;
    font-size: 1em;
    color: var(--black);
}

button{
    outline: none;
    border: none;
}

.wrapper{
    width: 100%;
    max-width: 1020px;
    position: relative;
    margin: auto;
    padding: 0 20px;
}


/* Stick Mobile Header */
.sticky-mobile-header{
    background-color: var(--black);
    position: sticky;
}
.wrapper-sticky-mobile-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;

    .logo{
        img{
            max-height: 40px;
        }
    }
    button{
        background-color: transparent;
        border: none;
        width: 24px;
        aspect-ratio: 1/1;
        padding: 0;
        img{
            width: 100%;
        }
    }
}

/* Canvas Sidebar */
.canvas-sidebar{
    display: flex;
    align-items: start;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    width: 100%;
    position: fixed;
    top: 0;
    right: 0px;
    transition: all 0.3s ease-in-out; 
    z-index: 9;

    &[data-toggle="close"]{
        right: 1000px;
    }

    a{
        text-decoration: none;
        color: white;
    }
    ul{
        width: 100%;
        height: 100vh;
        background-color: var(--darkGrey2);
        color: white;
        font-size: 1em;
        overflow-y: auto;
        padding: 20px 10px;
        list-style: none;
        li{
            &.label{
                font-size: 0.7em;
                text-transform: uppercase;
                margin-top: 2.3em;
                padding-left: 15px;
                font-weight: 600;
            }
            a{
                display: block;
                padding: 10px 15px;
            }
            &:last-child{
                margin-bottom: 70px;
            }
        }
    }
    button{
        background-color: var(--black);
        border: none;
        width: 64px;
        aspect-ratio: 1/1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Canvas mobile search */
.mobile-canvas-search{
    position: absolute;
    top: 50px;
    right: 0;
    margin: auto;
    z-index: 2;
    background-color: white;
    width: calc(100% - 40px);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.6);
    display: none;
    &.is-open{
        display: inherit;
    }
    form{
        display: flex;
        justify-content: center;
        gap: 6px;
        input{
            width: 100%;
            border: 1px solid var(--lightGrey);
            padding: 5px 14px;
            border-radius: 4px;
        }
        button{
            background-color: var(--yellowAccent);
            padding: 5px 18px;
            border-radius: 6px;
        }
    }
}


/* Desktop Topbar */
.desktop-topbar{
    /* display: none; */
    background-color: var(--darkGrey2);
    padding: 10px 0;
    position: relative;
}
.wrapper-desktop-topbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.9em;
    position: relative;
    img{
        height: 1em;
    }
    ul{
        display: flex;
        list-style: none;
        gap: 15px;
        white-space: nowrap;
        font-weight: 600;
        overflow: auto;
        padding: 10px 0;
        a{
            text-decoration: none;
            color: white;
            &:hover{
                color: var(--yellowAccent);
            }
        }
        li{
            &.highlight{
                a{
                    color: var(--yellowAccent);
                }
            }
            &.has-sub{
                ul{
                    display: none;
                    position: absolute;
                    background-color: var(--black);
                    gap: 0;
                    z-index: 1;
                    padding: 10px 0;
                    border: 1px solid var(--yellowAccent);
                    border-radius: 0 0 6px 6px;
                    li{
                        a{
                            padding: 7px 15px;
                            display: block;
                        }
                    }
                }
                &:hover{
                    ul{
                        display: grid;
                    }
                }
            }
            &:last-child{
                margin-right: 40px;
            }
        }
    }
    button{
        background-color: transparent;
        color: var(--yellowAccent);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        cursor: pointer;
        display: none;
    }

    .searchForm{
        background-color: #FFFFFF;
        padding: 7px;
        border-radius: 4px;
        position: absolute;
        top: 20px;
        right: 0;
        box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1;
        &.is-open{
            display: inherit;
        }
        input{
            border: 1px solid var(--lightGrey);
            padding: 8px 15px;
            outline: none;
            &:placeholder{
                color: var(--darkGrey1);
            }
        }
    }
}


/* Desktop Main Header */
.desktop-header{
    background-color: var(--black);
    margin: 20px 0;
    display: none;
}
.wrapper-desktop-header{
    .desktop-logo img{
        height: 45px;
    }

    .desktop-header-search{
        width: 100%;
        max-width: 350px;
        display: flex;
        gap: 7px;
        align-items: center;
        justify-content: center;
        input{
            width: 100%;
            padding: 10px 20px;
            padding-left: 40px;
            border: 1px solid var(--lightGrey);
            border-radius: 100px;
            background: url(../images/search-grey.svg) #FFFFFF no-repeat;
            background-size: 24px;
            background-position: 10px center;
            &:focus{
                outline: 1px solid var(--yellowAccent);
            }
        }
        button{
            background: var(--yellowAccent);
            padding: 10px 18px;
            border-radius: 100px;
            cursor: pointer;
            font-weight: 700;
            transition: all ease-in-out 0.3s;
            &:hover{
                background-color: var(--yellowAccent2);
            }
        }
    }
}

.desktop-main-menu{
    padding: 14px 0;
    ul{
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        gap: 25px;
        li{
            a{
                font-weight: 700;
                padding: 10px 0;
                color: white;
                &:hover{
                    color: var(--yellowAccent);
                }
            }
            &.has-sub{
                ul{
                    display: none;
                    position: absolute;
                    gap: 0;
                    background-color: var(--black);
                    padding: 10px 0;
                    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
                    border-radius: 0 0 8px 8px;
                    z-index: 1;
                    li{
                        a{
                            display: block;
                            padding: 7px 18px;
                        }
                    }
                }
                &:hover{
                    ul{
                        display: grid;
                    }
                }
            }
        }
    }
}


/*newsticker*/
.desktop-newsticker{
    display: none;
    background-color: var(--yellowAccent);
    border-radius: 100px;
    font-size: 1.1em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.desktop-newsticker ul{
    width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
.desktop-newsticker ul li{
    width:100%;
    height:30px;
    overflow:hidden;
    white-space:nowrap;
    display:none;
}

.mobile-newsticker{
    background-color: var(--darkGrey1);
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 10px 20px;
    font-size: 0.8em;
    .label{
        background-color: var(--yellowAccent);
        display: inline-block;
        padding: 4px 16px;
        border-radius: 100px;
    }
    ul{
        list-style: none;
        display: flex;
        gap: 40px;
        li{
            position: relative;
            &:after{
                content: '';
                width: 5px;
                height: 5px;
                background-color: white;
                position: absolute;
                top: 50%;
                right: -20px;
                border-radius: 100px;
            }
            &:last-child{
                &:after{
                    display: none;
                }
            }
            a{
                color: white;
                font-weight: 700;
            }
        }
    }
}

.main-news{
    width: 100%;
    aspect-ratio: 2/1.3;
    position: relative;
    background-color: #b9b9b9;
    background-size: cover;
    background-position: center;
    color: white;
    display: grid;
    align-content: end;
    &:before{
        content: '';
        width: 100%;
        height: 80%;
        position: absolute;
        bottom: 0;
        left: 0;
        background: linear-gradient(0deg,rgba(0, 0, 0, 0.703) 0%, rgba(0, 0, 0, 0) 100%);
        z-index: 1;
    }
    span,h2{
        z-index: 1;
    }
    span{
        a{
            background: var(--black);
            display: inline-block;
            padding: 5px 10px;
            font-size: 0.8em;
            color: var(--yellowAccent);
            font-weight: 600;
            margin-bottom: 10px;
        }
    }
    h2{
        font-size: 1.4em;
        line-height: 1.3em;
        overflow: hidden;
        font-weight: 800;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Number of lines to show */
        -webkit-box-orient: vertical;
        text-overflow: ellipsis; /* Ensures ellipsis appears */
    }
}
.hero-news-list{
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    overflow: auto;
    width: 100%;
    padding-bottom: 0px;
    margin-bottom: 20px;
    li{
        min-width: 230px;
        display: block;
        position: relative;
        padding: 8px;
        cursor: pointer;
        transition: all ease-in-out 0.3s;
        padding-bottom: 10px;
        border: 1px solid var(--lightGrey);
        &:hover{
            opacity: 0.8;
        }
        &.active{
            background-color: var(--lightGrey);
            position: relative;
            &:after{
                content: '';
                width: 75%;
                height: 5px;
                background-color: var(--yellowAccent);
                position: absolute;
                bottom: 0;
                left: 0;
                border-radius: 0 10px 10px 0;
            }
        }
        .thumbnail{
            position: relative;
            img{
                width: 100%;
                aspect-ratio: 2/1.2;
                object-fit: cover;
            }
            span{
                background-color: var(--black);
                color: var(--yellowAccent);
                position: absolute;
                bottom: 15px;
                left: 0px;
                padding: 5px 15px;
                font-size: 0.8em;
            }
        }
        .title{
            font-weight: 700;
            font-size: 1em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3; /* Number of lines to show */
            -webkit-box-orient: vertical;
            text-overflow: ellipsis; /* Ensures ellipsis appears */
        }
    }
}

.spacer{
    width: 100%;
    max-width: 980px;
    height: 10px;
    background-color: var(--lightGrey2);
}

.head-section{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 3px solid var(--yellowAccent);
    margin-bottom: 7px;
    .head-title{
        font-weight: 700;
        font-style: italic;
        font-size: 1.6em;
    }
}

.news-list-1{
    .item{
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 15px;
        border-bottom: 1px solid var(--lightGrey2);
        padding: 10px 0;
        .thumbnail{
            display: block;
            img{
                width: 100%;
                aspect-ratio: 2/1.3;
                object-fit: cover;
            }
        }
        .post-info{
            list-style: none;
            display: flex;
            font-size: 0.7em;
            gap: 10px;
            align-items: center;
            margin-bottom: 10px;
            .category{
                display: inline-block;
                padding: 5px 10px;
                background-color: var(--black);
                color: var(--yellowAccent);
            }
        }
        h3{
            font-size: 1.5em;
            font-weight: 700;
            line-height: 1.3em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2; /* Number of lines to show */
            -webkit-box-orient: vertical;
            text-overflow: ellipsis; /* Ensures ellipsis appears */
            margin-bottom: 0.5em;
            &:hover{
                color: var(--darkGrey1);
            }
        }
        .excerpt{
            font-size: 0.9em;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2; /* Number of lines to show */
            -webkit-box-orient: vertical;
            text-overflow: ellipsis; /* Ensures ellipsis appears */
            margin-bottom: 0.5em;
        }
    }
}

.news-list-2{
    .item{
        margin-bottom: 1.3em;
        .thumbnail{
            margin-bottom: 0.4em;
            display: block;
            img{
                width: 100%;
                aspect-ratio: 2/1.1;
                object-fit: cover;
            }
        }
        .publishDate{
            font-size: 0.6em;
            margin-bottom: 5px;
        }
        .title{
            font-size: 1.3em;
            font-weight: 800;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2; /* Number of lines to show */
            -webkit-box-orient: vertical;
            text-overflow: ellipsis; /* Ensures ellipsis appears */
        }
    }
}

.breadcrumb{
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8em;
    color: var(--darkGrey1);
    gap: 20px;
    li{
        position: relative;
        a{
            color: var(--yellowAccent);
        }
        &:after{
            content: '»';
            width: 10px;
            height: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 0;
            bottom: 0;
            right: -15px;
            transform: translateY(30%);
        }
        &:last-child{
            &:after{
                display: none;
            }
        }
    }
}


/* Tablet Version */
@media screen and (min-width: 768px) {
}


/* Desktop Version */
@media screen and (min-width: 980px){
    .sticky-mobile-header,.canvas-sidebar,.mobile-canvas-search,.mobile-newsticker{
        display: none !important;
    }

    .desktop-topbar{
        display: inherit;
        background-color: var(--black);
    }

    .desktop-header{
        display: inherit;
        padding: 0 20px;
    }
    .wrapper-desktop-topbar{
        ul{
            padding: 0;
            li{
                &:last-child{
                    margin: 0;
                }
            }
        }
        button{
            display: inherit;
        }
    }

    .desktop-newsticker{
        display: inherit;
    }

    .main-news{
        aspect-ratio: 2/0.95;
        h2{
            font-size: 3em;
            line-height: 1em;
            padding-bottom: 8px;
        }
    }
    .hero-news-list{
        li{
            width: calc(100%/4);
            .title{    
                -webkit-line-clamp: 2; /* Number of lines to show */
        }
    }
}