/* ============================================
   News Page Styles - Новости
   ============================================ */

.news-page {
    background-color: #fff;
    min-height: 100vh;
}

.news-hero {
    background: linear-gradient(135deg, #fdf6f2, #ffffff);
    border-bottom: 1px solid #f0e7e1;
}

.news-hero .t-overline {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #8a2b18;
    margin-bottom: 18px;
}

.news-list-section {
    background-color: #fff;
}

.news-list-section .t-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.news-headline {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.news-headline .section-title {
    margin-bottom: 16px;
    font-size: 34px;
    line-height: 1.2;
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #666;
    line-height: 1.5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-feed-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-feed-row {
    border-bottom: 1px solid #f0e7e1;
    padding-bottom: 32px;
}

.news-feed-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-feed-row__link {
    display: grid;
    grid-template-columns: 320px 1fr 60px;
    gap: 32px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.news-feed-row__image {
    padding-bottom: 65%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    background-color: #f5f5f5;
    min-height: 200px;
    position: relative;
}

.news-feed-row__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-feed-row__date {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a2b18;
}

.news-feed-row__title {
    font-family: 'Matthias Extended', 'Montserrat', sans-serif;
    font-size: 24px;
    margin: 0;
    color: #2b2b2b;
}

.news-feed-row__excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.news-feed-row__arrow {
    font-size: 32px;
    color: #8a2b18;
    font-family: 'Matthias Extended', 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.news-feed-row__link:hover .news-feed-row__arrow {
    transform: translateX(6px);
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card__image {
    position: relative;
    padding-bottom: 60%;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.news-card__content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card__date {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #8a2b18;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}

.news-card__title {
    font-family: 'Matthias Extended', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #3a3a3a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.news-card__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
    display: block;
}

.news-card__more {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #8a2b18;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
}

.news-card:hover .news-card__more {
    text-decoration: underline;
}

.news-pagination {
    margin-top: 48px;
    width: 100%;
}

/* Переопределение стандартных стилей Laravel пагинации */
.news-pagination nav {
    width: 100%;
}

/* Контейнер десктопной версии */
.news-pagination nav > div[class*="hidden"][class*="sm:flex"] {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Мобильная версия (скрыта на больших экранах) */
.news-pagination nav > div[class*="sm:hidden"] {
    display: none !important;
}

/* Текст "Showing X to Y of Z results" */
.news-pagination nav p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

.news-pagination nav p span[class*="font-medium"] {
    font-weight: 600;
    color: #3a3a3a;
}

/* Контейнер с кнопками пагинации */
.news-pagination nav span[class*="inline-flex"][class*="z-0"] {
    display: inline-flex !important;
    align-items: stretch !important;
    gap: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
}

/* Все кнопки и ссылки пагинации */
.news-pagination nav span[class*="inline-flex"],
.news-pagination nav a[class*="inline-flex"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #3a3a3a;
    text-decoration: none;
    background-color: #ffffff;
    border: none;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;
    line-height: 1;
    vertical-align: middle;
}

/* Кнопка Previous (слева) */
.news-pagination nav span[class*="rounded-l-md"] {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-right: 1px solid #e0e0e0 !important;
}

/* Кнопка Next (справа) */
.news-pagination nav a[class*="rounded-r-md"] {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: 1px solid #e0e0e0 !important;
}

/* Номера страниц */
.news-pagination nav a[class*="-ml-px"] {
    margin-left: 0 !important;
    border-left: 1px solid #e0e0e0 !important;
    border-right: 1px solid #e0e0e0 !important;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
}

/* Активная страница */
.news-pagination nav span[aria-current="page"] span {
    background-color: #8a2b18 !important;
    color: #ffffff !important;
    border-color: #8a2b18 !important;
    cursor: default;
    border-left: 1px solid #8a2b18 !important;
    border-right: 1px solid #8a2b18 !important;
}

.news-pagination nav span[class*="cursor-default"] {
    background-color: #8a2b18 !important;
    color: #ffffff !important;
    border-color: #8a2b18 !important;
    cursor: default;
    border-left: 1px solid #8a2b18 !important;
    border-right: 1px solid #8a2b18 !important;
}

/* Неактивная кнопка (disabled) */
.news-pagination nav span[aria-disabled="true"] span {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    border-color: #e0e0e0 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Hover для ссылок */
.news-pagination nav a[class*="inline-flex"]:hover {
    background-color: #f8f8f8 !important;
    color: #8a2b18 !important;
}

/* Иконки в кнопках */
.news-pagination nav svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Мобильная версия пагинации */
@media (max-width: 640px) {
    .news-pagination nav > div[class*="hidden"][class*="sm:flex"] {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .news-pagination nav > div[class*="hidden"][class*="sm:flex"] > div:first-child {
        order: 2;
        text-align: center;
        width: 100%;
    }
    
    .news-pagination nav > div[class*="hidden"][class*="sm:flex"] > div:last-child {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    /* Показываем мобильную версию на маленьких экранах */
    .news-pagination nav > div[class*="sm:hidden"] {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    
    .news-pagination nav > div[class*="sm:hidden"] > span,
    .news-pagination nav > div[class*="sm:hidden"] > a {
        flex: 1;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #3a3a3a;
        text-decoration: none;
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .news-pagination nav > div[class*="sm:hidden"] > span[class*="cursor-default"] {
        background-color: #f5f5f5;
        color: #999;
        cursor: not-allowed;
    }
    
    .news-pagination nav > div[class*="sm:hidden"] > a:hover {
        background-color: #f8f8f8;
        border-color: #8a2b18;
        color: #8a2b18;
    }
}

.news-page .news-card__desc {
    display: block !important;
}

.news-empty {
    text-align: center;
    padding: 80px 20px;
    border: 1px dashed #d9d9d9;
    border-radius: 16px;
    background-color: #fffdfb;
}

.news-empty h3 {
    font-family: 'Matthias Extended', 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 12px;
    color: #3a3a3a;
}

.news-empty p {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    font-size: 17px;
    margin: 0;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .news-feed-row__link {
        grid-template-columns: 220px 1fr 40px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .news-list-section {
        padding: 48px 0 64px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card__content {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .news-headline .section-title {
        font-size: 28px;
    }

    .news-card__title {
        font-size: 20px;
    }

    .news-card__desc {
        font-size: 15px;
    }
    
    .news-feed-row__link {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-feed-row__image {
        width: 100%;
    }

    .news-feed-row__arrow {
        justify-content: flex-start;
    }
}

/* ============================================
   News Show Page - Страница отдельной новости
   ============================================ */

.news-show-page {
    background-color: #fff;
    min-height: 100vh;
}

/* Container */
.container-strict {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fdf6f2 0%, #ffffff 100%);
    padding: 80px 0 60px;
    border-bottom: 1px solid #f0e7e1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-family: 'Matthias Extended', 'MatahariExtended600ExtSemBd', 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    color: #3a3a3a;
    margin: 0 0 24px 0;
}

.news-meta-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.news-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8a2b18;
    font-weight: 500;
}

/* News Content Section */
.news-content-section {
    padding: 64px 0;
    background-color: #ffffff;
}

.news-image {
    margin-bottom: 48px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* Prose Content Styles */
.news-content.prose {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #3a3a3a;
}

.news-content.prose p {
    margin-bottom: 24px;
    color: #3a3a3a;
}

.news-content.prose h2 {
    font-family: 'Matthias Extended', 'MatahariExtended600ExtSemBd', 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #3a3a3a;
    margin: 48px 0 24px 0;
    line-height: 1.3;
}

.news-content.prose h3 {
    font-family: 'Matthias Extended', 'MatahariExtended600ExtSemBd', 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #3a3a3a;
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

.news-content.prose h4 {
    font-family: 'Matthias Extended', 'MatahariExtended600ExtSemBd', 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #3a3a3a;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.news-content.prose ul,
.news-content.prose ol {
    margin: 24px 0;
    padding-left: 32px;
    color: #3a3a3a;
}

.news-content.prose li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.news-content.prose a {
    color: #8a2b18;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.news-content.prose a:hover {
    color: #6a1f12;
}

.news-content.prose strong {
    font-weight: 600;
    color: #2b2b2b;
}

.news-content.prose em {
    font-style: italic;
}

.news-content.prose blockquote {
    border-left: 4px solid #8a2b18;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #5b5b5b;
}

.news-content.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-content.prose hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 48px 0;
}

/* Related News Section */
.related-news-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.related-news-section .t015__title,
.related-news-section .section-title,
.related-news-section h2.t015__title,
.related-news-section .t015 .t015__title {
    text-align: left !important;
}

.section-title {
    font-family: 'Matthias Extended', 'MatahariExtended600ExtSemBd', 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #3a3a3a;
    text-align: center;
    margin: 0 0 48px 0;
    line-height: 1.2;
}

/* Work Item (Related News Cards) */
.work-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.work-image {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    height: 240px;
    min-height: 240px;
    width: 100%;
}

.work-image img,
.work-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-image img,
.work-item:hover .work-img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(138, 43, 24, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-link {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.work-item:hover .work-link {
    transform: scale(1.1);
}

.work-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.news-meta {
    margin-bottom: 12px;
    text-align: left;
}

.work-title {
    font-family: 'Matthias Extended', 'MatahariExtended600ExtSemBd', 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #3a3a3a;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: left;
}

.work-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #8a2b18 0%, #6a1f12 100%);
    color: #ffffff;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: 'Matthias Extended', 'MatahariExtended600ExtSemBd', 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.cta-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px 0;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background-color: #ffffff;
    color: #8a2b18;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline {
    display: inline-block;
    padding: 16px 32px;
    background-color: transparent;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #8a2b18;
}

/* Utility Classes */
.py-16 {
    padding-top: 64px;
    padding-bottom: 64px;
}

.max-w-4xl {
    max-width: 896px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-12 {
    margin-bottom: 48px;
}

.text-center {
    text-align: center;
}

.bg-gray-50 {
    background-color: #f8f8f8;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
    gap: 24px;
}

/* Responsive grid columns */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.rounded-lg {
    border-radius: 8px;
}

/* Responsive Styles for News Show Page */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .cta-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .news-content-section {
        padding: 48px 0;
    }
    
    .news-content.prose {
        font-size: 16px;
    }
    
    .news-content.prose h2 {
        font-size: 26px;
        margin: 36px 0 20px 0;
    }
    
    .news-content.prose h3 {
        font-size: 22px;
        margin: 32px 0 16px 0;
    }
    
    .news-content.prose h4 {
        font-size: 20px;
        margin: 28px 0 14px 0;
    }
    
    .related-news-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 36px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 26px;
    }
    
    .cta-text {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 24px;
    }
    
    .news-image {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .news-image img,
    .news-content.prose img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .news-content.prose h2 {
        font-size: 22px;
    }
    
    .news-content.prose h3 {
        font-size: 20px;
    }
    
    .news-content.prose h4 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .cta-title {
        font-size: 22px;
    }
    
    .work-content {
        padding: 20px;
    }
    
    .work-title {
        font-size: 20px;
    }
    
    .work-description {
        font-size: 15px;
    }
}

