main {
}

    main section {
    }

        main section#homehero {
            width: 100%;
            height: 460px;
            background-color: var(--paleblue);
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: 1fr;
            gap: 0px;
            background-image:url('/control/images/hero.jpeg');
            object-fit: cover;
            background-repeat:no-repeat;
            background-position:center;
        }

            main section#homehero #homeSearch {
                height: 256px;
                width: 509px;
                margin: auto;
                background-color: var(--transparentgrey);
                border-radius: var(--largeRadius);
                padding: 65px 50px;
                box-sizing: border-box;
                justify-self:center;
            }

                main section#homehero #homeSearch h1 {
                    color: var(--white);
                    font-size: 36px;
                    background-color:transparent;
                    padding:0;
                    margin:0;
                    height:auto;
                }

            main section#homehero #homeSearchContainer {
                margin: 30px 0 0 0;
            }

                main section#homehero #homeSearchContainer input#hometxtSiteSearch {
                    /*border:none;*/
                    border: 1px solid var(--darkgrey);
                    background-color: var(--white);
                    padding: 0 20px 0 10px;
                    border-radius: var(--radius);
                    height: 40px;
                    width:360px;
                }

                main section#homehero #homeSearchContainer #homeSearchSubmit {
                    position: relative;
                    left: -36px;
                    top: 7px;
                }

                main section#homehero #homeSearchContainer input#hometxtSiteSearch::placeholder {
                    color: var(--darkgrey);
                }

                main section#homehero #homeSearchContainer label {
                    position: absolute;
                    clip: rect(1px, 1px, 1px, 1px);
                    padding: 0;
                    margin: 0;
                    height: 1px;
                    width: 1px;
                    overflow: hidden;
                }



            main section#homehero #homeFeatured {
                height: 256px;
                width: 404px;
                margin: auto;
                background-color: var(--palegrey);
                border-radius: var(--largeRadius);
                padding: 30px;
                box-sizing: border-box;
                justify-self:center;
            }

                main section#homehero #homeFeatured span {
                    color: var(--darkgrey);
                    font-size: 100%;
                    font-weight: normal;
                    margin: 0 0 20px 0;
                    display:inline-block;
                }

                main section#homehero #homeFeatured h2 {
                    color: var(--blue);
                    font-size: 28px;
                    font-weight: bold;
                }

                main section#homehero #homeFeatured a {
                    display: inline-block;
                    background-color: var(--blue);
                    color: var(--white);
                    padding: 15px 30px;
                    margin: 30px 0 0 0;
                    text-decoration: none;
                    border-radius: var(--radius);
                }

                    main section#homehero #homeFeatured a:hover {
                        background-color: var(--black);
                    }

                main section#homehero #homeFeatured.important {
                    border: 2px solid #D92B2B;
                }

                    main section#homehero #homeFeatured.important span img{
                        height:20px;
                        margin:0 10px -2px 0;
                    }

                    main section#homepopular {
                        display: flex;
                        gap: 80px;
                        padding: var(--layoutpadding);
                    }

            main section#homepopular > div#popularlinks {
                width: 50%;
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                grid-template-rows: repeat(4, 1fr);
                gap: 15px;
                height: 300px;
            }

                main section#homepopular > div#popularlinks:nth-child(1) {
                }

                main section#homepopular > div#popularlinks h2 {
                    color: var(--blue);
                    grid-column: span 2 / span 2;
                    font-size: 180%;
                    height: min-content;
                }

                main section#homepopular > div#popularlinks a {
                    display: inline-block;
                    color: var(--blue);
                    border: 1px solid var(--midgrey);
                    border-radius: var(--radius);
                    padding: 27px 20px;
                    text-decoration: none;
                    height: min-content;
                    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23003366"><path d="M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z"/></svg>');
                    background-repeat: no-repeat;
                    background-position: 94% 50%;
                    font-weight: bold;
                }

                    main section#homepopular > div#popularlinks a:hover {
                        text-decoration: underline;
                        background-color: var(--palegrey);
                    }

                    main section#homepopular > div#popularlinks a:nth-child(1) {
                        grid-row-start: 2;
                    }

                    main section#homepopular > div#popularlinks a:nth-child(2) {
                        grid-row-start: 2;
                    }

                    main section#homepopular > div#popularlinks a:nth-child(3) {
                    }

                    main section#homepopular > div#popularlinks a:nth-child(4) {
                        grid-row-start: 3;
                    }

                    main section#homepopular > div#popularlinks a:nth-child(5) {
                    }

                    main section#homepopular > div#popularlinks a:nth-child(6) {
                        grid-row-start: 4;
                    }

            main section#homepopular > div#populartabs {
                width: 50%;
            }

                main section#homepopular > div#populartabs:nth-child(2) {
                }

            main section#homepopular > div:nth-child(2) .tabset > input[type="radio"] {
                position: absolute;
                left: -200vw;
            }

            main section#homepopular > div:nth-child(2) .tabset .tab-panel {
                display: none;
            }


            main section#homepopular > div:nth-child(2) .tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
            main section#homepopular > div:nth-child(2) .tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
            main section#homepopular > div:nth-child(2) .tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
            main section#homepopular > div:nth-child(2) .tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
            main section#homepopular > div:nth-child(2) .tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
            main section#homepopular > div:nth-child(2) .tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6) {
                display: block;
            }

