/*

[Custom Stylesheet]
Project: Kontinent - Бюро путешествий
Author: Custom

*/

/* ===== Базовые стили ===== */
.bg-light-custom-color {
    background-color: #ffffff;
}

.section_title h2 {
    color: #393286;
    text-transform: uppercase;
}

.section_gap {
    padding: 20px 0;
}

.booking_table {
    min-height: 400px;
}

.bg-light {
    background-color: #ffffff;
}

.footer-area {
    background-color: #4a8fb2;
    color: #ffffff;
}

/* ===== Навигация и меню ===== */
.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
    color: #393386;
    font-weight: bold;
}

/* Основные стили навигации */
.navbar {
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-nav {
    gap: 0.2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    color: #333;
}

.nav-link:hover {
    background: rgba(57, 50, 134, 0.1);
    color: #393386 !important;
}

/* Активный пункт меню */
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link {
    color: #393386;
    font-weight: 600;
    background: rgba(57, 50, 134, 0.08);
}

/* Выпадающие меню */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    background: #fff;
}

.dropdown-item {
    font-size: 13px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    color: #333;
}

.dropdown-item:hover {
    background: rgba(57, 50, 134, 0.1);
    color: #393386;
    padding-left: 1.8rem;
}

/* Стрелка у выпадающих пунктов */
.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* ===== Быстрые ссылки (супер-компактный блок) ===== */
.quick-links-container {
    padding: 8px 0;
    text-align: center;
    background: #f5f5f5;
    margin-bottom: 15px;
}

.ctlnks {
    font-weight: 600;
    font-size: 12px;
    color: #393286;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin: 0;
    padding: 0 8px;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    border-right: 1px solid #ddd;
    line-height: 1.2;
}

.ctlnks:last-child {
    border-right: none;
}

.ctlnks:hover {
    color: #f3c300;
    text-decoration: none;
}

.country-flag {
    width: 20px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Первая строка ссылок */
.quick-links-container .row:first-child {
    margin-bottom: 5px;
}

.quick-links-container .row:first-child .ctlnks {
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    background: #393286;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 0 3px;
    border-right: none;
}

.quick-links-container .row:first-child .ctlnks:hover {
    background: #f3c300;
    color: #393286;
}

/* Вторая строка */
.quick-links-container .row:last-child .ctlnks {
    border-right: none;
    padding: 0 6px;
    font-size: 11px;
}

/* ===== Туры по России (баннеры) ===== */
.tour-rf-banner {
    height: 185px;
    width: auto;
    margin: 5px;
    transition: transform 0.3s ease;
}

.tour-rf-banner:hover {
    transform: scale(1.02);
}

.etlink {
    padding-bottom: 50px;
    text-align: right;
}

/* ===== Партнёры ===== */
.partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.partner-item {
    padding: 15px;
    text-align: center;
}

.partner-item a {
    display: block;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-item img:hover {
    transform: scale(1.05);
}

/* ===== Прочие стили ===== */
.btn-card-link {
    margin-top: 0%;
}

.card-tour {
    margin-bottom: 2%;
    padding-bottom: 2%;
}

.single-post {
    font-size: 16px;
}

.tcard-title {
    color: #393286;
}

/* ===== Адаптивность ===== */
@media (min-width: 1200px) {
    .nav-link {
        padding: 0.6rem 1.5rem !important;
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-nav {
        padding: 1rem 0;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
        background: transparent;
        margin-top: 0;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        color: #555;
    }
    
    .dropdown-item:hover {
        padding-left: 1.3rem;
        background: rgba(57, 50, 134, 0.05);
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .quick-links-container {
        padding: 5px 0;
    }
    
    .quick-links-container .row:first-child .ctlnks {
        font-size: 10px;
        padding: 3px 8px;
        margin: 0 2px;
    }
    
    .quick-links-container .row:last-child .ctlnks {
        font-size: 9px;
        padding: 0 4px;
    }
    
    .country-flag {
        width: 16px;
        height: 11px;
    }
    
    .tour-rf-banner {
        height: 100px;
        margin: 3px;
    }
    
    .partner-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .partner-item a {
        height: 120px;
    }
    
    .partner-item img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .quick-links-container .row:first-child .ctlnks {
        font-size: 9px;
        padding: 2px 6px;
        margin: 0 1px;
    }
    
    .quick-links-container .row:last-child .ctlnks {
        font-size: 8px;
        padding: 0 3px;
    }
    
    .country-flag {
        width: 14px;
        height: 10px;
    }
}

/* Бургер-меню иконка */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(57, 50, 134, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(57, 50, 134, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Баннеры акций и промо ===== */
.banner_bus_promo {
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    max-width: 50%;
    margin-left: 25%;
    margin-bottom: 5px;
    background-color: rgb(243, 195, 0);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.banner_bus_promo:hover {
    color: white;
    background-color: rgb(218, 178, 13);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Медиа-запрос для телефонов */
@media screen and (max-width: 767px) {
    .banner_bus_promo {
        max-width: 100%;
        padding: 15px;
        margin-left: 0%;
        font-size: 16px;
    }
}

/* Кнопка заказа постов */
.btn_order_posts {
    width: 50%;
    margin-left: 25%;
}

@media screen and (max-width: 767px) {
    .btn_order_posts {
        width: 100% !important;
        margin-left: 0%;
    }
}

/* ===== Карточки статей для архива ===== */
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.article-card-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

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

.article-card-meta {
    margin-bottom: 0.75rem;
}

.article-date {
    font-size: 0.8rem;
    color: #95a5a6;
}

.article-date i {
    margin-right: 4px;
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #e74c3c;
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 0;
}

.article-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #ecf0f1;
    background: #fafbfc;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid #393286;
    color: #393286;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #393286;
    border-color: #393286;
    color: #fff;
}

p {
    text-align: left !important;
}

img .country-flag{
    display:initial;
}