body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Ensuring sans-serif font across the site */
  margin: 0;
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.6;
}



header h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
  color: #fefefe;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

header p {
  font-size: 1.3rem;
  max-width: 650px;
  margin: 0 auto 20px;
  color: #f5f5f5;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.hero-cta {
  margin-top: 30px;
}

.hero-cta .cta-button {
  background: #ffcc33;
  color: #111;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
  display: inline-block;
}

.hero-cta .cta-button:hover {
  background: #e6b800;
}

/* --- Navigation Styles (Consistent across all pages) --- */
nav {
  background-color: #003366;
  display: flex;
  justify-content: space-between; /* Distributes items to ends: logo on left, menu on right */
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

/* "Feature Group USA" text - Desktop Default (visible) */
.header-content a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: block; /* Visible by default on desktop */
}

/* Hamburger menu icon - Desktop Default (hidden) */
.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    z-index: 1000;
}

/* Navigation links container - Desktop Default (visible, horizontal) */
.nav-links-container {
    display: flex;
    justify-content: center; /* Center the links within the container */
    width: auto; /* Allow content to define width */
}

nav ul {
  list-style: none; /* Removes default bullets for the main nav */
  display: flex; /* For horizontal layout on desktop */
  justify-content: center;
  gap: 30px;
  padding: 15px;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffcc33;
}
/* --- End Navigation Styles --- */


.cta {
  text-align: center;
  background: #00509e;
  color: #fff;
  padding: 50px 20px;
}

.cta-button {
  background: #ffcc33;
  color: #111;
  padding: 14px 28px;
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #e6b800;
}

.logos {
  text-align: center;
  background-color: #ffffff;
  padding: 40px 20px;
}

/* --- Logo Marquee (Index Page) --- */
.logo-wrapper {
  overflow: hidden;
  width: 100%;
}
.logo-track {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  will-change: transform;
  visibility: visible; /* Ensure it's visible if hidden by default */
}
.logo-track img {
  height: 60px;
  margin: 0 40px;
  opacity: 0.85; /* From old .logo-row img */
  transition: opacity 0.3s ease; /* From old .logo-row img */
}
.logo-track img:hover {
  opacity: 1; /* From old .logo-row img */
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* --- End Logo Marquee --- */


.testimonials { /* This applies to the section wrapping the carousel on index.html */
  background-color: #ffffff;
  text-align: center;
  padding: 50px 20px;
}

/* --- Testimonial Carousel (Index Page) --- */
.carousel-container {
  width: 100%;
  max-width: 600px;
  position: relative;
  margin: auto;
}
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
}
.carousel {
  display: flex;
  transition: transform 0.4s ease-in-out;
}
.carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  position: relative;
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    /* Use padding-bottom for intrinsic aspect ratio if needed, e.g., 56.25% for 16:9 */
    padding-bottom: 56.25%; /* To maintain 16:9 aspect ratio if iframe is removed for thumbnail image */
    height: 0; /* Important for padding-bottom trick */
    overflow: hidden;
    cursor: pointer; /* Indicate it's clickable */
}

/* iframe inside the thumbnail container should display the static image */
.video-thumbnail-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures thumbnail image covers the area */
    pointer-events: none; /* Make iframe unclickable in thumbnail state */
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 56px;
    background-color: rgba(255,0,0,0.8); /* Slightly transparent red */
    border-radius: 10px;
    z-index: 2; /* Ensure it's above the iframe */
    pointer-events: auto; /* Make the icon clickable */
    transition: background-color 0.3s ease;
}
.play-icon:hover {
    background-color: rgba(255,0,0,1); /* Solid red on hover */
}
.play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}


.carousel-caption {
  padding: 10px;
}
.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #999;
  border-radius: 50%;
  display: inline-block;
}
.dot.active {
  background-color: #fff;
}

/* --- End Testimonial Carousel --- */


main {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-radius: 10px;
}

h1, h2 {
  font-weight: 600;
  color: #003366;
}

