@keyframes moveInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    80% {
     
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translate(0px);
    }
}

@keyframes moveInBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
   
    100% {
        opacity: 1;
        transform: translate(0px);
    }
}
.home-page {
	overflow-x: hidden;
}
#featured {
    margin-top: 30px;
}
.home-page .container {
    width: 100%;
    max-width: 1440px;
}
#myfront-content {
    display: block
}
h2.front-heading {
    color: #990000;
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    font-family: Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;
    margin: 0;
}

#top-banners {
    padding: 40px 0px;
    /* background: #A0C08C; */
    background: #fff;
}
#middle-banners {
    padding: 70px 30px;
    /* background: #A0C08C; */
    background: #fff;
}
#museums {
    margin-top: 3rem;
}
#museums img {
    width: 100%;
    height: auto;
    border: 5px solid white;
    box-shadow: 1px 1px 4px rgb(0 0 0 / 10%);
}
#museums h4 {
    text-align: center;
    font-size: 1.6rem;

}
.grid-4 {
    display: grid;
    
    grid-template-columns: repeat(4, 1fr);
    grid-row-gap: 40px;
    grid-column-gap: 20px; 
}
.grid-height-300 {
    grid-template-rows: 300px;
}
@media only screen and (max-width: 960px) {
	
    .grid-4 {    
		grid-template-rows: auto auto;
		grid-template-columns: 1fr 1fr;
		grid-row-gap: 30px;
		grid-column-gap: 20px; 
	}

}

#banners-container-1 {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 175px 175px;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 20px;
    grid-column-gap: 20px; 
}

#banners-container-2 {
    background-color: #fff;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 175px 175px;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 20px;
    grid-column-gap: 20px; 
}
/* Κάτω banners   */
#banners-container-3 {    
    background-color: #fff;
    max-width: 1440px;
    margin: 40px auto;
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 2fr 1fr;
    grid-row-gap: 20px;
    grid-column-gap: 20px; 
}

.e-news {
    background-color: #8f8f8f;
}

.e-news h3 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.e-news-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 15px;
    grid-column-gap: 15px; 
}
.e-magazine {
    text-align: center;
	padding: 20px;
}
.e-magazine .magazine-container { 
	
}
.e-magazine .magazine-container img {
	max-height: 320px;
	width: 100%;
	max-width: 220px;
	margin: 10px;
	box-shadow: rgba(0,0,0,.4) 0px 0px 50px;
	transition: all 0.4s;
}	
.e-magazine .magazine-container img:hover {
 transform: rotateY(2deg);
 transform: scaleX(1.02);
 box-shadow: rgba(0,0,0,.4) 20px 33px 40px;
}

#banners-container-3 .e-news {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
}
#banners-container-3 .important-issues {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

#featured-news {
    padding: 20px 0px;
    background-color: #f3f4f4;
}


@media only screen and (max-width: 1160px) {
	
    #banners-container-3 {    
		grid-template-rows: auto auto;
		grid-template-columns: 1fr 1fr;
		grid-row-gap: 30px;
		grid-column-gap: 20px; 
	}
	#banners-container-3 .e-news {
		grid-row: 1 / 2;
		grid-column: 1 / 3;
	}
	#banners-container-3 .important-issues {
		grid-row: 2 / 3;
		grid-column: 1 / 2;
	}
	.e-magazine .magazine-container img {
		max-height: 260px;
		width: 100%;
		max-width: 180px;
	}
}

@media only screen and (max-width: 860px) {
    #banners-container-3 {    
		grid-template-rows: auto auto auto;
		grid-template-columns: 1fr;
		grid-row-gap: 30px;
		grid-column-gap: 20px; 
	}
	#banners-container-3 .e-news {
		grid-row: 1 / 2;
		grid-column: 1 / 2;
	}
	#banners-container-3 .important-issues {
		grid-row: 2 / 3;
		grid-column: 1 / 2;
	}
	#banners-container-3 .small-banner {		
		text-align: center;
	}
	#banners-container-3 .small-banner img {
		max-width: 250px;
		margin: 20px;
	}  
}





#featured-news2 {
    padding: 20px 20px 60px 20px;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    /* grid-template-rows: 400px 400px; */
    /*grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    grid-row-gap: 40px;
    grid-column-gap: 30px; */
    gap: 2rem;
    grid-auto-flow: dense; /* [2] */
    grid-template-columns: repeat(auto-fit, 320px); /* [1] */
    justify-content: center;
}

h4.lateNews_H4 a {
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 1.4em;
}


