* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #000000;
  color: #c0c0c0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e0e0e0;
}

.logo::before {
  content: "🎺";
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: #c0c0c0;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 0.25rem;
}

/* Added active state styling for navigation links */
.nav-menu a.active {
  color: #25d366;
  font-weight: 600;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #25d366, #20ba5a);
  border-radius: 2px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.nav-menu a:hover {
  color: #e0e0e0;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-whatsapp:hover::before {
  opacity: 1;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20ba5a 0%, #1fa855 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.menu-toggle {
  display: none;
  background: rgba(192, 192, 192, 0.1);
  border: 1px solid rgba(192, 192, 192, 0.2);
  color: #e0e0e0;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  /* Added transition for smoother interaction */
  transition: all 0.3s ease;
}

/* Added hover state for menu toggle */
.menu-toggle:hover {
  background: rgba(192, 192, 192, 0.2);
  border-color: rgba(37, 211, 102, 0.5);
}

/* Added active state for menu toggle */
.menu-toggle:active {
  transform: scale(0.95);
}

/* Hero Section */
.hero {
  /* Added more top padding to create space from nav */
  padding: 6rem 0 4rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #c0c0c0;
}

.hero-text p strong {
  color: #e0e0e0;
}

.hero-features {
  list-style: none;
  margin: 2rem 0;
}

.hero-features li {
  padding: 0.5rem 0;
  color: #c0c0c0;
}

.hero-features li::before {
  content: "• ";
  color: #25d366;
  font-weight: bold;
  margin-right: 0.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.btn-web {
  background: #c0c0c0;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-web:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
}

.hero-cta span {
  color: #c0c0c0;
  font-size: 0.9rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.stars {
  color: #ffa500;
}

/* Added glowing animated frame to hero video */
.hero-image {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding: 4px;
  background: linear-gradient(45deg, #25d366, #20ba5a, #ffa500, #ff6b35, #25d366);
  background-size: 400% 400%;
  animation: gradientShift 3s ease infinite;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.6), 0 0 60px rgba(37, 211, 102, 0.4), 0 20px 60px rgba(0, 0, 0, 0.8);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-image::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #25d366, #20ba5a, #ffa500, #ff6b35, #25d366);
  background-size: 400% 400%;
  border-radius: 18px;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.7;
  animation: gradientShift 3s ease infinite;
}

.hero-image iframe {
  width: 100%;
  height: 700px;
  display: block;
  border: none;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  background: #000;
}

.hero-image video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Services Section */
.services {
  padding: 4rem 0;
  background: rgba(0, 0, 0, 0.5);
}

.services h2 {
  font-size: 2rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
  text-align: center;
}

.services-subtitle {
  text-align: center;
  color: #c0c0c0;
  margin-bottom: 3rem;
}

.services-wrapper {
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: rgba(40, 40, 40, 0.8);
  border: 2px solid rgba(192, 192, 192, 0.2);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 192, 192, 0.4);
  box-shadow: 0 10px 30px rgba(192, 192, 192, 0.1);
}

.service-card.active {
  border-color: #25d366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.service-card.featured {
  border-color: #ffa500;
  border-width: 3px;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffa500;
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
}

.service-card.featured .service-content {
  padding: 1rem 1.5rem;
  background: transparent;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* Add space for the badge at the top */
  padding-top: 2.5rem;
}

.service-card.featured .service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.service-card.featured .service-video {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #e0e0e0;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: #c0c0c0;
  font-size: 0.95rem;
}

.booking-form {
  background: rgba(40, 40, 40, 0.9);
  border: 2px solid #25d366;
  border-radius: 16px;
  padding: 2rem;
  display: none;
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 2rem auto 0;
  width: 100%;
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.2);
}

.booking-form.active {
  display: block;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-form h3 {
  color: #e0e0e0;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.booking-form .selected-service {
  color: #25d366;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #e0e0e0;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #25d366;
}

.form-group input::placeholder {
  color: #808080;
}

.btn-submit {
  width: 100%;
  background: #25d366;
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.cta-button {
  text-align: center;
  margin-top: 3rem;
}

/* Recomendaciones Section */
.recomendaciones {
  padding: 4rem 0;
  background: rgba(0, 0, 0, 0.5);
}

.recomendaciones h2 {
  font-size: 2rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
  text-align: center;
}

.recomendaciones-subtitle {
  text-align: center;
  color: #c0c0c0;
  margin-bottom: 3rem;
}

.recomendaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-bottom: 3rem;
}

.recomendacion-card {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  width: 100%;
  max-width: 320px;
}

.recomendacion-card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 192, 192, 0.4);
  box-shadow: 0 10px 30px rgba(192, 192, 192, 0.1);
}

