/*

Custom style

You can override the default class or style here

This file will not be overwritten by the updater

*/
img.lazyload,
img.loading {
  position: relative;
  display: inline-block;
  background: #f9f9f9;
  /* placeholder bg */
  min-height: 100px;
  /* reserve space */
}

/* Show SVG loader while loading */
img.loading::after {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 100 100'><circle cx='50' cy='50' r='40' stroke='%232196f3' stroke-width='10' fill='none' stroke-dasharray='200' stroke-dashoffset='0'><animateTransform attributeName='transform' type='rotate' dur='1s' repeatCount='indefinite' from='0 50 50' to='360 50 50'/></circle></svg>");
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

img.lazyloaded::after {
  display: none;
}

.footer_area {
  position: relative;
  z-index: 1;
  overflow: hidden;
  webkit-box-shadow: 0 8px 48px 8px rgba(47, 91, 234, 0.175);
  box-shadow: 0 8px 48px 8px rgb(19 11 24 / 58%);
  padding: 45px 60px 0px 60px;
}

.single-footer-widget {
  position: relative;
  z-index: 1;
}

.single-footer-widget .copywrite-text a {
  color: #747794;
  font-size: 1rem;
}

.single-footer-widget .copywrite-text a:hover,
.single-footer-widget .copywrite-text a:focus {
  text-decoration: underline;
}

.single-footer-widget .widget-title {
  margin-bottom: 1.5rem;
}

.single-footer-widget .footer_menu li a {
  color: #747794;
  margin-bottom: 1rem;
  display: block;
  font-size: 1rem;
}

.single-footer-widget .footer_menu li a:hover,
.single-footer-widget .footer_menu li a:focus {
  text-decoration: underline;
}

.single-footer-widget .footer_menu li:last-child a {
  margin-bottom: 0;
}

.footer_social_area {
  position: relative;
  z-index: 1;
}

.footer_social_area a {
  border-radius: 50%;
  height: 40px;
  text-align: center;
  width: 40px;
  display: inline-block;
  background-color: #f5f5ff;
  line-height: 40px;
  -webkit-box-shadow: none;
  box-shadow: none;
  margin-right: 10px;
}

.footer_social_area a i {
  line-height: 36px;
}

.footer_social_area a:hover,
.footer_social_area a:focus {
  color: #ffffff;
}


@-webkit-keyframes bi-cycle {
  0% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

@keyframes bi-cycle {
  0% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

ol li,
ul li {
  list-style: none;
}

ol,
ul {
  margin: 0;
  padding: 0;
}

@media only screen and (max-width: 600px) {
  .footer_area {
    padding: 15px;
  }

  .single-footer-widget {
    margin-top: 11%;
  }
}

/* 
 * Blog Card Design (Screenshot Adaptation)
 * Structure: Image Top, Content Box Overlapping Bottom
 */

/* 
 * Blog Card Design (Screenshot Adaptation)
 * A clean, modern card with an overlapping content box style.
 */

.blog-card {
  position: relative;
  border-radius: 20px;
  margin-bottom: 50px;
  /* Increased bottom margin for better spacing */
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
}

.blog-card-header {
  position: relative;
  height: 350px;
  /* Taller image area */
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  background-color: #2a2235;
  /* Fallback color */
}

.blog-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  /* Removes bottom space */
}

.blog-card:hover .blog-card-header img {
  transform: scale(1.1);
  /* Zoom effect on hover */
}

/* Author Pill Top Left */
.blog-author {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(33, 19, 40, 0.85);
  backdrop-filter: blur(8px);
  /* Glassmorphism */
  padding: 6px 14px 6px 6px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

/* Content Box Overlapping */
.blog-card-body {
  position: relative;
  width: 88%;
  margin: -80px auto 0;
  /* Clear overlap */
  background: #3b3255;
  /* Matches theme card/dropdown color */
  border-radius: 18px;
  padding: 25px 20px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  /* Deeper shadow */
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle border */
}

.blog-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #01b6ff;
  margin-bottom: 10px;
  font-weight: 700;
  display: inline-block;
  background: rgba(1, 182, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 5px 0 15px;
  line-height: 1.3;
  color: #fff;
}

.blog-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-title a:hover {
  color: #01b6ff;
}

.blog-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blog-meta i {
  color: #01b6ff;
}

/* Load More Button Style */
.load-more-container {
  margin-bottom: 3rem;
}

.load-more-container a {
  display: inline-block;
  background-color: #ee1327;
  color: #fff;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(238, 19, 39, 0.4);
}

.load-more-container a:hover {
  background-color: #c90f20;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 19, 39, 0.5);
}

/* Hide standard pagination */
.blog-pagination {
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .blog-card-header {
    height: 300px;
  }
}

@media (max-width: 768px) {

  /* Mobile styles */
  .blog-card {
    margin-bottom: 40px;
    max-width: 400px;
    /* Limit width on mobile */
    margin-left: auto;
    margin-right: auto;
  }

  .blog-card-header {
    height: 250px;
  }

  .blog-card-body {
    width: 92%;
    margin-top: -60px;
    padding: 20px 15px;
  }

  .blog-title {
    font-size: 1.1rem;
  }

  /* 
 * Single Post Responsiveness Fixes 
 */
  .single-post-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-details-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    /* Clean text color for dark mode reading */
  }

  /* Prevent horizontal scroll from long lines of code or pre tags */
  .blog-details-content pre {
    white-space: pre-wrap !important;
    /* css-3 */
    white-space: -moz-pre-wrap !important;
    /* Mozilla, since 1999 */
    white-space: -pre-wrap !important;
    /* Opera 4-6 */
    white-space: -o-pre-wrap !important;
    /* Opera 7 */
    word-wrap: break-word !important;
    /* Internet Explorer 5.5+ */
    overflow-x: auto;
    /* Add scrollbar if word-wrap fails or intentionally scrolling */
    max-width: 100%;
    background: #231b2e;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .blog-details-content code {
    word-wrap: break-word;
    max-width: 100%;
  }

  .blog-details-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
  }

  @media (max-width: 768px) {

    /* Single post mobile fixes */
    .single-post-article .entry-title {
      font-size: 1.8rem !important;
      /* Smaller title on mobile */
    }

    .blog-cards {
      max-width: 100%;
    }

    .blog-details-content {
      font-size: 1rem;
    }

    .post-navigation {
      flex-direction: column;
      gap: 20px;
      text-align: center;
    }

    .post-navigation .nav-links {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
  }