* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #f9f9f9;
  box-sizing: border-box;
  color: #000;
  font: 400 16px 'Open Sans', sans-serif;
  min-height: 100%;
  padding-bottom: 62px;
  position: relative;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 1em;
}

h2 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.5em;
  margin: 1em 0 0.25em;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
  background-image: url("../images/bg.png");
  background-size: auto 100%;
  padding: 20px 20px 100px;
  text-align: center;
}

.section {
  margin: 80px auto;
  max-width: 1600px;
  padding: 0 20px;
}

header + .section-wrapper .section { margin-top: -100px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.grid-item {
  background-color: #fff;
  border: 1px solid #d1d1d1;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  color: #000;
  padding: 40px;
  transition: 200ms;
  text-align: center;
  text-decoration: none;
}

.grid-item:hover {
  border-bottom: 10px solid #8a181a;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: -10px;
  padding-bottom: 30px;
}

.grid-item p { color: #616161; }

footer {
  padding: 20px;
  position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
  text-align: center;
}

/* ==========================================================================
   Content
   ========================================================================== */

.content {
  margin: 100px auto;
  max-width: 1600px;
  padding: 0 20px;
}

.content a { color: #ec2a2f;}

.content h3 { margin-bottom: 1em; }

.content ul:not(.breadcrumbs):not(.pagination) { line-height: 1.6em; }

.content ul:not(.breadcrumbs):not(.pagination) li { margin-left: 1em; }

.form-row {
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.form-field { flex: 1 1 0; }

input,
select,
textarea {
  background-color: #fff;
  border: 1px solid #d1d1d1;
  box-sizing: border-box;
  font: 400 16px 'Open Sans', sans-serif;
  padding: 8px 10px;
  width: 100%;
}

input[type="file"]::file-selector-button {
  border: none;
  border-right: 1px solid #d1d1d1;
  margin: -8px 10px -8px -10px;
  padding: 10px;
  vertical-align: center;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.button {
  background-color: #8a181a;
  border: none;
  border-radius: 5px;
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  font: 400 16px 'Open Sans', sans-serif;
  padding: 12px 30px;
  text-decoration: none;
  transition: 300ms;
}

.button:hover { background-color: #ec2a2f; }

table {
  background-color: #fff;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border-top: 1px solid #d1d1d1;
  border-bottom: 1px solid #d1d1d1;
  padding: 10px 20px;
  transition: 300ms;
}

th {
  background-color: #e6e6e6;
  font-weight: 600;
  text-align: left;
}

table:not(.calendar) tr:hover > td { background-color: #f6f6f6; }

.table-header { margin-bottom: 20px; }

.table-header .search { max-width: 300px; }

.table-footer {
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  margin-top: 20px;
}

.pagination {
  display: flex;
  flex-flow: row nowrap;
  list-style: none;
}

.pagination a {
  background-color: #fff;
  border: 1px solid #d1d1d1;
  border-left: 0;
  color: #000;
  cursor: pointer;
  display: block;
  padding: 8px 12px;
  text-decoration: none;
}

.pagination li:first-child a { border-left: 1px solid #d1d1d1; }

.pagination li.active a {
  background-color: #ec2a2f;
  color: #fff;
}

.breadcrumbs {
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
  list-style: none;
  margin-bottom: 30px;
}

hr {
  background-color: #d1d1d1;
  border: none;
  height: 1px;
  margin: 2em 0;
}

table.calendar {
  table-layout: fixed;
}

table.calendar td {
  border: 1px solid #d1d1d1;
}

table.calendar td > div {
  aspect-ratio: 1 / 1;
  width: 100%;
}

table.calendar .date { text-align: right; }

table.calendar .date.prev { color: #999; }

table.calendar th { text-align: center;}

table.calendar .button { padding: 10px 20px;}

table.calendar .button-group .button {
  font-size: 40px;
  height: 24px;
  line-height: 12px;
  padding: 6px 12px;
  vertical-align: top;
}

@media only screen  
and (max-width : 479px) {

img { max-width: 100%; }

.grid { grid-template-columns: auto; }

}