.featured-new {
    position: relative;
}

#schools {
    margin-top: -20px;
    background-image: linear-gradient(rgba(243,244,244,0.75), rgba(243,244,244,1)), url('img/Crete.jpg');  
    background-size: cover;
}
#schools h5 {
    font-size: 16px;
    padding-left: 4px;
}
#depblock {
    padding-top: 20px;
}
#deps-uoc {
    padding: 15px 20px 30px 20px;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;  
    

}
.dep-uoc {
    padding: 15px;
     
}
.dep-uoc h4 {
    min-height: 40px;
    text-align: center;
    font-size: 1.7rem;
}

.dep-city {
    margin: 20px;
    box-shadow: 0px 0px 40px rgba(0,0,0,0.1);    
    border-radius: 4px;
}

.dep-city.rethymno {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    
}
.dep-city.heraklion {
    display: grid;
    grid-template-columns: repeat(2, 1fr);    
    /*
    background-image: linear-gradient(rgba(252,255,250,0.85), rgba(252,255,250,1)), url('img/her.jpg');    
    background-size: cover;
    */
}
.rethymno, .heraklion {
    position: relative;    
    padding-top: 40px;  
}
.rethymno {    
    
}
.heraklion {    
    
}
.rethymno::after, .heraklion::after {
    position: absolute;
    
    width: 100%;
    text-align: center;
    top: 12px;
    font-size: 2.4rem;
}
.rethymno::after {   
    content: "Rethymno";
}
.heraklion::after {
    content: "Heraklion";
}



.dep-uoc img {
    width: 100%;
    border: 5px solid white;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.1);  
    max-height: 190px;  
}


@media only screen and (max-width: 1280px) {
    #deps-uoc {
        padding: 20px 20px 40px 20px;
        text-align: center;
        display: block;
    }
    .dep-uoc h4 {        
        display: block;
        font-size: 1.5rem;
    }
    .dep-city.heraklion {
        max-width: 70%;
        margin: 0 auto;
    }
}
@media only screen and (max-width: 680px) {
    #depblock {
        padding-top: 20px;
    }
    #deps-uoc {
        padding: 15px 2px 30px 2px;
        
    
    }
    .dep-uoc {
        padding: 5px;         
    }
    .dep-uoc h4 {
        min-height: 40px;       
        font-size: 1.4rem;
    }
    
    
    
    .dep-city.rethymno {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        
    }
    .dep-city.heraklion {
        display: grid;
        grid-template-columns: repeat(2, 1fr);    
     
    }
   
    .rethymno::after, .heraklion::after {
        position: absolute;
        
        width: 100%;
        text-align: center;
        top: 12px;
        font-size: 1.9rem;
    }
    .rethymno::after {   
        content: "Rethymno";
    }
    .heraklion::after {
        content: "Heraklion";
    }   
    
    
    .dep-uoc img {
        width: 100%;
        border: 1px solid white;
        box-shadow: 1px 1px 4px rgba(0,0,0,0.1);  
        max-height: 190px;  
    }
    
}

/*
@media only screen and (max-width: 990px) {
    #featured-news2 {
        padding: 0px 20px 60px 30px;
        
        grid-template-rows: 400px 400px 400px 400px;
        grid-template-columns: repeat(2, 1fr);
        grid-row-gap: 40px;
        grid-column-gap: 30px;
    } 
}

@media only screen and (max-width: 520px) {
    #featured-news2 {
        padding: 0px 20px 60px 60px;
        
        grid-template-rows: repeat (8, 380px);
        grid-template-columns: repeat(1, 1fr);
        grid-row-gap: 40px;
        grid-column-gap: 30px;
    } 
}
*/

.calendar-announcements {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-row-gap: 20px;
    grid-column-gap: 20px; 
}


@media only screen and (max-width: 717px) {
    h4.lateNews_H4 a {
        font-size: 12px;
    }
    div.lateNews_img img {
        width: auto;
        height: auto;
    }
    #featured-news2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 280px);
        grid-row-gap: 6rem;    
        grid-column-gap: 1.2rem;   
        padding-bottom: 100px;         
    
        padding: 10px 10px 100px 10px;
    }
    
    .lateNews {        
        height: auto;
    }
    div.lateNews_inText {
        margin-top: 0px; 
    }
    div.lateNews_img {
        height: 130px;
    }
    
    .newday {
       
        font-size: 1em;
    }
    .newmonth {
     
        font-size: 0.9em;
    }
    .dateUpdate1 {
        width: 47px;
        height: 47px;
        padding: 7px;
        border-radius: 0px 26px 6px 0px;
        top: 104px;
        left: 0px;
    }
    #featured-news2 p {
        display: none;
    }
}

