/*
 Theme Name: MyListing Child
 Theme URI: https://bizok.com.ua/
 Description: Дочерняя тема для MyListing (BizOK)
 Author: Oleksandr
 Template: my-listing
 Version: 1.0
 Text Domain: mylisting-child
*/
/* ===== BizOK Article ===== */

.bizok-article-wrapper {
    padding: 60px 20px;
}

.bizok-article-container {
    max-width: 900px;
    margin: 0 auto;
}

.bizok-article-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.bizok-article-thumbnail img {
    border-radius: 14px;
    margin-bottom: 30px;
}

.bizok-article-content {
    font-size: 18px;
    line-height: 1.7;
}
/* ===== BizOK: сообщение после отправки статьи ===== */

.bizok-article-success {
    max-width: 720px;
    margin: 60px auto;
    padding: 40px 32px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    text-align: center;
}

.bizok-article-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 3px solid #0f5e78;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #0f5e78;
}

.bizok-article-success h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f5e78;
}

.bizok-article-success p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 26px;
    color: #444;
}

.bizok-article-success-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    background: #0f5e78;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bizok-article-success-btn:hover {
    background: #0c4a5f;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}
/* ===== BizOK CTA в форме добавления статьи ===== */

.acf-field[data-name="bizok_show_company_block"],
.acf-field[data-name="bizok_company_cta_text"] {
    font-size: 18px;
    line-height: 1.6;
}

.acf-field[data-name="bizok_company_cta_text"] textarea {
    font-size: 17px;
    line-height: 1.6;
}
/* ===== BizOK кнопка отправки статьи ===== */

.acf-form-submit {
    text-align: center;
    margin-top: 30px;
}

.acf-form-submit input[type="submit"] {
    background: #0f5e78;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acf-form-submit input[type="submit"]:hover {
    background: #0c4a5f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* ===== BizOK: архив статей компаній ===== */

.bizok-articles-archive-wrapper {
    padding: 60px 20px 80px;
}

.bizok-articles-archive-container {
    max-width: 1100px;
    margin: 0 auto;
}

.bizok-articles-archive-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #0f5e78;
}

/* Сетка */

.bizok-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

/* Карточка */

.bizok-article-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bizok-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

/* Картинка */

.bizok-article-card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
}

.bizok-article-card-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.bizok-article-card-thumb-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4f0f5;
    color: #0f5e78;
    font-weight: 600;
}

/* Тело карточки */

.bizok-article-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bizok-article-card-meta {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bizok-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bizok-badge-location {
    background: rgba(15,94,120,0.08);
    color: #0f5e78;
}

.bizok-badge-company {
    background: #f3f3f3;
    color: #555;
}

.bizok-article-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0 10px;
}

.bizok-article-card-title a {
    color: #111;
    text-decoration: none;
}

.bizok-article-card-title a:hover {
    color: #0f5e78;
}

.bizok-article-card-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 14px;
    flex: 1;
}

.bizok-article-card-readmore {
    align-self: flex-start;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #0f5e78;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.bizok-article-card-readmore:hover {
    color: #0c4a5f;
    border-color: #0c4a5f;
}

/* Пагинация */

.bizok-articles-pagination {
    margin-top: 32px;
    text-align: center;
}

.bizok-articles-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    color: #0f5e78;
}

.bizok-articles-pagination .page-numbers.current {
    background: #0f5e78;
    color: #fff;
}

.bizok-articles-pagination .page-numbers:hover {
    background: rgba(15,94,120,0.1);
}

/* Мобилка */

