:root {
  --primary: #3a55a5;
  --blueMid: #5d78c9;
  --light: #eef1fb;
}

body {
  background: #f4f6fb;
  font-family: "Poppins", Arial;
}

.btn {
  background: linear-gradient(135deg, #3a55a5, #26346b);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: 0.3s;
}

.btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ----- header / nav (same behavior as every other page: transparent
   until scrolled, then solid white — driven by js/main.js) ----- */
.main-nav {
  transition: 0.3s ease;
  background: transparent;
}

.main-nav.scrolled {
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  color: var(--blueMid) !important;
  font-weight: 500;
}

.navbar-toggler {
  border: none;
  color: var(--blueMid) !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.offcanvas {
  background: #5d78c9;
}

.offcanvas .nav-link {
  color: white !important;
}

/* ----- section eyebrow label (same treatment used site-wide for
   .blog-tag / .faq-tag / .tag) ----- */
.tag {
  color: var(--blueMid);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ----- Office cards (page-unique component) ----- */
.office-card {
  background: white;
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid rgba(58, 85, 165, 0.06);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.office-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3a55a5, #26346b);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.office-card:hover::before {
  opacity: 1;
}

.office-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(58, 85, 165, 0.1), rgba(38, 52, 107, 0.1));
  color: #3a55a5;
}

.office-card .badge-location {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border-left: 3px solid #e53935;
}

.badge-us {
  background: #e3f2fd;
  color: #0d47a1;
}

.badge-sg {
  background: #fce4ec;
  color: #b71c1c;
}

.badge-ph {
  background: #fff3e0;
  color: #e65100;
}

.badge-in {
  background: #e8f5e9;
  color: #1b5e20;
}

.badge-uk {
  background: #f3e5f5;
  color: #4a148c;
}

.office-card h5 {
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.office-card .office-type {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 15px;
  font-weight: 500;
}

.office-card .address {
  color: #4a4a4a;
  line-height: 1.8;
  font-size: 0.95rem;
}

.office-card .address i {
  color: #e53935;
  width: 20px;
  font-size: 0.9rem;
}

.office-card .address .line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.office-card .address .line:last-child {
  margin-bottom: 0;
}

.office-card .contact-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.office-card .contact-info a {
  color: #3a55a5;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.office-card .contact-info a:hover {
  color: #26346b;
}

.office-card .contact-info i {
  margin-right: 8px;
  font-size: 0.85rem;
}

.office-card .view-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: transparent;
  border: none;
  padding: 0;
  color: #e53935;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.office-card .view-map-link:hover {
  color: #b71c1c;
  text-decoration: underline;
}

/* ----- map section ----- */
.map-section {
  background: #f8f9fa;
  padding: 50px 0;
}

.map-section h2 {
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.map-section .subtitle {
  color: #6c757d;
  margin-bottom: 30px;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 4px solid white;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

.map-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  pointer-events: none;
  max-width: calc(100% - 40px);
  text-align: left;
}

.map-overlay i {
  color: #e53935;
  margin-right: 8px;
}

.map-tabs {
  margin-bottom: 24px;
  gap: 8px;
}

.map-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(58, 85, 165, 0.15);
  color: #4a4a4a;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.map-tab i {
  color: #e53935;
  font-size: 0.9rem;
}

.map-tab:hover {
  border-color: #3a55a5;
  transform: translateY(-2px);
}

.map-tab.active {
  background: linear-gradient(135deg, #3a55a5, #26346b);
  border-color: transparent;
  color: #fff;
}

.map-tab.active i {
  color: #fff;
}

/* ----- contact form ----- */
.contact-form-section {
  padding: 60px 0;
}

.contact-form-section h2 {
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.contact-form-section .subtitle {
  color: #6c757d;
  margin-bottom: 30px;
}

.form-control-custom {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 18px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-control-custom:focus {
  border-color: #3a55a5;
  box-shadow: 0 0 0 4px rgba(58, 85, 165, 0.1);
}

.btn-submit {
  background: linear-gradient(135deg, #3a55a5, #26346b);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(58, 85, 165, 0.3);
  color: white;
}

/* ----- CTA box (same gradient/padding as the Home page CTA) ----- */
.cta-box {
  background: linear-gradient(135deg, #3a55a5, #a69eff);
  padding: 28px 35px;
  border-radius: 18px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.cta-btn {
  background: #ffffff;
  color: #26346b;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 25px;
  transition: 0.2s;
}

.cta-btn:hover {
  background: var(--blueMid);
  color: var(--light);
  transform: translateY(-2px);
}

/* ----- Footer (identical rules to Home / Team / Solutions / Why Us / Pricing) ----- */
.footer-section {
  background: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #3a55a5;
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #444;
}

.footer-contact i {
  color: #3a55a5;
  margin-right: 6px;
}

.newsletter-box input {
  border-radius: 8px;
}

.newsletter-box button {
  border-radius: 8px;
  background: linear-gradient(135deg, #3a55a5, #26346b);
  color: var(--light);
}

.social-icons i {
  font-size: 18px;
  cursor: pointer;
  color: var(--blueMid);
}

.social-icons i:hover {
  color: #3a55a5;
}

.logo {
  color: var(--blueMid) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .map-container iframe {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .office-card {
    padding: 22px 16px;
  }

  .office-card h5 {
    font-size: 1rem;
  }

  .office-card .address {
    font-size: 0.9rem;
  }

  .map-container iframe {
    height: 280px;
  }

  .map-overlay {
    top: 12px;
    right: 12px;
    padding: 10px 16px;
    font-size: 0.8rem;
    max-width: calc(100% - 24px);
  }

  .map-tab {
    font-size: 0.75rem;
    padding: 6px 12px;
    white-space: nowrap;
  }

  .contact-form-section {
    padding: 40px 0;
  }
}

@media (max-width: 576px) {
  .office-card {
    padding: 18px 14px;
  }

  .office-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .map-container iframe {
    height: 220px;
  }

  .map-tabs {
    gap: 4px;
  }

  .map-tab {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .map-overlay {
    font-size: 0.7rem;
    padding: 6px 12px;
    top: 8px;
    right: 8px;
    max-width: calc(100% - 16px);
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 375px) {
  .map-tab {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
}

.career-contact-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #eef4ff, #ffffff);
  border: 1px solid rgba(72, 99, 255, 0.15);
  border-left: 5px solid #3a55a5;
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(58, 85, 165, 0.08);
  transition: all 0.35s ease;
}

.career-contact-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(58, 85, 165, 0.15);
}

.career-contact-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, #3a55a5, #6c7cff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.career-contact-content h5 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1f2d5c;
}

.career-email {
  display: inline-block;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #3a55a5;
  text-decoration: none;
  transition: 0.3s;
}

.career-email:hover {
  color: #2747b8;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .career-contact-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .career-contact-icon {
    margin-bottom: 8px;
  }

  .career-contact-content h5 {
    font-size: 20px;
  }

  .career-email {
    font-size: 16px;
    word-break: break-word;
  }
}