/* =========================================
   1. Admin Bar & Navigation / Адмін-бар та Навігація
   ========================================= */
#wpadminbar {
  position: fixed !important;
}

.header {
  top: calc(0 + var(--wp-admin--admin-bar--height, 0px));
}

.blog-navigation {
  top: calc(6.25rem + var(--wp-admin--admin-bar--height, 0px));
}

@media (max-width: 47.9988em) {
  .blog-navigation {
    top: calc(5.3125rem + var(--wp-admin--admin-bar--height, 0px));
  }
}

.text_underline {
  text-decoration: underline;
  text-underline-position: under;
  text-underline-offset: 0.2;
  /* color: var(--color-secondary-text); */
  /* font-weight: 500; */
}

/* =========================================
   2. General Utility & AJAX States / Загальні утиліти
   ========================================= */
.active-click {
  pointer-events: all !important;
}

.ajax-blog-list {
  transition: opacity 0.2s ease;
}

.ajax-blog-list.is-loading {
  opacity: 0.4;
}

.card-blog__empty {
  text-align: center;
}

.footer .socials__item svg {
  margin: 0 !important;
}

/* =========================================
   3. Forms (Contact Form 7) / Форми
   ========================================= */
.wpcf7 .wpcf7-form {
  position: relative;
}

.wpcf7 .wpcf7-form.form_modal .button {
  justify-self: start !important;
}

.wpcf7 .row-center {
  display: flex;
  justify-content: center;
}

/* Spinner */
.wpcf7 .wpcf7-spinner {
  position: absolute;
  top: calc(50% - 24px);
  left: calc(50% - 24px);
  margin: 0 !important;
}

/* Response Output (Success/Error messages) */
.wpcf7 .wpcf7-response-output {
  margin: 20px 0 !important;
  padding: 14px 10px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 62px;
  border-radius: var(--border-radius-xs);
  text-align: center;
  border-width: 1px !important;
}

.wpcf7 .wpcf7-not-valid-tip {
  font-size: 14px;
  margin-left: 10px;
}

/* Acceptance Checkbox Styling */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item label span {
  color: #05153799;
  align-self: center;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  gap: 0.625rem;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item label span:after {
  display: none;
}

/* Custom Checkbox Box */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item label span:before {
  content: '';
  display: block;
  position: relative;
  inset-block-start: 0.1875rem;
  align-self: flex-start;
  flex: 0 0 1rem;
  inline-size: 1rem;
  block-size: 1rem;
  background-color: var(--white-color);
  border: 0.09375rem solid #696f83;
}

/* Checked State with SVG Icon */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item input:checked + span:before {
  background-color: #696f83;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOSIgaGVpZ2h0PSI3IiB2aWV3Qm94PSIwIDAgOSA3IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMC41MzU3MDYgMy4zOTI3OUwzLjAzNTcgNS44OTI3OUw4LjAzNTcgMC41MzU2NDUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMS4wNzE0MyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=);
  background-repeat: no-repeat;
  background-position: center center;
}

/* =========================================
   4. Lists & Links / Списки та Посилання
   ========================================= */
/* Custom Section List with Dots */
.section-list {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  padding-top: 10px;
  text-align: left;
}

.section-list li {
  display: flex;
  row-gap: 8px;
  position: relative;
  padding-left: 20px;
}

.section-list li:before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-secondary-text);
}

@media (max-width: 61.9988em) {
  .section-list {
    padding-top: 20px;
  }
}

/* Link Blocks */
.block-links ul {
  display: flex;
  flex-direction: column;
  row-gap: 2px;
}

.block-links ul li a {
  display: inline-flex;
  gap: 8px;
}

/* "Read More" Style Links */
.results__more {
  font-weight: 500;
  position: relative;
  transition: all 0.3s;
}

.results__more::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  transition: all 0.3s;
  background-color: currentColor;
}

.results__more:hover {
  color: var(--color-secondary-text);
}

.results__more:hover::before {
  background-color: var(--color-secondary-text);
}

/* =========================================
   5. Blog Listing & Cards / Блог та Картки
   ========================================= */

.archive-posts-page {
  background: var(--color-bg-light-200);
}

.our-blog-section__header {
  margin-bottom: 30px;
}

.cards-section__subtitle {
  max-width: 900px;
  text-align: center;
  margin: auto;
  font-weight: 500;
}

/* Card Styling */

.our-blog-list .card-blog {
  list-style: none !important;
  display: flex;
  flex-direction: column;
  align-items: start;
  border-radius: 40px;
}

/* First card takes 2 columns */
.our-blog-list .card-blog:first-child {
  grid-column: span 2;
}

.our-blog-list .card-blog .text {
  flex: 1 1 auto !important;
}

.our-blog-list .card-blog__top {
  width: 100%;
}

@media (max-width: 61.9988em) {
  .our-blog-list {
    grid-template-columns: 1fr;
  }
  .our-blog-list .card-blog:first-child {
    grid-column: span 1;
  }
  .our-blog-list {
    row-gap: 12px;
  }
  .our-blog-list .card-blog {
    border-radius: 24px;
  }
}

/* =========================================
   6. Single Post & Article Cases / Сторінка статті
   ========================================= */
/* Content Elements */
.post-content iframe {
  height: auto;
}

.post-content-logo {
  height: 8rem;
}

.post-content-logo img {
  object-fit: contain;
  object-position: center;
  margin: 0;
}

/* Labels/Tags */
.post-content-labels__title {
  display: flex;
  align-items: center;
  column-gap: 5px;
  font-weight: 500;
}

.post-content-labels__title:not(:last-child) {
  margin-bottom: 15px;
}

.post-content-labels__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 15px;
  row-gap: 5px;
  color: var(--color-secondary-text);
  padding: 0 !important;
}

.post-content-labels__item {
  list-style: none !important;
  font-weight: 500;
  border: 1px solid var(--color-secondary-text);
  padding-inline: 1rem;
  padding-block: 0.625rem;
  border-radius: 6.25rem;
}

/* Cases Layout */
.article-section-cases {
  display: block;
}

.article-section-cases__heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* text-align: center; */
  margin-bottom: 42px;
}

.article-section-cases__heading h1 {
  font-size: 32px;
  font-weight: 700;
}

.article-section-cases__heading .post-thumbnail-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  margin-block: 2.75rem;
}

.article-section-cases .post-content img,
.article-section-cases .post-content iframe {
  aspect-ratio: unset;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* =========================================
   7. Social Media / Соціальні мережі
   ========================================= */
.socials__item a svg path {
  transition: all 0.3s ease;
}

.socials__item a:hover svg path {
  fill: var(--color-secondary-text);
}

.block-social .socials ul {
  row-gap: 5px;
  column-gap: 15px;
  flex-wrap: wrap;
  text-transform: capitalize;
  align-items: start;
}

.block-social .socials ul li {
  flex: 0 0 auto;
  inline-size: unset;
  block-size: unset;
  transform: unset !important;
}

.block-social .socials ul li a {
  display: grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 5px;
}

.block-social .socials ul li a svg path {
  fill: var(--color-bg-brand);
}

/* Placeholder for hover state if needed */
.block-social .socials ul li a:hover {
}

.what-we-do .what-we-do__block > .title {
  text-align: center;
}

.what-we-do .what-we-do__container .content {
  text-align: left;
}

.two-columns .two-columns__content .content {
  text-align: left;
}

.two-columns .label-advantages {
  justify-content: start;
}

@media (max-width: 47.9988em) {
  .cards-section__subtitle {
    text-align: left;
  }
  .title_center,
  .content_center {
    text-align: left;
    align-self: flex-start;
  }
}
