:root {
  --customer-dark: #030045;
  --customer-light: #aea2ff;
  --customer-medium: rgb(255, 255, 255);
  --customer-accent: #f67d84;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--customer-light);
  
  overflow-x: hidden;
  position: relative;
  background-color: #ffffff;
  /* Reverted body background to white */
}

.container {
  position: relative;
  z-index: 2;
  background-color: var(--customer-dark);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #030045;
  /* Navigation bar background color */
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
  padding: 1rem 0;
}

.header.scrolled {
  background-color: #030045;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled .nav a {
  color: white;
}

.header.scrolled .logo {
  color: #ffffff;
}

.header-left {
  display: flex;
  align-items: center;
  padding-left: 100px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: bold;
}

.logo img {
  width: 24px;
  height: 24px;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: block;
  /* Show by default on mobile */
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--customer-medium);
  cursor: pointer;
  margin-left: auto;
  /* Pushes the button to the right */
  padding-right: 20px;
}

/* Navigation menu */
.nav {
  display: none;
  /* Hidden by default for mobile */
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  /* Full viewport width */
  height: 100vh;
  /* Full viewport height */
  background-color: var(--customer-dark);
  padding: 2rem;
  gap: 2rem;
  /* Increased gap for better spacing */
  transform: translateY(-100%);
  /* Start off-screen from the top */
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
  /* Above header */
  justify-content: center;
  align-items: center;
  text-align: center;
}

.nav.active {
  transform: translateY(0);
  /* Slide down to cover full screen */
  display: flex;
  /* Show when active */
}

.nav a {
  color: var(--customer-medium);
  text-decoration: none;
  font-size: 2rem;
  /* Larger font size for full-screen menu */
  font-weight: 400;
  transition: color 0.2s ease-in-out;
  padding: 0.5rem 0;
  /* Add vertical padding for better touch targets */
}

.nav a:hover {
  color: #f67d84;
}

.header.scrolled .nav a:hover {
  color: #f67d84;
}

/* Close button for mobile menu */
.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  /* Larger close button */
  color: var(--customer-medium);
  cursor: pointer;
  z-index: 1002;
  /* Above the nav overlay */
}

.close-btn:hover {
  color: var(--customer-light);
}

/* Keep desktop styles */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
    /* Hide on larger screens */
  }

  .nav {
    display: flex;
    /* Always show on larger screens */
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    gap: 1.8rem;
    transform: translateX(0);
    z-index: auto;
    padding-left: 70px;
    /* Keep original padding */
  }

  .nav a {
    font-size: 1rem;
    /* Adjust font size for desktop */
  }

  .close-btn {
    display: none;
    /* Hide on larger screens */
  }

  .header-left {
    padding-left: 100px;
    /* Keep original padding */
  }
}

/* Featured Blog Section */
.featured-blog-section {
  padding-top: 220px;
  /* Space below header */
  max-width: 1200px;
  margin: 0 auto;
  /* Center the content */
  margin-bottom: 6rem;
  /* Space between featured card and grid */
  padding-left: 1rem;
  /* Add horizontal padding */
  padding-right: 1rem;
  /* Add horizontal padding */
}

/* Featured Blog Card Styles */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  /* Keep internal padding for the card */
  align-items: flex-start;
  cursor: pointer;
  /* Add cursor pointer to indicate clickability */
}

@media (min-width: 1024px) {
  .blog-card {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    /* Remove padding if wrapper handles it */
  }
}

.blog-card-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 0.75rem;
  /* rounded-xl */
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* shadow-lg */
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .blog-card-image-container {
    width: 500px;
    /* lg:w-[500px] */
  }
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  /* rounded-xl */
}

/* Note: The .live-badge element is not present in the provided HTML.
   If you add it back to your HTML, this styling will apply. */
.live-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #2563eb;
  /* blue-600 */
  color: #ffffff;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  /* rounded-md */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  /* text-xs */
}

.live-text {
  font-size: 0.625rem;
  /* text-[10px] */
}

.live-number {
  font-size: 1.125rem;
  /* text-lg */
  line-height: 1;
}

.blog-card-text-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
  color: #000000;
  /* Default text color for content */
}

.featured-tag {
  color: #2563eb;
  /* blue-600 */
  font-weight: 600;
  /* font-semibold */
  font-size: 0.875rem;
  /* text-sm */
}

.blog-card-title {
  font-size: 1.875rem;
  /* text-3xl */
  line-height: 1.25;
  /* leading-tight */
  font-weight: bold;
}

@media (min-width: 768px) {
  .blog-card-title {
    font-size: 1.7rem;
    /* md:text-4xl */
  }
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* gap-3 */
}

.author-avatar {
  width: 2rem;
  /* w-8 */
  height: 2rem;
  /* h-8 */
  border-radius: 9999px;
  /* full circle for avatar */
  object-fit: cover;
}

