/* Global font */
body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #000;
}

/* === About Page Background === */
.index-page {
  background-image: url("../assets/background.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

/* === FOOTER WRAPPER === */
.footer {
  background-color: #0b1c2c;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

/* === GRID FOR ALIGNMENT === */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  padding-bottom: 20px;
}

/* === LEFT COLUMN: LOGO === */
.footer-col.logo-col {
  display: flex;
  justify-content: flex-start;
}

.footer-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

/* === CENTER COLUMN: LEGAL LINKS === */
.footer-col.legal-col {
  display: flex;
  justify-content: center;
}

.legal-inline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.legal-inline li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.legal-inline li a:hover {
  color: #fff;
  text-decoration: underline;
}

/* === RIGHT COLUMN: SOCIAL === */
.footer-col.social-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.follow-label {
  font-size: 14px;
  color: #ccc;
}

.linkedin-icon-link {
  display: inline-flex;
  align-items: center;
}

.linkedin-icon {
  width: 29.4px;
  height: 25px;
  display: block;
}

/* === COPYRIGHT === */
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* === RESPONSIVE STACK === */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .footer-col.logo-col,
  .footer-col.legal-col,
  .footer-col.social-col {
    justify-content: center;
  }

  .legal-inline {
    justify-content: center;
  }

  .linkedin-icon-link {
    justify-content: center;
  }
}


.logo {
  height: 65px;    /* Adjust height as needed */
  width: auto;     /* Maintain aspect ratio */
}

.section {
  padding: 4em 2em;
  text-align: center;
}

.dark {
    background: #f3f4f6;
  color: black;
}

h2 {
  font-size: 2.5em;
  margin-bottom: 1em;
}

/* Cards */
.card-grid {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  background: white;
  border-radius: 8px;
  padding: 2em;
  max-width: 300px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.card h3 {
  color: black;
}
.card-link {
  display: inline-block;
  margin-top: 1em;
  color: black;
  font-weight: bold;
}

/* Map */
.map-container {
  max-width: 1000px;
  margin: 0 auto;
}
.location-list {
  margin-top: 1em;
  font-size: 1.1em;
}

.map-section {
  padding-top: 100px;
  padding-bottom: 100px;
  background: none;
}

/* Contact form */
.contact-modern .section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: #0a0a0a;
}

.form-description {
  text-align: center;
  color: #000000;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  max-width: 800px;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.form-field {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid #999;
  background: transparent;
  padding: 1rem 0 0.5rem;
  transition: border-color 0.3s ease;
  color: #000;
  font-family: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #0f62fe;
  outline: none;
}

.form-field label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: #888;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  font-size: 0.75rem;
  color: #0f62fe;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.95rem;
  color: #333;
}

.checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.checkbox-field a {
  color: #006EFF;
  text-decoration: none;
  font-weight: 500;
}

.checkbox-field a:hover {
  text-decoration: underline;
}

.checkbox-inline {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: -1.5em; /* adjust to pull it up */
  font-size: 0.95rem;
  color: #333;
}

.checkbox-inline label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  line-height: 1.4;
  margin: 0;
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0f62fe;
  margin: 0;
  position: relative;
  top: 1px;
}

.btn-outline {
  background: transparent;
  color: #0f62fe;
  border: 2px solid #0f62fe;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #0f62fe;
  color: white;
}

@media (max-width: 340px) {
  .btn-outline {
    font-size: 0.75rem;
  }
}

.form-submitted {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4em 1em;
  text-align: center;
}

.form-success-box {
  background: #f0f8ff;
  border: 2px solid #0f62fe;
  border-radius: 12px;
  padding: 3em 2em;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.form-success-box h3 {
  font-size: 2em;
  color: #0f62fe;
  margin-bottom: 0.5em;
}

.form-success-box p {
  font-size: 1.1em;
  color: #444;
  line-height: 1.6;
}

.form-success-box .checkmark {
  font-size: 3em;
  color: #0f62fe;
  margin-bottom: 0.5em;
}


/* ==== Modern Services Section - Horizontal Layout ==== */
.services-modern {
  background: none;
  padding: 5em 2em;
}

.services-modern-container {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: #0a0a0a;
}

.services-modern-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2em;
  flex-wrap: nowrap;       
  overflow-x: auto;  
  padding-bottom: 1em;    
}

