/* Enable smooth scrolling globally */
html {
  scroll-behavior: smooth;
}

/* Arup Style Card Layout */
.main-container {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.left-section {
  flex: 1.2;
}

.section-label {
  color: gray;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.left-section h1 {
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.main-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 10px;
}

.category {
  text-transform: uppercase;
  color: gray;
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 500;
}

.top-card img {
  height: 200px;
}

.bottom-cards {
  display: flex;
  gap: 20px;
}

.bottom-cards .card {
  flex: 1;
}

.overlay-card {
  position: relative;
  background-color: #dce0cd;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.overlay-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/building-bg.jpg") center/cover no-repeat;
  opacity: 0.15;
  border-radius: 12px;
}

.overlay-content {
  position: relative;
  z-index: 1;
}

.overlay-card h2 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.overlay-card .description {
  font-size: 0.9rem;
  color: #333;
}

@media (max-width: 1000px) {
  .main-container {
    flex-direction: column;
  }
  .bottom-cards {
    flex-direction: column;
  }
  body {
    padding: 20px;
  }
}
/* end small-screen layout tweaks */

/* Place your CSS here. Example: */
html,
body {
  margin: 0;
  padding: 0;
  background: #fdfdfd;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 15px;
  /* Make body a column flexbox so footer can be pushed to bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scrolling of the entire page */
}

/* main content should grow to fill available space */
.site-main {
  flex: 1 0 auto;
}

nav.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
}
/* make navbar a positioning context for the search bar we place under the logo */
nav.navbar {
  position: relative;
}

.navbar-left-group {
  display: flex;
  align-items: center;
}

.navbar-section {
  display: flex;
  align-items: center;
}

.navbar-logo {
  flex: 0 0 auto;
}

.navbar-center {
  display: flex;
  gap: 18px;
  list-style: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  justify-content: center;
  flex: 1;
}

.navbar-right {
  flex: 0 0 auto;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-center li,
.navbar-right li {
  display: inline;
}

.navbar-center a,
.navbar-right a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1.1em;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.2s;
  position: relative;
  display: inline-block; /* ensure positioning for pseudo-element */
}

/* Animated underline on hover (left-to-right) */
.navbar-center a::after,
.navbar-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.navbar-center a:hover::after,
.navbar-right a:hover::after,
.navbar-center a:focus::after,
.navbar-right a:focus::after {
  transform: scaleX(1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-center a:hover,
.navbar-right a:hover {
  /* remove the rectangular hover background; keep only the underline animation */
  background: transparent;
}

/* Accessible focus ring for keyboard users */
.navbar-center a:focus-visible,
.navbar-right a:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.12);
  outline-offset: 3px;
}

/* Active/Current page nav link styling (higher specificity + safe fallback)
   This ensures the active link color overrides other link color rules. */
nav.navbar .navbar-center a.active,
nav.navbar .navbar-right a.active,
.mobile-menu .mobile-nav-links a.active,
.mobile-nav-links a.active {
  color: #e67e22 !important; /* orange */
  font-weight: 600;
}

/* Keep the underline visible for the active link (force visible) */
nav.navbar .navbar-center a.active::after,
nav.navbar .navbar-right a.active::after,
.mobile-menu .mobile-nav-links a.active::after,
.mobile-nav-links a.active::after {
  transform: scaleX(1) !important;
}

.large-rounded-rectangle {
  width: 96vw;
  max-width: 1800px;
  min-height: 320px;
  margin: 10px auto 0 auto;
  background: #f5f5f5;
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.rectangle-image {
  width: 100%;
  height: 850px;
  object-fit: cover;
  border-radius: 40px;
  display: block;
}

.search-bar {
  width: 96vw;
  max-width: 600px;
  margin: 28px auto 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 32px;
  box-shadow:
    0 6px 32px rgba(0, 0, 0, 0.1),
    0 1.5px 6px rgba(0, 0, 0, 0.04);
  padding: 18px 32px;
  z-index: 20;
  position: relative;
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.23, 1.01, 0.32, 1),
    opacity 0.4s;
}

.search-bar.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-bar input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.25em;
  background: transparent;
  padding: 10px 12px;
  border-radius: 18px;
  color: #222;
  font-family: "Poppins", Arial, sans-serif;
  transition: background 0.2s;
}

.search-bar input[type="text"]:focus {
  background: #f2f2f2;
}

.search-bar button {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 28px;
  font-size: 1.1em;
  font-family: "Poppins", Arial, sans-serif;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.search-bar button:hover {
  background: #444;
}

/* Results page: long thin search line with X and magnifier */
.results-search-wrapper {
  width: 100%;
  margin: 6px 0 18px 0;
  position: relative;
  left: 0;
}
.results-search-form {
  width: 100%;
}
.results-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border-bottom: 2px solid #ddd;
  padding: 8px 6px; /* small padding so the line reaches near edges */
}
.navbar-results-search {
  /* when used as absolute this was the old behavior; keep minimal defaults */
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}
.results-search-bar input[type="text"] {
  flex: 1 1 auto;
  border: none;
  outline: none;
  font-size: 1.25rem; /* larger font for placeholder and input text */
  background: transparent;
  padding: 8px 12px 6px 12px;
  color: #222;
  font-family: "Poppins", Arial, sans-serif;
}

/* Results list anchored to the right of the navbar (no container) */
.results-list {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1;
  display: block;
  margin: 10px 0 24px 0;
}

/* Footer strapline styling (centralized instead of inline) */
.footer-strapline {
  font-size: 18px;
  line-height: 1.45;
  text-align: left;
  max-width: 520px;
  margin: 0;
}

/* Mobile-friendly footer adjustments */
@media (max-width: 768px) {
  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .footer-right-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    width: 100%;
  }

  .footer-right-columns .footer-col {
    flex: 1 1 auto;
  }

  .footer-strapline {
    font-size: 15px;
    text-align: left;
    max-width: 100%;
  }

  .footer-divider {
    margin: 20px 20px 0;
  }

  .footer-bottom-inner {
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal-links {
    gap: 12px;
  }

  .footer-legal-links a {
    font-size: 0.7rem;
  }

  .footer-socials-row .container {
    padding: 0 20px;
  }

  .footer-bottom {
    margin-top: 0;
  }
}

.search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  text-decoration: none;
  color: #222;
  padding: 20px 28px;
  border-bottom: 2px solid #ddd; /* long line stretching to page end */
  position: relative;
}

.search-result:hover {
  background: rgba(0, 0, 0, 0.02);
}

.search-result .result-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 300;
  color: #111;
}

.search-result .result-source {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #666;
  margin-top: 6px;
}

.search-result .result-snippet {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
  line-height: 1.4;
}

.search-result mark {
  background-color: #fff3cd;
  color: #856404;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: bold;
}

.result-left {
  flex: 1 1 auto;
  min-width: 0;
}
.result-right {
  flex: 0 0 auto;
  margin-left: 12px;
}

.search-result .result-divider {
  display: none; /* no extra divider; using border-bottom on .search-result */
}

/* Hover arrow on the far right */
.search-result .arrow {
  opacity: 0;
  transform: translateX(8px);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
  color: #888;
  font-size: 20px;
  /* remove any circular background or border that might appear */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  display: inline-block;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}
.search-result:hover .arrow {
  transform: translateX(0);
  opacity: 1;
  color: #333;
}