.tabset > label {
    position: relative;
    display: inline-block;
    padding: 15px 0;
    border-bottom: 0;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    width: calc(33% - 3px);
}

input:focus-visible + label {
    outline: 2px solid rgba(0,102,204,1);
    border-radius: 3px;
}

.tabset > label:hover,
.tabset > input:focus + label,
.tabset > input:checked + label {
    color: var(--blue);
    border-bottom: 3px solid var(--cyan);
}

.tabset > input:checked + label {
    border-bottom: 3px solid var(--cyan);
}

.tab-panel {
    border-top: 1px solid var(--midgrey);
}

    .tab-panel ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .tab-panel ul li {
            margin: 0;
            border-bottom: 1px solid var(--midgrey);
            padding: 13px 0;
        }

            .tab-panel ul li a {
                color: var(--blue);
                text-decoration: none;
                font-weight: bold;
            }

                .tab-panel ul li a:hover {
                    text-decoration: underline;
                }

                .tab-panel ul li a:before {
                    content: '';
                    padding: 0 40px;
                    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%2300AEEF"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"/></svg>');
                    background-repeat: no-repeat;
                    display: inline-block;
                    height: 18px;
                    width: 24px;
                    position: relative;
                    top: 0px;
                    right: -55px;
                }


main section#homehappening {
    padding: var(--layoutpadding);
    background-color: var(--palegrey);
}



    main section#homehappening h2 {       
        float: left;
    }

    main section#homehappening a.moreNews {
        border: 1px solid var(--midgrey);
        border-radius: var(--smallRadius);
        text-decoration: none;
        padding: 12px 0px;
        font-weight: bold;
        font-size: 16px;
        width: 128px;
        height: 46px;
        display: inline-block;
        text-align: center;
        box-sizing: border-box;
        float: right;
        margin: -5px 0 10px 0;
        background-color: var(--white);
    }

        main section#homehappening a.moreNews:hover {
            background-color: var(--lightgrey);
        }

        main section#homehappening > div.items {
            clear: both;
            display: flex;
            gap: 20px;
        }

        main section#homehappening > div > a {
            width: 33%;
            text-decoration:none;
            display:flex;
            flex-direction:column;
            justify-content:space-between;
        }

            main section#homehappening > div > a img {
                height: auto;
                width: 100%;
                max-height:325px;
                object-fit:cover;
                border-radius:var(--radius);
            }

            main section#homehappening > div > a:hover h3{
                text-decoration:underline;
            }

            main section#homehappening > div > a:hover div span {
                background-color: var(--darkblue)
            };

            main section#homehappening > div > a div {
                margin: 0 20px;
            }

    main section#homehappening > div > a h3 {        
        margin: 20px 0;
    }

    main section#homehappening > div > a p {
        line-height: 1.5;
        color:var(--black);
    }

    main section#homehappening > div > a span {
        display: inline-block;
        background-color: var(--blue);
        width: 100%;
        color: var(--white);
        padding: 20px 0;
        text-align: center;
        border-radius: var(--radius);
        text-decoration: none;
        margin: 20px 0 0 0;
    }

main section#homehighlight {
    margin: var(--layoutpadding);
    height: 345px;
    width: calc(100% - calc(var(--layoutpadding) + var(--layoutpadding)));
    background-color: var(--paleblue);
    border-radius: var(--largeRadius);
    display: flex;
}

main section#homehighlight img {
    width: auto;
    height: 100%;
    border-radius:var(--radius);
}

