/**
* Saharansub Personal Brand Website
* E-Mobility Page Stylesheet (Vanilla CSS)
*/

/*--------------------------------------------------------------
# 1. Design System & Base Styles
--------------------------------------------------------------*/
:root {
  --color-white: #FFFFFF; --color-light-green: #90EE90; --color-heading: #222222; --color-body: #444444;
  --color-ebike-bg: #1a1a1a; --color-ebike-accent: var(--color-light-green); --color-ebike-text: #e0e0e0;
  --font-default: "Roboto", system-ui, sans-serif; --font-heading: "Raleway", sans-serif; --font-nav: "Poppins", sans-serif;
  --container-width: 1140px; --header-height: 70px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-default); color: var(--color-body); background-color: var(--color-white); }
a { text-decoration: none; transition: color 0.3s; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-heading); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }

/*--------------------------------------------------------------
# Pre-Loader
--------------------------------------------------------------*/
#emobility-preloader { position: fixed; inset: 0; z-index: 9999; background: var(--color-ebike-bg); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s, visibility 0.5s; transition-delay: 0.5s; }
#emobility-preloader.loaded { opacity: 0; visibility: hidden; }
.animation-container { width: 200px; position: relative; }
.bike-icon { font-size: 40px; color: var(--color-ebike-accent); animation: bike-move 7s ease-in-out forwards; }
@keyframes bike-move { 0% { transform: translateX(-50px); } 100% { transform: translateX(210px); } }
.progress-bar { position: absolute; bottom: -10px; left: 0; height: 4px; background: var(--color-ebike-accent); width: 0; animation: progress-fill 7s linear forwards; }
@keyframes progress-fill { from { width: 0; } to { width: 100%; } }
#loading-phrase { margin-top: 20px; color: var(--color-ebike-text); font-family: var(--font-nav); font-size: 18px; animation: flash-text 1.5s ease-in-out infinite; }
@keyframes flash-text { 0% { opacity: 1; } 50% { opacity: 0.2; } 100% { opacity: 1; } }
.skip-button { position: absolute; bottom: 30px; background: transparent; border: 1px solid var(--color-ebike-text); color: var(--color-ebike-text); padding: 8px 15px; border-radius: 20px; cursor: pointer; opacity: 0; transition: opacity 0.5s; }
.skip-button.visible { opacity: 1; }

