/*
 Theme Name:   GP Newspaper Pro
 Description:  GeneratePress Child theme for mobile responsive blog website. Using this GP Newspaper Pro theme you can easily create a blog website. This GP Newspaper Pro Child theme design by Prajwal N S.
 Author:       Prajwal N S
 Template:     generatepress
 Version:      1.2
*/

.main-navigation {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
.inb-scroll-menu {
  background: white;
  display: block !important;
  color: black;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  position: fixed;
  box-shadow: 0 3px 4px rgb(0 0 0 / 13%) !important;
  z-index: 10000;
  border-top: 1px solid #ccc;
}
.page-header-image-single .attachment-full {
  box-shadow: rgba(23, 43, 99, 0.3) 0 7px 28px;
  border-radius: 16px;
  margin-bottom: -5px;
  transition: opacity 0.3s ease-in-out;
}
/* GeneratePress Site CSS */
.auto-width.gb-query-loop-wrapper {
  flex: 1;
}
@media (min-width: 768px) {
  .sticky-container > .gb-inside-container,
  .sticky-container {
    position: sticky;
    top: 80px;
  }
  #right-sidebar .inside-right-sidebar {
    height: 100%;
  }
}
select#wp-block-categories-1 {
  width: 100%;
}
/* Rank MathCSS */
.rank-math-breadcrumb p {
  background: #e5e8ec;
  color: #000000;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .rank-math-breadcrumb p {
    margin: 0px 10px;
  }
}
/*Table of contents*/
#toc_container li a {
  display: block;
  width: 100%;
  color: var(--link-text);
  padding: 10px 1em;
  border-top: 1px solid #aaa;
}
#toc_container {
  background: #f9f9f900;
  border: 1px solid #aaa;
  padding: 0px;
}
#toc_container span.toc_toggle {
  font-weight: 400;
  background: #fff;
  padding: 3px 20px;
  font-size: 18px;
  text-transform: capitalize;
  text-align: center;
  display: block;
}
/*Post Date*/
.post-dates {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-1);
}
/*WhatsApp and Teligram*/
.whatsapphighlight {
  animation: pns-GreenBorderAnimation 1s infinite;
}
@keyframes pns-GreenBorderAnimation {
  0% {
    border-color: transparent;
  }
  50% {
    border-color: #25d366;
  }
  100% {
    border-color: transparent;
  }
}
.telegramhighlight {
  animation: pns-BlueBorderAnimation 1s infinite;
}
@keyframes pns-BlueBorderAnimation {
  0% {
    border-color: transparent;
  }
  50% {
    border-color: #0086ce;
  }
  100% {
    border-color: transparent;
  }
}

/* Social Share */
.pns-social-wrapper {
  margin: 0px 20px 20px 20px;
  font-size: 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
}

.pns-social-sharing {
  padding: 8px;
  margin: 4px;
  border-radius: 3px;
  flex: 1;
  transition: background-color 0.3s, transform 0.3s;
}

.pns-social-sharing:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
  .pns-social-sharing {
    display: inline-block;
  }
}

.pns-social-sharing svg {
  vertical-align: middle;
  display: inline-block;
}

.pns-social-facebook {
  fill: #fff;
  background-color: #3b5998;
}

.pns-social-twitter {
  fill: #fff;
  background-color: #000;
}

.pns-social-whatsapp {
  fill: #fff;
  background-color: #25d366;
}

.pns-social-telegram {
  fill: #fff;
  background-color: #027ebd;
}

.pns-social-more {
  fill: #fff;
  background-color: #000;
}

.pns-social-more:hover {
  background-color: #000;
}

/* Hide on mobile*/
@media (max-width: 768px) {
  .generate-back-to-top {
    display: none;
  }
}

/* Optional: Customize */
.generate-back-to-top,
.generate-back-to-top:visited {
  border-radius: 6px;
  transition: opacity 0.3s ease-in-out;
}

/*sticky footer menu*/
@media only screen and (min-width: 960px) {
  .sticky-footer-menu {
    display: none !important;
  }
}
.sticky-footer-menu {
  position: fixed;
  height: 60px;
  width: 100%;
  bottom: 0;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  z-index: 23235;
}
/* Style tag elements */
.tag-text a {
  display: inline-block;
  padding: 5px 5px;
  margin: 0 5px 5px 0;
  background-color: #f1f1f1;
  border-radius: 3px;
  font-size: 0.9em;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}
.tag-text a:hover {
  background-color: #e1e1e1;
  color: #000;
  text-decoration: underline;
}
/* Progress Bar Container */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 9999;
  backdrop-filter: blur(2px);
}
/* Animated Progress Line */
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}
/* Circular Indicator */
.progress-indicator {
  position: absolute;
  right: -10px;
  top: -4px;
  width: 12px;
  height: 12px;
  background: #6366f1;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.reading-progress {
  height: 5px;
}
.progress-indicator {
  top: -5px;
}
/* floating social share */
.floating-socials {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  opacity: 0;
  animation: slideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 1s;
}

.social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-icons li a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.social-icons li a:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icons li a:hover:before {
  opacity: 1;
}

.social-icons li a svg {
  width: 20px;
  height: 20px;
  fill: white;
  transition: transform 0.3s ease;
}

.social-icons li a:hover svg {
  transform: scale(1.2);
}

/* Social Colors */
.facebook {
  background: #1877f2;
}
.twitter {
  background: #1d1d1d;
}
.pinterest {
  background: #bd081c;
}
.linkedin {
  background: #0a66c2;
}
.whatsapp {
  background: #25d366;
}

/* Hover Effects */
.social-icons li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile & Tablet Hide */
@media (max-width: 1024px) {
  .floating-socials {
    display: none;
  }
}

/* Scroll Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Scroll Triggered Animation */
.floating-socials.scrolled {
  animation: fadeInUp 0.6s ease forwards;
}