.service-modern-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2em;
  width: 100%;
  max-width: 350px;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: background 0.4s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-modern-card:hover {
  transform: translateY(-4px);
}

.service-modern-card:hover h3 {
  color: #000000;
}

.service-modern-card:hover p,
.service-modern-card:hover a {
  transition: all 0.3s ease;
}

/* Ensure transitions work smoothly */
.service-modern-card p,
.service-modern-card a {
  transition: all 0.3s ease;
}

@media (max-width: 500px) {
  .service-modern-card {
    max-width: 200px;
  }
}

.learn-more {
  display: inline-block;
  margin-top: 1em;
  font-weight: 600;
  color: #006EFF;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border 0.3s ease;
}

.learn-more:hover {
  border-bottom: 1px solid #006EFF;
}

/* Responsive stacking on smaller screens */
@media (max-width: 1300px) {
  .services-modern-row {
    flex-direction: column;
    align-items: center;
  }
}

.modern-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  /* Fallback background if video fails */
  background: rgba(0, 20, 40, 0.85); /* dark navy with slight transparency */
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-fallback {
  display: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 15, 35, 0.65); /* Dark overlay for readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: clamp(0.6rem, 1vw, 1rem) clamp(1.2rem, 2vw, 2rem);  /* controls size */
  border-radius: 9999px;      /* ensures pill shape */
  border: none;               /* remove border */
  background: #007bff;        /* blue background */
  color: #fff;                /* white text */
  font-weight: 700;           /* bold text */
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.3rem);
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #0056b3;        /* darker blue on hover */
  transform: translateY(-2px); /* subtle lift effect */
}

/* Industries Section */
.industries-flip {
  background: rgba(243, 244, 246, 0.5);
}

.flip-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding-left: 50px;
  padding-right: 50px;
  box-sizing: border-box;
}

.flip-card {
  background-color: transparent;
  width: 240px;
  height: 320px;
  perspective: 1000px;
}

/* Inner flip wrapper */
.flip-card-inner {
  position: relative;
  width: 240px;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

/* For desktop only */
@media (min-width: 769px) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* Scroll-triggered on mobile */
@media (max-width: 768px) {
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* Front and Back common styles */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* Safari support */
  border-radius: 12px;
  top: 0; /* ✨ This ensures both faces stay aligned vertically */
  left: 0;
}

/* Front card */
.flip-card-front {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(0deg); /* 💡 Force correct orientation */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-card-front img {
  max-width: 200px;
  margin-bottom: 1rem;
}

.flip-card-front h3 {
  font-size: 1.2rem;
  color: #0f62fe;
  text-transform: uppercase;
  text-align: center;
}

/* Back card */
.flip-card-back {
  background: white;
  color: black;
  transform: rotateY(180deg);
  backface-visibility: hidden;
-webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.image-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  height: 100%; /* Ensure it fills the card */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* 👈 Controls transparency overlay */
  z-index: 1;
  border-radius: 12px;
}

.overlay-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1rem;
}

.overlay-text h3 {
  font-size: 1.4rem;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}

/* ALTERNATIVE MODERN APPROACH - Use this instead if you prefer a sleek arrow */

/* Modern flip icon with arrow */
.flip-card {
  position: relative; /* Ensure this is set */
}

.flip-card::after {
  content: "";
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: none;
  z-index: 10;
  pointer-events: none;
}

/* Arrow icon using CSS */
.flip-card::before {
  content: "";
  position: absolute;
  bottom: 26px;
  right: 26px;
  width: 12px;
  height: 12px;
  border: 2px solid white;
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg);
  display: none;
  z-index: 11;
  pointer-events: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .flip-card::after,
  .flip-card::before {
    display: block;
  }
  
  /* Rotate arrow when flipped */
  .flip-card.flipped::before {
    transform: rotate(225deg);
    transition: transform 0.3s ease;
  }
  
  /* Change background color when flipped */
  .flip-card.flipped::after {
    transition: background-color 0.3s ease;
  }
  
  /* Gentle bounce animation */
  .flip-card::after {
    animation: gentleBounce 3s infinite ease-in-out;
  }
  
  .flip-card.flipped::after {
    animation: none;
  }
}