/*--------------------------------------------------------------
# Navigation System
--------------------------------------------------------------*/
.header { height: var(--header-height); padding: 15px 0; background: var(--color-white); box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 997; transition: transform 0.4s ease-in-out; }
.header.hidden { transform: translateY(-100%); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.header .logo { font-size: 30px; font-weight: 700; color: var(--color-heading); }
.main-navmenu-desktop { display: none; }
@media (min-width: 1024px) {
  .main-navmenu-desktop { display: block; }
  .main-navmenu-desktop ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
  .main-navmenu-desktop li { white-space: nowrap; }
  .main-navmenu-desktop a { display: flex; align-items: center; font-family: var(--font-nav); color: var(--color-body); position: relative; font-size: 14px; }
  .main-navmenu-desktop a i { font-size: 12px; }
  .main-navmenu-desktop a.active, .main-navmenu-desktop a:hover { color: var(--color-light-green); }
  .main-navmenu-desktop .toggle-dropdown { transition: transform 0.3s; margin-left: 5px; }
  .main-navmenu-desktop .dropdown { position: relative; }
  .main-navmenu-desktop .dropdown ul { display: block; position: absolute; left: 0; top: calc(100% + 15px); min-width: 220px; padding: 10px 0; background: var(--color-white); box-shadow: 0px 0px 30px rgba(0,0,0,0.1); border-radius: 4px; z-index: 99; transition: 0.3s; visibility: hidden; opacity: 0; }
  .main-navmenu-desktop .dropdown ul a { padding: 10px 20px; font-weight: 400; font-size: 14px; justify-content: flex-start; }
  .main-navmenu-desktop .dropdown:hover > ul { opacity: 1; top: 100%; visibility: visible; }
  .main-navmenu-desktop .dropdown:hover > a .toggle-dropdown { transform: rotate(180deg); }
}
.ebike-nav-desktop { display: none; }
@media (min-width: 1024px) {
  .ebike-nav-desktop { display: flex; justify-content: center; align-items: center; background-color: var(--color-ebike-bg); padding: 15px 0; transition: all 0.3s; width: 100%; z-index: 996; }
  .ebike-nav-desktop.is-sticky { position: fixed; top: 0; left: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
  .ebike-nav-desktop ul { list-style: none; display: flex; justify-content: center; align-items: center; gap: 40px; margin: 0; padding: 0;}
  .ebike-nav-desktop a { color: var(--color-ebike-text); font-family: var(--font-nav); font-weight: 500; font-size: 16px; }
  .ebike-nav-desktop a:hover { color: var(--color-ebike-accent); }
}

/* --- REFINED: Unified Mobile Navigation Overlay --- */
.mobile-nav-toggle { display: block; font-size: 28px; cursor: pointer; background: none; border: none; color: var(--color-heading); z-index: 999; }
.mobile-nav-toggle .bi-x { display: none; }
@media (min-width: 1024px) { .mobile-nav-toggle { display: none; } }
#mobile-nav-overlay { position: fixed; inset: 0; z-index: 998; background: var(--color-ebike-bg); transform: translateX(-100%); transition: transform 0.4s ease-in-out; padding: 80px 25px 40px 25px; overflow-y: auto; }
body.mobile-nav-active #mobile-nav-overlay { transform: translateX(0); }
body.mobile-nav-active { overflow: hidden; }
body.mobile-nav-active .mobile-nav-toggle { position: fixed; top: 20px; right: 15px; color: var(--color-white); }
body.mobile-nav-active .mobile-nav-toggle .bi-list { display: none; }
body.mobile-nav-active .mobile-nav-toggle .bi-x { display: block; }

/* MODIFIED: Styling for the content within the mobile overlay */
.mobile-nav-heading {
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: left;
}
.mobile-ebike-nav ul, .mobile-main-nav ul { display: flex; flex-direction: column; gap: 0; list-style: none; }
.mobile-ebike-nav a, .mobile-main-nav a { padding: 10px 0; font-size: 18px; justify-content: space-between; text-align: left; align-items: center; display: flex;}
.mobile-ebike-nav ul li { list-style-type: none; position: relative; padding-left: 15px; }
.mobile-ebike-nav ul li::before { content: '•'; position: absolute; left: 0; top: 10px; color: rgba(255, 255, 255, 0.4); }
.mobile-ebike-nav a { color: var(--color-ebike-accent); font-family: var(--font-nav); font-weight: 700; font-size: 20px; }
.mobile-main-nav a { color: var(--color-ebike-text); }
.mobile-main-nav a.active { color: var(--color-light-green); }
.mobile-main-nav a.active .toggle-dropdown { color: var(--color-light-green); }
.mobile-main-nav .dropdown.active > a .toggle-dropdown { transform: rotate(180deg); }
.mobile-main-nav .dropdown ul { display: none; padding-left: 20px; margin: 5px 0 10px 0; }
.mobile-main-nav .dropdown.active > ul { display: block; }
.mobile-main-nav .dropdown ul a { font-size: 16px; color: rgba(255,255,255,0.7); padding: 8px 0; }
.mobile-nav-divider { border: 0; height: 1px; background-color: rgba(255, 255, 255, 0.15); margin: 25px 0; }
.mobile-social-links { display: flex; justify-content: center; gap: 25px; padding-top: 20px; }
.mobile-social-links a { font-size: 22px; color: var(--color-ebike-text); }

/*--------------------------------------------------------------
# Hero Slider & Footer (Unchanged)
--------------------------------------------------------------*/
.emobility-hero { width: 100%; height: calc(100vh - var(--header-height)); position: relative; overflow: hidden; }
.slider-container { width: 100%; height: 100%; }
.slider-wrapper { display: flex; width: 100%; height: 100%; transition: transform 0.7s ease-in-out; }
.slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; display: flex; justify-content: center; align-items: center; text-align: center; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.slide::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 2; }
.slide-content { position: relative; z-index: 3; color: var(--color-white); padding: 20px; }
.slide-headline { font-size: 48px; font-weight: 700; color: var(--color-white); }
.slide-subtext { font-size: 22px; margin: 15px 0 30px; font-family: var(--font-default); }
.cta-button { display: inline-block; background: var(--color-ebike-accent); color: var(--color-heading); padding: 14px 35px; border-radius: 50px; font-weight: 700; font-family: var(--font-nav); transition: background-color 0.3s, transform 0.3s; }
.cta-button:hover { background-color: var(--color-white); transform: scale(1.05); }
.slider-control { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; background: rgba(255, 255, 255, 0.2); border: none; color: var(--color-white); width: 50px; height: 50px; border-radius: 50%; font-size: 24px; cursor: pointer; transition: background-color 0.3s; }
.slider-control:hover { background: rgba(255, 255, 255, 0.4); }
.slider-control.prev { left: 20px; }
.slider-control.next { right: 20px; }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: background-color 0.3s; }
.dot.active { background: var(--color-white); }
@media (max-width: 768px) { .slide-headline { font-size: 32px; } .slide-subtext { font-size: 18px; } }
.footer { background-color: #f8f9fa; text-align: center; font-size: 14px; padding: 40px 0; }
.footer .social-links-footer { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
.footer .social-links-footer a { font-size: 22px; color: #6c757d; }
.footer .social-links-footer a:hover { color: var(--color-light-green); }
.footer .copyright { margin-bottom: 5px; }
.footer .credits { color: #6c757d; font-size: 13px; }



/* e-mobility.css additions */

/*--------------------------------------------------------------
# Sales Agent Notice Section
--------------------------------------------------------------*/
.sales-agent-notice {
  background-color: var(--color-ebike-bg); /* Use the dark theme background */
  padding: 40px 0;
  text-align: center;
}

.sales-agent-notice p {
  color: var(--color-ebike-text); /* Light text for readability on dark bg */
  font-family: var(--font-nav);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
}

.sales-agent-notice strong {
  color: var(--color-ebike-accent); /* Highlight the brand name with the accent green */
  font-weight: 700; /* Make it slightly bolder */
}

@media (max-width: 768px) {
  .sales-agent-notice p {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# "Why Get an E-Bike?" Benefits Section
--------------------------------------------------------------*/
.benefits-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* A light grey to separate it from other sections */
}

.benefits-section .section-title {
  text-align: center;
  padding-bottom: 40px;
}

.benefits-section .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.benefits-grid {
  display: grid;
  gap: 25px;
  /* 4 columns on desktop */
  grid-template-columns: repeat(4, 1fr);
}

.benefit-card {
  background: var(--color-white);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  margin: 0 auto 20px auto;
  width: 64px;
  height: 64px;
  background: var(--color-light-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.benefit-icon i {
  color: var(--color-heading);
  font-size: 32px;
}

.benefit-card:hover .benefit-icon {
  background: var(--color-ebike-bg); /* Dark background on hover */
}

.benefit-card:hover .benefit-icon i {
  color: var(--color-light-green); /* Green icon on hover */
}

.benefit-card h3 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

/* The interactive part: hidden description */
.benefit-description {
  line-height: 1.6;
  font-size: 15px;
  color: var(--color-body);
  /* Initially hidden */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
}

/* Reveal description on card hover */
.benefit-card:hover .benefit-description {
  opacity: 1;
  max-height: 150px; /* Adjust if your text is longer */
  margin-top: 15px;
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
  .benefits-grid {
    /* 2 columns on tablets */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    /* 1 column on mobile */
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Product Showcase Carousel Section
--------------------------------------------------------------*/
.product-showcase-section {
  padding: 60px 0;
  background-color: var(--color-white);
  position: relative;
}

.product-showcase-section .section-title {
  text-align: center;
  padding-bottom: 40px;
}

.product-showcase-section .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.carousel-container-wrapper {
  position: relative;
  padding: 0 50px; /* Space for the control buttons */
}

.bike-carousel-container {
  overflow: hidden;
  width: 100%;
}

.bike-carousel-wrapper {
  display: flex;
  gap: 25px;
  transition: transform 0.5s ease-in-out;
}

.bike-card {
  flex: 0 0 calc(33.333% - 17px); /* Desktop: 3 cards visible. 17px is ~2/3 of the gap */
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bike-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-image-container {
  width: 100%;
  height: 250px;
  background-color: #f4f4f4; /* Light background for images */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.card-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #6c757d;
  flex-grow: 1; /* Pushes button to the bottom */
}

.bike-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.bike-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-body);
}

.bike-specs i {
  color: var(--color-light-green);
  font-size: 18px;
}

.availability-status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  align-self: flex-start;
  margin-bottom: 20px;
}

.status-available {
  background-color: rgba(144, 238, 144, 0.3); /* light green bg */
  color: #28a745; /* dark green text */
}

.status-preorder {
  background-color: rgba(255, 193, 7, 0.3); /* light yellow bg */
  color: #b98700; /* dark yellow text */
}

.cta-learn-more {
  display: inline-block;
  background: var(--color-ebike-bg);
  color: var(--color-white);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s;
}

.cta-learn-more:hover {
  background-color: #000;
  color: var(--color-white);
}

/* Carousel Controls Styling */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 45px;
  height: 45px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-heading);
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background: var(--color-light-green);
  color: var(--color-heading);
}

.carousel-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.95);
}

.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

/* --- Responsiveness for Carousel --- */
@media (max-width: 992px) {
  .bike-card {
    flex-basis: calc(50% - 13px); /* Tablet: 2 cards visible */
  }
}

@media (max-width: 768px) {
  .carousel-container-wrapper {
    padding: 0; /* Remove side padding on mobile */
  }
  .bike-card {
    flex-basis: 85%; /* Mobile: 1 card, not full width */
    flex-shrink: 0;
  }
  .carousel-control {
    bottom: -60px; /* Move buttons below on mobile */
    top: auto;
    transform: none;
  }
  .carousel-control.prev { left: calc(50% - 55px); }
  .carousel-control.next { right: calc(50% - 55px); }
  .product-showcase-section {
    padding-bottom: 100px; /* Add space for the moved buttons */
  }
}

/*--------------------------------------------------------------
# Learn to Ride Section
--------------------------------------------------------------*/
.learn-to-ride-section {
  padding: 80px 0;
  background-color: var(--color-ebike-bg); /* Use the dark theme background */
}

.learn-to-ride-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  align-items: center; /* Vertically center content in both columns */
  gap: 50px;
}

.learn-to-ride-image {
  border-radius: 10px;
  overflow: hidden; /* This is crucial for the image zoom effect */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.learn-to-ride-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Hover effect: Zoom the image when hovering over the grid container */
.learn-to-ride-grid:hover .learn-to-ride-image img {
  transform: scale(1.05);
}

.learn-to-ride-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-white); /* Light text on dark background */
  line-height: 1.3;
  margin-bottom: 20px;
}

.learn-to-ride-content p {
  color: var(--color-ebike-text);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.cta-button-secondary {
  display: inline-block;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-heading);
  background-color: var(--color-ebike-accent);
  padding: 14px 35px;
  border-radius: 50px;
  transition: background-color 0.3s, transform 0.3s;
}

.cta-button-secondary:hover {
  background-color: var(--color-white);
  transform: scale(1.05);
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
  .learn-to-ride-grid {
    gap: 30px;
  }
  .learn-to-ride-content h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .learn-to-ride-section {
    padding: 60px 0;
  }
  .learn-to-ride-grid {
    grid-template-columns: 1fr; /* Stack the columns on mobile */
  }
  .learn-to-ride-content {
    text-align: center; /* Center text when stacked */
  }
}

/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light grey background */
}

