/*
* Custom styles for ESN Awards
*/
/* ESN COLORS */
/* EG COLORS */
/* SIEM COLORS */
/* Other elements we need to define */
/* size */
:root {
  --size-xs: 0.5rem;
  --size-s: 1rem;
  --size-m: 2rem;
  --size-l: 4rem;
  --size-xl: 8rem;
}

/* fonts */
:root {
  --eg-type-font-family-headline: Raleway, sans-serif;
  --eg-type-font-family-body: Atkinson Hyperlegible, sans-serif;
  --eg-type-font-size-h1: 3rem;
  --eg-type-font-size-h2: 2rem;
  --eg-type-font-size-h3: 1.5rem;
  --eg-type-font-size-h4: 1rem;
  --eg-type-font-size-s: 1rem;
  --eg-type-font-size-m: 1.5rem;
  --eg-type-font-size-l: 2rem;
  --eg-type-font-weight: 300;
}

/* colors */
:root {
  --esn-orange: #f47b20;
  --esn-cyan: #00aeef;
  --esn-pink: #ec008c;
  --esn-green: #7ac143;
  --esn-dark-blue: #2e3192;
  --siem-yellow: #febb28;
  --white: #fff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --black: #000;

  --secondary: var(--esn-magenta);
  --secondary-dark: #AD0068;
  --accent-light: #ff33ad;
  --primary: #2F2982;
  --parimary-dark: #1c184e;
  --primary-light: #908BDA;
  --color-text: var(--gray-900);
  --eg-navbar-color: var(--eg-primary-light);
  --eg-card-color: var(--eg-primary-light);
  --eg-u-box-shadow: 0 1px 4px 1px rgba(6,10,36,.1),0 5px 10px 0 rgba(6,10,36,.08);
  --eg-u-box-shadow-light: 0 10px 20px 1px rgba(6,10,36,.1),0 24px 36px 1px rgba(6,10,36,.18);
  --eg-u-box-shadow--hover: 0 1px 8px 1px rgba(6,10,36,.18),0 5px 10px 1px rgba(6,10,36,.15),0 15px 30px 0 rgba(6,10,36,.16);
}

/* Basic general styling */
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  font-family: Raleway,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
}

.btn-xl {
  font-size: 18px;
  padding: 20px 30px;
}

.btn-l {
  font-size: 14px;
  padding: 10px 20px;
}

a, a:hover {
  color: #2f2982;
}

.page-section {
  padding: 50px 0;
}

@media (min-width: 768px) {
  section {
    padding: 50px 0;
  }
}


/* Cookies banner */
.cookies-eu-banner{
  background-color: #212529;
  position:fixed;
  bottom: 0;
  padding: 1rem;
  width: 100%;
  z-index: 100;
}

.cookies-eu-banner button{
  text-decoration: none;
  background-color: #dee2e6;
  color: #212529;
  border: 1px solid #212529;
  margin-left: 0.5rem;
  font-size: medium;
  font-weight: 700;
  transition: background 0.07s, color 0.07s, border-color 0.07s;
}

.cookies-eu-banner button:hover{
  text-decoration: none;
  background-color: #AD0068;
  color: white;
  border: 1px solid #AD0068;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Scroll to top button */
#arrowBtn {
  display: none;
  position: fixed;
  width: 5%;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #AD0068;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 5px;
}

#arrowBtn:hover {
  background-color: #212529;
}

/* Section heading */
.section-heading-split{
  text-align: left;
  font-size: 35px;
  margin-top: 0;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: #ec008c;
  border-color: #ec008c;
}

.btn-primary:active, .btn-primary:focus {
  background-color: #ec008c !important;
  border-color: #ec008c !important;
  color: white;
}

.btn-primary:hover {
  background-color: #ff33ad !important;
  border-color: #ff33ad !important;
  text-decoration: underline;
  text-decoration-color: white;
  text-underline-offset: 0.5rem;
}

