/* ══════════════════════════════════════
       Blog wrapper
══════════════════════════════════════ */
.blog { padding: 0 0 32px; }

/* ── Category intro (thumb + description) ── */
.blog-intro {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 20px;
    background: #f0f8f7;
    border-radius: 10px;
    border-left: 4px solid #19ABB4;
    margin-bottom: 28px;
}

.blog-intro__img {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.blog-intro__text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* ── Toolbar (sort / limit / view switcher) ── */
.blog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: #f7fffe;
    border: 1px solid #e4f0ef;
    border-radius: 10px;
}

.blog-toolbar__views {
    display: flex;
    gap: 6px;
}

.blog-toolbar__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cde8e5;
    border-radius: 6px;
    background: #fff;
    color: #19ABB4;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-toolbar__btn:hover,
.blog-toolbar__btn.active {
    background: #19ABB4;
    color: #fff;
    border-color: #19ABB4;
}

.blog-toolbar__spacer { flex: 1; }

.blog-toolbar__group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-toolbar__label {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.blog-toolbar__select {
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cde8e5;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.blog-toolbar__select:focus { border-color: #19ABB4; }

/* ══════════════════════════════════════
    Articles list  (default = list view)
══════════════════════════════════════ */
.blog-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Grid view */
.blog-articles.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .blog-articles.grid-view { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .blog-articles.grid-view { grid-template-columns: 1fr; }
    .blog-toolbar { gap: 8px; }
}

/* ── Article card (list) ── */
.blog-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e4f0ef;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.blog-card:hover {
    box-shadow: 0 6px 28px rgba(0, 155, 140, 0.15);
    transform: translateY(-2px);
}

/* Grid card override */
.grid-view .blog-card {
    flex-direction: column;
    gap: 0;
}

/* ── Image ── */
.blog-card__img-wrap {
    flex-shrink: 0;
    width: 220px;
    overflow: hidden;
}

.grid-view .blog-card__img-wrap {
    width: 100%;
    height: 190px;
}

.blog-card__img-wrap a { display: block; height: 100%; }

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__img { transform: scale(1.04); }

/* ── Body ── */
.blog-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 14px;
    min-width: 0;
}

.grid-view .blog-card__body { padding: 16px; }

.blog-card__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.blog-card__title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 14px;
}

/* ── Rating ── */
.blog-card__rating {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.blog-card__star {
    font-size: 15px;
    color: #ccc;
}

.blog-card__star.filled { color: #f5a623; }

/* ── Footer (meta + button) ── */
.blog-card__footer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e4f0ef;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
}

.blog-card__meta svg {
    flex-shrink: 0;
    color: #19ABB4;
}

.blog-card__spacer { flex: 1; }

.blog-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #19ABB4;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-card__btn:hover { background: #277B80; color: #fff; }

/* ── Empty state ── */
.blog-empty {
    text-align: center;
    padding: 56px 0;
    color: #9ab;
    font-size: 15px;
}

/* ── Pagination ── */
.blog-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: flex-start;
}

.blog-pagination .pagination { margin: 0; }
.blog-pagination .pagination > li > a,
.blog-pagination .pagination > li > span {
    border-color: #cde8e5;
    color: #19ABB4;
    border-radius: 6px !important;
    margin: 0 2px;
}

.blog-pagination .pagination > .active > a,
.blog-pagination .pagination > .active > span {
    background: #19ABB4;
    border-color: #19ABB4;
    color: #fff;
}

.blog-pagination .pagination > li > a:hover {
    background: #e4f0ef;
    border-color: #19ABB4;
    color: #277B80;
}


/* ══════════════════════════════════════
   Column left — Blog widget
══════════════════════════════════════ */

/* Список категорий */
.infopage .list-group {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e4f0ef;
}

.infopage .list-group-item {
    border-color: #e4f0ef;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    color: #333;
    background: #fff;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
    display: block;
}

.infopage .list-group-item:hover {
    background: #e4f0ef;
    color: #277B80;
}

.infopage .list-group-item.active,
.infopage .list-group-item.active:hover {
    background: #19ABB4;
    border-color: #19ABB4;
    color: #fff;
}

/* Заголовок "Останні статті" */
.infopage h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #19ABB4;
    margin: 0 0 0 0;
    padding: 12px 16px;
    border-radius: 10px 10px 0 0;
    letter-spacing: 0.3px;
}

/* Враппер карточек */
.infopage .row {
    margin: 0;
    border: 1px solid #e4f0ef;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: #f7fffe;
}

/* Карточка статьи */
.infopage .product-layout {
    width: 100%;
    padding: 0;
    float: none;
}

.infopage .product-thumb {
    background: #fff;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e4f0ef;
    transition: background 0.18s;
}

.infopage .product-thumb:last-child {
    border-bottom: none;
}

.infopage .product-thumb:hover {
    background: #f0f8f7;
}

/* Картинка */
.infopage .product-thumb .image {
    overflow: hidden;
    border-radius: 0;
}

.infopage .product-thumb .image a {
    display: block;
}

.infopage .product-thumb .image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.infopage .product-thumb:hover .image img {
    transform: scale(1.04);
}

/* Текстовая часть */
.infopage .product-thumb .caption {
    padding: 10px 14px 6px;
}

.infopage .product-thumb .caption h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.4;
}

.infopage .product-thumb .caption h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.infopage .product-thumb .caption h4 a:hover {
    color: #19ABB4;
}

.infopage .product-thumb .caption p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Кнопки */
.infopage .button-group {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 12px;
    border-top: 1px solid #e4f0ef;
    margin-top: 8px;
}