.blog-section .section-title {
  text-align: center;
  padding-bottom: 40px;
}

.blog-section .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-layout-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 2fr 1fr; /* 2/3 and 1/3 column layout */
}

.featured-posts-column,
.recent-posts-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Featured Card Specifics */
.blog-card.featured .post-image {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  max-height: 250px;
}

.blog-card.featured .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card.featured:hover .post-image img {
  transform: scale(1.05);
}

/* Recent Card (List) Specifics */
.blog-card.recent {
  flex-direction: row;
  align-items: center;
}

.blog-card.recent .post-content {
  flex-grow: 1;
}

/* General Post Content Styling */
.post-content {
  padding: 25px;
}

.post-category {
  display: inline-block;
  background: #eef0f2;
  color: #6c757d;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 15px;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.post-content h3 a {
  color: var(--color-heading);
  transition: color 0.3s;
}

.post-content h3 a:hover {
  color: var(--color-light-green);
}

.post-content p {
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.post-date {
  font-size: 13px;
  color: #a0a0a0;
  font-weight: 400;
}

.blog-card.recent .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.blog-card.recent .meta i {
  font-size: 20px;
  color: var(--color-heading);
  transition: transform 0.3s, color 0.3s;
}

.blog-card.recent:hover .meta i {
  transform: translateX(5px);
  color: var(--color-light-green);
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
  .blog-layout-grid {
    grid-template-columns: 1fr; /* Stack columns on tablet and mobile */
  }
}

/*--------------------------------------------------------------
# Safety Videos Section
--------------------------------------------------------------*/
.safety-videos-section {
  padding: 60px 0;
  background-color: var(--color-white);
}

.safety-videos-section .section-title {
  text-align: center;
  padding-bottom: 40px;
}
.safety-videos-section .section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.safety-videos-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 30px;
}

