/* тільки для шаблону blog-page-template.php */
/* === Sidebar cards: only for blog-page-template.php === */
body.page-template-blog-page-template .sec-sn__sidebar .news-grid {
  display: grid;
  gap: 14px;
}

body.page-template-blog-page-template .sec-sn__sidebar .news-grid__item {
  padding: 12px;
  border: 1px solid #e9eef3;
  border-radius: 10px;
  background: #fff;
}

body.page-template-blog-page-template .sec-sn__sidebar .news-grid__img {
  height: 110px;
  overflow: hidden;
  border-radius: 8px;
}
body.page-template-blog-page-template .sec-sn__sidebar .news-grid__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Метадані дрібніші */
body.page-template-blog-page-template .sec-sn__sidebar .news-grid__meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #6b7a86;
}

body.page-template-blog-page-template .sec-sn__sidebar .news-grid__title {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: #003756;
  display: -webkit-box;
  -webkit-line-clamp: 2;     
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  body.page-template-blog-page-template .sec-sn__sidebar .news-grid__img { height: 90px; }
  body.page-template-blog-page-template .sec-sn__sidebar .news-grid__title { font-size: 13px; }
}

//Banner options

.sec-bnr-news__art {
  position: relative;
  background-image: var(--bnr-desktop), var(--bnr-bg);
  background-size: cover;
  background-position: center;
}
@media(max-width: 1024px) {
  .sec-bnr-news__art {
    background-image: var(--bnr-tablet), var(--bnr-bg);
  }
}
@media(max-width: 767px) {
  .sec-bnr-news__art {
    background-image: var(--bnr-mobile), var(--bnr-bg);
  }
}

/* MOBILE: compact wide card */
@media (max-width: 480px) {

  /* полотно зображення — робимо «низьку картку» */
  .sec-bnr-news__art {
    aspect-ratio: 21/12;             /* ~1.75:1 як у прикладі зі скріну */
    min-height: 180px;               /* щоб не став надто низьким */
    border-radius: 16px;
    background-position: center 40%; /* трохи вище центр, щоб текст не врізався */
  }

  /* легший градієнт, щоб не «з’їдав» фон на маленьких екранах */
  .sec-bnr-news__overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 100%),
      linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 55%);
  }

  /* контент щільніше, ближче до низу */
  .sec-bnr-news__content {
    inset: auto 0 0 0;
    padding: 14px 16px;
    gap: 8px;
  }

  /* дрібніший заголовок і баланс рядків */
  .sec-bnr-news__title {
    font-size: clamp(18px, 6vw, 24px);
    line-height: 1.15;
    max-width: 22ch;          /* не розповзався в ширину */
    text-wrap: balance;
    margin: 0;
  }

  /* eyebrow, якщо є */
  .sec-bnr-news__eyebrow {
    font-size: 12px;
    letter-spacing: .06em;
    opacity: .9;
  }

  /* чіпси тегів компактніші */
  .sec-bnr-news__tags {
    gap: 6px;
    margin-top: 6px;
  }
  .sec-bnr-news__tag {
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 999px;
  }
}
@media screen and (max-width: 850px) {
    .sec-bnr-news {
        margin-top: 0;
        height: 439px;
    }
}


/* Content */

.sec-bnr-news__content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #fff;
  max-width: 600px;
}
.sec-bnr-news__tags {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 10px 0 0;
}
.sec-bnr-news__tags li {
  background: rgba(0,0,0,.5);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
}




.sec-bnr-news__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: 12px;
  background: #eff1f5;
}

.sec-bnr-news__art {
  width: 100%;
  height: 100%;
  background-image: var(--bnr-mobile);
  background-size: cover;          
  background-position: center;     
  background-repeat: no-repeat;
  display: block;
  border-radius: inherit;
}

@media (min-width:640px) {
  .sec-bnr-news__img-wrap { aspect-ratio: 24/9; border-radius: 16px; }
  .sec-bnr-news__art { background-image: var(--bnr-tablet); }
}

