/*
 * News style for gallura template.
 */

/* News section */

section#container {
    padding: 0;
}

section#container .left {
    padding: 3em 12% 4em 5%;
    width: 70%;
}

section#container .right {
    width: 30%;
    padding: 4em 5% 2em 0;
    box-sizing: border-box;
}

section#container > div > * {
    padding-bottom: 1em;
}

section#container .ninfo {
	font-size: .8em;
}

section#container > div img {
    display: block;
    margin: 0px auto;
    max-width: 100%;
}

section#container > div a {
    text-decoration: underline;
    font-weight: 700;
}

section#container i {
	font-style: italic;
}

section#container iframe {
    width: 100%;
    height: 22em;
}

section#container .upper {
    text-transform: uppercase;
    font-weight: 700;
}

section#container > div li {
    list-style: disc;
    margin: 1em 2em;
}

section#container > div ul.decimal li {
    list-style: decimal;
}

section#container nav li {
	cursor: pointer;
}

section#container #newsmenu a:hover, section#container #newsmenu a.selected {
	text-decoration: underline;
}

section#container nav > ul > li {
    font-size: 1.2em;
}

section#container #newsmenu ul {
    padding-left: 2em;
    margin-top: 1em;
    margin-bottom: 2em;
    list-style-type: disc;
}

section#container #newsmenu > li > ul > li {
    font-size: .8em;
    margin: .5em 0em .5em .5em;
}

/* News archive page */

section#previewBlog {
    margin-top: 2em;
    padding: 0;
    width: 100%;
}

div#filter {
    width: 25%;
    padding: 3em 5%;
    position: relative;
    transition: all .5s linear;
}

div#filter.fixed {
    position: fixed;
    top: 6em;
    left: 0;
    background-color: #99CC66;
}

/* new css */
div#blogPreview {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 2em 0;
    width: 75%;
}

div#blogPreview a {
    width: 26%;
    margin: 1em 3.5%;
    position: relative;
    border-left: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    border-radius: 15px;
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
       -moz-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
         -o-box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
            box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
}

div#blogPreview div.news > div {
    position: relative;
    padding: 5.5em 0;
    border-radius: 15px 15px 0 0;
    overflow: visible;
}

div#blogPreview div.news div div#created {
    padding: 1em 5%;
    border-radius: 0 12% 12% 0;
    width: 55%;
    color: var(--white);
    position: absolute;
    top: 3.5em;
    left: -2em;
    display: flex;
    align-items: center;
}

div#blogPreview div.news div div#created p.day {
    padding-right: 0.5em;
    font-size: 2em;
}

div#blogPreview div.news div div#created div p {
    font-size: .8em;
}

div#blogPreview div.news > p {
    font-weight: bold;
    padding: 1.5em 5%;
}

/* new design */

section.image {
    padding: 0!important;
}

section.image img {
    height: 55vh;
}

section#internal > div.right .buttonContainer a {
    border: 1px solid var(--white);
    width: 100%;
    margin-bottom: 1em;
    text-align: center;
    padding: .2em 1em;
}

section#internal > div.right {
    padding: 3em 5% !important;
    display: block;
    color: var(--white);
}

section#internal > div.right ul {
    margin-bottom: 0!important;
}

section#internal > div.right ul li {
    margin-left: 0!important;
}

section#internal > div.right ul li a {
    color: var(--white);
}

section#internal > div.right ul li a:hover,
section#internal > div.right ul li a.selected {
    text-decoration: underline;
}

section#internal > div.left h1 {
    font-size: 2em;
    text-transform: capitalize;
}

section#internal > div.right .accordion-item.active .accordion-collapse{
    display: block;
}

section#internal > div.right .accordion-header {
    padding: .25em 0;
}

section#internal > div.right .accordion-header .accordion-button {
    font-weight: bold;
    font-size: 1.1em;
}

section#internal > div.right .buttonContainer {
    margin-top: 2em;
}

section#internal > div.left h1 {
    font-size: 2em;
}

.accordion-header button i {
    display: none;
}

section#internal > div.left .button {
    display: none;
}

.breadcrumb {
    display: none;
}

section#internal > div.right .accordion-collapse {
    background-color: var(--green)!important;
}

.socials {
    padding: 1em 0;
    width: 67%;
}

.socials h3 {
    color: var(--darkGrey);
    margin-bottom: 1em;
}

.socials a {
    margin-right: 2%;
}

@media screen and (max-width: 768px) {

    div#filter {
        display: none;
    }

    div#blogPreview {
        flex-wrap: wrap;
        width: 100%;
        padding: 2em 5%;
    }

    div#blogPreview h2 {
        font-size: 1.5em;
    }

    div#blogPreview section.mobile {
        display: none;
    }

    div#blogPreview a {
        width: 40%;
        margin-bottom: 2em;
    }

     /* News section */
     section#container .left {
        width: 100%;
        padding: 3em 5%;
    }

    section#container .right {
        background-color: var(--green);
        width: 100%;
        padding: 1em 5%;
        margin: 0;
    }

    section#container #newsmenu a:hover {
        color: var(--black);
    }

    section#container #newsmenu > li > ul > li {
        margin: .8em 0em .8em .5em;
    }

    section#container iframe {
        height: 20em;
    }
}

@media screen and (max-width: 576px) {

    div#blogPreview h2.textBig {
        width: 100%;
        text-align: center;
    }

    div#blogPreview section.desktop {
        display: none;
    }

    div#blogPreview section.mobile {
        display: flex;
    }

    div#blogPreview section.mobile a.button {
        height: inherit;
        text-align: center;
        width: 50%;
    }

    div#blogPreview a {
        width: 82%;
        margin-bottom: 2em;
    }

    /* News internal */
    section#container #newsmenu > li > ul > li {
        font-size: 1em;
    }

    /* new dwsign */
    section#internal {
        padding: 0;
    }

    section#internal > div.right,
    section#internal > div.left {
        padding-left: 5%;
        padding-right: 5%;
    }

    section#internal > div.right .buttonContainer a {
        width: 100%;
    }

    .fa-xl {
        font-size: 2.5em;
        line-height: 1em;
    }

    .socials {
        width: 100%;
    }

    .socials a {
        margin-right: 10%;
    }
}