.video-wrapper {
  width: 100%;
  position: relative;
  background: #000;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.recomendacion-text {
  padding: 1rem;
  color: #c0c0c0;
  text-align: center;
}

/* Facebook Reviews Carousel */
.facebook-reviews {
  margin-top: 4rem;
}

.facebook-reviews h3 {
  font-size: 1.8rem;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 2rem;
}

.reviews-carousel-container {
  position: relative;
  padding: 0 60px;
}

/* Improved carousel to ensure horizontal scrolling with better visibility */
.reviews-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 211, 102, 0.5) rgba(40, 40, 40, 0.3);
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
}

.reviews-carousel::-webkit-scrollbar {
  height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
  background: rgba(40, 40, 40, 0.3);
  border-radius: 10px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
  background: rgba(37, 211, 102, 0.5);
  border-radius: 10px;
}

.reviews-carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 211, 102, 0.7);
}

.review-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 320px;
  max-width: 380px;
  min-height: 280px;
  max-height: 320px;
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.review-info h4 {
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.review-stars {
  color: #ffa500;
  font-size: 0.9rem;
}

.review-text {
  color: #c0c0c0;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-date {
  display: flex;
  align-items: center;
  color: #808080;
  font-size: 0.85rem;
}

.facebook-badge {
  background: #1877f2;
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(37, 211, 102, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  color: #fff;
}

.carousel-arrow:hover {
  background: rgba(37, 211, 102, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.carousel-arrow-left {
  left: 0;
}

.carousel-arrow-right {
  right: 0;
}

/* Service Modal */
.service-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.service-modal.active {
  display: block;
}

.service-modal-content {
  background: rgba(20, 20, 20, 0.98);
  margin: 3% auto;
  padding: 0;
  border: 2px solid rgba(192, 192, 192, 0.3);
  border-radius: 16px;
  width: 90%;
  /* Reduced max-width from 1400px to 800px to eliminate empty space */
  max-width: 800px;
  position: relative;
  animation: slideDown 0.4s ease-out;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.service-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #e0e0e0;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.8);
  transition: all 0.3s;
}

.service-modal-close:hover {
  background: rgba(255, 0, 0, 0.8);
  transform: rotate(90deg);
}

.service-modal-body {
  /* Changed to single column centered layout */
  display: flex;
  justify-content: center;
  align-items: center;
  /* Reduced padding for more compact look */
  padding: 2rem 2rem 2.5rem 2rem;
}

.service-modal-container {
  width: 100%;
  /* Reduced max-width from 700px to 100% to use full available space */
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-modal-title {
  color: #e0e0e0;
  font-size: 2rem;
  text-align: center;
  margin: 0;
}

.selected-service-modal {
  color: #25d366;
  font-size: 1.3rem;
  text-align: center;
  font-weight: 600;
  margin: 0;
}

.service-modal-video {
  /* Removed padding, video is now centered in single column */
  width: 100%;
  padding: 0;
}

.service-modal-video iframe,
.service-modal-video video {
  width: 100%;
  /* Reduced video height from 500px to 400px for better proportion */
  height: 400px;
  border-radius: 12px;
}

.service-modal-cta {
  /* Added CTA section styling with centered content */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: rgba(40, 40, 40, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.cta-description {
  color: #c0c0c0;
  text-align: center;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.6;
}

.service-modal-cta .btn-submit {
  width: 100%;
  max-width: 400px;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  font-size: 1.5rem;
}

.service-modal-cta .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #20ba5a 0%, #1fa855 100%);
}

.service-modal-cta .btn-submit:active {
  transform: translateY(-1px);
}

/* Removed old modal form styles that are no longer needed */


/* Responsive modal */
@media (max-width: 968px) {
  .service-modal-body {
    padding: 2rem;
  }

  .service-modal-container {
    max-width: 100%;
  }

  .service-modal-video iframe,
  .service-modal-video video {
    /* Adjusted mobile video height */
    height: 300px;
  }

  .service-modal-title {
    font-size: 1.5rem;
  }

  .selected-service-modal {
    font-size: 1.1rem;
  }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Adjusted hero image for tablets */
  .hero-image iframe {
    height: 500px;
  }
}

@media (max-width: 768px) {

  /* Fixed navigation menu mobile behavior */
  nav {
    position: relative;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    z-index: 999;
  }

  /* Show menu when active */
  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for better effect on grids */
.services-grid .scroll-reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.services-grid .scroll-reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.services-grid .scroll-reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.services-grid .scroll-reveal:nth-child(5) {
  transition-delay: 0.4s;
}

.services-grid .scroll-reveal:nth-child(6) {
  transition-delay: 0.5s;
}

.recomendaciones-grid .scroll-reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.recomendaciones-grid .scroll-reveal:nth-child(3) {
  transition-delay: 0.2s;
}


/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
  padding: 4rem 0 2rem;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.5rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.1rem;
  color: #c0c0c0;
}

/* Blog Content Layout */
.blog-content {
  padding: 3rem 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

/* Blog Posts */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Featured Post */
.featured-post {
  background: rgba(40, 40, 40, 0.8);
  border: 2px solid #25d366;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

.featured-post .post-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.featured-post .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post .post-content {
  padding: 2rem;
}

/* Regular Blog Posts */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.blog-post {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-post:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 192, 192, 0.4);
  box-shadow: 0 10px 30px rgba(192, 192, 192, 0.1);
}

.post-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-post:hover .post-image img {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #25d366;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.post-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-content h2,
.post-content h3 {
  margin-bottom: 1rem;
}

.post-content h2 a,
.post-content h3 a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
}

.post-content h2 a:hover,
.post-content h3 a:hover {
  color: #25d366;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #808080;
}

.post-date,
.post-author,
.post-reading-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-content p {
  color: #c0c0c0;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.read-more {
  color: #25d366;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  color: #20ba5a;
  transform: translateX(5px);
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.pagination-btn {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(192, 192, 192, 0.2);
  color: #c0c0c0;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.pagination-btn:hover {
  background: rgba(60, 60, 60, 0.9);
  border-color: #25d366;
  color: #e0e0e0;
}

.pagination-btn.active {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  cursor: default;
}

/* Added pagination dots styling */
.pagination-dots {
  color: #808080;
  padding: 0 0.5rem;
  font-weight: bold;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.sidebar-widget h3 {
  color: #e0e0e0;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #25d366;
}

/* Search Widget */
.blog-search-form {
  display: flex;
  gap: 0.5rem;
}

.blog-search-form input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #e0e0e0;
  font-size: 1rem;
}

.blog-search-form input:focus {
  outline: none;
  border-color: #25d366;
}

.blog-search-form button {
  background: #25d366;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.blog-search-form button:hover {
  background: #20ba5a;
}

/* Categories Widget */
.categories-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.categories-list li a {
  color: #c0c0c0;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.categories-list li a:hover {
  background: rgba(37, 211, 102, 0.1);
  color: #e0e0e0;
  transform: translateX(5px);
}

.categories-list li a span {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Popular Posts Widget */
.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 0.5rem; /* Add vertical scroll for popular posts */
}

/* Add custom scrollbar styling for popular posts */
.popular-posts-list::-webkit-scrollbar {
  width: 6px;
}

.popular-posts-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.popular-posts-list::-webkit-scrollbar-thumb {
  background: #25d366;
  border-radius: 10px;
}

.popular-posts-list::-webkit-scrollbar-thumb:hover {
  background: #20ba5a;
}

.popular-post {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

.popular-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Fixed image sizing for popular posts */
.popular-post-image {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popular-post-content {
  flex: 1;
  min-width: 0;
}

.popular-post-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.popular-post-content h4 a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
}

.popular-post-content h4 a:hover {
  color: #25d366;
}

.popular-post-date {
  font-size: 0.8rem;
  color: #808080;
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(32, 186, 90, 0.1) 100%);
  border: 2px solid #25d366;
}

.cta-widget h3 {
  border-bottom-color: #25d366;
}

.cta-widget p {
  color: #c0c0c0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cta-widget .btn-whatsapp {
  width: 100%;
  text-align: center;
  display: block;
  margin-bottom: 1rem;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cta-features p {
  color: #c0c0c0;
  font-size: 0.9rem;
  margin: 0;
  text-align: left;
}

/* Newsletter Widget */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #e0e0e0;
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #25d366;
}

.newsletter-form button {
  background: #25d366;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-form button:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    order: 2;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .featured-post .post-image {
    height: 250px;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Better mobile display for popular posts */
  .popular-post-image {
    width: 70px;
    height: 55px;
  }
  
  .popular-post-content h4 {
    font-size: 0.85rem;
  }
}
