/* ....................... Header Css.................. */
.site-header {
  margin: 0px 0px 30px 0px !important;
  padding: 30px 0 !important;
  background-color: #f0f0f0 !important;
  width: 100%;
  position: fixed !important;
  top: 0;
  z-index: 999 !important;
}

.site-content {
  padding-top: 145px;
}

.cm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.cm-header-left {
  width: 20%;
}

.cm-header-right {
  width: 80%;
}

a.cm-logo-link:focus,
.cm-menu li a:focus,
.cm-secondary-footer-menu li a:focus,
.as-pm-footer-contact a:focus {
  outline: 0px;
}

.cm-site-title {
  font-size: 34px;
  font-weight: 700;
  color: #000;
}

.cm-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 25px;
}

.cm-menu li a,
.cm-secondary-footer-menu li a {
  text-decoration: none;
  font-weight: 500;
  color: #000000;
  font-size: 18px;
}

.cm-menu li a:hover,
.cm-secondary-footer-menu li a:hover {
  color: #000000;
}

/* .......... Droupdown Css............ */
.cm-menu li.menu-item-has-children > a {
  position: relative;
  padding-right: 20px;
}

.cm-menu li.menu-item-has-children > a::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 55%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #a0a0a0;
}

.cm-menu li.menu-item-has-children > a::before {
  content: " ";
  position: absolute;
  bottom: -26px;
  left: calc(50% - 13px);
  z-index: 111;
  border-style: solid;
  border-width: 0 8px 11px 8px;
  border-color: #fff0 #fff0 #fff #fff0;
  filter: drop-shadow(0 -2px 2px rgb(0 0 0 / 0.06));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease-in;
}

.cm-menu li {
  position: relative;
}

.cm-menu li ul {
  position: absolute;
  top: 50px;
  left: -20px;
  background: #ffffff;
  min-width: 200px;
  opacity: 0;
  z-index: 999;
  list-style: none;
  visibility: hidden;
  transition: opacity 0.6s ease-in;
}

.cm-menu li ul::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.cm-menu li ul li a {
  display: block;
  padding: 10px 20px;
  color: #000;
  font-size: 18px;
}

.cm-menu li ul li a:hover {
  background: #f0f0f0;
}

.cm-menu li.menu-item-has-children:hover > ul {
  opacity: 1;
  visibility: visible;
}

.cm-menu li.menu-item-has-children:hover > a::before {
  opacity: 1;
  visibility: visible;
}

/* .cm-menu li:hover > ul,
.cm-menu li.menu-item-has-children:hover > a::before {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
} */
/* ............. Mobile Menu Bar............... */
.cm-menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}
/*................... Responsive (Mobile) ................. */

@media (max-width: 768px) {
  .cm-header-inner {
    padding: 0 20px;
  }

  .cm-header-left,
  .cm-header-right {
    width: 50%;
  }

  .cm-menu {
    flex-direction: column;
    gap: 0;
  }

  .cm-menu li {
    border-bottom: 1px solid #eee;
  }

  .cm-menu li a {
    padding: 12px 0;
    display: block;
  }

  .cm-menu li ul {
    position: static;
    margin: 0px !important;
  }

  .cm-menu li.menu-item-has-children > ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
  }

  .cm-menu li.menu-item-has-children.active > ul {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
  }

  .cm-menu li.menu-item-has-children > a::after {
    font-size: 14px;
    color: #bcbcbc;
  }

  .cm-menu li.menu-item-has-children > a::before {
    display: none !important;
  }

  .cm-menu li ul li a {
    padding-left: 18px;
    font-size: 16px;
    color: #000000;
  }

  .cm-menu li ul li {
    border-bottom: 1px solid #eee;
  }

  .cm-menu li ul li:last-child {
    border-bottom: none;
  }

  .cm-menu-toggle {
    text-align: right;
  }

  .cm-header-right {
    margin-top: 10px;
  }

  .cm-menu-toggle {
    display: block;
  }

  .cm-primary-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    transition: left 0.8s ease;
    background: #ffffff;
    padding: 20px;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .cm-primary-nav.active {
    left: 0;
  }
}