.author-details {
  font-size: 0.875rem;
  /* text-sm */
  color: #4b5563;
  /* gray-600 */
}

.author-name {
  font-weight: 500;
  /* font-medium */
}

.separator {
  margin: 0 0.25rem;
  /* mx-1 */
}

.blog-card-description {
  color: #374151;
  /* gray-700 */
  line-height: 1.625;
  /* leading-relaxed */
}

/* Footer bottom row with LinkedIn icon */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 0rem;
}

.social-icon-link {
  color: white;
  font-size: 1.5rem;
  transition: color 0.2s ease-in-out;
}

.social-icon-link:hover {
  color: var(--customer-light);
}

/* Responsive Styles (from your original CSS) */
@media (min-width: 640px) {
  .header-right .sign-in {
    display: block;
  }
}

@media (min-width: 768px) {
  .header {
    padding: 1.5rem 2.5rem;
  }

  .nav {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 1.5rem 5rem;
  }
}

/* Grid for smaller blog cards */
.blog-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Single column on small screens */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  /* Center the content */
  padding: 0 1rem;
  /* Add horizontal padding */
  margin-bottom: 4rem;
  /* Added for separation from footer */
}

@media (min-width: 768px) {
  .blog-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 3 columns on larger screens */
  }
}

/* Styling for individual small blog cards */
.small-blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  /* rounded-xl */
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  /* shadow-md */
  background-color: #ffffff;
  /* Ensure white background for cards */
  cursor: pointer;
  /* Add cursor pointer to indicate clickability */
}

.small-blog-card-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  /* Fixed height for consistency */
  overflow: hidden;
}

.small-blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-blog-card-text-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #000000;
  /* Ensure text is black */
}

.small-blog-card-title {
  font-size: 1.125rem;
  /* text-lg */
  font-weight: bold;
  line-height: 1.4;
  color: #1a202c;
  /* Darker text for titles */
}

.small-author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Smaller gap for multiple avatars */
}

.small-author-avatar {
  width: 1.5rem;
  /* w-6 */
  height: 1.5rem;
  /* h-6 */
  border-radius: 9999px;
  /* full circle */
  object-fit: cover;
}

.small-author-details {
  font-size: 0.75rem;
  /* text-xs */
  color: #6b7280;
  /* gray-500 */
}

.avatars {
  display: flex;
  margin-right: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e7ff;
  color: #4f46e5;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  padding: 2px;
  box-sizing: border-box;
}

.small-author-name {
  font-weight: 500;
}

.small-separator {
  margin: 0 0.125rem;
}

.small-blog-card-description {
  font-size: 0.875rem;
  /* text-sm */
  color: #4a5568;
  /* gray-600 */
  line-height: 1.5;
}

/* Blog Section Styles */
.blog-section {
  font-family: -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0;
  /* Adjusted padding for overall section spacing */
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 78px;
  /* ***** Adjusted to move content further left ***** */
  padding-right: 30px;
  /* Consistent right padding for the entire section */
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  /* Stack children vertically */
  justify-content: flex-start;
  /* Align content to the top */
  align-items: flex-start;
  /* Aligned content to the left within the section */
  
  box-sizing: border-box;
  color: #333;
  /* Default text color for the blog section */
}

.blog-container {
  max-width: 1200px;
  width: 100%;
  /* Removed individual padding and margins from here */
  padding: 0;
  margin: 0;
}

.blog-section h2 {
  font-size: 2.5rem;
  /* Changed back to 2.5rem for consistency with original design */
  font-weight: 700;
  color: #333;
  margin-bottom: 40px;
  text-align: left;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  /* Removed margin-left to allow proper grid alignment within the container */
  margin-bottom: 40px;
  padding-left: 50px;
}

.article-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 4px 4px 0px 0px #f67d84;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease-in-out;
}

.article-card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-card:hover {
  transform: translateY(-5px);
  /* Box-shadow color remains accent green on hover for all cards */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 4px 4px 0px 0px var(--customer-accent);
}

