/* ==========================================================================
   ITS Home Solutions — Blog Template Stylesheet
   Depends on Bootstrap 5 grid/utilities. Loaded only on the Blogs page
   template (see inc/blog-template-setup.php).
   ========================================================================== */

:root {
  --its-orange: #F95F00;
  --its-orange-dark: #e05f00;
  --its-cream: #faf3ea;
  --its-ink: #1c1c1c;
  --its-muted: #6b6b6b;
  --its-glass-bg: rgba(255, 255, 255, 0.10);
  --its-glass-border: rgba(255, 255, 255, 0.6);
  --its-border: #e3ddd3;
  --its-navy: #0B1C3C;
  --its-status-green: #00b074;
  --its-font-instrument: "Instrument Sans", sans-serif;
  --its-font-mona: "Mona Sans", sans-serif;
  --its-font-dm: "DM Sans", sans-serif;
  --its-radius-card: 40px;
  --its-radius-image: 16px;
}

.its-blog-hero,
.its-blog-main,
.its-faq {
  font-family: var(--its-font-dm);
  color: var(--its-ink);
}

/* --------------------------------------------------------------------
   1. Hero / Page Title Banner
-------------------------------------------------------------------- */
.its-blog-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  background-color: var(--its-cream);
  background-image: linear-gradient(90deg, var(--its-cream) 0%, rgba(250, 243, 234, 0.55) 55%, rgba(250, 243, 234, 0) 100%),
    url("../images/hero-service-professional.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.its-blog-hero__overlay {
  display: none; /* reserved: enable for an extra scrim layer on darker hero photos */
}

.its-breadcrumbs {
  font-family: var(--its-font-dm);
  font-size: 0.9rem;
  color: var(--its-muted);
  margin-bottom: 12px;
}

.its-breadcrumbs a {
  color: var(--its-muted);
  text-decoration: none;
}

.its-breadcrumbs a:hover {
  color: var(--its-orange);
}

.its-breadcrumbs .is-current {
  color: var(--its-ink);
  font-weight: 600;
}

.its-blog-hero__title {
  font-family: var(--its-font-instrument);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--its-ink);
  margin: 0;
}

/* --------------------------------------------------------------------
   2. Main Content Split Section
-------------------------------------------------------------------- */
.its-blog-main {
  background-color: var(--its-cream);
}

.its-feed-heading__text h2 {
  font-family: var(--its-font-instrument);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  color: var(--its-ink);
  margin: 0;
}

