/* Updated: 2026-02-03 */
/* Agricultura Inteligente section - blue gradient background with white cards (Ban5) */
.smart-ag-section { 
  background: linear-gradient(135deg, #09244b 0%, #111827 100%); 
  padding: 64px 0 72px; 
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.smart-ag-section .section-title { 
  text-align: center; 
  color: #F9FAFB; 
  max-width: 900px; 
  margin: 0 auto 12px; 
}

.smart-ag-section .section-text { 
  text-align: center; 
  color: #D1D5DB; 
  max-width: 800px; 
  margin: 0 auto 56px; 
}

/* Cards container - centered 3 column grid */
.smart-ag-grid { 
  display: grid; 
  grid-template-columns: repeat(3, minmax(0, 320px)); 
  gap: 32px; 
  justify-content: center; 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 40px;
}

/* Individual card */
.smart-ag-card { 
  background: #FFFFFF; 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
body.dark-theme .smart-ag-card {
  background: var(--dark-bg3) !important;
}
.smart-ag-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

/* Image container with icon overlay */
.smart-ag-image-wrapper { 
  position: relative; 
  width: 100%; 
  height: 200px; 
  background: linear-gradient(135deg, #D1FAE5 0%, #DBEAFE 100%); 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smart-ag-image-wrapper picture {
  width: 100%;
  height: 100%;
  display: block;
}

.smart-ag-image-wrapper img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 0.9;
  display: block;
}

/* Centered icon circle over image */
.smart-ag-icon-circle { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  width: 72px; 
  height: 72px; 
  border-radius: 50%; 
  background: #FFFFFF; 
  display: grid; 
  place-items: center; 
  font-size: 32px; 
  color: #10B981; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 2;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.smart-ag-card:hover .smart-ag-icon-circle { 
  transform: translate(-50%, -50%) scale(1.1); 
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.3);
}

/* Card content */
.smart-ag-content { 
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.smart-ag-title { 
  align-self: flex-start;
  font-size: 1.15rem; 
  font-weight: 700; 
  color: #10B981; 
  margin: 0 0 10px; 
  text-align: left;
}

.smart-ag-description { 
  align-self: flex-start;
  font-size: 0.9rem; 
  color: #6B7280; 
  line-height: 1.5; 
  margin: 0;
  text-align: left;
}

.smart-ag-button {
  display: inline-block;
  margin: 16px 0 0 0;
  padding: 14px 40px;
  background-color: #0b4bb3;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.smart-ag-button:hover {
  background-color: #fff;
  color: #0b4bb3;
  border-color: #0b4bb3;
  box-shadow: 0 0 20px rgba(99, 179, 237, 0.6);
}

/* Responsive */
@media (max-width: 1200px) {
  .smart-ag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .smart-ag-image-wrapper { height: 220px; }
  .smart-ag-icon-circle { width: 64px; height: 64px; font-size: 28px; }
}

@media (max-width: 900px) {
  .smart-ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .smart-ag-section .section-title,
  .smart-ag-section .section-text {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .smart-ag-grid {
    gap: 32px;
  }

  .smart-ag-image-wrapper {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .smart-ag-grid { grid-template-columns: 1fr; max-width: 420px; gap: 36px; }
  .smart-ag-section { padding: 48px 0 56px; }
}

@media (max-width: 480px) {
  .smart-ag-section .section-title,
  .smart-ag-section .section-text {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
