* {
    transition: .3s ease-in-out;
    font-family: "Libre Baskerville";
}

body {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: rgb(43, 82, 27);
}

.inner a {
    color: #4c925c;
}

.inner a:hover {
    color: rgb(92, 92, 92);
}

a:hover {
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Libre Franklin";
}

img {
    max-width: 100%;
}

h1 {
    font-size: 80px;
}

h2 {
    font-size: 60px;
    text-align: center;
}

h3 {
    font-size: 30px;
}

.pre-h {
    font-weight: bold;
    text-align: center;
    color: #fc8063;
}

.space {
    margin: 50px 0;
}

.space-top {
    margin-top: 50px;
}

.button {
    font-family: "Libre Franklin";
    font-weight: bold;
}

header {
    background: url("../img/h-bg.png") no-repeat center bottom;
    background-size: 40%;
}

.top-line {
    display: flex;
    align-items: center;
    padding: 15px 30px;
}

.top-line li {
    display: inline-block;
}

.top-line a,
.on-hover {
    font-size: 20px;
    color: #0a4ea1;
}

.main-menu {
    width: 48%;
    text-align: right;
}

.main-menu>li {
    margin-right: 60px;
}

.main-menu li:last-child {
    margin-right: 0;
}

.main-menu a,
.main-menu li>div,
.on-hover,
.about-contact a {
    font-family: "Libre Franklin";
    font-weight: bold;
    border-bottom: 2px solid transparent;
    color: #000;
}

.main-menu a:hover,
.on-hover:hover,
.main-menu li>div {
    border-bottom: 2px solid #4c925c;
    color: #4c925c;
}

.about-contact {
    width: 40%;
    text-align: right;
}

.about-contact li a {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    transform: perspective(1px) translateZ(0);
    transition: .3s ease-in-out;
}

.about-contact li a:hover {
    color: #fff;
}

.about-contact li a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 108%;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    background-color: #fff;
    transform: scaleX(1);
    transform-origin: 50%;
    transition: .3s ease-in-out;
}

.about-contact li a:hover::before {
    transform: scaleX(0);
}

.about-contact li:first-child {
    background-color: #e1b959;
    border: 2px solid #e1b959;
}

.about-contact li:last-child {
    background-color: #c74334;
    border: 2px solid #c74334;
}

.site-name {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #000;
    text-align: center;
}

.site-name a {
    font-size: initial;
    color: initial;
}

.name {
    position: relative;
}

.name::before,
.name::after {
    content: "";
    position: absolute;
    top: 45%;
    width: 5px;
    height: 5px;
    background-color: #000;
    border-radius: 50%;
}

.name::before {
    left: -8%;
}

.name::after {
    right: -8%;
}

.on-hover {
    position: relative;
    cursor: pointer;
}

.on-hover:hover .hovered-menu {
    display: block;
}

.hovered-menu {
    display: none;
    position: absolute;
    left: -20px;
    padding-top: 10px;
    background-color: #333;
}

.hovered-menu li {
    border-right: none;
}

.hovered-menu a {
    display: inline-block;
    padding: 15px 30px;
    color: #fff;
}

.posts {
    display: flex;
    justify-content: space-between;
    padding: 30px;
}

.post {
    padding-right: 40px;
    border-right: 1px solid #e2e2e2;
}

.post:first-of-type {
    width: 25%;
}

.post:nth-of-type(2) {
    width: 50%;
}

.post:nth-of-type(2) img {
    display: block;
    width: 50%;
    margin: auto;
}

.post:last-of-type {
    width: 15%;
    padding-right: 0;
    border-right: none;
}

.post h2 {
    text-align: center;
}

.features {
    padding-top: 25px;
}

.f-table {
    margin: auto;
    background-color: #f6f2ef;
}

.f-table td {
    padding: 15px 15px;
    color: #000;
    font-weight: bold;
    font-size: 20px;
}

.f-table tr:nth-child(odd) {
    background-color: #fc8063;
}

.pre-table {
    text-align: center;
}

.video {
    text-align: center;
}

