/* Blog Post Animations & Video Styles */

/* Horizontal Scroll Layout */
.blog-slider {
  position: relative;
  overflow: hidden;
  margin: 0 -15px;
}

.blog-scroll-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px 15px;
  gap: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.blog-scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.blog-scroll-container {
  -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
  scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

/* Blog Post Items in Horizontal Layout */
.blog-scroll-container .blog-post-item {
  flex: 0 0 auto;
  width: 350px;
  margin: 0;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.blog-scroll-container .blog-post-item.wow.slideInLeft {
  opacity: 1;
  transform: translateX(0);
}

/* Blog Post Slide In Animation */
.blog-post-item {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.blog-post-item.wow.slideInLeft {
  opacity: 1;
  transform: translateX(0);
}

/* Video Container with Play Button */
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.video-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.video-container:hover img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

/* YouTube Play Button */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.video-container:hover .play-button {
  opacity: 1;
}

.play-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: rgba(255, 0, 0, 0.8);
  border-radius: 50%;
  color: white;
  font-size: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.play-button a:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

.play-button a i {
  margin-left: 3px; /* Slight offset to center play icon */
}

/* Blog Post Card Styling */
.blog-post-item {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.blog-post-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.post-thumb {
  position: relative;
}

.post-meta {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  opacity: 0;
  transition: all 0.3s ease;
}

.video-container:hover + .post-meta {
  opacity: 1;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: #f4d03f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  font-size: 16px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(244, 208, 63, 0.4);
}

.entry-header {
  padding: 20px 20px 10px;
}

.entry-header h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
}

.entry-header h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-header h3 a:hover {
  color: #f4d03f;
}

.date, .cetagory {
  font-size: 13px;
  color: #7f8c8d;
  margin-right: 10px;
}

.cetagory strong {
  color: #f4d03f;
  font-weight: 600;
}

.entry-content {
  padding: 0 20px 20px;
}

.entry-content p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.btn2 {
  display: inline-block;
  padding: 10px 20px;
  background: #f4d03f;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn2:hover {
  background: #2c3e50;
  color: #f4d03f;
  transform: translateY(-2px);
}

/* Specific styling for Small Space Living Solutions button */
.small-space-btn {
  margin-bottom: 10px !important;
}

.hvr-sweep-to-right {
  position: relative;
  overflow: hidden;
}

.hvr-sweep-to-right:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #2c3e50;
  transition: all 0.3s ease;
  z-index: -1;
}

.hvr-sweep-to-right:hover:before {
  width: 100%;
}

.hvr-sweep-to-right:hover {
  color: #f4d03f;
}

/* Blog Navigation Buttons */
.blog-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 10;
}

.blog-nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(244, 208, 63, 0.9);
  border: none;
  border-radius: 50%;
  color: #2c3e50;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.8);
}

.blog-slider:hover .blog-nav-btn {
  opacity: 1;
  transform: scale(1);
}

.blog-nav-btn:hover {
  background: #2c3e50;
  color: #f4d03f;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.blog-nav-btn:active {
  transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-scroll-container .blog-post-item {
    width: 300px;
  }
  
  .blog-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .video-container img {
    height: 180px;
  }
  
  .play-button a {
    width: 60px;
    height: 60px;
    font-size: 25px;
  }
  
  .entry-header h3 {
    font-size: 16px;
  }
  
  .entry-content p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .blog-scroll-container .blog-post-item {
    width: 280px;
  }
  
  .blog-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* Loading Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.blog-post-item.wow.slideInLeft {
  animation: slideInLeft 0.8s ease forwards;
}