a.link-more {
  color: #2F2982;
  border-bottom: 2px solid #2F2982;
  background: linear-gradient(to right, transparent 50%, #2F2982 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  margin-right: var(--margin-s);
  transition: all 0.5s ease;
  text-decoration: none;
  padding: 0 4px;
}

a.link-more:hover {
  color: white;
  background-position: right bottom;
  text-decoration: none;
}



/* Navigation */
.navbar-brand img {
  width: 120px;
}

#mainNav {
  background-color: #2F2982;
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  padding: 0.5em !important;
  width: max-content;
}

/* Header */

header.masthead {
  text-align: center;
  color: white;
  background-image: url("../img/header-bg.jpg");
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: bottom;
  background-size: cover;
}

header.masthead .intro-text {
  padding-top: 100px;
  padding-bottom: 100px;
}

header.masthead .intro-text .intro-lead-in {
  font-size: 22px;
  font-style: italic;
  line-height: 22px;
  margin-bottom: 25px;
  font-family: 'Droid Serif', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

header.masthead .intro-text .intro-heading {
  font-size: 50px;
  font-weight: 700;
  line-height: 50px;
  margin-bottom: 25px;
  font-family: Raleway,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
}

@media (min-width: 768px) {
  header.masthead .intro-text {
    padding-top: 250px;
    padding-bottom: 150px;
  }
  header.masthead .intro-text .intro-lead-in {
    font-size: 40px;
    font-style: italic;
    line-height: 40px;
    margin-bottom: 25px;
    font-family: 'Droid Serif', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  }
  header.masthead .intro-text .intro-heading {
    font-size: 50px;
    font-weight: 700;
    line-height: 50px;
    margin-bottom: 50px;
    font-family: Raleway,Montserrat,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji';
  }
}

.alert-info {
  background-color: white;
  color: #2F2982;
  justify-content: space-around;
  margin-top: 100px;
}

.alert-info .alert-text {
  margin: 0px 30px;
}

.alert-info img {
  height: 120px;
  max-height: 120px;
  width: auto;
}

.alert-text p {
  background-color: white;
}

.alert-info .alert-link {
  color: #2F2982;
  font-weight: 400;
}

.alert-link:hover {
  text-decoration: none;
}

.alert-link strong {
  border-bottom: 2px solid #ec008c;
}

.darken {
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url(header-bg.jpg);
}

.text-shadow {
  text-shadow: 0px 0px 5px #212529;
}

.text-shadow:hover{
  text-shadow: 0px;
}

/* Body */
#about img, #ceremony img{
  width: 100%;
  height: auto;
  padding-left: 5em;
  vertical-align: middle;
}
@media(max-width:768px){
  #about img, #ceremony img{
    padding-left: 0;
  }
}
@media(max-width:1080px){
  #about img, #ceremony img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Goals */
.text-primary {
  color: #2F2982 !important;
}

.icon-wrapper {
  background-color: #2F2982;
  border-radius: 50%;
  display: inline-block;
  height: 100px;
  padding: 20px;
  width: 100px;
}

.icon-wrapper img {
  height: 50px;
  width: 50px;
  position: relative;
  top: 5px;
}

a.goals-link{
  color: #2F2982;
  text-decoration: none;
  padding: 5px 10px;
}

a.goals-link:hover{
  color: #2F2982;
  text-decoration: underline;
}

/* winners */
#portfolio .portfolio-item .portfolio-link .portfolio-hover {
  background-color: #2F2982;
}

#winners img {
  padding: 0 20px;
}

.winner-preview{
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: max-content auto;
  gap: 1.5rem 0.5rem;
  align-content: start;
  align-items: center;
  margin-top: 0.5rem;
}
.winner-preview:last-of-type{
  margin-bottom: 1rem;
}

#winners .winner-preview-laurel{
  width: auto;
  max-height: 80px;
  min-height: 40px;
  padding: 0;
  margin-top: 0.5rem;
}

