@charset "UTF-8";

@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 200;
    src: local('Comfortaa'), url('fonts/Comfortaa-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 400;
    src: local('Comfortaa'), url('fonts/Comfortaa-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 700;
    src: local('Comfortaa'), url('fonts/Comfortaa-Bold.ttf') format('truetype');
}

html {
    font-size: 1.1rem;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

body {
    position: relative;
    margin: 0;
    padding: 0;
}

footer {
    height: 200px;
    background-color: rgba(68, 148, 74, 1);
    color: white;
    font-size: 0.9rem;
    margin-top: 50px;
}
.boxFooter {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px;
    border-bottom: 1px solid white;
}
.boxFooterYear {
    margin-top: 15px;
    text-align: center;
}

h1 {
    font-size: 1.4rem;
}
h2 {
    font-size: 1.2rem;
}

a {
    text-decoration: none;
    color: #333;
    transition: 0.2s;
    font-weight: 400;
}

.headerTop {
    height: 20px;
    background-color: #0A5F38;
}

.headerLogo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.headerLogoImg {
    width: 80px;
    height: 80px;
    background-image: url('logo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 1;
}
.headerLogoImg:hover {
    opacity: 0.8;
}

.headerLogoText {
    width: 200px;
    margin-left: 20px;
    font-weight: 700;
    color: #333;
    font-size: 0.9rem;
}
.headerLogoText span {
    display: block;
    font-weight: 200;
}

.headerMenu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    border-bottom: 1px solid #0A5F38;
    padding-bottom: 20px;
}
.headerMenu a {
    width: 150px;
    padding: 5px 0;
    display: inline-block;
    color: white;
    background-color: rgba(68, 148, 74, 1);
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}
.headerMenu a:hover {
    background-color: rgba(68, 148, 74, 0.8);
}

main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px;
}

.boxCrumbs {
    width: 100%;
}
.boxCrumbs a {
    font-size: 0.8rem;
    border-bottom: 1px dashed green;
}
.boxCrumbs a:hover {
    border-bottom: 1px solid green;
}

.boxPreviewNews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.boxPreviewNewsContain {
    width: 600px;
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 5px;
}
.boxPreviewNewsContainTop {
    display: flex;
}
.boxPreviewNewsContainPhoto {
    width: 70px;
    min-height: 70px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 5px;
}

.boxPreviewNewsContainTopRight {
    margin-left: 10px;
}
.boxPreviewNewsContainTitle {
    font-weight: 700;
}
.boxPreviewNewsContainDate {
    color: #333;
    font-size: 0.8rem;
    background-image: url('dateNews.svg');
    background-repeat: no-repeat;
    background-position: center left;
    background-size: 20px;
    padding: 0 0 0 25px;
}

.boxPreviewNewsContainAttached {
    display: flex;
    font-size: 0.8rem;
    background-image: url('attach.svg');
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
    padding: 0 0 0 25px;
    color: #333;
}
.boxPreviewNewsContainAttached a {
    border-bottom: 1px dashed #333;
}
.boxPreviewNewsContainAttached a:hover {
    border-bottom: 1px solid #333;
}

.boxPreviewNewsContainText {
    max-height: 150px;
    font-size: 0.9rem;
    overflow-y: auto;
    margin-top: 15px;
    padding-right: 10px;
    line-height: 1.7;
}
.boxPreviewNewsContainText a {
    border-bottom: 1px dashed #333;
}
.boxPreviewNewsContainText a:hover {
    border-bottom: 1px solid #333;
}

@media screen and (max-width: 500px) {
    h1 {font-size: 1rem;}
    h2 {font-size: 0.9rem;}

    .boxPreviewNewsContain {width: 100%;}
    .boxPreviewNewsContainTopRight {width: 255px;}
}