:root {
    --dark-orange: #c24f1d;
    --light-orange: #f5912f;
    --grey: #787878;
}

@keyframes gradient {
	0% {
        transform: rotate(0deg);
	}
	50% {
        transform: rotate(180deg);
	}
	100% {
        transform: rotate(360deg);
	}
}

*:focus {
    outline: 0;
}

html{
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0px;
}

h3 {
	font-size: 24px;
	font-weight: bold;
	line-height: 30px;
    margin: 0 0 15px 0;
}

p, ul li {
    font-size: 14px;
    line-height: 20px;
    margin: 0 0 20px 0;
}

p:last-child {
    margin-bottom: 0;
}

body,
button,
input,
select,
textarea {
    color: #434343;
	font-family: "sofia-pro", Open Sans, Calibri, Arial;
    -webkit-font-smoothing: antialiased;
}

a {
    transition: 0.3s ease;
    color: #434343;
    text-decoration: none;
    white-space: nowrap;
}

.footer-block a {
	color : #fff;
}

a:hover {
    color: var(--dark-orange);
}

a span {
    color: var(--dark-orange);
    
}

#container {
    width: 100vw;
    overflow-x: hidden;
}

#header {
    position: relative;
    height: 500px;
    text-align: center;
    vertical-align: top;
    overflow: hidden;
}

#header::before {
    position: absolute;
    display: block;
    content: '';
    left: -50vw;
    top: calc(-50vw - 50%);
    width: 200vw;
    height: 200vw;
    background-image: linear-gradient(115deg, var(--dark-orange),  var(--light-orange));
	animation: gradient 15s ease infinite;
    transform-origin: center;
    z-index: -1;
	opacity: 0.9;
}

#header::after {
    content: '';
    display: block;
    position: absolute;
    width: 100vw;
    height: 100%;
    top: 0;
    background: url(../img/content/bi-consultancy.png) center;
    background-size: contain;
    z-index: -2;
    filter: invert(1);
}

#logo {
    position: absolute;
    height: 75px;
    top: 30px;
    left: 30px;
}

#footer {
    position: relative;
    background-color: #434343;
    color: #fff;
}
 
.footer-blocks {
    width: 90vw;
    display: flex;
    padding: 30px;
    margin: 0 auto;
}
 
 .footer-block {
     box-sizing: border-box;
     flex: 1 calc(25% - 40px);
     padding: 20px;
 }

 .footer-block p {
    line-height: 24px;   
 }

.footer-block p img {
    display: inline-block;
    height: 20px;
    margin-right: 5px;
    vertical-align: top;
}

.footer-block p img + span {
    display: inline-block;
    vertical-align: top;
}
 
 #footer-logo {
	width: 250px;
 }
 
 .footer-title {
	 font-weight: bold;
     font-size: 18px;
     line-height: 24px;
     margin: 0 0 15px 0;
 }

 
#btn-contactme {
    display: block;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
	position: absolute;
	top: 40px;
	right: 40px;
	width: 160px;
	height: 40px;
	line-height: 34px;
	border: 1px solid #fff;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    background: url(../img/contact.png) 12px center no-repeat;
    background-color: transparent;
    background-size: auto 27px;
    text-indent: 25px;
    cursor: pointer;
}

#btn-contactme:hover {
    background-color: var(--dark-orange);
}

#filters {
	position: relative;
    width: 90vw;
    max-width: 1100px;
    margin: -160px auto 0 auto;
}

#card-search {
	position: relative;
	width: 100%;
	height: 80px;
	text-align: center;
}

#search {
    box-sizing: border-box;
	height: 60px;
	line-height: 60px;
    width: 90vw;
	max-width: 500px;
    padding: 0 25px;
	border-radius: 15px;
	border: none;
    font-size: 20px;
    font-weight: bold;
    background: #fff url(../img/search.png) 95% center no-repeat;
    background-size: 28px;
}

#card-subject-list,
#card-topic-list {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100% - 30px);
    padding-right:10px;
}

#card-subject-list::-webkit-scrollbar,
#card-topic-list::-webkit-scrollbar{
    background: #fff;
    width: 10px;
}

#card-subject-list::-webkit-scrollbar-thumb,
#card-topic-list::-webkit-scrollbar-thumb {
    background: linear-gradient(0deg, #fff 0%,  var(--dark-orange) 100%);
}

