* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
        /*overflow: hidden;*/

}


.btn {
    display: inline-block;
    background-color: #FFC857;
    color: #284139;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.partn_h3 {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.partners {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.btn-flex {
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;

}


/*--------------*/

.cptui-recent-posts{
    display: flex;


flex-wrap: wrap;
    align-items:center;
    justify-content:center;
}

.recent-post-item{
    width: 500px;
    height: 300px;
    background-color: gray;
    margin: 20px;
    
    display:flex;
    flex-direction: row;
    align-items:stretch;
}

.post-image {
    width: 250px;
    height: 300px;
    background-color: #D0D0D0;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background-color: #f0f0f0;
}
.post-content{
    width: 250px;
    height: 100%;
}

.post-date{
    background-color: #E0E0E0;
    width: 100%;
    height: 70px;
    
    display:flex;
    align-items:center;
    justify-content: flex-start;
    
}

.post-date p {
    margin-left:10px;
    font-size: 16px
}
.post-title h2 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    padding-left: 10px;
    padding-right: 10px;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.4;
    
    max-height: calc(3 * 1.4em);
    word-wrap: break-word;
}

.post-title a {
    width:fit-content;
    margin-left: 10px;
}

.post-title {
    background-color: #E0E0E0;
    width: 100%;
    height: 230px;
    
    display: flex;
    flex-direction: column;
   justify-content: space-around;
    
}

.news-title h1 {
    font-size: 36px;
    color: #284139;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

/* Стилі для сторінки новини */
/* Стилі для сторінки новини */
.news-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.news-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.3;
}

.news-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta span::before {
    content: "•";
    margin-right: 5px;
    color: #3498db;
}

.news-meta span:first-child::before {
    content: "";
    margin-right: 0;
}

.news-featured-image {
    margin: 40px 0;
    text-align: center;
}

.news-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.news-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 50px;
}

.news-content p {
    margin-bottom: 1.8em;
}

.news-content h2 {
    color: #2c3e50;
    margin: 2em 0 1em 0;
    font-size: 2rem;
}

.news-content h3 {
    color: #2c3e50;
    margin: 1.5em 0 0.8em 0;
    font-size: 1.6rem;
}

.news-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: #7f8c8d;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

.news-content ul,
.news-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.news-content li {
    margin-bottom: 0.5em;
}

.news-additional-info {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 40px 0;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.news-tags a {
    background-color: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.news-tags a:hover {
    background-color: #2980b9;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 40px 0;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.nav-previous,
.nav-next {
    font-weight: bold;
}

.nav-previous a,
.nav-next a {
    color: #3498db;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #2980b9;
}

.news-comments {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}