/*
Theme Name: Roberto Cipresso
Description: Официальная тема для сайта Roberto Cipresso - винодельня в Монтальчино
Version: 1.0 
Author: Roberto Cipresso Team
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* Базовые стили WordPress */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Основные контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Утилиты из Tailwind CSS (адаптированные) */
.text-center { text-align: center; }
.featured-wines .text-center {
    margin-top: 2rem;
}
.text-white { color: white; }
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-black { background-color: black; }

.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-8 { gap: 2rem; }
/* Доп. утилиты для awards секции */
.gap-6 { gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px rgba(0,0,0,.1); }
.transition-all { transition: all .3s ease; }
.backdrop-blur-sm { backdrop-filter: blur(6px); }
.bg-white\/80 { background-color: rgba(255,255,255,.8); }
.bg-white\/50 { background-color: rgba(255,255,255,.5); }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top:0; right:0; bottom:0; left:0; }
.opacity-5 { opacity: .05; }
.text-amber-600 { color:#d97706; }
.text-amber-700 { color:#b45309; }
.text-blue-600 { color:#2563eb; }
.text-blue-700 { color:#1d4ed8; }
.text-green-600 { color:#16a34a; }
.text-green-700 { color:#15803d; }
.text-slate-600 { color:#475569; }
.text-slate-700 { color:#334155; }
.text-purple-700 { color:#6d28d9; }
.text-gray-600 { color:#4b5563; }
.text-gray-500 { color:#6b7280; }
.mt-12 { margin-top: 3rem; }
.mb-12 { margin-bottom: 3rem; }
.inline-flex { display:inline-flex; }
.gap-2 { gap:.5rem; }
.rounded-full { border-radius:9999px; }
.text-sm { font-size:.875rem; }
.font-semibold { font-weight:600; }
.bg-yellow-100 { background:#fef9c3; }
.text-yellow-800 { color:#854d0e; }
.text-gray-900 { color:#111827; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left:auto; margin-right:auto; }
.leading-relaxed { line-height:1.8; }
.p-6 { padding:1.5rem; }
.flex-shrink-0 { flex-shrink:0; }
.border { border:1px solid rgba(0,0,0,.06); }
.border-white\/50 { border-color: rgba(255,255,255,.5); }
.min-w-0 { min-width:0; }
.w-2 { width:.5rem; }
.h-2 { height:.5rem; }
.bg-gradient-to-br { background-image: linear-gradient(135deg, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-amber-100 { --tw-gradient-from:#fef3c7; }
.to-amber-200 { --tw-gradient-to:#fde68a; }
.from-slate-50 { --tw-gradient-from:#f8fafc; }
.to-gray-100 { --tw-gradient-to:#f3f4f6; }
.from-slate-100 { --tw-gradient-from:#f1f5f9; }
.to-slate-200 { --tw-gradient-to:#e2e8f0; }
.from-blue-100 { --tw-gradient-from:#dbeafe; }
.to-blue-200 { --tw-gradient-to:#bfdbfe; }
.from-green-100 { --tw-gradient-from:#dcfce7; }
.to-green-200 { --tw-gradient-to:#bbf7d0; }
.from-purple-100 { --tw-gradient-from:#ede9fe; }
.to-purple-200 { --tw-gradient-to:#ddd6fe; }
.from-amber-100 { --tw-gradient-from:#fef3c7; }
.to-amber-200 { --tw-gradient-to:#fde68a; }
.bg-amber-300 { background-color:#f59e0b; }
.bg-blue-300 { background-color:#93c5fd; }
.bg-green-300 { background-color:#86efac; }
.bg-purple-300 { background-color:#c4b5fd; }
.bg-slate-300 { background-color:#cbd5e1; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Типография */
.font-serif { font-family: 'Crimson Text', Georgia, 'Times New Roman', serif; }
.text-10xl { font-size: 10rem; line-height: 1; }
.text-9xl { font-size: 8rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; font-weight: 400; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; font-weight: 500; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; font-weight: 400; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }

.text-gray-900 { color: #111827; }
.leading-tight { line-height: 1.25; }
.leading-none { line-height: 1; }

.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }
.font-extralight { font-weight: 200; }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: white;
    color: black;
}

.btn-primary:hover {
    background-color: #f3f4f6;
}

.btn-primary.view-all {
    background-color: white;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.btn-primary.view-all:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Стили для кнопки "Aggiungi al Carrello" как на макете */
.btn-primary {
    background-color: #111827; /* Темный фон как на макете */
    color: white; /* Белый текст */
    border-radius: 0.375rem; /* Закругленные углы */
    padding: 0.75rem 1.5rem; /* Размер padding как на макете */
    font-weight: 500; /* Средний вес шрифта */
    text-decoration: none; /* Убираем подчеркивание */
    display: inline-block; /* Гарантируем правильное отображение */
    transition: background-color 0.3s ease; /* Плавный переход при наведении */
}

.btn-primary:hover {
    background-color: #374151; /* Темнее при наведении */
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: black;
}

/* Стили для иконки в кнопке */
.btn-primary svg.lucide {
    vertical-align: middle; /* Выравнивание по центру текста */
    margin-left: 0.4rem; /* Отступ слева от текста для иконки справа */
    width: 1rem; /* Переопределяем размер для согласованности */
    height: 1rem; /* Переопределяем размер для согласованности */
    stroke: white; /* Белый цвет обводки, чтобы соответствовать тексту кнопки */
	position: relative;
	top: -1px;
}

.hero .btn-primary.hero-discover {
    background-color: white;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.hero .btn-primary.hero-discover:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.team-section {
    background-color: #f9fafb;
    padding: 5rem 0;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.team-card .position {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #111827; /* Черный цвет для должностей */
}

.team-card .experience {
    font-size: 0.875rem;
    color: #6b7280;
}

.newsletter-section .btn-primary.newsletter-subscribe {
    background-color: white;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.newsletter-section .btn-primary.newsletter-subscribe:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 4rem);
    display: flex;
    align-items: flex-start; /* Меняем с center на flex-start */
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 15vh; /* Добавляем отступ сверху */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1000px; /* Увеличиваем ширину контейнера */
    padding: 0 1rem;
}

.hero h1 {
    font-family: 'Crimson Text', Georgia, serif;
    margin-bottom: 2rem; /* Увеличиваем отступ */
    line-height: 0.9; /* Еще более плотный line-height */
    font-weight: 300;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem; /* Увеличиваем отступ до кнопок */
    font-style: italic;
    opacity: 0.95;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 40;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: nowrap; /* НЕ переносим элементы */
}

.site-logo {
    font-size: 1.5rem;
    font-family: 'Crimson Text', Georgia, serif;
    color: #111;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    flex-shrink: 0; /* Логотип не сжимается */
}

.site-logo:hover {
    color: #059669;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-grow: 1; /* Навигация занимает доступное место */
    justify-content: center; /* Центрируем навигацию */
}

.main-nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #059669;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #059669;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.25rem; }
    .grid-cols-3 { grid-template-columns: 1fr; }
    .main-nav { display: none; }
}

/* WordPress специфичные стили */
.wp-block-image { margin: 1rem 0; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }

.scroll-indicator {
    cursor: pointer;
}

/* Blog Article Styles */
.blog-article-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.blog-article-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-article-hero .category-badge {
    display: inline-block;
    background-color: #059669;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.blog-article-hero h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Crimson Text', Georgia, serif;
}

.blog-article-hero .excerpt {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.blog-article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.blog-article-tags .tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* Article Content */
.article-content {
    max-width: none;
    color: #374151;
    line-height: 1.7;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 3rem 0 1.5rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content figure {
    margin: 3rem 0;
}

.article-content figure img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
    font-style: italic;
}

.article-content blockquote {
    border-left: 4px solid #059669;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #374151;
}

/* Author Section */
.author-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 3rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 4rem;
    height: 4rem;
    background-color: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-details h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.author-details p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Sidebar */
.blog-sidebar {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.blog-sidebar h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-sidebar .search-form {
    display: flex;
    gap: 0.5rem;
}

.blog-sidebar .search-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.blog-sidebar .search-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #059669;
    border-color: transparent;
}

.blog-sidebar .search-button {
    background-color: #059669;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blog-sidebar .search-button:hover {
    background-color: rgba(5, 150, 105, 0.9);
}

.recent-articles .article-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.recent-articles .article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.recent-articles .article-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-articles .article-title:hover {
    color: #059669;
}

.recent-articles .article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.categories-list .category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.categories-list .category-link {
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-list .category-link:hover {
    color: #059669;
}

.categories-list .category-count {
    display: inline-block;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list .tag-link {
    display: inline-block;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-list .tag-link:hover {
    background-color: #059669;
    color: white;
    border-color: #059669;
}

/* Related Articles */
.related-articles {
    background-color: #f9fafb;
    padding: 4rem 0;
}

.related-articles .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-articles .section-title {
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 1rem;
    font-family: 'Crimson Text', Georgia, serif;
}

.related-articles .section-subtitle {
    color: #6b7280;
}

.related-articles .article-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.related-articles .article-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.related-articles .article-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.related-articles .article-content {
    padding: 1.5rem;
}

.related-articles .article-category {
    display: inline-block;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.related-articles .article-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-articles .article-title:hover {
    color: #059669;
}

.related-articles .article-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.related-articles .article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
}

.related-articles .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Awards Section - Icon Container Fix */
/* Awards hidden smooth toggle */
.awards-hidden {
    max-height: 0;
    opacity: 0;
    transition: max-height .6s ease, opacity .45s ease;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0; /* Убираем отступ сверху у скрытых блоков */
}

.awards-hidden.open {
    margin-bottom: 0; /* Убираем отступ снизу */
    margin-top: 1.5rem; /* Такой же отступ как между видимыми блоками */
}

.awards-hidden .awards-hidden-inner {
    overflow: visible; /* разрешаем теням выходить за пределы контента */
}
.awards-hidden.open {
    max-height: 2000px; /* достаточно большая для содержимого */
    opacity: 1;
    overflow: visible;
}

/* Ensure award cards are 4-in-row on desktop */
.awards-section .grid.lg\:grid-cols-4 {
    display: grid;
}

@media (min-width: 1024px) {
    .awards-section .grid.lg\:grid-cols-4,
    .awards-section .awards-hidden .grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Настройка отступов для кнопки */
.awards-section .awards-toggle { 
    margin-top: 1rem; /* Поднимаем кнопку ближе к блокам в свернутом виде */
    margin-bottom: 3rem; /* Достаточный отступ до следующей секции */
    position: relative;
    z-index: 20;
}

/* Когда блоки развернуты, увеличиваем отступ сверху у кнопки */
.awards-section .awards-hidden.open + .awards-toggle { 
    margin-top: 2rem; /* Больший отступ когда блоки развернуты */
}

/* Сохраняем тени у карточек внутри раскрывающегося блока */
.awards-hidden .p-6 { position: relative; }
.awards-section .p-6.bg-white\/80.backdrop-blur-sm.rounded-xl .rounded-xl.bg-gradient-to-br {
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
    padding: 0.75rem !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.75rem !important;
    margin-bottom: 0 !important;
}

.awards-section .p-6.bg-white\/80.backdrop-blur-sm.rounded-xl .flex.items-start.gap-4 .rounded-xl.bg-gradient-to-br svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    flex-shrink: 0 !important;
}

/* Awards Section Card Layout - Mixed */
.awards-section .p-6 .flex.items-start {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
}

/* Top row: Icon + Year horizontally aligned */
.awards-section .p-6 .awards-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
    width: 100% !important;
    margin-bottom: 0.75rem !important;
}

/* Year and dot positioned next to icon */
.awards-section .awards-top-row .flex.items-center.gap-2 {
    margin-bottom: 0 !important;
    align-items: center !important;
}

/* Content block positioned under icon */
.awards-section .p-6 .awards-content-block {
    margin-left: 0 !important;
    width: 100% !important;
}

/* Icon stays at top-left */
.awards-section .p-6.bg-white\/80.backdrop-blur-sm.rounded-xl .flex.items-start.gap-4 .rounded-xl.bg-gradient-to-br {
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
    padding: 0.75rem !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.75rem !important;
    margin-bottom: 0 !important;
}

/* Reset default flex behavior for new structure */
.awards-section .p-6 {
    display: block !important;
}

.awards-section .p-6 .flex.items-start.gap-4 {
    display: block !important;
}

/* Ensure proper spacing */
.awards-section .awards-content-block h3 {
    margin-top: 0 !important;
}

.awards-section .awards-content-block p {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .awards-section .awards-top-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .awards-section .awards-content-block {
        text-align: left !important;
    }
}

/* Force square icons with rounded corners (not circles) */
.awards-section .rounded-xl.bg-gradient-to-br {
    border-radius: 0.75rem !important;
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem !important;
}

.awards-section .awards-top-row .rounded-xl {
    border-radius: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.awards-section .p-6 .flex-1.min-w-0 {
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* Year and title styling to match design - Vertical Layout */
.awards-section .flex.items-center.gap-2 {
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    margin-left: 0 !important;
}

/* New vertical layout styles for awards cards */
.awards-section .p-6 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.awards-section .p-6 .flex.items-start.gap-4 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
}

.awards-section .p-6 .flex.items-start.gap-4 .flex-1.min-w-0 {
    margin-left: 0 !important;
    width: 100% !important;
}

/* Adjust spacing for content under icon */
.awards-section .font-semibold.text-gray-900.mb-2 {
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

.awards-section .text-sm.text-gray-600 {
    margin-top: 0 !important;
}

.awards-section .text-2xl.font-bold.text-gray-900 {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

.awards-section .w-2.h-2.rounded-full {
    width: 0.5rem !important;
    height: 0.5rem !important;
    border-radius: 9999px !important;
}

/* Card hover effects */
.awards-section .hover\:shadow-xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* Card content spacing */
.awards-section .font-semibold.text-gray-900.mb-2 {
    margin-bottom: 0.5rem !important;
    line-height: 1.25 !important;
}

.awards-section .text-sm.text-gray-600 {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-article-hero .hero-content {
        max-width: 80%;
    }
    
    .blog-article-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-article-hero .excerpt {
        font-size: 1.125rem;
    }
}

/* Awards Section - Mobile Fixes - CENTERED */
@media (max-width: 768px) {
    .awards-section .p-6 .flex.items-start.gap-4 {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }
    
    .awards-section .flex.items-center.gap-2 {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .awards-section .text-2xl.font-bold.text-gray-900,
    .awards-section .font-semibold.text-gray-900.mb-2,
    .awards-section .text-sm.text-gray-600 {
        text-align: center !important;
    }
    
    /* Исправление 2: Одна колонка для скрытых наград на мобильных */
    .awards-section .awards-hidden .awards-hidden-inner {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Также одна колонка для видимых наград на мобильных */
    .awards-section .awards-visible-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .blog-article-hero {
        height: 50vh;
    }
    
    .blog-article-hero .hero-content {
        max-width: 90%;
        padding: 0 0.5rem;
    }
    
    .blog-article-hero h1 {
        font-size: 2rem;
    }
    
    .blog-article-hero .excerpt {
        font-size: 1rem;
    }
    
    .blog-article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .related-articles .article-card {
        margin-bottom: 2rem;
    }
}

/* Utility Classes */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose {
    color: #374151;
    max-width: none;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #111827;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.prose blockquote {
    border-left: 4px solid #059669;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.125rem;
    color: #374151;
}

.prose img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Awards card new layout styles - FIXED */
.awards-section .awards-top-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
}

.awards-section .awards-top-row .rounded-xl.bg-gradient-to-br {
    width: 3rem !important;
    height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.75rem !important;
    flex-shrink: 0 !important;
}

.awards-section .awards-top-row .flex.items-center.gap-2 {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.awards-section .awards-content-block {
    width: 100% !important;
    text-align: left !important;
}

.awards-section .awards-content-block h3 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    text-align: left !important;
}

.awards-section .awards-content-block p {
    margin-bottom: 0 !important;
    text-align: left !important;
}

/* Ensure dots are visible */
.awards-section .w-2.h-2.rounded-full {
    width: 0.5rem !important;
    height: 0.5rem !important;
    border-radius: 9999px !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Mobile adjustments for new layout - CENTERED */
@media (max-width: 768px) {
    .awards-section .awards-top-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .awards-section .awards-content-block {
        text-align: center !important;
        width: 100% !important;
    }
    
    .awards-section .awards-content-block h3 {
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    .awards-section .awards-content-block p {
        text-align: center !important;
        margin-bottom: 0 !important;
    }
}

/* Force dots to be visible - CRITICAL FIX */
.awards-section .awards-top-row .w-2.h-2.rounded-full {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    display: block !important;
    flex-shrink: 0 !important;
    min-width: 8px !important;
    min-height: 8px !important;
}

/* Ensure specific dot colors are applied */
.awards-section .bg-amber-300 {
    background-color: #f59e0b !important;
}

.awards-section .bg-slate-300 {
    background-color: #cbd5e1 !important;
}

.awards-section .bg-blue-300 {
    background-color: #93c5fd !important;
}

.awards-section .bg-green-300 {
    background-color: #86efac !important;
}

.awards-section .bg-purple-300 {
    background-color: #c4b5fd !important;
}

/* Debug: Add a fallback color to see if dots appear at all */
.awards-section .awards-top-row .flex.items-center.gap-2 > div:last-child {
    background-color: #f59e0b !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

/* Mobile centering for awards cards */
@media (max-width: 768px) {
    .awards-section .p-6 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .awards-section .awards-top-row {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .awards-section .awards-content-block {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .awards-section .awards-content-block h3,
    .awards-section .awards-content-block p {
        text-align: center !important;
        width: 100% !important;
    }
}

/* Стили для вертикального изображения */
.wp-block-image.vertical-photo {
    text-align: center;
    margin: 2.5rem 0;
}

.wp-block-image.vertical-photo img {
    max-width: 50% !important;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

.wp-block-image.vertical-photo img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.wp-block-image.vertical-photo figcaption {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Responsive стили для вертикального изображения */
@media (max-width: 768px) {
    .wp-block-image.vertical-photo {
        margin: 2rem 0;
    }
    
    .wp-block-image.vertical-photo img {
        max-width: 70% !important;
        border-radius: 8px;
    }
    
    .wp-block-image.vertical-photo figcaption {
        font-size: 0.9rem;
        max-width: 80%;
        margin-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .wp-block-image.vertical-photo {
        margin: 1.5rem 0;
    }
    
    .wp-block-image.vertical-photo img {
        max-width: 85% !important;
        border-radius: 6px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .wp-block-image.vertical-photo figcaption {
        font-size: 0.85rem;
        max-width: 90%;
        margin-top: 0.5rem;
        padding: 0 0.5rem;
    }
}