@import url(//fonts.googleapis.com/css?family=Montserrat:400|Raleway:300,400,600|Inconsolata|Pacifico);

p {
  text-align: justify;
  text-justify: inter-word;
}

#logo {
  display: flex;
  align-items: center;
  text-transform: initial;
}

#logo img {
  max-height: 64px;
  padding-right: 1rem;
}

@media screen and (max-width: 860px) {
  #titleBar .title {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #titleBar .title img {
    max-height: 32px;
    padding-right: 0.5rem;
  }
}

@media screen and (min-width: 840px) and (max-width: 1280px) {
  #titleBar .title,
  #logo img {
    padding-left: 1rem;
    padding-top: 6px;
  }

  #titleBar .title .logo-name,
  #logo .logo-name {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  #titleBar .title,
  #logo img {
    padding-left: 1rem;
    padding-top: 6px;
  }

  #titleBar .title .logo-name,
  #logo .logo-name {
    display: none;
  }
}

blockquote {
  margin: 0;
}

img.services {
  max-width: 128px;
  max-height: 128px;
}

.navbar-section.logo a {
  display: flex;
  align-items: center;
}

#footer .subcontainer {
  display: flex;
  justify-content: space-around;
}

#footer .subcontainer .informations h1 {
  font-size: 1rem;
  margin-top: 0;
}

#footer .subcontainer .informations .part {
  display: flex;
  flex-direction: row;
  margin-bottom: 1rem;
}

#footer .subcontainer .informations .part > i,
#footer .subcontainer .informations .part > svg {
  font-size: x-large;
  margin-right: 1rem !important;
}

#footer .subcontainer .informations .part > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#footer .logo img {
  max-height: 130px;
}

@media screen and (max-width: 860px) {
  #footer .subcontainer {
    flex-direction: column;
  }

  #footer .subcontainer .informations {
    justify-self: center;
  }
}

.modular-navitems .feature-icon {
  height: initial;
}

.modular-navitems .feature-icon h6 {
  text-transform: initial;
}

.weather .container .content {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

.wrapper.shortcuts .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.wrapper.shortcuts .container {
  padding-left: initial;
  padding-right: initial;
}

.shortcuts .container .shortcuts-item {
  border-radius: 50%;
  text-align: center;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 180px;
  width: 180px;
}

.shortcuts .container .shortcuts-item span {
  text-transform: initial;
  font-size: initial;
}

.shortcuts .container .shortcuts-item svg {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.shortcuts .shortcuts-item .button {
  width: 100%;
  height: 5rem;
  align-content: center;
}

@media screen and (max-width: 860px) {
  .shortcuts .shortcuts-item {
    width: 40%;
  }
}

.mess .content,
.stats .content {
  display: flex;
  overflow: auto;
  justify-content: space-around;
  flex-wrap: wrap;
}

.mess .button,
.stats .button {
  margin: 1rem;
}

@media screen and (max-width: 860px) {
  .mess .content {
    display: flex;
    overflow: initial;
    justify-content: initial;
    flex-direction: column;
  }
}

section h1 {
  font-size: xx-large;
}

.wrapper.style5.portals.cards .row,
.wrapper.style4.cards .content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.wrapper.style4.portals.cards {
  background-color: inherit;
  color: inherit;
}

.cards .fa,
.cards svg {
  min-width: 35px;
}

.cards .option {
  display: flex;
  align-items: center;
}

.cards .option.location .text {
  display: flex;
  flex-direction: column;
}

.cards .option.url .text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cards .option .text {
  text-align: left;
}

@media screen and (max-width: 860px) {
  .cards .row > * {
    padding-bottom: 2rem;
  }

  .cards .option {
    justify-content: center;
  }
}

a {
  color: inherit;
}

.presentation .items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.presentation .item {
  display: flex;
  padding-top: 1rem;
  flex-direction: column;
}

.presentation .item > * {
  padding: 1rem;
}

.presentation .item .main {
  display: flex;
}

.presentation .item img {
  display: block;
  max-height: 196px;
  height: auto;
  width: auto;
  padding-right: 1rem;
}

.presentation .item .title {
  margin-bottom: 0;
  font-size: larger;
}

.presentation .item .job {
  font-style: italic;
}

.presentation .item .description {
  padding-top: 1rem;
  text-align: justify;
}

@media screen and (min-width: 860px) {
  .presentation .item {
    width: 50%;
  }
}

img {
  max-width: 100%;
}

.reports .container ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
}

.reports .container ul li {
  padding: 1rem;
}

.reports .container ul a {
  display: flex;
  flex-direction: column;
}

.reports .container ul a svg {
  font-size: xxx-large;
  margin: 1rem;
}

/* Owl Carousel custom styles */
.owl-carousel {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.owl-carousel .owl-item img {
  display: block;
  width: 100%;
  height: 480px; /* Optional: force all images to same height */
  object-fit: cover; /* Crop images to fit the box */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s;
}

.owl-carousel .owl-item img:hover {
  transform: scale(1.03);
}

.owl-carousel .owl-nav {
  text-align: center;
  margin-top: 10px;
}

.owl-carousel .owl-nav button {
  background: #1976d2;
  color: #fff !important;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: 0 8px;
  font-size: 1.5rem;
  transition: background 0.2s;
}

.owl-carousel .owl-nav button:hover {
  background: #1565c0;
}

.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 12px;
}

.owl-carousel .owl-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 4px;
  transition: background 0.2s;
  border: none;
}

