/* Homepage hero/cards styles (extracted from index.html inline block, 2026-07-29) */
.carousel-container {
  overflow: hidden;
  position: relative;
}

.cards-wrapper {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.practice-container {
  display: flex;
  gap: 20px;
}

.left-panel {
  width: 25%;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.left-panel ul {
  list-style: none;
  padding: 0;
}

.left-panel li {
  margin: 20px 0;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--off-black);
}

.left-panel li:hover,
.left-panel .active {
  text-decoration: underline;
  text-decoration-color: orange;
  font-weight: bold;
}

.right-content {
  width: 80%;
  padding: 20px;
}

.recognitions-list {
  list-style-type: disc;
  padding-left: 20px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--off-black);
}

.recognitions-list li {
  margin-bottom: 20px;
}

.publications-list {
  list-style-type: disc;
  padding-left: 20px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--off-black);
}

.publications-list li {
  margin-bottom: 20px;
}

.carousel-container {
  overflow: hidden;
  position: relative;
}

.cards-wrapper {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease-in-out;
}

.card {
  flex: 0 0 calc(33.333% - 20px); /* Show 3 cards at a time */
  background: #f9f9f9;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  height: 250px;
  aspect-ratio: 16 / 9;  /* Adjust the ratio as needed */
  object-fit: cover;     /* Ensures the image fills the area */
  object-position: top;
  border-radius: 8px;
  margin-bottom: 20px;
}


.carousel-navigation {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-navigation button {
  background-color: white;
  color: gray;
  border: 1px solid gray;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
}

.carousel-navigation button:hover {
  background-color: gray;
  color: white;
}

.hidden {
  display: none;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.grid-item h5 {
  margin-bottom: 20px;
}

/* Reduced padding for the section */
.section.about {
  background-color: #013557;
  overflow: hidden;
  border-top: 3px solid var(--orange-bright);
  border-bottom: 3px solid var(--orange-bright);
  padding: 10px 0; /* Reduced from a larger default padding */
}

/* Update the heading style to center it and reduce extra margins */
.section.about .slide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 80%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.section.about .slide-text {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 320px;
  color: white;
  text-align: left;
}

.section.about h3 {
  color: white;
  margin: 0;
  padding: 5px 0;
}

.section.about .slide-image {
  margin: 0;
  text-align: center;
  flex: 0 0 auto;
}

.section.about .slide-image img {
  width: 100%;
  max-width: 160px;
  height: auto;
  display: inline-block;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .section.about .slide-text,
  .section.about .slide-image {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }
  .section.about .slide-text h3 {
    width: 100%;
  }
}

/* Initial state: off-screen to the left and hidden */
.slide-from-left {
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 1s ease-out, opacity 1s ease-out;
}

/* When in view: move to original position and become visible */
.slide-from-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.section.blog {
  width: 95%;
  margin: 0 auto; /* Centers the section */
}

.read-more {
  font-family: "Georgia", "serif" !important;
  border-bottom: 2px solid currentColor;
  margin-bottom: 15px;
  color: var(--orange-bright);
  margin-top: 2rem;
}

footer {
  margin-top: 80px;
}

/* New Styles for Card Titles and Read More CTA */
.card h5 {
  min-height: 80px;  /* Adjust this value as needed */
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.2;
}

.card .read-more {
  color: blue;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
}

.card .read-more:hover {
  text-decoration: underline;
}

/* Responsive Styles for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  /* Override any container or wrapper that limits the width */
  .nav-container,
  .footer-container,
  .container,
  .main-carousel,
  .content-section,
  .wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0 3px; /* 3px padding on left/right */
  }
  /* Stack the practice container vertically */
  .practice-container {
    flex-direction: column;
  }
  
  /* Make both panels full width */
  .left-panel,
  .right-content {
    width: 100%;
    padding: 2px;
  }
  
  /* Make the tab container sticky below the nav bar, full width, and with the nav bar's background */
  .left-panel {
    width: 100vw; /* Full viewport width */
    margin-left: calc(50% - 50vw); /* Center the full width element */
    border-right: none;
    position: sticky;
    top: 100px; /* Adjust this value to match your nav bar height */
    z-index: 100;
    background-color: #fffcf9; /* Use the nav bar background color */
    padding: 10px;
  }
  
  /* Arrange tab names into two columns */
  .left-panel ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
    margin: 0;
  }
  
  .left-panel li {
    flex: 0 0 48%;
    margin: 10px 0;
    text-align: center;
    font-size: 18px; /* Increase font size for better tap targets */
  }
  
  /* Stack the carousel cards vertically */
  .cards-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  
  .card {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
  
  /* Hide card images on mobile */
  .card-img {
    display: none;
  }
  
  /* Remove card pagination arrows on mobile */
  .carousel-navigation {
    display: none;
  }
  
  /* Change Recent Client Success grid from 3 columns to 2 columns */
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .section{
    padding: 10px;
  }
  .section.blog{
    width: 100%;
    margin: 0px;
  }
}

/* Hero carousel adjustments */
.carousel-cell.excellence {
  position: relative;
  background-image: url("../img/SW-BridgeBanner2.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
  height: clamp(260px, 40vh, 520px);
}

.carousel-cell.excellence::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: 1;
}

.carousel-cell.excellence article h1,
.carousel-cell.excellence article p {
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.75),
    0 6px 18px rgba(0, 0, 0, 0.65);
}

.carousel-cell.excellence article {
  position: relative;
  z-index: 2;
}

.news-links {
  font-weight: 900;
  color: var(--orange-alt);
  text-decoration: underline;
}

.news-links:hover {
  
  color: #013557;
}
#client-successes {
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  /* Left column with headers */
  .header-list {
    width: 30%;
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  .header-list li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
  }
  .header-list li:hover {
    color: var(--orange-alt);
  }
  /* Right column for content display */
  .content-display {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
  }
  #publications ul.enewsletters {
  margin: 10px 0;   /* Reduced margin from default if needed */
  padding: 0;
}

#publications ul.enewsletters li {
  margin-bottom: 5px;  /* Tighter spacing between list items */
  line-height: 1.2;    /* Reduces extra vertical gap between lines */
}
#publications ul.enewsletters li a.read-more,
#publications ul.enewsletters li .text-preview,
#publications ul.enewsletters li .text-more {
  margin-top: 5px;    /* Reduce any extra space above these elements */
  margin-bottom: 5px; /* Reduce space below, if required */
}
