body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

header::before {
    content: ""; /* Псевдоэлемент для наложения */
    position: absolute; /* Позиционирование */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2); /* Прозрачный черный фон */
    z-index: 1; /* Слой под заголовком */
}

.logo {
    position: absolute;
    top: 20px;
    z-index: 2;
}

.logo-image {
    width: 120px; /* Set width as required */
    height: auto;
}

.header-image {
    max-height: 100vh;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.social {
    position: absolute;
    z-index: 2;
    bottom: 20px;
}


.social img {
    width: 72px;
	height:72px;
	padding: 0 12px;
}

.follow {
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 26px;
    padding-bottom: 10px;
}

.overlay {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for centering */
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1; /* Ensure overlay is below h1 */
}

.overlay p {
    margin: 0;
    color: #333; /* Dark text for readability */
    font-size: 1.1em;
}

h1 {
    font-size: 72px;
    text-transform: uppercase;
    max-width: 1000px;
    font-weight: 900;
    color: white;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

main {
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

.intro, .importance, .blog-purpose {
    margin-bottom: 40px;
}

.popular-articles {
    max-width: 800px;
    margin: 20px auto; /* Center the block */
    padding: 20px;
    background-color: #fff; /* White background for the block */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.popular-articles h2 {
    text-align: center;
    color: #e67e22; /* Accent color */
    margin-bottom: 20px;
}

.article-row {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space out articles */
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.article {
    flex: 1 1 calc(20% - 20px); /* Default: 5 articles per row */
    text-align: center; /* Center text below images */
    margin: 0 10px; /* Margin between articles */
}

.thumbnail {
    width: 100%; /* Responsive image size */
    height: 90px; /* Maintain aspect ratio */
    max-width: 120px; /* Set max width for thumbnails */
    border-radius: 5px; /* Rounded corners for images */
}

.article p {
    margin-top: 10px; /* Space between image and title */
    color: #333; /* Text color */
    font-weight: bold; /* Bold text for titles */
    font-size: 16px;
}

h2 {
    color: #e67e22; /* Accent color */
    margin: 50px 0 20px;
    font-size: 36px;
}

h3 {
    color: #555;
}

p {
    line-height: 1.6;
    margin: 10px 0;
    font-size: 18px;
}

ul {
    line-height: 1.6 !important;
    margin: auto;
    text-align: left;
    display: inline-block;
}

li {
    padding: 5px 0;
    font-size: 18px;
}


footer {
    background-color: #fff;
    text-align: center;
    padding: 20px 0 50px;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #e0e0e0;
}

footer p {
    margin: 0;
}

.footer-article	{
background-color: #000000;
text-align: center;
padding: 20px 0;
width: 100%;
color: white;
}

a {
    color: #e67e22; /* Accent color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 768px) {
	header {
	height: 40vh;
	}
	
	.header-image {
    height: 40vh;
	}
	
    .article {
        flex: 1 1 calc(50% - 20px); /* 2 articles per row for mobile devices */
    }
    
    h1 {
        font-size: 26px; /* Adjust font size for mobile */
        padding: 0 15px; /* Add padding for mobile */
    }
    .logo-image {
    width: 70px; /* Adjust logo size for smaller screens */
    }
    ul {
    padding: 20px 15px;
    }
    h2 {
    font-size: 22px;
}
.thumbnail {
    max-width: 200px; /* Set max width for thumbnails */
    height: 120px;
}
.social {
    bottom: 10px;
}

.social img {
    width: 42px;
	height:42px;
	padding: 0 5px;
}

.follow {
    font-size: 16px;
    padding-bottom: 8px;
}
}

@media (max-width: 600px) {
	header {
	height: 40vh;
	}
	.header-image {
    height: 40vh;
	}

    .logo-image {
        width: 70px; /* Adjust logo size for smaller screens */
    }

    h1 {
    font-size: 26px;
    padding: 0 10px; /* Reduce padding for smaller screens */
    }
    ul {
    padding: 20px 15px;
    }
    h2 {
    font-size: 22px;
}
.thumbnail {
    max-width: 200px; /* Set max width for thumbnails */
    height: 120px;
}
.social {
    bottom: 10px;
}

.social img {
    width: 42px;
	height:42px;
	padding: 0 5px;
}

.follow {
    font-size: 16px;
    padding-bottom: 8px;
}
}

@media (max-width: 480px) {
	header {
	height: 40vh;
	}
	
	.header-image {
    height: 40vh;
	}
	
    .article {
        flex: 1 1 100%; /* 1 article per row for very small screens */
        margin: 0 0 20px 0; /* Adjust margin for single column layout */
    }

    h1 {
        font-size: 26px; /* Further reduce font size for very small screens */
        padding: 0 10px; /* Reduce padding for smaller screens */
    }
    .logo-image {
     width: 70px; /* Adjust logo size for smaller screens */
    }
    ul {
    padding: 20px 15px;
    }
    
    h2 {
    font-size: 22px;
}
.thumbnail {
    max-width: 200px; /* Set max width for thumbnails */
    height: 120px;
}
.social {
    bottom: 10px;
}

.social img {
    width: 42px;
	height:42px;
	padding: 0 5px;
}

.follow {
    font-size: 16px;
    padding-bottom: 8px;
}
}