
/* === src/css/main.css === */
/* ////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
///////////////////////////////////////////////
//////////////////////////////////////////// */

/* GLOBAL */
body {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: 'Roboto';
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000;
}
body.popup-open,
body.overflow {
  overflow: hidden;
}
.blur {
  filter: blur(2px);
  pointer-events: none;
}
h1, h2, h3, h4, h5, h6 {
  color: #000;
  font-family: 'Tinos';
  margin: 0;
}
h1 {
  font-size: 40px;
  line-height: 50px;
}
h2 {
  font-size: 30px;
  line-height: 40px;
}
h3 {
  font-size: 22px;
  line-height: 32px;
  margin-bottom: 10px;
}
p {
  margin-bottom: 20px;
}
a {
  color: #1B365D;
  border-bottom: 1px solid #1B365D;
  text-decoration: none;
}
a:focus {
  color: #1B365D;
  border-color: transparent;
  text-decoration: none;
}
a:hover {
  color: #1B365D;
  border-color: transparent;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
input,
button,
textarea {
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
}

main {
  margin-top: 105px;
  transition: margin-top 0.3s ease-in-out;
}

/* When header is scrolled (smaller), reduce main margin-top to match */
.scroll-active main {
  margin-top: 65px;
}
main,
section {
  float: left;
  width: 100%;
}
.section {
  padding: 50px 0;
  border-bottom: 1px solid #ececec;
}
.custom-btn {
  float: left;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 45px;
  padding: 0 50px 0 25px;
  border: 1px solid #ececec;
  background: #fff;
  border-radius: 5px;
  position: relative;

  transition: all 0.2s ease-in-out;
}
.custom-btn:before,
.custom-btn:after {
  content: '';
  display: block;
  height: 10px;
  width: 5px;
  position: absolute;
  top: 0;
  right: 25px;
  bottom: 0;
  margin: auto;
  background-image: url(https://sihtasutus.ut.ee/assets/arrow.svg);
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;

  transition: opacity 0.2s ease-in-out;
}
.custom-btn:after {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-white.svg);
  opacity: 0;
}
.custom-btn:hover {
  color: #fff;
  background: #1B365D;
}
.custom-btn:hover:after {
  opacity: 1;
}
.custom-btn:not(:last-child) {
  margin-right: 30px;
}
.custom-btn.regular {
  float: left;
  border: none;
  padding: 0 25px 0 0;
  line-height: 20px;
}
.custom-btn.regular:hover {
  color: #1B365D;
  background: transparent;
}
.custom-btn.regular:before,
.custom-btn.regular:after {
  right: 0;
  transition: none;
}
.custom-btn.regular:hover:after {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-blue.svg);
}
.action-btn {
  float: left;
  width: 85px;
  line-height: 35px;
  background: #2c5697;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border: none;
  transition: background 0.2s ease-in-out;
}
.action-btn:hover,
.action-btn:focus {
  color: #fff;
  background: #1B365D;
}
.filter-wrap {
  float: left;
  width: 100%;
  margin-top: -10px;
}
.dropdown {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  float: left;
  width: 100%;
  background: #fff;
  line-height: 50px;
  box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.dropdown.open {
  z-index: 10;
}
.filter-wrap .dropdown {
  min-width: 290px;
}
.filter-wrap .dropdown,
.filter-wrap .empty-search {
  margin-top: 10px;
}
.dropdown:after {
  content: '';
  display: block;
  height: 10px;
  width: 5px;
  background-image: url(https://sihtasutus.ut.ee/assets/arrow.svg);
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 15px;
  margin: auto;
  transform: rotate(90deg);

  transition: transform 0.2s ease-in-out;
}
.dropdown.open:after {
  transform: rotate(-90deg);
}
.dropdown .current {
  float: left;
  width: 100%;
  height: 100%;
  height: 50px;
  overflow: hidden;
  padding: 0 50px 0 20px;
}
.dropdown ul {
  display: none;
  width: 100%;
  max-height: 350px;
  list-style: none;
  line-height: 18px;
  padding: 20px;
  background: #fff;
  border-top: 1px solid #ececec;
  box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.05);
  position: absolute;
  top: 50px;
  left: 0;
  overflow: auto;
}
.dropdown li {
  cursor: pointer;
}
.dropdown li + li {
  margin-top: 10px;
}
.dropdown li:hover,
.dropdown li:hover a {
  color: #1B365D;
}
.dropdown li a {
  float: left;
  width: 100%;
  color: #000;
  border: none;
}
.dropdown input {
  display: none;
}
.dropdown.dropdown0 {
  z-index: 10;
}
.dropdown.dropdown1 {
  z-index: 9;
}
.dropdown.dropdown2 {
  z-index: 8;
}
.empty-search {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  float: left;
  width: 100%;
  min-width: 165px;
  background: #e4e4e4;
  padding: 0 50px 0 20px;
  line-height: 50px;
  text-align: left;
  position: relative;
  z-index: 1;
}
.empty-search:after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 0;
  right: 20px;
  bottom: 0;
  margin: auto;
  background-image: url(https://sihtasutus.ut.ee/assets/close.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.timer-wrap {
  color: #fff;
  float: left;
}
.timer-wrap .timer {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  display: inline-block;
  vertical-align: middle;
  height: 100px;
  width: 100px;
  border-radius: 50%;
  border: 2px solid #2c5697;
  text-align: center;
}
.timer-wrap.started .timer {
  border-color: #79b700;
}
.timer-wrap .timer .time {
  color: #2c5697;
  font-size: 36px;
  line-height: 36px;
  font-weight: 900;
  margin-top: 20px;
}
.timer-wrap.started .timer .time {
  color: #79b700;
}
.timer-wrap .date {
  font-weight: 900;
  font-size: 18px;
  line-height: 28px;
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 100px);
  text-align: right;
  padding-left: 20px;
}
.timer-wrap .date .until,
.timer-wrap.started .date .begin {
  display: none;
}
.timer-wrap.started .date .until {
  display: block;
}
.main-content {
  color: #000;
}
.main-content h2 {
  margin-bottom: 20px;
}
.main-content ul,
.main-content ol {
  margin-bottom: 20px;
}
.main-content li {
  position: relative;
  padding-left: 20px !important;
}
.main-content li:before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #1B365D;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 0;
}
.main-content .custom-btn {
  float: none;
  display: inline-block;
  margin-bottom: 30px;
}
.main-content table {
  margin-bottom: 20px;
}
.main-content table th {
  color: #1B365D;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  background: #f3f5f5;
  border: 1px solid #d8d8d8;
  height: 40px;
  padding: 0 20px;
}
.main-content table th:first-child {
  border-top-left-radius: 5px;
}
.main-content table th:last-child {
  border-top-right-radius: 5px;
}
.main-content table td {
  height: 40px;
  min-height: 40px;
  border: 1px solid #d8d8d8;
  padding: 5px 20px;
}
.main-content table tr:last-child td:first-child {
  border-bottom-left-radius: 5px;
}
.main-content table tr:last-child td:last-child {
  border-bottom-right-radius: 5px;
}
.main-content .form_area {
  width: calc(100% + 30px);
  margin-left: -15px;
}
.main-content .form_area .form_field {
  float: left;
  width: calc(100% - 30px);
  margin: 0 15px 20px;
}
.main-content .form_area .form_field.group-of-2 {
  width: calc(50% - 30px);
}
.main-content .form_area .form_field.group-of-3 {
  width: calc(100% / 3 - 30px);
}
.main-content .form_area .form_field label {
  color: #1B365D;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}
.main-content .form_area .form_field input {
  width: 100%;
  line-height: 45px;
  border-bottom: 1px solid #000;
}
.main-content .form_area .form_field textarea {
  height: 150px;
  resize: none;
  width: 100%;
  border-bottom: 1px solid #000;
}
.main-content .form_area .form_field input:focus,
.main-content .form_area .form_field textarea:focus {
  border-color: #aeea00;  
}
.main-content .form_area .form_field.form_field_with_errors input,
.main-content .form_area .form_field.form_field_with_errors textarea {
  border-color: #d50000;  
}
.main-content .form_area .form_submit {
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
  float: left;
  width: auto;
  margin: 0 15px 20px;
  position: relative;
  cursor: pointer;
}
.main-content .form_area .form_submit:before {
  content: '';
  float: left;
  height: 40px;
  width: 40px;
  border: 2px solid #aeea00;
  border-radius: 50%;
  margin-right: 20px;
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-white.svg);
  background-position: center;
  background-size: 8px 15px;
  background-repeat: no-repeat;

  transition: background-color 0.3s ease-in-out;
}
.main-content .form_area .form_submit:hover:before {
  background-color: #aeea00;
}
.main-content .form_area .form_error,
.main-content .form_area .form_field_error,
.main-content .form_area .form_notice {
  display: none;
}
.content-block {
  float: left;
  width: calc(100% - 380px);
  border: 1px solid #e4e4e4;
  padding: 60px 40px;
  margin-right: 50px;
}
.content-block h1 {
  margin-bottom: 30px;
}
.content-block .text {
  float: left;
  width: 100%;
}
.content-sidebar {
  color: #000;
  float: left;
  display: flex;
  flex-wrap: wrap;
  width: 330px;
}
.content-sidebar.with-fields .action-btn {
  width: 100%;
  line-height: 45px;
}
.content-sidebar.with-fields .timer-wrap {
  width: 100%;
  color: #000;
  padding: 30px 0;
  border-bottom: 1px solid #e4e4e4;
}
.content-sidebar.with-fields .timer-wrap .date {
  text-align: left;
}
.content-sidebar.with-fields .field {
  float: left;
  width: 100%;
  padding: 30px 0;
  border-bottom: 1px solid #e4e4e4;
}
.content-sidebar.with-fields .field .field-group + .field-group {
  margin-top: 20px;
}
.content-sidebar.with-fields .field .field-group .title {
  font-weight: 700;
}
.field-group .read-fund {
  color: #1B365D;
  border-bottom: 1px solid #1B365D;
}
.content-sidebar .field-group .read-fund {
    color: #1B365D;

    text-align: left;
    border: none;
    text-decoration: underline;
}
.field-group .read-fund:hover,
.field-group .read-fund:focus {
  color: #1B365D;
  border-bottom-color: transparent;
}
.share.global-share {
  float: left;
  width: 100%;
  padding: 30px 0;
}
.share.global-share.preview .share-title {
  float: left;
  margin-right: 20px;
  line-height: 20px;
}
.share.global-share.preview .edy-content-social-buttons-list {
  float: left;
}
.share.global-share.preview .edy-content-social-button {
  float: left;
  width: 20px;
  height: 20px;
  position: relative;
  margin-left: 15px;
  border-bottom: none;
}
.share.global-share.preview .edy-content-social-button:before,
.share.global-share.preview .edy-content-social-button:after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
  opacity: 0.3;
}
.share.global-share.preview .edy-content-social-button:after {
  opacity: 0;
}
.share.global-share.preview .edy-content-social-button[data-type="facebook"]:before {
  background-image: url(https://sihtasutus.ut.ee/assets/fb-icon.svg);
}
.share.global-share.preview .edy-content-social-button[data-type="twitter"]:before {
  background-image: url(https://sihtasutus.ut.ee/assets/twitter-icon.svg);
}
.share.global-share.preview .edy-content-social-button[data-type="email"]:before {
  background-image: url(https://sihtasutus.ut.ee/assets/mail-icon.svg);
}
.share.global-share.preview .edy-content-social-button[data-type="facebook"]:after {
  background-image: url(https://sihtasutus.ut.ee/assets/fb-icon-blue.svg);
}
.share.global-share.preview .edy-content-social-button[data-type="twitter"]:after {
  background-image: url(https://sihtasutus.ut.ee/assets/twitter-icon-blue.svg);
}
.share.global-share.preview .edy-content-social-button[data-type="email"]:after {
  background-image: url(https://sihtasutus.ut.ee/assets/mail-icon-blue.svg);
}
.share.global-share.preview .edy-content-social-button:hover:before {
  opacity: 0;
}
.share.global-share.preview .edy-content-social-button:hover:after {
  opacity: 1;
}
.share.global-share.preview .edy-content-social-button svg {
  display: none;
}
.custom-style {
  color: #fff;
  width: 100%;
  padding: 70px 80px;
  margin-top: 60px;
  background-color: #1B365D;
}
.custom-style h2,
.custom-style h3 {
  color: #fff;
}
.custom-style li:before {
  background: #fff;
}

/* PAGE TOP */
.page-top {
  color: #fff;
  float: left;
  height: 670px;
  width: 100%;
  position: relative;
  
}
.front-page .page-top {
  background-color:#2c5697;
}
.page-top h1 {
  color: #fff;
}
.page-top .container {
  display: table;
  height: 100%;
  position:relative;
}
.top-content {
  display: table-cell;
  vertical-align: middle;
  z-index:1;
  position:relative;
}
.top-content .content-wrap {
  max-width: 690px;
  width: 100%;
}
.page-top h1 {
  margin-bottom: 20px;
}
.action-buttons {
  float: left;
  margin-top: 40px;
}
.page-top .custom-btn {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  display: inline-block;
  vertical-align: middle;
  width: 285px;
  line-height: 60px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0;
  margin: 10px 0 0;
  text-align: center;
  background-color: transparent;
  border-radius: 5px;
  transition: all 0.2s ease-in-out; 
}
.page-top .custom-btn:before,
.page-top .custom-btn:after {
  display: none;
}
.page-top .custom-btn{
  margin-right:5px;
}
.page-top .custom-btn + .custom-btn {
  /*border-left: 0; */
}
.page-top .custom-btn:hover {
  color: #aeea00;
  background: rgba(255, 255, 255, 0.15);
}
.page-top .custom-btn.first {
  /*border-top-right-radius: 0;
  border-bottom-right-radius: 0;*/
}
.page-top .custom-btn.last {
  /*border-top-left-radius: 0;
  border-bottom-left-radius: 0;*/
}
.page-top .custom-btn.mobile {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  margin-left: 0;
}
.cover-image {
  position: absolute !important;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-position: center 0;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}
.cover-image:after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  background: #000;
  opacity: 0.5;
  position: absolute;
  left: 0;
  top: 0;
}
/* SECTION BLOCK */
.section-header {
  float: left;
  width: 100%;
  margin-bottom: 40px;
}
.section-header .title-area {
  float: left;
  width: 100%;
}
.section-header h1,
.section-header h2 {
  float: left;
  padding-right: 30px;
  /*margin-bottom: 20px;*/
}
.section-header .custom-btn {
  float: right;
  /*margin-bottom: 20px;*/
}
.section-header .custom-btn.description-aligned {
  margin-bottom: 0;
  margin-top: 20px;
  float: left;
}
.section-header .description {
  color:  #7e7d7d;
  float: left;
  width: 100%;
  max-width: 760px;
}
.section.section-complete .section-header h1 {
  float: left;
  margin-bottom: 50px;
}
.section.section-complete .section-header.with-button-back .custom-btn {
  float: left;
  padding: 0 25px 0 50px;
  margin-bottom: 0;
}
.section.section-complete .section-header.with-button-back .custom-btn::before,
.section.section-complete .section-header.with-button-back .custom-btn::after {
  left: 25px;
  right: auto;
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-left.svg);
}
.section.section-complete .section-header.with-button-back .custom-btn::after {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-left-white.svg);
}
.section.section-complete .section-header.with-button-back h1 + .custom-btn,
.section.section-complete .section-header.with-button-back h2 + .custom-btn {
  float: right;
}
.section.section-complete .section-header.with-content-block {
  margin-bottom: 50px;
}
.section.section-complete .section-header.with-content-block h1,
.section.section-complete .section-header.with-content-block h2,
.section.section-complete .section-header.with-content-block .custom-btn {
  margin-bottom: 0;
}
.section.section-complete .section-header.with-filter {
  margin-bottom: 80px;
}
/* CAMPAIGN */
.campaigns-wrap {
  float: left;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-top: -30px;
}
.campaign-block {
  float: left;
  width: calc(100% / 3 - 30px);
  margin: 30px 15px 0;
  position: relative;

  transition: box-shadow 0.3s ease-in-out;
}
.campaign-block.clone {
  display: none;
}
.campaign-block:hover {
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}
.campaign-block .image {
  height: 200px;
  width: 100%;
  background-image: url(/images/top-bg.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.campaign-block .info {
  float: left;
  width: 100%;
  padding: 25px 30px 0;
  border: 1px solid #ececec;
  border-top: none;
  transition: border-color 0.3s ease-in-out;
}
.campaign-block:hover .info {
  border-color: transparent;
}
.campaign-block .title-wrap {
  float: left;
  width: 100%;
}
.campaign-block .title {
  color: #000;
  font-family: 'Tinos';
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  float: left;
  width: 100%;
  margin-bottom: 20px;
  border-bottom: none;
}
.campaign-block .title:hover,
.campaign-block .title:focus {
  color: #1B365D;
}
.campaign-block .description {
  color: #7e7d7d;
  font-size: 14px;
  line-height: 18px;
  margin-bottom: 20px;
}
.campaign-block .buttons {
  float: left;
  width: 100%;
  margin-bottom: 25px;
}
.campaign-block .buttons .custom-btn {
  float: right;
  border: none;
  padding: 0 25px;
  line-height: 35px;
}
.campaign-block .buttons .custom-btn:before,
.campaign-block .buttons .custom-btn:after {
  right: 0;
  transition: none;
}
.campaign-block .buttons .custom-btn:hover {
  color: #1B365D;
  background: transparent;
}
.campaign-block .buttons .custom-btn:hover:after {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-blue.svg);
}
.campaign-progress .progressbar {
  height: 15px;
  width: 100%;
  float: left;
  position: relative;
  margin-bottom: 20px;
}
.campaign-progress .progressbar:before {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background: #d7d7d7;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  z-index: -1;
}
.campaign-progress .progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #79b700;
  border-radius: 7px;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
  transition: width 1s ease-in-out;
}
.campaign-progress .progress-stats {
  font-size: 14px;
  line-height: 24px;
  float: left;
  width: 100%;
  margin-bottom: 25px;
}
.campaign-progress .stat-item {
  color: #7e7d7d;
  float: left;
  width: calc(100% / 3);
  text-align: center;
  border-right: 1px solid #ececec;
}
.campaign-progress .stat-item:last-child {
  border: none;
}
.campaign-progress .stat-item span {
  display: block;
  color: #000;
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
}
.campaign-block .share {
  float: left;
  width: 100%;
  border-top: 1px solid #ececec;
  text-align: center;
  height: 45px;
  line-height: 50px;
}
.campaign-block .share a {
  display: inline-block;
  height: 20px;
  width: 20px;
  margin-right: 15px;
  position: relative;
  border-bottom: none;
}
.campaign-block .share a:before,
.campaign-block .share a:after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.campaign-block .share a:last-child {
  margin-right: 0;
}
.campaign-block .share a:before {
  opacity: 0.3;
}
.campaign-block .share a:after {
  opacity: 0;
}
.campaign-block .share a.fb:before {
  background-image: url(https://sihtasutus.ut.ee/assets/fb-icon.svg);
}
.campaign-block .share a.twitter:before {
  background-image: url(https://sihtasutus.ut.ee/assets/twitter-icon.svg);
}
.campaign-block .share a.email:before {
  background-image: url(https://sihtasutus.ut.ee/assets/mail-icon.svg);
}
.campaign-block .share a.fb:after {
  background-image: url(https://sihtasutus.ut.ee/assets/fb-icon-blue.svg);
}
.campaign-block .share a.twitter:after {
  background-image: url(https://sihtasutus.ut.ee/assets/twitter-icon-blue.svg);
}
.campaign-block .share a.email:after {
  background-image: url(https://sihtasutus.ut.ee/assets/mail-icon-blue.svg);
}
.campaign-block .share a:hover:before {
  opacity: 0;
}
.campaign-block .share a:hover:after {
  opacity: 1;
}
@media screen and (min-width: 650px) {
  .campaign-block.group-of-1 {
    width: calc(100% - 30px);
  }
  .campaign-block.group-of-1 .image,
  .campaign-block.group-of-1 .info {
    width: 50%;
    float: left;
  }
  .campaign-block.group-of-1 .image {
    position: absolute;
    height: 100%;
  }
  .campaign-block.group-of-1 .info {
    margin-left: 50%;
    border-top: 1px solid #ececec;
  }
  .campaign-block.group-of-2 {
    width: calc(100% / 2 - 30px);
  }
  .campaign-block.group-of-3 {
    width: calc(100% / 3 - 30px);
  }
}
/* SCHOLARSHIP */
.scholarship-wrap {
  float: left;
  display: flex;
  flex-wrap: wrap;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-top: -30px;
}
.scholarship-block {
  float: left;
  width: calc(100% / 3 - 30px);
  margin: 30px 15px 40px;

  transition: box-shadow 0.3s ease-in-out;
}
.scholarship-block.clone {
  display: none;
}
.scholarship-block:hover {
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}
.scholarship-block .title-wrap {
  float: left;
  width: 100%;
}
.scholarship-block .image {
  height: 200px;
  width: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.scholarship-block .info {
  float: left;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 25px 30px 0;
  border: 1px solid #ececec;
  position: relative;

  transition: border-color 0.3s ease-in-out;
}
.scholarship-block .image + .info {
  height: calc(100% - 200px);
}
.scholarship-block:hover .info {
  border-color: transparent;
}
.scholarship-block .action-btn {
  display: none;
  position: absolute;
  top: -17px;
}
.scholarship-block.started .action-btn {
  display: block;
}
.scholarship-block .title {
  color: #000;
  font-family: 'Tinos';
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  float: left;
  width: 100%;
  margin-bottom: 20px;
  border-bottom: none;
}
.scholarship-block .title:hover,
.scholarship-block .title:focus {
  color: #1B365D;
}
.scholarship-block .description {
  color: #7e7d7d;
  font-size: 14px;
  line-height: 18px;
  margin-bottom: 20px;
}
.scholarship-block .options {
  float: left;
  width: 100%;
  margin-top: auto;
  margin-bottom: 20px;
}
.scholarship-block .custom-btn {
  float: left;
  border: none;
  padding: 0 25px 0 0;
  line-height: 20px;
}
.scholarship-block .custom-btn:before,
.scholarship-block .custom-btn:after {
  right: 0;
  transition: none;
}
.scholarship-block .custom-btn:hover {
  color: #1B365D;
  background: transparent;
}
.scholarship-block .custom-btn:hover:after {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-blue.svg);
}
.scholarship-block .share {
  float: right;
  text-align: center;
  height: 20px;
  line-height: 20px;
}
.scholarship-block .share a {
  display: inline-block;
  height: 20px;
  width: 20px;
  margin-right: 15px;
  position: relative;
  border-bottom: none;
}
.scholarship-block .share a:before,
.scholarship-block .share a:after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.scholarship-block .share a:last-child {
  margin-right: 0;
}
.scholarship-block .share a:before {
  opacity: 0.3;
}
.scholarship-block .share a:after {
  opacity: 0;
}
.scholarship-block .share a.fb:before {
  background-image: url(https://sihtasutus.ut.ee/assets/fb-icon.svg);
}
.scholarship-block .share a.twitter:before {
  background-image: url(https://sihtasutus.ut.ee/assets/twitter-icon.svg);
}
.scholarship-block .share a.email:before {
  background-image: url(https://sihtasutus.ut.ee/assets/mail-icon.svg);
}
.scholarship-block .share a.fb:after {
  background-image: url(https://sihtasutus.ut.ee/assets/fb-icon-blue.svg);
}
.scholarship-block .share a.twitter:after {
  background-image: url(https://sihtasutus.ut.ee/assets/twitter-icon-blue.svg);
}
.scholarship-block .share a.email:after {
  background-image: url(https://sihtasutus.ut.ee/assets/mail-icon-blue.svg);
}
.scholarship-block .share a:hover:before {
  opacity: 0;
}
.scholarship-block .share a:hover:after {
  opacity: 1;
}
.scholarship-block .timer-wrap {
  float: left;
  width: 100%;
  padding: 20px 0;
  border-top: 1px solid #ececec;
}
.scholarship-block .timer {
  color: #000;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  display: inline-block;
  vertical-align: middle;
  height: 100px;
  width: 100px;
  border-radius: 50%;
  border: 2px solid #2c5697;
  text-align: center;
}
.scholarship-block.started .timer {
  border: 2px solid #79b700;
}
.scholarship-block .timer .time {
  color: #2c5697;
  font-size: 36px;
  line-height: 36px;
  font-weight: 900;
  margin-top: 20px;
}
.scholarship-block.started .timer .time {
  color: #79b700;
}
.scholarship-block .date {
  color: #000;
  font-weight: 900;
  font-size: 18px;
  line-height: 28px;
  display: inline-block;
  vertical-align: middle;
  width: calc(100% - 100px);
  text-align: right;
}
/* CAMPAIGNS */
.campaign-field .fields-wrap {
  float: left;
  width: 100%;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-bottom: 100px;
}
.campaign-field .field-block {
  float: left;
  width: calc(100% / 3 - 30px);
  height: 200px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 30px 15px 0;
  position: relative;
  border-bottom: none;
}
.campaign-field .field-block .title {
  color: #fff;
  font-family: 'Tinos';
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  display: table;
  width: calc(100% - 20px);
  height: 70px;
  padding: 0 15px;
  text-align: center;
  position: absolute;
  left: 10px;
  bottom: 10px;

  transition: height 0.5s ease-in-out;
}
.campaign-field .field-block:hover .title {
  height: calc(100% - 20px);
}
.campaign-field .field-block .title-bg {
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.8;
}
.campaign-field .field-block .title span {
  display: table-cell;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}
.campaign-field .field-block.add-new {
  background-color: #0061aa;
  background-image: url(https://sihtasutus.ut.ee/assets/newfield-bg.svg);
  background-position: center;
  background-size: 180px;
  background-repeat: no-repeat;
}
.campaign-field .field-block.add-new .add-new-title {
  color: #fff;
  font-family: 'Tinos';
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  display: block;
  width: 100%;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}
/* CAMPAIGN PAGE */
.campaign-page .campaign-progress .progress-stats {
  margin-bottom: 0;
}
/* URL BLOCKS */
.url-blocks-wrap {
  float: left;
  width: 100%;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-top: -30px;
}
.url-blocks-wrap .url-block {
  color: #fff;
  font-family: 'Tinos';
  font-size: 30px;
  line-height: 36px;
  float: left;
  display: table;
  width: calc(100% / 3 - 30px);
  height: 160px;
  background: #6c9c11;
  margin: 30px 15px 0;
  position: relative;
  text-align: center;
  border-bottom: none;
}
.url-blocks-wrap .url-block:nth-child(2) {
  background: #4397f5;
}
.url-blocks-wrap .url-block:nth-child(3) {
  background: #f56938;
}
.url-blocks-wrap .url-block:nth-child(4) {
  background: #1B365D;
}
.url-blocks-wrap .url-block:nth-child(5) {
  background: #8b0304;
}
.url-blocks-wrap.solid-color .url-block {
  background: #1B365D;
}
.url-blocks-wrap .url-block .url-content {
  display: table-cell;
  vertical-align: middle;
}
.url-blocks-wrap .url-block .url-content span {
  display: inline-block;
  position: relative;
  max-width: calc(100% - 60px);
}
.url-blocks-wrap .url-block .url-content span:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #fff;
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  margin: auto;

  transition: width 0.3s ease-in-out;
}
.url-blocks-wrap .url-block:hover .url-content span:after {
  width: 100%;
}
/* TESTIMONIALS */
.testimonials-wrap {
  float: left;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-top: -30px;
  margin-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
}
.testimonial-block {
  float: left;
  width: calc(100% / 3 - 30px);
  margin: 30px 15px 0;
  position: relative;
  transition: box-shadow 0.3s ease-in-out;
}
.testimonial-block:hover {
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}
.testimonial-block .image {
  float: left;
  width: 100%;
  height: 200px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.testimonial-block .info {
  float: left;
  width: 100%;
  padding: 30px;
  border: 1px solid #ececec;
  border-top: none;

  transition: border-color 0.3s ease-in-out;
}
.testimonial-block:hover .info {
  border-color: transparent;
}
.testimonial-block .title {
  font-family: 'Tinos';
  font-size: 30px;
  line-height: 36px;
  margin-bottom: 20px;
}
/* FUNDS PAGE */
.funds-page .filter-wrap .dropdown {
  width: 40%;
}
.funds-page .filter-wrap .empty-search {
  width: 20%;
}
.funds-wrap {
  float: left;
  display: flex;
  flex-wrap: wrap;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-top: -50px;
}
.funds-wrap .fund-block {
  float: left;
  width: calc(50% - 30px);
  margin: 50px 15px 0;
  padding: 40px 20px 40px 30px;
  border: 1px solid #e4e4e4;

  transition: box-shadow 0.3s ease-in-out;
}
.funds-wrap .fund-block.clone {
  display: none;
}
.funds-wrap .fund-block:hover {
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}
.funds-wrap .fund-block .info {
  float: left;
  width: 100%;
  max-width: 370px;
}
.funds-wrap .fund-block .title {
  color: #000;
  font-family: 'Tinos';
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  float: left;
  width: 100%;
  margin-bottom: 20px;
  border-bottom: none;
  cursor: pointer;
}
.funds-wrap .fund-block .title:hover,
.funds-wrap .fund-block .title:focus {
  color: #1B365D;
}
.funds-wrap .fund-block .description {
  color: #7e7d7d;
  font-size: 14px;
  line-height: 18px;
  margin-bottom: 20px;
}
.funds-wrap .fund-block .action-btn {
  float: right;
}
.funds-wrap .fund-block .custom-btn {
  padding: 0 25px 0 0;
  background: transparent;
  border: none;
}
.funds-wrap .fund-block .custom-btn::before,
.funds-wrap .fund-block .custom-btn::after {
  right: 0;
}
.funds-wrap .fund-block .custom-btn:hover {
  color: #1B365D;
}
.funds-wrap .fund-block .custom-btn:hover:after {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-blue.svg);
}
/* SCHOLARSHIP INTRODUCTION */
.scholarship-introduction-page .page-top .action-buttons {
  margin-top: 40px;
}
.scholarship-introduction-page .timer-wrap {
  margin-top: 30px;
  margin-left: 70px;
}
.scholarship-introduction-page .timer-wrap.mobile {
    width: 100%;
    margin-left: 0;
}
.scholarship-introduction-page .timer-wrap.mobile .date {
    width: auto;
  }
.scholarship-introduction-page .timer-wrap .time {
  color: #fff;
}
.scholarship-introduction-page .admin-date {
  float: left;
  width: 100%;
  margin-top: 30px;
}
.rand-info .url-blocks-wrap {
  margin-bottom: 70px;
}
.rand-info-wrap {
  float: left;
  width: calc(100% + 30px);
  margin-left: -15px;
  position: relative;
}
.rand-info-wrap .info-block {
  float: left;
  width: calc(100% / 3 - 30px);
  position: relative;
  margin: 30px 15px 0;
}
.rand-info-wrap a.info-block {
  border-bottom: none;
}
.rand-info-wrap .info-block.fact {
  color: #1B365D;
  font-size: 40px;
  font-family: 'Tinos';
  line-height: 56px;
  background: #fff;
  padding: 90px 40px;
  text-align: center;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}
.rand-info-wrap .info-block.fact .title:before,
.rand-info-wrap .info-block.fact .title:after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #6c9c11;
  margin: 0 auto 30px;
}
.rand-info-wrap .info-block.fact .title:after {
  margin: 30px auto 0;
}
.rand-info-wrap .info-block.fact .photo,
.rand-info-wrap .info-block.fact .author {
  display: none;
}
.rand-info-wrap .info-block.quote {
  color: #fff;
  padding: 40px 30px 150px;
}
.rand-info-wrap .info-block.quote .photo {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background-position: center 100%;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}
.rand-info-wrap .info-block.quote .photo:after {
  content: '';
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #1B365D;
  opacity: 0.8;
}
.rand-info-wrap .info-block.quote .title {
  font-size: 30px;
  font-family: 'Tinos';
  line-height: 46px;
  margin-bottom: 20px;
}
.rand-info-wrap .info-block.quote .author {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}
.rand-info-wrap .info-block.link .photo {
  float: left;
  width: 100%;
  height: 260px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.rand-info-wrap .info-block.link .title {
  color: #fff;
  font-family: 'Tinos';
  font-size: 30px;
  line-height: 36px;
  text-align: center;
  padding: 40px 30px;
  float: left;
  width: 100%;
  background: pink;
}
.rand-info-wrap .info-block.link .author,
.rand-info-wrap .info-block.link.no-image .photo {
  display: none;
}
/* SCHOLARSHIPS PAGE */
.scholarships-page .dropdown {
  width: 40%;
}
.scholarships-page .empty-search {
  width: 20%;
}

/* SCHOLARSHIP PAGE */
/* SPONSORS */
.sponsors-page .section.section-complete .section-header h1 {
  margin-bottom: 0;
}
.sponsors-wrap {
  float: left;
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-top: -30px;
}

.sponsors-wrap.new {
  padding-bottom: 60px;
}

.sponsors-title {
  margin-bottom: 30px;
  border-bottom: 1px solid black;
}
.sponsors-wrap .sponsor {
  float: left;
  height: 115px;
  width: calc(100% / 4 - 30px);
  margin: 30px 15px 0;
  text-align: center;
  border: 1px solid #e4e4e4;
  position: relative;

  transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.sponsors-wrap .sponsor:hover {
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}
.sponsors-wrap .sponsor img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  max-width: calc(100% - 70px);
  max-height: calc(100% - 50px);
}
.sponsors-wrap .sponsor .title {
  color: #1B365D;
  font-family: 'Tinos';
  font-size: 22px;
  line-height: 32px;
  display: block;
  width: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 15px;
}
/* CONTACTS */
.contact-block {
  float: left;
  width: 100%;
  margin-top: 30px;
  padding-bottom: 20px;
}
.contact-block:not(.general):not(:last-child) {
  border-bottom: 1px solid #e4e4e4;
}
.contact-block h2 {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e4e4e4;
}
.contact-block .image {
  float: left;
  width: 100%;
  height: 180px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 20px;
}
.contact-block .name {
  float: left;
  width: 100%;
  font-size: 22px;
  font-family: 'Tinos';
  line-height: 32px;
  border-bottom: none;
}
.contact-block .profession {
  float: left;
  width: 100%;
  color: #1B365D;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 10px;
}
.contact-block .personal-contacts {
  float: left;
  width: 100%;
}
.facts-wrap {
  float: left;
  width: 100%;
  border: 1px solid #e4e4e4;
  border-radius: 5px;
  padding: 130px 50px;
  margin-top: 40px;
  margin-bottom: 90px;
  position: relative;
}
.facts-wrap .fact {
  float: left;
  width: 25%;
  text-align: center;
}
.facts-wrap .fact .result {
  color: #1B365D;
  font-size: 40px;
  line-height: 50px;
  font-family: 'Tinos';
}
.facts-wrap .fact .result:after {
  content: '';
  display: block;
  margin: 20px auto;
  width: 50px;
  height: 2px;
  background: #aeea00;
}
.facts-wrap .fact .description {
  padding: 0 50px;
}
.facts-wrap .facts-content {
  float: left;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -25px;
  text-align: center;
}
.facts-wrap .facts-content .custom-btn {
  line-height: 18px;
  padding: 15px 50px 15px 25px;
  float: none;
  display: inline-block;
}
/* NEWS PAGE */
.section-header.for-news-page .filter-wrap {
  float: right;
  width: auto;
}
.section-header.for-news-page .dropdown,
.section-header.for-news-page .empty-search {
  width: 165px;
  min-width: auto;
}
.section.section-complete .section-header.for-news-page {
  margin-bottom: 0;
}
.section.section-complete .section-header.for-news-page h1,
.section.section-complete .section-header.for-news-page h2,
.section.section-complete .section-header.for-news-page .custom-btn {
  margin-bottom: 50px;
}
.section.section-complete .section-header.for-news-page .filter-wrap {
  margin-bottom: 50px;
}
.post-block {
  float: left;
  width: 100%;
  padding-bottom: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid #e4e4e4;
}
.post-block.clone {
  display: none;
}
.post-block.last {
  border: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.post-date {
  color: #1B365D;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  float: left;
  width: 100%;
  margin-bottom: 20px;
  position: relative;
  padding-left: 35px;
}
.post-date:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  float: left;
  width: 14px;
  height: 14px;
  background-image: url(https://sihtasutus.ut.ee/assets/time-icon.svg);
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
}
.post-block h2 {
  margin-bottom: 20px;
}
.post-block h2 a {
  color: #000;
  border-bottom: none;
}
.post-block h2 a:hover {
  color: #1B365D;
}
.post-block .title {
  color: #000;
  font-size: 30px;
  font-family: 'Tinos';
  line-height: 40px;
  border-bottom: none;
}
.post-block .title:hover {
  color: #1B365D;
}
.post-block .description {
  color: #7e7d7d;
  float: left;
  width: 100%;
  margin-bottom: 20px;
}
.news-sidebar .sidebar-title {
  font-family: 'Tinos';
  font-size: 30px;
  line-height: 40px;
  padding: 30px 0;
  border-bottom: 1px solid #e4e4e4;
}
.news-sidebar .post-block {
  padding: 20px 0;
  border-bottom: 1px solid #e4e4e4;
  margin: 0;
}
.news-sidebar .post-date {
  margin-bottom: 10px;
}
.news-sidebar .post-block .title {
  color: #000;
  font-size: 22px;
  font-family: 'Tinos';
  line-height: 32px;
  border-bottom: none;
}
.news-sidebar .post-block .title:hover {
  color: #1B365D;
}
.news-sidebar .custom-btn {
  margin-top: 30px;
}
/* POST PAGE */
.post-page .content-block h1 {
  font-size: 30px;
  line-height: 40px;
}
.post-page .article-info {
  float: left;
  width: 100%;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e4e4e4;
}
.post-page .content-block .share {
  padding-top: 40px;
  padding-bottom: 0;
  border-top: 1px solid #e4e4e4;
  margin-top: 30px;
  margin-bottom: -20px;
}
/* POPUP — styles moved to src/css/popup.css */
/* FORM */
.form-wrap {
  float: left;
  width: 100%;
}
.form-wrap .form-block {
  float: left;
  width: 100%;
  background: #f3f5f5;
  margin: 0 auto 40px;
  position: relative;
}
.form-wrap .form-block .block-content {
  float: left;
  width: 100%;
  padding: 50px 180px;
}
.form-wrap .form-block h2 {
  margin-bottom: 50px;
}
.form-wrap .form-block p:not(:first-child):last-child {
  margin-bottom: 0;
}
.form-wrap .form-block .dropdown {
  color: #1B365D;
}
.form-wrap .form-block .dropdown:after {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-blue.svg);
}
.form-wrap .form-block .form-row {
  float: left;
  width: calc(100% + 20px);
  margin-left: -10px;
}
.form-wrap .form-block .form-group {
  float: left;
  width: 100%;
  margin-bottom: 30px;
  position: relative;
}
.form-wrap .form-block .form-group.group-of-2 {
  width: calc(50% - 20px);
  margin-left: 10px;
  margin-right: 10px;
}
.form-wrap .form-block .form-group.group-of-3 {
  width: calc(100% / 3 - 20px);
  margin-left: 10px;
  margin-right: 10px;
}
.form-wrap .form-block .form-group.group-of-3.multi-2 {
  width: calc(100% / 3 * 2 - 20px);
}
.form-wrap .form-block .form-group:not(:first-child):last-child {
  margin-bottom: 0;
}
.form-wrap .form-block .form-group label {
  color: #1B365D;
  font-size: 14px;
  font-weight: 500;
  float: left;
  line-height: 18px;
  margin-bottom: 15px;
  position: relative;
}
.form-wrap .form-block .form-group label .edy-ca {
  border: 1px solid #aeea00 !important;
}
.form-wrap .form-block .form-group input:not(.table-input):not([type="checkbox"]),
.form-wrap .form-block .form-group textarea {
  color: #000;
  float: left;
  width: 100%;
  line-height: 50px;
  background: #fff;
  padding: 0 15px;
  border: 1px solid #ececec;
  border-radius: 5px;
}
.form-wrap .form-block .form-group input:focus,
.form-wrap .form-block .form-group textarea:focus {
  border-color: #2c5697 !important;
  position: relative;
  z-index: 1;
}
.form-wrap .form-block .form-group textarea {
  height: 250px;
  padding: 10px;
  line-height: initial;
  resize: none;
}
.popup-payment input.error_field,
.popup-payment textarea.error_field,
.popup-payment .dropdown.error_field,
.form-wrap .form-block .form-group input.error_field,
.form-wrap .form-block .form-group textarea.error_field,
.form-wrap .form-block .form-group .dropdown.error_field {
  border: 1px solid #d50000 !important;
}
.fileupload.error_field {
  border: 1px solid #d50000 !important;
}

.form-wrap .form-block .form-group textarea.large {
  height: 180px;
}
.form-wrap .form-table {
  float: left;
  width: 100%;
  overflow: auto;
}
.form-wrap .form-table-row {
  float: left;
  width: 100%;
  padding-right: 20px;
  position: relative;
}
.form-wrap .form-table-row.row-clone .remove-row {
  display: none;
  opacity: 0;
  pointer-events: none;
}
.form-wrap .form-table-row + .form-table-row {
  margin-top: -1px;
}
.form-wrap .remove-row {
  display: block;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  background-image: url(https://sihtasutus.ut.ee/assets/close-red.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.form-wrap .form-table-label {
  color: #1B365D;
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
  border: 1px solid #d8d8d8;
}
.form-wrap .form-table-label + .form-table-label {
  margin-left: -1px;
}
.form-wrap .form-table .form-table-row input {
  color: #000;
  float: left;
  line-height: 40px;
  background: #fff;
  padding: 0 15px;
  border: 1px solid #d8d8d8;
}
.form-wrap .form-table .form-table-row input + input {
  margin-left: -1px;
}
.form-wrap .form-table .form-table-row:first-child .form-table-label:first-child {
  border-top-left-radius: 5px;
}
.form-wrap .form-table .form-table-row:first-child .form-table-label:last-child {
  border-top-right-radius: 5px;
}
.form-wrap .form-table .form-table-row.last input:first-child {
  border-bottom-left-radius: 5px;
}
.form-wrap .form-table .form-table-row.last input.last {
  border-bottom-right-radius: 5px;
}
.form-wrap .form-group input[type="file"] {
  height: 45px;
  line-height: 45px;
  position: relative;
  z-index: 1;
  opacity: 0;
}
.form-wrap .form-group .fileupload {
  color: #1B365D;
  font-size: 14px;
  font-weight: 500;
  float: left;
  width: 100%;
  height: 45px;
  line-height: 45px;
  padding: 0 15px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: 0;
  overflow: hidden;
}
.form-wrap .form-group .fileupload:after {
  content: '';
  display: block;
  height: 30px;
  width: 30px;
  background-color: #1B365D;
  background-image: url(https://sihtasutus.ut.ee/assets/file-white.svg);
  background-position: center;
  background-size: 18px;
  background-repeat: no-repeat;
  border-radius: 50%;
  position: absolute;
  top: 0;
  right: 20px;
  bottom: 0;
  margin: auto;
}
.form-wrap .toggle-more-wrap {
  float: left;
  margin-top: -5px;
}
.form-wrap .toggle-more-wrap .toggle-more {
  color: #1B365D;
  font-size: 14px;
  font-weight: 700;
  float: left;
  height: 30px;
  width: 30px;
  line-height: 25px;
  border: 2px solid #1B365D;
  border-radius: 50%;
  margin-left: 20px;
  text-align: center;
}
.form-wrap .toggle-more-wrap .toggle-more.active {
  color: #fff;
  background-color: #1B365D;
}
.add-row {
  float: left;
  height: 30px;
  width: 30px;
  border: 2px solid #aeea00;
  border-radius: 50%;
  position: relative;
  background-image: url(https://sihtasutus.ut.ee/assets/plus.svg);
  background-position: center;
  background-size: 10px;
  background-repeat: no-repeat;
  margin-top: 10px;

  transition: background-color 0.3s ease-in-out;
}
.add-row:hover {
  background-color: #aeea00;
}
.form-wrap .edit-help-text {
  color: #000;
  max-width: 290px;
}
.question-btn {
  display: inline-block;
  vertical-align: text-top;
  height: 20px;
  width: 20px;
  background-image: url(https://sihtasutus.ut.ee/assets/question.svg);
  background-position: center;
  background-size: 20px;
  background-repeat: no-repeat;
  margin-left: 10px;
  position: relative;
}
.question-btn .infobox {
  color: #000;
  font-family: 'Roboto';
  width: 290px;
  font-size: 12px;
  line-height: 18px;
  display: none;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 10;
  bottom: 35px;
  left: 50%;
  transform: translatex(-50%);
}
.question-btn .infobox:after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 6px 0 6px;
  border-color: #000000 transparent transparent transparent;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin: auto;
}
.form-wrap .form-group.confirm input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
.form-wrap .form-group.confirm label {
  color: #000;
  font-size: 14px;
  line-height: 30px;
  font-weight: 500;
  cursor: pointer;
}
.form-wrap .form-group.confirm label:before {
  content: '';
  float: left;
  height: 30px;
  width: 30px;
  border: 2px solid #aeea00;
  border-radius: 50%;
  margin-right: 20px;
}
.form-wrap .form-group.confirm input:checked + label:before {
  background: #aeea00;
  background-image: url(https://sihtasutus.ut.ee/assets/checked.svg);
  background-position: center;
  background-size: 12px;
  background-repeat: no-repeat;
}
.form-wrap .form-group.confirm.error_field label {
  color: #d50000;
}
.form-wrap .submit-form {
  line-height: 45px;
  width: auto;
  padding: 0 30px;
  float: right;
}
.submit-error {
  clear: both;
  float: left;
  width: 100%;
  margin-top: 15px;
  padding: 12px 15px;
  border: 1px solid #d50000;
  color: #d50000;
  line-height: 1.4;
  text-align: left;
}
.submit-notice {
  clear: both;
  float: left;
  width: 100%;
  margin-top: 15px;
  padding: 12px 15px;
  border: 1px solid #2c5697;
  color: #2c5697;
  line-height: 1.4;
  text-align: left;
}
.submit-notice p {
  margin: 0 0 8px;
}
.submit-notice .js-submit-continue {
  float: none;
  margin-top: 5px;
}
/* Application form: locked until a scholarship is chosen (application-form.js) */
.form-wrap.form-locked .form-lockable {
  opacity: 0.45;
}
.form-wrap.form-locked .form-lockable,
.form-wrap.form-locked .form-lockable * {
  cursor: not-allowed;
}
.form-wrap.form-locked .form-lockable a[href] {
  cursor: pointer;
}
.form-wrap .form-lock-hint {
  clear: both;
  margin: 0 0 20px;
  color: #1B365D;
  line-height: 1.4;
}
/* Application form: upload size feedback */
.form-wrap .file-size-warning {
  clear: both;
  float: left;
  width: calc(100% - 20px);
  margin: -5px 10px 15px;
  color: #d50000;
  line-height: 1.4;
}
.form-wrap .file-size-total {
  clear: both;
  margin: 0 0 20px;
  line-height: 1.4;
}
.form-wrap .file-size-total.is-over {
  color: #d50000;
}
.form-wrap .form-group .fileupload .fileupload-hint {
  margin-left: 6px;
  color: #6b7788;
  font-weight: 400;
}
/* Remove a chosen file (application-form.js): left of the folder icon, above the
   invisible file input that covers the box. */
.form-wrap .form-group .fileupload-clear {
  display: none;
  position: absolute;
  bottom: 0;
  right: 55px;
  z-index: 2;
  width: 30px;
  height: 45px;
  padding: 0;
  border: 0;
  background: none;
  color: #1B365D;
  font-size: 22px;
  line-height: 45px;
  cursor: pointer;
}
.form-wrap .form-group.has-file .fileupload-clear {
  display: block;
}
.form-wrap .form-group.has-file .fileupload {
  padding-right: 95px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* "No transcript" ticked: the hidden upload was first in the row, so the grade field
   became a last child and lost its bottom margin, pressing the checkbox against it. */
.form-wrap .form-block .form-group.is-opted-out + .form-group {
  margin-bottom: 30px;
}
.form-block .toggle-next {
  width: 100%;
  line-height: 50px;
  border-radius: 0;
}
.form-wrap .form-block.next .form-row,
.form-wrap .form-block.next .form-group,
.form-wrap .form-block.next .toggle-next {
  display: none; 
}
.form-wrap .form-block.next h2 {
  margin-bottom: 0;
}
/* COMMON PAGE */
.common-header {
  float: left;
  width: 100%;
  margin-bottom: 50px;
}
.editmode .common-header {
  border: 1px solid #e4e4e4;
}
.common-content {
  float: left;
  width: 100%;
  border: 1px solid #e4e4e4;
  padding: 60px 190px;
}
/* SCHOLARSHIP ARHCIVE */
.scholarship-archive .content-block {
  width: 100%;
  margin-right: 0;
}
.scholarship-archive .archive-label {
  font-weight: 500;
  width: 100%;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 10px;
  padding-bottom: 10px;
}
.scholarship-archive .archive-label:not(:first-child) {
  margin-top: 30px;
}
.scholarship-archive .content-block h3 a {
  color: #000;
  border-bottom: none;
}
.scholarship-archive .content-block h3 a:hover {
  color: #1B365D;
}
/* SEARCH PAGE */
.select-wrap .select-result {
  font-size: 22px;
  font-family: 'Tinos';
  float: left;
  width: 25%;
  line-height: 75px;
  text-align: center;
  border: 1px solid #e4e4e4;
  cursor: pointer;
}
.select-wrap .select-result + .select-result {
  border-left: none;
}
.select-wrap .select-result:hover,
.select-wrap .select-result.active {
  color: #1B365D;
}
.search-header {
  float: left;
  width: 100%;
  margin-bottom: 50px;
}
.search-header h1 {
  margin-bottom: 50px;
}
.search-page .post-block {
  padding-bottom: 40px;
  margin-bottom: 40px;
}
/* MESSAGE PAGE */
.message-section {
  display: table;
  width: 100%;
  height: 100vh;
  background: #2c5697;
}
.message-wrap {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
.message-wrap .message {
  display: inline-block;
  padding: 0 15px;
  min-width: 200px;
}
.message-wrap .message h1,
.message-wrap .message h2 {
  color: #fff;
  margin-bottom: 50px;
}
.message-wrap .message .custom-btn {
  color: #fff;
  padding: 0 25px;
  border: 1px solid #fff;
  background-color: transparent;
}
.message-wrap .message .custom-btn:hover {
  color: #2c5697;
  background-color: #fff;
}
.message-wrap .message .custom-btn:before,
.message-wrap .message .custom-btn:after {
  display: none;
}

/* FOOTER */
.footer {
  color: #000;
  font-size: 14px;
  line-height: 20px;
  float: left;
  width: 100%;
  padding: 50px 0;
  position: relative;
}
.footer a {
  border-color: transparent;
}
.footer a:hover {
  border-color: #1B365D;
}
.footer-logo {
  float: left;
  width: 30%;
  border-bottom: none;
}
.footer-logo img {
  float: left;
  max-width: 100%;
  max-height: 45px;
}
.footer-contacts {
  float: left;
  width: 20%;
}
.footer-address {
  float: left;
  width: 30%;
}
.footer-image{
  width: 20%;
 float: left;
}
.footer-image img {
    height: 100px;
    float: left;
    max-width: 100%;
}
/* ADMIN */
.admin-section {
  padding: 100px 0;
}
.admin-section .edit-block {
  float: left;
  width: 100%;
  margin-bottom: 30px;
}
.admin-section .edit-block .title {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}
.admin-section .edit-block.color select {
  color: #fff;
  outline: none;
}
.admin-section .edit-block .edy-editable input {
  border: 1px solid #e4e4e4;
}
.admin-section .edit-block .edy-editable.edy-texteditor-view {
  border: 1px solid #e4e4e4;
}
.addbutton-wrap {
  float: left;
  width: 100%;
  margin-bottom: 20px;
}
.admin-back-to.custom-btn {
  float: left;
  padding: 0 25px 0 50px;
  margin-bottom: 0;
}
.admin-back-to.custom-btn:before,
.admin-back-to.custom-btn:after {
  left: 25px;
  right: auto;
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-left.svg);
}
.admin-back-to.custom-btn:after {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-left-white.svg);
}
/* MADEIN */
.madein {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: block;
  height: 28px;
  width: 85px;
  background-image: url(https://sihtasutus.ut.ee/assets/madeinNeway.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: none;
  z-index: 1;
}
#translations div input[type="text"] {
    width: calc(100% - 100px);
    height: 50px;
    border: 1px solid #ededed;
    padding: 0 15px;
}
button.custom-btn.loader,
button.action-btn.loader {
  pointer-events:none;
}
button.custom-btn.loader:before,
button.action-btn.loader:before {
    content: "";
    border: 4px solid #2c5697;
    border-top: 4px solid #fff;
    border-left: 4px solid #fff;
    background:none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: relative;
    height: 25px;
    width: 25px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}
button.custom-btn.loader:before{
  margin-left:15px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.grecaptcha-badge {
    display: none !important;
}

.common-content .only-popup,
.content-sidebar .only-popup {
  display:none;
}


.cover-image.cover-slogan:after { 
  display:none;
} 

.cover-image.cover-slogan {
    background-size: auto 85%;
    background-position: bottom right;
    z-index:0;
}

.cover-slogan-svg {
    position: absolute;
    height: 240px;
    width: 240px;
    bottom: -80px;
    right: 100px;
    background-image: url(https://sihtasutus.ut.ee/assets/web_slogan_400x400_est.svg);
    transform-origin: center;
}


.video-container {
  width: 100%;
}

/* === src/css/popup.css === */
/* ============================================================
   DONATION POPUP — all popup, payment-block, customer-details
   ============================================================ */

/* POPUP: overlay & header */
body.popup-open {
  overflow: hidden;
}
.popup {
  color: #000;
  position: fixed;
  top: 85px;
  left: -770px;
  display: block;
  height: calc(100vh - 85px);
  width: 100%;
  max-width: 768px;
  background-color: #fff;
  z-index: 105;

  transition: all 0.5s ease-in-out;
}
.popup.open {
  left: 0;
}
.popup .popup-header {
  float: left;
  width: 100%;
  max-width: 768px;
  padding: 20px 90px;
  line-height: 45px;
  height: 85px;
  position: fixed;
  left: -770px;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #ececec;
  z-index: 1;

  transition: all 0.5s ease-in-out;
}
.popup.open .popup-header {
  left: 0;
}
.popup .popup-header .description {
  float: left;
  font-size: 14px;
  font-weight: 500;
}
.popup button.close-popup {
  font-size: 14px;
  font-weight: 500;
  float: right;
  height: 45px;
  line-height: 45px;
}
.popup button.close-popup div {
  float: right;
  height: 45px;
  width: 45px;
  border-radius: 50%;
  background: #1b365d;
  margin-left: 15px;
  position: relative;
}
.popup button.close-popup div span {
  width: 18px;
  height: 2px;
  display: block;
  background: #ffffff;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  margin: auto;
}
.popup button.close-popup div span:last-child {
  transform: rotate(-45deg);
}

/* POPUP: payment block (white area) */
.popup .popup-payment {
  float: left;
  width: 100%;
  height: 100%;
  overflow: auto;
}
.popup .payment-block {
  float: left;
  width: 100%;
  padding: 50px 90px;
  border-bottom: 1px solid #ececec;
  background: #fff;
}
.popup .payment-block h2.js-fund-title {
  margin-bottom: 15px;
}
.popup .payment-block .js-fund-description {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.popup .payment-block .payment-info-text {
  margin-bottom: 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-line;
}

/* Amount section */
.popup .payment-block .donation-amount-section {
  float: left;
  width: 100%;
  margin-bottom: 20px;
}
.popup .payment-block .donation-amount-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1B365D;
}
.popup .payment-block .preset-amounts {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.popup .payment-block .js-preset-amount {
  width: 80px;
  padding: 10px 0;
  text-align: center;
  border: 1px solid #1B365D;
  border-radius: 5px;
  background: #fff;
  color: #1B365D;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.popup .payment-block .js-preset-amount:hover,
.popup .payment-block .js-preset-amount.active {
  background: #1B365D;
  color: #fff;
}
.popup .payment-block .donation-custom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.popup .payment-block .donation-custom-label {
  font-size: 14px;
  font-weight: 600;
  color: #1B365D;
  white-space: nowrap;
  flex-shrink: 0;
}
.popup .payment-block .donation-amount {
  display: flex;
  align-items: center;
  border: 1px solid #1B365D;
  border-radius: 5px;
  overflow: hidden;
  width: 200px;
  flex-shrink: 0;
}
.popup .payment-block .donation-amount input.js-donation-amount {
  flex: 1;
  color: #1B365D;
  font-size: 15px;
  font-weight: 600;
  line-height: 42px;
  padding: 0 12px;
  border: none;
  outline: none;
  min-width: 0;
}
.popup .payment-block .donation-amount .currency {
  font-size: 15px;
  font-weight: 600;
  color: #1B365D;
  padding: 0 12px;
  border-left: 1px solid #1B365D;
  line-height: 42px;
  white-space: nowrap;
}

/* Extra dropdowns section */
.popup .donation-extras-section {
  float: left;
  width: 100%;
  padding: 20px 0 0;
  background: transparent;
  border-top: none;
}
.popup .donation-extras-section.hidden {
  display: none;
}
.popup .donation-extras-section .js-extra-field {
  float: left;
  width: 100%;
  margin-bottom: 20px;
}
.popup .donation-extras-section .js-extra-field.hidden {
  display: none;
}
.popup .donation-extras-section label {
  font-size: 14px;
  font-weight: 600;
  color: #1B365D;
  float: left;
  width: 100%;
  margin-bottom: 10px;
}
.popup .donation-extras-section select {
  float: left;
  width: 100%;
  line-height: 50px;
  height: 52px;
  background: #fff;
  padding: 0 15px;
  border: 1px solid #ececec;
  border-radius: 5px;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}
.popup .donation-extras-section select:focus {
  border-color: #2c5697;
  outline: none;
}
.popup .donation-extras-section select.error_field {
  border-color: #d50000;
}
.popup .payment-block .donation-amount.error_field {
  border-color: #d50000;
}

/* Explanation section */
.popup .payment-block .explanation-section {
  float: left;
  width: 100%;
  margin-top: 20px;
}
.popup .payment-block .explanation-section label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1B365D;
}
.popup .payment-block .explanation-section textarea {
  width: 100%;
  height: 100px;
  padding: 12px 15px;
  border: 1px solid #ececec;
  border-radius: 5px;
  resize: none;
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}
.popup .payment-block .explanation-section textarea:focus {
  border-color: #2c5697;
  outline: none;
}

/* POPUP: customer details (blue area) */
.customer-details {
  float: left;
  width: 100%;
  padding: 50px 90px;
  background: #f0f8fb;
}
.customer-details h2 {
  margin-bottom: 30px;
}

/* Infobox tooltip: open leftward so it doesn't overlap the input */
.customer-details .question-btn .infobox {
  left: auto;
  right: -10px;
  transform: none;
  width: 250px;
}
.customer-details .question-btn .infobox:after {
  left: auto;
  right: 12px;
  margin: 0;
}

.customer-details .form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin-bottom: 15px;
  gap: 15px;
}
.customer-details .form-group label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  width: 180px;
  margin: 0;
}
.customer-details .form-group input,
.customer-details .form-group textarea {
  flex: 1;
  font-size: 14px;
  line-height: 50px;
  background: #fff;
  padding: 0 15px;
  border: 1px solid #ececec;
  border-radius: 5px;
  min-width: 0;
}
.customer-details .form-group textarea {
  resize: none;
  height: 140px;
}
.customer-details .form-group input:focus,
.customer-details .form-group textarea:focus {
  border-color: #2c5697;
}
.customer-details .privacy {
  float: left;
  width: 100%;
  position: relative;
  margin: 10px 0 30px;
}
.customer-details .privacy input {
  position: absolute;
  opacity: 0;
}
.customer-details .privacy label {
  font-size: 14px;
  font-weight: 500;
  line-height: 30px;
  margin: 0;
  cursor: pointer;
}
.customer-details .privacy label:before {
  content: '';
  float: left;
  height: 30px;
  width: 30px;
  border: 2px solid #1b365d;
  border-radius: 50%;
  margin-right: 20px;
}
.customer-details .privacy label:hover:before {
  background: #1b365d;
  background-image: url(https://sihtasutus.ut.ee/assets/checked-white.svg);
  background-position: center;
  background-size: 12px;
  background-repeat: no-repeat;
}
.customer-details .privacy input:checked + label:before {
  background: #1b365d;
  background-image: url(https://sihtasutus.ut.ee/assets/checked-white.svg);
  background-position: center;
  background-size: 12px;
  background-repeat: no-repeat;
}
.customer-details .select-bank {
  float: left;
  width: 100%;
}
.customer-details .bank-wrap {
  float: left;
  width: calc(100% / 6);
  height: 50px;
  position: relative;
}
.customer-details .bank-wrap input {
  opacity: 0;
  position: absolute;
}
.customer-details .bank-wrap label {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: calc(90%) auto;
  background-repeat: no-repeat;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
}
.customer-details .bank-wrap input:checked + label {
  background-color: #fff;
  border: 1px solid #2c5697;
}
.customer-details .bank-wrap label.swedbank {
  background-image: url(/images/swedbank.gif);
}
.customer-details .bank-wrap label.luminor {
  background-image: url(/images/luminor.png);
}
.customer-details .bank-wrap label.krediidipank {
  background-image: url(/images/coop.png);
}
.customer-details .bank-wrap label.citadele {
  background-image: url(/images/citadele.png);
}
.customer-details .bank-wrap label.n26 {
  background-image: url(/images/n26.png);
}
.customer-details .bank-wrap label.revolut {
  background-image: url(/images/revolut.png);
}
.customer-details .bank-wrap label.wise {
  background-image: url(/images/wise.png);
}
.customer-details .bank-wrap label.visa {
  background-image: url(/images/visa.png);
}
.customer-details .bank-wrap label.mastercard {
  background-image: url(/images/mastercard_v2.png);
}
.customer-details .bank-wrap label.apple_pay {
  background-image: url(/images/applepay.png);
}
.customer-details .bank-wrap label.google_pay {
  background-image: url(/images/googlepay.png);
}
.customer-details .bank-wrap label.seb {
  background-image: url(/images/seb.gif);
}
.customer-details .bank-wrap label.lhv {
  background-image: url(/images/lhv.png);
}
.customer-details .bank-wrap label.danske {
  background-image: url(/images/danske.gif);
}
.customer-details .bank-wrap label.nordea {
  background-image: url(https://sihtasutus.ut.ee/assets/luminor.svg);
}
.customer-details .bank-wrap label.master {
  background-image: url(https://sihtasutus.ut.ee/assets/master.svg);
}
.customer-details .complete {
  float: left;
  width: 100%;
  padding-top: 40px;
  border-top: 2px solid #1b365d;
  margin-top: 50px;
  line-height: 40px;
}
.customer-details .complete .total {
  font-weight: 500;
  text-transform: uppercase;
  float: left;
}
.customer-details .complete .total span {
  color: #2c5697;
}
.customer-details .complete button {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  float: right;
  width: 140px;
  height: 40px;
  text-align: center;
  background: #2c5697;
  border-radius: 5px;

  transition: background 0.2s ease-in-out;
}
.customer-details .complete button:hover {
  background: #aeea00;
}

/* POPUP: text content view */
.popup-content {
  float: left;
  width: 100%;
  height: 100%;
  padding: 50px 90px 0;
  overflow: auto;
}
.popup-content:after {
  content: '';
  display: block;
  height: 100px;
  width: 100%;
}
.popup-content h2 {
  border-bottom: 1px solid #e4e4e4;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

@media screen and (max-width: 767px) {
  .popup,
  .popup .popup-header {
    max-width: 100%;
    left: -100%;
  }
  .blur {
    filter: none;
  }
}

/* Mobile: popup padding */
@media screen and (max-width: 649px) {
  .popup .popup-header {
    padding: 20px 15px;
  }
  .popup .payment-block,
  .popup .customer-details,
  .popup .popup-content {
    padding: 50px 15px;
  }
  .popup .customer-details {
    padding-bottom: 100px;
  }
}

/* ===== POPUP MOBILE ===== */
@media (max-width: 600px) {
  /* Custom amount row: stack label above input */
  .popup .payment-block .donation-custom-row {
    flex-wrap: wrap;
  }
  .popup .payment-block .donation-amount {
    width: 100%;
  }

  /* Customer fields: stack label above input */
  .customer-details .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .customer-details .form-group,
  .customer-details .form-group.group-of-1 {
    width: 100%;
    margin-left: 0;
  }
  .customer-details .form-group label {
    width: 100%;
    white-space: normal;
  }
  .customer-details .form-group input,
  .customer-details .form-group textarea {
    width: 100%;
  }

  /* Bank buttons: flex-wrap grid, 4 per row */
  .customer-details .select-bank {
    display: flex;
    flex-wrap: wrap;
  }
  .customer-details .bank-wrap {
    float: none;
    width: calc(100% / 4);
    min-width: 150px;
    height: 44px;
    margin: 3px auto;
  }

  /* Padding reduction on mobile */
  .popup .payment-block {
    padding: 30px 20px;
  }
  .customer-details {
    padding: 30px 20px;
  }
  .popup-content {
    padding: 30px 20px 0;
  }

  /* Hide popup header description text */
  .popup .popup-header .description {
    display: none !important;
  }

  /* Complete section: stack total above button */
  .customer-details .complete .total {
    float: none;
    width: 100%;
    margin-bottom: 10px;
  }
  .customer-details .complete button {
    float: left;
  }
}


/* === src/css/header.css === */
.desktop-menu {
    float: right;
    margin-right: calc(3vw); /* Add some space from other elements */
    height: 45px;
}

.desktop-menu .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.desktop-menu .menu li {
    margin: 0;
    padding: 0;
    height: 100%;
}

.desktop-menu .menu a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #fff; /* Adjust color as needed */
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: none;
    font-size: 14px;
}
.desktop-menu .menu a:hover:after,
.desktop-menu .menu a.active:after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background: #fff;

}


/* Responsive - hide on smaller screens */
@media screen and (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    header {
        position: absolute;
    }
}
@media screen and (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}


.search-bar {
  float: right;
  width: 100%;
  max-width: 250px;
  height: 45px;
  line-height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  margin-left: 30px;
}
.search-bar input {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  float: left;
  height: 100%;
  width: calc(100% - 60px);
  padding: 0 15px;
}
.search-bar button {
  float: left;
  width: 60px;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  background-image: url(https://sihtasutus.ut.ee/assets/zoom-icon.svg);
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
}
.search-bar ::-webkit-input-placeholder {
  color: #fff;
  opacity: 0.3;
}
.search-bar ::-moz-placeholder {
  color: #fff;
  opacity: 0.3;
}
.search-bar :-ms-input-placeholder {
  color: #fff;
  opacity: 0.3;
}
.solid-header .search-bar ::-webkit-input-placeholder {
  color: #fff;
  opacity: 1;
}
.solid-header .search-bar ::-moz-placeholder {
  color: #fff;
  opacity: 1;
}
.solid-header .search-bar :-ms-input-placeholder {
  color: #fff;
  opacity: 1;
}



/* HEADER */
header {
  position: fixed;
  float: left;
  width: 100%;
  top: 0;
  left: 0;
  padding: 30px 0;
  z-index: 100;
  transition: background 0.3s ease-in-out, padding 0.3s ease-in-out;
  background-color: #2c5697;
}
header.scroll {
  padding: 10px 0;
  background: #1B365D;

}
header.menu-open {
  position: fixed;
  top: 0;
  left: 0;
  background: transparent;
}
.solid-header header {
  background: #1B365D;
}
header.header:before {
  content: "";
  position: absolute;
  height: 100%;
  width: 0%;
  top: 0;
  right:0%;
  background-color: #1B365D;
  z-index: 1;
}
header.header.menu-open:before {
  width:100%;
  transition: width 0.5s ease-in-out;
}
.header .logo {
  float: left;
  height: 45px;
  width: 170px;
  border-bottom: none;
}
.header .logo img {
  height: 100%;
  position: relative;
  z-index: 1;
}

.header .langs {
    list-style: none;
    float: right;
    line-height: 45px;
    position: relative;
    z-index: 1;
    margin-right: 30px;
}
.header .langs li {
  float: left;
  position: relative;
  padding-right: 30px;
  height: 100%;


}
.header .langs li:after {
  content: '';
  display: block;
  width: 1px;
  height: 12px;
  background: #fff;
  position: absolute;
  top: 0;
  right: 16px;
  bottom: 0;
  margin: auto;
}
.header .langs li:last-child {
  padding-right: 0;
}
.header .langs li:last-child:after {
  display: none;
}
.header .langs a {
  color: #fff;
  font-size: 14px;
  padding-bottom: 5px;
  position: relative;
  border-bottom: none;
  line-height: 1;
  display: inline-block;
}
.header .langs a:hover:after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background: #fff;
  position: absolute;
  bottom: 0;
  left: 0;
}
.menu-btn {
  line-height: 45px;
  float: right;
  position: relative;
  z-index: 1;
}
.menu-btn .btn-text {
  float: left;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-right: 15px;
  min-width: 50px;
  text-align: right;
}
.menu-btn .btn-text .text-close {
  display: none;
}
.menu-btn .button-wrap {
  height: 45px;
  width: 45px;
  background: #fff;
  border-radius: 50%;
  float: left;
  position: relative;
  overflow: hidden;
}
.text-open {
    visibility: hidden;
}
@media screen and (max-width: 650px) {
  .menu-btn .button-wrap {
      background: #fff;  
  }

}


.menu-stripe {
  display: block;
  height: 2px;
  width: 17px;
  background: #000;
  position: absolute;
  right: 14px;
  top: 0;
  bottom: 0;
  margin: auto;

  transition: right 0.3s ease-in-out, opacity 0.2s linear;
}
.menu-stripe.first {
  top: -10px;
}
.menu-stripe.last {
  top: 10px;
}
.close-stripe {
  display: block;
  width: 18px;
  height: 2px;
  background: #000;
  position: absolute;
  top: 0;
  bottom: 0;
  right: -20px;
  margin: auto;
  opacity: 0;

  transition: right 0.3s ease-in-out, opacity 0.2s linear;
}
.close-stripe.first {
  transform: rotate(45deg);
}
.close-stripe.last {
  transform: rotate(-45deg);
}
.menu-btn.open .close-stripe {
  right: 14px;
  opacity: 1;
}
.menu-btn.open .menu-stripe {
  right: 50px;
  opacity: 0;
}
/* MENU */
.menu-main {
  display: block;
  height: 100vh;
  width: 100%;
  background: hsla(215, 55%, 24%, 0.94) ;
  position: fixed;
  top: 0;
  right: -100%;
  overflow: auto;
  padding: 130px 0 30px;

  transition: right 0.5s ease-in-out;
}
.menu-main.expanded {
    right: 0;
}
.menu-main .container {
  display: table;
  height: 100%;
}
.menu-main .menu-content {
  color: #fff;
  display: table-cell;
  vertical-align: middle;
}
.menu-content .menu-form {
  float: left;
  width: 50%;
  min-height: 100px;
}
.menu-content .menu-form h3 {
  color: #fff;
  font-family: 'Roboto';
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 30px;
}
.menu-content .form_area .form_field label,
.menu-content .form_area .form_submit {
  color: #fff;
}
.menu-content .menu-form .form_field input,
.menu-content .menu-form .form_field textarea {
  color: #fff;
  border-color: #fff;
}
.menu-content .menu-wrap {
  float: left;
  width: 50%;
  text-align: right;
}
.menu-content .menu {
  list-style: none;
  margin-bottom: 50px;
}
.menu-content .menu a {
  color: #fff;
  font-family: 'Roboto';
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  display: inline-block;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease;
}
.menu-content .menu a:hover {
  border-bottom-color: #fff;
}
/* Commented out on 30.06.2025 - if not needed next time you see this comment, delete it
.menu-content .menu:not(.editmode) li:nth-last-child(3) {
  margin-top: 20px;
}
*/
.menu-content .menu li:nth-last-child(-n+3) a {
  font-family: 'Roboto';
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}
.menu-content .menu.editmode a {
  font-family: 'Roboto';
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}
.menu-content .menu-info a {
  color: #fff;
  border-color: transparent;
}
.menu-content .menu-info a:hover {
  border-color: #fff;
}

/* === src/css/front-page.css === */
/* Front page specific styles */
.front-news {
  .featured-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* For full HD 1920x1080 images */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 3rem;
  }
  .title {
    color: #000;
    border-bottom: none;
    text-decoration: underline;
  }
  .title:hover {
    color: #2c5697;
  }
  .news-item {
    margin-bottom: 2rem;
  }
  .news-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto; /* Push to bottom when using flexbox */
  }
}

.news-wrap {
  float: left;
  display: flex;
  gap: 10rem;
  align-items: stretch; /* Make both columns same height */
}

.news-featured {
  flex: 1;
}

.news-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Push news-actions to bottom */
}

/* Mobile Styles for News Section */
@media (max-width: 768px) {
  .news-wrap {
    flex-direction: column;
    gap: 2rem;
    float: left;
  }
  .news-featured {
    margin-bottom: 0rem;

  }
  .featured-article {
    padding-bottom: 2rem;
  }
  .featured-info {
    margin: 0 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1b365d ;

  }
  .news-list {
    padding: 0 1.5rem;
  }
}


/* === src/css/slider.css === */
/* Hero Slider Styles */
.hero-slider {
  position: relative;
  min-height: 3slider-container00px;
  overflow: hidden;
  font-family: "Rubik", sans-serif;
}

.slider-container {
  position: relative;
  height: 658.125px;
  margin-left: auto;
  margin-right: auto;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
}

.slide-item.active {
  opacity: 1;
}

.slide-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  color: white;
  margin-left: 100px;
  margin-right: 100px;
  display: flex;
  align-items: center;
}

.slide-text {
  max-width: 400px;
  display: flex;
  flex-direction: column; /* Keep this - it's perfect for stacking */
}

.slide-title {
  color: #fff;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-family: "Rubik", sans-serif;
}

.slide-description {
  margin-bottom: 2rem;
  line-height: 1.5;
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 2rem;
}

/* Button group container */
.slide-buttons {
  display: flex;
  gap: 15px; /* Space between buttons */
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  position: absolute;
  margin-bottom: 50px;
  bottom: 0;
}

.slide-link {
  border: none;
  color: #fff;
}

/* Primary button (first button - inherits from slide-link) */
.slide-button,
.slide-button-secondary {
  color: #fff;
  font-weight: 500;
  line-height: 45px;
  padding: 0 40px;
  border: 1px solid #fff;
  border-radius: 5px;
  position: relative;
  transition: all 0.2s ease-in-out;
  background-color: #2c5697;
  display: inline-block;
  text-decoration: none;
}
.slide-button:hover,
.slide-button-secondary:hover {
  background-color: #1b365d;
  color: #fff;
  border: 1px solid #fff;
}

/* Navigation */
.slider-navigation {
  position: absolute;
  top: 50%;
  width: calc(100% - 20px);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  transform: translateY(-50%);
  max-width: 1140px;
}

.slider-prev,
.slider-next {
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background-size: 35px 35px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
}

/* Next arrow (right arrow) */
.slider-next {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-white.svg);
}

/* Previous arrow (flip the arrow to point left) */
.slider-prev {
  background-image: url(https://sihtasutus.ut.ee/assets/arrow-white.svg);
  transform: scaleX(-1); /* Flip horizontally to point left */
}

.slider-prev:hover,
.slider-next:hover {
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: hsla(0, 0%, 100%, 0.4);
}

@media (max-width: 992px) {
  .slide-content {
    margin-left: 40px;
    margin-right: 40px;
  }

    .slider-navigation {
    padding: 0 0;
  }

  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    background-size: 16px 16px; /* Smaller arrow on mobile */
  }

}


/* Responsive */
@media (max-width: 768px) {
  .slide-content {
    margin-left: 35px;
    margin-right: 35px;

    h1 {
      font-size: 2.2rem;
    }
    p {
      font-size: 1.5rem;
    }
  }

  .slide-background {
    background-position: center;
  }
  .hero-slider {
    min-height: 300px;

    .slider-container {
      height: 350px;
      padding-right: 0;
      padding-left: 0;
    }
  }



  .slide-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .slide-button,
  .slide-button-secondary {
    width: auto;
    min-width: 150px;
  }
  .slider-navigation {
        width: 100%;
  }
}
@media (max-width: 480px) {

    .slide-background {
      background-position: -80px center;
  }
}

/* === src/css/slide-management.css === */

/* SLIDER MANAGEMENT PAGE */
.slider-management-page .section {
  padding: 50px 0;
}

.slider-preview-section {
  margin-bottom: 60px;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 8px;
}

.slider-preview-section h2 {
  margin-bottom: 30px;
  color: #1B365D;
}

.hero-slider.preview-mode {
  max-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.1);
}

.no-slides-message {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 2px dashed #ddd;
  border-radius: 8px;
}

.no-slides-message p {
  color: #7e7d7d;
  font-size: 18px;
  margin: 0;
}

.slide-management-section {
  margin-bottom: 60px;
}

.slide-management-section h2 {
  margin-bottom: 30px;
  color: #1B365D;
}

.slides-list {
  margin-bottom: 40px;
}

.slide-management-item {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.slide-management-item:hover {
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);
}

.slide-item-header {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.slide-item-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.slide-status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.slide-status.public {
  background: #e8f5e8;
  color: #2d7c2d;
}

.slide-status.private {
  background: #fff3cd;
  color: #856404;
}

.slide-actions .toggle-slide-edit {
  background: #2c5697;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.slide-actions .toggle-slide-edit:hover {
  background: #1B365D;
}

.slide-edit-form {
  padding: 30px;
  background: #fafafa;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #1B365D;
  font-size: 14px;
}

.form-group:last-child {
  grid-column: 1 / -1;
}

.add-slide-section {
  text-align: center;
  padding: 40px;
  background: #f9f9f9;
  border: 2px dashed #ddd;
  border-radius: 8px;
}

.add-slide-section .custom-btn {
  font-size: 16px;
  padding: 0 40px;
  line-height: 50px;
}

.slider-instructions {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 30px;
}

.slider-instructions h2 {
  color: #1B365D;
  margin-bottom: 20px;
}

.slider-instructions ul {
  list-style: none;
  padding: 0;
}

.slider-instructions li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #333;
}

.slider-instructions li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2c5697;
  font-weight: bold;
}

.no-slides-admin {
  text-align: center;
  padding: 40px;
  color: #7e7d7d;
}

/* Slide details view */
.slide-details {
  padding: 20px 0;
}

.detail-row {
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row strong {
  display: inline-block;
  width: 140px;
  color: #1B365D;
}

.slide-actions-bottom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e4e4e4;
}
.slide-edit-title {
  float: right;
}
.edit-slide-btn {
  display: inline-block;
  background: #2c5697;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}
.slide-element-addbutton-wrap {
  margin-bottom: 30px;
  margin-left: 7px;
}


.edit-slide-btn:hover {
  background: #1B365D;
  color: white;
  border-color: transparent;
}

/* INDIVIDUAL SLIDE EDIT PAGE */
.slide-edit-page .section {
  padding: 30px 0;
}

.slide-edit-header {
  margin-bottom: 0;
}

.slide-edit-container {
  float: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
  width: 100%;
}

.slide-form .form-section {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}

.slide-form .form-section h3 {
  margin: 0 0 20px 0;
  color: #1B365D;
  border-bottom: 2px solid #2c5697;
  padding-bottom: 10px;
}

.slide-form .form-group {
  margin-bottom: 20px;
}

.slide-form .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1B365D;
}

.slide-form .form-group small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 5px;
  font-style: italic;
}

.slide-preview {
  position: sticky;
  top: 20px;
}

.slide-preview h3 {
  margin: 0 0 20px 0;
  color: #1B365D;
}

.preview-slide {
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  overflow: hidden;
}

.form-actions {
  text-align: center;
  padding: 20px 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .slide-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .slider-preview-section,
  .slide-edit-form {
    padding: 20px;
  }

  .slide-edit-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .slide-preview {
    position: static;
  }
}

/* === src/css/mobile-menu.css === */

