
/*******************************************************************************************************************************************************************************************/
/********************************************* homepage  **********************************************************************************************************************/
/*******************************************************************************************************************************************************************************************/

#homepage-wide-title-frame { padding-top: 4em }
#tip-detail { display:none }


/************* section switcher ***************/

#section_switcher {
	margin: auto;
	
}

.section_switcher_centerer {

}

/* 4 boxes by row with a big gap between columns */
@media (min-width: 1183px) {
	#section_switcher_buttons { 
		column-count: 4;
		column-gap: 40px;
		-moz-column-count:4;
		-moz-column-gap:40px;
	}
}
/* when the screen is smaller, 4 boxes by row but a smaller gap */
#section_switcher_buttons {  
	column-count: 4;
	column-gap: 20px;
	-moz-column-count:4;
	-moz-column-gap:20px;	
}
/* on smaler screen, only 2 boxes by row */
@media (max-width: 800px) { 
	#section_switcher_buttons { 
		column-count: 2;
		column-gap: 20px;
		-moz-column-count:2;
		-moz-column-gap:20px;		
	}
}

.section_switcher_button { 
	font-size: 1.6em;
    font-weight: bold;
	text-align: center;
    background: #00aeef;
    height: 189px;
    color: white; 
	border: 3px solid #FFFFFF;
}
.section_switcher_button:hover { border: 3px solid #00aeef; color: #00aeef; background: white; cursor: pointer }

.section_switcher_button_disabled:hover { border: 3px solid #00aeef; color: #00aeef; background: white;     cursor: not-allowed; }

.section_switcher_button p { /* to vertically align text inside the button */
	position: relative; 
	top:5%;
  	font-family: 'Arial';
  	font-weight: bold;
  	text-transform: uppercase;
}

.section_switcher_button p:before {
	content: "\f1cb\A";
	white-space: pre;
	font: 1em FontAwesome;
    color: white;    
    font-size: 48px;
    /*position: absolute;
    margin-right: 8px;
    left: 40%;
    float: left;
    top: 20%;*/    
}
.section_switcher_button p:hover:before {
	color: #00aeef;
}

#section_button_library { background: #6e81bd; margin-right: 0;}
#section_button_library:hover { border: 3px solid #6e81bd; color: #6e81bd; background: white }
#section_button_library p:hover:before { color: #6e81bd }
#section_button_library p:before { content: "\f02d\A";}

#section_button_analysis { background: #acd373 }
#section_button_analysis:hover { border: 3px solid #acd373; color: #acd373; background: white }
#section_button_analysis p:hover:before { color: #acd373 }
#section_button_analysis p:before { content: "\f0ac\A";}

#section_button_stats { background: #f26522 }
#section_button_stats:hover { border: 3px solid #f26522; color: #f26522; background: white }
#section_button_stats p:hover:before { color: #f26522 }
#section_button_stats p:before { content: "\f1ec\A";}

#section_switcher_texts { display:none }


.btn.homepage {
	margin-bottom: 0;
	line-height: auto;
	padding: 0.3em;
	min-height: auto;  
}

/*************************************************************************************************************************************************************************************
	Home page slider (carousel with "slick")
*************************************************************************************************************************************************************************************/
/* no border around the picture 
   no padding around the picture 
   a small marg on the left */
.page-welcome20 .panel-body.content .pane-what-is-new-carousel-pane-2 a img {
	border:0px;
	padding: 0px;
	/*margin-left: 15px;*/
	width: 100%;
}

/** The carousel H2 : blue and no bottom border */
.slick-slider h2 {
    border-bottom: initial;
    color: #369;
}

/** Titles not glued to the edge */
.pane-what-is-new-carousel-pane-2 h4,
.pane-what-is-new-carousel-pane-2 .views-field-body,
.pane-what-is-new-carousel-pane-2 h2
 {
	padding: 0px 50px 0px 50px;
}
/** arrow color (orange = rgb(255, 66, 0))*/
.pane-what-is-new-carousel-pane-2 .slick-prev:before,
.pane-what-is-new-carousel-pane-2 .k-next:before {
    color: #0065A2;
}

.pane-what-is-new-carousel-pane-2 {
	border: 1px solid #DDDDDD;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@charset 'UTF-8';
/* Slider */
.slick-loading .slick-list
{
    background: #fff url('/sites/all/themes/ec_resp/scripts/slick/ajax-loader.gif') center center no-repeat;
}

/*********** Arrows *********************************************************************************/
.slick-prev,
.slick-next
{
    font-size: 0;
    line-height: 0;
    z-index: 1;

    position: absolute;
    bottom: 0%; /* vertical position of the arrow: 100% = in the tool bar (when it is below the container). 50% = in the middle. -40px - over the contener title */

    display: block;

    width: 40px;
    
    margin-top: -10px\9; /*lte IE 8*/
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);

    cursor: pointer;
	color: #0065A2;
    border: 0;
    outline: none;
    background-color:rgba(255, 255, 255, 0.9);
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus
{
    background-color:rgba(255, 255, 255, 1);
}
.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before
{
    opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before
{
    opacity: .25;
}

/* definition of the left and right arrow  (common settings) */
.slick-prev:before,
.slick-next:before
{
    font: 24px/18px FontAwesome;
    font-size: 40px;
    width: 40px;
    line-height: 1;

    opacity: .75;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.slick-prev
{
    left: 0px; /* -50px to be outside (on the left) of the slides. 0 to be over the slides */
}
[dir='rtl'] .slick-prev
{
    right: 0px;
    left: auto;
}
.slick-prev:before
{
    content: "\f060"; /* left arrow*/
}
[dir='rtl'] .slick-prev:before
{
    content: "\f061"; /* right arrow*/
}

.slick-next
{
    right: 10px; /* -50px to be outside (on the right) of the slides. 10 to be over the slides */
}
[dir='rtl'] .slick-next
{
    right: auto;
    left: 10px;
}

.slick-next:before
{
    content: "\f061"; /* right arrow*/
}
[dir='rtl'] .slick-next:before
{
    content: "\f060"; /* left arrow*/
}

/*********** Dots *********************************************************************************/
.slick-dots
{
    position: absolute;

    /*top: -10px;*/ /* dots above the picture, in the container title "Editor's picks" */
    bottom: -20px; /*bottom: -45px; if under the picture*/ /* when above the picture, use 100% otherwise it covers the whole container */
    
    display: block;

    width: 100%;
    padding: 0;

    list-style: none;

    text-align: center;
}
.slick-dots li
{
    position: relative;

    display: inline-block;

    width: 30px;
    height: 30px;
    margin: 0 5px;
    padding: 0;

    cursor: pointer;
}
.slick-dots li button
{
    font-size: 0;
    line-height: 0;

    display: block;

    width: 30px;
    height: 30px;
    padding: 5px;

    cursor: pointer;

    /*color: transparent;*/
    border: 0;
    outline: none;
    background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus
{
    outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before
{
    opacity: 1;
}
.slick-dots li button:before
{
    font: 24px/18px FontAwesome;
    line-height: 20px;

    position: absolute;
    top: 0;
    left: 0;

    width: 30px;
    height: 30px;

    content: '\f192';
    text-align: center;

    opacity: .25;
    color: #0065A2;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before
{
    opacity: .75;
    color: #0065A2;
}

.box-separated { margin-bottom: 1em; }

.page-welcome20 .views-field.views-field-field-geo-coverage {
	border: 0;
	height: auto !important; 
	margin-bottom: 0 !important;
}

/*************************************************************************************************************************************************************************************
	Banner with country codes
*************************************************************************************************************************************************************************************/
/** When we display a list of country code inline */
div.country-icons-inline {
    margin: 0px 4%;
    color: white;
    width: 96%;
    padding-top: 1px;
}

/** country code icons */
div.country-icons-inline a, div.country-icons-inline div, span.country-icons-inline {
    display: inline-block;
    padding: 5px;
    border: 1px solid #5d5d5d;
    box-sizing: border-box;
    position: relative;
    color: #5d5d5d;
    margin-top: 7px;
    width: 34px;
	font-size: 14px;
	
    font-weight: bold;
    text-align: center;	
}
span.country-icons-inline {
    margin-right: 2%;	
}


/* Carousel, CR item, when the country is available */
.country-icons-inline a.crUpdated {  color: #585858;    border: 1px solid black; background-color: rgba(255, 255, 255, 0.84) }

/* Carousel, CR item, when the country is NOT available */
div.country-icons-inline div {
    color: #6b6b6bb0;
    border: 1px solid #6b6b6bb0;
    background-color: rgba(255, 255, 255, 0.14);
}

div.country-icons-inline a:hover {
    background-color: white;
    color: #1f1f1f;
    text-decoration:none;
}

/* Custom tool tip box on country icons :hover -  (black background, white text) */
div.country-icons-inline a:hover:after, div.country-icons-inline div:hover:after{
    background: #333;
    background: rgba(0,0,0,0.6);
    border-radius: 5px;
    top: 50px;
	color: #fff;
    content: attr(tooltip-data);
    padding: 5px 15px;
    position: absolute;
    z-index: 98;
    width: 220px;
}
a.tt-right:hover:after, div.tt-right:hover:after {
    left: 0px;
}
a.tt-left:hover:after, div.tt-left:hover:after {
    left: -150px;
}

/*** The CR banner picture ***/
.rio-xbanner {
	background: transparent url('/sites/default/files/pictures/CR-banner.png') no-repeat center center;
	height: 300px;
}

/*** The CR banner responsiveness - START *** 
	We have something like:
		<rio-xbanner> / 
			<country-icons-inline-1> / <custom-tooltip-1>
			<country-icons-inline-2> / <custom-tooltip-2>...
	The custom tool tip position is absolute, so it is positioned relative to the nearest positioned ancestor.
	By default the rio-xbanner position is static and country-icons-inline position is relative. So the tool tip is positioned relative to the country-icon. It will always be  displayed under the country icon. Pb: On small screens, the tool tip goes out of the screen on the right edge.
	In smaller screen, the rio-xbanner position becomes 'relative' and country-icons-inline position is 'static' (back to default). So the tool tip is positioned relative to the banner. It avoid to be displayed out of the screen.
*/
@media (max-width: 1183px) {
	.rio-xbanner {
		height: 300px;
	    position: relative;
	}
	div.country-icons-inline a, div.country-icons-inline div {
    	position: static;
	}
	div.country-icons-inline a:hover:after, div.country-icons-inline div:hover:after{
   		top: 75%;
   		/*right: 100%;*/
	}
	a.tt-right:hover:after, div.tt-right:hover:after {
	    left: 0px;
	}
	a.tt-left:hover:after, div.tt-left:hover:after {
	    left: 0px;
	}
}

@media (max-width: 975px) {
	.rio-xbanner {
	    height: 210px;
	    background-size:100% 100%;
	}
}

@media (max-width: 649px) {
	.rio-xbanner {
	    height: 250px;
	    background-size: auto auto;
	}
}
/*** The CR banner responsiveness - END ***/

/** Some space between divs in tables in "international-cooperation" thematic page */
.page-thematic-analysis-international-cooperation table div {
    padding-bottom: 20px;
}