@media only screen and (max-width: 990px) {
    .calendar-announcements {
		
		grid-template-columns: 1fr;
		grid-row-gap: 40px;
		
	}
    #upcoming {
        
        min-height: auto;
        
    }
}


#ingenium {
    max-width: 1440px;
    text-align: center;
    padding: 30px;
    margin: 0 auto 60px auto;
    background-color: #f3f3f4;
    background-image: url("img/ingenium_map_bg.png");
    background-repeat: no-repeat;
    background-position: right -133px;
    box-shadow: rgba(0,0,0,.25) 0px 0px 60px;
}

#ingenium .logo-ingenium {
    display: inline-block;
    
    max-width: 450px;
}
#ingenium .logo-ingenium img {
    width: 100%;
}
#ingenium .text-ingenium {
    display: inline-block;   
    background-color: #f3f4f466;
    padding: 20px;
    font-size: 2.5rem;
    
}
#ingenium .text-ingenium a,  #ingenium .text-ingenium a:visited {
    color: #990000;
    transition: color 0.5s;
}
#ingenium .text-ingenium a:hover, #ingenium .text-ingenium a:active {
    text-decoration: none;
    color: #db3900;
}











/***************************** custom 2 ************************************/



.lateNews {
    background: #fff;
}
h4.lateNews_H4 a {
    color: #444444;   
}
h4.lateNews_H4 a:hover {
    color: #5a4141;   
}

.lateNews_img {
    overflow: hidden;
    background: #eee;
    border-top: 5px solid #990000;
    height: 180px;
    
}

div.lateNews_img img {
    
}
.lateNews {
    box-shadow: 10px 0px 40px rgba(0,0,0,0.2);
}

div.lateNews_inText p.calendar:after {
    
    background-image: linear-gradient(to right, rgba(153, 0, 0, 0.5), #fff);
    
}

div.lateNews_inText p.calendar {
    
    color: #444;
}
#main-featured-articles {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 225px 225px;
    grid-template-columns: repeat(4, 1fr);
    grid-row-gap: 20px;
    grid-column-gap: 20px;

}

.important-issues {
    border: 0px;
   
    
}
.announcementsBlock {
    box-shadow: 0px 0px 40px rgba(55,55,55,.3);
    border: 0px;
}

/*
.lateNews_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
*/

/*  CALENDAR  */
.calendarBlock h2 a {
    display: block;
    color: #7a121a;

    transition: color 0.5s;
}
.calendarBlock h2 a:hover,  .calendarBlock h2 a:active, .calendarBlock h2 a:visited{
    
    text-decoration: none;
}
.calendarBlock {
    height: auto;
    background: #fff;
    box-shadow: 0px 0px 0px #6f6f6f;
    border: 0;
    box-shadow: 0px 0px 40px rgba(55,55,55,0.2);
    border-radius: 8px;
    padding: 20px;
}
.calendarBlock #calcal table thead {
    font-size: 0.8rem;    
    border-bottom: 0px;
}
.calendarBlock #calcal table thead tr th {
    color: #dbd1d1; 
    border-bottom: 0px;
}
.calendarBlock-Head  {
    display: none;
}
.calendarBlock #calcal table {
    border-collapse:separate; 
    border-spacing: 0 1em;
}
.calendarBlock #calcal table caption a {
    display: block;
    width: 100%;
    padding-left: 50px;
    text-align: left;
    position: relative;
}
.calendarBlock #calcal table caption a::after {
    position: absolute;
    left: 0px;
    top: -10px;
    content: url("img/calendar-topleft.png");
}

.calendarBlock #calcal table tr td {
    border-top: 0px;
    font-size: 1.4rem;
    font-weight: 200;
}
.calendarBlock #calcal table tr td.activ  {
    background-color: #db3900;
    border-radius: 8px;
    box-shadow: rgba(0,0,0,0.3) 0px 0px 6px;
}
.calendarBlock #calcal table tr td a {
    position: relative;
    display: block;
}
.calendarBlock #calcal table tr td a::after {
    position: absolute;
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 100px;
    bottom: -16px;
    left: calc(50% - 4px);
    
    text-align: center;
    background-color: #db3900;
}

.empty-calendar {
	font-size: 16px;
	margin: 20px 5px;
}

