/* loveable-style.css - Final Corrected Version */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

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

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

/* Navbar */
.navbar {
  background-color: #000000;
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: block;
  width: 180px;
  height: 50px;
  background-image: url('https://www.china-constructionmachinery.com/image-files/china-construction-machinery-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  flex-shrink: 0;
}

nav {
  position: relative;
}

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

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 10px 15px;
  display: block;
}

.nav-links li a:hover {
  color: #ffcc00;
}

/* Dropdowns */
.dropdown-content, .sub-dropdown-content {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1001;
  border-radius: 4px;
}

.dropdown-content {
  top: 100%;
  left: 0;
}

.sub-dropdown-content {
  top: 0;
  left: 100%;
}

.dropdown:hover .dropdown-content,
.sub-dropdown:hover .sub-dropdown-content {
  display: block;
}

.dropdown-content li, .sub-dropdown-content li {
  padding: 0;
}

.dropdown-content a, .sub-dropdown-content a {
  padding: 12px 16px;
  color: #fff;
  border-bottom: 1px solid #555;
}

.dropdown-content a:hover, .sub-dropdown-content a:hover {
  background-color: #555;
  color: #ffcc00;
}

/* Mobile Menu */
.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  padding: 10px;
}

/* Slider */
.slide-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
  max-width: 90%;
  z-index: 5;
}

.slider {
  position: relative;
  width: 100vw;
  height: 500px;
  overflow: hidden;
  margin: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: #ffcc00;
}

/* Hero Sections */


/* Black Hero Section - Added to loveable-style.css */
.black-hero {
  background-color: #000;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.black-hero .container {
  max-width: 1200px;
  margin: 0 auto;
}

.black-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.black-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 100%;
  padding: 0 20px;
}

.black-hero a {
  color: #ffcc00;
  font-weight: 600;
  text-decoration: underline;
}

.black-hero a:hover {
  color: #fff;
}

.black-hero .image-boxes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 30px auto;
  flex-wrap: wrap;
}

.black-hero .image-box {
  flex: 1;
  max-width: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.black-hero .image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.black-hero .image-box img:hover {
  transform: scale(1.05);
}


.china-hero, .right-choice-hero {
  padding: 60px 20px;
  text-align: center;
}

.china-hero .container, .right-choice-hero .container {
  max-width: 1200px;
  margin: 0 auto;
}

.china-hero h1, .right-choice-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.china-hero p, .right-choice-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 100%;
  padding: 0 20px;
}

.china-hero {
  background-color: #ffcc00;
  color: #000;
}

.china-hero a {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
}

.china-hero a:hover {
  color: #333;
}

.right-choice-hero {
  background-color: #ffffff;
  color: #000;
}

.rhino-hero {
  background-color: #e35205;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.rhino-hero .container {
  max-width: 1000px;
  margin: 0 auto;
}

.rhino-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.rhino-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.heracles-hero {
  background-color: #000;
  color: #fff;
  padding-bottom: 3rem;
}

/* Split Hero */
.split-hero {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 500px;
}

.split-hero-text {
  flex: 1;
  background-color: #000;
  color: #fff;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.split-hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.split-hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 30px;
}

.split-hero-text a:link,
.split-hero-text a:visited {
  color: #ffcc00; /* Yellow color for both unvisited and visited links */
  text-decoration: underline; /* Optional: ensures links are underlined */
}

.split-hero-text a:hover,
.split-hero-text a:active {
  color: #ffffff; /* Optional: change to white on hover/active for better UX */
  text-decoration: none; /* Optional: removes underline on hover */
}

/* Restored Split Hero Button */
.cta-button {
  display: inline-block;
  background-color: #000;
  color: #f7c600;
  padding: 12px 24px;
  font-weight: bold;
  border: 2px solid #f7c600;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
  background-color: #f7c600;
  color: #000;
}

.split-hero-image {
  flex: 1;
  background-size: cover;
  background-position: center;
}

/* Features */
.features {
  padding: 3rem 0;
  text-align: center;
}

.feature-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
}

.card h3 {
  margin-bottom: 1rem;
  color: #000;
}

/* Image Boxes */
.image-boxes {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.image-box {
  flex: 1;
  max-width: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 8px rgb(0 0 0 / 0.15);
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-box img:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Back to Top */
#goTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #222;
  color: #ffcc00;
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

#goTopBtn:hover {
  background-color: #333;
}

/* Responsive Styles */
@media (max-width: 940px) {
  .split-hero {
    flex-direction: column;
    height: auto;
  }

  .split-hero-text {
    padding: 40px 20px;
  }

  .split-hero-image {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .burger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #444;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 10px 0;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    text-align: left;
    padding: 0;
    border-bottom: 1px solid #555;
  }

  .dropdown-content, .sub-dropdown-content {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    background-color: #555;
    border-left: 3px solid #ffcc00;
  }

  .sub-dropdown-content {
    padding-left: 15px;
  }

  .dropdown > a, .sub-dropdown > a {
    position: relative;
  }

  .dropdown > a::after, .sub-dropdown > a::after {
    content: '+';
    position: absolute;
    right: 15px;
    font-size: 1.2rem;
  }

  .dropdown.active > a::after, .sub-dropdown.active > a::after {
    content: '-';
  }

  .dropdown.active .dropdown-content,
  .sub-dropdown.active .sub-dropdown-content {
    display: block;
  }

  .image-boxes {
    flex-direction: column;
    align-items: center;
  }

  .image-box {
    max-width: 100%;
  }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
  }
  .dropdown-content,
  .sub-dropdown-content {
    display: none !important;
  }
  .dropdown:hover .dropdown-content,
  .sub-dropdown:hover .sub-dropdown-content {
    display: block !important;
  }
}