@media (min-width:1024px) {
  .sec-bnr-news__img-wrap { aspect-ratio: 32/9; border-radius: 20px; }
  .sec-bnr-news__art { background-image: var(--bnr-desktop); }
}

@media (min-width:1024px){
  .sec-sn__sidebar { position: sticky; top: 96px; height: fit-content; }
}

/* карточки */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.news-grid__item { background: #fff; border: 1px solid #e9eef3; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,.04); overflow: hidden; }
.news-grid__img { aspect-ratio: 16/9; overflow: hidden; }
.news__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-grid__img-placeholder { width: 100%; aspect-ratio: 16/9; background: #eff1f5; }
.news-grid__meta { display: flex; gap: 8px; align-items: center; padding: 10px 12px 0; font-size: 12px; color: #6b7683; }
.news-grid__tag { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #f4f8ff; border: 1px solid #e6ecf7; font-weight: 600; color: #003857; }
.news-grid__date { opacity: .8; }
.news-grid__title { padding: 8px 12px 12px; font-size: 14px; line-height: 1.35; color: #003857; }

/* слайдер для мобайлу */
.news-slider { position: relative; }
.news-slider__btn { display: none; }

@media (max-width:1023px){
  .news-grid[data-mobile-slider].is-slider{
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 48px; 
    scroll-padding-left: 48px;
    scroll-padding-right: 48px;
  }
  .news-grid[data-mobile-slider].is-slider .news-grid__item{
    flex: 0 0 85%;
    scroll-snap-align: start;
    margin: 0;
  }
  .news-slider__btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 999px;
    border: 1px solid #e6ecf7;
    background: #fff;
    box-shadow: 0 6px 18px rgba(10,40,120,.08);
  }
  .news-slider__btn--prev { left: 8px; }
  .news-slider__btn--next { right: 8px; }
}


.b-note__wrap {
  display:flex;
  align-items:center;
  gap:16px;
  background:#F5F6F7; 
  border-radius:8px;
  padding:24px;
  margin: 1.5rem 0px;
}

.b-text__title{
    font-weight: 600;
color: #1A90AE;
}

.b-note__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.b-note__icon img {
  display: block;
  width: 14px;
  height: auto;
}


.b-note__text {
  color:#003756;     
  font-weight:600;
  font-size:16px;
  line-height:1.55;
}

.b-title__h {
  color:#1A90AE;  
  font-weight:600;
  font-size:22px;
  line-height:1.3;
  margin: 1.5rem 0px;
  border:none; 
}

@media (min-width:640px){
  .b-title__h{font-size:26px}
}
@media (min-width:1024px){
  .b-title__h{font-size:30px}
}

.b-subtitle__h {
  color:#1A90AE; 
  font-weight:600;
  font-size:18px;
  line-height:1.4;
  margin:8px 0 12px;
}

@media (min-width:640px){
  .b-subtitle__h{font-size:20px}
}
@media (min-width:1024px){
  .b-subtitle__h{font-size:22px}
}

.b-examples {
  margin-top: 24px;
}

.b-examples__title {
  color:#434343;
  font-weight:600;
  font-size:18px;
  line-height:1.35;
  margin:0 0 16px;
}

.b-examples__list {
  display:grid;
  gap:16px;
}

.b-examples__item {
  background:#ffffff;
position: relative;
  border-radius:8px;
  padding:18px 20px;
}
.b-examples__item::before {
  content:"";
  position:absolute;
  inset:0;
  border-radius:12px;
  padding:2px;
  background:linear-gradient(90deg, #68FFAE 0%, #22D4DF 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.b-examples__item-title {
  color:#434343;
  font-weight:600;
  font-size:18px;
  line-height:1.35;
  margin:0 0 12px;
}

.b-examples__item-text {
  color:#374957;
  font-size:16px;
  line-height:1.6;
}

@media (min-width:640px){
  .b-examples__title{font-size:20px;margin:0 0 18px;}
  .b-examples__item{padding:22px;}
}

@media (min-width:1024px){
  .b-examples__item-title{font-size:19px;}
}

.b-table .b-table__table{
  width:100%;
  border-collapse:collapse; 
  border-spacing:0;          
  font-size:16px;
  line-height:1.5;
  color:#434343;
}

.b-table .b-table__table th, .b-table .b-table__table td{
  border:1px solid #E0E0E0;
  padding:14px 18px;
  text-align:left;
  vertical-align:top;
  background:#fff;
}

.b-table .b-table__table tbody > tr:first-child > td{
  background:#A9D6DE; 
  font-weight:600;
  color:#003756;
}

.b-table .b-table__table td:first-child{
  font-weight:600;
  color:#434343;
}

.b-table .b-table__table tbody > tr:nth-child(n+2):nth-child(even) > td{
  background:#FAFAFA;
}

.b-table__wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.b-table__table {
  border-collapse: collapse;
  width: 100%;
  min-width: 700px; 
}

.b-table__table th,
.b-table__table td {
  padding: 14px 18px;
  border: 1px solid #E0E0E0;
  text-align: left;
  vertical-align: top;
  color: #434343;
  background: #fff;
}

.b-table__table thead th {
  background: #A9D6DE;
  font-weight: 600;
  color: #003756;
}

.sec-sn__content { min-width: 0; }

.sec-sn__sidebar { min-width: 0; }

.b-table__wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.b-table__table{
  width:100%;
  min-width:720px;  
  border-collapse:collapse;
  border-spacing:0;
  table-layout:auto; 
}

.b-table__table th,
.b-table__table td{
  word-break: break-word;
}

.b-case { margin: 32px 0; }

.b-case p{ margin: 0px; }

.b-case__title {
  color:#1A90AE; font-weight:700; font-size:26px; line-height:1.3; margin:0 0 16px;
}
@media(min-width:1024px){ .b-case__title{font-size:30px;} }

.b-case__intro {
  color:#434343; font-size:16px; line-height:1.65; margin:0 0 20px;
}

.b-case__list { margin:0 0 20px; padding:0; }
.b-case__li {
  color:#434343; font-size:16px; line-height:1.65; margin:0 0 22px;
}

.b-case--numbers .b-case__list { counter-reset:caseStep; list-style:none; }
.b-case--numbers .b-case__li {
  display:flex; gap:10px; align-items:center;
}
.b-case--numbers .b-case__li::before {
  counter-increment:caseStep;
  content:counter(caseStep) ".";
  color:#1A90AE; font-weight:600; flex:0 0 auto;
}

.b-case--checks .b-case__list { list-style:none; }
.b-case--checks .b-case__li {
  display:flex; gap:10px; align-items:flex-start;
}
.b-case--checks .b-case__li::before {
  content:""; flex:0 0 16px; height:16px; margin-top:4px;
  background:url('/wp-content/themes/elcore/assets/images/note-arrow.svg') no-repeat center/contain;
}

.b-case__result {
  position:relative; border-radius:12px; padding:18px 20px; background:#fff; margin: 24px 0px;
}
.b-case__result::before {
  content:""; position:absolute; inset:0; border-radius:12px; padding:2px;
  background:linear-gradient(90deg,#68FFAE 0%,#22D4DF 100%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
.b-case__result-title {
  font-weight:700; color:#003756; margin:0 0 6px;
}
.b-case__result-text {
  color:#434343; font-size:16px; line-height:1.65;
}

.b-cbanner__wrap {
  border-radius: 8px;
  padding: 32px 24px;
  background: linear-gradient(90deg, #1A90AE 0%, #22D4DF 73%, #68FFAE 100%);
  color: #fff;
}

.b-cbanner__title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.b-cbanner__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
}

@media (min-width:768px) {
  .b-cbanner__wrap {
    padding: 48px 40px;
  }
  .b-cbanner__title {
    font-size: 22px;
  }
  .b-cbanner__text {
    font-size: 18px;
  }
}