#deps-uoc .departments .desc {
    background-color: white;
    box-shadow: rgba(0,0,0,0.3) 0px 0px 6px;
}
.elke-announcements {
    
    margin-bottom: 0px;
}
#myfront-content {
    background-color: white;
    padding-top: 30px;
}

.front-eif, #eif {
    
    margin-top: 0px;
}
.front-eif img {
    width: 100%;
   
}

.announcementsBlock-Head {
    background: transparent;
    
}
.announcementsBlock-Head a {
    display: block;
    color: #7a121a;
}
.announcementsBlock-Head:hover a {    
    color: black;
}

input.search-text, .important-issues {
    background: #990000;
}



#my-content {
    display: block;
}

div.lateNews_img {
    min-height: 49%;
    display: flex;
}
.dateUpdate1 {
    display: block;
 }

 #side-banners-1 {   
    display: grid;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto;
    grid-template-columns: repeat( auto-fit, minmax(180px, 1fr) );
    row-gap: 25px;
    column-gap: 25px;
}
.banners.eif img {
   height: 220px;
}
.banners.eif {
    height: 270px;
}
.banners h3 {
    display: none;
}


#side-banners-1 .banners {
    display: flex;
    align-content: center;
    align-items: center;
    max-height: 260px;
}
#side-banners-1 .banners a {
    display: block;
    margin: 0 auto;
}
.banners dl {
    display: inline-flex;
    margin: 10px auto;
}
#my-content {
    margin: 0px;
}

.importantnews_inText.cloned {
    
    z-index: 99;
}














#banners-container-2 {
    background-color: #fff;
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 175px 175px;
    grid-template-columns: repeat(4, 1fr);
    grid-row-gap: 20px;
    grid-column-gap: 20px; 
}



.banner-container {
   
}
.top-banner {
    box-shadow: 0px 0px 40px rgba(0,0,0,0.5);    
    overflow: hidden;
    position: relative;     
    
}

.top-banner span {
    position: absolute;    
    background-color: rgba(88,88,88,.4);
    color: white;
    vertical-align: middle;
    text-align: center;
    display: flex;
    z-index: 9;
    padding: 20px;
}

.top-banner.full-row span {   
    font-size: 1.9rem;
    bottom: 10%;
    left: 5%;
    width: 90%;
    height: 80%;
    align-items: center;
}

.top-banner.half-row span {  
    font-size: 1.6rem;
    bottom: 2%;
    left: 5%;
    width: 90%;
    height: 96%;
    align-items: normal;
   
}
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-img.contain {
   
    object-fit: contain;
}

.btn-container {
    z-index: 11;
    position: relative;    
    width: 100%;    
    
}
.btn-container a {
    font-size: 1.6rem;
    position: absolute;
    text-decoration: none;  
    padding: 155px 20px 25px 20px;
    display: inline-block;  
    bottom: 0px;
    left: 0px;
    width: 100%;
    transition: all .2s;
    white-space: normal;
    border: 0;
    border-radius: 0px;
}

a.button-big {
    text-decoration: none;
    color: #fff;
    background-color: #990000;
    box-shadow: 0 0 10px rgb(0 0 0 / 10%), 0 0 5px rgb(0 0 0 / 10%);
    padding: 20px;
    display: block;    
    max-width: 300px;
    margin: 0 auto 36px auto;
    text-align: center;
    font-size: 1.8rem;
    transition: all 0.3s;
    border-radius: 4px;
    box-shadow: #80040a 0px 0px 3px;
}
a.button-big:hover {
    text-decoration: none;
    color: #ffe;
    background-color: #b1040e;
    transform: scale(0.98);
    box-shadow: #80040a 0px 0px 1px;    
}
a.button-big:active, a.button-big:visited  {
    text-decoration: none;
    color: #ffe;
}
.half-row .btn-container .btn {     
    padding: 5px 10px;   
    border-radius: 10px; 
    box-shadow: 0px 10px 20px rgba(0,0,0,.2);
}

