/* CSS для головної сторінки сайту G_UA Alliance */

/* Hero секція */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
    white-space: nowrap;
}

.hero-title span {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(41, 98, 227, 0.5);
}

.animated-text {
    display: block;
    position: relative;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

.accent-title {
    font-size: 74px;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(41, 98, 227, 0.5);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.8s;
}

.accent-title::after {
    content: 'G_UA';
    position: absolute;
    left: 0;
    top: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(41, 98, 227, 0.4);
    z-index: -1;
    filter: blur(8px);
    animation: pulse-text 3s infinite alternate;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 1.1s;
}

.hero-description p {
    margin-bottom: var(--space-sm);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 1.4s;
}

.hero-media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tank-model-container {
    position: relative;
    width: 500px;
    height: 500px;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s forwards 1.5s;
}

.tank-model {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: floatAnimation 6s ease-in-out infinite;
}

.parallax-tank {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.glow-effect {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateZ(-50px);
    width: 80%;
    height: 40px;
    background: var(--primary);
    filter: blur(25px);
    opacity: 0.4;
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0;
    animation: fadeIn 1s forwards 2s, bounce 2s infinite 2s;
}

.scroll-indicator i {
    font-size: 20px;
    color: var(--primary);
}

/* Секція статистики */
.stats-section {
    padding: var(--space-2xl) 0;
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-card {
    background: rgba(26, 26, 26, 0.5);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    font-family: 'Exo 2', sans-serif;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.stat-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 64px;
    opacity: 0.1;
    color: var(--primary);
    pointer-events: none;
}

/* Секція попереднього перегляду про нас */
.about-preview-section {
    padding: var(--space-3xl) 0;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-media {
    position: relative;
}

.media-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.media-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.media-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.media-card:hover img {
    transform: scale(1.05);
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.media-card:hover .media-overlay {
    opacity: 1;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: var(--radius-full);
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.media-card:hover .play-button {
    transform: scale(1.1);
    box-shadow: var(--glow-primary), var(--shadow-xl);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow-primary);
}

.feature-content h3 {
    font-size: 18px;
    margin-bottom: var(--space-xs);
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.about-actions {
    margin-top: var(--space-xl);
}

/* Секція попереднього перегляду кланів */
.clans-preview-section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    position: relative;
}

/* Контейнер слайдера повинен мати фіксовану ширину та маскувати вміст */
.clans-preview-slider {
    position: relative;
    margin-bottom: var(--space-2xl);
    margin-top: 20px; /* Додаємо відступ зверху */
    max-width: 100%;
    overflow: hidden;
}

/* Контейнер для карток з горизонтальною прокруткою */
.clans-slider-container {
    display: flex;
    gap: var(--space-lg);
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: var(--space-md);
    padding-top: 20px; /* Додаємо відступ зверху для карток */
}

/* Картки кланів */
.clan-card {
    flex: 0 0 calc((100% - var(--space-lg) * 2) / 3); /* Точно 3 картки в рядку */
    min-width: 280px;
    background: rgba(26, 26, 26, 0.5);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.clan-card:hover {
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(41, 98, 227, 0.3);
    transform: translateY(-10px);
}

.clan-card.featured-clan {
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(41, 98, 227, 0.3);
}

.clan-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clan-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 16px;
    border: 2px solid var(--primary);
}

.clan-title h3 {
    font-size: 20px;
    margin-bottom: 0;
}

.clan-type {
    display: inline-block;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(41, 98, 227, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-top: var(--space-xs);
}

.clan-content {
    padding: var(--space-md);
}

.clan-content p {
    color: var(--text-secondary);
    font-size: 14px;
    min-height: 60px;
}

.clan-stats {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-md);
}

.clan-stat {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.stat-name {
    font-size: 12px;
    color: var(--text-secondary);
}

.clan-footer {
    padding: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.slider-arrow:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    gap: var(--space-xs);
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.slider-dots .dot.active {
    background: var(--primary);
    width: 20px;
}

.section-footer {
    text-align: center;
    margin-top: var(--space-xl);
}

/* Медіа-запити для адаптивності */
@media (max-width: 992px) {
    .clan-card {
        flex: 0 0 calc((100% - var(--space-lg)) / 2); /* 2 картки в ряд */
    }
}

@media (max-width: 576px) {
    .clan-card {
        flex: 0 0 100%; /* 1 картка в ряд */
    }
}


/* Секція подій */
.events-section {
    padding-top: 120px; /* Відступ від header */
    padding-bottom: var(--space-3xl);
}

/* Якщо events-section не перша (після hero), зменшуємо відступ */
.hero-section + .events-section,
section + .events-section {
    padding-top: var(--space-3xl);
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.timeline-event {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: rgba(26, 26, 26, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.timeline-event:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Активні події (зараз) - червоний акцент */
.timeline-event--active {
    border: 1px solid rgba(41, 98, 227, 0.3);
    background: rgba(41, 98, 227, 0.05);
}

.timeline-event--active:hover {
    border: 1px solid rgba(41, 98, 227, 0.5);
    box-shadow: 0 10px 30px rgba(41, 98, 227, 0.2);
}

.timeline-event--active .event-date {
    border: 2px solid var(--primary);
    background: rgba(41, 98, 227, 0.1);
}

/* Майбутні події - синій/фіолетовий відтінок */
.timeline-event--upcoming {
    border: 1px solid rgba(103, 58, 183, 0.2);
    background: rgba(103, 58, 183, 0.03);
}

.timeline-event--upcoming:hover {
    border: 1px solid rgba(103, 58, 183, 0.4);
    box-shadow: 0 10px 30px rgba(103, 58, 183, 0.15);
}

.timeline-event--upcoming .event-date {
    border: 2px solid #673ab7;
    background: rgba(103, 58, 183, 0.08);
}

.timeline-event--upcoming .date-day {
    color: #9575cd;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-width: 80px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    border: 1px solid var(--primary);
}

.date-day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
}

.date-month {
    font-size: 14px;
    color: var(--text-secondary);
}

.event-content {
    flex-grow: 1;
    min-width: 0;
}

.event-category {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.event-category.tournament {
    background: rgba(41, 98, 227, 0.2);
    color: var(--primary);
}

.event-category.training {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.event-category.community {
    background: rgba(3, 169, 244, 0.2);
    color: var(--info);
}

.event-title {
    font-size: 18px;
    margin-bottom: var(--space-xs);
}

.event-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.event-time {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.event-time-left {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: var(--space-xs);
    padding: 8px 12px;
    background: rgba(41, 98, 227, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.event-time-left i {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Ярлики статусу подій */
.event-status-badge {
    display: inline-block;
    padding: 4px 12px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 10px;
}

/* "Зараз" - червоний */
.event-status-badge--active {
    background: linear-gradient(135deg, #2962E3, #5080ff);
    box-shadow: 0 0 15px rgba(41, 98, 227, 0.5);
    animation: pulse-badge-red 2s ease-in-out infinite;
}

/* "Скоро" - фіолетовий */
.event-status-badge--upcoming {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.5);
    animation: pulse-badge-purple 2s ease-in-out infinite;
}

/* Анімація для червоного ярлика "Зараз" */
@keyframes pulse-badge-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(41, 98, 227, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(41, 98, 227, 0);
    }
}

/* Анімація для фіолетового ярлика "Скоро" */
@keyframes pulse-badge-purple {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(156, 39, 176, 0);
    }
}

/* CTA секція */
.cta-section {
    padding: var(--space-3xl) 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), var(--gradient-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(41, 98, 227, 0.3) 0%, transparent 70%);
    animation: pulse-opacity 3s infinite alternate;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.cta-title {
    font-size: 32px;
    margin-bottom: var(--space-md);
}

.cta-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: var(--space-lg);
}

.cta-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cta-feature i {
    color: var(--primary);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
}

.emblems-showcase {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.emblem-item {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.emblem-item:nth-child(1) {
    top: 10%;
    left: 10%;
    animation: floating 3s ease-in-out infinite;
}

.emblem-item:nth-child(2) {
    top: 10%;
    right: 10%;
    animation: floating 4s ease-in-out infinite;
}

.emblem-item:nth-child(3) {
    bottom: 10%;
    left: 10%;
    animation: floating 5s ease-in-out infinite 1s;
}

.emblem-item:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation: floating 3.5s ease-in-out infinite 0.5s;
}

.center-emblem {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 2;
    border: 3px solid var(--primary);
    box-shadow: var(--glow-primary), var(--shadow-xl);
}

.floating-emblem {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-emblem {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pulse-emblem {
    animation: pulse-scale 3s infinite alternate;
}

/* Анімації */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes glowPulse {
    0% { opacity: 0.2; width: 70%; }
    50% { opacity: 0.5; width: 80%; }
    100% { opacity: 0.2; width: 70%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

@keyframes pulse-text {
    0% { filter: blur(8px); transform: scale(1.05); }
    100% { filter: blur(12px); transform: scale(1.1); }
}

@keyframes pulse-opacity {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes floating {
    0% { transform: translate(0, 0); }
    50% { transform: translate(0, 15px); }
    100% { transform: translate(0, 0); }
}

@keyframes pulse-scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Адаптивність */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 42px;
    }
    
    .accent-title {
        font-size: 64px;
    }
    
    .tank-model-container {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: unset;
        padding-top: 120px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: var(--space-2xl);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .accent-title {
        font-size: 54px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .tank-model-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content-grid {
        grid-template-columns: 1fr;
    }
    
    .about-media {
        order: 1;
        margin-bottom: var(--space-xl);
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-features {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .accent-title {
        font-size: 48px;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto var(--space-sm);
    }
    
    .timeline-event {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        margin-bottom: var(--space-sm);
    }
    
    .cta-features {
        grid-template-columns: 1fr;
    }
    
    .cta-feature {
        justify-content: center;
    }
    
    .emblems-showcase {
        width: 250px;
        height: 250px;
    }
    
    .emblem-item {
        width: 60px;
        height: 60px;
    }
    
    .center-emblem {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    
    .accent-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .tank-model-container {
        width: 250px;
        height: 250px;
    }
}

/* ========================================
   WoT News Slider
   ======================================== */

.news-slider-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 28px;
}

.news-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.news-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.news-slide-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #2962E3;
}

.news-slide-loading i {
    font-size: 48px;
}

.news-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-banner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    position: relative;
    transition: transform 0.3s ease;
}

.news-banner:hover {
    transform: scale(1.02);
}

.news-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.news-banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.news-banner-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.news-banner-date {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-banner-date i {
    color: #2962E3;
}

/* Стрілки навігації */
.news-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(41, 98, 227, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.news-slider-arrow:hover {
    background: rgba(41, 98, 227, 1);
    transform: translateY(-50%) scale(1.1);
}

.news-prev {
    left: 20px;
}

.news-next {
    right: 20px;
}

/* Точки навігації */
.news-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.news-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.news-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.news-error {
    text-align: center;
    padding: 60px 20px;
    color: #2962E3;
    font-size: 18px;
}

/* Адаптивність */
@media (max-width: 1200px) {
    .news-slider {
        height: 400px;
    }

    .news-banner-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .news-slider-wrapper {
        margin-top: 20px;
    }

    .news-slider {
        height: 350px;
        border-radius: 12px;
    }

    .news-banner {
        padding: 30px 20px;
    }

    .news-banner-title {
        font-size: 24px;
    }

    .news-banner-date {
        font-size: 14px;
    }

    .news-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .news-prev {
        left: 10px;
    }

    .news-next {
        right: 10px;
    }

    .news-slider-dots {
        bottom: 15px;
    }

    .news-dot {
        width: 10px;
        height: 10px;
    }

    .news-dot.active {
        width: 25px;
    }
}
