/*
 * Тема Maximum Education Хабаровск.
 * Загружается после news_merged.css и перекрашивает синюю палитру в
 * фирменную оранжевую, а также стилизует шапку с навигацией и подвал.
 */

:root {
    --mx-orange: #fd7e14;
    --mx-orange-dark: #e46b00;
    --mx-orange-light: #feae63;
    --mx-ink: #2e2e2e;
    --mx-muted: #6b7280;
    --mx-bg: #fffcf5;
}

body {
    background-color: var(--mx-bg);
    color: var(--mx-ink);
}

/* ---------- Шапка ---------- */
.header-block {
    background: linear-gradient(90deg, #fb9637 0%, var(--mx-orange) 100%);
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 14px 20px;
}

.header-block .logo img {
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    width: auto;
    height: 40px;
}

.header-block .title h2 {
    font-size: 22px;
}

.header-block .title p {
    opacity: .9;
}

/* Меню-навигация в шапке */
.header-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
    margin-right: 16px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background-color .15s ease;
}

.header-nav a:hover {
    background-color: rgba(255, 255, 255, .18);
}

.header-block .try_for_free {
    color: var(--mx-orange-dark);
    font-weight: 600;
    width: auto;
    padding: 0 22px;
    text-decoration: none;
}

.header-block .try_for_free:hover {
    background-color: #fff6eb;
}

/* ---------- Ссылки и хлебные крошки ---------- */
a { color: var(--mx-orange-dark); }

.breadcrumbs a:last-child { color: var(--mx-ink); }

.link_to_page { color: var(--mx-muted); }

/* ---------- Карточки статей ---------- */
.news_card a:hover h2,
.news_card a:hover h3 {
    color: var(--mx-orange-dark);
}

/* ---------- Фильтр по темам ---------- */
.themes .button {
    border-color: var(--mx-orange-light) !important;
    color: var(--mx-orange-dark) !important;
    background-color: transparent !important;
}

.themes .button.active,
.themes .button:hover {
    background-color: var(--mx-orange) !important;
    border-color: var(--mx-orange) !important;
    color: #fff !important;
}

/* ---------- Кнопки «ещё» / пагинация ---------- */
.more_news_button {
    background-color: var(--mx-orange) !important;
    color: #fff !important;
    border-radius: 12px;
}

.more_news_button:hover { background-color: var(--mx-orange-dark) !important; }
.more_news_button.disabled { background-color: #e5e0d6 !important; color: #fff !important; }

/* ---------- Боковой баннер ---------- */
.advertising .ad-banner {
    background-image: none;
    background: linear-gradient(160deg, #fb9637 0%, var(--mx-orange) 60%, var(--mx-orange-dark) 100%);
    height: auto;
    min-height: 360px;
    gap: 8px;
}

.advertising .ad-banner a {
    background: #fff;
    color: var(--mx-orange-dark);
    font-weight: 600;
    height: 60px;
}

.advertising .ad-banner a:hover { background: #fff6eb; }

/* ---------- Нижний баннер ---------- */
.content .banner {
    background-image: none !important;
    background: linear-gradient(90deg, #fb9637 0%, var(--mx-orange) 100%);
}

.content .banner a,
.link_to_telegram {
    color: var(--mx-orange-dark) !important;
    background-color: #fff !important;
}

/* ---------- Подвал ---------- */
.footer {
    background: var(--mx-ink);
    color: #e9e9e9;
    margin: 40px 10px 10px;
    border-radius: 15px;
    padding: 32px 24px;
}

.footer a { color: #ffd9b3; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer .footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer .footer-col { flex: 1 1 220px; min-width: 200px; }

.footer .footer-col h3 {
    color: var(--mx-orange-light);
    font-size: 16px;
    margin: 0 0 12px;
}

.footer .footer-col p,
.footer .footer-col a { font-size: 14px; line-height: 1.7; }

.footer .footer-phone {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.footer .footer-socials { display: flex; gap: 10px; margin-top: 10px; }

.footer .footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--mx-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.footer .footer-socials a:hover { background: var(--mx-orange-dark); text-decoration: none; }

.footer .footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
    color: #b8b8b8;
}

@media (max-width: 768px) {
    .header-nav { margin-right: 0; order: 3; width: 100%; }
    .header-block .try_for_free { order: 2; }
}