/* Main Video Player (Left Column) */
.main-video-player .video-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  aspect-ratio: 16 / 9;
  background-color: #e0e0e0;
}

.main-video-player .video-thumbnail iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.main-video-player .video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-video-player .video-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background-color 0.3s;
  z-index: 2;
}

.main-video-player .video-thumbnail:hover::before {
  background: rgba(0,0,0,0.4);
}
.main-video-player .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  border: none;
  font-size: 40px;
  color: var(--color-heading);
  cursor: pointer;
  transition: transform 0.3s, background-color 0.3s;
  z-index: 3;
}
.main-video-player .video-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-white);
}

.main-video-player .video-info {
  padding: 20px 5px;
}
.main-video-player .video-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.main-video-player .video-info p {
  font-size: 15px;
  color: var(--color-body);
}

/* Video Playlist (Right Column) */
.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  border-left: 4px solid transparent;
}
.playlist-item:hover {
  background-color: #f0f2f5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.playlist-item.active {
  background-color: #e6f8e6;
  border-left-color: var(--color-light-green);
}
.playlist-item .playlist-icon {
  font-size: 30px;
  color: var(--color-light-green);
}
.playlist-item h4 {
  font-size: 16px;
  font-weight: 500;
  flex-grow: 1;
  color: var(--color-heading);
}

