body {  
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;  
    background-color: #04173b;  
    margin: 0;  
  }  
  
  .roadmap-container {  
    max-width: 1000px;  
    margin: 0 auto;  
    padding: 20px;  
  }  
  
  .today {  
    color: #04173b;  
  }  
  
  .history {  
    margin-top: 90px;  
    position: relative;  
  }  

  .history::before,
.history::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-image: linear-gradient(to bottom, #ccc 40%, transparent 40%, transparent 60%, #ccc 60%);
    background-size: 100% 30px;
    background-repeat: repeat-y;
    z-index: 0;
}

/* Left side line */
.history::before {
    left: 50px;
}

/* Right side line */
.history::after {
    right: 50px;
}

/*
 @media (max-width: 992px) {
  .history::before,
  .history::after {
    display: none; 
  }
}

@media (max-width: 768px) {
  .timeline::before,
  .timeline::after,
  .history::before,
  .history::after {
    display: none;
  }
  
  .timeline-event {
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    padding: 0;
    width: 100%;
  }
  
  .timeline-event.left,
  .timeline-event.right {
    padding-left: 0;
    padding-right: 0;
  }
  
  .content {
    max-width: 90%;
    margin: 0 auto !important;
    position: relative;
  }
  
  .timeline-event:nth-child(odd) .year-container {
    position: absolute;
    left: -30px;
    top: 20px;
    transform: translateX(-50%);
  }
  
  .timeline-event:nth-child(even) .year-container {
    position: absolute;
    right: -30px;
    top: 20px;
    transform: translateX(50%);
  }
  
  .circle {
    width: 60px;
    height: 60px;
    font-size: 16px;
  }
  
  .timeline-event.left .content::before,
  .timeline-event.right .content::before {
    display: none;
  }
  
  .timeline-event:nth-child(odd) .icon {
    left: 15px;
  }
  
  .timeline-event:nth-child(even) .icon {
    right: 15px;
    left: auto;
  }
}

@media (max-width: 576px) {
  .circle {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }
  
  .timeline-event:nth-child(odd) .year-container {
    left: -20px;
  }
  
  .timeline-event:nth-child(even) .year-container {
    right: -20px;
  }
  
  .content {
    max-width: 95%;
    padding: 15px;
  }
}
  */

  @media (max-width: 991.98px) {

  /* stop showing the centre line */
  .timeline::before,
  .timeline::after {
    display:none;
  }

  /* show the two outer lines again and pin them to the edges   */
  .history::before,
  .history::after{
    display:block;        /* they were hidden in the old sheet    */
    width:4px;
    top:0;
    bottom:0;
    background-image:linear-gradient(to bottom,
                       #ccc 40%,transparent 40%,transparent 60%,#ccc 60%);
    background-size:100% 28px;
    background-repeat:repeat-y;
    z-index:0;
  }
  .history::before{ left:0;  }   /* left border  */
  .history::after { right:0; }   /* right border */

  /* make every event a single-column block that fills the page */
  .timeline-event{
    flex-direction:column;
    align-items:center;     /* keep the year circle centred */
    padding:0;              /* kill the old 55 % padding     */
    margin-bottom:60px;
    width:100%;
  }
  .timeline-event.left,
  .timeline-event.right{
    padding-left:0;
    padding-right:0;
  }

  /* stretch the actual card */
  .timeline-event .content{
    width:100%;
    max-width:none;         /* override the old 450 px limit */
    margin:0;               /* no left/right offset          */
    box-sizing:border-box;
  }

  /* put the year circles just outside the card so they remain visible */
  .timeline-event .year-container{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    top:-40px;              /* pulls the circle upward */
  }

  /* keep everything readable on very small phones ---------------*/
  @media (max-width:575.98px){
    .content{padding:20px;}
    .year-container .circle{width:56px;height:56px;font-size:15px;}
  }
}
  
  h2 {  
    text-align: center;  
    color: white;  
    margin-bottom: 50px;  
    font-size: 32px;  
    padding: 25px 0;  
    border-radius: 10px;  
    position: relative;  
  }  
  
  h2::after {  
    content: '';  
    position: absolute;  
    left: 50%;  
    bottom: -10px;  
    transform: translateX(-60%);  
    width: 200px;  
    height: 4px;  
    background-color: #dc3545;  
    border-radius: 2px;  
  }  
  
  /* Timeline styling */  
  .timeline {  
    position: relative;  
    padding: 20px 0;  
  }  
  
  /* Create the continuous gray line */  
  .timeline::before {  
    content: '';  
    position: absolute;  
    width: 6px;  
    top: 0;  
    bottom: 0;  
    left: 50%;  
    transform: translateX(-50%);  
    background-color: #ccc;  
    border-radius: 3px;  
    z-index: 0;  
  }  
  
  /* Create dashed/intermittent section at the bottom of the line */  
  .timeline::after {  
    content: '';  
    position: absolute;  
    width: 6px;  
    height: 20%; /* Bottom 20% of the line is intermittent */  
    bottom: 0;  
    left: 50%;  
    transform: translateX(-50%);  
    background-color: #ccc;   
    background-size: 100% 20px; /* Size of dashes */  
    background-repeat: repeat-y;  
    z-index: 1;  
    border-radius: 3px;  
  }  
  
  .timeline-event {  
    position: relative;  
    margin-bottom: 80px;  
    display: flex;  
  }  
  
  /* Left and right positioning */  
  .timeline-event.left {  
    flex-direction: row-reverse;  
    padding-left: 55%;  
  }  
  
  .timeline-event.right {  
    padding-right: 55%;  
  }  
  
  .year-container {  
    flex: 0 0 120px;  
    text-align: center;  
    position: absolute;  
    left: 50%;  
    transform: translateX(-50%);  
    z-index: 3;  
  }  
  
  .circle {  
    width: 80px;  
    height: 80px;  
    border-radius: 50%;  
    display: flex;  
    align-items: center;  
    justify-content: center;  
    margin: 0 auto;  
    color: white;  
    font-weight: bold;  
    font-size: 18px;  
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);  
    position: relative;  
    z-index: 2;  
    transition: transform 0.3s, box-shadow 0.3s;  
  }  
  
  .circle:hover {  
    transform: scale(1.1);  
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);  
  }  
  
  .content {  
    flex: 1;  
    background-color: #f0f0f0;  
    border-radius: 10px;  
    padding: 30px;  

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);  
    position: relative;  
    z-index: 1;  
    transition: transform 0.3s;  
    max-width: 450px;  
  }  
  
  /* Increased spacing between content and center line */  
  .timeline-event.left .content {  
    margin-right: 100px;  
  }  
  
  .timeline-event.right .content {  
    margin-left: 100px;  
  }  
  
  .content:hover {  
    transform: translateY(-5px);  
  }  
  
  /* Connector for right events */  
  .timeline-event.right .content::before {  
    content: '';  
    position: absolute;  
    right: -60px;  
    top: 30px;  
    width: 80px;  
    height: 40px;  
    background-color: transparent;  
    border-top: 6px solid #ccc;  
    border-right: 6px solid #ccc;  
    border-radius: 0 15px 0 0;  
    z-index: 0;  
  }  
  
  /* Connector for left events */  
  .timeline-event.left .content::before {  
    content: '';  
    position: absolute;  
    left: -60px;  
    top: 30px;  
    width: 80px;  
    height: 40px;  
    background-color: transparent;  
    border-top: 6px solid #ccc;  
    border-left: 6px solid #ccc;  
    border-radius: 15px 0 0 0;  
    z-index: 0;  
  }  
  
  .content h3 {  
    margin-top: 0;  
    color: #04173b;
  }  
  
  .content p {  
    margin-bottom: 0;  
    font-size: 15px;  
    color: #04173b;
  }  
  
  /* Repositioned icons based on content side */  
  .icon {  
    position: absolute;  
    top: -15px;  
    width: 40px;  
    height: 40px;  
    border-radius: 50%;  
    background-color: #f8f9fa;  
    display: flex;  
    align-items: center;  
    justify-content: center;  
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);  
    color: #555;  
    font-size: 18px;  
  }  
  
  /* Position icon on right side for right content */  
  .timeline-event.right .icon {  
    left: 20px;  
    right: auto;  
  }  
  
  /* Position icon on left side for left content */  
  .timeline-event.left .icon {  
    right: 20px;  
    left: auto;  
  }  
  
  .line-background {  
    width: 100%;  
    height: 4px;  
    background-color: #eb0a29;  
    position: relative;  
    z-index: -1;  
    margin-bottom: 20px;  
  }  


  .factory-footer {
  background: #04173b;
  color: #fff;
  padding: 30px 0 20px 0;
  border-top: 6px solid #eb0a29;
  font-family: "Montserrat", Arial, sans-serif;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  gap: 20px;
}