#winners .winner-preview-name{
  font-weight: 500;
}

.winner-place{
  flex-direction: row;
  box-sizing: border-box;
  display: flex;
  margin-bottom: 1rem;
}

.winner-laurel{
  width:auto;
  height:3rem;
  flex-direction: row;
  display: flex;
  margin-right: 0.5rem;
}

.winner-name{
  box-sizing: border-box;
  border-bottom: 1px solid #212529;
  padding: 0 1rem 0.5rem 1rem;
  font-weight: 500;
}

#winners .winners-item {
  border: 1px solid white;
  border-radius: 0px;
  max-height: 1000px;
  min-height: 300px;
  overflow: auto;
  padding-top: 2rem;
  margin-left: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  right: 0;
  margin: 0 0 15px;
}

#winners .winners-item .winners-link {
  position: relative;
  display: block;
  max-width: 400px;
  margin: 0 auto;
  cursor: pointer;
}

#winners .winners-item .winners-link .winners-hover {
  position: absolute;
  right: 20px;
  width: calc(100% - 40px);
  height: 100%;
  transition: all ease 0.5s;
  opacity: 0;
  background: #2F2982;
}

#winners .winners-item .winners-link .winners-hover:hover {
  opacity: 1;
}

#winners .winners-item:hover{
  transform: translateY(-2px);
  box-shadow: var(--eg-u-box-shadow--hover);
}

#winners .winners-item:hover + .winners-caption {
  transform: translateY(-2px);
}

#winners .winners-item .winners-link .winners-hover .winners-hover-content {
  font-size: 20px;
  position: absolute;
  top: 50%;
  width: 100%;
  height: 20px;
  margin-top: -12px;
  text-align: center;
  color: white;
}

#winners .winners-item .winners-link .winners-hover .winners-hover-content i {
  margin-top: -12px;
}

#winners .winners-item .winners-link .winners-hover .winners-hover-content h3,
#winners .winners-item .winners-link .winners-hover .winners-hover-content h4 {
  margin: 0;
}

#winners .winners-item .winners-caption {
  max-width: 400px;
  margin: 0 auto;
  padding: 25px;
  background-color: white;
}

#winners .winners-item .winners-caption h4 {
  text-align: left;
  margin: 0;
  text-transform: none;
}

#winners .winners-item .winners-caption p {
  text-align: right;
  font-size: 16px;
  font-style: normal;
  margin-top: 1rem;
  margin-bottom: 0;
}

.winners-modal figure {
  margin-bottom: 2rem;
}

.winners-modal blockquote {
    margin: 0;
}

.winners-modal blockquote p {
    padding: 15px;
    background: #eee;
    border-radius: 5px;
}

.winners-modal .modal-content blockquote p {
  margin-bottom: 8px;
}

.winners-modal blockquote p::before {
    content: '\201C';
}

.winners-modal blockquote p::after {
    content: '\201D';
}

@media (min-width: 768px) {
  #winners .winners-item {
    margin: 0 0 30px;
  }
}

.winners-modal .modal-dialog {
  margin: 1rem;
  max-width: 100vw;
}

.winners-modal .modal-img {
  margin-bottom: 30px;
}

.winners-modal .modal-content {
  padding: 100px 0;
  text-align: center;
}

.winners-modal .modal-content h2 {
  font-size: 2em;
  margin-bottom: 15px;
}

.winners-modal .modal-content p {
  margin-bottom: 30px;
}

.winners-modal .modal-content p.item-intro {
  font-size: 16px;
  font-style: normal;
  margin: 20px 0 30px;
}

.winners-modal .modal-content p.item-content {
  text-align: left;
  clear:both;
  margin-top: 1rem;
}

.winners-modal .modal-content ul.list-inline {
  margin-top: 0;
  margin-bottom: 30px;
}

.winners-modal .modal-content button {
  cursor: pointer;
}

