/* About Preview Section */
.about-preview-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #eef6ee 0%, #ebedf1 100%);
  position: relative;
  overflow: hidden;
}

.about-preview-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.about-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  display: block;
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 14px;
}

.section-title {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto 20px;
}

.decorative-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.decorative-icon {
  width: 36px;
  height: 36px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 16px;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--gray-text);
  line-height: 1.6;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* About Visual Section */
.about-visual {
  position: relative;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.grid-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.grid-item.main-item {
  grid-column: span 2;
  height: 300px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
}

.overlay-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.overlay-content i {
  font-size: 18px;
  color: var(--secondary-color);
}

.visual-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.badge-content {
  background: var(--primary-color);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(53, 76, 62, 0.3);
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.badge-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.badge-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* About Details */
.about-intro {
  margin-bottom: 40px;
}

.about-intro h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-text);
  margin-bottom: 15px;
}

.about-features {
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--primary-color), #2a3d32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.feature-content h4 {
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-content p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.5;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.stat-item {
  text-align: center;
  padding: 15px;
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-text);
  font-weight: 600;
}

.about-services {
  margin-bottom: 40px;
}

.about-services h4 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 500;
  border: 1px solid rgba(53, 76, 62, 0.1);
  transition: all 0.3s ease;
}

.service-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.service-tag i {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.service-tag:hover i {
  color: white;
}

.about-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.about-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
}

@media (max-width: 576px) {
  .about-cta {
    flex-direction: column;
  }
  
  .about-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .about-preview-section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-description {
    font-size: 16px;
  }
  
  .visual-grid {
    gap: 15px;
  }
  
  .grid-item {
    height: 200px;
  }
  
  .grid-item.main-item {
    height: 250px;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .stat-item {
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .stat-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  .feature-item {
    padding: 15px;
    gap: 15px;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
  }
  
  .stat-item:last-child {
    border-bottom: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .visual-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 20px;
  }
  
  .badge-content {
    display: inline-block;
  }
}

/* Animation for feature items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.feature-item:nth-child(1) {
  animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
  animation-delay: 0.3s;
}
/* Blog Section - Mobile Fixes */
@media (max-width: 768px) {
  .blog-section {
    padding: 60px 20px;
  }
  
  .blog-carousel-container {
    padding: 0 10px;
    margin: 0 -10px;
  }
  
  .blog-carousel {
    gap: 20px;
    padding: 10px 0;
    margin: 0;
  }
  
  .blog-card {
    flex: 0 0 100%;
    min-width: 100%;
    margin: 0 10px;
    opacity: 1;
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  }
  
  .blog-card:hover {
    transform: translateY(-5px);
  }
  
  /* Fix image container */
  .blog-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
  }
  
  .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
  }
  
  .blog-card:hover .blog-image img {
    transform: scale(1.05);
  }
  
  /* Adjust content */
  .blog-content {
    padding: 20px;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .blog-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  
  .blog-excerpt {
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
  }
  
  /* Adjust carousel controls for mobile */
  .carousel-controls {
    display: none; /* Hide arrows on mobile - use swipe instead */
  }
  
  .carousel-indicators {
    margin-top: 20px;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .blog-section {
    padding: 50px 15px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-description {
    font-size: 15px;
    padding: 0 10px;
  }
  
  .blog-image {
    height: 180px;
  }
  
  .blog-content {
    padding: 15px;
  }
  
  .blog-title {
    font-size: 17px;
  }
  
  .blog-excerpt {
    font-size: 13px;
  }
  
  .blog-link {
    font-size: 13px;
  }
  
  .btn-large {
    padding: 14px 30px;
    font-size: 16px;
  }
  
  .cta-note {
    font-size: 13px;
    padding: 0 10px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .blog-image {
    height: 160px;
  }
  
  .blog-content {
    padding: 12px;
  }
  
  .blog-title {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 24px;
  }
}

/* Add these new styles to fix image display */
.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Ensure proper aspect ratio on all screens */
.blog-image {
  aspect-ratio: 16/9;
}

@media (max-width: 768px) {
  .blog-image {
    aspect-ratio: 16/10;
  }
}

/* Fix carousel width on mobile */
.blog-carousel {
  width: 100%;
  scroll-snap-type: x mandatory;
}

.blog-card {
  scroll-snap-align: start;
}

/* Improve touch scrolling */
.blog-carousel {
  -webkit-overflow-scrolling: touch;
}

/* Add visual scroll hint on mobile */
@media (max-width: 768px) {
  .blog-carousel::after {
    content: '';
    flex: 0 0 20px;
  }
}

/* Fix the hover effects for mobile */
@media (hover: hover) and (pointer: fine) {
  .blog-card:hover .blog-image img {
    transform: scale(1.1);
  }
  
  .blog-card:hover {
    transform: translateY(-10px);
  }
}

/* For touch devices, use active state instead of hover */
@media (hover: none) and (pointer: coarse) {
  .blog-card:active {
    transform: scale(0.98);
    transition: transform 0.2s ease;
  }
}