/*
Theme Name: FinLoan Bootstrap
Theme URI: https://example.com/
Author: You
Author URI: https://example.com/
Description: Современный адаптивный финансовый шаблон (займы, кредиты, вклады) на Bootstrap 5.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: finloan
*/

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f5f6f8;
    color: #222;
}

/* Общие отступы для контента */
.main-content {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

/* Шапка */
.site-header-top {
    background: #0d6efd;
    color: #fff;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.site-header-top a {
    color: #fff;
    text-decoration: none;
}

.site-header-top a:hover {
    text-decoration: underline;
}

.navbar-brand img {
    max-height: 42px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #fff;
}

.hero .lead {
    max-width: 620px;
}

/* Карточки продуктов */
.product-card {
    border-radius: 0.75rem;
    border: 1px solid #e1e4ea;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.2rem rgba(15, 23, 42, 0.12);
}

.product-card-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Карточки записей (loop) */
.post-card {
    border-radius: 0.75rem;
    border: 1px solid #e1e4ea;
    background: #fff;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card-body {
    padding: 1.25rem;
    flex: 1;
}

.post-card-meta {
    font-size: 0.8125rem;
    color: #6c757d;
}

/* Виджеты */
.widget {
    border-radius: 0.75rem;
    border: 1px solid #e1e4ea;
    background: #fff;
    padding: 1.25rem;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
}

/* Контент статьи */
.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Пагинация */
.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    margin: 0 0.15rem;
    border-radius: 9999px;
    border: 1px solid #dee2e6;
    text-decoration: none;
    font-size: 0.9rem;
}

.pagination .page-numbers.current {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Подвал */
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 2.5rem 0 1.5rem;
    font-size: 0.9rem;
}

.site-footer a {
    color: #e5e7eb;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer-bottom {
    border-top: 1px solid rgba(156, 163, 175, 0.35);
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.8rem;
}

/* Мелкая адаптивность */
@media (max-width: 767.98px) {
    .hero {
        text-align: center;
    }

    .hero .btn-group {
        justify-content: center;
    }
}
