/* Home page only: make strategy subtitle white */
.home .section-estrategia .strategy-subtitle {
  color: #fff;
}
/* ===================================================================
   Strategy Cards Component - FLIP CARDS
   Shared component for displaying modalidade strategy cards
   Used on: front-page.php, page-projeto.php
   =================================================================== */

/* Strategy Section Container */
.section-estrategia,
.section-estrategia-projeto {
  padding: 60px 24px;
}

.section-estrategia-projeto {
  background-color: var(--brand-light-blue, #e6f0fa);
  border-radius: 24px;
  width: 100%;
  box-sizing: border-box;
}

.section-estrategia .container {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0;
}

/* Remove background and border-radius from .container, keep it only on the section */


.section-estrategia-projeto .container {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background-color: var(--brand-light-blue, #e6f0fa);
}

/* Section Header */
.section-estrategia .section-title,
.section-estrategia-projeto .section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 54px;
  font-weight: 700;
  color: rgba(190, 210, 87, 1); /* #bed257 - lime green */
  margin: 0 0 16px 0;
  text-align: center;
  line-height: 1.1;
}

.section-estrategia .section-subtitle,
.section-estrategia-projeto .section-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: rgba(245, 245, 245, 1); /* #f5f5f5 - white */
  max-width: 838px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.4;
}

/* Strategy Grid - 3 columns */

.strategy-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

/* Center align grid content */
.strategy-header, .strategy-title, .strategy-subtitle {
  text-align: center;
}

/* Brand lime green for title */
.strategy-title {
  color: var(--brand-lime-green, #bed257);
}

/* Card Wrapper - enables 3D flip */
.estrategia-card-wrapper {
  perspective: 1000px;
  min-height: 420px;
  position: relative;
}

/* Base Strategy Card - container for both faces */
.estrategia-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  display: block;
}

a.estrategia-card {
  text-decoration: none;
}

/* Flip on hover */
.estrategia-card-wrapper:hover .estrategia-card {
  transform: rotateY(180deg);
}

/* Front and Back faces - shared styles */
.estrategia-card-front,
.estrategia-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 420px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Front Face: Featured view with background image */
.estrategia-card-front {
  background-image: var(--estrategia-bg, none);
  background-size: cover;
  background-position: var(--estrategia-bg-pos, center);
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  z-index: 2;
  transform: rotateY(0deg);
}

.estrategia-front-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 30%, rgba(0,0,0,0.8) 100%);
  border-radius: 12px;
  z-index: 1;
}

.estrategia-front-logo {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.estrategia-front-logo .estrategia-logo {
  height: 60px;
  width: auto;
  display: block;
}

/* Back Face: Normal content */
.estrategia-card-back {
  background: var(--white, #ffffff);
  padding: 24px;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* Card Header with Logo */
.estrategia-header {
  margin-bottom: 20px;
  text-align: center;
}

.estrategia-logo {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Tag with Divider Line */
.estrategia-tag-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.estrategia-tag-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #d5ed7c;
  top: 50%;
}

.estrategia-tag {
  background: rgba(213, 237, 124, 1);
  color: rgba(17, 68, 41, 1);
  padding: 6px 20px;
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* Title */
.estrategia-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #004222;
  margin: 0 0 12px 0;
  line-height: 1.3;
  text-align: center;
}

/* Description */
.estrategia-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.5;
  text-align: center;
}

/* Público Section */
.estrategia-publico {
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  flex-grow: 1;
}

.publico-header {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #004222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.publico-content {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #333;
  line-height: 1.4;
}

/* Footer with Button */
.estrategia-footer {
  margin-top: auto;
  padding-top: 12px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #d5ed7c;
  color: #004222;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Only strategy card buttons should be full width */
.estrategia-footer .btn {
  width: 100%;
}

/* Ensure strategy-card button text always fits inside the capsule */
.estrategia-footer .btn,
.estrategia-footer .btn-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: clamp(12px, 0.95rem, 15px);
}

.btn:hover {
  background-color: #c5e05c;
  transform: translateY(-2px);
}

.btn-primary {
  background-color: #d5ed7c;
  color: #004222;
}

.btn-capsule {
  border-radius: 50px;
}

/* ===================================================================
   Responsive Design
   =================================================================== */

@media (max-width: 1024px) {
  .strategy-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 24px;
  }

  .section-estrategia .section-title,
  .section-estrategia-projeto .section-title {
    font-size: 40px;
  }

  .section-estrategia .section-subtitle,
  .section-estrategia-projeto .section-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .section-estrategia,
  .section-estrategia-projeto {
    padding: 40px 20px;
  }

  .strategy-cards-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 20px;
  }

  .section-estrategia .section-title,
  .section-estrategia-projeto .section-title {
    font-size: 32px;
  }

  .section-estrategia .section-subtitle,
  .section-estrategia-projeto .section-subtitle {
    font-size: 16px;
  }

  .estrategia-card-front,
  .estrategia-card-back {
    min-height: 400px;
  }

  .estrategia-card-wrapper {
    min-height: 400px;
  }
}

/* ===================================================================
   Mobile Strategy Carousel (single card with arrows)
   Used on: page-modalidade.php (mobile content)
   =================================================================== */
.strategy-carousel {
  width: 100%;
  max-width: 100%;
  margin: 24px 0 40px 0;
  padding: 0 20px;
  position: relative;
  box-sizing: border-box;
}

.strategy-carousel__wrapper {
  overflow: hidden;
  width: 100%;
}

.strategy-carousel__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.strategy-carousel__slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.strategy-carousel__card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(16, 68, 41, 0.12);
}

.strategy-carousel__image {
  height: 360px;
  background-image: var(--estrategia-bg, none);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--estrategia-bg-pos, top center);
}

.strategy-carousel__content {
  padding: 16px 18px 18px 18px;
  text-align: center;
}

.strategy-carousel__logo img {
  height: 44px;
  width: auto;
  margin: 0 auto 10px auto;
  display: block;
}

.strategy-carousel__tag {
  display: inline-block;
  background: #d5ed7c;
  color: var(--color-green-900);
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.strategy-carousel__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-green-900);
  margin: 0 0 8px 0;
}

.strategy-carousel__description {
  font-size: 13px;
  color: #3c4a44;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

.strategy-carousel__publico {
  background: #eef3f7;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-green-900);
}

.strategy-carousel__publico-label {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.strategy-carousel__publico-text {
  font-weight: 400;
}

.strategy-carousel__button {
  display: inline-block;
  background: #d5ed7c;
  color: var(--color-green-900);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.strategy-carousel__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.strategy-carousel__btn {
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.strategy-carousel__btn img {
  width: 20px;
  height: 20px;
  display: block;
}

@media (min-width: 769px) {
  .strategy-carousel {
    display: none;
  }
}