.btn-container a:hover {
    transform: scale(1.05);
    
}
.btn-container .btn-black {
    background: linear-gradient(180deg,transparent,rgba(255,255,255,.85) 80%);   
    color: #222;
}
.btn-container .btn-white {
    background: linear-gradient(180deg,transparent,rgba(0,0,0,.85) 80%);   
    color: #eee;
}
.half-row .btn-container .btn-white {
    background-color: rgba(255,255,255,0.7);
    color: #000;
}
.btn-container .btn-animated {
    animation: moveInBottom .4s ease-out .75s;
    animation-fill-mode: backwards;
}
#top-banners .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.btn-container .btn::after {
    content: "";
    display: inline-block;
    border-radius: 100px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .4s;
}
.btn-container .btn:hover::after  {
    transform: scaleX(1.6);
    transform: scaleY(1.4);
    opacity: 0;
}
.label-img {
    position: absolute;
    max-width: 120px;
    top: -5px;
    left: -5px;
    z-index: 9;
}
#banners-container-1 .banner--1 {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    
}
#banners-container-2 .banner--1 {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}
#banners-container-2 .banner--2 {
    
}
#banners-container-2 .banner--2 {
  
}
.banner--3 {
    
}
.banner--4 {
    
}
#banners-container-1 .banner--5 {
    grid-row: 2 / 3;    
    grid-column: 2 / 3;
}

#side-banners-1-alt {   
    display: grid;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto;
    grid-template-columns: repeat( auto-fit, minmax(210px, 1fr) );
    row-gap: 15px;
    column-gap: 15px;
    padding: 20px;
    background-color: #eee;
}

#side-banners-1-alt .banners {
    box-shadow: transparent 0px 0px 0px;
}  

#side-banners-2-alt .banners, #side-banners-3-alt .banners {
    box-shadow: transparent 0px 0px 0px;
}  
#side-banners-2-alt {   
    display: grid;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto;
    grid-template-columns: repeat( auto-fit, minmax(130px, 1fr) );
    row-gap: 15px;
    column-gap: 15px;
    padding: 20px;
    background-color: #eee;
}

#side-banners-2-alt .banners {
    box-shadow: transparent 0px 0px 0px;
}  
#sig img {
    width: 100%;
}

#side-banners-3-alt {   
    display: grid;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto;
    grid-template-columns: repeat( auto-fit, minmax(210px, 1fr) );
    row-gap: 15px;
    column-gap: 15px;
    padding: 20px;
    background-color: #eee;
}
@media only screen and (max-width: 552px) {
    #side-banners-3-alt {
        grid-template-columns: repeat( auto-fit, minmax(120px, 1fr) );
    }
}


.banners.counseling {
    box-shadow: 0px;    
}
.counseling img {
    width: auto;
    height: auto;
}
.enews-container {
    background-color: white;
    text-align: center;
    background-color: #eee;
    border-radius: 0px 0px 50% 50%;
    padding: 10px 20px 30px 20px;
}

.enews-container h3 {
    font-size: 1.8rem;
}
.banners.eif img {
   height: 220px;
}
.banners.eif {
    height: 270px;
}
.banners h3 {
    display: none;
}
.announcementsBlock {
    height: 700px;
}


#side-banners-1 .banners {
    display: flex;
    align-content: center;
    align-items: center;
    max-height: 260px;
}
#side-banners-1 .banners a {
    display: block;
    margin: 0 auto;
}




@media only screen and (max-width: 960px) {
    #banners-container-1 ,#banners-container-2 {        
        display: grid;
        grid-template-rows: repeat(8, 200px);
        grid-template-columns: 100%;
        grid-row-gap: 20px;
        grid-column-gap: 20px;
    }
    .top-banner.full-row span {  
        font-size: 1.6rem;
        bottom: 2%;
        left: 5%;
        width: 90%;
        height: 96%;
        align-items: normal;       
    }
    .full-row .btn-container .btn {     
        
        padding: 5px 10px;   
        border-radius: 10px; 
        box-shadow: 0px 10px 20px rgba(0,0,0,.2);
    }
    .banner--1 {
        grid-row: 1 / 3;
        grid-column: 1 / 2;        
    }
    #banners-container-2 .banner--1 {
        
            grid-row: 1 / 2;
            grid-column: 1 / 2;
        
    }
    #banners-container-2 .banner--2 {        
        grid-row: 3 / 4;
        grid-column: 1 / 2;    
    }
    #banners-container-2 .banner--3 {        
        grid-row: 5 / 6;
        grid-column: 1 / 2;    
    }
    #banners-container-2 .banner--4 {        
        grid-row: 7 / 8;
        grid-column: 1 / 2;    
    }
    #banners-container-2 .banner--5 {        
        grid-row: 2 / 3;
        grid-column: 1 / 2;    
    }
    #banners-container-2 .banner--6 {        
        grid-row: 4 / 5;
        grid-column: 1 / 2;    
    }
    #banners-container-2 .banner--7 {        
        grid-row: 6 / 7;
        grid-column: 1 / 2;    
    }
    #banners-container-2 .banner--8 {        
        grid-row: 8 / 9;
        grid-column: 1 / 2;    
    }
   
}


