/*
 * Worxogo Grid Widget CSS
 *
 * Elementor Grid Widget Styles
 */

/* ===== ELEMENTOR GRID WIDGET ===== */
.worxogo-grid-container {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 8px;
  padding: 60px 60px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.worxogo-grid-header {
  text-align: center;
}

.worxogo-grid-title {
  font-family: "Albert Sans", sans-serif;
  font-weight: 700;
  margin: 0 0 40px;
  color: #290074;
}

.worxogo-grid {
  display: grid;
  gap: 24px;
  margin: 0 auto;
  width: 100%;
}

.worxogo-grid-columns-1 {
  grid-template-columns: 1fr;
}

.worxogo-grid-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.worxogo-grid-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.worxogo-grid-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== ELEMENTOR CARD STYLES ===== */
.worxogo-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #d2d2d0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  height: 100%;
}

.worxogo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.worxogo-card-badge {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  border: 1px solid #4000a9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  color: #4000a9;
  font-family: "Albert Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.worxogo-card-title {
  color: #4000a9;
  font-family: "Albert Sans", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  font-size: 18px !important;
}

.worxogo-card-description {
  color: #666;
  font-family: "Albert Sans", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.worxogo-card-outcome {
  color: #4000a9;
  font-family: "Albert Sans", sans-serif;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  font-size: 12px;
}

.worxogo-card-outcome strong {
  font-weight: 600;
}

.worxogo-card-link {
  color: #4000a9;
  font-family: "Albert Sans", sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.worxogo-card-link:hover {
  color: #342e77;
}

.worxogo-card-image {
  margin-top: 16px;
  overflow: hidden;
}

.worxogo-card-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.worxogo-card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card Responsive Styles */
@media (max-width: 768px) {
  .worxogo-grid-columns-2,
  .worxogo-grid-columns-3,
  .worxogo-grid-columns-4 {
    grid-template-columns: 1fr;
  }

  .worxogo-card {
    padding: 24px;
    align-items: center;
  }

  .worxogo-card-badge {
    align-self: center;
  }

  /* Responsive for grid container */
  .worxogo-grid-container {
    padding: 40px 20px 0px;
    gap: 0;
  }
  .worxogo-card-description {
    text-align: center;
  }
  .worxogo-card-bottom {
    align-items: center;
  }
}

@media (max-width: 567px) {
  .worxogo-card-title {
    font-size: 16px !important;
  }

  .worxogo-card {
    padding: 20px;
    gap: 12px;
    align-items: center;
  }

  .worxogo-card-badge {
    align-self: center;
  }
}

/* ===== GRID STATS SECTION ===== */
.worxogo-grid-stats {
  margin-top: 50px;
  width: 100%;
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #e5e5e5;
  padding: 24px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  width: calc(25% - 60px);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.stat-value {
  font-family: "Albert Sans", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #4000a9;
  line-height: 1;
  margin: 0;
}

.stat-label {
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #323232;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

/* Tablet Responsive - 2 in a row */
@media (max-width: 768px) {
  .worxogo-grid-stats {
    margin-top: 10px;
  }

  .stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch; /* makes all children equal in height */
  }

  .stat-item {
    flex: 1 1 calc(50% - 10px); /* flexible width */
    display: flex; /* allow inner layout */
    flex-direction: column; /* stack contents vertically */
    gap: 10px;
  }

  .stat-top {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .stat-label {
    white-space: normal;
    text-align: center;
    font-size: 14px;
  }
}

/* Mobile Responsive - 2 in a row */
@media (max-width: 576px) {
  .worxogo-grid-stats {
    margin-top: 10px;
  }

  .stats-container {
    gap: 15px;
  }

  .stat-item {
    width: calc(50% - 8px);
    padding: 16px 12px;
  }

  .stat-icon {
    width: 20px;
    height: 20px;
  }

  .stat-icon img {
    width: 20px;
    height: 20px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12px;
  }
}
