/* ============================================================
   PREMIUM HOME — MODICAS
============================================================ */

/* ------------------------------------------------------------
   WRAPPER PRINCIPAL DA HOME
------------------------------------------------------------ */
.home-main,
.site-main.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-4) var(--sp-9);
  font-family: var(--font-main);
  color: var(--text-1);
  background: #fff;
}

/* ============================================================
   SEÇÕES DA HOME
============================================================ */
.post-section {
  margin-bottom: var(--sp-8);
  padding-top: 0.15rem;
}

.section-header {
  margin-bottom: var(--sp-3);
  text-align: left;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--text-1);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand);
  margin-top: 6px;
  border-radius: 3px;
}

/* ============================================================
   CARROSSEL — WRAPPER
============================================================ */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.post-carousel {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  padding: var(--sp-2) var(--sp-1) var(--sp-3);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.post-carousel::-webkit-scrollbar {
  display: none;
}

/* ------------------------------------------------------------
   SETAS DE NAVEGAÇÃO
------------------------------------------------------------ */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dfdfdf;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 1.4rem;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .2s ease;
  z-index: 5;
}

.carousel-arrow:hover {
  background: #f4f7ff;
  border-color: var(--brand-light);
}

.carousel-arrow.left {
  left: -18px;
}
.carousel-arrow.right {
  right: -18px;
}

/* ============================================================
   CARD DO POST
============================================================ */
.post-card {
  flex: 0 0 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* ============================================================
   THUMB / VÍDEO
============================================================ */
.post-thumb,
.video-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  cursor: pointer;
  background: #f1f1f1;
}

.post-thumb img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ▶ PLAY BUTTON */
.play-button {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  margin: auto;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* ============================================================
   CONTEÚDO DO CARD
============================================================ */
.post-content {
  padding: var(--sp-3) var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 var(--sp-2);
  line-height: 1.35;
  color: var(--text-1);
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-excerpt {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

/* ============================================================
   CARD "VER TODOS"
============================================================ */
.see-all-card {
  flex: 0 0 200px;
  background: #f6faff;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
}

.see-all-card:hover {
  background: #ecf3ff;
  transform: translateY(-3px);
}

.see-all-link {
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display:flex;
  align-items:center;
  justify-content:center;
}

.see-all-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-4) var(--sp-2);
}

.see-all-plus {
  font-size: 2rem;
  color: var(--brand);
  line-height: 1;
}

.see-all-text {
  margin-top: .2rem;
  font-weight: 600;
  color: var(--brand-dark);
}

/* ============================================================
   RESPONSIVIDADE
============================================================ */
@media (max-width: 768px) {

  .home-main,
  .site-main.container {
    padding: var(--sp-6) var(--sp-3) var(--sp-8);
  }

  .section-title {
    font-size: 1.45rem;
  }

  .post-card {
    flex: 0 0 72%;
  }

  .post-thumb,
  .video-thumb {
    height: 150px;
  }

  .carousel-arrow {
    display:none !important;
  }
}

/* ============================================
   CTA DE NEWSLETTER ENTRE AS SEÇÕES DA HOME
============================================ */
.home-newsletter-block {
  max-width: var(--max-w);
  margin: 60px auto;
  padding: 0 20px;
}

.home-newsletter-block .modicas-newsletter-cta {
  background: #f7faff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .home-newsletter-block {
    margin: 40px auto;
  }
}

/* ============================================
   FIX — Garantir alinhamento à esquerda no carrossel
   após rail-lock / centralização global
============================================ */
.post-section {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.carousel-wrapper {
    justify-content: flex-start !important;
}

.post-carousel {
    display: flex;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
