/* ===== ГЛОБАЛНИ СТИЛОВЕ ===== */
:root {
    --primary: #004a7c;       /* Основен син (железопътен) */
    --secondary: #e30613;     /* Акцентен червен (сигнален) */
    --dark: #1a2a36;          /* Тъмно сиво */
    --light: #f8f9fa;         /* Светъл фон */
    --text: #333;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background-color: #fff;
}

h1, h2, h3, h4, h5 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

/* ===== КАСТОМЕН ХЕДЪР ===== */
#header-wrap {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-branding {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.logo {
    max-height: 60px;
    width: auto;
    margin-right: 15px;
}

.site-title {
    color: white !important;
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-description {
    color: #cbd5e0 !important;
    font-size: 0.9rem;
    margin: 0;
}

#nav-main {
    background-color: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.1);
}

#nav-main ul li a {
    color: #fff !important;
    font-weight: 500;
    padding: 15px 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#nav-main ul li a:hover {
    background-color: var(--secondary);
    color: white !important;
}

/* ===== МОДЕРНИ КАРТИЧКИ ===== */
.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

/* ===== INDUSTRIAL BUTTONS ===== */
.button, button, input[type="submit"] {
    background-color: var(--primary);
    color: white !important;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,74,124,0.2);
}

.button:hover, button:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(227,6,19,0.25);
}

/* ===== СПЕЦИАЛНИ ЕЛЕМЕНТИ ЗА ЖЕЛЕЗОПЪТНИ СИСТЕМИ ===== */
.industrial-feature {
    background: linear-gradient(rgba(26,42,54,0.9), rgba(26,42,54,0.9)), url('pattern.png');
    color: white;
    padding: 60px 0;
    border-top: 3px solid var(--secondary);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.tech-specs {
    background-color: var(--light);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

/* ===== FOOTER ===== */
#footer {
    background-color: var(--dark);
    color: #cbd5e0;
    padding: 60px 0 30px;
}

.footer-widget .widget-title {
    color: white;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
    font-size: 1.2rem;
}

#footer a {
    color: #a0aec0;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--secondary);
    text-decoration: none;
}