/* Styling that only affects the landing page */
/* For styles that also affect other pages, see customstyles.css */

/* clear fixes */
/* idea is to not touch the docs part of the website, but start from a clear state */

h1[id], h2[id], h3[id], h4[id], h5[id], h6[id],
dt[id] {
padding-top: 0px;
margin-top: 0px
}
.card {
  margin-bottom: 0px;
}

/* general styles */

@media (max-width: 992px) {
  .card{
    margin-top: 10px;
  }
  img.col-12{
    margin-top: 20px;
  }
}
.section {
  padding-top: 70px;
  padding-bottom: 65px; /* +20px margin-bottom of .row */
}
.section-header {
  margin-bottom: 20px;
}
.row {
  margin-bottom: 20px;
}


/* Jumbotron */

.banner {
  margin-bottom: -20px; /* counter-balance .row margin */
  padding: 15px 0;
  color: #040606;
}


/* Stage */

h1.title {
  margin-top: 0px;
  color: #040606;
}
h2.subtitle {
  padding-top: 0px;
  margin-top: -5px;
  margin-bottom: 20px;
  font-weight: 400;
}
.action-button {
  margin-right: 4px;
  margin-bottom: 10px;
}
.action-button-container {
  margin-bottom: 20px;
}
#github-button #stargazers {
  font-size: 0.857142em;
  font-weight: 500;
}

/* USPs */

ul.usp {
  padding-inline-start: 1.75em;
  margin-bottom: 15px;
}
li.usp {
  margin-bottom: 0.5em;
}
div.card.usp {
  margin-bottom: 0;
  flex: 1 1 auto;
}
div.image-holder.usp {
  padding: 20px;
  flex: 0 1 150px;
}
div.image-holder.usp > img {
  height: 150px;
}

/* Adapter section */
/* adapter class also used for news in the landing page */
a.adapter {
  text-decoration: none;
}
a.adapter > .card.border-primary {
  border-color: rgba(10,118,187, .8);
}
a.adapter:hover > .card.border-primary {
  background-color: rgba(10,118,187, .08);
}
img.adapter {
  height: 125px;
  width: 125px;
  object-fit: contain;
  transition: all 400ms;
}
img.adapter:hover {
   transform: scale(1.10);
}
img.adapter.custom-logo{
  padding: 0;
}
.btn.adapter {
  margin: 20px 0;
}
.img-equivalent {
  height: 125px;
  width: 125px;
}
.adapter p {
  color: #040606;
  margin-top: 20px;
}
a.adapter {
  color: #040606;
}

/* Testimonials */

i.fa-quote-left{
  color: darkgrey;
  padding-right: 0.5em;
}
i.fa-quote-left, i.fa-quote-right {
  color: darkgrey;
  padding-left: 0.5em;
}
p.quote, p.quote > a, p.quote > a:visited {
  font-size: 19px;
  font-weight: 400;
  color: #333;
}
p.quote > a:hover,
p.quote > a:hover > i.fa-quote-left,
p.quote > a:hover > i.fa-quote-right  {
  color: black;
  text-decoration: none;
}
img.testimonial {
  border-radius: 50%;
  border: 1px solid #ddd;
  height: 100px;
  width: 100px;
  float: left;
  margin: 0 15px 0 0;
}
.full-height {
  flex: 1 1 auto;
}

/* Open source section */

.uni-logo {
  max-width: 100px;
}
.img-equivalent-uni-logo {
  height: 125px;
  width: 100px;
}
.github-link, .github-link:hover {
  color: #333;
  text-decoration: none;
}
.github-link p {
  padding-top: 1em;
}
/* see bookcover.css */
.literature-link {
  margin-top: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
  vertical-align: middle !important;
}

.next-steps-link {
  margin-top: 20px;
  margin-right: 10px;
  margin-bottom: 10px;
  vertical-align: middle !important;
}

/* preCICE support */

img.precice-support {
  max-height: 200px
}

