/* Hero Section */
.hero-section3 {
  position: relative;
  width: 100%;
  min-height: 250px;
  background-color: var(--light-gray);
  overflow: hidden;
  padding: 6rem 2rem 0rem 2rem;
}
.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Text Styling */
.hero-text2 {
  text-align: center;
  z-index: 10;
  align-self: center;
}

.brand-name {
  color: var(--green);
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.tagline {
  font-size: 3rem;
  color: var(--green);
}

.story-text {
  color: var(--orange);
  font-family: "Square Peg", cursive;
  font-size: 4rem;
}

/* Left Illustration */
.left-illustration {
  width: 30%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.list-person-img {
  max-width: 100%;
  height: auto;
}

/* Right Illustration */
.right-illustration {
  width: 30%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: flex-end;
}

.car-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0;
}

/* Decorative Elements */
.decoration-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.plus-sign {
  position: absolute;
  font-size: 2rem;
  color: var(--green);
  opacity: 0.5;
}

.plus1 {
  top: 20%;
  left: 30%;
}

.plus2 {
  top: 60%;
  left: 70%;
}

.plus3 {
  top: 30%;
  right: 20%;
}

.dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--orange);
  opacity: 0.5;
}

.dot1 {
  top: 40%;
  left: 25%;
}

.dot2 {
  top: 15%;
  right: 35%;
}

.dot3 {
  top: 70%;
  right: 25%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .hero-section3 {
    padding: 2rem 0rem 0rem 0rem;
  }
  .hero-container {
    flex-direction: column;
    align-items: center;
  }

  .hero-text2 {
    order: 1;
    /* margin: 20px 0; */
  }

  .left-illustration,
  .right-illustration {
    width: 45%;
    justify-content: space-between;
    order: 2;
    margin: 2rem 0;
    z-index: 4;
  }
  .left-illustration {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 4;
  }

  .brand-name {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .story-text {
    font-size: 2rem;
  }

  .list-person-img,
  .car-img {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .left-illustration,
  .right-illustration {
    width: 45%;
  }

  .brand-name {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .story-text {
    font-size: 1.5rem;
  }
}

/* Blog Container */
.blog-section {
  padding: 50px 20px;
  background-color: var(--white);
}
.blog-section2 {
  padding: 30px 20px;
  background-color: var(--white);
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog Tabs */
.blog-tabs {
  display: flex;
  margin-bottom: 3rem;
  margin-left: 3rem;
}

.blog-cont {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-start;
}
.tab-btn {
  width: 8rem;
  height: 3rem;
  font-size: 16px;
  font-weight: 500;
  color: var(--green);
  cursor: pointer;
  margin-right: 1rem;
  background-color: var(--white);
  border: 1px solid var(--green);
  position: relative;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--white);
  background: var(--green);
  font-weight: 600;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.blog-content {
  width: 700px;
  max-width: 100%;
}
/* Blog Post */
.blog-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
  border-bottom: 1px solid var(--text);
}

.blog-img {
  width: 100%;
  overflow: hidden;
  object-fit: cover;
}

.blog-img img {
  width: 100%;
  height: 100%;
  max-height: 321px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post:hover .blog-img img {
  transform: scale(1.05);
}

.blog-text {
  padding: 20px 0rem;
  background-color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-title {
  font-size: 1.8rem;
  margin-top: 12px;
  color: var(--text);
  line-height: 1.4;
}

.blog-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text);
  padding: 0rem 0rem;
}

.dot-separator {
  margin: 0 8px;
}

.read-more {
  color: var(--green);
  font-weight: 600;
  font-size: 1.2rem;
  display: inline-block;
  transition: all 0.3s ease;
  text-decoration: underline;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.loadmore {
  background-color: var(--green);
  color: var(--white);
  text-decoration: none;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  margin: 2rem auto;
}

/* Subscription Banner */
.subscription-banner {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.09);
  width: 100%;
}

.subscription-banner h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.subscription-banner p {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.subscription-form {
  display: flex;
  width: 100%;
}

.subscription-form input {
  flex: 1;
  padding: 15px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  background: var(--light-gray);
  width: 100%;
}

.subscribe-btn {
  background-color: var(--green);
  color: var(--white);
  border: none;
  padding: 0 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 20px;
}

/* Carpool Banner */
.carpool-banner {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  /* aspect-ratio: 16/9; */
  min-height: 180px;
}

.carpool-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carpool-text2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to bottom, transparent, rgba(48, 162, 48, 0.7));
  color: var(--white);
  margin: 0rem 0rem;
}

.carpool-text2 h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.carpool-btn {
  background-color: var(--green);
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 2rem;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
}

/* Responsive adjustments for the banner section */
@media screen and (max-width: 992px) {
  .blog-tabs {
    margin: 0 auto 2rem 2rem;
  }
  .blog-cont {
    flex-direction: column;
    align-items: center;
  }

  .banner-section {
    margin-top: 40px;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .read-more {
    font-size: 1rem;
  }

  .subscription-banner,
  .carpool-banner {
    width: 100%;
    max-width: 320px;
  }
}

.banner-section {
  position: sticky;
  top: 10px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 320px;
  align-self: flex-start;
}

.blog-cont {
  display: flex;
  flex-direction: row;
  justify-content: center; /* Changed from space-around */
  align-items: flex-start;
  gap: 30px; /* Added a gap to ensure proper spacing */
}

@media screen and (max-width: 768px) {
  .banner-section {
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }

  .blog-cont {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }
  .subscription-banner,
  .carpool-banner {
    width: 100%;
    max-width: 100%;
  }

  .subscription-banner h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .subscription-banner p {
    font-size: 1rem;
    text-align: center;
  }

  .carpool-text2 h3 {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .subscription-banner {
    padding: 1.5rem;
  }

  .subscription-banner h3 {
    font-size: 1.2rem;
  }

  .carpool-text2 h3 {
    font-size: 1.2rem;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .carpool-text2 {
    padding: 15px;
  }

  .blog-title {
    font-size: 1.2rem;
  }
}

/* .blog-content {
  flex: 1;
  max-width: calc(100% - 350px);
} */

.list-person-img,
.car-img,
.brand-name,
.tagline,
.decoration-elements {
  opacity: 0;
  animation: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.list-person-img {
  animation-name: blog-person-img;
}
.car-img {
  animation-name: blog-car-img;
}
.brand-name,
.tagline {
  animation-name: blog-text;
}
.decoration-elements {
  animation-name: decoration-animate;
}

@keyframes blog-person-img {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes blog-car-img {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes blog-text {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translate(0);
  }
}
@keyframes decoration-animate {
  from {
    opacity: 0;
    scale: 0;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.blog-tabs,
.blog-grid {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate {
  opacity: 1;
  transform: translateY(0);
}