.articles {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.article {
    width: 50%;
    margin: 15px auto 0;
    padding: 25px;
    background-color: #f6f2ef;
    border-top: 1px solid #000;
}

.article:first-child {
    text-align: right;
}

.article:nth-child(2) {
    text-align: center;
}

.subscribe {
    width: 50%;
    margin: 30px auto;
    padding: 70px 50px;
    background-color: #fad97e;
    vertical-align: top;
}

button[type="submit"] {
    padding: 10px 30px;
    font-size: 20px;
    font-weight: bold;
    background-color: #fff;
    border: none;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #222;
    color: #fff;
}

footer {
    display: flex;
    justify-content: space-around;
    background-color: #4a5058;
    font-weight: bold;
    color: #eee;
}

.copyright {
    display: inline-block;
    margin-top: 15px;
}

.inner .content {
    width: 60%;
    margin: auto;
    padding-right: 25px;
}

.inner .content a {
    color: #fc8063;
}

.inner .content img {
    display: block;
    max-height: 475px;
    margin: auto;
}

.inner .content h1 {
    text-align: center;
}

.side {
    height: 100%;
    padding-left: 25px;
    border-left: 1px solid #e2e2e2;
}

.side-i {
    margin-top: 15px;
    padding: 10px;
    border: 2px solid #fc8063;
}

.main-form {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: auto;
}

.main-form label {
    margin-top: 15px;
}

.main-form input,
.main-form textarea {
    padding: 10px;
    font-size: 20px;
    border: 1px solid #000;
}

.main-form input:hover,
.main-form textarea:hover {
    border-color: #fff;
}

.main-form button {
    margin-top: 15px;
    background-color: #fad97e;
}

@media(max-width: 1400px) {
    .logo-inner::before,
    .logo-inner::after {
        width: 70%;
    }
}

@media(max-width: 1200px) {
    .subscribe {
        width: 85%;
    }
    .inner .content {
        width: 80%;
    }
}

.h-content {
    width: 55%;
    margin: auto;
    padding: 5% 0 15%;
    text-align: center;
}

.main-h,
.after-h {
    font-family: "Libre Franklin";
}

.main-h {
    font-size: 70px;
    font-weight: bold;
    color: #647587;
}

.after-h {
    margin-top: 20px;
    font-size: 24px;
    letter-spacing: 2px;
}

.con-blocks {
    display: flex;
}

.con-block {
    position: relative;
    width: 33%;
    padding: 40px 25px 80px;
    color: #fff;
}

.con-block .button {
    position: absolute;
    bottom: 8%;
    left: 38%;
    display: block;
    margin: 10px 0;
    padding: 10px 50px;
    background-color: #444;
    border: 1px solid transparent;
    text-align: center;
}

.con-block .button:hover {
    background-color: transparent;
    border: 1px solid #444;
    color: #444;
}

.con-block h3 {
    text-align: center;
}

.con-block:first-child {
    background-color: #4c925c;
}

.con-block:nth-child(2) {
    background-color: #e1b959;
}

.con-block:nth-child(3) {
    background-color: #c74334;
}

.con-block p {
    font-family: "Libre Franklin";
}

.hi {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 850px;
    padding: 0 20px;
    background: url("../img/library.jpg") no-repeat 50% 40%;
    background-size: cover;
    color: #fff;
}

.hi::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .4);
}

.hi h2,
.hi h1 {
    width: 70%;
    margin-right: 80px;
}

.hi .p-s {
    padding: 50px;
    background: #000;
}

.bits {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.bit {
    margin: 20px 100px 0 0;
    padding: 10px;
    text-align: center;
}

.bit:first-child {
    width: 15%;
    background-color: #000;
    color: #fff;
}

.bit:nth-child(2) {
    width: 25%;
    background-color: #e1b959;
}

.bit:nth-child(3) {
    width: 35%;
    background-color: #4c925c;
    color: #fff;
}

.bit:nth-child(4) {
    background-color: #c74334;
    color: #fff;
}

.bit:nth-child(5) {
    background-color: #eee;
}

.bit a {
    color: rgb(50, 126, 53);
}

.bit:nth-child(4),
.bit:nth-child(5) {
    width: 30%;
}

.bit:hover {
    transform: scale(1.2);
}

.hi.video {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    background-image: url("../img/library2.jpg");
}

.hi.video h2 {
    width: 100%;
    margin-right: 0;
}

.hi.video iframe {
    width: 100%;
    height: 450px;
    margin: auto;
}

.video .p-s {
    width: 60%;
    margin: auto;
}

footer {
    padding: 10px 0;
    background-color: #000;
}

.f-menu li {
    display: inline-block;
    margin-right: 15px;
}

.f-menu a {
    font: bold 20px "Libre Franklin";
    border-bottom: 2px solid transparent;
}

.f-menu a:hover {
    border-bottom-color: #fff;
}

.social {
    margin-top: 15px;
}

.social a i {
    padding: 10px;
    border: 2px solid;
}

.social a:first-child i:hover {
    border-color: #c74334;
    color: #c74334;
}

.social a:nth-child(2) i:hover {
    border-color: #4c925c;
    color: #4c925c;
}

.social a:last-child i:hover {
    border-color: #e1b959;
    color: #e1b959;
}

.social i {
    font-size: 30px;
}

.hi.about {
    background: url("../img/library3.jpg");
    background-size: cover;
}

.contact h1 {
    text-align: center;
}

.contact .bits {
    margin: 100px 0;
}

.contact .bit {
    width: 60%;
    margin-right: 0;
}

.hi.inner {
    display: block;
    padding: 40px;
}

.hi.inner::before {
    background-color: rgba(0, 0, 0, .85);
}

@media(max-width:1100px) {
    .bit {
        width: 25%!important;
    }
}