@media (max-width: 425px) {
  .cm-site-title {
    font-size: 28px;
  }
}

/* ........................... Footer CSS ................... */
.as-pm-custom-footer {
  background: #ffffff;
  width: 100%;
  color: #000;
  border-top: 1px solid #dfe1ea;
}

.as-pm-footer-widgets {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0px;
}

.as-pm-footer-column {
  flex: 1;
  max-width: 25%;
}

.as-pm-footer-logo {
  margin-bottom: 15px;
}

.as-pm-footer-social {
  display: flex;
  gap: 10px;
}

.as-pm-footer-social a i {
  font-size: 24px;
  color: #000000;
}

.as-pm-footer-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #000000;
}

.cm-secondary-footer-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.as-pm-footer-about {
  font-size: 18px;
  color: #000;
  line-height: 1.6;
}
.as-pm-footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.as-pm-footer-contact a {
  font-size: 18px;
  color: #000;
  line-height: 1.6;
  transition: 0.8s ease;
}

.as-pm-footer-contact a:hover {
  color: #000;
}

.as-pm-footer-contact i {
  color: #000;
  font-size: 16px;
  margin-top: 7px;
}

.as-pm-footer-bottom {
  text-align: center;
  padding: 8px 0;
  font-size: 18px;
  color: #000000;
  background-color: #f0f0f0 !important;
}

.as-pm-footer-bottom p {
  margin: 0;
}

@media (max-width: 992px) {
  .as-pm-footer-column {
    flex: 1 1 calc(50% - 40px);
    max-width: calc(50% - 40px);
  }
}

@media (max-width: 768px) {
  .as-pm-footer-widgets {
    padding: 50px 20px;
  }
  .as-pm-footer-column {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ........................ post single page desing ................... */
/* ............... Single Header css .............. */
.pkm-post-category a:focus,
.single-post .pkm-post-breadcrumb a:focus,
.blog .pkm-post-breadcrumb a:focus,
.category .pkm-post-breadcrumb a:focus,
.pkm-other-articles .pkm-prev-article a:focus,
.pkm-other-articles .pkm-prev-article .pkm-article-content h4 a:focus,
.pkm-other-articles .pkm-next .pkm-article-content h4 a:focus,
.pkm-other-articles .pkm-next a:focus,
.pkm-archive-wrapper .pkm-archive-blog .pkm-archive-image a:focus,
.pkm-archive-wrapper .pkm-archive-blog .pkm-archive-content h4 a:focus,
.pkm-archive-wrapper .pkm-archive-blog .pkm-archive-content a:focus,
.pkm-pagination .page-numbers:focus {
  outline: 0px !important;
}

.single-post .page_name,
.blog .page_name,
.category .page_name {
  display: none;
}

.pkm-post-single-wrapper,
.pkm-post-archive-wrapper {
  margin: 50px 0;
}

.pkm-hero-image {
  position: relative;
  margin-bottom: 50px;
}

.pkm-hero-image img {
  width: 100%;
  border-radius: 20px;
}

.pkm-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}

.pkm-hero-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  max-width: 70%;
  z-index: 10;
}

.pkm-post-category {
  margin-bottom: 8px;
}

.pkm-post-category a {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
  font-weight: 600;
}

.pkm-post-breadcrumb {
  color: #ffffff;
  font-weight: 600;
}

.pkm-post-breadcrumb a {
  color: #41c9ff;
}

.pkm-post-title {
  margin: 30px 0;
}

.pkm-post-title .pkm-span {
  background: #fff;
  color: #000;
  padding: 0 4px;
  border: 5px solid #fff;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
}
/* ................. single content .............. */
.pkm-content-area p {
  margin-bottom: 16px;
  text-align: justify;
}

.single-next-prev-posts-container {
  padding: 50px 0;
  border-top: 1px solid #dfe1ea;
  border-bottom: 1px solid #dfe1ea;
  margin: 50px 0;
}

.single-next-prev-posts-title {
  font-weight: 800;
  margin-bottom: 30px;
}