@media (max-width: 768px) {
  .search-result {
    padding: 16px 20px;
  }

  .search-result .result-title {
    font-size: 1.5rem;
  }

  .search-result .result-source {
    font-size: 0.9rem;
    margin-top: 4px;
  }

  .search-result .result-snippet {
    font-size: 0.8rem;
    margin-top: 6px;
    line-height: 1.3;
  }

  .search-result .arrow {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .search-result {
    padding: 14px 16px;
  }

  .search-result .result-title {
    font-size: 1.3rem;
  }

  .search-result .result-source {
    font-size: 0.85rem;
  }

  .search-result .result-snippet {
    font-size: 0.75rem;
  }

  .search-result .arrow {
    font-size: 16px;
  }
}
/* Services page: left-aligned list and hover-enlarge behavior */
.services-list {
  max-width: 1100px;
  margin: 0 0 24px 2vw; /* keep a small left offset from the page edge */
  padding: 28px 0;
}
.services-list .results-list {
  margin: 0;
}
.services-list .search-result {
  transform-origin: left center;
  transition:
    transform 180ms ease,
    background 120ms ease;
}
.services-list .search-result:hover {
  transform: scale(1.035);
  background: rgba(0, 0, 0, 0.02);
}
.results-search-bar input::placeholder {
  color: #222;
  opacity: 0.45; /* reduced opacity for placeholder */
}
.results-search-clear,
.results-search-submit {
  background: transparent;
  border: none;
  color: #444;
  cursor: pointer;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.results-search-submit {
  margin-left: 2px;
  color: #222;
}
.results-search-clear {
  font-size: 22px;
  line-height: 1;
  color: #888;
  margin-left: auto; /* push the clear button to the far right */
}
.results-search-clear:hover {
  color: #444;
}
.results-search-submit svg {
  display: block;
}

@media (max-width: 640px) {
  .results-search-bar input[type="text"] {
    font-size: 1rem;
  }
  .results-search-clear {
    font-size: 20px;
  }
}

/* Dropdown for language */
.language-dropdown {
  position: relative;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 38px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  min-width: 120px;
  padding: 8px 0;
  z-index: 100;
  list-style: none;
}

.lang-menu.show {
  display: block;
  animation: dropDownLang 0.35s cubic-bezier(0.23, 1.01, 0.32, 1);
}

@keyframes dropDownLang {
  0% {
    opacity: 0;
    transform: translateY(-24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-menu li {
  width: 100%;
}

.lang-menu a {
  display: block;
  padding: 10px 22px;
  color: #222;
  text-decoration: none;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1em;
  transition: background 0.2s;
}

.tagline-below-navbar {
  max-width: 96vw;
  margin: 38px auto 0 auto;
  padding-left: 2vw;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 5em;
  font-weight: 200;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  text-align: left;
}

/* Slight left offset for the tagline block so it aligns more closely with the
   logo/content column. Reduces the left inset from the centered layout. */
.tagline-row {
  /* Align tagline under the ABOD logo by matching the navbar left padding (30px).
     Use margin-left:30px so the tagline's left edge sits beneath the logo. */
  max-width: calc(100% - 30px);
  margin: 18px 0 0 30px; /* top right bottom left */
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Page-scoped override: on services page, ensure the tagline is left-aligned
   under the logo (override any global centering rules). */
.services-page .tagline-below-navbar {
  margin: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
  max-width: none !important;
}

/* Contact page: same left-alignment override so the "Contact us" tagline
   lines up under the logo like the services page. */
.contact-page .tagline-below-navbar {
  margin: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
  max-width: none !important;
}

/* Services page: smaller subtext under the tagline to improve visual hierarchy */
.services-page .tagline-subtext {
  font-size: 1.9rem; /* ~16px */
  line-height: 1.35;
  opacity: 0.45;
  margin-top: 6px;
  font-family: "poppins", Arial, Helvetica, sans-serif;
}

/* Contact page: slightly larger subtext for better readability. Matches
   the left-aligned layout via the .contact-page body class. */
.contact-page .tagline-subtext {
  font-size: 2.2rem; /* ~22px */
  line-height: 1.35;
  opacity: 0.6;
  margin-top: 6px;
  font-family: "poppins", Arial, Helvetica, sans-serif;
}

/* Projects page: smaller fonts for tagline and subtext */
.projects-page .tagline-below-navbar h1 {
  font-size: 4rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 300;
}
.projects-page .tagline-below-navbar .tagline-subtext {
  font-size: 1.8rem;
  line-height: 1.35;
  opacity: 0.6;
  margin-top: 6px;
  font-family: "georgia", serif;
}

/* Projects page: position tagline to the left below the ABOD logo */
.projects-page .tagline-row {
  margin-left: 30px;
}
.projects-page .tagline-below-navbar {
  margin: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
  max-width: none !important;
  font-family: Georgia, serif;
}

/* Contact accordions and form styles */
.contact-accordions {
  width: 100%;
  max-width: 920px;
  /* left-align the accordions under the logo/content column */
  margin: 28px 0 48px 2vw; /* top right bottom left */
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-accordion {
  background: transparent;
  position: relative; /* needed for full-bleed divider pseudo-element */
}
.accordion-toggle {
  display: flex;
  /* stack the title (row) above the subtext */
  flex-direction: column;
  justify-content: flex-start; /* keep content left-aligned */
  align-items: flex-start;
  width: 100%;
  gap: 8px;
  padding: 18px 20px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.accordion-toggle:focus {
  outline: 2px solid rgba(0, 0, 0, 0.08);
}
.accordion-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  flex-direction: row;
}
.accordion-title h3 {
  margin: 0;
  font-family: "Georgia Pro", Georgia, serif;
  font-weight: 300;
  font-size: 2rem; /* increased for better prominence */
}
.accordion-subtext {
  margin: 6px 0 0 0;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.7);
  font-family: "Poppins", Arial, sans-serif;
}
.accordion-inner {
  padding-bottom: 10px;
  width: min(720px, 100%); /* content width */
  box-sizing: border-box;
}
.accordion-arrow {
  transform: rotate(0deg);
  transition: transform 0.25s ease;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  margin-left: 6px;
}
.contact-accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.25s ease;
  padding: 0 20px;
  /* border moved to full-bleed pseudo-element on the accordion container */
}

/* Full-bleed divider under each accordion (one per accordion) */
.contact-accordion::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  bottom: 0;
  box-sizing: border-box;
  pointer-events: none;
}
.contact-accordion .accordion-content.open {
  padding-top: 18px;
  padding-bottom: 18px;
}
.contact-accordion .accordion-toggle[aria-expanded="true"] .accordion-arrow {
  transform: rotate(90deg);
}

/* Form layout */
.contact-form {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.contact-form .form-row {
  margin-bottom: 18px;
}
.contact-form .two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #000000;
  font-size: 1.4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.9rem;
}
.contact-form textarea {
  resize: vertical;
}

/* Reduce space between the 'What would you like to discuss?' label and its textarea */
.contact-form .form-row.message-row label {
  margin-bottom: 4px; /* bring the label closer to the textarea */
}
.contact-form .form-row.message-row textarea {
  padding-top: 8px; /* slightly reduce top padding so the visual line sits a bit closer */
}
/* Short-line inputs: narrower underline and constrained width for first/last name rows */
.contact-form .short-line {
  width: 280px; /* short visual line suitable for names */
  max-width: 100%;
  padding-left: 0; /* keep caret near label */
  margin-bottom: 10px; /* space between this input's underline and the next row */
}

/* Remove black/bold focus rectangle on tap for contact inputs while keeping an underline change */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-bottom-color: #111 !important; /* darker underline when focused */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Override browser autofill background (Chrome/Safari) and keep colors consistent */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: #111 !important;
  background-color: transparent !important;
}
input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: #111 !important;
}
.privacy-note {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  margin: 8px 0;
}
.btn-submit {
  display: inline-block;
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 28px;
  cursor: pointer;
  font-family: "Poppins", Arial, sans-serif;
}

/* Panel body generic padding for non-form panels */
.panel-body {
  padding: 6px 0 12px 0;
}

/* Full-bleed horizontal divider used under the services tagline/subtext */
.tagline-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  /* increased top margin so the divider sits lower under the subtext */
  margin-top: 80px;
  margin-bottom: 22px;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
}

/* Nearest office card styles */
.nearest-office {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 2vw; /* align with contact accordions */
  margin-bottom: 32px;
}
.nearest-office .office-card {
  background: #fff;
  border-radius: 18px;
  /* reduced vertical padding to lower card height; slightly wider horizontal padding */
  padding: 12px 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  /* increase max width so the card can expand more across the page */
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
}
.nearest-office .office-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.nearest-office-heading {
  padding-left: 2vw; /* align with accordions */
  margin: 18px 0 8px 0;
  font-size: 1.25rem;
  font-weight: 250;
}
.nearest-office h4 {
  display: none; /* heading is shown outside the container */
}
.nearest-office .office-location {
  font-size: 0.98rem;
  text-align: right;
  color: #111;
}
.nearest-office .office-country {
  font-weight: 600;
}
.nearest-office .office-address {
  margin: 6px 0 4px 0; /* tighter vertical spacing */
  color: #333;
  font-size: 0.95rem;
  line-height: 1.3;
}
.nearest-office .office-phone {
  margin-bottom: 8px;
  font-weight: 600;
}
.nearest-office .office-actions {
  /* lift contact button slightly so it sits higher in the card */
  margin-top: -18px;
  /* keep existing layout behavior */
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.btn-contact-office {
  background: transparent; /* outlined button */
  color: #111;
  border: 1px solid #111;
  padding: 8px 14px;
  border-radius: 28px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.btn-contact-office:hover {
  background: rgba(0, 0, 0, 0.04);
}
.btn-contact-office .btn-arrow {
  display: inline-block;
}

@media (max-width: 680px) {
  .nearest-office .office-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nearest-office .office-location {
    text-align: left;
  }
  /* Reset the upward nudge on small screens so spacing remains natural */
  .nearest-office .office-actions {
    margin-top: 18px;
  }
}

/* Services page rounded search bar */
.services-search-wrapper {
  width: 100%;
  /* keep default flow spacing; the visible shift is handled with transform
     on the inner pill so the divider below doesn't move */
  margin: 0 auto 22px auto;
  display: flex;
  justify-content: flex-start; /* align to left under logo */
  padding-left: 2vw; /* match tagline left offset */
}
.services-search-form {
  /* narrower maximum width for a more compact look */
  width: min(620px, 92vw);
  max-width: 620px;
}
.services-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  /* taller pill */
  border-radius: 36px;
  padding: 14px 14px;
  /* remove soft shadow and add a clean black stroke */
  box-shadow: none;
  border: 1px solid #000;
  /* visually nudge the pill down without affecting document flow */
  /* increased slightly to move the pill a bit lower */
  transform: translateY(26px);
  will-change: transform;
}
.services-search-bar input[type="text"] {
  flex: 1 1 auto;
  border: none;
  outline: none;
  font-size: 1.05rem;
  padding: 12px 14px; /* increases visual height */
  background: transparent;
  font-family: "Poppins", Arial, sans-serif;
}
.services-search-submit {
  background: transparent; /* remove dark background */
  color: #222; /* darker icon color */
  border: none;
  border-radius: 8px;
  padding: 10px 12px; /* larger tap area */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.services-search-submit svg {
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor; /* inherit color */
}
.services-search-submit:focus,
.services-search-submit:hover {
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 480px) {
  .services-search-form {
    width: calc(100% - 32px);
  }
  /* smaller visual nudge on very small screens; keep wrapper flow unchanged */
  .services-search-bar {
    transform: translateY(16px);
  }
  .services-search-bar {
    padding: 8px;
  }
  .services-search-submit {
    padding: 8px;
  }
}

/* Projects page rounded search bar */
.projects-search-wrapper {
  width: 100%;
  /* keep default flow spacing; the visible shift is handled with transform
     on the inner pill so the divider below doesn't move */
  margin: 0 auto 22px auto;
  display: flex;
  justify-content: flex-start; /* align to left under logo */
  padding-left: 2vw; /* match tagline left offset */
}
.projects-search-form {
  /* narrower maximum width for a more compact look */
  width: min(620px, 92vw);
  max-width: 620px;
}
.projects-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  /* taller pill */
  border-radius: 36px;
  padding: 14px 14px;
  /* remove soft shadow and add a clean black stroke */
  box-shadow: none;
  border: 1px solid #000;
  /* visually nudge the pill down without affecting document flow */
  /* increased slightly to move the pill a bit lower */
  transform: translateY(26px);
  will-change: transform;
}
.projects-search-bar input[type="text"] {
  flex: 1 1 auto;
  border: none;
  outline: none;
  font-size: 1.05rem;
  padding: 12px 14px; /* increases visual height */
  background: transparent;
  font-family: "Poppins", Arial, sans-serif;
}
.projects-search-submit {
  background: transparent; /* remove dark background */
  color: #222; /* darker icon color */
  border: none;
  border-radius: 8px;
  padding: 10px 12px; /* larger tap area */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.projects-search-submit svg {
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor; /* inherit color */
}
.projects-search-submit:focus,
.projects-search-submit:hover {
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 480px) {
  .projects-search-form {
    width: calc(100% - 32px);
  }
  /* smaller visual nudge on very small screens; keep wrapper flow unchanged */
  .projects-search-bar {
    transform: translateY(16px);
  }
  .projects-search-bar {
    padding: 8px;
  }
  .projects-search-submit {
    padding: 8px;
  }
}

@media (max-width: 768px) {
  /* Responsively reduce tagline/subtext sizes for small screens */
  .tagline-below-navbar {
    font-size: 3.5em;
    text-align: left;
  }
  .below-rectangle-subtext-left {
    font-size: 1em;
    opacity: 0.45; /* slightly higher opacity on small screens for readability */
  }
  .services-page .tagline-subtext {
    font-size: 0.95rem;
  }

  /* Issues cards: Make them uniform on mobile */
  .issues-section .issue-card {
    height: 50px !important; /* Same height for all cards */
    min-height: 50px !important;
    padding-bottom: 0 !important; /* Remove extra padding */
  }

  .issues-section .card-fill {
    display: block !important; /* Show images again */
  }

  .issues-section .issue-card::before {
    height: 20% !important; /* Thin rectangle overlay for all */
  }

  .issues-section .card-content {
    padding: 5px 10px !important; /* Consistent padding */
  }

  .issues-section .card-label {
    font-size: 0.7rem !important; /* Uniform font sizes */
  }

  .issues-section .card-title {
    font-size: 0.9rem !important;
  }

  /* Remove individual height overrides to ensure uniformity */
  .issue-card.card-orange,
  .issue-card.card-red,
  .issue-card.card-green {
    height: 50px !important;
  }
}

/* Right-aligned variant for taglines (used on About page) */
.tagline-right {
  /* Make the tagline span the full width and align its text to the right
     This avoids shrink-wrapping/margin conflicts and places the text at the
     far right edge of the page container. */
  display: block;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: right;
  padding-right: 2vw; /* small offset from the edge */
}

.below-rectangle-subtext-right {
  display: block;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: right;
  padding-right: 2vw;
  opacity: 0.55;
}

/* Left-aligned variant: place tagline at the far left of the content area */
.tagline-left {
  display: block;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  padding-left: 2vw; /* offset from left edge */
}

.below-rectangle-subtext-left {
  display: block;
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  padding-left: 2vw;
  /* Increased size and reduced opacity for the About subtext */
  font-size: 3em;
  opacity: 0.25;
}

.lang-menu a:hover {
  background: #f2f2f2;
}

.below-rectangle-header {
  max-width: 96vw;
  margin: 38px auto 0 auto;
  padding-left: 2vw;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 3em;
  font-weight: 200;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.below-rectangle-subtext {
  max-width: 96vw;
  margin: 10px auto 0 auto;
  padding-left: 2vw;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.3em;
  color: #1a1a1a;
  opacity: 0.55;
  letter-spacing: 0.2px;
}

/* About page specific styling */
.about-section {
  max-width: 96vw;
  margin: 40px auto 80px auto;
  padding: 0 2vw;
}
.about-intro {
  max-width: 1100px;
  margin: 0 auto 28px auto;
}
.about-heading {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 300;
  margin: 0 0 12px 0;
}
.about-lead {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.15rem;
  color: #222;
  line-height: 1.6;
  opacity: 0.95;
}
.about-cards {
  margin: 28px auto;
  padding: 0 2vw;
  max-width: 1200px;
}
.about-cards .cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.about-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.about-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Headings row aligned to the cards, outside and below them */
.cards-headings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
  align-items: start;
}
.card-heading {
  text-align: center;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  padding-top: 8px;
}

/* full-width divider that stretches left-to-right across the viewport */
.full-divider-wrapper {
  width: 100%;
  overflow: hidden;
  margin: 28px 0 12px 0;
}
.full-divider {
  display: block;
  width: 100vw;
  height: 1px;
  margin-left: calc(50% - 50vw); /* make it full-bleed */
  background: #e6e6e6;
  border: none;
}

@media (max-width: 768px) {
  .full-divider-wrapper {
    margin-top: 14px;
  }
}

.who-are-we {
  max-width: 1200px;
  margin: 12px auto 32px auto;
  padding: 0 2vw;
}
.who-heading {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 0 0 10px 0;
}
.who-text {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #222;
  margin: 0;
}

/* subtext placed directly under headings (WHO ARE WE, etc.) */
.who-subtext {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #222;
  margin: 6px 0 18px 0;
  opacity: 0.95;
}

/* CORE VALUES styling */
.core-heading {
  font-family: "georgia pro", georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  margin: 18px 0 8px 0;
}
.core-list {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #222;
  padding-left: 0;
  margin-left: 0;
}
.core-values {
  max-width: 900px;
  margin: -20px 0 36px 0;
  padding-left: 2vw;
  padding-right: 2vw;
}
.client-logo {
  flex: 0 0 auto; /* prevent shrinking/wrapping */
  width: 160px; /* slightly larger so logos are clearer */
  display: flex;
  flex-direction: column; /* stack image above caption */
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 8px 6px 6px 6px;
  box-sizing: border-box;
}
.client-logo img {
  max-width: 100%;
  max-height: 72px; /* constrain logo height */
  object-fit: contain;
  display: block;
}
.client-caption {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.1;
  color: #333;
  text-align: center;
  width: 100%;
}
@media (max-width: 900px) {
  .client-logo {
    width: 140px;
  }
  .client-logo img {
    max-height: 64px;
  }
  .client-caption {
    font-size: 0.82rem;
  }
}
@media (max-width: 600px) {
  .client-logo {
    width: 120px;
  }
  .client-logo img {
    max-height: 56px;
  }
  .client-caption {
    font-size: 0.78rem;
  }
}
.why-values {
  max-width: 980px;
  margin: 0 0 48px 0;
  padding: 0 2vw;
}
.why-list {
  list-style: disc;
  margin: 0 0 0 1.25rem;
  padding: 0;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #222;
}
.why-list li {
  margin: 8px 0;
}

/* Responsive: stack cards and headings on small viewports */
@media (max-width: 880px) {
  .about-cards .cards-grid,
  .cards-headings {
    grid-template-columns: 1fr;
  }
  .about-card img {
    height: 180px;
  }
  .cards-headings {
    margin-top: 10px;
  }
  /* reduce WHO text on smaller viewports for readability */
  .who-text {
    font-size: 1.05rem;
  }
}

@media (max-width: 900px) {
  .about-headings {
    flex-direction: row;
    gap: 12px;
  }
  .about-texts {
    grid-template-columns: 1fr;
  }
  .about-col-heading {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .about-heading {
    font-size: 1.6rem;
    text-align: center;
  }
  .about-lead {
    font-size: 1rem;
    text-align: center;
  }
  .about-cards {
    gap: 14px;
  }
  .design-heading {
    font-size: 1rem !important;
  }
}

@media (max-width: 600px) {
  .who-heading,
  .core-heading {
    font-size: 1.5rem;
  }
  .who-text,
  .why-list,
  .core-list {
    font-size: 1rem;
  }
  .design-heading {
    font-size: 1.2rem;
  }
  .why-heading {
    font-size: 1.4rem;
  }
}

.below-rectangle-link {
  display: block;
  max-width: 96vw;
  margin: 90px auto 0 auto;
  padding-left: 2vw;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.15em;
  color: #1a1a1a;
  opacity: 0.45;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition:
    opacity 0.2s,
    color 0.2s;
}

.section-header {
  max-width: 96vw;
  margin: 30px auto 0 auto;
  padding-left: 2vw;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 3em;
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: 0.4px;
}

.section-subtext {
  max-width: 96vw;
  margin: 10px auto 0 auto;
  padding-left: 2vw;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.2em;
  color: #1a1a1a;
  opacity: 0.48;
  letter-spacing: 0.2px;
}

/* Masonry Card Styles */
.masonry-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.masonry-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
/* Reveal-on-scroll helpers: fade+slide up for textual elements */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 420ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 {
  transition-delay: 60ms;
}
.reveal.delay-2 {
  transition-delay: 120ms;
}
.reveal.delay-3 {
  transition-delay: 180ms;
}

.masonry-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

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

.masonry-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
}

.card-overlay a {
  color: white;
  text-decoration: none;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.15em;
}

.card-overlay p {
  font-size: 0.9em;
  margin-top: 5px;
  font-family: "Georgia Pro", Georgia, serif;
}

.card-link {
  text-align: center;
  padding: 20px;
}

.card-link a {
  opacity: 0.45;
  text-decoration: none;
  color: #222;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 0.9em;
}

.card-link p {
  font-size: 2em;
  color: #222;
  margin-top: 5px;
  font-family: "Georgia Pro", Georgia, serif;
}

.four-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 100px;
  gap: 30px;
  max-width: 96vw;
  margin: 40px auto 0 auto;
  padding: 0 2vw;
  justify-items: center;
}

.card-1 {
  grid-row-end: span 5;
}
.card-2 {
  grid-row-end: span 6;
}
.card-3 {
  grid-row-end: span 4;
  position: relative;
}
.card-4 {
  grid-row-end: span 6;
}

.card-1 img {
  height: 500px;
}

/* Design Philosophy cards */
.design-heading {
  font-family: "georgia pro", georgia, serif;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 24px 0 12px 0;
}
/* WHY ABOD heading - match requested 2.5rem size */
.why-heading {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 300;
  margin: 18px 0 8px 0;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .why-heading {
    font-size: 1.2rem;
  }
}
/* OUR CLIENTS heading - slightly larger to match visual weight of other H2s */
.clients-heading {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 2.5rem; /* increased size per request */
  font-weight: 300;
  margin: 20px 0 8px 0;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .clients-heading {
    font-size: 1.2rem;
  }
}
.design-philosophy {
  max-width: 1200px;
  margin: 12px auto 40px auto;
  padding: 0 2vw;
}
.design-philosophy-inner {
  position: relative;
  /* allow cards to visually extend to the viewport edges (no clipping) */
  overflow: visible;
  /* make the inner wrapper full-bleed so cards stretch left-to-right */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  padding: 0 2vw;
}
.design-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  /* provide smooth scroll behavior when converted to flex on wide screens */
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
  .design-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .design-cards::-webkit-scrollbar {
    height: 0px;
    background: transparent;
    display: none;
  }
  .design-cards:focus {
    outline: none;
  }
  .design-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
  }
  .design-controls {
    display: none;
  }
}
.design-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  height: 300px;
}
.design-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.design-card figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 14px;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (min-width: 1100px) {
  /* Convert to a single horizontal row with large cards on wide screens */
  .design-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 28px;
    align-items: stretch;
    /* horizontal scrolling is allowed, but hide the native scrollbar */
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; /* space for focus outlines */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
  }
  /* Hide WebKit scrollbar */
  .design-cards::-webkit-scrollbar {
    height: 0px;
    background: transparent;
    display: none;
  }
  .design-cards:focus {
    outline: none;
  }
  .design-card {
    flex: 0 0 520px; /* fixed width per card so they appear large in one row */
    min-width: 520px;
    max-width: 520px;
    transition:
      transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1),
      box-shadow 260ms ease;
    will-change: transform;
  }
  .design-card img {
    height: 320px;
    transition: transform 260ms ease;
  }
  .design-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 48px rgba(15, 15, 15, 0.16);
  }
  .design-card:hover img {
    transform: scale(1.03);
  }
  /* Position the controls to the upper-right inside the inner wrapper */
  .design-controls {
    position: absolute;
    /* lift controls further above the card row so they sit outside the card area */
    top: -48px;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 10;
  }
  .design-controls button {
    /* Make the controls simple arrow glyph buttons - no circle border */
    background: transparent;
    border: none;
    border-radius: 0;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px; /* larger chevrons */
    color: #222;
    padding: 8px;
  }
  .design-controls button:hover {
    color: #000;
  }
  .design-controls button:focus {
    outline: 3px solid rgba(34, 34, 34, 0.12);
    outline-offset: 3px;
  }
  .design-controls button:disabled {
    opacity: 0.35;
    cursor: default;
  }
  /* SVG sizing + flipping for prev arrow */
  .design-controls button svg {
    width: 28px;
    height: 28px;
    display: block;
    color: currentColor; /* keep fill=currentColor working */
  }
  .design-controls .design-prev svg {
    transform: scaleX(-1);
  }
  /* Clients row: small, single-line logos left-to-right; allow horizontal scroll on narrow viewports */
  .clients-cards {
    max-width: 1200px;
    margin: 12px auto 24px auto;
    padding: 0 2vw;
    box-sizing: border-box;
  }
  .clients-row {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto; /* allow horizontal scroll if viewport is too narrow */
    white-space: nowrap; /* keep items on a single line */
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
  }

  @media (max-width: 1000px) {
    .clients-row {
      display: flex !important;
      gap: 18px;
      overflow-x: auto;
      justify-content: flex-start;
      align-items: center;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
    }
    .clients-row::-webkit-scrollbar {
      height: 6px;
    }
    .clients-row::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.08);
      border-radius: 6px;
    }
  }
  .clients-row::-webkit-scrollbar {
    height: 6px;
  }
  .clients-row::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
  }
  .client-logo {
    flex: 0 0 auto; /* prevent shrinking/wrapping */
    width: 200px; /* increased so logos read more clearly */
    height: 96px;
    display: flex;
    flex-direction: row; /* arrange logo and caption side by side */
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
    transition:
      transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
      box-shadow 220ms ease;
  }
  .client-logo:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px rgba(15, 15, 15, 0.12);
  }
  .client-logo img {
    max-width: 100%;
    max-height: 72px; /* keep logo visually balanced inside larger card */
    object-fit: contain;
    display: block;
  }
  .client-caption {
    margin-top: 8px;
    font-family: "Georgia Pro", Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #222;
    text-align: center;
  }
  @media (max-width: 600px) {
    .client-logo {
      width: 140px;
      height: 60px;
      padding: 6px;
    }
    .client-logo img {
      max-height: 48px;
    }
    .client-caption {
      font-size: 0.88rem;
    }
  }
}