main section#homehighlight div {
    width: 50%;
    margin:auto 100px;
}

    main section#homehighlight div h2 {
        color: var(--blue);
        margin: 0 0 30px 0;
    }

    main section#homehighlight div p {
        line-height: 1.5;
    }

    main section#homehighlight div a {
        display:inline-block;
        color:var(--white);
        background:var(--blue);
        padding:10px 20px;
        border-radius:var(--radius);
        text-decoration:none;
        margin: 20px 0;
    }

main section#homelatest h2 {
    margin-left: var(--layoutpadding);
    float:left;
}

main section#homelatest a.moreNews {   
    border: 1px solid var(--midgrey);
    border-radius: var(--smallRadius);
    text-decoration:none;
    padding:12px 0px;
    font-weight:bold;
    font-size:16px;
    width:128px;
    height:46px;
    display:inline-block;
    text-align:center;
    box-sizing: border-box;
    float:right;
    margin:-5px var(--layoutpadding) 10px 0;
}

    main section#homelatest a.moreNews:hover {
        background-color: var(--palegrey);
    }

main section#homelatest > div.heading {
   
    
}

    main section#homelatest > div.items {
        clear:both;
        display: flex;
        height: 240px;
        justify-content: space-evenly;
        gap: 20px;
        margin: 38px var(--layoutpadding) 56px var(--layoutpadding);
    }

    main section#homelatest > div a {
        display: block;
        border: 1px solid var(--midgrey);
        border-radius: var(--largeRadius);
        text-decoration: none;
        width:33%;
    }

        

        main section#homelatest > div a span.lastestDate {
            position:relative;
            top:30px;
            left:20px;
            color:var(--black);
            font-size:14px;
        }

        main section#homelatest > div a h3 {
            height:100px;
            margin:70px 20px;
        }

        main section#homelatest > div a span.latestMore {
            text-decoration: underline;
            position: relative;
            top: -67px;
            left: 20px;
            font-size:16px;
            font-weight:bold;
        }

        main section#homelatest > div a:hover {
            background-color: var(--palegrey);
        }

            main section#homelatest > div a:hover span.latestMore {
                text-decoration: none;
                color: var(--darkblue);
            }


@media only screen and (min-width: 1013px) and (max-width: 1200px){
    main section#homehero #homeSearch{
        width:462px;
    }

    main section#homehero #homeSearchContainer #homeSearchSubmit{
        left: 325px;
        top: -32px;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1012px){
    main section#homehero{
        height:560px;
        grid-template-columns:1fr;
        grid-template-rows:1fr 1fr;
    }

     main section#homehero #homeSearch{
        width:462px;
    }

     main section#homehero #homeFeatured{
        width:462px;
        padding:30px 60px 0 60px;
    }

    main section#homehero #homeSearchContainer #homeSearchSubmit{
        left: 325px;
        top: -32px;
    }

    main section#homehighlight{
        width:auto;
        height:auto;
        flex-direction:column;
        margin:var(--layoutpaddingMobile);
    }

        main section#homehighlight{
        width:auto;
        height:auto;
        flex-direction:column;
    }

    main section#homehighlight img{
        width:auto;
        height:100%;
    }
    
    main section#homehighlight div{
        width:auto;
        margin:auto 20px;
        padding:15px 0;
    }

    main section#homepopular{
        gap:35px;
    }    

    main section#homepopular > div#popularlinks{
        height:345px;
        grid-template-rows:0.5fr repeat(3, 1fr);
        column-gap:16px;
        row-gap:5px;
    }

    main section#homepopular > div#popularlinks a{
        padding:10px 25px 10px 10px;
        min-height:30px;
        min-height:42px;
    }

    .tab-panel ul li a:before{
        right:-20px;
        width:0;
        padding:0 30px;
    }

 }

