/**
 * Custom Component Styles for EuroLift
 */

.service-icon {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}




.service-link:hover {
  background-color: #e0a800;
  border-color: #d39e00;
  color: #000;
}


.testimonial-quote p {
  font-style: italic;
  color: #555;
  line-height: 1.6;
}

.rating .fa-star {
  font-size: 1.2rem;
  margin: 0 2px;
}

/* Contact Form Styling */
.contact-form-section {
  background-color: #2c3e50;
  color: white;
}

.contact-features li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contact-item {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.map-wrapper {
  min-height: 500px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* Latest Articles Carousel */
.latest-articles-carousel-section {
  background-color: #fff;
}

.latest-article-slide .card {
  margin: 0 auto;
  max-width: 400px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .contact-page-wrapper .row {
    flex-direction: column-reverse;
  }
  
  .map-wrapper {
    min-height: 300px;
  }
  
  .testimonial-card {
    margin: 0 15px;
  }
}


.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}


.latest-card .field--name-field-featured-image {
  margin-bottom: 1rem;
}

.latest-card .field--name-field-featured-image img {
  border-radius: 0.375rem;
}



/* Latest Carousel Styling */
.latest-carousel-section {
  background-color: #ffffff !important;
  padding: 3rem 0;
}

.testimonials-carousel-section {
  background-color: #ffffff !important;
  padding: 3rem 0;
}

.latest-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 300px; /* Changed from max-height to min-height */
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.latest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15) !important;
}

.testimonial-card {
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15) !important;
}

