/* ===== CSS Variables ===== */
:root {
    --bashkir-red: #DC143C;
    --bashkir-blue: #1a1a2e;
    --bashkir-gold: #C9A961;
    --text-white: #ffffff;
}

/* ===== Основной контейнер ===== */
.mainbanner {
    background: linear-gradient(135deg, var(--bashkir-red), var(--bashkir-blue));
    color: var(--text-white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    min-height: 450px; /* Высота слайдера */
    display: flex;
    align-items: center;
	margin: 0 -30px;
}

/* Фоновый узор (замените URL на ваш файл орнамента) */
.mainbanner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/pattern-ornament.png'); 
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.mainbanner-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Слайд (Новость) ===== */
.mainbanner-item {
    display: none; /* Скрываем все слайды по умолчанию */
    animation: fadeIn 0.8s ease-out;
}

.mainbanner-item.active {
    display: block; /* Показываем только активный */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mainbanner-content {
    max-width: 800px;
}

/* Элементы внутри слайда */
.mainbanner-new {
    display: inline-block;
    background: var(--bashkir-red);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.4);
}

.mainbanner-date {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-weight: 500;
}

.mainbanner-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.mainbanner-title a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s;
}

.mainbanner-title a:hover {
    color: var(--bashkir-gold);
}

.mainbanner-intro {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
    max-width: 700px;
}

.mainbanner-readmore {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-white);
    text-decoration: none;
    border: 2px solid var(--text-white);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.mainbanner-readmore:hover {
    background: var(--text-white);
    color: var(--bashkir-red);
}

/* ===== Навигация ===== */
.mainbanner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(26, 26, 46, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.mainbanner-arrow:hover {
    background: var(--bashkir-red);
    border-color: var(--bashkir-red);
}

.mainbanner-prev { left: 20px; }
.mainbanner-next { right: 20px; }

.mainbanner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.mainbanner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.mainbanner-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .mainbanner { min-height: 350px; padding: 40px 0; }
    .mainbanner-title { font-size: 24px; }
    .mainbanner-intro { font-size: 14px; }
    .mainbanner-arrow { width: 36px; height: 36px; }
    .mainbanner-prev { left: 10px; }
    .mainbanner-next { right: 10px; }
}