/* Os Meios Perfeitos Section - Advertising Media Carousel */

.oquefazemos-section {
  padding: var(--space-20) 0;
  background-color: #f8f9fa;
}

.oquefazemos-section .container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section Header */
.oquefazemos {
  text-align: center;
  margin-bottom: var(--space-16);
}

.oquefazemos h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-500);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-tight);
  text-transform: capitalize;
}

.oquefazemos-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary-900);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* External Arrow Controls Container */
.external-carousel-nav {
  position: relative;
  height: 0; /* No space taken */
}

.external-nav-btn {
  position: absolute;
  top: 225px; /* Half of carousel height (450px / 2) */
  transform: translateY(-50%);
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.external-nav-btn:hover {
  background-color: var(--color-primary-500);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.external-nav-btn svg {
  width: 24px;
  height: 24px;
}

.external-nav-btn.prev {
  left: -60px;
}

.external-nav-btn.next {
  right: -60px;
}

/* Advertising Carousel - Hide default arrows */
.advertising-carousel .carousel-nav {
  display: none;
}

/* Advertising Carousel - Match sizing from other carousels */
.advertising-carousel .carousel-card {
  aspect-ratio: 16 / 9;
  flex: 0 0 calc(25% - var(--space-5)); /* 4 cards */
  min-width: 280px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--transition-base);
}

.advertising-carousel .carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

/* Override dark overlay from carousel.css */
.advertising-carousel .card-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%) !important;
}

/* Icon and Title on same line at top */
.advertising-carousel .card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.advertising-carousel .card-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.advertising-carousel .card-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin: 0;
}

/* Description at bottom */
.advertising-carousel .card-content {
  margin-top: auto;
}

.advertising-carousel .card-description {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
}

/* Responsive */
@media (max-width: 1268px) {
  /* Move arrows back on top of carousel for narrow screens */
  .external-nav-btn.prev {
    left: var(--space-4);
  }
  
  .external-nav-btn.next {
    right: var(--space-4);
  }
}

@media (max-width: 1024px) {
  .external-nav-btn {
    top: 200px; /* Adjust for smaller carousel */
  }
  
  .advertising-carousel .carousel-card {
    flex: 0 0 calc(33.333% - var(--space-5));
    height: 400px;
  }
}

@media (max-width: 768px) {
  .oquefazemos-section {
    padding: var(--space-16) 0;
  }
  
  .external-nav-btn {
    top: 175px;
    width: 40px;
    height: 40px;
  }
  
  .advertising-carousel .carousel-card {
    flex: 0 0 calc(50% - var(--space-5));
    height: 350px;
  }
  
  .advertising-carousel .card-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .external-nav-btn {
    top: 160px;
  }
  
  .advertising-carousel .carousel-card {
    flex: 0 0 100%;
    height: 320px;
  }
  
  .advertising-carousel .card-title {
    font-size: var(--font-size-xl);
  }
  
  .advertising-carousel .card-description {
    font-size: var(--font-size-sm);
  }
}
