/* Стили для страницы новостей */

.news-section {
    padding: 120px 0 80px;
    min-height: calc(100vh - 70px);
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы фона в стиле проекта */
.news-section .decor {
    position: absolute;
    width: 450px;
    height: 450px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
    overflow: hidden;
}

/* Левая сторона - 4 элемента в шахматном порядке, видны на 50% */
.news-section .decor-left-top {
    background-image: url('../main_img/project.webp');
    top: 8%;
    left: -225px;
    transform: rotate(90deg);
}

.news-section .decor-left-middle {
    background-image: url('../main_img/project.webp');
    top: 28%;
    left: -225px;
}

.news-section .decor-left-top-2 {
    background-image: url('../main_img/project.webp');
    top: 48%;
    left: -225px;
    transform: rotate(-90deg);
}

.news-section .decor-left-bottom {
    background-image: url('../main_img/project.webp');
    top: 68%;
    left: -225px;
}

/* Правая сторона - 4 элемента в шахматном порядке (смещены относительно левых), видны на 50% */
.news-section .decor-right-top {
    background-image: url('../main_img/project.webp');
    top: 18%;
    right: -225px;
}

.news-section .decor-right-middle {
    background-image: url('../main_img/project.webp');
    top: 38%;
    right: -225px;
    transform: rotate(90deg);
}

.news-section .decor-right-middle-2 {
    background-image: url('../main_img/project.webp');
    top: 58%;
    right: -225px;
    transform: rotate(-90deg);
}

.news-section .decor-right-bottom {
    background-image: url('../main_img/project.webp');
    top: 78%;
    right: -225px;
}


.news-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-section .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* Блоки по месяцам */
.news-month-block {
    position: relative;
}

.news-month-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.news-month-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--gradient-primary);
}

.news-month-title i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.news-month-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
    position: relative;
    overflow: visible;
}

.news-card-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--secondary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.news-card:hover .news-card-accent {
    opacity: 0.6;
}

.news-card:last-child {
    border-bottom: none;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 8px;
}

.news-image {
    width: 200px;
    min-width: 200px;
    height: 150px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    margin-left: 10px;
}

.news-card:hover .news-image {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.news-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.news-card:hover .news-image-overlay {
    opacity: 1;
}

.news-image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--secondary-color), rgba(212, 175, 55, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.85rem;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.news-card:hover .news-image-badge {
    opacity: 1;
    transform: scale(1);
    animation: badgeBounce 0.5s ease-out;
}

/* Логотип как основное изображение новости */
.news-image-logo-container {
    background: linear-gradient(135deg, rgba(26, 29, 41, 0.95), rgba(37, 41, 54, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-logo-container .news-image-overlay {
    display: none;
}

.news-image-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    transition: all 0.3s ease;
}

.news-card:hover .news-image-logo {
    transform: scale(1.05);
}

.news-logo-icon {
    width: 40px;
    height: 40px;
    color: var(--secondary-color);
    stroke: var(--secondary-color);
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
    transition: all 0.3s ease;
}

.news-card:hover .news-logo-icon {
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.5));
}

.news-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    gap: 2px;
}

.news-logo-top {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.news-card:hover .news-logo-top {
    text-shadow: 0 2px 12px rgba(212, 175, 55, 0.5);
}

.news-logo-building {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.news-card:hover .news-logo-building {
    text-shadow: 0 2px 12px rgba(212, 175, 55, 0.5);
}

@keyframes badgeBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

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

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

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    z-index: 1;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.news-date i {
    color: var(--secondary-color);
}

.news-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.news-link,
.news-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
}

.news-link:hover,
.news-toggle-btn:hover {
    color: var(--primary-color);
    gap: 12px;
}

.news-link i,
.news-toggle-btn i {
    transition: transform 0.3s ease;
}

.news-link:hover i {
    transform: translateX(5px);
}

.news-toggle-btn.active i {
    transform: rotate(180deg);
}

.news-full-text {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    margin-top: 0;
    display: block !important;
}

.news-full-text.show {
    max-height: 1000px !important;
    opacity: 1 !important;
    padding-top: 15px !important;
    margin-top: 15px !important;
    border-top: 1px solid var(--border-color) !important;
}

.news-full-text p {
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-section {
        padding: 100px 0 60px;
    }

    .news-section .decor {
        opacity: 0.08;
    }

    .news-grid {
        gap: 30px;
    }

    .news-month-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .news-month-title i {
        font-size: 1.3rem;
    }

    .news-month-content {
        gap: 20px;
    }

    .news-card {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        align-items: stretch;
        border-radius: 12px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
    }

    .news-card:hover {
        padding: 20px;
        margin-left: 0;
        margin-right: 0;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .news-card:last-child {
        border-bottom: 1px solid var(--border-color);
    }

    .news-image {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 200px;
        margin-left: 0;
        border-radius: 8px;
    }

    .news-content {
        width: 100%;
        padding: 0;
    }

    .news-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .news-excerpt {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .news-toggle-btn {
        min-height: 44px;
        min-width: 120px;
        padding: 10px 0 !important;
        display: inline-flex !important;
        pointer-events: auto !important;
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .news-section .section-title {
        font-size: 1.8rem;
    }

    .news-section .decor {
        display: none;
    }

    .news-section .section-subtitle {
        font-size: 1rem;
    }

    .news-grid {
        gap: 25px;
    }

    .news-month-title {
        font-size: 1.3rem;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .news-month-title i {
        font-size: 1.1rem;
    }

    .news-month-content {
        gap: 15px;
    }

    .news-card {
        padding: 15px;
        gap: 12px;
        align-items: stretch;
        border-radius: 10px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
    }

    .news-card:hover {
        padding: 15px;
        margin-left: 0;
        margin-right: 0;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .news-card:last-child {
        border-bottom: 1px solid var(--border-color);
    }

    .news-image {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 180px;
        margin-left: 0;
        border-radius: 8px;
    }

    .news-content {
        width: 100%;
        padding: 0;
    }

    .news-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .news-excerpt {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .news-toggle-btn {
        min-height: 44px;
        min-width: 120px;
        padding: 12px 0 !important;
        display: inline-flex !important;
        pointer-events: auto !important;
        align-self: flex-start;
    }
}

/* Убираем анимации появления для быстрой загрузки */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

