/*
Theme Name:   Energy - Child theme
Theme URI:    http://webdesign-finder.com/energy-v2
Description:  Extra Small child theme of Energy theme
Author:       the MWTemplates team
Author URI:   https://themeforest.net/user/mwtemplates
Template:     energy
Version:      1.5.7
License:      Commercial
License URI:  https://themeforest.net/licenses/regular_extended
Text Domain:  energy
Domain Path:  /languages
Tags:         blog, e-commerce, news, custom-background, custom-colors, custom-logo, custom-menu, custom-header, editor-style, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, block-styles, wide-blocks, left-sidebar, right-sidebar, one-column, two-columns, grid-layout, microformats, post-formats, translation-ready
*/

/* Your styles goes here*/

/* Контейнер та структура сітки */
.custom-projects-grid .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0px !important;
}

.projects-loop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Дві колонки */
  gap: 30px;
  margin-bottom: 40px;
}

/* Картка запису */
.project-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

/* Обертка зображення та бейдж з датою */
.project-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* Співвідношення сторін 16:9 */
  overflow: hidden;
  background-color: #f3f4f6;
}

.project-featured-img,
.project-placeholder-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-featured-img {
  transform: scale(1.05);
}

/* Стиль накладання дати */
.project-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #d6c744;
  /* Фірмовий колір */
  color: #111;
  /* Темний текст для кращого контрасту на жовтому */
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  line-height: 1.2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.project-date-badge .day {
  font-size: 18px;
}

.project-date-badge .month {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Текстовий блок картки */
.project-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 22px;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.project-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-title a:hover {
  color: #d6c744;
  /* Зміна кольору при ховері */
}

.project-excerpt {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Кнопка */
.project-footer {
  margin-top: auto;
}

.project-more-btn {
  display: inline-block;
  background-color: #d6c744;
  /* Фірмовий колір */
  color: #111;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.project-more-btn:hover {
  background-color: #bfae39;
  /* Трохи темніший відтінок для ховеру */
  color: #111;
}

.project-more-btn:active {
  transform: scale(0.98);
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
  .projects-loop-grid {
    grid-template-columns: 1fr;
    /* На мобільних виводимо в одну колонку */
    gap: 20px;
  }
}









/* Контейнер для контенту без сайдбару (звужений для читабельності текстових звітів) */
.custom-single-report .container-narrow {
    max-width: 1100px; /* Було 800px. Можете поставити 1200px, якщо потрібно ще ширше */
    margin: 0 auto;
    padding: 40px 20px;
}

/* Додатково: якщо у звітах використовуються стандартні галереї або великі зображення, 
   вони автоматично підлаштуються під нову ширину */
.report-body-content img {
    max-width: 100%;
    height: auto;
}

/* Шапка статті */
.report-header {
    text-align: center;
    margin-bottom: 35px;
}

.report-meta-top {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-bottom: 10px;
}

.report-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin: 0;
}

/* Головне зображення звіту */
.report-featured-image-wrapper {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.report-main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Текстова зона контенту */
.report-body-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.report-body-content p {
    margin-bottom: 25px;
}

.report-body-content h2, 
.report-body-content h3 {
    color: #111827;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Навігаційний блок внизу */
.report-navigation-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.report-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-box {
    width: 100%;
}

.nav-next {
    text-align: right;
}

/* Кнопки навігації */
.report-nav-btn {
    display: flex;
    align-items: center;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease;
    height: 100%;
}

.nav-previous .report-nav-btn {
    justify-content: flex-start;
}

.nav-next .report-nav-btn {
    justify-content: flex-end;
}

/* Ефекти наведення з фірмовим кольором */
.report-nav-btn:hover {
    border-color: #d6c744;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(214, 199, 68, 0.15);
}

.report-nav-btn:hover .nav-label {
    color: #bfae39; /* Темніший фірмовий відтінок */
}

/* Текстові елементи всередині кнопок */
.nav-text-wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 15px;
}

.nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-post-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2px;
    /* Обрізання довгого заголовку в три крапки */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.nav-arrow {
    font-size: 20px;
    color: #d6c744; /* Стрілочки фірмового кольору */
    font-weight: bold;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 640px) {
    .report-title {
        font-size: 28px;
    }
    .report-nav-links {
        grid-template-columns: 1fr; /* На мобільних кнопки стають одна під одну */
        gap: 15px;
    }
    .nav-next {
        text-align: left;
    }
    .nav-next .report-nav-btn {
        justify-content: flex-start;
    }
}

/* На великих екранах (десктоп) ховаємо кнопку всередині меню */
@media (min-width: 992px) {
    #nav_top .mobile-menu-only-btn {
        display: none !important;
    }
}

/* На мобільних екранах оформлюємо кнопку всередині меню */
@media (max-width: 991px) {
    #nav_top .mobile-menu-only-btn {
        display: block !important;
        text-align: center;
        margin: 25px auto 15px auto; /* Відступи, щоб відокремити від пунктів меню */
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    #nav_top .mobile-menu-only-btn .theme_button {
        display: block !important;
        width: 100% !important;
        background-color: #d6c744 !important; /* Ваш фірмовий колір */
        color: #111 !important;
        text-align: center;
        padding: 12px 20px;
        border-radius: 4px;
        font-weight: bold;
        text-transform: uppercase;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
}


/* Основний контейнер форми */
.cf7-custom-form {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

/* Налаштування сітки */
.cf7-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    margin-bottom: 20px;
}

.cf7-grid-column {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

/* Колонки на всю ширину для email та повідомлення */
.cf7-grid-column.full-width {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Стилізація лейблів та полів */
.cf7-custom-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cf7-custom-form input[type="text"],
.cf7-custom-form input[type="tel"],
.cf7-custom-form input[type="email"],
.cf7-custom-form textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    color: #1f2937;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Ефект фокусу (використовуємо фірмовий колір) */
.cf7-custom-form input:focus,
.cf7-custom-form textarea:focus {
    background-color: #fff;
    border-color: #d6c744 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 199, 68, 0.2);
}

/* Фіксована висота текстового поля */
.cf7-custom-form textarea {
    height: 120px;
    resize: vertical;
}

/* Стилізація кнопки відправки */
.cf7-submit-wrap {
    text-align: left;
    margin-top: 10px;
}

.cf7-submit-btn {
    display: inline-block;
    background-color: #d6c744 !important; /* Фірмовий колір */
    color: #111 !important; /* Контрастний темний текст */
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 35px;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cf7-submit-btn:hover {
    background-color: #bfae39 !important; /* Трохи темніший на ховері */
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(214, 199, 68, 0.2);
}

.cf7-submit-btn:active {
    transform: translateY(1px);
}

/* Корекція системних повідомлень CF7 про помилки */
.wpcf7-not-valid-tip {
    font-size: 13px;
    color: #dc2626;
    margin-top: 5px;
    font-weight: 500;
}

.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
    font-size: 15px;
}

/* АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ */
@media (max-width: 768px) {
    .cf7-grid-column {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    .cf7-grid-row {
        margin-bottom: 0;
    }
    .cf7-submit-btn {
        width: 100%; /* На мобільних кнопка стає на всю ширину */
        text-align: center;
    }
}