/*
 * Main stylesheet for the Automotive Experts company profile.
 *
 * This file defines a modern, responsive layout inspired by the
 * provided PDF. A simple palette of dark greys, crisp whites and
 * a bold yellow accent conveys professionalism and energy. Use CSS
 * variables for easy theme tweaks. Sections are spaced generously
 * and content scales gracefully on all screen sizes.
 */

:root {
  --primary-color: #e3a200; /* golden yellow accent */
  --dark-color: #0e0e0e;    /* nearly black backgrounds */
  --gray-color: #191919;    /* dark panels */
  --light-color: #ffffff;   /* white text */
  --text-color: #333333;    /* default dark text */
  --secondary-color: #f4f4f4; /* soft light grey for alternating sections */
}

/* Global resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fafafa;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Container utility */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header and navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
      max-height: 70px;
    height: 100%;
}

.logo {
  height: 50px;
  width: auto;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 20px;


}


.nav li a {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav li a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  color: var(--text-color);
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(0,0,0,0.6));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero .year {
  color: var(--primary-color);
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  margin-bottom: 30px;
  line-height: 1.4;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--dark-color);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #c78d00;
}

/* Section general styles */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
}

.section-title span {
  color: var(--primary-color);
}

.intro {
  max-width: 700px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 1.1rem;
  color: #ffffff;
}