@media (max-width: 880px) {
  .design-card img {
    height: 160px;
  }
  .design-card figcaption {
    font-size: 0.95rem;
  }
}
.card-2 img {
  height: 600px;
}
.card-3 img {
  height: 400px;
}
.card-4 img {
  height: 550px;
}

.our-work-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 190px 0 0 0;
  padding-left: 2vw;
  padding-right: 2vw;
}

.our-work-header {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 3em;
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: 0.4px;
  margin: 0;
}

.see-projects-button {
  padding: 12px 24px;
  background-color: #f8f8f8;
  border: 1px solid #000;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-family: "Poppins", sans-serif;
  font-size: 1em;
  font-weight: 500;
  transition:
    background-color 0.3s,
    transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-left: 10px;
  margin-right: 2vw;
}

.see-projects-button:hover {
  background-color: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.arrow {
  background: none;
  border: 2px solid #333;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow:hover {
  background-color: #333;
  color: white;
}

.work-showcase {
  max-width: 96vw;
  margin: 60px auto 0 auto;
  padding: 0 2vw;
}

.work-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.work-images img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 20px;
  border: none;
  box-shadow: none;
  transition: transform 0.3s;
}

.work-images img:hover {
  transform: scale(1.05);
}

.work-texts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.work-text {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.work-text.animate {
  opacity: 1;
  transform: translateY(0);
}

.work-text h3 {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 2em;
  font-weight: 500;
  margin: 0 0 10px 0;
  color: #1a1a1a;
}

.work-text p {
  font-family: "Poppins", sans-serif;
  font-size: 1em;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.four-image-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 96vw;
  margin: 60px auto 0 auto;
  padding: 0 2vw;
}

.image-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-card:hover {
  transform: none; /* Disable hover lift effect on mobile to prevent shakiness during scrolling */
}
.image-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.four-image-cards a {
  text-decoration: none;
  display: block;
}

.card-container {
  display: flex;
  flex-direction: column;
}

.cards-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 96vw;
  margin: 20px auto 0 auto;
  padding: 0 2vw;
}

