body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #fdfaf6;
  color: #333;
}

/* Navigation Bar */
.navbar {
  background: #3e2c1c;
  color: white;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: relative; /* Ensure it stays above the video */
  z-index: 10; /* Higher z-index to be on top */
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand .logo {
  height: 40px; /* Adjust logo size as needed */
  margin-right: 10px;
}

.navbar-brand a {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.navbar-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.navbar-nav a:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Hero Section with Video */
.hero {
  position: relative;
  width: 100%;
  height: 60vh; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Hero banner background image - now uses the corrected URL */
    background-image: url('https://i.postimg.cc/YhjZrXPg/Cross-Autos-logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #3e2c1c; /* Fallback background color if image also fails */
}

/* Style for the YouTube iframe */
.hero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Make it wider than viewport */
    height: 100vh; /* Make it taller than viewport */
    transform: translate(-50%, -50%);
    pointer-events: none; /* Allows clicks to pass through to elements behind */
    background-color: #3e2c1c; /* Fallback background color */
}

@media (min-aspect-ratio: 16/9) {
  .hero-video-iframe {
    height: 56.25vw; /* 9 / 16 * 100 */
    min-height: 100%;
  }
}

@media (max-aspect-ratio: 16/9) {
  .hero-video-iframe {
    width: 177.78vh; /* 16 / 9 * 100 */
    min-width: 100%;
  }
}


.hero-content {
    position: relative;
    z-index: 2; /* Content on top of video */
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    padding: 30px 20px;
    border-radius: 10px;
}

.hero h1 {
  font-size: 3.5em; /* Adjusted for impact */
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.4em;
  margin-bottom: 20px;
}

.hero .btn {
  padding: 12px 30px; /* Slightly larger button */
  background: #d4a373;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
  background-color: #c0946b;
  transform: translateY(-2px);
}

/* Section Styling */
.section {
  padding: 50px 20px;
}

.section.dark {
  background: #f5f0eb;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.pillars-grid li {
  background: white;
  border-left: 5px solid #d4a373;
  padding: 15px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 5px;
}

/* Business Opportunities List */
.section ul {
    list-style: disc; /* Ensure consistent bullet points */
    margin-left: 20px;
    padding-left: 0;
}

.section ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Flagship Ventures Section Styles */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted for better card size */
  gap: 30px; /* Increased gap for better spacing */
  margin-top: 30px;
}

.flagship-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* More pronounced shadow */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flagship-card:hover {
  transform: translateY(-8px); /* Lift effect on hover */
  box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* Stronger shadow on hover */
}

.flagship-card .flagship-logo {
  width: 100px; /* Consistent logo size */
  height: 100px;
  border-radius: 50%; /* Circular logos */
  object-fit: contain; /* Use 'contain' to ensure entire logo is visible without cropping */
  margin: 0 auto 15px auto; /* Centered and spaced */
  border: 3px solid #d4a373; /* Branding accent border */
  transition: transform 0.3s ease;
}

.flagship-card:hover .flagship-logo {
  transform: scale(1.08); /* Slight zoom on logo hover */
}

.flagship-card h3 {
  font-size: 1.5em;
  color: #3e2c1c; /* Dark brown heading */
  margin-bottom: 10px;
}

.flagship-card h3 a {
  text-decoration: none;
  color: #3e2c1c;
  transition: color 0.3s ease;
}

.flagship-card h3 a:hover {
  color: #d4a373; /* Gold hover color */
}

.flagship-card p {
  font-size: 0.95em;
  color: #555;
  line-height: 1.6;
}

/* New styles for Cross Autos images */
.cross-autos-images {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between the two images */
    margin-bottom: 15px; /* Space below the images */
}

.cross-autos-images .flagship-logo {
    /* Keep existing flagship-logo styles but adjust margin */
    margin: 0; /* Override default margin to control spacing with flexbox */
}

.cross-autos-charging-image {
    width: 80px; /* Adjust size of the charging pile image */
    height: 80px; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the whole image is visible */
    margin: 0; /* Remove default margin */
}


/* Footer */
.footer {
  background: #3e2c1c;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

.footer a {
  color: #f5deb3; /* Lighter gold for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    text-align: center;
  }

  .navbar-nav {
    margin-top: 15px;
    flex-direction: column;
    gap: 10px;
  }

  .navbar-brand {
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 2.5em; /* Smaller on mobile */
  }

  .hero p {
    font-size: 1.1em;
  }

  .flagship-grid {
    grid-template-columns: 1fr; /* Single column on small screens */
  }

  .cross-autos-images {
      flex-direction: column; /* Stack images vertically on small screens */
  }

  .cross-autos-charging-image {
      width: 100px; /* Adjust size for mobile if needed */
      height: 100px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .flagship-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
  }
}
