﻿/* global */
html{height: 100%;}

body
{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  padding: 0px;
  margin: 0px;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #f5f7fa;
}

p
{ margin: 0px;
  padding: 0px 0px 16px 0px;
  line-height: 1.8em;
  color: #444;
}

h1
{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 110%;
  letter-spacing: .05em;
  font-weight: 600;
  color: #2c3e6b;
}

h2
{ margin: 0px;
  padding: 0px 0px 4px 0px;
  font-size: 100%;
}

img{border: 0px;}

a{outline: none; transition: color 0.2s ease;}

/* image positioning - left, right and center */
.left
{ float: left; 
  padding: 0px 8px 0px 0px;
}

.right
{ float: right; 
  padding: 0px 0px 0px 8px;
}

.center
{ display: block;
  text-align: center;
  margin: 0 auto;
}

/* block quote */
blockquote
{ margin: 20px 0px 20px 0px; 
  padding: 12px 20px 4px 20px;
  border-left: 6px solid;
  border-radius: 0 6px 6px 0;
}

/* unordered list */
ul
{ margin: 8px 0px 0px 16px;
  padding: 0px;
}

ul li
{ list-style-type: disc;
  margin: 0px 0px 11px 0px; 
  padding: 0px;
  line-height: 1.8em;
}

/* ordered list */
ol
{ margin: 8px 0px 0px 24px;
  padding: 0px;
}

ol li
{ margin: 0px 0px 11px 0px; 
  padding: 0px;
  line-height: 1.8em;
}

/* margin lefts / margin rights - to centre content */
#main, #links, #footer, #logo, #menu, #content
{ margin-left: auto; 
  margin-right: auto;
}

/* main container */
#main{width: 100%; max-width: 1100px;}

/* links above the logo / footer */
#links, #footer
{ width: 100%;
  max-width: 1060px;
  height: 24px;
  font-size: 85%; 
  padding: 12px 21px 0px 19px;
  letter-spacing: 0.5px;
}

#links{text-align: right;}

#footer
{ text-align: center; 
  border-top: 1px solid #eee;
  padding-top: 16px;
  margin-top: 20px;
  color: #999;
}

#links a, #footer a{text-decoration: none;}

#links a:hover, #footer a:hover{text-decoration: underline;}

/* logo / banner */
#logo
{ width: 100%;
  max-width: 1060px;
  height: 280px;
  border-top: none;
  border-bottom: 3px solid #4a90d9;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#logo h1, #logo h2
{ margin: 0px;
  letter-spacing: .15em;
  position: relative;
  z-index: 2;
}

#logo h1
{ padding: 0px 0px 0px 32px;
  font-size: 220%;
  font-weight: 700;
}

#logo h2
{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  padding: 8px 0px 20px 32px;
  font-size: 110%;
  font-weight: 400;
}

/* navigation menu */
#menu
{ height: 46px;
  width: 100%;
  max-width: 1060px;
  margin-top: 0px;
  position: relative;
  background: #fff;
  border-bottom: 2px solid #4a90d9;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

#menu ul{margin: 0px auto; padding: 0; display: flex; align-items: center; height: 100%;} 

#menu li
{ float: left; 
  margin: 0px 2px 0px 0px; 
  padding: 0px;
  list-style: none;
  height: 100%;
  display: flex;
  align-items: center;
} 

#menu li a 
{ display: block; 
  float: left; 
  height: 100%;
  line-height: 46px;
  text-decoration: none; 
  padding: 0px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  border-radius: 0;
} 

/* main content */
#content
{ width: 100%;
  max-width: 1060px;
  overflow: hidden;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  min-height: 400px;
} 

/* column 1 - contains sidebar items */
#column1
{ width: 225px;
  margin: 22px 0px 0px 0px;
  float: right;
  padding: 19px 19px 15px 19px;
}

.sidebaritem
{ text-align: left;
  width: 200px;
  float: left;
  margin: 0px 0px 23px 0px;
  border: 1px solid #eee;
  padding: 14px 11px 14px 11px;
  border-radius: 6px;
}

.sidebaritem2
{ text-align: center;
  width: 200px;
  float: left;
  margin: 8px 0px 0px 0px;
  border: 1px solid #eee;
  padding: 14px 10px 14px 10px;
  border-radius: 6px;
}

.sidebaritem2 h1
{ margin: 0px; 
  font-weight: normal;
  padding: 0px 0px 16px 0px;
  
}

.sidebaritem2 p
{ line-height: 16px; 
  padding: 0px 0px 8px 0px;
}

.sidebaritem2 a, .sidebaritem a:hover
{ padding: 0px 0px 2px 19px;
  text-decoration: none;
}

.sidebaritem h1
{ margin: 0px; 
  font-weight: normal;
  padding: 0px 0px 16px 0px;
  
}

.sidebaritem p
{ line-height: 18px; 
  padding: 0px 0px 8px 0px;
}

.sidebaritem a, .sidebaritem a:hover
{ padding: 0px 0px 2px 19px;
  text-decoration: none;
}

.sbilinks{padding: 0px}

.sbilinks li 
{ margin: 0px; 
  float: left; 
  list-style: none; 
} 

.sbilinks li a , .sbilinks li a:hover
{ float: left; 
  height: 16px;
  text-decoration: none; 
  padding: 5px 0px 4px 19px;
  width: 249px;
} 

/* column 2 - page content */
#column2
{ text-align: justify;
  width: auto;
  float: none;
  padding: 24px 40px 30px 40px;
}

#column2 h1
{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  padding: 20px 0px 8px 0px; 
  margin: 0px 0px 16px 0px; 
  border-bottom: 2px solid #4a90d9;
  font-size: 130%;
  text-transform: none;
  font-weight: 600;
  color: #2c3e6b;
}

#column2 a, #column2 a:hover
{ padding: 0px 0px 2px 0px;
  text-decoration: none;
  border-bottom: 1px dashed;
}

#column2 a:hover{border-bottom: 1px solid;}

/* contact page - form layout */
form{margin-top: 0px;}

div.row
{ clear: both;
  width: 748px;
}

div.row span.formlabel 
{ float: left;
  width: 250px;
  text-align: left;
}

div.row span.forminput
{ float: right;
  text-align: right;
} 

div.spacer
{ clear: both;
  width: 180px;
}

input, textarea
{ width: 259px; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 100%;
  border: 1px solid #ddd;
  margin: 2px;
  border-radius: 4px;
  padding: 6px 10px;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus
{ border-color: #4a90d9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}

.submit
{ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 100%; 
  border: none;
  width: 80px;
  height: 34px;
  cursor: pointer;
  background: #4a90d9;
  color: #fff;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.submit:hover
{ background: #3a7bc8;
}