/* All cards will now turn dark teal background and maintain consistent box-shadow on hover */
.article-card:not(:first-child):hover,
.article-card:first-child:hover {
  background-color: var(--customer-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 4px 4px 0px 0px var(--customer-accent);
}

/* Text color change for all cards on hover */
.article-card:hover .card-content h3,
.article-card:hover .author-names,
.article-card:hover .date {
  color: white;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  background-color: #e0e7ff;
  color: #4f46e5;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.author-info {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.avatars {
  display: flex;
  margin-right: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e7ff;
  color: #4f46e5;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  padding: 2px;
  box-sizing: border-box;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-names {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  margin: 0;
}

.date {
  font-size: 0.8rem;
  color: #777;
  margin: 0;
}

.blog-link-container {
  text-align: right;
  /* This will align the link to the right edge of the .blog-container */
  margin-top: 20px;
  width: 100%;
  /* Ensure it spans the full width to align content to the right */
}

.blog-link {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease-in-out;
}

.blog-link:hover {
  color: #3730a3;
  text-decoration: underline;
}

/* Responsive adjustments for blog section */
@media (max-width: 768px) {
  .blog-section h2 {
    font-size: 2rem;
    text-align: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* footer section */
.footer *,
.footer *::before,
.footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.footer {
  width: 100%;
  background-color: #030045;
  /* Dark blue from SVG */
  color: #ffffff;
  /* White text for contrast */
  padding-top: 4rem;
  /* Increased from 3rem */
  padding-bottom: 6rem;
  /* Added substantial bottom padding */
  position: relative;
  overflow: hidden;
  /* Added minimum height */
}

.footer-column img {
  width: 1250px;
  height: auto;
  /* This maintains the aspect ratio */
  max-width: 100%;
}

.footer-content-container {
  max-width: 1280px;
  /* Equivalent to a large container */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  /* px-4 */
  padding-right: 1rem;
  /* px-4 */
  display: grid;
  grid-template-columns: 1fr;
  /* Default for mobile */
  gap: 3rem;
  /* Increased from 2rem */
  padding-top: 3rem;
  padding-bottom: 5rem;
  /* Increased from 4rem */
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {

  /* md breakpoint */
  .footer-content-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* md:grid-cols-3 */
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer .logo {
  margin-bottom: 0rem;
  /* Increased from 1rem */
}

.description-text {
  font-size: 1rem;
  /* Increased from 0.875rem */
  line-height: 1.8;
  /* Increased from 1.625 */
  margin-bottom: 1rem;
  /* Added some bottom margin */
}

.column-heading {
  font-weight: 600;
  font-size: 1.25rem;
  /* Increased from 1.125rem */
  margin-bottom: 1.5rem;
  /* Increased from 1rem */
  position: relative;
  padding-bottom: 0.75rem;
  /* Increased from 0.5rem */
}

.heading-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  /* Increased from 2.5rem */
  height: 0.1875rem;
  /* Increased from 0.125rem */
  background-color: #2563eb;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* Increased from 0.5rem */
  font-size: 1rem;
  /* Increased from 0.875rem */
}

.link-item {
  color: inherit;
  text-decoration: none;
}

.link-item:hover {
  text-decoration: underline;
}

.contact-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* Increased from 0.5rem */
  font-size: 1rem;
  /* Increased from 0.875rem */
}

/* Responsive Styles */
@media (min-width: 640px) {
  .header-right .sign-in {
    display: block;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero-features {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .header {
    padding: 1.5rem 2.5rem;
  }

  .nav {
    display: flex;
  }

  .hexagons-background svg {
    width: 800px;
    height: 800px;
  }

  .hero {
    text-align: left;
    padding: 2rem 2.5rem;
    align-items: flex-start;
  }

  .hero-content {
    max-width: 48rem;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-features {
    justify-content: flex-start;
  }

  .logo-image {
    height: 3.5rem;
    max-width: 150px;
  }

  .drives-us-container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .drives-us-image {
    flex: 1;
  }

  .drives-us-content {
    flex: 1;
  }

  .drives-us-content h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 1.5rem 5rem;
  }

  .hero {
    flex-direction: row;
    justify-content: space-between;
    padding: 3rem 5rem;
  }

  .hero-content {
    max-width: 36rem;
    margin-right: 3rem;
  }

  .hero h1 {
    font-size: 4.5rem;
  }
}

/* New Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 0.75rem;
  max-width: 1250px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
  z-index: 2001;
  /* Ensure it's above the image */
}

.modal-close-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  /* Adjust as needed */
  overflow: hidden;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text-content {
  padding: 1.5rem;
  color: #333;
  /* Ensure text is readable */
}

.modal-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.modal-author-info {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.modal-author-details {
  display: flex;
  flex-direction: column;
  margin-left: 0.5rem;
}

.modal-author-name {
  font-weight: 600;
}

.modal-separator {
  margin: 0 0.25rem;
}

.modal-full-content {
  line-height: 1.6;
  font-size: 1rem;
}

.modal-full-content p {
  margin-bottom: 1em;
}

.modal-full-content ul {
  list-style: disc;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.modal-full-content li {
  margin-bottom: 0.5em;
}

/* Responsive adjustments for modal */
@media (min-width: 768px) {
  .modal-image-container {
    height: 350px;
  }

  .modal-text-content {
    padding: 2rem;
  }

  .modal-title {
    font-size: 2.5rem;
  }
}