.its-feed-heading__sub {
  max-width: 360px;
  color: var(--its-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Filter pills */
.its-filter-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.its-filter-pills::-webkit-scrollbar {
  display: none;
}

.its-pill {
  flex: 0 0 auto;
  border: 1px solid var(--its-border);
  background: #fff;
  color: var(--its-ink);
  font-family: var(--its-font-dm);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.its-pill:hover {
  border-color: var(--its-navy);
}

.its-pill.is-active {
  background-color: var(--its-navy);
  border-color: var(--its-navy);
  color: #fff;
}

/* Blog cards */
.its-blog-card {
  background: transparent;
}

.its-blog-card__thumb {
  display: block;
  border-radius: var(--its-radius-image);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.its-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.its-blog-card:hover .its-blog-card__thumb img {
  transform: scale(1.04);
}

.its-blog-card__meta {
  font-size: 0.85rem;
  color: var(--its-muted);
}

.its-blog-card__title {
  font-family: var(--its-font-instrument);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.its-blog-card__title a {
  color: var(--its-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.its-blog-card__title a:hover {
  color: var(--its-orange);
}

.its-blog-card__excerpt {
  color: var(--its-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.its-btn-outline {
  border: 1px solid var(--its-border);
  color: var(--its-ink);
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.its-btn-outline:hover {
  border-color: var(--its-orange);
  color: var(--its-orange-dark);
}

.its-badge {
  background: var(--its-cream);
  border: 1px solid var(--its-border);
  color: var(--its-ink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.its-no-posts {
  color: var(--its-muted);
  font-size: 0.95rem;
}

/* Pagination */
.its-pagination {
  display: flex;
  justify-content: center;
}

.its-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  border-radius: 999px;
  border: 1px solid var(--its-border);
  color: var(--its-ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.its-pagination .page-numbers.current {
  background: var(--its-navy);
  border-color: var(--its-navy);
  color: #fff;
}

/* --------------------------------------------------------------------
   Sidebar widgets
-------------------------------------------------------------------- */
.its-widget-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--its-border);
}

.its-widget-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.its-widget-card__head h4 {
  font-family: var(--its-font-instrument);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--its-ink);
  flex: 1;
}

.its-widget-card__icon {
  color: var(--its-muted);
  margin-left: 12px;
  margin-bottom: 10px;
}

/* Search widget */
.its-search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--its-border);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
}

.its-search-form__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--its-font-dm);
  font-size: 0.9rem;
  color: var(--its-ink);
}

.its-search-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--its-orange);
  flex: 0 0 auto;
  transition: background-color 0.2s ease;
}

.its-search-form__btn:hover {
  background: var(--its-orange-dark);
}

/* Recommended widget */
.its-recommended-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--its-border);
}

.its-recommended-item:first-child {
  padding-top: 0;
}

.its-recommended-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.its-recommended-item__link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.its-recommended-item__thumb {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.its-recommended-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.its-recommended-item__title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--its-ink);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.its-recommended-item__link:hover .its-recommended-item__title {
  color: var(--its-orange);
}

/* Categories widget */
.its-categories-list li {
  border-bottom: 1px solid var(--its-border);
}

.its-categories-list li:last-child {
  border-bottom: none;
}

.its-categories-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  text-decoration: none;
  color: var(--its-ink);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.its-categories-list a:hover {
  color: var(--its-orange-dark);
}

.its-categories-list__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--its-orange);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------
   3. FAQ Accordion Section
-------------------------------------------------------------------- */
.its-faq {
  background-color: var(--its-cream);
}

.its-faq__eyebrow {
  color: var(--its-orange-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.its-faq__title {
  font-family: var(--its-font-instrument);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.its-faq__body {
  color: var(--its-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.its-faq__cta {
  background: #fff;
  border-radius: var(--its-radius-image);
  border: 1px solid var(--its-border);
  padding: 28px;
}

.its-faq__cta h5 {
  font-family: var(--its-font-instrument);
  font-weight: 700;
  margin-bottom: 10px;
}

.its-faq__cta p {
  color: var(--its-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.its-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--its-orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.its-btn-primary:hover {
  background: var(--its-orange-dark);
  color: #fff;
}

/* Accordion */
.its-accordion__item {
  background: #fff;
  border: 1px solid var(--its-border);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.its-accordion__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: none;
  padding: 20px 24px;
  font-family: var(--its-font-instrument);
  font-weight: 600;
  font-size: 1rem;
  color: var(--its-ink);
  box-shadow: none !important;
}

.its-accordion__btn::after {
  filter: none;
}

.its-accordion__btn:not(.collapsed) {
  background: #fff;
  color: var(--its-ink);
}

.its-accordion__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--its-orange);
  flex: 0 0 auto;
}

.its-accordion .accordion-body {
  padding: 0 24px 22px 24px;
  color: var(--its-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   Responsiveness
   ========================================================================== */

/* Tablet: 768px – 1024px — adaptive spacing, no overlap */
@media (max-width: 1024px) {
  .its-blog-main .row.gy-5 {
    row-gap: 3rem !important;
  }

  .its-widget-card {
    padding: 20px;
  }

  .its-faq__cta {
    padding: 22px;
  }
}

/* Mobile: below 768px — stack columns, scrollable pills, 1-col grid */
@media (max-width: 767.98px) {
  .its-blog-hero {
    min-height: 260px;
    background-position: center right -60px;
  }

  .its-feed-heading {
    flex-direction: column;
  }

  .its-feed-heading__sub {
    max-width: 100%;
  }

  .its-filter-pills {
    flex-wrap: nowrap;
  }

  .its-blog-grid {
    --bs-gutter-x: 1.25rem;
  }

  .its-sidebar {
    margin-top: 8px;
  }

  .its-accordion__btn {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .its-faq .accordion-body {
    padding: 0 18px 18px 18px;
  }
}
