.bg-image {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: auto;
  object-fit: cover;
  z-index: -1;
}

.wp-block-image img,
.wp-block-media-text__media img {
  box-sizing: border-box;
  height: auto;
  height: 100%;
  max-height: 400px;
  max-width: 370px;
  object-fit: contain;
  vertical-align: bottom;
}

footer {
  margin-top: 0rem !important;
}

.post-link {
  color: #2b2b29;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  display: inline-block;
  width: 100%;
  padding: 1.5rem !important;
}

.menu-item-wrapper:hover .post-link {
  cursor: pointer;
  color: #580405;
  background: #eaeaea;
}

.menu-item-wrapper:hover .toggle-submenu i {
  color: #580405 !important;
}

.menu-item-wrapper:hover {
  background: #eaeaea;
  color: #580405;
}

.post-link.active {
  font-weight: bold;
  background: #eaeaea;
  color: #580405;
}

.menu-item-wrapper {
  position: relative;
}

.menu-item-wrapper a {
  font-size: 16px;
}

.toggle-submenu {
  background: none;
  border: none;
  color: #2b2b29;
  font-weight: bold;
  position: absolute;
  right: -5px;
  top: 10px;
  cursor: pointer;
}

.submenu {
  margin-left: 1rem;
  border-left: 2px solid #580405;
}

.submenu.hidden {
  display: none;
}

@media (max-width: 991px) {
  .submenu,
  .toggle-submenu {
    display: none;
  }

  .service-center {
    flex-direction: column;
  }
}

/******************************* */
/* GRID LAYOUT */
.children-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* CARD */
.child-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  height: 100%;
  min-height: 375px;
  border: 1px solid #eee;
}

.child-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.child-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f3f3;
}

.child-thumb img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  transition: transform 0.4s ease;
}

.child-card:hover .child-thumb img {
  transform: scale(1.05);
}

.child-thumb.no-thumb {
  background: linear-gradient(135deg, #f1f1f1, #e6e6e6);
}

/* BODY */
.child-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  /* flex-grow: 1; */
}

/* DATE */
.child-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* TITLE */
.child-title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  margin-bottom: 10px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* EXCERPT */
.child-excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-top: auto;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* TABLET */
@media (max-width: 991px) {
  .children-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 576px) {
  .children-grid {
    grid-template-columns: 1fr;
  }
}

/************************** */
/* Sidebar container */
.parents-menu {
  border-left: 1px solid #e5e5e5;
}

/* Base link */
.parent-link {
  position: relative;
  display: block;
  padding: 14px 16px !important;
  color: #2b2b29;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
  height: 70px;
  display: flex;
  align-items: center;
  align-content: center;
  font-size: 16px !important;
}

/* Hover */
.parent-link:hover {
  background: #f3f3f3;
  color: #580405;
}

/* Active */
.parent-link.active {
  font-weight: bold;
  background: #eaeaea;
  color: #580405;
  height: 70px;
  display: flex;
  align-items: center;
  align-content: center;
  font-size: 16px !important;
}

.parent-link:hover::before {
  width: 3px;
}

.parent-link.active::before {
  width: 3px;
}

/* wrapper center */
.pagination-wrapper {
  margin-top: 40px;
}

/* UL reset */
.pagination-wrapper .page-numbers {
  display: flex;
  gap: 8px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* links */
.pagination-wrapper .page-numbers li a,
.pagination-wrapper .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 5px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  color: #c90808;
  transition: all 0.2s ease;
}

/* hover */
.pagination-wrapper .page-numbers li a:hover {
  color: #a5a5a5 !important;
}

/* active page */
.pagination-wrapper .page-numbers li .current {
  background: #c9080800;
  color: #a5a5a5 !important;
  font-weight: 600;
}

/* prev next arrows */
.pagination-wrapper .page-numbers li .prev,
.pagination-wrapper .page-numbers li .next {
  font-weight: 600;
  padding: 0 16px;
}

/* dots (...) */
.pagination-wrapper .page-numbers li .dots {
  background: transparent;
  color: #999;
  pointer-events: none;
}