@keyframes gentleBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Only apply to terms page */
body.terms-page .site-header {
  background-color: #0b1c2c;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Push page content down to make space for fixed header */
body.terms-page {
  padding-top: 80px; /* Adjust to match header height */
}


/* === About Us Page Styles === */

/* About Section 
.about-section {
  background: #fff;
  text-align: center;
  padding: 4em 2em;
}*/

.about-section p {
  max-width: 900px;
  margin: 0.75rem auto;
  color: #444;
  line-height: 1.7;
  font-size: 1rem;
}


/* Core Values Section */
.values-flip {
  padding: 80px 20px;
  background: rgba(243, 244, 246, 0.5);
}

.values-flip h2 {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: #0a0a0a;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #d1d5db;
}

.value-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #0a0a0a;
}

.value-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === About Page Header Overrides === */
.about-page .site-header {
  background: white !important;
  box-shadow: none !important;
}

.about-page .site-header .nav-menu a {
  color: #000000 !important; /* keep links black */
}

/* Scroll-triggered on mobile */
@media (max-width: 1300px) {
  .about-page .site-header .nav-menu a {
  color: #FFFFFF !important; /* keep links black */
  }
}

.about-page .site-header.scrolled {
  background: white !important;
  box-shadow: none !important;
}

:root {
  --header-height: 100px; /* adjust this once */
}

/* Ensure About Us heading clears the fixed header */
.about-page .about-section {
  padding-top: 170px; /* adjust if your header is taller/shorter */
}

/* === About Page Background === */
.about-page {
  background-image: url("../assets/background.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

/* Ensure sections are transparent so background shows */
.about-page .about-section,
.about-page .locations,
.about-page .values-section {
  background: transparent !important;
}

.about-page .menu-toggle span {
  background-color: #000; /* Black lines */
}

.background-wrapper {
  background: url('../assets/background.svg') center / cover no-repeat;
}

/* Locations Section */
.locations-split {
  text-align: center;
  padding: 4em 0;
}

.locations-section {
  text-align: center;
  padding: 4em 2em;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: #0a0a0a;
}

.section-subtitle {
  font-size: 1.1em;
  color: #333;
  max-width: 700px;
  margin: 0 auto 2.5em auto;
  line-height: 1.6;
}

.locations-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
}

.location-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 3em;
  width: 260px;
  min-height: 100px;               /* ensure there’s space to center within */
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* Center content */
  display: flex;
  flex-direction: column;
  justify-content: center;         /* vertical centering */
  align-items: center;             /* horizontal centering */
  text-align: center;              /* center the text itself */
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.location-card h3,
.location-card p {
  margin: 0;                       /* remove default spacing that can push content up */
}

.location-card h3 {
  margin-bottom: 0.5em;            /* controlled spacing between heading & email */
}

.location-card a {
  color: #0f62fe; /* Accent blue */
  text-decoration: none;
}

.location-card a:hover {
  text-decoration: underline;
}

/* --- Dropdown Menu Styles --- */
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  min-width: 220px;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.98); /* Default background */
  backdrop-filter: blur(8px); /* subtle glass effect */
  transition: background-color 0.3s ease;
}

.site-header.transparent .has-dropdown .dropdown {
  background-color: rgba(255, 255, 255, 0.1);  /* More transparent */
  backdrop-filter: blur(10px);
}


.has-dropdown:hover .dropdown {
  display: block;
}

/* Default dropdown links (non-transparent mode) */
.has-dropdown .dropdown li a {
  display: block;
  padding: 10px 20px;
  color: #0A0A0A;
  text-decoration: none;
  white-space: nowrap;
}

/* On hover */
.has-dropdown .dropdown li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* When over hero (transparent header) */
.site-header.transparent .has-dropdown .dropdown li a {
  color: white;
}

.site-header.transparent .has-dropdown .dropdown li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}


.has-dropdown > a .arrow {
  font-size: 0.7em;
  margin-left: 0.4em;
  transition: transform 0.3s ease;
}

.has-dropdown:hover > a .arrow {
  transform: rotate(180deg); /* Flip the arrow on hover */
}


