:root {
  --dark: #2b2d31;
  --red: #cbbe02;
  --white: #ffffff;
  --light-text: #c8c8cc;
  --muted: #9a9aa0;
}

.section-header {
  text-align: center;
  background: #fff;

}

.section-header h1 {
  font-family: "Khmer OS Muol Light", sans-serif;
  margin-bottom: 0;

}

.red-divider {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 0 auto;
  border-radius: 2px;
}

.section-header p {
  font-size: 1rem;
  font-weight: 300;
  color: #555;
  margin: 0 auto;
}

.contact-wrapper {
  display: flex;
  max-width: 1400px;
  margin: 0 auto 60px;
  min-height: 520px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14);

}

.info-panel {
  background: var(--dark);
  flex: 0 0 52%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.info-block {
  padding: 52px 30px;
  border-bottom: 1px solid rgba(255, 0, 0, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background 0.3s;
}

.info-block h3 {
  font-family: Khmer OS Battambang;
  font-size: 1rem;
  color: var(--light-text);
  margin-bottom: 1px;
}

.info-block:hover {
  background: rgba(255, 255, 255, 0.04);
}

.info-block:nth-child(2n) {
  border-right: none;
}

.info-block:nth-child(3),
.info-block:nth-child(4) {
  border-bottom: none;
}

.icon-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.info-block:hover .icon-ring {
  border-color: var(--red);
  transform: scale(1.08);
}

.icon-ring svg {
  width: 26px;
  height: 26px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.info-block p,
.info-block a {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  text-decoration: none;
  transition: color 0.2s;
}

.info-block a:hover {
  color: var(--white);
}

.social-row {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted) !important;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s !important;
}

.social-row a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff !important;
}

.contact-note {
  font-size: 0.82rem !important;
  font-weight: 300 !important;
  color: var(--muted) !important;
  line-height: 1.6 !important;
  margin-bottom: 4px;
}

.map-panel {
  flex: 1;
  overflow: hidden;
  min-height: 460px;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 800px) {
  .contact-wrapper {
    flex-direction: column;
    height: auto;          /* don't let a fixed/100vh height squeeze children */
  }

  .info-panel {
    flex: none;
    grid-template-columns: 1fr 1fr;
  }

  .map-panel {
    flex: none;             /* stop it fighting for leftover flex space */
    width: 100%;
    min-height: 320px;
    height: 320px;          /* explicit height, not just min-height */
  }

  .map-panel iframe,
  .map-panel embed,
  .map-panel > div {
    width: 100%;
    height: 100%;           /* now it has something real to be 100% of */
    display: block;
  }
}

@media (max-width: 480px) {
  .info-panel {
    grid-template-columns: 1fr;
  }

  .info-block {
    border-right: none !important;
  }
}

  .info-block {
    border-right: none !important;
  }
}
