/**
 * Version details
 *
 * @package    theme
 * @subpackage COME
 * @copyright  2018 Centrum Otwartej i Multimedialnej Edukacji (COME)
 * @author     Marcin Golebiowski
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 *
 */


/**** LIST : Grid cols - commons *********************************************/

.grid5cList > ul, 
.grid4cList > ul, 
.grid3cList > ul            { margin: 0; }
.grid5cList > ul > li, 
.grid4cList > ul > li, 
.grid3cList > ul > li       { display: inline-block; }
.grid5cList > ul > li p, 
.grid4cList > ul > li p, 
.grid3cList > ul > li p, 
.grid5cList > ul > li img, 
.grid4cList > ul > li img, 
.grid3cList > ul > li img   { display: block; }
.grid5cList > ul > li img, 
.grid4cList > ul > li img, 
.grid3cList > ul > li img   { margin-bottom: 7px; }

.grid5cList > ul > li       { width: 192px; }

.grid4cList > ul > li       { width: 240px; }

.grid3cList > ul > li       { width: 320px; }


/**** LIST : Sliding List ****************************************************/

.sliderList > ul > li       { width: 178px; }

.sliderList                 { position: relative; overflow: hidden; padding: 0 35px; }
.sliderList > ul            { position: relative; left: 0; white-space: nowrap; }
.sliderList > ul > li a     { display: block; line-height: 1.25em; }
.sliderList > span 
{
	background-position: center center; background-repeat: no-repeat;
	position: absolute; top: 0; bottom: 0; width: 35px; cursor: pointer;
	z-index: -1; opacity: 0.0;
}

.sliderList > span.active 
{ 
	z-index:  1; opacity: 1.0; 
}

.sliderList > .slCtrlLt     { background-image: url('/theme/come/pix/fp/sliderList_lt.png'); left:  0; } 
.sliderList > .slCtrlRt     { background-image: url('/theme/come/pix/fp/sliderList_rt.png'); right: 0; }


/**** LIST : Expanding Vertically List ***************************************/

.expandList > ul            { overflow: hidden; }