/* Generic footer column styling */
.footer-col {
  display: flex;
  flex-direction: column;
  text-align: left; /* Consistent left alignment for all columns */
}

/* Section Headers */
.footer-col h4 {
  color: #eb0a29;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Contact Section */
.contact-col {
  flex: 0 0 34%;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.address-item, .contact-item {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
}

.address-item i, .contact-item i {
  color: #eb0a29;
  min-width: 20px;
  margin-top: 3px;
  margin-right: 10px;
}

.address-item span {
  line-height: 1.4;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #eb0a29;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-start; /* Left-aligned social icons */
}

.social-icon {
  color: #fff;
  background: #eb0a29;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #fff;
  color: #eb0a29;
  transform: translateY(-3px);
}

/* Links Section */
.links-col {
  flex: 0 0 28%;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-links li a i {
  color: #eb0a29;
  margin-right: 8px;
  font-size: 0.85rem;
}

.footer-links li a:hover {
  color: #eb0a29;
  transform: translateX(5px);
}

/* Logo Section - Refactored for consistency */
.logo-col {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Changed from center to left alignment */
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Changed from center to left alignment */
  margin-bottom: 10px;
  width: 100%;
}

.footer-logo img {
  width: 320px;
  max-width: 100%;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 15px;
  border: 2px solid #eb0a29;
}

.logo-mesa {
  padding-top: 10px;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* Left-aligned logo */
}

.logo-mesa img {
  height: 100px;
  width: 200px;
  max-width: 100%;
  display: block;
  margin-bottom: 10px;
}

.footer-copyright {
  color: #c5ccdb;
  font-size: 0.85rem;
  text-align: left; /* Consistent left alignment */
  padding-top: 40px;
  width: 100%;
}

/* Media Queries - Improved for consistent alignment */
@media (max-width: 992px) {
  .footer-container {
    flex-wrap: wrap;
    justify-content: flex-start; /* Consistent left alignment when wrapping */
  }
  
  .contact-col {
    flex: 0 0 100%;
    margin-bottom: 30px;
  }
  
  .links-col, .logo-col {
    flex: 0 0 48%;
  }
  
  /* Remove extra padding on smaller screens */
  .links-col {
    padding-left: 0;
  }
  
  /* Maintain left alignment for all columns */
  .footer-col {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: stretch; /* Ensures all columns take full width */
  }
  
  .footer-col {
    width: 100%;
    margin-bottom: 30px;
    text-align: left; /* Consistent left alignment on mobile */
  }
  
  .logo-col {
    align-items: flex-start; /* Keep left alignment instead of center */
  }
  
  .logo-container {
    align-items: flex-start; /* Consistent with other elements */
  }
  
  .logo-mesa {
    justify-content: flex-start; /* Keep logo left-aligned on mobile */
  }
  
  .social-icons {
    justify-content: flex-start; /* Keep social icons left-aligned on mobile */
  }
  
  .footer-copyright {
    text-align: left; /* Keep copyright left-aligned for consistency */
  }
  
  /* Remove left padding on mobile */
  .links-col {
    padding-left: 0;
  }
}


.legal-links {
  margin-top: 78px;
  font-size: 0.8rem; /* Smaller than regular links */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.legal-links a {
  color: #c5ccdb; /* Lighter color than main links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #eb0a29;
  text-decoration: underline;
}

.legal-divider {
  margin: 0 5px;
  color: #c5ccdb;
}

@media (max-width:991.98px){
  .factory-footer        { padding:20px 0 12px; }      /* tablet   */
}
@media (max-width:575.98px){
  .factory-footer        { padding:18px 0 10px; }      /* phones   */
}
@media (max-width:991.98px){           /* ≤ 992px  =  tablet + phone */
  .footer-container      { flex-direction:column; gap:24px; }
  .footer-col            { width:100%; margin:0; }
}
@media (max-width:991.98px){
  .footer-col h4         { font-size:1rem;  margin-bottom:14px; }
  .footer-links a,
  .address-item,
  .contact-item          { font-size:0.95rem; }
}
@media (max-width:575.98px){
  .footer-links a,
  .address-item,
  .contact-item          { font-size:0.9rem;  line-height:1.35; }
}

/* 4)  Copyright & legal links get tighter                                      */
.footer-copyright        { padding-top:28px; }
@media (max-width:575.98px){
  .footer-copyright      { padding-top:18px; font-size:0.75rem; }
  .legal-links           { margin-top:12px;  font-size:0.72rem; }
}

/* 5)  Social icons + chevrons scale down a bit                                 */
@media (max-width:575.98px){
  .social-icon           { width:32px; height:32px; font-size:0.9rem; }
  .footer-links li a i   { margin-right:6px; font-size:0.78rem; }
}

/* 6)  Make the map responsive (no horizontal scrolling, shorter height)        */
.footer-col iframe       { width:100%; max-width:100%; border:0; }
@media (max-width:991.98px){
  .footer-col iframe     { height:240px; }        /* tablet */
}
@media (max-width:575.98px){
  .footer-col iframe     { height:190px; }        /* phones */
}

/* 7)  Reduce the huge top margin that pushed legal links way down              */
.legal-links             { margin-top:26px; }
@media (max-width:991.98px){
  .legal-links           { margin-top:18px; }
}