.card-link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-link {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.9em;
  color: #666;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  padding: 10px 0;
  margin-bottom: 10px;
}

.card-link:hover {
  opacity: 1;
}

.card-link-text {
  text-align: center;
  max-width: 300px;
}

.card-link-main {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.2em;
  font-weight: 500;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.card-link-sub {
  font-family: "Poppins", sans-serif;
  font-size: 0.85em;
  color: #666;
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}

/* Position containers under specific cards */
.cards-links .card-link-container:nth-child(1) {
  grid-column: 2;
}

.cards-links .card-link-container:nth-child(2) {
  grid-column: 3;
}

.cards-links .card-link-container:nth-child(3) {
  grid-column: 4;
}

.our-people-header {
  max-width: 96vw;
  margin: 100px auto 0 auto;
  padding-left: 2vw;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 3em;
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: 0.4px;
}

.people-subtext {
  max-width: 96vw;
  margin: 10px auto 0 auto;
  padding-left: 2vw;
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.1em;
  color: #1a1a1a;
  opacity: 0.48;
  letter-spacing: 0.2px;
  line-height: 1.5;
}

.staff-showcase {
  max-width: 96vw;
  margin: 60px auto 0 auto;
  padding: 0 2vw;
}

.staff-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.staff-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.staff-images img:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.staff-texts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.staff-text {
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.staff-text.animate {
  opacity: 1;
  transform: translateY(0);
}

.staff-text h3 {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.2em;
  font-weight: 500;
  margin: 0 0 5px 0;
  color: #1a1a1a;
}

.staff-text .position {
  font-family: "Poppins", sans-serif;
  font-size: 0.9em;
  color: #333;
  margin: 0 0 10px 0;
  opacity: 1;
}

.staff-text .bio {
  display: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.8em;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.staff-text.animate .bio {
  display: block;
}

/* Scroll animations */
.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.image-carousel {
  width: 100%;
  overflow: visible;
  margin: 40px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  user-select: none;
}

.carousel-inner {
  display: flex;
  width: 800%;
  animation: slide 32s infinite linear;
}

.slide {
  width: 10%;
  padding: 0 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  transition:
    transform 0.5s,
    height 0.5s;
}

.slide.in-view img {
  transform: scale(1.2);
  height: 300px;
}

.project-text {
  display: none;
  margin-top: 10px;
  text-align: center;
  color: #333;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.slide.in-view .project-text {
  display: block;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 15px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  width: 30px;
  height: 4px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  /* allow the panel to grow on larger phones but stay usable on small screens */
  width: min(320px, 82vw);
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  transition: right 0.28s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1000;
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.mobile-nav-links li {
  margin: 12px 0;
}

.mobile-nav-links a {
  text-decoration: none;
  color: #222;
  font-size: 1.15rem; /* slightly larger for tap targets */
  font-weight: 600;
  display: block;
  padding: 14px 4px; /* increased vertical padding for easier tapping */
  border-bottom: 1px solid #f1f1f1;
  transition:
    background 0.12s,
    color 0.12s;
}
.mobile-nav-links a:active,
.mobile-nav-links a:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #111;
}

.mobile-search {
  margin: 20px 0;
}

.mobile-search form {
  display: flex;
  gap: 10px;
}

.mobile-search input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

.mobile-search button {
  padding: 10px 15px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.mobile-language {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-language a {
  text-decoration: none;
  color: #666;
  font-size: 0.9em;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  nav.navbar {
    /* full-width navbar on mobile; keep compact height */
    width: 100%;
    height: auto;
    padding: 8px 16px;
    align-items: center;
  }
  /* Ensure client logos inside the navbar center stay compact on small screens */
  .navbar-center .client-logo img {
    max-height: 60px;
  }
  .navbar-center .client-caption {
    font-size: 0.9rem;
  }

  /* hide the full desktop nav on mobile and show the hamburger */
  .navbar-center {
    display: none; /* collapse center nav into mobile menu */
  }

  .navbar-right {
    display: none;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 24px; /* Moved slightly to the right */
    top: 8px;
    z-index: 1200;
    pointer-events: auto;
    justify-content: center;
    align-items: center;
  }

  .search-bar {
    display: none;
  }

  .tagline-below-navbar {
    font-size: 2.5rem;
    text-align: left;
  }

  .see-projects-button {
    padding: 6px 12px;
    font-size: 0.8em;
  }

  /* On small screens, keep the tagline and subtext centered */
  .tagline-right,
  .below-rectangle-subtext-right {
    text-align: center;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .large-rounded-rectangle {
    width: 95vw;
    min-height: 250px;
  }

  /* make hero image much shorter on small phones to avoid long scrolls */
  .rectangle-image {
    height: 320px;
  }

  .below-rectangle-header {
    font-size: 1.8em;
    text-align: left;
  }

  .below-rectangle-subtext {
    font-size: 1em;
    text-align: left;
  }

  .section-header {
    font-size: 1.5em;
    text-align: left;
  }

  .section-subtext {
    font-size: 0.9em;
    text-align: left;
  }

  .four-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  /* Mobile card layout improvements: normalize card heights and spacing */
  .four-cards-grid .masonry-card img,
  .four-cards-grid img,
  .four-cards-grid .card img,
  .four-cards-grid .card .card-fill {
    width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
    object-fit: cover !important;
    display: block;
  }

  .four-cards-grid .card-link,
  .four-cards-grid .card-link a {
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  /* Make each visual card use consistent padding and a small shadow to separate */
  .four-cards-grid .card,
  .four-cards-grid .card-link {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Ensure uniform card heights and proper stacking on mobile */
  .four-cards-grid .card {
    grid-row-end: span 1 !important;
  }
  .four-cards-grid .masonry-card img {
    height: 250px !important;
  }
  .four-cards-grid .card-link {
    grid-column: auto !important;
    grid-row-start: auto !important;
    margin-top: 10px !important;
  }
  .four-cards-grid .card-link p {
    font-size: 1.5em !important;
  }

  .work-showcase {
    flex-direction: column;
  }

  /* Make the Our Work area full-bleed and horizontally scrollable on mobile */
  .work-showcase {
    /* full-bleed left-to-right but keep a comfortable inset so cards don't
       visually disappear into the viewport edges when partially scrolled */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 4vw;
    padding-right: 4vw;
    width: 100vw;
    box-sizing: border-box;
    position: relative; /* for floating description positioning */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    scroll-behavior: smooth;
    scroll-padding-inline-start: 4vw; /* ensure first slide snaps with a small inset */
    touch-action: pan-x;
  }

  .work-showcase .work-images {
    display: flex;
    gap: 6px; /* small breathing room but no heavy visual gutters */
    flex-wrap: nowrap;
    align-items: stretch;
    padding-bottom: 8px;
  }

  .work-showcase .work-images a {
    flex: 0 0 98%; /* occupy most of viewport so one card shows at a time */
    max-width: 98%;
    display: inline-block;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  .work-showcase .work-images img {
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    object-fit: cover !important;
    /* remove visual borders and shadows so cards flow seamlessly left→right */
    border-radius: 20px !important;
    box-shadow: none !important;
    border: none !important;
    display: block;
    outline: none !important;
  }

  .work-showcase .work-images a:focus,
  .work-showcase .work-images img:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  .work-showcase .work-images img:hover {
    transform: none !important;
  }

  .work-showcase .work-images a {
    width: 80% !important;
  }

  .work-showcase .work-images {
    display: flex !important;
  }

  /* Floating description that appears under the active card */
  .work-floating-text {
    position: absolute;
    left: 0;
    top: 100%; /* will be positioned by JS */
    transform: translateY(8px);
    opacity: 0;
    transition:
      opacity 300ms ease,
      transform 300ms ease;
    pointer-events: none;
    z-index: 2000;
    background: transparent; /* keep transparent so it doesn't cover edges */
    color: #111;
    text-align: left;
  }

  .work-floating-text.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .work-floating-text h3 {
    font-size: 1.05rem;
    margin: 0 0 6px 0;
    font-weight: 600;
  }

  .work-floating-text p {
    font-size: 0.95rem;
    margin: 0;
    color: #333;
    line-height: 1.35;
  }

  /* Work text fade-in for active slide */
  .work-texts {
    margin-top: 12px;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center; /* center descriptions under the focused slide */
  }

  /* On mobile we use a floating description under the active card; hide the static list */
  .work-texts {
    display: none !important;
  }

  .work-texts .work-text {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 300ms ease,
      transform 300ms ease;
    display: none; /* hide inactive text to avoid long page */
    max-width: 92vw;
    margin: 0 auto;
  }

  /* reduce typography for mobile descriptions */
  .work-texts .work-text h3 {
    font-size: 1.05rem;
    margin: 0 0 6px 0;
    line-height: 1.2;
  }

  .work-texts .work-text p {
    font-size: 0.95rem;
    margin: 0;
    color: #333;
    line-height: 1.35;
  }

  .work-texts .work-text.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  /* --- Mobile: stack Issues cards as rounded rectangles --- */
  .issues-section {
    padding-left: 4vw;
    padding-right: 4vw;
    box-sizing: border-box;
  }

  .issues-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    margin-top: 12px;
    padding-bottom: 18px;
  }

  .issue-card {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    background: none;
    border-radius: 20px;
    overflow: hidden;
    border: none !important;
  }

  .issue-card .card-fill {
    width: 100%;
    height: 100px !important;
    object-fit: cover;
    display: block;
  }

  .issue-card .card-content {
    padding: 8px 10px;
  }

  .issue-card .card-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom: 6px;
  }

  .issue-card .card-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0;
    color: #111;
  }

  /* Tighten spacing for small phones */
  @media (max-width: 420px) {
    .issue-card .card-fill {
      height: 140px;
    }
    .issue-card .card-content {
      padding: 12px;
    }
    .issue-card .card-title {
      font-size: 1rem;
    }
  }

  /* small scrollbar styling to keep it tidy */
  .work-showcase::-webkit-scrollbar {
    height: 8px;
  }
  .work-showcase::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 6px;
  }

  .work-images,
  .work-texts {
    width: 100%;
  }

  .work-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .work-images img {
    width: 100% !important;
    height: auto !important;
    max-height: 180px !important;
    object-fit: cover !important;
    border-radius: 6px;
  }

  .work-texts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .staff-showcase {
    flex-direction: column;
  }

  .staff-images,
  .staff-texts {
    width: 100%;
  }

  .staff-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .staff-images img {
    width: 100%;
    height: auto !important;
    max-height: 160px !important;
    object-fit: cover !important;
  }

  /* Extra small screens: tighter adjustments */
  @media (max-width: 420px) {
    .tagline-below-navbar {
      font-size: 1.5rem;
      padding-left: 4vw;
      padding-right: 4vw;
    }

    .rectangle-image {
      height: 240px;
    }

    .work-images img {
      width: 100%;
      height: 140px;
    }

    /* Ensure issues section doesn't force a full-viewport tall panel on tiny devices */
    .issues-section {
      min-height: auto;
      padding: 2rem 1rem;
      margin-top: 3rem;
    }

    .issues-content {
      grid-template-columns: 1fr;
      padding: 1rem;
    }

    /* Stack footer columns for mobile */
    .footer-right-columns {
      display: block;
      gap: 1rem;
    }

    .footer-col {
      margin-bottom: 18px;
    }

    .footer-bottom .footer-bottom-inner {
      flex-direction: column;
      gap: 12px;
    }

    /* Reduce footer font sizes for mobile */
    .footer-left .site-name {
      font-size: 1.2rem;
    }
    .footer-left .site-desc {
      font-size: 0.85rem;
    }
    .footer-col h4 {
      font-size: 1rem;
    }
    .footer-col a {
      font-size: 0.9rem;
    }
  }
  .staff-texts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
  }

  .four-image-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin: 40px auto 0 auto;
    padding: 0 2vw;
    max-width: 96vw;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .four-image-cards::-webkit-scrollbar {
    height: 0px;
    background: transparent;
    display: none;
  }

  .image-card {
    flex: 0 0 auto;
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 280px;
    align-self: flex-start; /* Prevent vertical movement during horizontal scrolling */
  }

  .image-card img {
    height: 300px;
  }

  .cards-links {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 15px auto 0 auto;
  }

  .card-link {
    font-size: 0.85em;
    padding: 8px 0;
    margin-bottom: 8px;
  }

  .card-link-main {
    font-size: 1em;
  }

  .card-link-sub {
    font-size: 0.8em;
  }

  /* On mobile, show all containers in order */
  .cards-links .card-link-container:nth-child(1),
  .cards-links .card-link-container:nth-child(2),
  .cards-links .card-link-container:nth-child(3) {
    grid-column: auto;
  }
}

/* Updated Issues Section Styles - Smaller Cards */
.issues-section {
  background-color: #000000;
  color: #ffffff;
  padding: 4rem 2rem 2rem;
  /* add space above to separate from previous section */
  margin-top: 6rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.issues-header {
  /* match Our People heading alignment */
  max-width: 96vw;
  margin: 0 auto;
  width: 100%;
  padding-left: 2vw;
}

/* Nudge the heading block slightly left so it better aligns with the cards */
.issues-header .header-content {
  padding-left: -20rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.issues-title {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 4rem;
  font-weight: 400;
  color: #f0f0f0;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.issues-description {
  font-size: 1.125rem;
  font-weight: 300;
  color: #cccccc;
  line-height: 1.5;
  max-width: 500px;
}

.view-more-btn {
  background-color: #333333;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.view-more-btn:hover {
  background-color: #444444;
  transform: translateY(-2px);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.view-more-btn:hover .arrow-icon {
  transform: translateX(2px);
}

.issues-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.25rem;
  padding: 2.5rem 2vw;
  max-width: 96vw; /* match heading container */
  margin: 0 auto;
  width: 100%;
  flex: 1;
  box-sizing: border-box;
}

.issue-card {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden; /* clip image to rounded corners */
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 360px; /* increased height */
  position: relative;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
  padding-bottom: 180px; /* room for larger semi-circle */
  width: 420px;
  flex-shrink: 0;
}

.issue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 1.5rem; /* increased padding */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.card-label {
  font-size: 0.95rem; /* larger label for readability */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.8rem; /* larger title for emphasis */
  font-weight: 500;
  line-height: 1.25;
  color: #ffffff;
}

.card-image-wrapper {
  height: 160px; /* increased image height */
  overflow: hidden;
  position: relative;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  clip-path: ellipse(100% 100% at 50% 0%);
}

.issue-card:hover .card-image {
  transform: scale(1.05);
}

/* Zoom the underlying full-card image when hovering the card */
.issue-card:hover .card-fill {
  transform: scale(1.08);
}

.card-orange {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  /* orange overlay for the card (covers image except semicircle) */
  --issue-overlay: linear-gradient(
    135deg,
    rgba(230, 126, 34, 1) 0%,
    rgba(211, 84, 0, 1) 100%
  );
}

.card-red {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  /* red overlay */
  --issue-overlay: linear-gradient(
    135deg,
    rgba(231, 76, 60, 1) 0%,
    rgba(192, 57, 43, 1) 100%
  );
}

.card-green {
  background: linear-gradient(135deg, #8d998c 0%, #6b7b6b 100%);
  /* gray overlay (used for the third card) */
  --issue-overlay: linear-gradient(
    135deg,
    rgba(141, 153, 140, 1) 0%,
    rgba(107, 123, 107, 1) 100%
  );
}

.issue-card:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Circular image inside the card */
.card-circle {
  display: none;
}

.card-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* full-card image that sits under the color overlay */
.card-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.32, 1);
  transform-origin: center center;
}

/* overlay covering the image but with a transparent semicircle at the bottom-right */
.issue-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  /* color overlay is provided per-card via the --issue-overlay variable */
  background: var(
    --issue-overlay,
    linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55))
  );
  /* mask out a circular hole near the bottom-right so image shows through */
  /* much larger hole; moved higher (90%) so a larger semicircle shows */
  -webkit-mask-image: radial-gradient(
    circle 220px at calc(100% - 220px) 90%,
    transparent 0 220px,
    black 221px 100%
  );
  mask-image: radial-gradient(
    circle 220px at calc(100% - 220px) 90%,
    transparent 0 220px,
    black 221px 100%
  );
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 3; /* above overlay */
}

/* Ensure card has space for the floating circle */
.issue-card {
  padding-top: 24px; /* small offset so circle doesn't overlap the content too much */
}

.view-more-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .issues-content {
    flex-wrap: wrap; /* Allow cards to wrap to next line */
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }

  .issue-card {
    flex: 0 1 calc(50% - 0.5rem); /* Two cards per row on medium screens */
    min-width: 300px;
  }

  .issues-title {
    font-size: 3rem;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .view-more-btn {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0; /* Remove body padding to eliminate white space around the page */
  }

  .issues-section {
    padding: 2rem 1rem 1rem;
  }

  .issues-content {
    /* Removed flex-direction: column for mobile since we use Bootstrap cards */
    gap: 1rem !important;
    align-items: center;
  }

  .issue-card {
    width: 100% !important; /* Full width cards on mobile */
    max-width: 420px; /* But not wider than desktop */
    min-height: 360px; /* Match desktop height */
    position: relative; /* Ensure proper positioning context */
  }

  .footer-right .container {
    padding: 0; /* Remove side padding on mobile to eliminate white space */
    max-width: 100%; /* Ensure full width on mobile */
  }

  .footer-bottom .footer-bottom-inner {
    padding: 0; /* Remove side padding on mobile */
    max-width: 100%; /* Ensure full width on mobile */
  }

  .issues-title {
    font-size: 2.5rem;
  }

  .issues-description {
    font-size: 1rem;
  }

  .card-content {
    padding: 1.5rem; /* Restore padding for mobile */
  }

  .card-label {
    font-size: 0.95rem; /* Restore label size */
  }

  .card-title {
    font-size: 1.8rem; /* Restore title size */
    line-height: 1.25;
  }

  .card-image-wrapper {
    height: 160px; /* Restore image height */
  }

  .issues-section .issue-card {
    height: auto !important; /* Allow natural height for images */
  }

  .issue-card::before {
    display: block !important; /* Show color backgrounds on mobile */
  }

  .issue-card {
    padding-bottom: 180px; /* Restore padding for semi-circle */
  }

  .card-fill {
    display: none !important;
  }

  .card-content {
    display: flex !important; /* Show text on mobile */
  }

  /* Remove the tiny heights that were hiding content */
  .issue-card.card-orange,
  .issue-card.card-red,
  .issue-card.card-green {
    height: auto !important;
    background: var(--issue-overlay) !important;
  }

  .card-content {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    color: white;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    padding: 1rem;
  }

  .card-label {
    color: rgba(255, 255, 255, 0.9);
  }

  .card-title {
    color: white;
  }

  .card-fill {
    display: none !important;
  }

  .issues-section .issue-card {
    height: auto !important;
    min-height: 360px !important;
    padding-bottom: 180px !important;
  }

  .issues-section .issue-card::before {
    display: none !important;
  }

  /* Restore color backgrounds on mobile */
  .card-orange {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
  }

  .card-red {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
  }

  .card-green {
    background: linear-gradient(135deg, #8d998c 0%, #6b7b6b 100%) !important;
  }

  .issues-section .card {
    border: none;
    border-radius: 20px;
    margin-bottom: 1rem;
    width: 100% !important;
    background: #ffffff;
  }

  .issues-section .card-img-top {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .issues-section .card-body {
    padding: 8px 10px;
    color: #333;
    background: none;
  }

  .issues-section .card-text {
    margin: 0;
    color: #333;
  }
}

@media (max-width: 480px) {
  .issues-title {
    font-size: 2rem;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .card-content {
    padding: 5px 0;
  }

  .card-image-wrapper {
    height: 50px;
  }

  /* Existing base styles (do not change these) */
  .issue-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px; /* Base height for desktop/tablet */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
    cursor: pointer;
  }

  /* Add or update this mobile media query */
  @media (max-width: 480px) {
    /* Targets mobile devices (adjust breakpoint if needed) */
    .issue-card {
      height: 200px; /* Reduced height for mobile - change this value as desired */
      max-width: 100%; /* Optional: Make cards full-width on mobile for better fit */
    }
  }
}

/* Animation for section load */
.issues-section {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card hover animations */
.issue-card {
  animation: slideUp 0.6s ease-out;
}

.issue-card:nth-child(1) {
  animation-delay: 0.1s;
}

.issue-card:nth-child(2) {
  animation-delay: 0.2s;
}

.issue-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stronger overrides for issues images to ensure they're small and card-contained */
.issues-section .card-image,
.issues-section .card-image-wrapper img {
  height: 100% !important;
  max-height: none !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.issues-section .issue-card {
  min-height: 320px !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
}

/* Full-bleed black container immediately after Our People */
.black-section {
  background: #000;
  color: #fff;
  /* full-bleed technique: expand outside centered page container */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 80px 0;
}

.black-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Footer: full-bleed red block after Issues section */
.footer-right {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #ffffff;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  padding: 50px 0 0;
}
/* Ensure footer is pushed to the bottom when page content is short */
.footer-right {
  margin-top: auto;
}

/* Footer inner (top section: strapline + nav columns) */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-left {
  flex: 0 1 420px;
}
.footer-left .site-desc,
.footer-left .footer-strapline {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.97;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  color: #fff;
}

.footer-right-columns {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-shrink: 0;
}

.footer-col h4 {
  display: none; /* No column headers in reference design */
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.footer-col a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Footer divider */
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 40px 40px 0;
}

/* Footer bottom row: legal links + copyright */
.footer-bottom {
  margin: 0;
  padding: 0;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Legal links row */
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-legal-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  transition: opacity 0.2s;
}
.footer-legal-links a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Copyright */
.footer-copyright {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.footer-copyright span {
  color: rgba(255, 255, 255, 0.85);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.8rem;
  white-space: nowrap;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}

/* Social icons row */
.footer-socials-row {
  padding: 14px 0 18px;
}
.footer-socials-row .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.footer-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-link {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  transition:
    opacity 0.18s,
    transform 0.12s;
}
.social-link svg {
  display: block;
  width: 17px;
  height: 17px;
  color: inherit;
}
.social-link:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

/* Footer blurb styling */
.footer-left .footer-blurb {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 520px;
}
/* Projects page header and subtext */
.projects-header {
  font-size: 3rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem 0;
  color: #333;
  font-family: "Poppins", Arial, sans-serif;
}

.projects-subtext {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
  font-family: "Georgia Pro", Georgia, serif;
}

@media (max-width: 768px) {
  .projects-header {
    font-size: 2.5rem;
    margin: 1.5rem 1rem 0.5rem;
  }

  .projects-subtext {
    font-size: 1rem;
    margin: 0 1rem 2rem;
  }
}

/* Projects page styles */
.intro-section {
  padding: 3rem 5%;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.intro-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 2rem 5%;
  margin-top: 4rem;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card {
  width: 100%;
  height: 250px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-content {
  text-align: left;
  padding: 0 1rem;
}

.project-content h3 {
  font-size: 1.8rem;
  font-weight: 300;
  margin: 0 0 10px 0;
  color: #333;
  font-family: Georgia;
}

.project-content p {
  font-size: 1rem;
  color: #666;
  margin: 0 0 10px 0;
  line-height: 1.4;
  font-family: Georgia;
  opacity: 0.9;
}

.projects-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 20px 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.second-grid {
  margin-top: 0.5rem;
}

.project-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

a {
  text-decoration: none;
}

/* Expandable project descriptions for mobile - now hidden by default */
.project-description {
  display: none;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid #e9ecef;
}

.project-description-content {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-description-content strong {
  color: #333;
  font-weight: 600;
}

.project-description-content br {
  margin-bottom: 0.5rem;
}

.view-full-project {
  display: inline-block;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid #333;
  border-radius: 25px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.view-full-project:hover {
  background: #333;
  color: white;
}

/* Mobile-friendly styles for projects page */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
    padding: 1rem 1rem;
    margin-top: 2rem;
  }

  .project-card {
    height: 200px; /* Shorter cards on mobile */
  }

  .project-content h3 {
    font-size: 1.1rem; /* Smaller title */
  }

  .project-content p {
    font-size: 0.9rem; /* Smaller location text */
  }

  .projects-search-wrapper {
    padding: 0 1rem;
  }

  .tagline-below-navbar h1 {
    font-size: 2.5rem; /* Smaller tagline on mobile */
  }

  .tagline-subtext {
    font-size: 1rem;
  }

  /* Expanded project styling */
  .project-item.expanded {
    margin-bottom: 2rem;
  }

  .project-item.expanded .project-description {
    animation: slideDown 0.3s ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile fade animations for card texts */
@media (max-width: 768px) {
  .cards-links .card-link-container {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.5s ease,
      transform 0.5s ease;
  }

  .cards-links .card-link-container.fade-in {
    opacity: 1;
    transform: translateY(0);
  }

  .cards-links .card-link-container.fade-out {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Mobile fade animations for four-image-cards texts */
@media (max-width: 768px) {
  .four-image-cards .card-link-container {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.5s ease,
      transform 0.5s ease;
  }

  .four-image-cards .card-link-container.fade-in {
    opacity: 1;
    transform: translateY(0);
  }

  .four-image-cards .card-link-container.fade-out {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  padding: 20px;
  display: none;
  font-family: "Poppins", Arial, sans-serif;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent-text {
  flex: 1;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

.cookie-consent-text strong {
  color: #111;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-accept {
  background: #111;
  color: #fff;
}

.cookie-btn-accept:hover {
  background: #333;
}

.cookie-btn-reject {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.cookie-btn-reject:hover {
  background: #e0e0e0;
  color: #333;
}

.cookie-btn-customize {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.cookie-btn-customize:hover {
  background: #f5f5f5;
  color: #333;
}

/* Markets Page Styles */
.markets-hero {
  padding: 0.5rem 2vw 4rem;
  text-align: left;
}

.markets-title {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 4rem;
  font-weight: 400;
  color: #333333;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.markets-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  color: #8a8a8a;
  line-height: 1.5;
}

/* Markets Cards */
.markets-cards {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.market-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.market-card {
  width: 250px;
  height: 150px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-placeholder {
  width: 100%;
  height: 100%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: #666;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text {
  font-size: 0.9rem;
  color: #333;
  margin: 0;
  font-weight: 500;
  text-align: center;
}

/* Markets Impact Section */
.markets-impact {
  margin-top: 8rem;
  text-align: left;
}

.impact-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.impact-subtitle {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: 400;
  color: #000000;
  line-height: 1.5;
}

/* Featured Projects Section */
.featured-projects {
  margin-top: 4rem;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.projects-title {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: #333333;
  margin: 0;
}

.see-more-btn {
  background-color: #333333;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.see-more-btn:hover {
  background-color: #444444;
  transform: translateY(-2px);
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.see-more-btn:hover .arrow-icon {
  transform: translateX(2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-family: "Georgia Pro", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #333333;
  margin: 0 0 0.5rem 0;
}

.project-location {
  font-size: 0.9rem;
  color: #666666;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.project-description {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
  margin: 0;
}

/* Mobile styles for markets cards */
@media (max-width: 768px) {
  .markets-cards {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-card-container {
    width: 100%;
    align-items: flex-start;
  }

  .market-card {
    width: 100%;
  }

  .card-text {
    text-align: left;
  }

  .markets-impact {
    margin-top: 4rem;
  }

  .impact-title {
    font-size: 0.8rem;
  }

  .impact-subtitle {
    font-size: 1rem;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .projects-title {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-content {
    padding: 1rem;
  }

  .project-title {
    font-size: 1.25rem;
  }

  /* Mobile styles for cookie banner */
  @media (max-width: 768px) {
    .cookie-consent-banner {
      padding: 16px;
    }

    .cookie-consent-content {
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
    }

    .cookie-consent-text {
      font-size: 0.85rem;
      text-align: center;
    }

    .cookie-consent-buttons {
      justify-content: center;
    }

    .cookie-btn {
      flex: 1;
      padding: 12px 16px;
      font-size: 0.8rem;
    }

    .markets-hero {
      padding: 0.5rem 4vw 3rem;
    }

    .markets-title {
      font-size: 3.5rem;
    }

    .markets-subtitle {
      font-size: 1.125rem;
    }
  }

  @media (max-width: 480px) {
    .cookie-consent-banner {
      padding: 12px;
    }

    .cookie-consent-buttons {
      flex-direction: column;
      gap: 8px;
    }

    .cookie-btn {
      width: 100%;
    }
  }

  /* Cookie Modal */
  .cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 10001;
    font-family: "Poppins", Arial, sans-serif;
  }

  .cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
  }

  .cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
  }

  .cookie-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
  }

  .cookie-modal-close:hover {
    color: #333;
  }

  .cookie-modal-body {
    padding: 20px;
  }

  .cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .cookie-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
  }

  .cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
  }

  .cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
  }

  input:checked + .cookie-slider {
    background-color: #e74c3c;
  }

  input:checked + .cookie-slider:before {
    transform: translateX(26px);
  }

  input:disabled + .cookie-slider {
    background-color: #e74c3c;
    cursor: not-allowed;
  }

  .cookie-option-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
  }

  .cookie-option-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
  }

  /* Mobile optimizations for contact page */
  @media (max-width: 768px) {
    /* Tagline */
    .contact-page .tagline-below-navbar {
      font-size: 3em;
    }
    .contact-page .tagline-subtext {
      font-size: 1.5rem;
    }

    /* Accordions */
    .contact-accordions {
      margin: 20px 0 40px 2vw;
      gap: 12px;
    }
    .accordion-toggle {
      padding: 14px 16px;
      gap: 6px;
    }
    .accordion-title h3 {
      font-size: 1.5rem;
    }
    .accordion-subtext {
      font-size: 0.9rem;
    }
    .accordion-arrow {
      font-size: 18px;
    }
    .contact-accordion .accordion-content {
      padding: 0 16px;
    }
    .contact-accordion .accordion-content.open {
      padding-top: 14px;
      padding-bottom: 14px;
    }

    /* Forms */
    .contact-form .form-row {
      margin-bottom: 14px;
    }
    .contact-form label {
      font-size: 1.1rem;
      margin-bottom: 4px;
    }
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
      font-size: 1rem;
      padding: 12px 14px;
    }
    .contact-form .short-line {
      width: 100%;
      max-width: 280px;
    }
    .contact-form textarea {
      font-size: 1rem;
    }
    .contact-form .form-row.message-row textarea {
      padding-top: 10px;
    }

    /* Two-up rows on mobile */
    .contact-form .two-up {
      grid-template-columns: 1fr;
      gap: 14px;
    }

    /* Button */
    .btn-submit {
      width: 100%;
      padding: 14px;
      font-size: 1rem;
    }
  }

  /* Careers page styles */
  .careers-section {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
  }
  .careers-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #111;
  }
  .careers-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
  }
  .careers-form {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .careers-form .form-row {
    margin-bottom: 18px;
  }
  .careers-form .two-up {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .careers-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 1.4rem;
    color: #000000;
  }
  .careers-form input,
  .careers-form select,
  .careers-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.9rem;
  }
  .careers-form textarea {
    resize: vertical;
  }
  .careers-form .form-row.message-row label {
    margin-bottom: 4px;
  }
  .careers-form .form-row.message-row textarea {
    padding-top: 8px;
  }
  .careers-form .short-line {
    width: 280px;
    max-width: 100%;
    padding-left: 0;
    margin-bottom: 10px;
  }
  .careers-form input:focus,
  .careers-form textarea:focus,
  .careers-form select:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-bottom-color: #111 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  /* Mobile optimizations for careers page */
  @media (max-width: 768px) {
    .careers-section {
      padding: 40px 2vw;
      max-width: none;
    }
    .careers-section h1 {
      font-size: 2.5rem;
    }
    .careers-section p {
      font-size: 1.1rem;
      margin-bottom: 30px;
    }
    .careers-form .form-row {
      margin-bottom: 14px;
    }
    .careers-form label {
      font-size: 1.1rem;
      margin-bottom: 4px;
    }
    .careers-form input,
    .careers-form select,
    .careers-form textarea {
      font-size: 1rem;
      padding: 12px 14px;
    }
    .careers-form .short-line {
      width: 100%;
      max-width: 280px;
    }
    .careers-form textarea {
      font-size: 1rem;
    }
    .careers-form .form-row.message-row textarea {
      padding-top: 10px;
    }
    .careers-form .two-up {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .btn-submit {
      width: 100%;
      padding: 14px;
      font-size: 1rem;
    }
  }
}

/* Additional image section styles */
.additional-image-section {
  margin: 24px 0 24px 42px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.additional-image-container {
  flex: 0 0 auto;
}

.additional-image {
  width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.additional-description {
  flex: 1;
}

/* Mobile styles for additional image section */
@media (max-width: 768px) {
  .additional-image-section {
    margin: 24px auto;
    display: block;
    text-align: center;
  }

  .additional-image-container {
    margin-bottom: 24px;
  }

  .additional-image {
    width: 95vw;
    max-width: none;
    height: auto;
    max-height: 650px;
  }

  .additional-description {
    text-align: left;
    max-width: 95vw;
    margin: 0 auto;
  }
}
