.card__wrapper.flickity:not(.flickity-enabled) {
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
  height: 120px;
}
#content--case-study .card .heading {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
#content--case-study .card .heading span {
  display: initial;
}

#content--case-study .card .company {
  width: 100%;
}

#content--case-study .card .logo {
  flex-shrink: 0;
}

#content--case-study .card .name-wrapper {
  width: calc(100% - 110px);
}

#content--case-study .card .name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* width: 100%; */
  overflow: hidden;
  text-overflow: ellipsis;
}

#content--case-study .card .type {
  /* width: 100%; */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media screen and (min-width: 768px) {
  #content--case-study .card .type {
    font-size: 10px;
  }
}

#content--case-study .card {
  display: grid;
  /* height: 100%; */
  min-height: 100%;
}

#content--case-study .card .heading {
  min-height: 5em;
}

#content--case-study .card__inner {
  flex-wrap: nowrap;
  height: 100%;
  min-height: unset;
}
@media all and (max-width: 767px) {
  #content--case-study .card__inner {
    /* min-height: calc(430 / 390 * 100vw); */
    padding-bottom: calc(12 / 390 * 100vw);
  }
}
@media all and (min-width: 768px) {
  #content--case-study .card__inner {
    /* min-height: 450px; */
    padding-bottom: 12px;
  }
}
#content--case-study .card .pct {
  margin-top: auto;
  overflow: hidden;
  border-radius: 8px;
  background-color: transparent;
}
#content--case-study .card .pct img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
}
#content--case-study .card .logo img {
  width: 100%;
  height: 100%;
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
}
#content--case-study .card__inner .more {
  position: initial;
}
@media all and (min-width: 768px) {
  #content--case-study .card__inner .more {
    padding-top: 16px;
  }
}

/* Flickity navigation button override - bottom position */
.flickity-prev-next-button {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid #c0392b !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
  top: auto !important;
  bottom: -60px !important;
  transform: none !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.flickity-enabled {
  overflow: visible !important;
}

.flickity-viewport {
  overflow: visible !important;
}

.flickity-prev-next-button:hover {
  background: #c0392b !important;
}

.flickity-prev-next-button:hover .flickity-button-icon {
  fill: white !important;
}

.flickity-prev-next-button .flickity-button-icon {
  display: block !important;
  fill: #c0392b !important;
  position: absolute !important;
  left: 20% !important;
  top: 20% !important;
  width: 60% !important;
  height: 60% !important;
}

.flickity-prev-next-button.previous {
  left: calc(50% - 60px) !important;
}

.flickity-prev-next-button.next {
  right: calc(50% - 60px) !important;
}

/* Flickity page dots - fixed position below cards */
.content .flickity-page-dots {
  position: relative !important;
  bottom: auto !important;
  margin-top: 24px !important;
}

/* Add padding to carousel container for bottom buttons */
.card__wrapper.flickity {
  padding-bottom: 100px !important;
  overflow: visible !important;
}

@media screen and (max-width: 767px) {
  .flickity-prev-next-button {
    width: 40px !important;
    height: 40px !important;
    bottom: -60px !important;
  }
  .flickity-prev-next-button.previous {
    left: calc(50% - 50px) !important;
  }
  .flickity-prev-next-button.next {
    right: calc(50% - 50px) !important;
  }
  .card__wrapper.flickity {
    padding-bottom: 90px !important;
  }
}

/* ===================================
   News & Media Section
   =================================== */
#content--news {
  padding-top: 60px;
  padding-bottom: 60px;
}
@media all and (min-width: 768px) {
  #content--news {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

#content--news .heading {
  margin-bottom: 24px;
}

.news-lead {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
  padding: 0 16px;
}
@media all and (min-width: 768px) {
  .news-lead {
    font-size: 16px;
    margin-bottom: 48px;
  }
}
.news-lead strong {
  color: #3e1410;
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 16px;
}
@media all and (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media all and (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 32px;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 5, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(192, 57, 43, 0.1);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.15);
  border-color: rgba(192, 57, 43, 0.3);
}

.news-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-card__category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.news-card__source {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.news-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #3e1410;
  margin-bottom: 12px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
@media all and (min-width: 768px) {
  .news-card__title {
    font-size: 15px;
  }
}

.news-card__highlight {
  display: inline-block;
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.1), rgba(192, 57, 43, 0.05));
  color: #e74c3c;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(192, 57, 43, 0.2);
  align-self: flex-start;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #e74c3c;
  margin-top: auto;
}
.news-card__link svg {
  transition: transform 0.2s ease;
}
.news-card:hover .news-card__link svg {
  transform: translate(2px, -2px);
}

.news-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding: 0 16px;
}
@media all and (min-width: 768px) {
  .news-stats {
    gap: 32px;
    margin-bottom: 40px;
  }
}

.news-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  min-width: 100px;
}
@media all and (min-width: 768px) {
  .news-stats__item {
    padding: 24px 36px;
    min-width: 160px;
  }
}

.news-stats__number {
  font-size: 32px;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 8px;
}
@media all and (min-width: 768px) {
  .news-stats__number {
    font-size: 48px;
  }
}
.news-stats__number small {
  font-size: 0.5em;
  font-weight: 700;
  color: #555;
}

.news-stats__label {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-align: center;
  letter-spacing: 0.05em;
}
@media all and (min-width: 768px) {
  .news-stats__label {
    font-size: 14px;
  }
}

.news-cta-text {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  line-height: 1.6;
  padding: 0 16px;
}
@media all and (min-width: 768px) {
  .news-cta-text {
    font-size: 15px;
  }
}
