/* --- ./css/case-news-2.css --- */

/* ======== CASE PAGE ======== */

/* Banner fixo */
.case-banner {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin: 0 auto;
}
.case-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Conteúdo do Case (desktop: 2 colunas) */
.case-container-fixo {
  display: flex;
  gap: 20px;
  max-width: 1320px;
  margin: 40px auto;
}
.case-container-fixo .case-caixa-esquerda,
.case-container-fixo .case-caixa-direita {
  flex: 1;
}
.case-container-fixo figure {
  margin: 20px 0;
}
.case-container-fixo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

/* ======== OUTROS CASES / NEWS CAROUSEL ======== */
#news-cases-section {
  background-color: #f9f9f9;
  padding: 60px 0;
  text-align: center;
}
.news-cases-wrapper {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  overflow: visible;
}
.news-cases-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}
.news-cases-container {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
}
.news-cases-carousel {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.news-cases-carousel .news-card {
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
  margin-right: 20px;
  flex: 0 0 auto;
  width: 255px;
}
.news-cases-carousel .news-card:last-child {
  margin-right: 0;
}
.news-cases-carousel .news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}
.news-cases-carousel .news-card h4 {
  font-size: 1.1rem;
  margin: 10px 0 5px;
}
.news-cases-carousel .news-card p {
  font-size: 0.85rem;
  color: #333;
}

.news-cases-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 10;
}
.news-cases-nav.prev {
  left: calc((100% - 1320px)/2);
}
.news-cases-nav.next {
  right: calc((100% - 1320px)/2);
}

/* ======== RESPONSIVIDADE (≤767px) ======== */
@media (max-width: 767px) {
  /* Banner */
  .case-banner {
    height: 350px;
  }
  .case-banner img {
    object-position: 50% 20%;
  }

  /* Título e resumo */
  .case-title {
    font-size: 1.5rem;
    text-align: center;
    margin: 15px auto;
    max-width: 90%;
  }
  .case-resumo {
    font-size: 0.95rem;
    text-align: center;
    margin: 0 auto 20px;
    max-width: 90%;
    line-height: 1.4;
    color: #000;
  }

  /* Conteúdo do Case em coluna única */
  .case-container-fixo {
    flex-direction: column;
    width: 90%;
    margin: 20px auto;
    gap: 20px;
    padding: 0;
  }
  .case-container-fixo .case-caixa-esquerda,
  .case-container-fixo .case-caixa-direita {
    width: 100%;
  }
  .case-container-fixo figure {
    margin: 10px 0;
  }
  .case-container-fixo figure img {
    width: 100%;
    height: auto;
  }
  .case-container-fixo figure figcaption {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 5px;
    color: #555;
  }
  .case-container-fixo .case-caixa-esquerda p,
  .case-container-fixo .case-caixa-direita p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    margin: 0 0 15px;
  }

  /* Galeria em duas colunas */
  .case-gallery .gallery-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 0 15px;
  }
  .case-gallery .gallery-track a {
    flex: 0 0 calc(50% - 10px);
    margin: 0;
  }

  /* Seção Outros Cases */
  #news-cases-section {
    padding: 30px 0;
    background-color: #f9f9f9;
  }
  .news-cases-title {
    margin-top: 30px;
    margin-bottom: 20px;
  }

  /* Carousel Mobile: 1 card desktop shape */
  .news-cases-wrapper {
    padding: 0 15px;
  }
  .news-cases-container {
    max-width: 255px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    background-color: #fff;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
  }
  .news-cases-carousel .news-card {
    flex: 0 0 auto !important;
    width: 255px !important;
    margin: 0 auto 20px !important;
  }
  .news-cases-nav.prev {
    left: 15px !important;
  }
  .news-cases-nav.next {
    right: 15px !important;
  }
}
