/* =========================================
   PRODUCTS PAGE - TIMELINE LAYOUT
   ========================================= */

/* MOBILE FIRST APPROACH */
.produtos-page {
  padding: 80px 15px 40px;
  background-color: #EDECEC;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Page Header */
.timeline-header {
  text-align: center;
  margin-bottom: 40px;
}

.timeline-header h1 {
  color: #05182d;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0;
}

.timeline-header h1::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #4a6fa5;
  margin: 12px auto 0;
  border-radius: 2px;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Central Line - MOBILE VERSION */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  /* Position line on the left for mobile */
  width: 3px;
  background: linear-gradient(to bottom,
      rgba(74, 111, 165, 0.2) 0%,
      rgba(74, 111, 165, 0.5) 50%,
      rgba(74, 111, 165, 0.2) 100%);
  z-index: 0;
}

/* Timeline Row */
.timeline-row {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
}

/* Timeline Content */
.timeline-content {
  position: relative;
  width: calc(100% - 25px);
  /* Subtract margin to prevent overflow */
  z-index: 1;
  margin-left: 20px;
  /* Space from line */
}

/* Timeline Point */
.timeline-point {
  position: absolute;
  left: 10px;
  /* Align with line */
  top: 30px;
  /* Align with card top */
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 3px solid #4a6fa5;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

/* Card Styling - MOBILE */
.card-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 15px;
  transition: all 0.3s ease;
  border-left: 4px solid #4a6fa5;
  box-sizing: border-box;
}

.card-content:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Card Typography */
.card-text h2 {
  color: #05182d;
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  font-weight: 700;
  line-height: 1.3;
}

.card-text p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Card Icon */
.card-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.1) 0%, rgba(74, 111, 165, 0.05) 100%);
  color: #4a6fa5;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

/* Link */
.card-link {
  display: inline-flex;
  align-items: center;
  color: #4a6fa5;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  gap: 5px;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: #3a5f95;
  gap: 8px;
}

.card-link::after {
  content: '→';
  font-weight: bold;
  transition: transform 0.3s ease;
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* =========================================
   SMALL MOBILE (max-width: 360px)
   ========================================= */
@media (max-width: 360px) {
  .timeline-container {
    padding-left: 25px;
  }

  .timeline-line {
    left: 12px;
    width: 2px;
  }

  .timeline-point {
    left: 8px;
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .timeline-content {
    margin-left: 15px;
  }

  .card-content {
    padding: 18px 15px;
  }

  .card-text h2 {
    font-size: 1.1rem;
  }

  .card-text p {
    font-size: 0.85rem;
  }
}

/* =========================================
   TABLET & DESKTOP (768px and above) - Split Layout
   ========================================= */
@media (max-width: 767px) {
    .card-content .card-icon {
        order: 1;
    }
    .card-content .card-text {
        order: 2;
    }
}
@media (min-width: 768px) {
  .produtos-page {
    padding: 100px 0 60px;
    /* Removed side padding from page to use container padding */
  }

  .timeline-container {
    padding: 0 40px;
    max-width: 1100px;
  }

  /* Split Layout */
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: rgba(74, 111, 165, 0.3);
  }

  .timeline-row {
    margin-bottom: 50px;
    display: flex;
  }

  .timeline-row.left {
    justify-content: flex-start;
  }

  .timeline-row.right {
    justify-content: flex-end;
  }

  .timeline-content {
    width: 45%;
    margin-left: 0;
  }

  .timeline-row.left .timeline-content {
    margin-right: auto;
    padding-right: 30px;
    /* Reduced for tablet */
  }

  .timeline-row.right .timeline-content {
    margin-left: auto;
    padding-left: 30px;
    /* Reduced for tablet */
  }

  .timeline-point {
    left: 50%;
    top: 40px;
    width: 20px;
    height: 20px;
    border-width: 4px;
    transform: translateX(-50%);
  }

  .card-content {
    flex-direction: row;
    align-items: center;
    padding: 25px;
    border-left: none;
    border-radius: 15px;
    gap: 15px;
    /* Reduced for tablet */
  }

  .timeline-row.left .card-content {
    text-align: left;
    flex-direction: row;
  }

  .timeline-row.right .card-content {
    text-align: right;
    flex-direction: row-reverse;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 50%;
  }

  .card-text h2 {
    font-size: 1.3rem;
  }

  .card-text p {
    font-size: 0.95rem;
  }
}

/* =========================================
   DESKTOP (992px and above) - Refinements
   ========================================= */
@media (min-width: 992px) {
  .timeline-row.left .timeline-content {
    padding-right: 40px;
  }

  .timeline-row.right .timeline-content {
    padding-left: 40px;
  }

  .card-content {
    padding: 25px;
    gap: 20px;
  }

  .card-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .card-text h2 {
    font-size: 1.4rem;
  }

  .card-text p {
    font-size: 1rem;
  }

  /* Pulse animation */
  .timeline-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(74, 111, 165, 0.6);
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
    animation: pulse-blue 2s infinite;
  }
}

@keyframes pulse-blue {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  70% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* =========================================
   LARGE DESKTOP (1200px and above) - Refinements
   ========================================= */
@media (min-width: 1200px) {
  .produtos-page {
    padding: 120px 40px 80px;
  }

  .timeline-header {
    margin-bottom: 70px;
  }

  .timeline-header h1 {
    font-size: 2.5rem;
  }

  .timeline-container {
    max-width: 1100px;
  }

  .timeline-content {
    width: 44%;
  }

  .card-content {
    padding: 30px;
    gap: 25px;
  }

  .card-content:hover {
    transform: translateY(-5px) translateX(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  }

  .timeline-row.left .card-content:hover {
    transform: translateY(-5px) translateX(-5px);
  }

  .timeline-row.right .card-content:hover {
    transform: translateY(-5px) translateX(5px);
  }

  .card-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .card-text h2 {
    font-size: 1.6rem;
  }

  .card-text p {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .card-link {
    font-size: 1rem;
  }
}

/* =========================================
   LARGE DESKTOP (1200px and above)
   ========================================= */
@media (min-width: 1200px) {
  .timeline-container {
    max-width: 1300px;
  }

  .timeline-content {
    width: 43%;
  }
}

/* =========================================
   LANDSCAPE ORIENTATION (Mobile)
   ========================================= */
@media (max-height: 600px) and (orientation: landscape) {
  .produtos-page {
    padding-top: 90px;
    padding-bottom: 30px;
  }

  .timeline-row {
    margin-bottom: 20px;
  }

  .card-content {
    padding: 15px 20px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .card-text h2 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .card-text p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
  }
}

/* =========================================
   HOVER EFFECTS (Desktop only)
   ========================================= */
@media (hover: hover) and (pointer: fine) {
  .card-content:hover .card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #4a6fa5 0%, #3a5f95 100%);
    color: white;
  }
}

/* =========================================
   PRINT STYLES
   ========================================= */
@media print {
  .produtos-page {
    padding: 50px 20px;
    background: white;
  }

  .card-content {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  .timeline-line,
  .timeline-point::after {
    display: none;
  }

  .timeline-point {
    border-color: #333;
    background: white;
  }
}