/* Responsiveness */
@media (max-width: 992px) {
  .safety-videos-grid {
    grid-template-columns: 1fr;
  }
}


/*--------------------------------------------------------------
# Book Test Ride Section & Modal
--------------------------------------------------------------*/

/* --- The Main Section Card --- */
.book-test-ride-section {
  padding: 80px 0;
  background-color: var(--color-ebike-bg); /* Use the dark theme for contrast */
}

.test-ride-card {
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), var(--color-ebike-bg);
  padding: 50px 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.test-ride-card h2 {
  color: var(--color-white);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.test-ride-card p {
  color: var(--color-ebike-text);
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-button-test-ride {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  transition: all 0.3s ease;
  color: var(--color-heading);
  background: var(--color-ebike-accent);
  border: 2px solid var(--color-ebike-accent);
  cursor: pointer;
}

.cta-button-test-ride:hover {
  transform: scale(1.05);
  background: transparent;
  color: var(--color-ebike-accent);
}


/* --- The Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: var(--color-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 500px;
  width: 90%;
  
  /* Pop-up animation */
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close-button:hover {
  color: var(--color-heading);
}

.modal-content h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--color-heading);
}

.modal-contact-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.modal-contact-links a {
  font-size: 32px;
  color: var(--color-body);
  transition: color 0.3s, transform 0.3s;
}

.modal-contact-links a:hover {
  color: var(--color-light-green);
  transform: translateY(-3px);
}

/* --- Utility Class to prevent background scroll --- */
body.modal-open {
  overflow: hidden;
}

/*--------------------------------------------------------------
# Enhanced Footer Section
--------------------------------------------------------------*/