@media (max-width: 600px) {
    .bizok-articles-archive-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .bizok-article-card-thumb img,
    .bizok-article-card-thumb-placeholder {
        height: 200px;
    }
}
.bizok-article-company-box {
    margin-top: 40px;
    padding: 28px;
    background: #f5fbff;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

/* =======================================
   ФИЛЬТР СТАТЕЙ — BIZOK FINAL VERSION
======================================= */

/* Основной блок фильтра */

.bizok-article-filters {
    background: #f8fafb;
    padding: 35px 40px;
    border-radius: 18px;
    margin-top: 40px;
    margin-bottom: 80px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Контейнер с фильтрами */
.bizok-filters-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* Один фильтр */
.bizok-filter-item {
    display: flex;
    flex-direction: column;
}

/* Label */
.bizok-filter-item label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2b2b2b;
}

/* Select */
.bizok-filter-item select {
    height: 48px;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid #e2e6ea;
    background: #ffffff;
    min-width: 240px;
    transition: all 0.2s ease;
}

/* Hover */
.bizok-filter-item select:hover {
    border-color: #c5ccd3;
}

/* Focus */
.bizok-filter-item select:focus {
    outline: none;
    border-color: #1f6f8b;
    box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.15);
}

/* Ссылка "Скинути фільтри" */
.bizok-filter-reset {
    align-self: center;
    margin-left: 10px;
    font-size: 14px;
    color: #1f6f8b;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.bizok-filter-reset:hover {
    text-decoration: underline;
}

/* Адаптив под мобильные */
@media (max-width: 768px) {

    .bizok-article-filters {
        padding: 25px 20px;
        margin-top: 30px;
        margin-bottom: 60px;
    }

    .bizok-filters-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .bizok-filter-item select {
        width: 100%;
        min-width: unset;
    }

    .bizok-filter-reset {
        align-self: flex-start;
        margin-left: 0;
    }
}
/* Select */
.bizok-filter-item select {
    height: 48px;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid #e2e6ea;
    background: #ffffff;
    min-width: 240px;
    transition: all 0.2s ease;
}

/* Hover */
.bizok-filter-item select:hover {
    border-color: #c5ccd3;
}

/* Focus */
.bizok-filter-item select:focus {
    outline: none;
    border-color: #1f6f8b;
    box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.15);
}

/* Ссылка "Скинути фільтри" */
.bizok-filter-reset {
    align-self: center;
    margin-left: 10px;
    font-size: 14px;
    color: #1f6f8b;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.bizok-filter-reset:hover {
    text-decoration: underline;
}

/* Адаптив под мобильные */
@media (max-width: 768px) {

    .bizok-article-filters {
        padding: 25px 20px;
        margin-top: 30px;
        margin-bottom: 60px;
    }

    .bizok-filters-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .bizok-filter-item select {
        width: 100%;
        min-width: unset;
    }

    .bizok-filter-reset {
        align-self: flex-start;
        margin-left: 0;
    }
}
/* ===============================
   BizOK FAQ — FINAL STYLE
================================ */

.bizok-faq {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 36px;
  margin-top: 40px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.bizok-faq h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1f3f52;
}

/* Один пункт */
.bizok-faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 0;
}

/* Вопрос */
.bizok-faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 34px;

  font-size: 17px;
  font-weight: 600;
  color: #05668D;
  transition: color .2s ease;
}

/* Hover */
.bizok-faq-item summary:hover {
  color: #024e6b;
}

/* Убираем стандартный маркер */
.bizok-faq-item summary::-webkit-details-marker {
  display: none;
}

/* SVG стрелка */
.bizok-faq-item summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .25s ease;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2305668D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* При открытии */
.bizok-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Ответ */
.bizok-faq-item div {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: #444;
}

/* Убираем лишнюю линию у последнего */
.bizok-faq-item:last-child {
  border-bottom: none;
}

/* ===============================
   Mobile
================================ */

@media (max-width: 768px) {

  .bizok-faq {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .bizok-faq h2 {
    font-size: 22px;
  }

  .bizok-faq-item summary {
    font-size: 16px;
  }

  .bizok-faq-item div {
    font-size: 14px;
  }
}
/* ===============================
   BizOK FAQ — Mobile font boost
================================ */
@media (max-width: 768px){

  .bizok-faq-item summary{
    font-size: 18px !important;
    line-height: 1.4;
  }

  .bizok-faq-item div{
    font-size: 16px !important;
    line-height: 1.6;
  }

}
