/* colors */

:root {
  --color-green1: #71a951;
  --color-green2: #628A15;
  --color-green3: #e3eedc;
  --color-green4: #d4e2cb;
  --color-green5: #cde5e1;
  --color-green6: #b1c58a;
  --color-red:    #990000;
  --color-white:  #fff;
  --color-text:   #666;

  --fs-body: 1.125rem;
  --fs-h1:   1.85rem;
  --fs-h2:   1.5rem;
  --fs-h3:   1.3rem;
  --fs-sm:   1.0rem;
}

/* webfonts */

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/roboto/roboto-v51-latin-300.woff2') format('woff2'),
       url('fonts/roboto/roboto-v51-latin-300.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/roboto/roboto-v51-latin-300italic.woff2') format('woff2'),
       url('fonts/roboto/roboto-v51-latin-300italic.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/roboto/roboto-v51-latin-regular.woff2') format('woff2'),
       url('fonts/roboto/roboto-v51-latin-regular.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/roboto/roboto-v51-latin-italic.woff2') format('woff2'),
       url('fonts/roboto/roboto-v51-latin-italic.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/roboto/roboto-v51-latin-500.woff2') format('woff2'),
       url('fonts/roboto/roboto-v51-latin-500.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/roboto/roboto-v51-latin-500italic.woff2') format('woff2'),
       url('fonts/roboto/roboto-v51-latin-500italic.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/roboto/roboto-v51-latin-700.woff2') format('woff2'),
       url('fonts/roboto/roboto-v51-latin-700.ttf') format('truetype');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/roboto/roboto-v51-latin-700italic.woff2') format('woff2'),
       url('fonts/roboto/roboto-v51-latin-700italic.ttf') format('truetype');
}

/* grid */

