/* Основные стили для секции */
.news-section {
    padding: 10px 0;
    background-color: #f4f7fa; /* Светлый фон */
}

.news-section .section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase; /* Преобразует заголовок в верхний регистр */
}

/* Контейнер для новостей */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Адаптивный подход */
    gap: 30px;
    padding: 0 20px;
}

/* Стили для карточек новостей */
.news-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Эффект при наведении */
.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Заголовок новости */
.news-item .news-title {
    font-size: 1.8rem;
    color: #6c63ff; /* Цвет для заголовков */
    margin-bottom: 10px;
    font-weight: bold;
}

/* Текст новости */
.news-item .news-content {
    font-size: 1rem;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.6;
    height: 90px; /* Устанавливаем высоту блока с текстом */
    overflow: hidden; /* Обрезаем текст */
}

/* Ссылка на полную статью */
.news-item .read-more {
    font-size: 1.1rem;
    color: #6c63ff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

/* При наведении на ссылку */
.news-item .read-more:hover {
    color: #4a4ae2;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr; /* Одна колонка для мобильных устройств */
    }
}

    .pagination-container {
        display: flex;
        justify-content: center;
        padding: 20px;
    }

    .pagination {
        display: flex;
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .page-link {
        display: inline-block;
        padding: 10px 15px;
        margin: 0 5px;
        background-color: #007bff;
        color: white;
        border-radius: 5px;
        text-decoration: none;
        text-align: center;
    }

    .page-link:hover {
        background-color: #0056b3;
    }

    .current-page {
        display: inline-block;
        padding: 10px 15px;
        margin: 0 5px;
        background-color: #f8f9fa;
        color: #007bff;
        border-radius: 5px;
    }

    .fas {
        font-size: 18px;
    }

.pagination-container {
    text-align: center;
    margin-top: 20px;
}

.pagination {
    display: inline-block;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 2px;
    border: 1px solid #ddd;
    color: #007bff;
    text-decoration: none;
    border-radius: 5px;
}

.page-link:hover {
    background-color: #007bff;
    color: white;
}

.current-page {
    font-weight: bold;
    margin: 0 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* Заголовок и меню */
.header {
    background-color: #333;
    color: white;
    padding: 20px 0;
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
}

.nav ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav ul li a:hover {
    text-decoration: underline;
}

/* Герой секция */
.hero {
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
}

/* Туристы */
.tours {
    padding: 50px 0;
    background-color: white;
}

.tours h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #333;
}

.tour-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.tour-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.tour-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.tour-card h3 {
    margin: 15px 0;
    color: #333;
}

.tour-card p {
    color: #777;
}

.tour-card button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.tour-card button:hover {
    background-color: #45a049;
}

.tour-card:hover {
    transform: translateY(-10px);
}

/* Футер */
.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tour-cards {
        flex-direction: column;
        align-items: center;
    }

    .tour-card {
        width: 80%;
        margin: 10px 0;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 20px;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* Заголовок и меню */
.header {
    background-color: #333;
    color: white;
    padding: 20px 0;
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
}

.nav ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.nav ul li a:hover {
    text-decoration: underline;
}

/* Герой секция */
.hero {
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
}

/* Туристы */
.tours {
    padding: 50px 0;
    background-color: white;
}

.tours h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #333;
}

.tour-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.tour-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.tour-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.tour-card h3 {
    margin: 15px 0;
    color: #333;
}

.tour-card p {
    color: #777;
}

.tour-card button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.tour-card button:hover {
    background-color: #45a049;
}

.tour-card:hover {
    transform: translateY(-10px);
}

/* Футер */
.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tour-cards {
        flex-direction: column;
        align-items: center;
    }

    .tour-card {
        width: 80%;
        margin: 10px 0;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 20px;
    }
}


/* Общие стили для карточек туров */
.tours {
    padding: 30px 0;
    background-color: #fff;
}

.tour-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.tour-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 30%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
    padding: 15px;
}

.tour-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.tour-card h3 {
    margin-top: 15px;
    color: #333;
    font-size: 22px;
}

.tour-card p {
    color: #777;
    font-size: 16px;
    margin: 10px 0;
}

.tour-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

.tour-btn:hover {
    background-color: #45a049;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .tour-cards {
        justify-content: center;
    }

    .tour-card {
        width: 80%;
        margin-bottom: 30px;
    }
}

 .card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }

        .pagination .page-link {
            color: #007bff;
        }

        .pagination .page-link:hover {
            background: #007bff;
            color: #fff;
        }