/*
 Theme Name:     Hello Elementor Child
 Template:       hello-elementor
 Version:        1.0.0
 Text Domain:    hello-elementor-child
*/

@import url("../hello-elementor/style.css"); /* Это только для совместимости, но не обязателен */

/* --- Стили для страницы блога Otoiture --- */

/* Главный контейнер */
.otoiture-blog-main {
    padding-top: 0rem;
}

/* Hero-секция */
.otoiture-blog-hero {
    background: linear-gradient(to right, #386b69, #a5d6c4);
    padding: 2.5rem 1rem;
}
.otoiture-blog-hero-tiчtle {
    color: white;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.875rem;
}

/* Область контента */
.otoiture-blog-content-area {
    max-width: none !important; /* Убираем ограничение по ширине */
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Подзаголовок */
.otoiture-blog-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Фильтры: поиск и теги */
.otoiture-blog-filters {
    margin-bottom: 2rem;
}

.otoiture-blog-search-wrapper .search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.otoiture-blog-search-wrapper .search-form .search-field {
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.25rem !important;
    width: 100% !important;
    max-width: 48rem !important; /* увеличено */
    font-size: 1rem !important;
    height: 3.25rem !important; /* явно задаём высоту */
}
.otoiture-blog-search-wrapper .search-submit {
    background-color: #386b69;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}
.otoiture-blog-search-wrapper .search-submit:hover {
    background-color: #2e5956;
}

.otoiture-blog-tags-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.otoiture-blog-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.otoiture-blog-tag-button {
    background: linear-gradient(to right, #386b69, #a5d6c4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: opacity 0.3s;
    text-decoration: none;
}
.otoiture-blog-tag-button:hover {
    opacity: 0.9;
    color: white;
}

/* Секция со статьями */
.otoiture-blog-articles-section {
    padding-top: 2.5rem;
}
.otoiture-blog-articles-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Сетка постов */
.otoiture-blog-post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    
    /* Исправления для выравнивания */
    justify-content: start !important;
    align-items: stretch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Адаптивная сетка */
@media (min-width: 640px) {
    .otoiture-blog-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .otoiture-blog-post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Карточка поста */
.otoiture-blog-post-card {
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: white;
    max-width: 24rem;
    text-decoration: none;
    color: inherit;
    margin-left: 0 !important;  /* убираем auto-центрирование */
    margin-right: 0 !important;
}

.otoiture-blog-post-image {
    height: 12rem;
    width: 100%;
    object-fit: cover;
}
.otoiture-blog-post-content {
    padding: 1rem;
    flex-grow: 1;
}
.otoiture-blog-post-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.otoiture-blog-post-title {
    font-weight: 600;
    font-size: 16px;
    color: black;
    margin: 0;
}
.otoiture-blog-post-readmore {
    background-color: #a5d6c4;
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 0.75rem;
    transition: background-color 0.3s;
}
.otoiture-blog-post-card:hover .otoiture-blog-post-readmore {
    background-color: #386b69;
}

//Single Post

/* --- Стили для страницы отдельной записи (single.php) --- */

.otoiture-single-post-main {
    padding-top: 0rem; /* Отступ от хедера */
}

/* Hero-секция */
.otoiture-single-post-hero {
    position: relative;
    height: 20rem; /* h-80 */
    width: 100%;
    background-size: cover;
    background-position: center;
}
.otoiture-single-post-hero-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to right, rgba(56, 107, 105, 0.7), rgba(165, 214, 196, 0.3));
}
.otoiture-single-post-hero-content {
    max-width: 1280px; /* max-w-7xl */
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.otoiture-single-post-category {
    display: inline-block;
    background: linear-gradient(to right, #386b69, #a5d6c4);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    width: fit-content;
    margin-bottom: 1rem;
    text-decoration: none;
}
.otoiture-single-post-title {
    color: white;
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    max-width: 48rem; /* max-w-3xl */
    line-height: 1.2;
}
.otoiture-single-post-title-underline {
    margin-top: 1rem;
    height: 4px;
    width: 20rem; /* w-80 */
    background-color: #fb923c; /* orange-400 */
    border-radius: 0.25rem;
}
.otoiture-single-post-meta {
    font-size: 0.875rem;
    color: white;
    margin-top: 0.75rem;
}

/* Основная часть страницы */
.otoiture-single-post-body-area {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Контент статьи */
.otoiture-single-post-article {
    padding: 0 1.25rem;
}
/* Стили для контента из редактора */
.otoiture-single-post-article h2 {
    font-size: 1.5rem; /* text-2xl */
    color: #386b69;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.otoiture-single-post-article p {
    margin-bottom: 1rem;
    line-height: 1.6;
}
.otoiture-single-post-article ul {
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 1rem;
}
.otoiture-single-post-article img {
    border-radius: 0.75rem; /* rounded-xl */
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}
.otoiture-single-post-article a {
    color: #386b69;
    font-weight: bold;
    text-decoration: none;
}
.otoiture-single-post-article a:hover {
    text-decoration: underline;
}

/* Блок CTA */
.otoiture-single-post-cta {
    margin-top: 3rem;
}
.otoiture-cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.otoiture-cta-text {
    margin-bottom: 1.5rem;
}
.otoiture-cta-button {
    display: inline-block;
    background-color: #386b69;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s;
    text-decoration: none !important;
}
.otoiture-cta-button:hover {
    background-color: #2e5956;
}

/* Сайдбар */
.otoiture-single-post-sidebar {
    padding: 0 1.25rem;
}
.otoiture-sidebar-widget {
    margin-bottom: 1.5rem;
}
.otoiture-sidebar-widget-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.otoiture-social-share {
    display: flex;
    gap: 1rem;
}
.otoiture-sidebar-hr {
    margin: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
}
.otoiture-related-posts-list {
    list-style: none;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}
.otoiture-related-posts-list li {
    margin-bottom: 0.5rem;
}
.otoiture-related-posts-list a {
    color: #386b69;
    text-decoration: none;
		font-weight: 600;
}
.otoiture-related-posts-list a:hover {
    text-decoration: underline;
}

/* Адаптивность для больших экранов */
@media (min-width: 1024px) {
    .otoiture-single-post-body-area {
        grid-template-columns: repeat(12, 1fr);
        gap: 2rem;
    }
    .otoiture-single-post-article {
        grid-column: span 8 / span 8;
    }
    .otoiture-single-post-sidebar {
        grid-column: span 4 / span 4;
    }
}

/* --- Стили для иконок "Поделиться" в сайдбаре --- */

/* Задаем базовый размер для всех SVG иконок в этом блоке */
.otoiture-social-share svg {
    width: 1.5rem;  /* Аналог w-6 в Tailwind */
    height: 1.5rem; /* Аналог h-6 в Tailwind */
}

/* Задаем цвета для каждой иконки, используя их aria-label */
.otoiture-social-share a[aria-label="Partager sur LinkedIn"] svg {
    fill: #0077b5; /* Цвет LinkedIn */
}

.otoiture-social-share a[aria-label="Partager sur Facebook"] svg {
    fill: #1877f2; /* Цвет Facebook */
}

.otoiture-social-share a[aria-label="Partager par email"] svg {
    fill: #386b69; /* Фирменный зеленый цвет */
}

/* Стили для AJAX фильтра блога */

/* Активная кнопка категории */
.otoiture-blog-tag-button.active {
    background: #fff;
    color: #386b69;
    border: 2px solid #386b69;
    font-weight: bold;
}

/* Простой индикатор загрузки (лоадер) */
#otoiture-loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #386b69; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

[type=button], [type=submit], button {
    background-color: transparent;
    border: 0px solid #c36;
}

/* --- Стили для движущейся галереи Otoiture (БЕССШОВНАЯ ВЕРСИЯ) --- */

/* Контейнер-маска, скрывает всё лишнее */
.scrolling-gallery-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 3rem !important;
}

/* Трек с изображениями — движется */
.scrolling-gallery-track {
  display: flex;
  gap: 2rem !important;
  width: max-content;
  animation: scroll-loop 16s linear infinite !important;
}

/* Колонка из изображений */
.scrolling-gallery-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem !important;
  flex-shrink: 0;
}

/* Стили для изображений */
.scrolling-gallery-image {
  width: 400px !important;
  height: 320px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

/* Анимация бесконечной прокрутки */
@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.3333%);
  }
}

/* Опционально: пауза при наведении */
.scrolling-gallery-container:hover .scrolling-gallery-track {
  animation-play-state: paused !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .scrolling-gallery-image {
    width: 280px !important;
    height: 200px !important;
  }
  .scrolling-gallery-track {
    gap: 1rem !important;
  }
}

/* --- Стили для Мега-меню Otoiture (Финальное и правильное решение) --- */

/* Контейнер пункта меню */
.has-mega-menu {
    position: relative;
}

/* Сам выпадающий блок (мега-меню) */
.mega-menu-content {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
		margin-top: -6px;
    
    /* Сохраняем заданную ширину */
    width: 850px; 
    
    background-color: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Показываем мега-меню при наведении */
.has-mega-menu:hover .mega-menu-content {
    display: flex;
}

/* Сетка внутри мега-меню */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Можно вернуть исходный gap, так как проблема не в нем */
    gap: 1.5rem; 
    width: 100%;
}

/* Отдельный элемент в сетке */
.mega-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2e3a59;
    text-decoration: none;
    transition: opacity 0.3s;
    
    /* 
     * КЛЮЧЕВОЕ РЕШЕНИЕ:
     * Это заставляет элемент сетки сжиматься, игнорируя ширину длинных слов.
     */
    min-width: 0; 
}
.mega-menu-item:hover {
    opacity: 0.8;
}

/* Картинка элемента */
.mega-menu-item img {
    border-radius: 0.5rem;
    width: 6rem;
    height: 6rem;
    object-fit: cover;
}

/* Текст элемента */
.mega-menu-item span {
    margin-top: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1024px) {
    .mega-menu-content {
        display: none !important;
    }
}
.wpcf7-form .wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem 1.5rem; /* убрал большой padding-left */
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  border: none !important;

  /* Сделаем flex-контейнером */
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Отступ между иконкой и текстом */

  animation: fadeZoomIn 0.4s ease-in-out;
  word-wrap: break-word;
}