/* Main footer styling with the background image */
.footer {
  background-color: var(--color-ebike-bg); /* Dark background for the entire footer */
  color: var(--color-ebike-text);
  font-size: 14px;
  padding: 60px 0; /* Increased padding */
  position: relative;
  overflow: hidden; /* Important for containing the pseudo-element */
}

/* Watermark bike image */
.footer::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -80px;
  width: 400px; /* Adjust size as needed */
  height: 400px; /* Adjust size as needed */
  background-image: url('../images/the-running-king.png'); /* Replace with your desired bike image */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.05; /* Very subtle so it doesn't distract */
  z-index: 1;
  transition: transform 0.5s ease;
}

/* Animate the watermark on hover for a little flair */
.footer:hover::before {
  transform: rotate(-5deg) scale(1.05);
}

/* Ensure all footer content sits above the watermark */
.footer .container {
  position: relative;
  z-index: 2;
}

/* --- The new two-column grid layout --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Make the branding column wider */
  gap: 40px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Column 1: Branding and Warning */
.footer-branding .footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--color-white);
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: color 0.3s;
}

.footer-branding .footer-logo:hover {
  color: var(--color-ebike-accent);
}

.footer-branding .footer-logo img {
  max-width: 50px; /* Adjust logo size */
  filter: invert(1) grayscale(1) brightness(2); /* Makes a dark logo white */
}

.footer-warning {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-warning i {
  font-size: 24px;
  color: var(--color-ebike-accent);
  margin-top: 2px;
}

.footer-warning p {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Column 2: Site Map */
.footer-sitemap h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-sitemap h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--color-ebike-accent);
}

.footer-sitemap ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sitemap ul li {
  margin-bottom: 12px;
}

.footer-sitemap ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-sitemap ul a:hover {
  color: var(--color-ebike-accent);
  transform: translateX(5px);
}

/* Existing Footer Bottom Content */
.footer .social-links-footer {
  margin-bottom: 15px;
}

.footer .social-links-footer a {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7); /* Adjusted for dark bg */
}

.footer .social-links-footer a:hover {
  color: var(--color-light-green);
}

.footer .copyright {
  margin-bottom: 5px;
  color: var(--color-ebike-text);
}

.footer .credits {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5); /* Adjusted for dark bg */
}

/* --- Responsive styles for the footer --- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    text-align: center;
  }

  .footer-branding .footer-logo {
    justify-content: center;
  }

  .footer-warning {
    text-align: left; /* Keep warning text left-aligned for readability */
  }

  .footer-sitemap h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/*--------------------------------------------------------------
# Maintenance Section (Replicated from Learn to Ride)
--------------------------------------------------------------*/

/* Main section styling with a white background */
#maintenance-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

/* Override the text color for the h2 to be dark */
#maintenance-section .learn-to-ride-content h2 {
  color: var(--color-heading);
}

/* Override the paragraph text color to be dark */
#maintenance-section .learn-to-ride-content p {
  color: var(--color-body);
}

/* Ensure the hover effect on the image still works */
#maintenance-section .learn-to-ride-grid:hover .learn-to-ride-image img {
  transform: scale(1.05);
}

/*--------------------------------------------------------------
# E-Bike Desktop Navigation - Active State Underline
--------------------------------------------------------------*/

/* 1. Prepare the link for positioning the underline */
.ebike-nav-desktop a {
  position: relative; /* This is crucial for positioning the ::after element */
  padding-bottom: 5px; /* Adds a small space for the underline to live in */
}

/* 2. Create the hidden underline pseudo-element for all links */
.ebike-nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: var(--color-ebike-accent);
  
  /* Start hidden and prepare for animation */
  width: 0;
  transition: width 0.3s ease-in-out;
}

/* 3. Reveal the underline when a link is hovered OR if it has the .active class */
.ebike-nav-desktop a:hover::after,
.ebike-nav-desktop a.active::after {
  width: 100%; /* Animate width from 0 to 100% on hover/active */
}

/* 4. Update the existing hover style to also apply to the .active link text */
.ebike-nav-desktop a:hover,
.ebike-nav-desktop a.active {
  color: var(--color-ebike-accent);
}