/* --- RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    line-height: 1.5;
    display: flex;
    flex-direction: column; /* Выстраиваем шапку, контент и футер вертикально в колонку */
    min-height: 150vh;      /* Минимальная высота — во весь экран */
}

/* --- THE RAIL (ALIGNMENT) --- */
.container {
    max-width: 1000px; /* Fixed width for the content "rail" */
    margin: 0 auto;    /* Centers the rail on the screen */
    padding: 0 15px;   /* Small gap so text doesn't touch screen edges */
    width: 100%;
}

/* --- HEADER --- */
.header-white {
    padding: 30px 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.brand-blue {
    color: #008eb0;
}

.brand-green {
    color: #2e7d32; /* Зелёный цвет, аналогичный оттенку в шайбе/логотипе */
}

/* --- NAV BAR --- */
.nav-black {
    background-color: #1a1a1a;
    width: 100%; /* Stretches the black bar across the whole screen */
}

.nav-list {
    display: flex;
    list-style: none;
    flex-wrap: nowrap; /* Keeps everything on one line */
}

.nav-list li {
    border-right: 1px solid #333;
}

.nav-list li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap; /* Prevents text from wrapping inside buttons */
}

.nav-list li a:hover {
    background-color: #2a2a2a;
}

/* --- CONTENT --- */
.main-content {
	flex: 1;
    padding-top: 40px;
}

.post-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #222;
}

.post-meta {
    background: #f4f4f4;
    padding: 10px 15px;
    font-size: 12px;
    border-top: 3px solid #008eb0;
    margin-bottom: 25px;
    color: #666;
}

.sep { margin: 0 10px; }

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px; /* Уменьшили отступ, чтобы кнопка ближе стояла */
}

/* --- FEATURED BUTTON --- */
.featured-button-container {
    display: flex;
    justify-content: center; /* Центрирование по центру */
    margin-bottom: 30px;
}

.btn-green {
    display: inline-block;
    background-color: #66DED0; /* Зелёный цвет (как у надписи) */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    padding: 14px 28px;
    border: none;
    border-radius: 0; /* Квадратная кнопка (без скругления) */
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.btn-green:hover {
    background-color: #5D948E; /* Чуть темнее при наведении */
}

.post-description {
    padding: 20px 0;
    font-size: 16px;
}

.post-description a {
    color: #008eb0;
    text-decoration: none;
}
/* Styling for specific blog sections */
.post-section {
    margin-top: 50px;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.post-description p {
    margin-bottom: 20px;
}
/* --- FOOTER --- */
.footer-black {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 40px;
}

.newsletter-brand h3 {
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 1px;
}

.newsletter-text p {
    font-family: serif;
    font-style: italic;
    font-size: 14px;
    color: #ccc;
    max-width: 200px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    background-color: #ccc;
    border: none;
    padding: 10px 15px;
    width: 250px;
    font-size: 14px;
    color: #333;
}

.newsletter-form button {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 0 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #888;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-text p {
        max-width: 100%;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-form input {
        flex: 1;
    }
}