.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.news-card {
    background: var(--bg-secondary);
    border: 0.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 113, 227, 0.3);
    background: var(--bg-primary);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-card-content {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex: 1;
}

.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.news-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin: var(--spacing-2xl) 0;
    box-shadow: var(--shadow-lg);
}

.news-content {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.8;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.news-content h2,
.news-content h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.news-content p {
    margin-bottom: var(--spacing-md);
}

.news-content ul,
.news-content ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.news-content li {
    margin-bottom: var(--spacing-xs);
}

.comment-form {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 0.5px solid var(--border-color);
}

.comment-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 0.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    transform: translateY(-1px);
}

.comments-section {
    margin-top: var(--spacing-2xl);
}

.comment-item {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 0.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}
