@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --blue-dark:   #003d82;
  --blue-mid:    #0052a3;
  --blue-light:  #e8f0fb;
  --text-dark:   #1a1a2e;
  --text-muted:  #6c757d;
  --gl-font-serif: 'Playfair Display', Georgia, serif;
  --gl-font-sans:  'DM Sans', 'Segoe UI', sans-serif;
}

body { font-family: var(--gl-font-sans); }
h1, h2, h3 { font-family: var(--gl-font-serif); }



h1, h2, h3, .section-heading, .hero-heading,
.affiliations-title, .about-company-text h2,
.about-why-choose h2, .about-services-preview h2,
.about-team h2, .page-banner-text h1 {
  font-family: var(--gl-font-serif);
}

/* ─── NAVBAR ─── */
.nav-pill-border {
  border: 1.5px solid #d0d8e8;
  border-radius: 50px;
  background: #fff;
}

.kma-brand-text {
  color: var(--blue-dark);
  font-size: 12px;
  line-height: 1.3;
}

/* Prevent navbar-brand from inheriting nav-link hover styles */
.navbar .navbar-brand {
  padding: 0;
}

.navbar .nav-link {
  color: #333;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.navbar .nav-link:hover {
  background-color: var(--blue-light);
  color: var(--blue-dark);
}

.navbar .nav-link.active {
  background-color: var(--blue-dark);
  color: #fff !important;
  font-weight: 600;
}



/* ─── FOOTER CTA ─── */
.footer-cta {
  background: linear-gradient(rgba(0,30,80,0.82), rgba(0,30,80,0.82)),
              url('/images/cta-bg.jpg') center/cover no-repeat;
  background-color: #001d4a;
  padding: 80px 0;
}

/* ─── FOOTER MAIN ─── */
.footer-main {
  background: var(--blue-dark);
}

.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  line-height: 2.1;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}



/* ─── CONTACT PAGE ─── */

.contact-hero {
  background: linear-gradient(135deg, #003d82, #0052a3);
  padding: 60px 0;
}

.contact-card {
  background: #003d82;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0, 61, 130, 0.2);
}

.contact-input {
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
}

.contact-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.contact-input.is-invalid {
  border: 2px solid #ff6b6b !important;
}

.contact-btn {
  background: #fff;
  color: #003d82;
  font-weight: 600;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.contact-btn:hover {
  background: #e8f0fb;
  color: #003d82;
}

/* Contact Info */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid #003d82;
  box-shadow: 0 2px 8px rgba(0,61,130,0.07);
}

.contact-info-icon {
  font-size: 18px;
  margin-top: 2px;
}

/* Office Cards */
.office-card {
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid #0052a3;
  box-shadow: 0 2px 8px rgba(0,61,130,0.07);
}

.office-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #0052a3;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.office-name {
  font-weight: 600;
  color: #003d82;
  font-size: 14px;
  margin-bottom: 2px;
}

.office-address {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* ─── HOME PAGE STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');
body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}
.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: #003d82;
  font-weight: 700;
}
/* ─── HERO ─── */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #001d4a 0%, #003d82 50%, #0052a3 100%);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(0, 120, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 61, 130, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-geo {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: #fff;
  pointer-events: none;
}
.hero-geo-1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
}
.hero-geo-2 {
  width: 300px; height: 300px;
  bottom: 60px; right: 200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  flex: 1;
}

.min-vh-85 { min-height: 75vh; }

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none; 
}

.hero-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-heading-accent {
  color: #7eb8ff;
}

.hero-subtext {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.75;
  max-width: 560px;
}

.btn-hero-primary {
  background: #fff;
  color: #003d82;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-hero-primary:hover {
  background: #e8f0fb;
  color: #003d82;
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  font-weight: 500;
  transition: all 0.2s;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}


/* ─── WHY SECTION ─── */
.why-section {
  background: #fff;
}