.latest-card article {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.latest-card h2 {
  font-size: 1.25rem !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.3;
}

.latest-card h2 a {
  text-decoration: none;
  color: #333;
}

.latest-card .node__meta {
  font-size: 0.75rem !important;
  color: #6c757d !important;
  margin-bottom: 0.75rem !important;
}

.latest-card .field--name-field-featured-image {
  margin-bottom: 1rem !important;
  max-height: 300px;
  overflow: hidden;
}

.latest-card .field--name-field-featured-image img,
.latest-card .field--name-field-service-icon img {
  border-radius: 0.375rem;
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  max-height: 240px !important;
}

.latest-card .field--name-field-service-name,
.latest-card .field--name-field-service-features,
.latest-card .field--name-field-service-gallery {
  display: none !important;
}

.latest-card .field--name-field-service-description,
.latest-card .field--name-field-description,
.latest-card .field--name-field-content {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.latest-card .truncated-text {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: block !important;
  word-wrap: break-word;
}

.latest-card .truncated-text::after {
  content: "...";
  color: #999;
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
  .latest-card {
    min-height: auto !important; /* Remove fixed height on mobile */
    height: auto !important;
  }
  
  .latest-card .field--name-field-featured-image img,
  .latest-card .field--name-field-service-icon img {
    height: 130px !important; /* Smaller images on mobile */
    max-height: 130px !important;
  }
  
  .latest-card h2 {
    font-size: 1.1rem !important;
  }
  
  .latest-card .truncated-text {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }
  
  .carousel-item {
    min-height: auto !important;
  }
}

@media (max-width: 576px) {
  .latest-carousel-section .col-lg-8 {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .latest-card {
    padding: 1rem !important;
  }
}

.source-content {
  display: none !important;
}

.source-content article.profile {
  display: none !important;
}

.source-content article:not(.node) {
  display: none !important;
}

.carousel-indicators [data-bs-target] {
  background-color: #007bff;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  color: #007bff;
}


/* Carousel Custom Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #007bff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.latest-card .field--name-field-project__client-name {
  font-size: 0.8rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Service Section Styling */
.services-section {
  background-color: #ffffff;
  padding: 3rem 0;
}

.service-card {
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15) !important;
}

.service-card .card-body {
  background: transparent !important;
}


/* Customer avatar styling */
.customer-avatar {
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.customer-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50%;
}



.service-card .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 10px;
}

.service-card .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-icon-wrapper img {
  max-width: 80px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.service-title {
  color: #333;
  font-weight: 600;
}

.service-title a {
  color: inherit;
}

.service-title a:hover {
  color: #ffc107;
}

.service-link {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
  font-weight: 500;
}


.service-description {
  color: #666;
  line-height: 1.5;
}


/* Responsive adjustments */
@media (max-width: 991px) {
  .services-section .views-row {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  .services-section .views-row {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Service card height consistency */
.services-section .service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-section .service-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* Icon sizing and spacing */
.services-section .service-icon {
  margin-bottom: 1.5rem;
}

.services-section .service-icon img {
  max-width: 60px;
  height: auto;
}


/* Enhanced card styling */
.services-section .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  background: #fff;
}

.services-section .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Icon container styling */
.services-section .service-icon {
  width: 80px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 50%;
}

/* Add horizontal gutter inside each grid column */
.services-section .views-view-grid .views-col {
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 15px;
  padding-bottom: 15px;
  box-sizing: border-box; / keep the 33.333% width from overflowing
}
/* Equal-height columns */
.services-section .views-view-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Each Views column should participate in height stretching */
.services-section .views-view-grid .views-col {
  display: flex; / allow inner card to stretch
  flex: 0 0 33.333%;
  max-width: 33.333%;
  box-sizing: border-box;
}

/* Responsive column counts (optional) */
@media (max-width: 991px) {
  .services-section .views-view-grid .views-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 767px) {
  .services-section .views-view-grid .views-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Make the card fill its column height */
.services-section .views-view-grid .views-col .service-card {
display: flex;
flex-direction: column;
height: 100%; /* stretch to match tallest */
}

/* Equal height service cards - WORKING SOLUTION */
body.path-frontpage .services-section .views-view-grid .views-col .service-card,
.page-node .services-section .views-view-grid .views-col .service-card,
.services-section .views-view-grid .views-col .service-card {
  min-height: 400px !important;
  height: 400px !important;
  display: flex !important;
  flex-direction: column !important;
}

body.path-frontpage .services-section .service-card .card-body,
.page-node .services-section .service-card .card-body,
.services-section .service-card .card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: center !important;
  padding: 2.5rem 2rem !important;
}

/* Perfect text alignment and spacing */
.services-section .service-icon {
  margin-bottom: 1.5rem !important;
  flex-shrink: 0 !important;
}

.services-section .service-title {
  margin-bottom: 1.2rem !important;
  flex-shrink: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
}

.services-section .service-description {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
/* Mobile-specific fixes for service cards */
@media (max-width: 767px) {
  /* Fix card width and spacing on mobile */
  .services-section .views-view-grid .views-col {
    flex: 1 1 280px !important;
    max-width: 100% !important;
    min-width: 280px !important;
    margin: 0 auto !important;
    padding: 10px 15px !important;
  }
  
  /* Adjust card height for mobile */
  body.path-frontpage .services-section .views-view-grid .views-col .service-card,
  .page-node .services-section .views-view-grid .views-col .service-card,
  .services-section .views-view-grid .views-col .service-card {
    min-height: 320px !important;
    height: auto !important;
  }
  
  /* Increase title font size and fix text wrapping */
  .services-section .service-title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    text-align: center !important;
  }
  
  /* Adjust card body padding for mobile */
  body.path-frontpage .services-section .service-card .card-body,
  .page-node .services-section .service-card .card-body,
  .services-section .service-card .card-body {
    padding: 1.5rem 1rem !important;
  }
  
  /* Adjust description text for mobile */
  .services-section .service-description {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
  
  /* Ensure icons are properly sized on mobile */
  .services-section .service-icon {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 1rem !important;
  }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .services-section .views-view-grid .views-col {
    flex: 1 1 300px !important;
    max-width: 48% !important;
    min-width: 280px !important;
  }
  
  .services-section .service-title {
    font-size: 1.3rem !important;
  }
}

/* Ultra-specific CSS for service card titles - will override everything */
html body.path-frontpage .services-section .service-title,
html body .page-node .services-section .service-title,
html body .services-section .views-view-grid .views-col .service-card .service-title {
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin-bottom: 1.2rem !important;
  color: #333 !important;
}

/* Mobile-specific title sizing with maximum specificity */
@media (max-width: 767px) {
  html body.path-frontpage .services-section .service-title,
  html body .page-node .services-section .service-title,
  html body .services-section .views-view-grid .views-col .service-card .service-title {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
}

/* Tablet-specific title sizing */
@media (min-width: 768px) and (max-width: 991px) {
  html body.path-frontpage .services-section .service-title,
  html body .page-node .services-section .service-title,
  html body .services-section .views-view-grid .views-col .service-card .service-title {
    font-size: 1.7rem !important;
  }
}
