/*
 Theme Name:   Chemid Child
 Theme URI:    https://example.com/chemid-child/
 Description:  A child theme for the Chemid theme.
 Author:       Your Name
 Author URI:   https://example.com
 Template:     chemid
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  chemid-child
*/

.tmnf_menu li.menu-item-has-children > a::after {
    color: #fff !important;
}



.tmnf_menu .sub-menu {
    background-color: #ffffff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

a:hover {
    text-decoration: none;
}

#footer .sidebar_item  ul li {
    
    border-style: none;
}

/* -----------------------------------
   RESET — Remove glow from all dots
----------------------------------- */
.timeline-item::before {
  animation: none;
}

/* -----------------------------------
   ACTIVE GLOW — Only nearest item
----------------------------------- */
.timeline-item.active-glow::before {
  animation: pulseGlow 2s infinite ease-in-out;
}

.timeline-item.active-glow .content {
  border-color: #007bff;
  box-shadow: 0 0 18px rgba(0, 123, 255, 0.25);
}

/* Glow Animation */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); }
  50% { box-shadow: 0 0 22px rgba(0, 123, 255, 0.35); }
  100% { box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); }
}

/* -----------------------------------
   Timeline container & line
----------------------------------- */
.esg-timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px 0;
}

.esg-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #e5eaf0;
  border-radius: 2px;
}

/* -----------------------------------
   Timeline Items base
----------------------------------- */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 50px 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* Reveal animation */
.timeline-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Left / Right slide */
.timeline-item.left {
  left: 0;
  text-align: right;
  transform: translateX(-60px);
}
.timeline-item.right {
  left: 50%;
  transform: translateX(60px);
}
.timeline-item.left.reveal {
  transform: translateX(0);
}
.timeline-item.right.reveal {
  transform: translateX(0);
}

/* -----------------------------------
   Dot (center circle)
----------------------------------- */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 25px;
  width: 20px;
  height: 20px;
  background: #007bff;
  border-radius: 50%;
  border: 4px solid white;
}

.timeline-item.left::before { right: -10px; }
.timeline-item.right::before { left: -10px; }

/* -----------------------------------
   Content Box
----------------------------------- */
.content {
  background: white;
  border: 2px solid #e5eaf0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.content:hover {
  background: #f5faff;
  border-color: #007bff;
  transform: translateY(-4px);
}
.content h3 {
  color: #007bff;
  font-size: 20px;
  margin-bottom: 10px;
}
.content p {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

/* -----------------------------------
   Mobile Responsive
----------------------------------- */
@media (max-width: 768px) {
.esg-timeline::before { left: 10px; }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 40px;
    padding-bottom: 50px;
    padding-top: 50px;

    /* Mobile animation starting state */
    opacity: 0;
    transform: translateX(60px);  /* slide-in from right */
    transition: all 0.8s ease;
  }

  .timeline-item::before {
    left: -2px !important;
  }

  /* Reveal animation for ALL items */
  .timeline-item.reveal {
    opacity: 1;
    transform: translateX(0);
  }

  /* Disable left/right desktop transforms on mobile */
  .timeline-item.left,
  .timeline-item.right {
    transform: translateX(60px);
  }
}