.pkm-other-articles {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.pkm-article {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 50%;
  text-decoration: none;
  color: #000;
}

.pkm-article img {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
}

.pkm-article-content {
  max-width: 300px;
}

.pkm-nav-label {
  font-size: 14px;
  color: #555;
  display: block;
  margin-bottom: 6px;
}

.pkm-article-content a {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #000;
  text-decoration: none;
  transition: color 0.4s ease;
}

.title-animation-underline {
  position: relative;
  display: inline;
  color: #000;
  text-decoration: none;
  background-image: linear-gradient(#41c9ff, #41c9ff);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition:
    background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
    color 0.4s ease;
}

.title-animation-underline:hover {
  background-size: 100% 2px;
  background-position: 0 100%;
  color: #41c9ff;
}

.pkm-next {
  justify-content: flex-end;
  text-align: right;
}

/* ........... Related Post ............. */
.pkm-related-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
}

.pkm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pkm-related-image {
  overflow: hidden;
  border-radius: 10px;
}

.pkm-related-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pkm-related-post-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 14px;
  transition: 0.8s ease;
}

.pkm-related-link:hover .pkm-related-image img {
  transform: scale(1.06);
}

/* ............... archive page ............ */
.pkm-archive-blog {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.pkm-archive-image {
  flex: 0 0 30%;
}

.pkm-archive-image img {
  border-radius: 20px;
  width: 100%;
  height: 250px;
  object-position: center;
  display: block;
  object-fit: cover;
}

.pkm-archive-title a {
  color: #000000;
  font-size: 28px;
  font-weight: 600;
}

.pkm-article-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 6px;
}

.pkm-article-excerpt {
  font-size: 16px;
  line-height: 28px;
  color: #555;
  margin-bottom: 22px;
}

.pkm-read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: color 0.8s ease;
}

.pkm-read-more span {
  transition: transform 0.8s ease;
}

.pkm-read-more:hover,
.pkm-read-more:hover svg {
  color: #41c9ff;
  fill: #41c9ff;
}

.pkm-read-more:hover span {
  transform: translateX(6px);
}

.pkm-pagination {
  margin-bottom: 50px;
}

.pkm-pagination .pagination {
  border: 0px !important;
}

.pkm-pagination .page-numbers {
  padding: 10px 14px;
  text-decoration: none;
  color: #000000 !important;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  margin: 0 5px !important;
  transition: ease 0.1s;
}

.pkm-pagination .page-numbers:hover {
  background-color: #41c9ff;
  color: #fff !important;
  border-color: #41c9ff;
}

.pkm-pagination .current {
  background-color: #41c9ff;
  color: #fff !important;
  border-color: #41c9ff;
}

@media (max-width: 1024px) {
  .pkm-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pkm-related-image img {
    height: 250px;
  }
}

@media (max-width: 991px) {
  .pkm-archive-blog {
    gap: 30px;
  }

  .pkm-archive-title a {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .pkm-post-single-wrapper,
  .pkm-post-archive-wrapper {
    margin: 25px 0;
  }

  .pkm-hero-overlay {
    position: absolute;
    bottom: 0px;
    left: 15px;
    max-width: 80%;
    z-index: 10;
  }

  .pkm-hero-image img {
    height: 100%;
    max-height: 400px;
    object-fit: cover;
  }

  .pkm-post-title .pkm-span {
    font-size: 28px;
  }

  .pkm-hero-image {
    margin-bottom: 25px;
  }

  .pkm-other-articles {
    flex-direction: column;
  }

  .pkm-article {
    width: 100%;
  }

  .pkm-next {
    justify-content: flex-start;
    text-align: left;
  }

  .pkm-archive-blog {
    flex-direction: column;
    align-items: flex-start;
  }

  .pkm-archive-image {
    width: 100%;
  }

  .pkm-archive-title a {
    font-size: 18px;
  }

  .pkm-pagination .page-numbers {
    margin: 0px !important;
    padding: 8px 10px;
  }
}

@media (max-width: 576px) {
  .pkm-related-grid {
    grid-template-columns: 1fr;
  }

  .pkm-related-image img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .pkm-archive-title a {
    font-size: 16px;
  }

  .pkm-article-excerpt {
    font-size: 14px;
  }
}