footer {
  background: #002244;
  color: #ddd;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

a {
  color: #ffcc33;
}

nav.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Global parallax header styles (for index.html and capabilities.html) */
header.parallax {
  background: url('images/hero.jpg') center center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 160px 20px 100px;
  background-blend-mode: overlay;
  background-color: rgba(0, 51, 102, 0.6);
  position: relative;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

header .overlay {
  background-color: rgba(0, 51, 102, 0.6);
  padding: 60px 20px;
  text-align: center;
  width: 100%;
}

.trust-note, .testimonial-note {
  font-style: italic;
  color: #666;
  margin-top: 10px;
  font-size: 0.95rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 2s ease-in-out;
}

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

/* Simple Modal Styling (used on index.html) */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  position: relative; /* For the close button positioning */
  background-color: #fff; /* Specific background for the content */
  padding: 0;
  border: none;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
}

.close {
  position: absolute;
  top: 10px; /* Adjusted for better positioning */
  right: 20px; /* Adjusted for better positioning */
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

/* Specific modal adjustments for "Let's Connect" in index.html */
.letsconnect-content {
  width: 80%;
  max-width: 768px;
  height: 80%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* To stack header and iframe vertically */
  padding: 0;
  margin: auto;
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Fine-tune centering */
  overflow-y: auto;
  max-height: none; /* Override if it was set */
}

/* What We Do Grid (index.html) */
.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.what-we-do-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.what-we-do-card h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
}

.what-we-do-card p {
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
}

/* --- Capabilities Page Specific Styles --- */
.capabilities-wrapper {
  padding: 40px 20px;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
}
.capability {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  text-align: center;
}
.capability:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.capability svg {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}
.capability h3 {
  margin-top: 10px;
  color: inherit;
}

/* General ul/li styles - for standard lists unless overridden by a more specific rule */
ul {
  list-style-position: outside;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

/* Specific fix for lists within .capability cards */
.capability ul {
  list-style-type: none; /* Ensure no default disc bullet */
  padding: 0; /* Reset ul padding to control li padding */
  text-align: left;
}

.capability ul li {
  padding-left: 1.2em; /* Creates space for the custom bullet "– " */
  position: relative; /* Allows absolute positioning of the ::before pseudo-element */
}

.capability ul li::before {
  content: "– ";
  color: inherit; /* Inherits text color */
  position: absolute; /* Positions the dash relative to the list item */
  left: 0; /* Places the dash at the very left edge of the list item's content box */
}


/* --- Mobile Media Queries (Apply to screens <= 768px) --- */
@media (max-width: 768px) {
    /* Mobile Navbar Styles */
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header-content a {
        display: none; /* Hide "Feature Group USA" text on mobile */
    }

    .menu-icon {
        display: block; /* Show the hamburger icon on mobile */
    }

    .nav-links-container {
        display: none; /* Hide navigation links by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #003366;
        position: absolute;
        top: 60px; /* Below the nav bar */
        left: 0;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .nav-links-container.active {
        display: flex; /* Show navigation links when 'active' class is present */
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Hero Image Specific Mobile Adjustments */
    header.parallax {
  background: url('images/hero.jpg') center center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 160px 20px 100px;
  background-blend-mode: overlay;
  background-color: rgba(0, 51, 102, 0.6);
  position: relative;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

    header h1 {
        font-size: 1.8rem; /* Smaller headline for mobile */
    }

    header p {
        font-size: 0.9rem; /* Smaller subhead for mobile */
    }

    /* Modals adjustments for mobile */
    .modal-content {
      width: 95% !important;
      height: auto !important;
      aspect-ratio: auto !important;
    }

    .modal-content iframe {
      height: 60vw !important;
    }

    .letsconnect-content {
      width: 95% !important;
      height: 80vh !important;
      aspect-ratio: auto !important;
      top: 50% !important;
      transform: translate(-50%, -50%) !important;
      position: fixed;
    }

    #letsConnectIframe {
      height: calc(80vh - 170px) !important;
    }

    /* What We Do Grid adjustments for mobile */
    .what-we-do-grid {
      grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
  header.parallax {
    min-height: 250px !important;
    max-height: 300px !important;
    height: auto !important;
    padding: 30px 15px !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: scroll !important;
  }
}

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