.winners-modal .close-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 75px;
  height: 75px;
  cursor: pointer;
  background-color: transparent;
}

.winners-modal .close-modal:hover {
  opacity: 0.3;
}

.winners-modal .close-modal .lr {
  /* Safari and Chrome */
  z-index: 1051;
  width: 1px;
  height: 75px;
  margin-left: 35px;
  /* IE 9 */
  transform: rotate(45deg);
  background-color: #212529;
}

.winners-modal .close-modal .lr .rl {
  /* Safari and Chrome */
  z-index: 1052;
  width: 1px;
  height: 75px;
  /* IE 9 */
  transform: rotate(90deg);
  background-color: #212529;
}

#winners .card-button {
  background-color: #ec008c;
  border-color: #ec008c;
  color: white;
  /* margin: 1em; */
  vertical-align: bottom;
}
  
#winners .card-button:hover {
  background-color: #ff33ad !important;
  border-color: #ff33ad !important;
  text-decoration: underline;
  text-decoration-color: white;
  text-underline-offset: 0.5rem;
}


/* Trainings */
#trainings {
  margin-top: 100px;
}

#trainings .card-item .card-download .disabled {
  background-color: #ced4da;
  border-color: #ced4da;
  color: #212529;
}

/* Research reports */
#research-report .card-item {
  border: 1px solid white;
  border-radius: 5px;
  padding-bottom: 50px;
  padding-top: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
  height: 100%;
}

#research-report .card-item .card-title {
  height: 65px;
}

#research-report .card-item .card-download {
  bottom: 40px;
  left: 120px;
  position: absolute;
}

#research-report .card-item .card-download .disabled {
  background-color: #ced4da;
  border-color: #ced4da;
  color: #212529;
}

/* Timeline */
.timeline > li .timeline-image {
  background-color: #2F2982;
  border-color: #2F2982;
  z-index: 99;
}
.timeline:before {
  background-color: #2F2982;
}

/* Partners */

/* Stay updated */
.mauticform-button-wrapper {
  text-align: center;
}

#mauticform_input_erasmusjobswinnersletterform_submit {
  background-color: #2F2982;
  border-color:  #2F2982;
  color: white;
  font-size: 20px;
  padding: 20px 40px;
  text-transform: uppercase;
}

/* Footer */
footer {
  background-color: rgb(33, 37, 41);
}

.footer-left{
  padding: 1.5rem 8rem 2rem 1.5rem;
  text-align: justify;
}
@media (max-width: 900px) {
  .footer-left{
    padding-right: 4rem;
  }
}
@media (max-width: 768px) {
  .footer-left{
    padding-right: 1.5rem;
  }
}

footer h3{
  padding: 0;
}

.footer-right{
  border-left: 1.5px solid #fff;
  padding: 1.5rem 2rem 0 1.5rem;
  text-align: justify;
}

footer img {
  height: auto;
  max-height: 60px;
  margin-bottom: 1.5rem;
}

.privacy_and_terms{
  padding-top: 1em;
}

footer a,a:hover {
  color: white;
}

a.footer-links {
  color: white;
  text-align: left;
  border-bottom: 2px solid #ec008c;
  background: linear-gradient(to right, #212529 50%, #fff 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  margin-right: var(--margin-s);
  transition: all 0.5s ease;
  text-decoration: none;
}

a.footer-links:hover {
  color: #212529;
  background-position: right bottom;
  text-decoration: none;
  padding: 0 4px;
}

ul.social-buttons li a, ul.social-buttons li a:active, ul.social-buttons li a:focus, ul.social-buttons li a:hover {
  background-color: #ec008c;
}

@media (max-width: 575px) {
  section#partners .img-fluid {
    max-width: 50%;
  }

  section#partners div.col-md-2.col-sm-6:not(:last-child) {
    margin-bottom: 50px;
  }

  footer img {
    margin-bottom: 20px;
  }
}