/* Logowall */
.logowall-filter {
  margin-bottom: 26px;
}

.logowall-filter .filter-btn {
  margin: 4px;
  border: 1px solid #0A76BB;
  color: #0A76BB;
  background-color: #fff;
}

.logowall-filter .filter-btn:hover {
  background-color: #eaf4fb;
}

.logowall-filter .filter-btn.btn-primary,
.logowall-filter .filter-btn.active {
  border-color: #0A76BB;
  background-color: #0A76BB;
  color: #fff;
}

.logowall-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -4px;
  margin-right: -4px;
  margin-bottom: 50px;
}

.logo-item {
  transition: opacity 0.2s ease;
  float: none;
  width: 12.5%;
  max-width: 12.5%;
  flex: 0 0 12.5%;
  margin-bottom: 14px;
  padding-left: 3px;
  padding-right: 3px;
  text-align: center;
}

/* Center logo inside flex holder (vertical-align is display:flex without justify-content) */
.logo-item .logo-holder.vertical-align {
  justify-content: center;
}

.logo-item a.logo {
  display: block;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 767px) {
  .logowall-grid {
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo-item {
    width: 25%;
    max-width: 25%;
    flex: 0 0 25%;
    margin-bottom: 18px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .logo-item p.institution,
  .logo-item p.country {
    font-size: 0.78em;
    line-height: 1.28em;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  div.logo-holder {
    height: 48px;
  }

  div.logo-holder > img {
    max-height: 48px;
  }
}

@media (max-width: 480px) {
  .logowall-grid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .logo-item {
    margin-bottom: 20px;
    padding-left: 4px;
    padding-right: 4px;
  }

  div.logo-holder {
    height: 40px;
  }

  div.logo-holder > img {
    max-height: 40px;
  }

  .logo-item p.institution,
  .logo-item p.country {
    font-size: 0.72em;
    line-height: 1.28em;
    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

.logo, .logo > div, .logo > p {
  color: #333;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 200ms;
  padding: 0;
}
@media (max-width: 992px) {
   .logo, .logo > div, .logo > p {
      opacity: 1;
      filter: grayscale(0%);
    }
}
.logo > p {
  margin: 0;
  text-decoration: none;
}
.logo:hover, .logo:hover > div, .logo:hover > p {
  opacity: 1;
  filter: grayscale(0%);
  text-decoration: none;
}
.logo:hover > div {
  transform: scale(1.05);
}
p.institution {
  font-size: 0.85em;
  font-weight: 400;
  line-height: 1.22em;
  margin-top: 0.5em;
  text-align: center;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  hyphens: none;
}
p.country {
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1.22em;
  margin-bottom: 1em;
  text-align: center;
  overflow-wrap: normal;
  word-wrap: normal;
  word-break: normal;
  hyphens: none;
}
div.logo-holder {
  height: 80px;
}
div.logo-holder > img {
  max-height: 80px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest News Section */

#latest-news {
  background-color: #e6f2ff;
  padding: 70px 0;
}

#latest-news .section-header {
  margin-bottom: 40px;
  text-align: center;
}

#latest-news a.no-external-marker::after {
  content: none !important;
}

.news-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  flex: 1;
  width: 100%;
}

.news-card a.news-link {
  display: block;
  text-decoration: none;
  color: #040606;
}

.news-card a.news-link:hover {
  text-decoration: none;
  color: #040606;
}

.news-card h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #000;
}

.news-card p:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
}


#news-container {
  display: flex;
  gap: 25px;
}

#news-container .col-md-4 {
  flex: 1;
  display: flex;
}


@media (max-width: 768px) {
  #news-container {
    flex-wrap: wrap;         
  }
  #news-container .col-md-4 {
    flex: 1 1 100%;         
  }
}

/* Responsive title line-clamp for news cards */
@media (max-width: 992px) {
  .news-card h4 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 768px) {
  .news-card h4 {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}