body {
  margin: 0;
  padding: 0;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-wrapper {
  padding-top: 10px;
  padding-bottom: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.site-header,
.main {
  margin-left: 10px;
  margin-right: 10px;
  padding-left: 25px;
  padding-right: 25px;
}

.site-footer {
  padding: 15px 25px;
}

.main {
  padding-top: 50px;
  padding-bottom: 50px;
  flex-grow: 1;
}

.main.home {
  height: 100%;
  padding: 0;
  margin-left: 0px;
  margin-right: 0px;
}

.main.home .home-inner {
  flex: 1; 
  width: 100%;
  height: 100%;
}

.text-page,
.team {
  width: 100%;
  max-width: 650px;
}

.col1,
.col2,
.col2-1,
.col2-2 {
  box-sizing: border-box;
}

@media screen and (min-width: 568px) {
  .site-wrapper {
    padding-top: 25px;
  }

  .site-header,
  .main {
    margin-left: 25px;
    margin-right: 25px;
  }
}

@media screen and (min-width: 768px) {
  .site-header,
  .main {
    display: flex;
  }

  .main {
    margin-top: 150px;
    padding-top: 50px;
  }

  .main.home {
    margin-top: 80px;
  }

  .site-wrapper {
    padding-top: 50px;
  }

  .col1 {
    flex: 0 0 185px; 
    padding-right: 25px;
  }

  .col2 {
    flex: 1; 
  }

  .col-center {
    width: 80%;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1024px) {
  .site-header,
  .main {
    padding-left: 40px;
    padding-right: 40px;
  }

  .col1 {
    flex: 0 0 210px; 
    padding-right: 20px;
  }

  .site-footer {
    margin-left: 250px;
  }
}

@media screen and (min-width: 1200px) {
  .col1 {
    flex: 0 0 260px; 
    padding-right: 40px;
  }

  .site-footer {
    margin-left: 300px;
  }
}

/* pages, elements */

body {
  background: var(--color-white);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-wrapper {
  position: relative;
  background: var(--color-green3);
}

.site-header {
  z-index: 1;
  background: var(--color-green1);
}

.site-header.header-home {
  background: rgba(113, 169, 81, 0.7);
}

.site-header .col1 {
  padding-top: 15px;
  padding-bottom: 10px;
}

.logo a {
  display: block;
  width: 140px;
  height: 130px;
  margin: 0 auto;
  background: url(../img/logo.svg) no-repeat;
  text-indent: -9999px;
}

.logo a:hover {
  opacity: 0.75;
}

.main {
  background: var(--color-green4);
}

.main.home {
  background: none;
}

.clear {
  clear: both;
}

.home .hidden-text {
  display: none;
}

.home .bg-img-wrapper {
  width: 100%;
  display: block;
  position: relative;
}

.home .bg-img {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding-top: 140px;
  padding-bottom: 80px;
}

.home .news {
  margin-left: 5px;
  margin-right: 5px;
}

.home .news-item a {
  display: block;
  margin: 0 5px;
  background: rgba(113, 169, 81, 0.7);
}

.home .news-item .inner {
  padding: 20px 25px;
}

.home .caption {
  background: var(--color-green3);
  padding: 10px 10px 0 10px;
}

.home .remark {
  padding: 10px 25px;
}

.home .remark p {
  margin-bottom: 0;
}

.text-page .img {
  margin-top: 30px;
}

.text-page .gallery {
  margin: 25px 0;
}

.text-page .gallery ul,
.fieldtrip .gallery ul {
  list-style: none;
  padding: 0;
}

.text-page figure {
  margin: 0 0 20px;
}

.text-page figure figcaption {
  margin: 5px 0 0 0;
}

.news-list .col1 {
  display: none;
}

.news-item-list,
.team-member:not(:last-child) {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-green2);
}

.news-item-list:first-child,
.team-member:first-child {
  padding-top: 0;
}

.news-item-list p:last-child,
.team-member p:last-child {
  margin: 0;
}

.team .image {
  margin: 0 auto 1em auto;
  width: 100%;
  max-width: 200px;
}

.download {
  background: var(--color-green5);
}

.download .image {
  margin: 0 auto 30px auto;
  width: 100%;
  max-width: 200px;
}

.fieldtrip .col2-1 {
  margin-bottom: 50px;
}

figure {
  margin: 0 0 20px 0;
  padding: 0;
}

figcaption {
  margin: 10px 0 0 0;
  padding: 0;
}

.fieldtrip-list article a {
  display: block;
  margin-bottom: 10px;
}

.fieldtrip-list img {
  width: 100%;
  height: auto;
}

.pagination {
  margin-top: 30px;
}

@media screen and (min-width: 568px) {
  .fieldtrip-list article a {
    margin-bottom: 25px;
    margin-left: 25px;
    margin-right: 25px;
  }

  .team .image {
    float: right;
    margin: 0 0 15px 30px;
  }
}

@media screen and (min-width: 768px) {
  .site-header {
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
  }

  .site-header .col1 {
    padding-top: 10px;
  }

  .home {
    position: relative;
  }

  .home .news {
    position: absolute;
    top: 140px;
    left: 0;
    right: 0;
    margin-left: 20px;
    margin-right: 20px;
    display: flex;
    align-items: stretch; 
  }

  .home .news-item {
    flex: 0 0 33.3%; 
    max-width: 280px;
    /* height: 100%; */
    /* float: left;
    width: 33.3%;
    max-width: 270px; */
  }

  .home .news-item a {
    display: block;
    height: 100%;
    min-height: 230px;
  }

  .home .news-item .subheader {
    min-height: 75px;
  }

  .home .caption {
    padding-left: 25px;
    padding-right: 25px;
  }

  .news-list .col1 {
    display: block;
  }
  
  .download-item {
    display: flex;
    flex-wrap: wrap;
  }

  .download-item .col2-1 {
    flex: 0 0 250px; 
  }

  .download-item .col2-2 {
    flex: 0 0 350px; 
  }

  .download article .image {
    margin-left: 0;
    margin-right: 0;
  }

  .fieldtrip-list .grid {
    display: flex;
    flex-wrap: wrap;
  }

  .fieldtrip-list .grid-item {
    width: 300px;
    height: 300px;
    margin: 0 6px 6px 0;
  }

  .fieldtrip-list article a {
    margin: 0;
    display: inline-block;
  }

  .fieldtrip-list .portrait,
  .fieldtrip-list .portrait img {
    width: auto;
    max-width: 260px;
    height: 100%;
    max-height: 260px;
  }

  .fieldtrip-list .landscape,
  .fieldtrip-list .landscape img {
    width: 100%;
    max-width: 260px;
    height: auto;
  }
}

@media screen and (min-width: 1024px) {
  .logo {
    padding: 0;
  }

  .home .news,
  .home .remark {
    margin-left: 195px;
  }

  .home .remark {
    display: block;
    position: absolute;
    padding-left: 30px;
    bottom: 65px;
    max-width: 400px;
    color: var(--color-white);
    font-weight: 400;
  }

  .team .image {
    max-width: 250px;
  }

  .download-item .col2-1 {
    flex: 0 0 335px; 
  }

  .download .image {
    max-width: 275px;
  }

  .fieldtrip {
    display: flex;
  }

  .fieldtrip .col2-1 {
    flex: 0 0 50%; 
    padding-right: 20px;
  }

  .fieldtrip .col2-2 {
    flex: 0 0 50%; 
    padding-left: 20px;
  }
}

@media screen and (min-width: 1150px) {
  .fieldtrip-list .portrait,
  .fieldtrip-list .portrait img {
    max-width: 400px;
    max-height: 400px;
  }

  .fieldtrip-list .landscape,
  .fieldtrip-list .landscape img {
    max-width: 400px;
  }
}

@media screen and (min-width: 1200px) {
  .fieldtrip .col2-1 {
    flex: 1; 
    max-width: 650px;
  }

  .fieldtrip .col2-2 {
    flex: 0 0 430px; 
  }
}

/* typography */

html, input, textarea {
  font-family: Roboto, sans-serif;
  color: var(--color-text);
  font-weight: 300;
}

html {
  font-size: 100%;
}

body, input, textarea {
  font-size: var(--fs-body);
  line-height: 1.5;
}

a {
  outline: none;
  color: var(--color-text);
  text-decoration: underline;
}

a:hover, a:active {
  text-decoration: none;
  color: var(--color-text);
}

.main-nav a {
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.4;
}

.main-nav a:hover, .main-nav a:active,
.main-nav a.active {
  color: var(--color-green3);
}

.sub-nav a {
  color: var(--color-green1);
  text-decoration: none;
}

.sub-nav a:hover, .sub-nav a:active {
  opacity: 0.75;
}

.sub-nav a.active {
  text-decoration: underline;
}

.sub-nav ul li:not(:last-child) {
  border-bottom: 1px solid var(--color-green2);
  padding: 5px 0;
}

.download .sub-nav ul {
  display: flex;
  flex-wrap: wrap;
}

.download .sub-nav ul li:not(:last-child) {
  border: 0;
  padding: 0;
}

.download .sub-nav a {
  display: block;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  padding: 2px 8px;
  background: var(--color-green1);
  color: var(--color-white);
  margin-right: 10px;
}

.download .sub-nav a.active, .download .sub-nav a:hover, .download .sub-nav a:active {
  opacity: 1;
  background: var(--color-green2);
  cursor: pointer;
}

.footer-nav a {
  font-weight: 500;
  color: var(--color-green1);
  text-decoration: none;
}

.footer-nav a:hover, .footer-nav a:active {
  opacity: 0.75;
}

.img-nav a {
  color: var(--color-white);
}

.home .news-item a,
.home .news-item a h3 {
  color: var(--color-white);
}

.home .news-item a {
  text-decoration: none;
  background: rgba(113, 169, 81, 0.7);
}

.home .news-item a:hover, .home .news-item a:active {
  background: var(--color-green1);
}

.news-item-list a {
  color: var(--color-green1);
}

.news-item-list h3 {
  color: var(--color-text);
  margin-bottom: -10px;
}

.news-item-list h2 {
  font-weight: 500;
}

.download a.file {
  display: block;
  padding: 5px 0;
  border-bottom: 2px solid var(--color-green1);
  color: var(--color-green1);
  text-decoration: none;
  font-weight: 400;
}

.download a.file:hover, .download a.file:active {
  opacity: 0.75;
}

a.button {
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  padding: 4px 20px;
  background: var(--color-green1);
  color: var(--color-white);
}

a.button:hover {
  background: var(--color-green2);
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-green1);
  font-weight: 400;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 0.75em;
}

h1:not(:first-child), h2:not(:first-child), h3:not(:first-child), h4:not(:first-child), h5:not(:first-child), h6:not(:first-child) {
  margin-top: 0.75em;
}

h1 {
  font-size: var(--fs-h1)
}

h2 {
  font-size: var(--fs-h2);
}

h3, h4, h5, h6 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 0.5em 0;
}

.home .caption p {
  margin: 0;
}

.home .caption {
  font-size: var(--fs-sm);
  line-height: 1.35;
}

.site-footer {
  font-size: var(--fs-sm);
  line-height: 1.35;
}

.sub-nav {
  font-weight: 400;
  line-height: 1.35;
}

.news-list h1,
.team h1 {
  border-bottom: 1px solid var(--color-green2);
  margin-bottom: 30px;
  padding-bottom: 5px;
}

.news-item .subheader {
  font-size: var(--fs-h2);
  line-height: 1.3;
  font-weight: 400;
}

.news-item h3 {
  font-size: var(--fs-h2);
  line-height: 1.3;
  font-weight: 300;
  margin: 0;
}

.fieldtrip-list article {
  font-size: var(--fs-h2);
  line-height: 1.35;
  font-weight: 400;
}

figcaption {
  color: var(--color-green1);
  font-size: var(--fs-sm);
  line-height: 1.35;
}

.download h1 {
  font-size: var(--fs-h2);
  line-height: 1.35;
}

.text-page .date {
  font-weight: 400;
}

.error-text {
  color: var(--color-red);
}

form .error-text {
  font-style: 90%;
}

.success-text {
  border: 2px solid var(--color-green6);
  border-radius: 3px;
  padding: 10px 15px;
  color: var(--color-green1);
  display: inline-block;
}

/* navigation */

nav ul, nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav {
  margin-left: -25px;
  margin-right: -25px;
}

.main-nav a.nav-button {
  background: url(../img/menu-icon.svg) no-repeat 25px 8px;
  background-size: 18px;
  padding-left: 50px;
}

.main-nav ul,
.main-nav a.nav-button {
  border-top: 1px solid var(--color-green4);
}

.main-nav li {
  border-bottom: 1px solid var(--color-green4);
}

.main-nav a {
  display: block;
  padding: 5px 25px;
}

.sub-nav {
  margin-top: -25px;
  margin-bottom: 40px;
}

.sub-nav li {
  margin-bottom: 5px;
}

.footer-nav li {
  display: inline-block;
  margin-right: 15px;
}

.img-nav a {
  display: block;
  position: relative;
}

.img-nav a .overlay {
  opacity: 0;
}

.img-nav a:hover .overlay {
  opacity: 1;
}

.img-nav .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(113, 169, 81, 0.7);
  text-align: left;
}

