body, html {
  overflow-x: hidden;
  margin-top: 50px;
  margin-bottom: 30px;
  padding: 0;
  box-sizing: border-box;
}

/* Latest Updates Section */
.latest-updates-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: transparent !important;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: block;
}

/* Slider container */
.slider-container {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  padding: 20px 0;
  box-sizing: border-box;
}

/* Updates slider */
.updates-slider {
  display: flex;
  transition: transform 0.3s ease;
  gap: 20px;
  will-change: transform;
  box-sizing: border-box;
  padding: 0 10px;
}

/* Update cards */
.update-card {
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: grab;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e1e5e9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
}

/* Update card hover effect */
.update-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Arrow Buttons */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

/* Arrow hover effect */
.slider-arrow:hover {
  background: #077A7D;
  color: #fff;
  border-color: #077A7D;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* Arrow positions */
.slider-arrow-left { left: 10px; }
.slider-arrow-right { right: 10px; }

/* Tablet responsive */
@media (max-width: 768px) {
  .slider-container {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  padding: 20px 0;
  box-sizing: border-box;
  margin-top: -50px;
  margin-bottom: -50px;
}
  .update-card {
    min-height: 160px;
    padding: 20px;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid #d1d5db;
    color: #077A7D;
  }

  /* Arrow hover tablet */
  .slider-arrow:hover {
    background: transparent;
    color: #077A7D;
    border-color: #d1d5db;
    transform: translateY(-50%) scale(1.1);
  }

  .slider-arrow-left { left: 10px; }
  .slider-arrow-right { right: 10px; }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .update-card {
    min-height: 130px;
    padding: 10px 40px;
    margin: 0 auto;
  }
  .update-card h3 {
    font-size: 16px;
    margin: -12px;
    color: #077A7D;
  }

.update-heading {
  display: block;     
  margin: 0 auto;       
  text-align: center;         
  background-color: #fff;
  color: #077A7D !important;  
  padding: 3px 10px;

  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 24px !important;

  transform-origin: center center;
  animation: pinnedBounce 2s infinite ease-in-out;
  width: fit-content; 

  position: relative; /* normal flow তে থাকবে */
  z-index: 10;        /* content এর উপরে থাকবে */
}



  .update-card p {
    font-size: 12px;  /* description */
  }

  .update-card small {
    font-size: 10px; 
    color: #9e9d9d;
  }
}



/* Extra small devices */
@media (max-width: 360px) {
  .update-card {
    min-height: 130px;
    padding: 12px;
    margin: 0 auto;
  }
}

/* Dark mode */
html.dark-mode {
  background: #1e293b;
}
html.dark-mode .update-heading {
  background: #1e293b;
  color: #fff !important;
}

html.dark-mode .update-card {
  background: #1e293b;
  border: 1px solid #333;
  border-color: rgba(255, 255, 255, 0.1);
  color: #ddd;
}

html.dark-mode .update-card h3 {
  color: #fff;
}

html.dark-mode .update-card p,
html.dark-mode .update-card small {
  color: #aaa;
}

html.dark-mode .slider-arrow {
  background: #1e293b;
  color: #ddd;
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .slider-arrow:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}
