/* ── CONTACT PAGE STYLES ── */
.contact-header {
  width: 100%;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 40px 80px;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/Research-Center-Tab-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.contact-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 40%,
      rgba(255, 255, 255, 0.40) 70%,
      rgba(255, 255, 255, 0.10) 100%);
}

body.image-loaded .contact-hero-bg {
  transform: scale(1);
}

body.image-loaded .contact-header {
  opacity: 1;
}

.contact-header .container {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

body.image-loaded .contact-header .container {
  opacity: 1;
  transform: translateY(0);
}

.contact-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #1a2b4c;
  margin: 0;
  text-transform: uppercase;
}

.contact-section {
  padding: 80px 40px;
  background-color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(57, 181, 74, 0.15);
  border-color: #39B54A;
}

.contact-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid #f0fdf4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.contact-card:hover .contact-avatar img {
  transform: scale(1.1);
}

.contact-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2b4c;
  margin-bottom: 6px;
}

.contact-card .role {
  font-size: 1rem;
  color: #666;
  margin-bottom: 24px;
  font-weight: 500;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0054A6;
  flex-shrink: 0;
}

.contact-item-icon i {
  width: 18px;
  height: 18px;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-item-value,
.contact-item-value a {
  font-size: 0.95rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-item-value a:hover {
  color: #39B54A;
}

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

  .contact-header {
    padding: 100px 20px 40px;
  }

  .contact-section {
    padding: 60px 20px;
  }
}