.img-nav .overlay span {
  display: block;
  margin: 20px 40px;
}

@media screen and (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    box-sizing: border-box;
  }

  .main-nav ul {
    border: 0;
  }

  .main-nav li {
    display: inline-block;
    margin-right: 15px;
    border: 0;
  }

  .main-nav a {
    margin: 5px 0;
    padding: 0;
    border-bottom: 1.5px solid transparent;
  }

  .main-nav a:hover, .main-nav a:active,
  .main-nav a.active {
    color: var(--color-white);
    border-color: var(--color-white);
  }

  .sub-nav {
    margin-top: 0;
  }
}

/* contact form */

.contact-form {
  margin-top: 3em;
}

.contact-form form {
  margin-top: 1.5em;
}

.contact-form label {
  display: block;
}

.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  border: 1px solid var(--color-green1);
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--color-green3);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.contact-form textarea {
  height: 200px;
}

.contact-form input[type=submit] {
  border: 0;
  border-radius: 4px;
  padding: 4px 25px;
  background: var(--color-green1);
  color: var(--color-white);
}

.contact-form input[type=submit]:hover {
  background: var(--color-green2);
  cursor: pointer;
}

.contact-form .form-error {
  color: var(--color-red);
  font-size: var(--fs-sm);
  margin-top: 5px;
}