/* Dark section variant */
.dark-section {
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* About section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.about-column {
  flex: 1;
  min-width: 280px;
}

.about-column h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.about-column p {
  font-size: 1rem;
  line-height: 1.6;
}

.about-images {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.about-img {
  width: 30%;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

/* Apply different clip paths to mimic the angled layouts from the PDF */
.about-img1 {
  clip-path: polygon(0 0, 100% 10%, 90% 100%, 0% 100%);
  background-image: url('/assets/autoexperts/images/images2/about1.jpg');
}

.about-img2 {
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 90%);
  background-image: url('/assets/autoexperts/images/images2/about2.jpg');
}

.about-img3 {
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 0% 100%);
  background-image: url('/assets/autoexperts/images/images2/about3.jpg');
}

/* Partners section */
.partners-cards {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  gap: 20px;
  justify-content: center;
}

.partner-card {
  background-color: var(--gray-color);
  padding: 30px;
  border-left: 6px solid var(--primary-color);
  flex: 1;
  min-width: 260px;
  transition: transform 0.3s ease;
}

.partner-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.partner-card p {
  font-size: 1rem;
  line-height: 1.5;
}

.partner-card:hover {
  transform: translateY(-5px);
}

/* Team section */
.team-cards {
  display: flex;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.team-card {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 280px;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.member-name {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.member-role {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #666;
}

.member-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Channels section */
.channel-grid {
  display: grid;
  text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.channel-card {
  background-color: var(--gray-color);
  padding: 30px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.channel-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.channel-card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.channel-card ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.channel-card li {
  font-size: 0.9rem;
  margin-bottom: 8px;
  list-style: disc;
  line-height: 1.4;
}

.channel-images {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.channel-img {
  flex: 1;
  height: 100px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}

/* Services section */
.services-grid {
  display: grid;
  text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-item {
  background-color: var(--secondary-color);
  border-left: 6px solid var(--primary-color);
  padding: 30px 20px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

.service-item h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Mission & Vision section */
.mission-vision-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.mission-item {
  flex: 1;
  min-width: 280px;
  background-color: var(--gray-color);
  padding: 60px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.mission-item:hover {
  transform: translateY(-5px);
}

.mission-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.mission-item h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.mission-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.tagline-box {
  margin-top: 15px;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 40px;
}

.tagline-box span {
  color: var(--primary-color);
  font-weight: 600;
}

/* Why work with us section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.why-item {
  background-color: var(--secondary-color);
  border-left: 6px solid var(--primary-color);
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.why-item:hover {
  transform: translateY(-5px);
}

.why-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.why-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Brands section */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.brand-item {
  background-color: var(--gray-color);
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
}

.brand-item h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.brand-item img {
  max-height: 60px;
  margin: 0 auto;
  margin-bottom: 10px;
}

.brand-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.brand-logos img {
  max-height: 64px;
}

/* Projects section */
.project-grid {
  display: grid;
  text-align: center;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project-item {
  background-color: var(--secondary-color);
  border-left: 6px solid var(--primary-color);
  padding: 25px 20px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
}

.project-item h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.project-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-images {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.project-img {
  flex: 1;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
}

/* Contact / footer */
.contact {
  position: relative;
  color: var(--light-color);
  background-size: cover;
  background-position: center;
  padding-top: 80px;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 0;
}

.contact-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 80px;
  margin-bottom: 20px;
}

.contact-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ddd;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #ddd;
}

.info-item i {
  color: var(--primary-color);
}

.info-item a {
  color: #ddd;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  font-size: 1.3rem;
  color: #ddd;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  /* background-color: #000; */
  color: #fff;
}

/* Responsive styles */
@media (max-width: 992px) {
  .nav ul {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 200px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  .nav ul.open {
    display: flex;
  }
  .nav li {
    margin-bottom: 15px;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .about-images {
    flex-direction: column;
  }
  .about-img {
    width: 100%;
    height: 180px;
  }
  .channel-images {
    flex-direction: column;
  }
  .channel-img {
    height: 80px;
  }
  .project-images {
    flex-direction: column;
  }
  .project-img {
    height: 180px;
  }
  .contact-container {
    flex-direction: column;
  }
  .header-container {
    gap: 10px;
  }
}

 .team-spotlight {
      background: #fff;
      color: #000;
      padding: 6rem 1rem;
    }

    .team-spotlight .section-title {
      text-align: center;
      font-size: 2.4rem;
      font-weight: 700;
      margin-bottom: 3rem;
      color: #111;
    }

    .team-spotlight .section-title span {
      color: #e3a200;
    }

    /* Team grid */
    .team-grid {
      display: flex;
      flex-direction: column;
      gap: 4rem;
    }

    /* Each team member */
    .team-member {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .team-member.reverse .member-info {
      flex-direction: row-reverse;
    }

    /* Main info container */
    .member-info {
      display: flex;
      align-items: center;
      gap: 2.5rem;
      max-width: 1000px;
      width: 100%;
      background: #f7f7f7;
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      padding: 2rem 2.5rem;
      transition: all 0.4s ease;
    }

    .member-info:hover {
      transform: translateY(-8px);
      box-shadow: 0 8px 30px rgba(227, 162, 0, 0.2);
    }

    .nav ul li a.active {
  color: #e3a200 !important;
  font-weight: 600;
}

.mobile-nav ul li a.active {
  color: #e3a200 !important;
  font-weight: 600;
}

.fade-section {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

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

    /* Icon circle */
    .member-icon {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: linear-gradient(135deg, #000, #e3a200);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 2rem;
      flex-shrink: 0;
      box-shadow: 0 4px 10px rgba(227, 162, 0, 0.3);
      transition: transform 0.3s ease;
    }

    .member-info:hover .member-icon {
      transform: scale(1.1);
    }

    /* Text block */
    .member-text {
      flex: 1;
      text-align: left;
    }

    .team-member.reverse .member-text {
      text-align: right;
    }

    .member-name {
      font-size: 1.4rem;
      font-weight: 600;
      color: #000;
    }

    .member-role {
      font-size: 1rem;
      color: #666;
      font-style: italic;
      margin-bottom: 0.8rem;
    }

    .gold-line {
      width: 60px;
      height: 3px;
      background: #e3a200;
      margin: 0.5rem 0 1rem 0;
    }

    .member-desc {
      font-size: 0.95rem;
      color: #444;
      line-height: 1.6;
    }

    /* Responsive adjustments */
    @media (max-width: 992px) {
      .member-info {
        flex-direction: column;
        text-align: center;
      }

      .team-member.reverse .member-info {
        flex-direction: column;
      }

      .member-text {
        text-align: center !important;
      }

      .member-icon {
        width: 80px;
        height: 80px;
        font-size: 1.6rem;
      }
    }

    .services-modern {
      background: linear-gradient(180deg, #ffffff, #f6f6f6);
      padding: 6rem 1rem;
      text-align: center;
    }

    .services-modern .section-title {
      font-size: 2.4rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: #111;
    }

    .services-modern .section-title span {
      color: #e3a200;
      /* gold accent */
    }

    .services-modern .intro {
      color: #444;
      max-width: 650px;
      margin: 0 auto 3rem;
      line-height: 1.7;
    }

    /* Grid layout */
    .services-wrapper {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      /* 4 cards per row on desktop */
      gap: 2rem;
      justify-items: center;
    }

    /* Make it responsive */
    @media (max-width: 1200px) {
      .services-wrapper {
        grid-template-columns: repeat(3, 1fr);
        /* 3 cards on large tablets/laptops */
      }
    }

    @media (max-width: 900px) {
      .services-wrapper {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cards on tablets */
      }
    }

    @media (max-width: 600px) {
      .services-wrapper {
        grid-template-columns: 1fr;
        /* 1 card on mobile */
      }
    }

    /* Service cards */
    .service-card {
      background: rgba(255, 255, 255, 0.85);
      border: 1px solid rgba(0, 0, 0, 0.05);
      backdrop-filter: blur(8px);
      border-radius: 16px;
      padding: 2rem 1.5rem;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
      transition: all 0.4s ease;
      text-align: center;
      max-width: 340px;
    }

    .service-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
      background: linear-gradient(135deg, #fff, #f7f7f7);
    }

    /* Icon styling (black & gold gradient) */
    .service-icon {
      width: 80px;
      height: 80px;
      margin: 0 auto 1rem;
      border-radius: 50%;
      background: linear-gradient(135deg, #e3a200, #e3a200);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 1.8rem;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease;
    }

    .service-card:hover .service-icon {
      transform: scale(1.1);
      box-shadow: 0 6px 15px rgba(227, 162, 0, 0.6);
    }

    /* Headings & text */
    .service-card h4 {
      font-size: 1.2rem;
      font-weight: 600;
      color: #111;
      margin-top: 0.5rem;
    }

    .service-card p {
      color: #555;
      font-size: 0.95rem;
      margin-top: 0.5rem;
      line-height: 1.6;
    }

    /* Responsive tweaks */
    @media (max-width: 768px) {
      .services-modern {
        padding: 4rem 1rem;
      }

      .service-card {
        max-width: 100%;
      }

      .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.4rem;
      }
    }

    .brands-gallery {
      background: #fff;
      color: #fff;
      padding: 3rem 1rem;
      text-align: center;
      position: relative;
    }

    .brands-gallery .section-title {
      font-size: 2.4rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.5rem;
      letter-spacing: 0.5px;
    }

    .brands-gallery .section-title span {
      color: #e3a200;
    }

    .brands-gallery .brands-intro {
      color: #d3d3d3;
      font-size: 1.05rem;
      max-width: 700px;
      margin: 0 auto 3.5rem;
      line-height: 1.7;
    }

    /* Main grid layout */
    .brands-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2.5rem;
      justify-items: center;
      align-items: stretch;
    }

    /* Each category block */
    .brand-block {
      background: white;
      border: 1px solid rgba(227, 162, 0, 0.3);
      border-radius: 14px;
      overflow: hidden;
      padding: 2rem 0rem 0.0rem;
      box-shadow: inset 0 0 20px rgba(227, 162, 0, 0.05);
      width: 100%;
      max-width: 320px;
      transition: all 0.4s ease;
      position: relative;
    }

    .brand-block:hover {
      border-color: #e3a200;
      box-shadow: 0 6px 25px rgba(227, 162, 0, 0.25);
      transform: translateY(-6px);
    }

    /* Title */
    .brand-block h4 {
      color: #e3a200;
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      
    }

    /* Logos inside each block */
    .brand-logos {
       background: linear-gradient(90deg, #e3a200, #cc8f00); 
       padding: 1.6rem 0; 
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
      height: 72%;
    }

    .brand-logos img {
      width: 100px;
      height: auto;
      object-fit: contain;
      
      opacity: 0.8;
      transition: all 0.3s ease;
    }

    .brand-block:hover .brand-logos img {
      filter: grayscale(0%) brightness(1);
      opacity: 1;
      transform: scale(1.08);
    }

    /* Decorative gold overlay effect */
    .brand-block::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(227, 162, 0, 0.15), rgba(255, 255, 255, 0));
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .brand-block:hover::before {
      opacity: 1;
    }

    /* Responsive tweaks */
    @media (max-width: 992px) {
      .brand-block {
        max-width: 100%;
      }

      .brand-logos img {
        width: 80px;
      }
    }

    @media (max-width: 600px) {
      .brands-gallery {
        padding: 4rem 1rem;
      }

      .brand-logos img {
        width: 70px;
      }
    }

     .mobile-nav {
      background-color: #e9e9ea;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 999;
      display: none;
      flex-direction: column;
      padding: 1rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .mobile-nav ul li {
      margin: 0.8rem 0;
      text-align: center;
    }

    .mobile-nav ul li a {
      text-decoration: none;
      color: #333;
      font-weight: 500;
    }

    /* Show when active */
    .mobile-nav.show {
      display: flex;
    }

    @media (max-width: 1160px) {
      .nav ul {
        font-size: 0.8rem;
      }
    }

    .projects-timeline {
      background: #fff;
      color: #111;
      padding: 3rem 1rem;
      position: relative;
      overflow: hidden;
    }

    .projects-timeline .section-title {
      font-size: 2.4rem;
      text-align: center;
      font-weight: 700;
      color: #111;
      margin-bottom: 1rem;
    }

    .projects-timeline .section-title span {
      color: #e3a200;
    }

    .projects-intro {
      text-align: center;
      color: #555;
      font-size: 1.05rem;
      max-width: 700px;
      margin: 0 auto 4rem;
      line-height: 1.7;
    }

    /* Timeline core */
    .timeline {
      position: relative;
      max-width: 1000px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 5rem;
    }

    /* Vertical gold line */
    .timeline::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 0;
      width: 3px;
      height: 100%;
      background: linear-gradient(180deg, #e3a200, #f7c844);
      transform: translateX(-50%);
      opacity: 0.8;
    }

    /* Timeline items */
    .timeline-item {
      display: flex;
      align-items: center;
      gap: 2rem;
      position: relative;
    }

    .timeline-item.reverse {
      flex-direction: row-reverse;
    }

    /* Image blocks */
    .timeline-image {
      flex: 1;
      height: 260px;
      border-radius: 16px;
      background-size: cover;
      background-position: center;
      border: 2px solid #e3a20033;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
      transition: all 0.4s ease;
    }

    .timeline-image:hover {
      transform: scale(1.05);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    /* Content cards */
    .timeline-content {
      flex: 1;
      background: #fff;
      padding: 2rem;
      border-radius: 14px;
      border-left: 4px solid #e3a200;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      transition: all 0.4s ease;
    }

    .timeline-item.reverse .timeline-content {
      border-left: none;
      border-right: 4px solid #e3a200;
    }

    .timeline-content h3 {
      font-size: 1.4rem;
      color: #e3a200;
      margin-bottom: 0.5rem;
    }

    .timeline-content p {
      color: #333;
      font-size: 0.95rem;
      line-height: 1.7;
    }

    /* Connector dots */
    .timeline-item::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 18px;
      height: 18px;
      background: #e3a200;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      box-shadow: 0 0 12px rgba(227, 162, 0, 0.4);
    }

    /* Responsive */
    @media (max-width: 996px) {

      /* keep timeline center line visible but slightly left aligned */
      .timeline::before {
        left: 25px;
        height: 100%;
        background: linear-gradient(180deg, #e3a200, #f5c844);
        z-index: 0;
      }

      /* stack every item vertically */
      .timeline-item,
      .timeline-item.reverse {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        position: relative;
        margin-bottom: 3rem;
      }

      /* timeline dot */
      .timeline-item::before {
        left: 25px;
        top: 15px;
        transform: translateY(0);
        z-index: 3;
      }

      /* ✅ make all images show first, above text */
      .timeline-image {
        order: 1;
        width: 100%;
        min-height: 240px;
        border-radius: 12px;
        background-size: cover;
        background-position: center;
        border: 2px solid #e3a20033;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        z-index: 1;
        position: relative;
      }

      /* content always below image */
      .timeline-content {
        order: 2;
        width: 100%;
        background: #fff;
        border-radius: 12px;
        border-left: 4px solid #e3a200;
        padding: 1.8rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        position: relative;
        z-index: 2;
      }

      .timeline-item.reverse .timeline-content {
        border-left: 4px solid #e3a200;
        /* same side for mobile */
        border-right: none;
      }

      /* smaller text adjustments */
      .timeline-content h3 {
        font-size: 1.3rem;
        color: #e3a200;
        margin-bottom: 0.5rem;
      }

      .timeline-content p {
        font-size: 0.95rem;
        color: #333;
        line-height: 1.6;
      }
    }

    @media (max-width: 600px) {
      .timeline::before {
        left: 15px;
      }

      .timeline-item::before {
        left: 15px;
      }

      .timeline-content {
        padding: 1.4rem;
      }

      .timeline-image {
        min-height: 200px;
      }
    }