.why-badge {
  display: inline-block;
  background: #e8f0fb;
  color: #003d82;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

.why-card {
  background: #f4f7fb;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #dde6f5;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,61,130,0.1);
}

.why-icon { font-size: 28px; margin-bottom: 10px; }
.why-title { font-weight: 700; color: #003d82; font-size: 15px; margin-bottom: 6px; }
.why-desc { font-size: 13px; color: #666; line-height: 1.5; margin: 0; }

/* ─── SERVICES SECTION ─── */
.services-section {
  background: #f4f7fb;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #dde6f5;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--svc-color, #003d82);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(19, 67, 134, 0.538);
}

.service-icon { font-size: 32px; margin-bottom: 14px; }
.service-title {
  font-weight: 700;
  color: #003d82;
  font-size: 16px;
  margin-bottom: 10px;
}
.service-desc {
  font-size: 13.5px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.service-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--svc-color, #003d82);
  text-transform: uppercase;
}

.btn-service {
  background: transparent;
  border: 1.5px solid var(--svc-color, #003d82);
  color: var(--svc-color, #003d82);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-service:hover {
  background: var(--svc-color, #003d82);
  color: #fff;
}


/* ─── CTA SECTION ─── */
.cta-section {
  background: #f4f7fb;
}

.cta-box {
  background: linear-gradient(135deg, #003d82, #0052a3);
  padding: 50px !important;
  box-shadow: 0 20px 60px rgba(0,61,130,0.3);
}

.cta-contact-item { margin-bottom: 4px; }
.cta-contact-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cta-contact-value {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

/* ─── ABOUT PAGE  ─── */
/* Hero Banner */
.page-banner {
  background: linear-gradient(135deg, #001d4a 0%, #003d82 60%, #0052a3 100%);
  padding: 5rem 0 4rem;
  color: #fff;
}

.page-banner--about .page-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: center;
}

.page-banner-text h1 {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-banner-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.page-banner-sub {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.95rem !important;
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.875rem 2rem;
  background: #ffffff;
  color: #003d82;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cta-button:hover {
  background: #0f6ad8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,106,216,0.4);
}

.page-banner-visual { display: flex; justify-content: center; }

.about-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  transform: translateY(10px);
  opacity: 0;
  animation: aboutHeroIn 0.8s ease-out forwards;
}
.about-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease-out;
}
.about-hero-card:hover .about-hero-img { transform: scale(1.06); }

.about-hero-pill {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(10,25,47,0.88);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

@keyframes aboutHeroIn {
  to { transform: translateY(0); opacity: 1; }
}

/* Stats */
.about-stats {
  padding: 3rem 0;
  background: linear-gradient(135deg, #003d82 0%, #0f6ad8 100%);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #e5efff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 1rem; opacity: 0.9; font-weight: 500; }

/* Company + Mission/Vision grid */
.about-company { padding: 0; background: #fff; }
.about-company-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: flex-start;
  padding: 4rem 0;
}

.about-company-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #003d82;
}

.company-intro {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
}

.company-entities { display: flex; flex-direction: column; gap: 1.25rem; }

.entity-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid #e5efff;
  border-left: 4px solid #0f6ad8;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.entity-card:hover {
  transform: translateX(8px);
  border-left-width: 6px;
  box-shadow: 0 8px 24px rgba(0,61,130,0.12);
}
.entity-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.entity-header h3 { font-size: 1.1rem; color: #003d82; margin: 0 0 0.25rem 0; }
.entity-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: #0f6ad8;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}
.entity-card p { font-size: 0.95rem; line-height: 1.6; color: #4b5563; margin: 0; }

/* Mission / Vision */
.about-mission-vision-col { display: flex; flex-direction: column; gap: 1.5rem; }
.mission-vision-card {
  border: 2px solid #003d82;
  color: #003d82;
  padding: 1.5rem 2rem;
  border-radius: 12px;
}
.mission-vision-card h3 { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 700; }
.mission-vision-card p { font-size: 0.98rem; line-height: 1.6; opacity: 0.9; margin: 0; }

/* Team */
.about-team h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #003d82;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.team-member {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #f8f9fa;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,61,130,0.15); }
.team-member img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid #003d82;
  display: block;
}
.team-member h3 { color: #003d82; margin-bottom: 0.25rem; font-size: 1.1rem; }
.team-role { color: #0f6ad8; font-weight: 600; margin: 0.5rem 0; font-size: 0.9rem; }
.team-member p:not(.team-role) { color: #4b5563; font-size: 0.9rem; line-height: 1.6; }

/* Why Choose Us */
.about-why-choose { padding: 3rem 0; background: #fff; }
.about-why-choose h2 {
  text-align: center; font-size: 2rem; margin-bottom: 3rem; color: #003d82;

}
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
/* Note: .why-card is already defined in the main style.css above — these override for About page */
.about-why-choose .why-card {
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e5efff 100%);
  border: none;
  border-left: 4px solid #0f6ad8;
}
.about-why-choose .why-card h3 { color: #003d82; margin-bottom: 1rem; font-size: 1.2rem; }
.about-why-choose .why-card p { color: #4b5563; line-height: 1.6; }

/* Services Preview */
.about-services-preview { padding: 3rem 0; background: #f8f9fa; }
.about-services-preview h2 {
  text-align: center; font-size: 2rem; margin-bottom: 3rem; color: #003d82;
}
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service-preview-card {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
}
.service-preview-card:hover {
  border-color: #0f6ad8;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,61,130,0.15);
}
.service-preview-card h3 { color: #003d82; margin-bottom: 0.75rem; font-size: 1.2rem; }
.service-preview-card p { color: #4b5563; line-height: 1.6; font-size: 0.95rem; }

/* Affiliations */
.about-affiliations { padding: 3rem 0; background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%); }
.affiliations-title {
  text-align: center; font-size: 2rem; color: #003d82; margin-bottom: 0.5rem;
}
.affiliations-subtitle {
  text-align: center; font-size: 1.05rem; color: #4b5563;
  margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto;
}
.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.affiliation-badge {
  background: #fff;
  border: 2px solid #e5efff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.affiliation-badge::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #003d82 0%, #0f6ad8 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.affiliation-badge:hover::before { transform: scaleX(1); }
.affiliation-badge:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,61,130,0.2);
  border-color: #0f6ad8;
}
.badge-icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #e5efff 0%, #f8f9fa 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  border: 3px solid #0f6ad8;
  transition: all 0.3s ease;
}
.affiliation-badge:hover .badge-icon {
  transform: rotate(360deg);
  background: linear-gradient(135deg, #0f6ad8 0%, #003d82 100%);
}
.affiliation-badge h3 { font-size: 1.5rem; color: #003d82; margin-bottom: 0.5rem; font-weight: 700; }
.badge-full-name { font-size: 0.9rem; color: #0f6ad8; font-weight: 600; margin-bottom: 0.75rem; }
.badge-description { font-size: 0.9rem; color: #4b5563; line-height: 1.6; }

/* Offices + Maps */
.about-offices { padding: 4rem 0 5rem; background: #f7f8fb; }
.about-offices-main {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 2.2fr);
  gap: 2rem;
  align-items: flex-start;
}
.about-offices-map-large h2 {
  font-size: 1.4rem; margin-bottom: 0.25rem; color: #003d82;
}
.about-offices-map-address { font-size: 0.9rem; color: #4b5563; margin-bottom: 0.75rem; }
.about-map-frame { border-radius: 1rem; overflow: hidden; }
.about-map-frame--large iframe { width: 100%; height: 380px; border: 0; }
.about-offices-thumbs { display: flex; flex-direction: column; gap: 1rem; }

.office-thumb {
  border: 2px solid #0f6ad8;
  border-radius: 1rem;
  background: #fff;
  padding: 0.75rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.office-thumb:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,0.12); }
.office-thumb--active {
  border-color: #0f6ad8;
  background: linear-gradient(135deg, #0f6ad8 0%, #1c8ed9 100%);
  color: #fff;
}
.office-thumb--active p { color: rgba(255,255,255,0.85); }
.office-thumb-header h3 { font-size: 0.95rem; margin-bottom: 0.15rem; color: inherit; }
.office-thumb-header p { font-size: 0.8rem; color: #4b5563; margin-bottom: 0.4rem; }
.about-map-frame--thumb iframe { width: 100%; height: 120px; border: 0; }

/* Scroll-in animation */
.scroll-card {
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
  will-change: transform, opacity;
}
.scroll-card-left  { transform: translateY(24px) translateX(-24px); }
.scroll-card-right { transform: translateY(24px) translateX(24px); }
.scroll-card--visible,
.scroll-card--visible.scroll-card-left,
.scroll-card--visible.scroll-card-right {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
  .page-banner--about .page-banner-inner,
  .about-company-grid,
  .about-offices-main {
    grid-template-columns: 1fr;
  }
  .page-banner-visual { margin-top: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.5rem; }
}


/* ─── REFERENCES PAGE─── */
.page-banner--references {
  background: linear-gradient(135deg, #001d4a 0%, #003d82 60%, #0052a3 100%);
  padding: 5rem 0 4rem;
  color: #fff;
}

.ref-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.ref-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.page-banner--references h1 {
  font-family: var(--gl-font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

/* Offices pill in hero */
.ref-offices-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  min-width: 260px;
  backdrop-filter: blur(8px);
}
.ref-offices-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.ref-offices-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ref-offices-list span {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.ref-offices-list em {
  color: rgba(255,255,255,0.45);
  font-style: normal;
  font-size: 11px;
}

/* Section wrappers */
.ref-section { padding: 5rem 0; }

.ref-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.ref-section-header h2 {
  font-family: var(--gl-font-serif);
  font-size: 2rem;
  color: #003d82;
  margin-bottom: 0.5rem;
}

.ref-badge {
  display: inline-block;
  background: #e8f0fb;
  color: #003d82;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

/* Announcement Cards */
.ref-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ref-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid #dde6f5;
  border-top: 4px solid #003d82;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,61,130,0.12);
}

.ref-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}
.ref-tag-bir {
  background: #fff3e0;
  color: #e65100;
}

.ref-card-title {
  font-family: var(--gl-font-serif);
  font-size: 1.1rem;
  color: #003d82;
  margin: 0;
  line-height: 1.4;
}
.ref-card-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.ref-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  margin-top: auto;
}
.ref-card-date { font-size: 12px; color: #999; }
.ref-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #0052a3;
  text-decoration: none;
  transition: color 0.2s;
}
.ref-card-link:hover { color: #003d82; text-decoration: underline; }

/* Placeholder announcement card */
.ref-card-placeholder {
  border-top-color: #ccc;
  background: #fafafa;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
}
.ref-tag-placeholder {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.75rem;
}
.ref-placeholder-text {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
  margin: 0;
}

/* Certification Cards */
.ref-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ref-cert-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #dde6f5;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.ref-cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #003d82, #0052a3);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.ref-cert-card:hover::before { transform: scaleX(1); }
.ref-cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,61,130,0.15);
}

.ref-cert-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.ref-cert-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0052a3;
  margin-bottom: 0.5rem;
}
.ref-cert-title {
  font-family: var(--gl-font-serif);
  font-size: 1.2rem;
  color: #003d82;
  margin-bottom: 0.25rem;
}
.ref-cert-sub {
  font-size: 12px;
  color: #888;
  margin-bottom: 0.75rem;
}
.ref-cert-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.ref-cert-badge-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ref-cert-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  background: #e8f0fb;
  color: #003d82;
  border-radius: 20px;
}

.ref-cert-placeholder {
  background: #fafafa;
  border-style: dashed;
}
.ref-cert-placeholder .ref-cert-icon,
.ref-cert-placeholder .ref-cert-title,
.ref-cert-placeholder .ref-cert-desc {
  color: #bbb;
}
.ref-cert-placeholder .ref-cert-tag { color: #ccc; }

/* CTA */
.ref-cta-section { background: #f4f7fb; padding: 4rem 0; }

/* Responsive */
@media (max-width: 768px) {
  .ref-hero-inner {
    grid-template-columns: 1fr;
  }
  .ref-offices-pill {
    min-width: unset;
  }
}

.ref-cert-img-wrap {
  margin: 0 auto 1rem auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dde6f5;
  cursor: pointer;
  width: 100%;        /* was: 150px */
  max-width: 280px;   /* was: nothing */
  height: 200px;      /* was: 150px */
}

.ref-cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.3s ease;
}

.ref-cert-img-wrap:hover .ref-cert-img {
  transform: scale(1.05);
}
.ref-cert-img-hint {
  text-align: center;
  font-size: 11px;
  color: #888;
  padding: 5px;
  background: #f4f7fb;
}
