/* Blog Section */
.blog {
  padding: 80px 0;
  background: #f8f9fa;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.blog-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border: 1px solid transparent;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), #ff6b35, #4ecdc4);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-image-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.blog-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-card:hover .blog-image-wrapper::after {
  opacity: 1;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  filter: brightness(1);
}

.blog-card:hover .blog-image {
  transform: scale(1.12) rotate(1deg);
  filter: brightness(1.1);
}

.blog-date-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  z-index: 2;
}

.blog-card:hover .blog-date-badge {
  background: var(--accent);
  color: white;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.blog-date-badge i {
  color: var(--accent);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-date-badge i {
  color: white;
}

.blog-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #ff6b35);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.blog-card:hover .blog-category::before {
  left: 100%;
}

.blog-card:hover .blog-category {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.4rem;
  color: var(--dark);
  line-height: 1.5;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
  transition: color 0.3s ease;
  position: relative;
}

.blog-card:hover h3 {
  color: var(--accent);
}

.blog-card h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff6b35);
  transition: width 0.4s ease;
}

.blog-card:hover h3::after {
  width: 50px;
}

.blog-excerpt {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #666;
}

.blog-author i {
  color: var(--accent);
  font-size: 1rem;
}

.blog-read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
}

.blog-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(255, 107, 53, 0.1));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-read-more {
  gap: 10px;
  color: #ff6b35;
}

.blog-card:hover .blog-read-more::before {
  opacity: 1;
}

.blog-read-more i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more i {
  transform: translateX(4px);
}

/* Loading State */
.blog-loading {
  text-align: center;
  padding: 60px 20px;
}

.blog-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f0f0f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
}

.blog-empty i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.blog-empty h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.blog-empty p {
  color: #666;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }

  .blog-card h3 {
    font-size: 1.25rem;
  }

  .blog-image-wrapper {
    height: 220px;
  }

  .blog-content {
    padding: 20px;
  }

  .blog {
    padding: 60px 0;
  }
}

/* Hero Section Enhancement */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(26, 95, 122, 0.9) 50%, rgba(212, 165, 116, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

/* Blog Section Enhancement */
.blog-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  min-height: 70vh;
}

.loading-indicator {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.loading-indicator i {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: var(--accent);
  animation: spin 1s linear infinite;
}

.loading-indicator p {
  font-size: 1.15rem;
  font-weight: 500;
  color: #999;
}

/* CTA Section */
.blog-cta {
  background: linear-gradient(135deg, #2D5016 0%, #1a5f7a 50%, #D4A574 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.blog-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 900;
  color: white;
}

.blog-cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 35px;
  opacity: 0.95;
  line-height: 1.8;
}

.blog-cta .btn {
  display: inline-block;
  background: white;
  color: #2D5016;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.blog-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
  background: #f5f5f5;
}

/* FAQ Section */
.faq {
  padding: 60px 0;
  background: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 40px auto;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 20px;
  background: var(--light-bg);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.faq-item.active .faq-question {
  background: #f5f5f5;
  color: var(--accent);
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-question i {
  transition: var(--transition);
  color: var(--accent);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--white);
}

.faq-answer p {
  padding: 20px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Newsletter Section */
.newsletter {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--dark), var(--accent));
  color: var(--white);
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--white);
}

.newsletter-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

#newsletterEmail {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter-form .btn {
  padding: 14px 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: var(--white);
  color: var(--accent);
}

.newsletter-form .btn:hover {
  background: #f0f0f0;
}

/* Reviews Section */
.reviews {
  padding: 60px 0;
  background: var(--light-bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.review-card {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.review-stars {
  color: #ffc107;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 3px;
}

.review-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 15px;
  font-style: italic;
}

.review-author {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}

/* Advanced Animations & Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Parallax effect for hero */
.packages-hero {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Smooth entrance animation */
.blog-grid {
  animation: fadeInUp 0.6s ease-out;
}

/* Staggered card animation */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Glassmorphism effect for sections */
.blog-content {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Interactive elements pulse */
.blog-read-more:active {
  animation: pulse 0.3s ease;
}

/* Gradient text effect */
.blog-card:hover h3 {
  background: linear-gradient(135deg, var(--accent), #ff6b35, #4ecdc4);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

/* Loading skeleton shimmer */
.blog-loading-spinner {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite, spin 1s linear infinite;
}

/* Scroll reveal effect */
.blog-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3D tilt effect on hover */
.blog-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.blog-card:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
}

/* Category badge glow effect */
.blog-category {
  box-shadow: 0 0 0 rgba(212, 165, 116, 0.4);
  transition: all 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover .blog-category {
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.6), 0 0 40px rgba(212, 165, 116, 0.3);
}

/* Image overlay effects */
.blog-image-wrapper {
  position: relative;
}

.blog-image-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f06e';
  font-size: 28px;
  color: var(--accent);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.blog-card:hover .blog-image-wrapper::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Smooth text reveal */
.blog-excerpt {
  position: relative;
  overflow: hidden;
}

.blog-excerpt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, transparent, white);
  opacity: 0.8;
}

/* Enhanced meta section */
.blog-meta {
  position: relative;
}

.blog-meta::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-meta::before {
  opacity: 1;
}

/* Author avatar placeholder */
.blog-author::before {
  content: '';
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #ff6b35);
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-author::before {
  transform: scale(1.1) rotate(5deg);
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  .packages-hero {
    background-attachment: scroll;
  }
  
  .blog-card:hover h3::after {
    width: 30px;
  }
}

.review-date {
  font-size: 0.9rem;
  color: #999;
}

/* Review Submission Form */
.add-review-section {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.add-review-section h3 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--dark);
  font-size: 1.8rem;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-form .form-group {
  display: flex;
  flex-direction: column;
}

.review-form label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.review-form input,
.review-form select,
.review-form textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.review-form textarea {
  resize: vertical;
  min-height: 120px;
}

.review-form .btn {
  padding: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  transition: var(--transition);
}

.review-form .btn:hover {
  background: #e55200;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog {
    padding: 40px 0;
  }

  .newsletter-content h2 {
    font-size: 1.8rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .add-review-section {
    padding: 20px;
  }

  .blog-grid {
    gap: 20px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 14px 15px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 15px;
  }

  .review-card {
    padding: 15px;
  }
}