.card-2 {
    box-sizing: border-box;
	position: relative;
	float: left;
	width: calc(50% - 40px);
	height: 250px;
	border: none;
	background-color: #fff;
	border-radius: 20px;
	margin: 20px;
	padding: 30px;
}

#scrolltoresults {
    clear: both;
	position: relative;
	width: 300px;
	height: 100px;
	left: calc(50% - 150px);	
    top: 10px;
}

#btn-scrolltoresults {
	position: relative;
    clear: both;
	width: 50px;
	height: 50px;
	left: 125px;
	border-radius: 50px;
	border: 1px solid #434343;
	cursor: pointer;
}

#btn-scrolltoresults::before,
#btn-scrolltoresults::after {
    position: absolute;
    display: block;
    content: '';
    width: 16px;
    height: 16px;
    border-left: 1px solid ;
    border-bottom: 1px solid;
    transform: rotate(-45deg);
    left: 17px;
    top: 15px;
}

#btn-scrolltoresults::after {
    top: 8px;
}

#txt-scrolltoresults {
	position: relative;
	width: 300px;
	height: 100px;
	text-align: center;
    top: 10px;
}

#scrollup {
	position: fixed;
	width: 100px;
	height: 50px;
	right: calc(5vw - 50px);
	top: 90vh;
    display: none;
}

#scrollup::before,
#scrollup::after {
    position: absolute;
    display: block;
    content: '';
    width: 16px;
    height: 16px;
    border-left: 1px solid;
    border-bottom: 1px solid;
    transform: rotate(135deg);
    left: 17px;
    top: 25px;
    z-index: 1;
    pointer-events: none;
}

#scrollup::after {
    top: 18px;
}

#btn-scrollup {
	position: relative;
	float	: left;
	width: 50px;
	height: 50px;
	right: 0px;
	border-radius: 50px;
	border: 1px solid #434343;
	cursor: pointer;
	background-color: #fff;
}

#content {
	position: relative;
	width: 100vw;
    max-width: 1100px;
	margin: 50px auto;
}

#content-txt div:nth-child(8) .content-block {
    flex-direction: row-reverse;
}

.card-title {
    display: block;
	line-height: 20px;
	color: #434343;
	font-weight: bold;
	font-size: 20px;
    margin-bottom: 10px;
}

.p {
    display: flex;
    flex-wrap: wrap;
	position: relative;
	margin-bottom: 50px;
	width: 100%;
	overflow: auto;
}

.subject-block {
	position: relative;
	margin-left: 10px;
	float: left;
	width: 100%;
	text-align: center;
}

.shadow {
	box-shadow: 0 0 20px 12px rgba(0,0,0,0.05);	
}

.border {
	border-radius: 20px;
    overflow: hidden;
}

.content-block {
    box-sizing: border-box;
	position: relative;
    margin: 20px;
	float: left;
	padding: 30px;
    overflow:hidden;
}

.content-block-33 {
    flex: 1 calc(33% - 40px);
}

.content-block-50 {
    flex: 1 calc(50% - 40px);
}

.content-block-100 {
    display: flex;
	width: 100%;
    padding: 0;
    margin: 0;
}

.content-block-img {
	display: inline-block;
	position: relative;
	width: calc(100% + 60px);
    left: -30px;
    top: -30px;
	height: auto;
}

.content-block-img img,
.content-block-img-side img {
    width: 100%;
}

.content-block-img-side {
    flex: 1 calc(50% - 40px);
    padding: 0 20px;
}

.content-block-img-side img { 
    border-radius: 20px;
    margin: 20px 0;
}

.content-block-txt {
	position: relative;
}

.content-block ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.content-block ul li {
    margin: 0;
}

.content-block ul li::before {
    content: "\2022";  
    color: var(--dark-orange);
    display: inline-block; 
    margin-right: 10px;
}

.content-block-txt-side {
    flex: 1 calc(50% - 60px);
    margin: 30px;
    padding: 30px;
}

.txtitle {
	color: var(--dark-orange);
}

.txsubject {
	font-size: 36px;
	font-weight: bold;
	line-height: 40px;
    margin: 0 0 15px 0;
}

.txsubject::after {
	content: " .";
	color: var(--dark-orange);
}

.link-menu {
    transition: 0.3s ease;
	display: inline-block;
	float: left;
	cursor: pointer;
	font-weight: bold;
	margin: 5px;
	color:  var(--grey);
	border: 1px solid;
	border-radius: 8px;
}

.link-menu > span {
    display: block;
	font-weight: bold;
	line-height: 36px;
    font-size: 16px;
	padding: 0 20px;
}