.owl-carousel .owl-dot.active,
.owl-carousel .owl-dot:hover {
  background: #1976d2;
}

.en-images .major {
  text-align: left;
}

.news .news-item a {
  text-decoration: none;
  display: flex;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}
.news .news-item a .news-item-image {
  flex: 0 0 120px;
  max-width: 120px;
  margin: 0 1rem 1rem 0;
}
.news .news-item a .news-item-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.news .news-item a .news-item-content {
  flex: 1;
}
.news .news-item a .news-item-content .date {
  margin: 0.5rem 0 0;
}
.news .news-item a .news-item-content .date,
.major .with-image .date {
  font-size: smaller;
}
.news.wrapper .container .content {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}
@media screen and (max-width: 860px) {
  .news.wrapper .container .content {
    flex-direction: column;
  }
}

.news.wrapper .container .content .news-item {
  max-width: 600px;
}
.news.wrapper .container .content .news-item a {
  border: none;
  flex-direction: column;
  align-items: center;
}
.news.wrapper .container .content .news-item .teaser {
  text-transform: none;
  text-align: left;
}
.news.wrapper .container .content .news-item .date {
  text-align: right;
}
.news.wrapper .container .link-to-all {
  margin-top: 1rem;
}

.major .with-image {
  display: flex;
  align-items: center;
}
.major .with-image img {
  max-width: 240px;
  height: auto;
  border-radius: 8px;
  margin: 0 2rem 2rem 0;
}
.major .with-image p {
  text-transform: none;
}

@media screen and (max-width: 860px) {
  .major .with-image {
    flex-direction: column;
    margin-bottom: 1rem;
  }
  .major .with-image img {
    margin-right: 0;
  }
  .major .with-image .date {
    text-align: right;
    display: block;
  }
}

/* Childcare & School hours table styling */
.custom-md-table {
  margin: 1.25rem 0;
  overflow-x: auto; /* allows horizontal scroll on small screens */
}
.custom-md-table table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  background: #fff;
}
.custom-md-table th,
.custom-md-table td {
  border: 1px solid #e9eef2;
  padding: 0.6rem 0.9rem;
  vertical-align: middle;
}
.custom-md-table td:first-child,
.custom-md-table thead th {
  background: #fafafa;
}
.custom-md-table td:first-child {
  width: 36%;
  text-align: left;
}
.custom-md-table td {
  text-align: center;
}

/* Compact on small screens */
@media (max-width: 640px) {
  .custom-md-table table {
    min-width: 320px;
  }
  .custom-md-table th,
  .custom-md-table td {
    padding: 0.5rem 0.7rem;
  }
  .custom-md-table th:first-child,
  .custom-md-table td:first-child {
    width: auto;
  }
}
