/* static/css/research.css */

.research-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
    color: #e0e0e0;
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    line-height: 1.8;
}

.research-post h1 {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.research-meta {
    font-family: 'Arial', sans-serif;
    color: #888;
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.research-meta span {
    color: #bf9b30;
}

.research-summary {
    background: #1a1a1a;
    border-left: 4px solid #bf9b30;
    padding: 20px 25px;
    margin-bottom: 40px;
    font-style: italic;
    font-size: 1.2rem;
}

.research-post h2 {
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
}

.research-figure {
    margin: 40px 0;
    text-align: center;
}

.research-figure img {
    max-width: 100%;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.research-figure figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}

.research-conclusion {
    background: rgba(191, 155, 48, 0.05);
    border: 1px solid rgba(191, 155, 48, 0.2);
    padding: 30px;
    border-radius: 8px;
    margin-top: 50px;
}
/* --- СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (СЕТКА КАРТОЧЕК) --- */

.research-journal-header {
    text-align: center;
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Эффект при наведении на саму карточку */
.article-card:hover {
    transform: translateY(-5px); /* Слегка приподнимается */
    border-color: #bf9b30; /* Золотая рамка */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* Глубокая тень */
}

.article-card-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Картинка плавно увеличивается при наведении */
.article-card:hover .article-card-image img {
    transform: scale(1.05); 
}

.article-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.article-card-tag {
    color: #bf9b30;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.article-card-date {
    color: #666;
    font-size: 0.8rem;
}

.article-card-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.article-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #bf9b30;
}

.article-card-excerpt {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.article-card-btn {
    color: #bf9b30;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.article-card-btn:hover {
    opacity: 0.8;
}