.link-menu-selected {
	display: inline-block;
	float: left;
	cursor: pointer;
	font-weight: bold;
	margin: 5px;
	border: 1px solid var(--dark-orange);
	border-radius: 8px;
	background-color: var(--dark-orange);
}

.link-menu-selected > span {
    display: block;
	color: #fff;
	font-weight: bold;
	line-height: 36px;
    font-size: 16px;
	padding: 0 20px;
}

.no-bullets {
	list-style-type: none;
    padding: 0;
    margin: 15px -5px 0 -5px;
}

#slogan {
    display: inline-block;
	line-height: 140px;
	color: #fff;
	text-align: center;
	font-size: 40px;
    vertical-align: middle;
    margin-top: 100px;
    font-weight: normal;
}

#slogan::before {
    position: relative;
    display: inline-block;
	content: "{";
	font-size: 140px;
	line-height: 140px;
	opacity: 30%;
    left: -15px;
    top: 20px;
}

#slogan::after {
    position: relative;
	content: "}";
	font-size: 140px;
	line-height: 140px;
	opacity: 30%;
    right: -15px;
    top: 20px;
}

.search-result,
.tag-result {
	font-weight: bold;
	color: #434343;
    white-space: nowrap;
}

.search-result::before,
.tag-result::before {
    position: relative;
    display: inline-block;
    content: '{';
    font-size: 1.4em;
    margin: 0 5px;
    color: var(--dark-orange);
}

.search-result::after,
.tag-result::after {
    position: relative;
    display: inline-block;
    content: '}';
    font-size: 1.4em;
    margin: 0 5px;
    color: var(--dark-orange);
}

.no-results {
	color : #787878;	
}

.txtonly .content-block-txt-side{
    margin: 0;
    text-align: center;
}

div.ghost {
	opacity: 20%;
}

@media screen and (max-width: 900px) {
    
    h3 br {
        display: none;
    }
    
    #header {
        height: 450px;
        max-height: 90vw;
    }
	
     #header::after {
          background-size: cover;
	}
    
    #logo {
        transform: scale(0.8);
        transform-origin: top left;
        left: 5vw;
    }
    
    #btn-contactme {
        transform: scale(0.8);
        transform-origin: top right;
        top: 40px;
        right: 5vw;
    }
    
    #slogan {
        line-height: 18vw;
        font-size: 4.5vw;
        margin-top: calc(10vw + 40px);
    }
    
    #slogan::before{
        font-size: 18vw;
        top: 12px;
        left: -1vw;
    }
    
    #slogan::after {
        font-size: 18vw;
        top: 12px;
        right: -1vw;
    }
    
    #card-search {
        height: 70px;
    }
    
    #search {
        font-size: 18px;
        height: 50px;
        border-radius: 15px;
        padding: 0 20px;
        background-size: 24px;
        max-width: 400px;
    }
    
    .card-2 {
        width: 100%;
        margin: 25px 0;
    }
    
    .content-block-100 {
        display: block;
    }
    
    .content-block,
    .content-block-img-side,
    .content-block-txt-side {
        flex: 1 100%;
    }
    
    .content-block-txt-side {
        margin: 0;
    }
    
    .footer-blocks {
        display: block;
    }
}

@media screen and (max-width: 500px) {
    
    #filters {
        margin-top: -120px;
    }
    
    #card-search {
        height: 50px;
    }
    
    #card-subject {
        position: relative;
        z-index: 1;
        background: none;
        box-shadow: none;
    }
    #card-topic {
        position: absolute;
    }
    
    #card-topic .card-title {
        left: 50%;
        opacity: 0.4;
        text-align: right;
    }
    
    #card-subject {
        pointer-events: none;
    }
    
    #card-subject-list {
        pointer-events: all;
    }
    
    #card-subject.hidden + #card-topic .card-title {
        opacity: 1;
    }
    
    #card-subject.hidden .card-title {
        opacity: 0.4;
    }
    
    #card-subject.hidden #card-subject-list {
        opacity: 0;
        pointer-events: none;
    }
    
    #card-subject-list {
        position: relative;
        background: #fff;
        border: 1px solid #fff;
        top: -1px;
        left: -1px;
    }
    
    .card-title {
        pointer-events: all;
        position: relative;
        display: inline-block;
        width: 50%;
        top: -8px;
    }
}

@media (hover:hover) {
    .link-menu:hover {
        color: var(--dark-orange);
    }
}
