/* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

/* Header styles */
.main-header {
  height: 70vh;
  background-image: url("images/tesla-header.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  margin-bottom: 2rem;
  background-color: #1f1f1f;
}

.article-header {
  height: 30vh;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  width: 100%;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo img {
  height: auto;
  width: 150px;
  max-width: 100%;
}

.logo span {
  color: #e82127;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #e82127;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.search-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1rem;
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  width: 200px;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.search-bar button {
  background: transparent;
  color: white;
}

.header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.header-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-content p {
  font-size: 1.2rem;
  max-width: 700px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main content styles */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.categories button {
  background: white;
  color: #333;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.categories button.active,
.categories button:hover {
  background: #e82127;
  color: white;
}

.article-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

.rating-value {
  font-weight: 600;
  color: #e82127;
  font-size: 0.9rem;
}

.rating-stars {
  color: #f0c040;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.related-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 0.8rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.sort-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: flex-end;
}

.sort-by select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  outline: none;
  cursor: pointer;
  min-width: 150px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.sort-by select:hover,
.sort-by select:focus {
  border-color: #e82127;
}

.sort-by label {
  font-weight: 500;
  color: #555;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.article-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e0e0e0;
  position: relative;
}

.article-image-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.article-image-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #777;
}

.article-card h2 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  line-height: 1.4;
}

.article-card p {
  margin-bottom: 1.5rem;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: justify;
}

.read-more {
  display: inline-block;
  color: #e82127;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: #333;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button.active,
.pagination button:hover {
  background: #e82127;
  color: white;
}

/* Article page styles */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: #777;
  font-size: 0.9rem;
}

.category {
  color: #e82127;
  font-weight: 500;
}

.article-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.article-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #777;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.author-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #777;
}

.article-author img[src$="author1.jpg"],
.article-author img[src$="author2.jpg"],
.article-author img[src$="author3.jpg"],
.article-author img[src$="author4.jpg"],
.article-author img[src$="avatar-placeholder.jpg"] {
  background-color: #777;
}

.article-featured-image {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  background-color: #e0e0e0;
  min-height: 300px;
}

.article-content {
  line-height: 1.8;
  color: #444;
  margin-bottom: 2rem;
  text-align: justify;
}

.article-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-content section p {
  text-align: justify;
}

/* Pros and Cons Layout */
.pros-cons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  clear: both;
}

.pros-section,
.cons-section {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pros-section h3,
.cons-section h3 {
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.3rem;
}

.pros-section h3 {
  color: #2ecc71;
}

.cons-section h3 {
  color: #e74c3c;
}

.pros-section ul,
.cons-section ul {
  margin: 0;
  padding-left: 1.5rem;
}

.pros-section li,
.cons-section li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .pros-cons-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Keep headings left-aligned for better readability */
.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: left;
}

.article-content a {
  color: #e82127;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #c81d22;
}

.article-image-container {
  margin: 2rem 0;
  text-align: center;
}

.article-content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-caption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  text-align: center;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content img {
  margin: 1.5rem 0;
  border-radius: 8px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  background: #f0f0f0;
  color: #555;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.share-buttons h3 {
  font-size: 1rem;
  font-weight: 500;
}

.share-buttons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.share-buttons a:hover {
  background: #e82127;
  color: white;
}

.related-articles h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Footer styles */
footer {
  position: relative;
  background: #222;
  color: white;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo a {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  height: 120px;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-logo span {
  color: #e82127;
}

.footer-logo p {
  color: #aaa;
  margin-top: 0.5rem;
  line-height: 1.6;
  text-align: center;
}

.footer-links h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  text-align: center;
}

.footer-links a {
  display: block;
  color: #aaa;
  margin-bottom: 0.8rem;
  text-align: center;
}

.footer-links a:hover {
  color: #e82127;
}

.newsletter-form {
  display: flex;
  margin-bottom: 1.5rem;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.newsletter-form button {
  background: #e82127;
  color: white;
  padding: 0 1.5rem;
  border-radius: 0 4px 4px 0;
  font-weight: 500;
}

.newsletter-tooltip {
  position: absolute;
  bottom: -30px;
  left: 0;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.newsletter-tooltip.show {
  opacity: 1;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.social-icons a:hover {
  background: #e82127;
}

.affiliate-disclosure {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 1.5rem;
  line-height: 1.4;
  text-align: center;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #777;
}

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

.article-card {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsive design */
@media (max-width: 1000px) and (min-width: 501px) {
  nav {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    flex: 0 0 auto;
    margin-right: auto;
    display: flex;
    align-items: center;
  }

  .nav-links {
    order: 2;
    flex: 1 0 100%;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
  }

  .search-bar {
    flex: 0 0 auto;
    width: auto;
    max-width: 200px;
    display: flex;
    align-items: center;
  }

  .search-bar input {
    width: 120px;
  }

  .main-header {
    height: 65vh;
  }

  /* Footer layout for tablet */
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-newsletter {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form {
    max-width: 500px;
    width: 100%;
  }

  .social-icons {
    margin-top: 1.5rem;
    justify-content: center;
  }

  .affiliate-disclosure {
    text-align: center;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .main-header {
    height: 60vh;
  }

  .article-container {
    margin-top: -1rem;
    padding: 1.5rem;
  }

  .article-title {
    font-size: 2rem;
  }
}

@media (max-width: 500px) {
  .main-header {
    height: 50vh;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .logo {
    margin: 0;
    order: 1;
  }

  .logo img {
    width: 100px;
  }

  .nav-links {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .search-bar {
    order: 3;
    width: 100%;
    max-width: 90%;
  }

  .search-bar input {
    width: 100%;
  }

  .header-content h1 {
    font-size: 1.8rem;
  }

  .categories {
    gap: 0.5rem;
  }

  .categories button {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  /* Footer quick links in 2 columns */
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
  }

  .footer-links h3 {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
  }

  .footer-links a {
    margin-bottom: 0.6rem;
  }
}

/* About page styles */
.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.about-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #555;
}

.about-text ul {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  color: #555;
  line-height: 1.8;
}

.contact-section {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 1rem;
}

.contact-section p {
  margin-bottom: 2rem;
  color: #555;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: #e82127;
  background: rgba(232, 33, 39, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item p {
  margin-bottom: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-bottom: 1rem;
  }

  .contact-info {
    gap: 2rem;
  }
}

/* Contact page styles */
.contact-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.contact-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form-container,
.contact-info-container {
  padding: 1.5rem;
  border-radius: 8px;
}

.contact-form-container {
  background: #f9f9f9;
}

.contact-form-container h2,
.contact-info-container h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #e82127;
}

.submit-btn {
  background: #e82127;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
  display: block;
  width: 100%;
  font-size: 1rem;
}

.submit-btn:hover {
  background: #c81d22;
}

.contact-info-container .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-direction: row;
}

.contact-info-container .contact-item i {
  font-size: 1.2rem;
  color: #e82127;
  background: rgba(232, 33, 39, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-container .contact-text {
  flex: 1;
}

.contact-info-container .contact-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.contact-info-container .contact-item p {
  color: #555;
  line-height: 1.5;
}

.social-connect {
  margin-bottom: 2rem;
}

.social-connect h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.social-connect .social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-connect .social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.3s ease;
}

.social-connect .social-icons a:hover {
  background: #e82127;
  color: white;
  transform: translateY(-3px);
}

.business-hours h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.business-hours p {
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-container {
    order: 2;
  }

  .contact-info-container {
    order: 1;
  }
}

/* Search functionality styles */
.search-indicator {
  background: #f9f9f9;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.3s ease forwards;
}

.search-indicator p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

.search-indicator strong {
  color: #e82127;
  font-weight: 600;
}

.clear-search {
  background: #e82127;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.clear-search:hover {
  background: #c81d22;
  transform: translateY(-2px);
}

/* Highlight search term in results */
.search-highlight {
  background-color: rgba(232, 33, 39, 0.1);
  color: #e82127;
  font-weight: 500;
  padding: 0 2px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .search-indicator {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }

  .search-indicator p {
    margin-bottom: 0.5rem;
  }
}

/* Cookie Consent Popup */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(33, 33, 33, 0.75);
  color: white;
  padding: 0.8rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.cookie-text {
  margin-bottom: 0.8rem;
  line-height: 1.4;
  font-size: 0.85rem;
}

.cookie-text p {
  margin-bottom: 0.4rem;
}

.cookie-text a {
  color: #e82127;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-buttons button {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.cookie-accept {
  background-color: #e82127;
  color: white;
}

.cookie-accept:hover {
  background-color: #c91c21;
}

.cookie-decline {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.cookie-decline:hover {
  border-color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .cookie-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-consent {
    padding: 0.7rem;
  }

  .cookie-text {
    font-size: 0.8rem;
  }
}

/* Article Hero Image */
.article-hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  margin: 30px 0;
  position: relative;
}

.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-hero-image a {
  display: block;
  position: relative;
}

.article-hero-image a:hover {
  opacity: 0.95;
}

/* Article page product display styles */
.product-display {
  display: block;
  margin: 20px 0;
  overflow: hidden;
}

.product-image-container {
  float: left;
  margin: 0 20px 10px 0;
}

.product-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  max-height: 230px;
  object-fit: contain;
}

.product-image:hover {
  transform: scale(1.03);
}

.product-text {
  text-align: justify;
}

.product-text p {
  text-align: justify;
}

@media (max-width: 600px) {
  .product-image-container {
    float: none;
    margin: 0 auto 20px;
    display: block;
  }
}

/* Add general styling for images in article sections to allow text wrapping */
.article-content section img {
  float: left;
  margin: 0 20px 10px 0;
  max-width: 130px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add clearfix to sections to handle floating elements */
.article-content section {
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Clear floats before pros-cons-container */
.pros-cons-container {
  clear: both;
  float: none;
  width: 100%;
  margin-top: 3rem;
}

@media (max-width: 600px) {
  .article-content section img {
    float: none;
    display: block;
    margin: 0 auto 20px;
  }
}

/* Tesla Referral Banner */
.tesla-referral-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: rgba(155, 27, 31, 0.9);
  padding: 0rem;
  text-align: center;
  backdrop-filter: blur(0px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

/* For home page banner */
.home-banner {
  display: block !important;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  background: rgba(155, 27, 31, 1) !important;
  z-index: 1001 !important;
  padding: 0.7rem !important;
}
/* floating banner */
.tesla-referral-banner.sticky {
  display: block;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  background: rgba(155, 27, 31, 0.9);
  backdrop-filter: blur(1px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  padding: 0.3rem;
  transition: opacity 0.3s ease;
}
/* footer banner in articles */
.tesla-referral-banner.footer-sticky {
  display: block;
  position: absolute;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  background: rgba(155, 27, 31, 1);
  transform: none;
  left: 0;
  right: 0;
  bottom: 100%;
  z-index: 1001;
  padding: 0.7rem;
  transition: opacity 0.3s ease;
}

/* Show banner in footer only on non-home pages */
body:not(.home-page) .tesla-referral-banner.footer-sticky {
  display: block;
}

.tesla-referral-banner a {
  color: white;
  text-decoration: none;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  display: inline-block;
  padding: 0rem 0rem;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tesla-referral-banner a:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .tesla-referral-banner,
  .tesla-referral-banner.sticky,
  .tesla-referral-banner.footer-sticky,
  .home-banner {
    max-width: 100%;
    padding: 0.5rem;
  }

  .tesla-referral-banner a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}
