* {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.navbar {
  height: 60px;
  background-color: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.logo {
  background-image: url(https://famfonts.com/wp-content/uploads/tesla-wide.png);
  height: 55px;
  width: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.options {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 25px;
}

.options p {
  font-weight: 545;
}

/* Carousel container */
.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

/* Hide radio buttons */
.carousel-container input[type="radio"] {
  display: none;
}

/* Slides wrapper */
.carousel-slides {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

/* Individual slide */
.carousel-slide {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Slide backgrounds */
.slide1 {
  background-image: url('https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Homepage-Promotional-Carousel-Made-in-America-Desktop.png');
}

.slide2 {
  background-image: url('https://digitalassets.tesla.com/tesla-contents/image/upload/f_auto,q_auto/Homepage-Promotional-Carousel-American-Heroes-Desktop.png');
}

.hero-message {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

.hero-message h1 {
  font-size: 64px;
  margin-bottom: 5px;
}

.hero-message h4 {
  font-size: 20px;
}

.hero-message sup {
  font-size: 10px;
}

/* Slide transitions */
#slide1:checked ~ .carousel-slides {
  transform: translateX(0%);
}

#slide2:checked ~ .carousel-slides {
  transform: translateX(-50%);
}

/* Carousel arrows */
.carousel-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.arrow {
  background-color: rgba(0,0,0,0.3);
  color: white;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.arrow:hover {
  background-color: rgba(0,0,0,0.6);
}

/* Boxes slider */
.boxes-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 30px 60px;
  scroll-padding: 0 60px;
}

.boxes-slider::-webkit-scrollbar {
  display: none;
}

.box {
  position: relative;
  flex: 0 0 auto;
  width: 950px;
  height: 520px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: center;
}

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Top text for each box */
.box-text.top-text {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
}

.box-text.top-text .subheading {
  font-size: 14px;
  margin: 0;
  font-weight: 550;
  color: white;
}

/* Bottom text */
.box-text.bottom-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
}

.box-text.bottom-text h2 {
  font-size: 40px;
  margin: 5px 0;
}

/* Lease text fix for ALL boxes */
.box-text.bottom-text .lease {
  font-size: 17px;
  text-decoration: underline;
  margin-top: 5px;
  color: white;
}

.box-text.bottom-text sup {
  font-size: 10px;
}

.button-container {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.btn {
  width: 120px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.blue-btn {
  background-color: #3e6ae1;
  color: white;
}

.white-btn {
  background-color: white;
  color: #393c41;
}

/* Pagination dots for boxes */
.boxes-pagination {
  text-align: center;
  margin: 15px 0;
}

.boxes-pagination button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  margin: 5px;
  background-color: #bbb;
  cursor: pointer;
}

.boxes-pagination button.active {
  background-color: #171a20;
}

.hero-message .button-container .btn {
  width: 260px;
  height: 45px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
}

.hero-message .button-container .blue-btn {
  background-color: #3e6ae1;
  color: white;
}

.hero-message .button-container .white-btn {
  background-color: white;
  color: #393c41;
}

.custom-box-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 30px 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.custom-box {
  background: linear-gradient(#F6F6F6, #EDEDED);
  width: 700px;
  height: 220px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px 20px 40px;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.custom-box-content {
  max-width: 350px;
  margin-right: 20px;
}

.custom-box-content h2 {
  font-size: 30px;
  font-weight: bold;
  color: #171a20;
  margin-bottom: 10px;
}

.custom-box-content p {
  font-size: 19px;
  color: #5c5e62;
  margin-bottom: 12px;
}

.custom-box-content button {
  width: 230px;
  height: 40px;
  background-color: white;
  color: #171a20;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.custom-box-content button:hover {
  background-color: #f0f0f0;
}

.custom-box img {
  position: absolute;
  right: 0;
  height: 220px;
  width: auto;
  min-width: 220px;
  object-fit: cover;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.video-box {
  position: relative;
  width: 900px;
  height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  margin: 0;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(128, 128, 128, 0.65);
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
}

.video-controls:hover {
  background-color: rgba(128, 128, 128, 0.85);
}

.video-controls i {
  color: white;
  font-size: 24px;
}

.video-content {
  position: absolute;
  bottom: 25px;
  left: 40px;
  color: white;
}

.video-content h2 {
  font-size: 40px;
  margin-bottom: 12px;
}

.video-content .button-container {
  display: flex;
  gap: 20px;
}

.video-content .button-container .btn {
  width: 220px;
  height: 50px;
  font-size: 16px;
  border-radius: 4px;
  font-weight: 600;
}

.horizontal-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 60px;
}

.image-box {
  position: relative;
  flex: 1;
  height: 520px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-content {
  position: absolute;
  bottom: 25px;
  left: 40px;
  color: white;
}

.image-content h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.image-content .btn {
  width: 220px;
  height: 50px;
  font-size: 16px;
  border-radius: 4px;
  font-weight: 600;
  background-color: #3e6ae1;
  color: white;
}

#tesla-map-container {
  position: relative;
  width: calc(100% - 120px);
  height: 520px;
  margin: 30px 60px;
  border-radius: 8px;
  overflow: hidden;
}

#tesla-map {
  width: 100%;
  height: 100%;
}

.map-btn {
  position: absolute;
  bottom: 20px;
  background-color: white;
  border: none;
  color: #393c41;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.find-btn {
  left: 20px;
  padding: 0 15px;
  height: 40px;
  border-radius: 4px;
  font-weight: 600;
  gap: 8px;
}

.find-btn i {
  font-size: 16px;
}

.find-btn span {
  font-size: 14px;
}

.nav-btn {
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-btn i {
  font-size: 14px;
}

.map-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.map-hover-overlay p {
  color: white;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 4px;
}

.leaflet-interactive {
  stroke-width: 0;
}

.supercharger-dot {
  filter: drop-shadow(0 0 2px #e50914aa);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 100px;
}

.section-heading h1 {
  font-size: 40px;
  font-weight: bold;
  color: black;
  margin: 0;
}

.section-heading p {
  font-size: 20px;
  color: #5c5e62;
  margin: 5px 0 0 0;
}

.stats-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-number h2 {
  font-size: 40px;
  font-weight: bold;
  color: #000000;
  margin: 0;
}

.stat p {
  font-size: 20px;
  color: #5c5e62;
  margin: 5px 0 0 0;
}

.stat-icon {
  width: 32px;
  height: 32px;
}

.buttons-container {
  display: flex;
  gap: 20px;
  margin: 40px 100px; /* adjust margin as per your layout */
}

.button-black {
  background-color: black;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button-grey {
  background-color: #f4f4f4;
  color: black;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.button-black:hover,
.button-grey:hover {
  opacity: 0.8;
}

.second-boxes-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 30px 60px;
  scroll-padding: 0 60px;
}

.second-boxes-slider::-webkit-scrollbar {
  display: none;
}

.second-box {
  position: relative;
  flex: 0 0 auto;
  width: 950px;
  height: 520px;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: center;
}

.second-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Top text for each box */
.second-box-text.top-text {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
}

.second-box-text.top-text .subheading {
  font-size: 14px;
  margin: 0;
  font-weight: 550;
}

/* Bottom text */
.second-box-text.bottom-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
}

.second-box-text.bottom-text h2 {
  font-size: 40px;
  margin: 5px 0;
}

/* Lease text fix for ALL boxes */
.second-box-text.bottom-text .lease {
  font-size: 17px;
  text-decoration: none;
  margin-top: 5px;
  color: white;
}

.second-box-text.bottom-text sup {
  font-size: 10px;
}

.second-button-container {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.second-btn {
  width: 120px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.second-blue-btn {
  background-color: #3e6ae1;
  color: white;
}

.second-white-btn {
  background-color: white;
  color: #393c41;
}

/* Pagination dots for second boxes */
.second-boxes-pagination {
  text-align: center;
  margin: 15px 0;
}

.second-boxes-pagination button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  margin: 5px;
  background-color: #bbb;
  cursor: pointer;
}

.second-boxes-pagination button.active {
  background-color: #171a20;
}
.second-btn{
  text-decoration: none;
  border: none;
}

/* Footnotes and disclaimers styling */
p {
  font-size: 12px;
  color: #5c5d61; /* Tesla’s greyish text color */
  line-height: 1.6;
  margin: 8px 0;
}

/* Superscript numbers */
sup {
  font-size: 10px;
  vertical-align: super;
}

/* Links styling */
p a {
  color: #393c41;
  text-decoration: underline;
}

p a:hover {
  text-decoration: none;
}

/* Footer styling */
footer {
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

footer p {
  font-size: 12px;
  color: #5c5e62;
}

footer a {
  margin: 0 8px;
  color: #5c5d62;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
