/* Основные стили */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* Шапка */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Секция статистики */
.stats-section {
    background-color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Секция новостей */
.news-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

.news-card {
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.news-img-container {
    height: 200px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Секция достижений */
.achievements-section {
    background-color: var(--light-color);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.achievement-card {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.achievement-img-container {
    height: 250px;
    overflow: hidden;
}

.achievement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.achievement-card:hover .achievement-img {
    transform: scale(1.05);
}

.achievement-content {
    padding: 1.5rem;
}

.achievement-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.achievement-student {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Страница Об авторе */
.about-section {
    padding: 3rem 0;
}

.profile-img-container {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
}

.qualification-item {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.qualification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Страница новостей */
.news-filter {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

.news-detail-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.news-detail-date {
    margin-left: 1rem;
    color: var(--secondary-color);
}

/* Админ-панель */
.admin-section {
    padding: 3rem 0;
}

.admin-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-table {
    width: 100%;
}

.admin-table th, .admin-table td {
    padding: 0.75rem;
}

.admin-action-btn {
    margin-right: 0.5rem;
}

/* Кнопки */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Подвал */
.footer {
    background-color: var(--dark-color);
}

.footer a {
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .news-card, .achievement-card {
        margin-bottom: 1.5rem;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .stat-item {
        margin-bottom: 1.5rem;
    }
}