@media only screen and (min-width: 511px) and (max-width: 768px){
       main section#homehero{
        height:560px;
        grid-template-columns:1fr;
        grid-template-rows:1fr 1fr;
    }

     main section#homehero #homeSearch{
        width:80%;
        text-align:center;
    }

     main section#homehero #homeSearchContainer{
         position:relative;
     }

     main section#homehero #homeSearch h1{
         
     }

     main section#homehero #homeFeatured{
        width:80%;
        padding:30px 60px 0 60px;
    }

     main section#homehero #homeFeatured a{
         display:block;
         text-align:center;
     }

     main section#homehero #homeSearchContainer input#hometxtSiteSearch{
         width:280px;
     }

    main section#homehero #homeSearchContainer #homeSearchSubmit{
        left: -35px;
        top: 7px;
    }

        main section#homepopular{
        flex-direction:column;
        padding:var(--layoutpaddingMobile);
        gap:15px;
    }

    main section#homepopular > div#popularlinks{
        width:100%;
        display:flex;
        flex-direction:column;
        height:auto;
    }

    main section#homepopular > div#popularlinks a{
        padding:10px;
    }

    main section#homepopular > div#populartabs{
        width:100%;
    }

    .tabset > label{
        width:calc(33% - 2px);
    }

        .tab-panel ul li a:before{
        padding:0 20px;
        width:0;
        right:0;
    }

    main section#homehappening{
        padding: var(--layoutpaddingMobile);
    }

    main section#homehappening > div.items{
        flex-direction:column;
    }

    main section#homehappening > div > a{
        width:100%;
    }

    main section#homehighlight{
        width:auto;
        height:auto;
        flex-direction:column;
        margin:var(--layoutpaddingMobile);
    }

        main section#homehighlight{
        width:auto;
        height:auto;
        flex-direction:column;
    }

    main section#homehighlight img{
        width:auto;
        height:100%;
    }
    
    main section#homehighlight div{
        width:auto;
        margin:auto 20px;
        padding:15px 0;
    }

        main section#homelatest > div.items{
        height:auto;
        margin:38px var(--layoutpaddingMobile) 56px var(--layoutpaddingMobile);
        flex-direction:column;
    }

    main section#homelatest > div.items a{
        width:auto;
    }

        main section#homelatest > div a h3{
        font-size:20pt;
        height:120px;
    }

}

@media only screen and (max-width: 510px){
    main section#homehero{
        height:468px;
        grid-template-columns:1fr;
        grid-template-rows:1fr 1fr;
    }

    main section#homehero #homeSearch{
        width:320px;
        text-align:center;
        padding:10px;
        height:190px;
    }

    main section#homehero #homeSearchContainer input#hometxtSiteSearch{
        width:300px;
        position:relative;
    }

    main section#homehero #homeSearchContainer #homeSearchSubmit{
        position:relative;
        left:127px;
        top:-31px;
    }

    main section#homehero #homeFeatured{
        width:320px;
        padding:20px;
        text-align:center;
        height:215px;
        
    }
    main section#homehero #homeFeatured span{
        font-size:20px;
    }

     main section#homepopular{
        flex-direction:column;
        padding:var(--layoutpaddingMobile);
        gap:15px;
    }

    main section#homepopular > div#popularlinks{
        width:100%;
        display:flex;
        flex-direction:column;
        height:auto;
    }

    main section#homepopular > div#popularlinks a{
        padding:10px;
    }

    main section#homepopular > div#populartabs{
        width:100%;
    }

    .tabset > label{
        width:calc(33% - 2px);
    }

    .tab-panel ul li a:before{
        padding:0 12px;
        width:0;
        right:0;
        margin-left: -12px;
    }

    main section#homehappening{
        padding: var(--layoutpaddingMobile);
    }

    main section#homehappening h2{
        float:unset;
    }

    main section#homehappening a.moreNews{
        float:unset;
        width:100%;
        margin:10px 0;
    }

    main section#homehappening > div.items{
        flex-direction:column;
    }

    main section#homehappening > div > a{
        width:100%;
    }

    main section#homehighlight{
        width:auto;
        height:auto;
        flex-direction:column;
        margin:var(--layoutpaddingMobile);
    }

        main section#homehighlight{
        width:auto;
        height:auto;
        flex-direction:column;
    }

    main section#homehighlight img{
        width:auto;
        height:100%;
    }
    
    main section#homehighlight div{
        width:auto;
        margin:auto 20px;
        padding:15px 0;
    }

    main section#homelatest > div.heading{
        margin:0 var(--layoutpaddingMobile);
    }

    main section#homelatest h2{
        float:unset;
        margin-left:0;
    }

    main section#homelatest a.moreNews{
        float:unset;
        width:100%;
        margin:10px 0;
    }

    main section#homelatest > div.items{
        height:auto;
        margin:10px var(--layoutpaddingMobile) 56px var(--layoutpaddingMobile);
        flex-direction:column;
    }



    main section#homelatest > div.items a{
        width:auto;
    }
    
    main section#homelatest > div a h3{
        font-size:20pt;
        height:120px;
    }


}

@media only screen and (max-width: 320px) {
    main section#homehero #homeSearch{
        width:98%;
    }

    main section#homehero #homeFeatured{
        height:255px;
    }

    main section#homelatest > div a h3{
        margin-top:35px;
        font-size:19pt
    }

    main section#homelatest > div a span.latestMore {
        top: -3px;
    }
}