/* Общий стиль */
body {
    font-family: 'Fira Sans', sans-serif;
    background-color: #000000;
    color: #E0E0E0;
    margin: 0;
    padding: 0;
}

body::-webkit-scrollbar {
    display: none; 
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF6F61;
}

.text-decoration {
    color: #2f2f2f;
}

.text-decoration:hover {
    color: #2f2f2f;
    cursor: default;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

button, .btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 40px; /* Увеличена высота для мобильных */
    background-color: rgba(18, 18, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content a img {
    width: 20px;
}

#page-name {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.menu-toggle {
    display: none; /* Скрыто на десктопах */
    background: none;
    border: none;
    color: #E0E0E0;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.nav-menu {
    flex-grow: 1;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    color: #E0E0E0;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007BFF;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Одна строка на десктопах */
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.social-link img {
    vertical-align: middle;
}

.social-link:hover {
    transform: scale(1.1);
}

.groups {
    margin: 0 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Header */
    header {
        height: 60px;
    }

    .header {
        padding: 0 10px;
    }

    .header-content {
        justify-content: space-between; /* Логотип слева, бургер справа на мобильных */
        width: 100%;
        margin: 0 10px;
    }

    .header-content a img {
        width: 30px;
    }

    .menu-toggle {
        display: block; /* Показываем кнопку меню */
    }

    .nav-menu {
        display: none; /* Скрываем меню по умолчанию */
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.9);
        padding: 20px 0;
    }

    .nav-menu.active {
        display: block; /* Показываем при активации */
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #page-name {
        display: block;
        text-align: center;
    }

    .logo {
        margin-right: 0; /* Убираем отступ на мобильных */
    }

    /* Footer */
    .footer-content {
        flex-direction: column; /* Столбец на мобильных */
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
        min-width: 100%;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
}

h1 {
    text-align: center;
}

/* Слайдер новостей */
.news-section {
    padding-top: 40px;
}

.news-container {
    position: relative;
    overflow: hidden;
}

.news-slider {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    transition: transform 0.3s ease;
    overflow-x: auto;
}

.news-slider::-webkit-scrollbar {
    display: none;
}

.news-card {
    background-color: #181818;
    border: 1px solid #222222;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px;
    flex: 0 0 auto; /* Фиксированная ширина */
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.news-title {
    margin: 15px 20px 10px;
    font-size: 18px;
    font-weight: bold;
}

.news-description {
    margin: 0 20px 15px;
    font-size: 14px;
    color: #A0A0A0;
}

.read-more {
    display: inline-block;
    padding: 8px 15px;
    margin-left: auto;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.read-more:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Кнопки для листания */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.slider-button.prev {
    left: 10px;
}

.slider-button.next {
    right: 10px;
}

/* Индикатор загрузки */
#loading-indicator img {
    width: 50px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, #121212);
    z-index: -1;
    animation: pulse 5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.case-card, .card, button, a, .modal-card-close, .volunteer-card {
    -webkit-tap-highlight-color: transparent;
}