.contact-form .field {
  margin-bottom: 10px;
}

.uniform__potty {
  position: absolute;
  left: -9999px;
}

/* bx-slider */

.bx-wrapper {
  position: relative;
  margin-bottom: 60px;
  padding: 0;
  *zoom: 1;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
}

.bx-wrapper img {
  max-width: 100%;
  display: block;
}

.bxslider {
  margin: 0;
  padding: 0;
}

ul.bxslider {
  list-style: none;
}

.bx-viewport {
  -webkit-transform: translatez(0);
}

.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
  position: absolute;
  bottom: -30px;
  width: 100%;
}

.bx-wrapper .bx-loading {
  min-height: 50px;
  background: url("images/bx_loader.gif") center center no-repeat var(--color-white);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2000;
}

.bx-wrapper .bx-pager {
  text-align: center;
  font-size: .85em;
  font-family: Arial;
  font-weight: bold;
  color: var(--color-green3);
  padding-top: 20px;
}

.bx-wrapper .bx-pager.bx-default-pager a {
  background: var(--color-green4);
  text-indent: -9999px;
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  outline: 0;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active,
.bx-wrapper .bx-pager.bx-default-pager a:focus {
  background: var(--color-green1);
}

.bx-wrapper .bx-pager-item,
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
  display: inline-block;
  vertical-align: bottom;
  *zoom: 1;
  *display: inline;
}

.bx-wrapper .bx-pager-item {
  font-size: 0;
  line-height: 0;
}

.bx-wrapper .bx-prev {
  left: 10px;
  background: url("images/controls.png") no-repeat 0 -32px;
}

.bx-wrapper .bx-prev:hover,
.bx-wrapper .bx-prev:focus {
  background-position: 0 0;
}

.bx-wrapper .bx-next {
  right: 10px;
  background: url("images/controls.png") no-repeat -43px -32px;
}

.bx-wrapper .bx-next:hover,
.bx-wrapper .bx-next:focus {
  background-position: -43px 0;
}

.bx-wrapper .bx-controls-direction a {
  position: absolute;
  top: 50%;
  margin-top: -16px;
  outline: 0;
  width: 32px;
  height: 32px;
  text-indent: -9999px;
  z-index: 9999;
}

.bx-wrapper .bx-controls-direction a.disabled {
  display: none;
}
