/* CSS styles for Our Work Component */

.our-work-section {
  background-color: #ffffff; /* Clean white background matching screenshot */
  padding: 60px 0;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

.our-work-section .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Heading --- */
.our-work-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 45px;
  color: #1b5182; /* Deep corporate blue */
  position: relative;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 12px;
}

/* Underline decoration matching the reference screenshot */
.our-work-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #13a34a; /* Green underline accent */
  border-radius: 2px;
}

/* --- Flexbox Centered Row/Grid Container --- */
.work-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 30px; /* Vertical gap, Horizontal gap */
  width: 100%;
  margin: 0 auto;
}

/* Individual Work Item Wrapper */
.work-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px; /* Perfect width for 5 items in a 1200px row */
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

/* Double-outline Circular Image Frame */
.work-img-wrapper {
  width: 155px;
  height: 155px;
  border-radius: 50%;
  border: 6px solid #e0e0e0; /* Silver grey border */
  padding: 3px; /* White ring gap */
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.work-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Captions underneath */
.work-label {
  margin-top: 15px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #555555;
  text-align: center;
  transition: color 0.3s ease;
  word-wrap: break-word;
  max-width: 100%;
}

/* --- Interactive Hover Effects --- */
.work-item:hover .work-img-wrapper {
  border-color: #1b5182; /* Turns branding blue on hover */
  box-shadow: 0 8px 20px rgba(27, 81, 130, 0.18);
  transform: translateY(-5px);
}

.work-item:hover .work-img {
  transform: scale(1.06);
}

.work-item:hover .work-label {
  color: #1b5182; /* Highlights caption text on hover */
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
---------------------------------------------------- */

@media (max-width: 1024px) {
  .work-grid {
    gap: 30px 20px;
  }
  .work-item {
    width: 160px;
  }
  .work-img-wrapper {
    width: 140px;
    height: 140px;
    border-width: 5px;
  }
  .our-work-title {
    font-size: 1.8rem;
    margin-bottom: 35px;
  }
}

@media (max-width: 768px) {
  .our-work-section {
    padding: 40px 0;
  }
  .work-grid {
    gap: 25px 15px;
  }
  /* Grid wraps to 3 columns on tablet */
  .work-item {
    width: 145px;
  }
  .work-img-wrapper {
    width: 125px;
    height: 125px;
    border-width: 4px;
    padding: 2px;
  }
  .work-label {
    font-size: 12.5px;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  /* Grid wraps to 2 columns on mobile */
  .work-grid {
    gap: 20px 10px;
  }
  .work-item {
    width: 45%; /* Side-by-side on small mobile */
    max-width: 160px;
  }
  .work-img-wrapper {
    width: 110px;
    height: 110px;
  }
  .our-work-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }
  .work-label {
    font-size: 11.5px;
  }
}