/* Digital Engineering Formatting */
.alignment-list li, .download-links li { margin-bottom: 0.75em; line-height: 1.5; }
.usecase-grid, .domain-grid { display: flex; flex-wrap: wrap; gap: 2em; justify-content: center; }
.usecase-card, .domain-card, .timeline-step {
background: #f8f8f8; padding: 1.5em; border-radius: 12px; max-width: 280px;
box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  max-width: 1300px;
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}

.timeline-step {
  width: 100%;
  max-width: 320px;
}

/* Only apply the custom placement for wide screens */
@media (min-width: 1100px) {
  .timeline-step:nth-child(7) {
    grid-column: 2; /* 👈 Center column */
  }
}

@media (max-width: 1100px) {
  .timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  /* Reset any previous manual overrides */
  .timeline-step {
    grid-column: auto;
    grid-row: auto;
  }

  /* Place 7th item on its own row */
  .timeline-step:nth-child(7) {
    grid-column: 1 / span 2;
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .timeline {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }

  .timeline-step {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
    max-width: 380px; /* or whatever your design allows */
  }
}

.timeline-step .step-number {
background: #008080; color: white; border-radius: 50%; width: 36px; height: 36px; display: flex;
align-items: center; justify-content: center; font-weight: bold; margin-bottom: 0.5em;
}

.de-split-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 5%;
  align-items: flex-start;
  padding-top: 200px;
  max-width: 1200px; /* NEW */
  margin: 0 auto;
}

.de-hero-left {
  flex: 1 1 45%;
  min-width: 300px;
  margin-top: -3.2rem;
}

.de-hero-left h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.de-hero-left p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.de-menu-right {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 300px;
}

.de-service-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  max-height: 3.5rem;
  position: relative;
  border-left: 4px solid transparent;
  animation: fadeUp 0.6s ease both;
  will-change: transform, box-shadow;
}