/* Иконка через ::before, но теперь inline с текстом */
.wpcf7-form .wpcf7-response-output::before {
  content: "";
  font-size: 1.25rem;
  line-height: 1;
  display: inline-block;
  /* Отступ справа чтобы не сливалась с текстом */
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Успех */
.wpcf7-form.sent .wpcf7-response-output {
  background-color: rgba(79, 133, 127, 0.5) !important;
  color: white !important;
}
.wpcf7-form.sent .wpcf7-response-output::before {
  content: "✅";
}

/* Ошибка */
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  background-color: rgba(242, 34, 34, 0.5) !important;
  color: white !important;
}
.wpcf7-form.failed .wpcf7-response-output::before,
.wpcf7-form.aborted .wpcf7-response-output::before {
  content: "❌";
}

/* Предупреждение */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
  background-color: rgba(255, 230, 0, 0.5) !important;
  color: black !important;
}
.wpcf7-form.invalid .wpcf7-response-output::before,
.wpcf7-form.unaccepted .wpcf7-response-output::before {
  content: "⚠️";
}

/* Анимация */
@keyframes fadeZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.otoiture-blog-heading {
    color: white;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    padding-top: 0rem;  /* py-10 */
    padding-bottom: 0rem;
    font-size: 1.875rem;  /* text-3xl */
  }