.tas-contact-offices {
  --tas-content-gutter: 20px;
  padding: clamp(16px, 5vw, 36px) 0;
  background: var(--background-color);
  border-radius: 14px;
}

.tas-contact-offices__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 30px);
  align-items: start;
  width: min(100% - calc(var(--tas-content-gutter) * 2), var(--layout-max-width));
  margin: 0 auto;
}

.tas-contact-offices__title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary);
}

.tas-contact-offices__divider {
  margin-bottom: 22px;
}

.tas-contact-offices__divider--note {
  margin-top: 8px;
  margin-bottom: 14px;
}

.tas-contact-offices__hours {
  position: relative;
  padding: clamp(28px, 3vw, 36px);
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
  overflow: hidden;
}

.tas-contact-offices__hours::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: min(78%, 320px);
  height: 120px;
  opacity: 0.07;
  /* background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512' fill='%2300332E'%3E%3Cpath d='M344 272c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32zm-96 0c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32zm128 0c0-17.7-14.3-32-32-32s-32 14.3-32 32 14.3 32 32 32 32-14.3 32-32zM256 32C141.1 32 48 125.1 48 240c0 47.6 19.9 91.2 52 122.5L256 480l156-117.5c32.1-31.3 52-74.9 52-122.5C464 125.1 370.9 32 256 32zm0 416L158.4 304.5C131.3 278.4 112 241.3 112 200c0-79.5 64.5-144 144-144s144 64.5 144 144c0 41.3-19.3 78.4-46.4 104.5L256 448z'/%3E%3C/svg%3E") center bottom / contain no-repeat; */
  pointer-events: none;
}

.tas-contact-offices__hours--custom-bg::after {
  background-image: var(--tas-hours-bg);
  opacity: 0.12;
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.tas-contact-offices__hours-list {
  position: relative;
  z-index: 1;
  margin: 0;
}

.tas-contact-offices__hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.tas-contact-offices__hours-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tas-contact-offices__hours-label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-body);
}

.tas-contact-offices__hours-value {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  text-align: right;
}

.tas-contact-offices__hours-note {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.tas-contact-offices__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tas-contact-offices__card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.tas-contact-offices__card-media {
  position: relative;
  min-height: 120px;
  background: var(--primary-deep);
}

.tas-contact-offices__card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.tas-contact-offices__card-pin {
  position: absolute;
  left: 14px;
  bottom: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.tas-contact-offices__card-pin i,
.tas-contact-offices__card-pin .tas-icon--uploaded-svg,
.tas-contact-offices__card-pin svg {
  font-size: 0.9375rem;
  width: 0.9375rem;
  height: 0.9375rem;
}

.tas-contact-offices__card-body {
  flex: 1;
  padding: 28px 16px 18px;
}

.tas-contact-offices__card-body--no-pin {
  padding-top: 18px;
}

.tas-contact-offices__card-name {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

.tas-contact-offices__card-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-body);
}

.tas-contact-offices__card-meta:last-child {
  margin-bottom: 0;
}

.tas-contact-offices__card-meta-icon {
  flex-shrink: 0;
  width: 14px;
  margin-top: 2px;
  color: var(--accent);
  text-align: center;
}

.tas-contact-offices__card-meta-icon i {
  font-size: 0.75rem;
}

.tas-contact-offices__card-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tas-contact-offices__card-meta a:hover {
  color: var(--primary);
}

@media (max-width: 1199px) {
  .tas-contact-offices__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .tas-contact-offices__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .tas-contact-offices__card-media,
  .tas-contact-offices__card-media img {
    min-height: 140px;
  }
}