.infopage .button-group button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 11px;
    border: 1px solid #cde8e5;
    border-radius: 5px;
    background: #fff;
    color: #19ABB4;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

/* Первая кнопка "читати повністю" — акцентная */
.infopage .button-group button:first-child {
    background: #19ABB4;
    color: #fff;
    border-color: #19ABB4;
    flex: 1;
    justify-content: center;
}

.infopage .button-group button:first-child:hover {
    background: #277B80;
    border-color: #277B80;
}

/* Кнопки-иконки (дата / просмотры) */
.infopage .button-group button:not(:first-child) {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
}

.infopage .button-group button:not(:first-child):hover {
    background: #e4f0ef;
    color: #277B80;
}










/* ══════════════════════════════════════
    Article layout
══════════════════════════════════════ */
.blog-article {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Gallery (главное фото + допфото) ── */
.blog-article__gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-article__gallery-main {
    flex: 0 0 auto;
    /* width: 420px; */
    max-width: 100%;
}

.blog-article__gallery-main a {
    display: block;
    /* border-radius: 10px; */
    overflow: hidden;
    /* border: 1px solid #e4f0ef; */
}

.blog-article__gallery-main img {
    width: 100%;
    /* height: 280px; */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-article__gallery-main a:hover img {
    transform: scale(1.03);
}

.blog-article__gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-article__gallery-thumbs a {
    display: block;
    width: 90px;
    height: 68px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid #e4f0ef;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-article__gallery-thumbs a:hover {
    border-color: #009b8c;
    box-shadow: 0 2px 10px rgba(0,155,140,0.2);
}

.blog-article__gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .blog-article__gallery-main { width: 100%; }
    .blog-article__gallery-thumbs { flex-direction: row; flex-wrap: wrap; }
    .blog-article__gallery-thumbs a { width: 70px; height: 54px; }
    .blog-article__gallery-main img { height: 220px; }
}

/* ── Content ── */
.blog-article__content {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

.blog-article__content h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    line-height: 1.3;
}

.blog-article__content img {
    max-width: 100%;
    border-radius: 8px;
}

.blog-article__content a {
    color: #009b8c;
    text-decoration: underline;
}

/* ── Rating & meta ── */
.blog-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: #f7fffe;
    border: 1px solid #e4f0ef;
    border-radius: 10px;
}

.blog-article__stars {
    display: flex;
    gap: 3px;
}

.blog-article__stars svg {
    width: 18px;
    height: 18px;
}

.blog-article__stars svg.filled { color: #f5a623; }
.blog-article__stars svg.empty  { color: #ccc; }

.blog-article__meta-links {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.blog-article__meta-links a {
    color: #009b8c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-article__meta-links a:hover { color: #007a6d; }

.blog-article__meta-divider { color: #ccc; }

/* ── Downloads ── */
.blog-article__downloads {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: #f7fffe;
    border: 1px solid #e4f0ef;
    border-radius: 10px;
}

.blog-article__downloads-title {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.blog-article__download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #009b8c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.blog-article__download-link:hover { color: #007a6d; }

.blog-article__download-link svg {
    flex-shrink: 0;
    color: #009b8c;
}

/* ══════════════════════════════════════
    Related articles
══════════════════════════════════════ */
.blog-related__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e4f0ef;
}

.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1000px) { .blog-related__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .blog-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .blog-related__grid { grid-template-columns: 1fr; } }

.blog-related-card {
    background: #fff;
    border: 1px solid #e4f0ef;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.blog-related-card:hover {
    box-shadow: 0 6px 24px rgba(0,155,140,0.15);
    transform: translateY(-3px);
}

.blog-related-card__img-wrap {
    overflow: hidden;
    height: 150px;
}

.blog-related-card__img-wrap a { display: block; height: 100%; }

.blog-related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.blog-related-card:hover .blog-related-card__img { transform: scale(1.05); }

.blog-related-card__body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-related-card__title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.4;
}

.blog-related-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-related-card__title a:hover { color: #009b8c; }

.blog-related-card__desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-related-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #e4f0ef;
    margin-top: auto;
}

.blog-related-card__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #999;
}

.blog-related-card__meta svg { color: #009b8c; }

.blog-related-card__btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #009b8c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.blog-related-card__btn:hover { background: #007a6d; color: #fff; }

/* ══════════════════════════════════════
    Review form
══════════════════════════════════════ */
.blog-review {
    background: #f7fffe;
    border: 1px solid #e4f0ef;
    border-radius: 10px;
    padding: 24px;
}

.blog-review__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

/* Список отзывов */
#review { margin-bottom: 24px; }

/* Форма */
.blog-review__field {
    margin-bottom: 16px;
}

.blog-review__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.blog-review__input,
.blog-review__textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cde8e5;
    border-radius: 7px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.blog-review__input:focus,
.blog-review__textarea:focus {
    border-color: #009b8c;
    box-shadow: 0 0 0 3px rgba(0,155,140,0.1);
}

.blog-review__textarea { resize: vertical; min-height: 110px; }

/* Рейтинг радио */
.blog-review__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.blog-review__rating input[type="radio"] {
    accent-color: #009b8c;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.blog-review__hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.blog-review__submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    background: #009b8c;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s;
}

.blog-review__submit:hover { background: #007a6d; }

/* ── Magnific Popup overrides ── */
.mfp-bg { background: rgba(0,0,0,0.88); }
.mfp-title { color: #e0f5f3; font-size: 14px; padding-top: 8px; }
button.mfp-close { color: #009b8c; font-size: 36px; }
.mfp-arrow-right:before { border-left-color: #009b8c; }
.mfp-arrow-left:before  { border-right-color: #009b8c; }