.de-service-card h3 {
  font-size: 1.15rem;
  margin: 0;
  font-weight: 600;
  color: #111;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.de-service-card p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

/* On hover, expand and highlight */
.de-service-card:hover {
  max-height: 200px;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-left: 4px solid #008080; /* Teal accent */
  background: #fcfcfc;
}

.de-service-card:hover p {
  opacity: 1;
  max-height: 100px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SAFETY PAGE TABLE - START*/
.analysis-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.95rem;
}

.analysis-table td {
  vertical-align: top;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.analysis-table td:first-child {
  width: 35%;
  font-weight: 600;
  color: #1c1c1c;
}

.analysis-table td:last-child {
  color: #444;
}

.table-wrapper {
  max-width: 1024px; /* Matches card layout width */
  margin: 0 auto;     /* Center horizontally */
  padding: 0 1rem;    /* Optional: responsive gutter */
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.analysis-table td {
  vertical-align: top;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.analysis-table td:first-child {
  width: 35%;
  font-weight: 600;
  color: #1c1c1c;
}

.analysis-table td:last-child {
  color: #444;
}
/* SAFETY PAGE TABLE - END*/

.features-list-section {
  background: rgba(243, 244, 246, 0.5);
}

.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto 0 auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.icon-box {
  background-color: #374151;
  padding: 0.8rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.overview-card .icon-box img,
.icon-box img {
  width: 30px;
  height: 30px;
  /*filter: invert(1);  white icons */
}

.feature-content h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.feature-content p {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #4B5563;
  line-height: 1.6;
}

/* Responsive: 2 columns on medium+ screens */
@media (min-width: 768px) {
  .features-list {
    grid-template-columns: 1fr 1fr;
  }
}

.overview-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto 0 auto;
}

.overview-card {
  background: #f9fafb;
  border-radius: 14px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

.overview-card:hover {
  transform: translateY(-4px);
}

.overview-card .icon-box {
  background-color: #374151;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.overview-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.overview-card p {
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.6;
}

.section h2 {
margin-top: 1rem;
margin-bottom: 1.5rem;
text-align: center;
font-size: clamp(1.75rem, 3.5vw, 2.5rem);
color: #0a0a0a;
}

.hazsafe-hero {
background: transparent;
height: 100vh;
}

.cta-check {
  background: url("../assets/bg.jpg") no-repeat 85% center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.cta-check::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

.cta-check .container {
  position: relative;
  z-index: 1;
}


.locations-split .section-sub
.values-flip .section-sub,
.about-section .section-sub,
.section-sub,
.form-description {
  text-align: center;
  margin: 0 auto 2rem;
  color: #000000;
  font-size: 1.05rem;
  max-width: 800px;
  line-height: 1.7;
}

/* No grey opacity*/
.capabilities-action,
.about-section {
padding-top: 4em;
padding-bottom: 4em;
background: transparent !important;
text-align: center;
}

/* With grey opacity*/
.timeline-de,
.why-dig-eng,
.contact-modern, 
.partner-section {
  text-align: center;
  padding-top: 4em;
  padding-bottom: 4em;
  background: rgba(243, 244, 246, 0.5);
  color: #000;
}

/* Modal overlay */
.modal-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Modal content */
.modal-content {
  background: rgba(255, 255, 255, 0.7);
  color: #fff;
  backdrop-filter: blur(8px); /* ✅ frosted glass */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow-y: auto;
  max-height: 90vh;
  transform: translateY(40px);
  opacity: 0;
  will-change: transform, opacity;
}

/* Show/hide overlay */
.modal-overlay {                      /* already in your file */
  display: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* play animation when active */
.modal-overlay.active .modal-content {
  animation: modalSlideUp .4s ease both;
}

@keyframes modalSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* (optional) slide-down on close */
.modal-overlay.closing .modal-content {
  animation: modalSlideDown .25s ease both;
}
@keyframes modalSlideDown {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(40px); opacity: 0; }
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 1.5rem; /* adds uniform spacing */
    box-sizing: border-box;
  }

}

.form-success-message {
  font-size: 1.2rem;
  font-weight: 600;
  color: #007bff;
}

/* Fix for dropdown labels so they don’t overlap */
.form-field select {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
}

.form-field .static-label {
  position: static;     /* reset positioning */
  display: block;       /* make it a block element */
  text-align: left;     /* align text to the left */
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #888;
}

/* File upload field formatting */
.form-field.file-upload {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.form-field.file-upload label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.form-field.file-upload input[type="file"] {
  display: block;
  font-size: 0.95rem;
  border: none;
  padding: 0;
}

#file-list {
  margin-top: 0.5rem;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: #333;
}

#file-list li {
  margin-bottom: 0.25rem;
  list-style-type: disc;
}

#file-list button {
  border: none;
  background: none;
  font-size: 0.9rem;
}

#file-total {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
}

/* === Careers Split Layout === */
.careers-split {
  padding-top: 6em;
  padding-bottom: 6em;
}

.careers-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.careers-left {
  flex: 1 1 600px;
  text-align: left;
}

.careers-left h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0a0a0a;
  font-weight: 700;
}

.careers-left p {
  max-width: 700px;
  color: #444;
  line-height: 1.7;
  margin: 0.75rem 0;
}

.careers-left hr {
  margin: 3em 0;
  border: none;
  border-top: 1px solid #ccc;
}

.careers-right {
  flex: 1 1 340px;
}

.careers-right .cta-box {
  background: #f8f9fa;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.careers-right .cta-box h3 {
  color: #003366;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.careers-right .cta-box p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.careers-right .cta-box .cta-inner {
  background: #003366;
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.careers-right .cta-box .cta-inner h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.careers-right .cta-box .cta-inner p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.careers-right .cta-box .cta-inner .btn-primary {
  background: white;
  color: #003366;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  text-decoration: none;
}

.careers-right .cta-box .cta-inner .btn-primary:hover {
  background: #f0f0f0;
}

/* Responsive stack */
@media (max-width: 900px) {
  .careers-container {
    flex-direction: column;
    align-items: center;
  }

  .careers-left,
  .careers-right {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.careers-right .cta-box ul.careers-list {
  list-style: none;
  padding-left: 0;
}

.careers-right .cta-box ul.careers-list li {
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.careers-right .cta-box ul.careers-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  background: #003366; /* your CTA blue */
  border-radius: 50%;
}

@media (max-width: 768px) {
  .loc-email {
    opacity: 1 !important;
    display: inline !important;
    margin-left: 8px;
  }

  .loc-item {
    background: rgba(15,98,254,.04); /* optional: soft background */
  }
}

/* --- Modern Header (UPDATED) --- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0%;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  /* Default state: white background for all pages except index */
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Index page specific: transparent header initially */
.index-page .site-header {
  background-color: transparent;
  box-shadow: none;
  color: white;
}

/* When scrolled on index page */
.index-page .site-header.scrolled {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Transparent class for index page initial state */
.site-header.transparent {
  background-color: transparent;
  box-shadow: none;
  color: white;
}

/* Scrolled state */
.site-header.scrolled {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Navigation link colors - default (non-index pages) */
.site-header .nav-menu a {
  color: #000;
  transition: color 0.3s ease;
}

/* Index page transparent state link colors */
.index-page .site-header.transparent .nav-menu a,
.site-header.transparent .nav-menu a {
  color: white;
}

/* Scrolled state link colors */
.site-header.scrolled .nav-menu a {
  color: #000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 0;
  max-width: 100%;
  width: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1rem, 3vw, 4rem);
  margin-right: 50px;
}

/* Make sure Contact doesn't get cut off */
.nav-menu li:last-child {
  margin-right: 0;
  padding-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .nav-menu {
    gap: clamp(0.8rem, 2.5vw, 2.5rem);
  }
}

@media (max-width: 1100px) {
  .site-header {
    padding: 1rem 1.5%;
  }
  
  .nav-menu {
    gap: clamp(0.6rem, 2vw, 2rem);
    font-size: 0.9em;
  }
}

.nav-menu a {
  text-decoration: none;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #006EFF;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.logo {
  height: 65px;
  width: auto;
  padding-left: 50px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  margin-right: 50px; /* FIXED: Better spacing from screen edge, moved left */
}

/* Default hamburger - black for all pages */
.menu-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: black; /* Default black */
  border-radius: 2px;
  transition: all 1s ease;
}

/* Index page: WHITE hamburger when transparent header (in hero) */
.index-page .site-header.transparent .menu-toggle span {
  background: white;
}

/* Index page: BLACK hamburger when scrolled */
.index-page .site-header.scrolled .menu-toggle span {
  background: black;
}

/* When menu is ACTIVE (open): always BLACK for the X */
.menu-toggle.active span {
  background: black !important;
}

/* Hamburger animation (keep existing) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

/* --- Dropdown Menu Styles (Desktop) --- */
.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  min-width: 240px;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
}

.site-header.transparent .has-dropdown .dropdown {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.has-dropdown:hover .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.has-dropdown .dropdown li a {
  display: block;
  padding: 12px 20px;
  color: #0A0A0A;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.has-dropdown .dropdown li a:hover {
  background-color: rgba(0, 110, 255, 0.1);
}

.site-header.transparent .has-dropdown .dropdown li a {
  color: white;
}

.site-header.transparent .has-dropdown .dropdown li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.has-dropdown > a .arrow {
  font-size: 0.7em;
  margin-left: 0.4em;
  transition: transform 0.3s ease;
}

.has-dropdown:hover > a .arrow {
  transform: rotate(180deg);
}

/* Mobile Styles */
@media (max-width: 900px) {
  .site-header {
    padding: 1rem 2%;
  }

  .navbar {
    padding: 1em 1% 1em 0;
  }

  .menu-toggle {
    display: flex;
    margin-right: 50px;
  }

  /* Logo adjustment for mobile */
  .logo {
    padding-left: 20px;
  }

  /* UPDATED: Mobile menu positioned flush right and made thinner */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off-screen - exact width */
    height: 100vh;
    width: 300px; /* Made thinner - was 400px max */
    max-width: none; /* Remove any max-width constraints */
    background: #FFFFFF;
    flex-direction: column;
    padding: 80px 0 2em 0; /* Removed horizontal padding, reduced top padding */
    margin: 0; /* Remove any margins */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    align-items: flex-start;
    gap: 0;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid #eee; /* Optional: subtle border */
    box-sizing: border-box; /* Ensure padding doesn't add to width */
  }

  /* Only show when manually activated */
  .nav-menu.active {
    right: 0 !important; /* Force flush with right edge */
  }
  
  /* Mobile menu links always black */
  .nav-menu a {
    color: black !important;
  }

  .site-header.transparent .nav-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2em 2em; /* Added horizontal padding back to the links */
    font-size: 1.1em;
    color: #000;
    width: 100%;
    box-sizing: border-box;
  }

  /* Mobile dropdown styles */
  .has-dropdown .dropdown {
    position: static !important;
    display: none;
    background: transparent;
    box-shadow: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }

  .has-dropdown .dropdown li {
    border-bottom: none;
  }

  .has-dropdown .dropdown li a {
    padding: 0.8em 2em 0.8em 4em; /* Adjusted padding for dropdown items */
    font-size: 0.95em;
    color: #666;
  }

  .has-dropdown .dropdown li a:hover {
    color: #006EFF;
    background: rgba(0, 110, 255, 0.05);
    border-left-color: #006EFF;
  }

  /* Dropdown toggle for mobile */
  .has-dropdown.mobile-open .dropdown {
    display: block;
  }

  .has-dropdown > a .arrow {
    transition: transform 0.3s ease;
  }

  .has-dropdown.mobile-open > a .arrow {
    transform: rotate(180deg);
  }

  /* Mobile overlay */
  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-overlay.active {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 450px) {
  .logo {
    width: clamp(4rem, 70vw, 18rem);
    height: auto; /* Maintain aspect ratio */
    padding-left: 5px; /* Reduced padding for more space */
  }

    .menu-toggle {
    display: flex;
    margin-right: 30px;
  }

  .modern-hero {
  height: 100vh;
}

  .hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 20px;
  }

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;         /* controls size */
  border-radius: 9999px;      /* ensures pill shape */
  border: none;               /* remove border */
  background: #007bff;        /* blue background */
  color: #fff;                /* white text */
  font-weight: 700;           /* bold text */
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}
}

@media (max-width: 340px) {
  .btn-primary {
    font-size: 0.5rem;
  }
}

/* Responsive spacing adjustments */
@media (max-width: 1200px) and (min-width: 1001px) {
  .nav-menu {
    gap: clamp(1.2rem, 3vw, 3rem);
  }
  
  .nav-menu a {
    font-size: 0.95em;
  }
}

/* Specific overrides for about page and other non-index pages */
.about-page .site-header {
  background: white !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.about-page .site-header .nav-menu a {
  color: #000000 !important;
}

/* Mobile state for about page */
@media (max-width: 1000px) {
  .about-page .site-header .menu-toggle span {
    background-color: #000 !important;
  }
}

.about-page .site-header.scrolled {
  background: white !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Terms page header (already has specific styles) */
body.terms-page .site-header {
  background-color: #0b1c2c;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Push page content down to make space for fixed header */
body.terms-page {
  padding-top: 80px;
}

/* Ensure all pages except index have white header */
body:not(.index-page) .site-header {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body:not(.index-page) .site-header .nav-menu a {
  color: #000;
}

body:not(.index-page) .site-header .menu-toggle span {
  background: black;
}

.partner-section {
    padding: clamp(40px, 10vh, 80px) clamp(10px, 5vw, 20px);
    text-align: center;
  }

  .partner-section h2 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.2rem);
    margin-bottom: 10px;
    color: #222;
  }

  .section-subtitle {
    font-size: clamp(0.875rem, 1.5vw + 0.25rem, 1rem);
    color: #666;
    margin-bottom: 40px;
  }

 .partner-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.partner-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 220px;   /* fixed width for consistency */
  height: 150px;  /* fixed height for consistency */
}

.partner-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.partner-card svg {
  width: 120px;
  height: auto;
}

  .partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  .sponsor-label {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #0077b6; /* Adjust to ModAsfa brand teal */
  font-weight: 600;
}

  .hazsafe-banner-split {
  background: url("../assets/bg.jpg") center center / cover no-repeat;
  padding: 80px 20px;
}

.hazsafe-banner-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  gap: 2em;
}

.hazsafe-text {
  flex: 1 1 500px;
  text-align: left;
}

.hazsafe-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hazsafe-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hazsafe-image {
  flex: 1 1 500px;
  text-align: center;
}

.hazsafe-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .hazsafe-banner-container {
    flex-direction: column;
    text-align: center;
  }

  .hazsafe-text {
    text-align: center;
  }
}
