﻿/* Industries Section - Normal Grid (No Scroll) */

.industries-section {
  /* padding: 80px 0; */
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}

/* Normal grid layout - NO SCROLLBAR */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  overflow: visible; /* Remove scroll */
}

/* Cards */
.views-row {
  width: 100%;
}

.industry-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  transition: 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.industry-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.5s;
}

.industry-card:hover .industry-image img {
  transform: scale(1.05);
}

.industry-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.industry-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.industry-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.learn-more a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.learn-more a:hover {
  color: #004999;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop */
@media (max-width: 1200px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 25px;
  }
}

/* Tablet Landscape */
@media (max-width: 992px) {
  .industries-section { padding: 60px 0; }
  
  .industries-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px;
  }
  
  .industry-image img { height: 200px; }
  .industry-content { padding: 20px; }
  .industry-content h3 { font-size: 1.3rem; }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 15px;
  }
  
  .industry-image img { height: 180px; }
  .industry-content { padding: 18px; }
  .industry-content h3 { font-size: 1.2rem; }
  .industry-content p { font-size: 0.95rem; }
}

/* Mobile */
@media (max-width: 576px) {
  .industries-section { padding: 40px 0; }
  
  .industries-grid {
    grid-template-columns: 1fr; /* 1 column */
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .industry-image img { height: 200px; }
  .industry-content { padding: 20px; }
  .industry-content h3 { font-size: 1.2rem; }
  .industry-content p { font-size: 0.95rem; }
}

/* Small Mobile */
@media (max-width: 400px) {
  .industry-image img { height: 180px; }
  .industry-content { padding: 16px; }
  .industry-content h3 { font-size: 1.1rem; }
  .industry-content p { font-size: 0.9rem; }
}

/* Remove any scrollbar styling that might have been added */
.industries-grid::-webkit-scrollbar {
  display: none; /* Hide scrollbar if any */
}
.role-anonymous ul.nav.primary.nav-tabs {
    display: none;
}

/* ===== Industries Served Slider (Slick) ===== */
.industries-slick-slider {
  margin: 0 -12px 20px;
  padding: 10px 0 40px;
}

/* Equal-height slides */
.industries-slick-slider .slick-list {
  display: flex;
}

.industries-slick-slider .slick-track {
  display: flex !important;
  align-items: stretch;
}

.industries-slick-slider .slick-slide {
  height: auto !important;
  display: flex !important;
}

.industries-slick-slider .industry-slide {
  padding: 0 12px;
  height: 100%;
  display: flex;
  width: 100%;
}

.industries-slick-slider .industry-card {
  height: 100%;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.industries-slick-slider .industry-image {
  flex-shrink: 0;
}

.industries-slick-slider .industry-image img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.industries-slick-slider .industry-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Same height for titles (2 lines) */
.industries-slick-slider .industry-content h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Same height for descriptions (4 lines) */
.industries-slick-slider .industry-content p {
  margin: 0 0 16px;
  line-height: 1.6;
  min-height: calc(1.6em * 4);
  max-height: calc(1.6em * 4);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  flex-grow: 0;
}

/* Keep Learn More pinned to bottom */
.industries-slick-slider .industry-content .learn-more {
  margin-top: auto;
}

.industries-slick-slider .slick-prev,
.industries-slick-slider .slick-next {
  z-index: 2;
  width: 44px;
  height: 44px;
}

.industries-slick-slider .slick-prev {
  left: -8px;
}

.industries-slick-slider .slick-next {
  right: -8px;
}

.industries-slick-slider .slick-prev:before,
.industries-slick-slider .slick-next:before {
  font-size: 36px;
  color: #196469;
  opacity: 1;
}

@media (max-width: 992px) {
  .industries-slick-slider .industry-image img {
    height: 170px;
  }

  .industries-slick-slider .industry-content h3 {
    font-size: 1.25rem;
    min-height: calc(1.35em * 2);
  }
}

@media (max-width: 576px) {
  .industries-slick-slider {
    margin: 0;
  }

  .industries-slick-slider .slick-prev {
    left: 0;
  }

  .industries-slick-slider .slick-next {
    right: 0;
  }

  .industries-slick-slider .industry-image img {
    height: 200px;
  }

  .industries-slick-slider .industry-content h3 {
    font-size: 1.2rem;
  }

  .industries-slick-slider .industry-content p {
    min-height: calc(1.6em * 4);
    max-height: calc(1.6em * 4);
  }
}