.expandList .more-link      { padding: 1.5em 0; }
.expandList .elCtrlDn       { border: 1px solid #00447C; border-bottom-width: 4px; padding: 0.75em 1.5em; }
.expandList .elCtrlDn:hover { border-color: #0092CE; }


/**** LIST ITEM : Centered Item / content ************************************/

.centerItem                 { padding-left: 0; }
.centerItem > li p,
.centerItem > li a, 
.centerItem > li img        { margin: 0 auto; text-align: center; }


/**** LIST ITEM : Bottom-Right Spaced Item ***********************************/

.spacedItem                 { padding-left: 0; }
.spacedItem > li            { padding-right: 10px; padding-bottom: 10px; }


/**** LIST ITEM : Rounded Item ***********************************************/

.roundItem                  { padding-left: 0; }
.roundItem > li p, 
.roundItem > li a 
{
	position: relative; width: 160px; height: 160px; padding-top: 10px; 
	color: #535353; background-color: #EAE9E9; border-radius: 50%; 
}

.roundItem > li > p > img, 
.roundItem > li > a > img   { width: 80px; }


/**** LIST ITEM : Zoomed Item ************************************************/

.zoomItem                   { padding-left: 0; }
.zoomItem > li > a, 
.zoomItem > li > p 
{ 
	font-size: 120%; 

	-webkit-transform: scale(0.8, 0.8); 
	    -ms-transform: scale(0.8, 0.8);
	        transform: scale(0.8, 0.8); 
}

.zoomItem > li > a:hover,
.zoomItem > li > p:hover 
{ 
	-webkit-transform: scale(1.0, 1.0); 
	    -ms-transform: scale(1.0, 1.0); 
	        transform: scale(1.0, 1.0); 
}


/**** LIST ITEM : Sliding Vertically Item ***********************************************/

.vSlideItem > li a 
{
	display: block; height: 188px; position: relative; overflow: hidden; 

    background-attachment: scroll;
    background-position: center top;
    background-repeat: no-repeat;
}

.vSlideItem > li:nth-child(1) a {  }

.vSlideItem > li p, 
.vSlideItem > li div        { position: relative; width: 100%; left: 0; }
.vSlideItem > li p          { top: 0;  height: 50px; line-height: 50px; text-align: center; margin: 0; }
.vSlideItem > li div        { top: calc(100% - 50px); height: inherit; background-color: rgba(255, 255, 255, 0.8); }
.vSlideItem > li span       { font-family: themeBold; line-height: 1.25em; text-transform: uppercase; display: inline-block; vertical-align: middle; }

.vSlideItem > li a:hover > div     { top: 0;                }
.vSlideItem > li a:hover > div > p { top: calc(50% - 25px); }


/**** LIST ITEM : Sliding Horizontally Item ***********************************************/

.hSlideItem > li a 
{
	display: block; height: 185px; position: relative; overflow: hidden; 

    background-attachment: scroll;
    background-position: center top;
    background-repeat: no-repeat;
	background-size: cover;
}

.hSlideItem > li div, 
.hSlideItem > li p          { position: absolute; bottom: 0; }
.hSlideItem > li div        { width: 140px; height: 159px; left: 9px; }
.hSlideItem > li p          { width: 100%;  height:  40px; line-height: 40px; text-align: center; margin: 0; color: #FFFFFF; }
.hSlideItem > li span       { text-transform: uppercase; }

.hSlideItem > li a:hover div    { left: calc(100% - 140px); }

.hSlideItem > li:nth-child(1) a   {  }
.hSlideItem > li:nth-child(1) div {  }
.hSlideItem > li:nth-child(1) p   {  }


/**** LIST ITEM : Flipping Item **********************************************/

.flipItem                   { padding-left: 0; }
.flipItem                   { margin-top: 10px !important; margin-bottom: 10px !important; }
.flipItem > li 
{ 
	-webkit-perspective: 1000px; 
	        perspective: 1000px; 
}

.flipItem > li div 
{ 
	position: relative; border: 1px solid transparent; 

	-webkit-transform-style: preserve-3d; 
	        transform-style: preserve-3d; 
}

.flipItem > li:hover div 
{ 
	-webkit-transform: rotateY(180deg); 
	    -ms-transform: rotateY(180deg); 
	        transform: rotateY(180deg); 
}

.flipItem > li div > p 
{ 
	border: 1px dotted transparent; 

	-webkit-backface-visibility: hidden; 
	        backface-visibility: hidden; 
}

.flipItem > li div > p:nth-child(1) 
{ 
	z-index: 2; 

	-webkit-transform: rotateY(0deg); 
	    -ms-transform: rotateY(0deg); 
	        transform: rotateY(0deg); 
}

.flipItem > li div > p:nth-child(2) 
{ 
	position: absolute; top: 0; left: 0; 

	-webkit-transform: rotateY(180deg);
	    -ms-transform: rotateY(180deg);
	        transform: rotateY(180deg);
}


/**** LIST ITEM : Course Category Item ***************************************/

.crCatItem                  { padding-left: 0; }
.crCatItem > li p           { color: rgba(255, 255, 255, 0.9); width: 100%; height: 190px; margin: 0; }
.crCatItem > li p + p       { padding: 10px 15px; line-height: 1.5em; }

.crCatItem > li p:nth-child(1) span 
{
	display: block; position: absolute; bottom: 0; background-color: rgba(0, 0, 0, 0.2); /* black 20% */ 
	width: 100%; height: 47px; padding: 4px 20px; border-top: 1px dotted transparent; 
 }
 
.crCatItem > li p:nth-child(2) strong 
{
	display: block; position: absolute; bottom: 15px; right: 20px; font-family: themeRegular; 
}

.crCatItem > li p:nth-child(2) strong:after
{
	content: ' \203A'; font-family: themeBold; font-size: 150%; vertical-align: -1px; 
}

.crCatItem > li:nth-child(1)  p, 
.crCatItem > li:nth-child(7)  p, 
.crCatItem > li:nth-child(9)  p, 
.crCatItem > li:nth-child(15) p      { background-color: #AB726B; }  /* LT RED */

.crCatItem > li:nth-child(2)  p, 
.crCatItem > li:nth-child(8)  p, 
.crCatItem > li:nth-child(10) p, 
.crCatItem > li:nth-child(16) p      { background-color: #6C8FB1; }  /* LT BLU */

.crCatItem > li:nth-child(3)  p, 
.crCatItem > li:nth-child(5)  p, 
.crCatItem > li:nth-child(11) p, 
.crCatItem > li:nth-child(13) p      { background-color: #67AB91; }  /* LT GRE */

.crCatItem > li:nth-child(4)  p, 
.crCatItem > li:nth-child(6)  p, 
.crCatItem > li:nth-child(12) p, 
.crCatItem > li:nth-child(14) p      { background-color: #AD946C; }  /* LT BRO */

.crCatItem > li:nth-child(1)  p + p, 
.crCatItem > li:nth-child(7)  p + p, 
.crCatItem > li:nth-child(9)  p + p, 
.crCatItem > li:nth-child(15) p + p  { background-color: #8A5B56; }  /* DK RED */

.crCatItem > li:nth-child(2)  p + p, 
.crCatItem > li:nth-child(8)  p + p, 
.crCatItem > li:nth-child(10) p + p, 
.crCatItem > li:nth-child(16) p + p  { background-color: #56728E; }  /* DK BLU */

.crCatItem > li:nth-child(3)  p + p, 
.crCatItem > li:nth-child(5)  p + p, 
.crCatItem > li:nth-child(11) p + p, 
.crCatItem > li:nth-child(13) p + p  { background-color: #548B76; }  /* DK GRE */

.crCatItem > li:nth-child(4)  p + p, 
.crCatItem > li:nth-child(6)  p + p, 
.crCatItem > li:nth-child(12) p + p, 
.crCatItem > li:nth-child(14) p + p  { background-color: #8B7757; }  /* DK BRO */


/**** ITEM : Miscellaneous ***************************************************/

hr.separator                { margin-bottom: 2em; }

.more-link                  { width: auto; margin-bottom: 0; margin-right: 0; text-align: center; }
.more-link > a              { font-size: inherit; cursor: pointer; }


/**** OPTIONAL : Transitions *************************************************/

.sliderList > ul              { transition: left      500ms ease     0ms; }
.expandList > ul              { transition: height    500ms ease     0ms; }
.zoomItem > li > a, 
.zoomItem > li > p            { transition: transform 350ms ease-out 0ms; }
.flipItem > li div            { transition:           500ms;              }
.vSlideItem > li a > div,
.vSlideItem > li a > div > p  { transition: top       500ms ease     0ms; }
.hSlideItem > li a div        { transition: left      500ms ease     0ms; }

