/* ---- styles/blog.css ---- */
/* 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-post2 .blog-img img {
  height: auto;
  max-height: none;
}

.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);
}

/* ---- styles/blog-detail.css ---- */
/* Additional styles for blog detail page */

/* Blog Detail Content */
.blog-detail-content {
  margin-top: 20px;
  line-height: 1.6;
  color: var(--text);
  padding-bottom: 30px;
}

.blog-detail-content p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.blog-detail-content h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 1.8rem 0 1rem;
  font-weight: 600;
}

.blog-detail-content blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.2rem;
}

/* Section Title for Other Articles */
.section-title3 {
  font-size: 1.8rem;
  color: var(--green);
  margin: 2rem 0 1.5rem;
  font-weight: 600;
  text-align: left;
}

/* Other Articles Container */
.other-articles-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* For Firefox */
  -ms-overflow-style: none; /* For Internet Explorer and Edge */
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.other-articles-container::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

/* Article Card in Other Articles Section */
.article-card {
  min-width: 50%;
  /* max-width: 260px; */
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-image {
  width: 100%;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.article-content {
  padding: 1rem;
}

.article-content h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Navigation buttons for Other Articles */
.navigation-buttons {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--green);
  color: var(--green);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background-color: var(--green);
  color: var(--white);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border: 1px solid #ccc;
  color: #ccc;
}

.nav-btn:disabled:hover {
  background-color: var(--white);
  color: #ccc;
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
  .blog-detail-content h3 {
    font-size: 1.3rem;
  }

  .blog-detail-content p {
    font-size: 1rem;
  }

  .blog-detail-content blockquote {
    font-size: 1.1rem;
  }

  .section-title3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
  }

  .article-card {
    min-width: 220px;
    max-width: 220px;
  }
}

@media screen and (max-width: 480px) {
  .blog-detail-content h3 {
    font-size: 1.2rem;
  }

  .blog-detail-content p {
    font-size: 0.95rem;
  }

  .blog-detail-content blockquote {
    font-size: 1rem;
    padding-left: 1rem;
  }

  .section-title3 {
    font-size: 1.3rem;
  }

  .article-card {
    min-width: 200px;
    max-width: 200px;
  }

  .article-image {
    height: 140px;
  }

  .article-content h3 {
    font-size: 0.9rem;
  }

  .article-meta {
    font-size: 0.75rem;
  }

  .navigation-buttons {
    margin-top: 1rem;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
  }
}

.share-cont {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  color: var(--green);
  cursor: pointer;
}

.share-icon {
  padding-right: 0.5rem;
}
/* Updates for the Other Articles Section */
.other-articles-section {
  position: relative;
  padding: 0 50px; /* Add padding to make room for the side buttons */
}

/* Reposition navigation buttons to the sides */
.navigation-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0;
  transform: translateY(-50%);
  pointer-events: none; /* This allows clicks to pass through to article cards */
}

.nav-btn {
  position: relative;
  pointer-events: auto; /* Re-enable clicks for the buttons */
  z-index: 10;
}

.prev-btn {
  margin-left: -20px;
}

.next-btn {
  margin-right: -20px;
}

/* Article card adjustments */
/* .article-card {
  min-width: calc(33.333% - 1rem);
  max-width: none;
} */

/* Media queries updates */
@media screen and (max-width: 768px) {
  .other-articles-section {
    padding: 0;
  }

  .navigation-buttons {
    display: none;
  }
}
@media screen and (max-width: 480px) {
}

/* Blog post additions: figures, scrolling tables, link card */
.blog-detail-content figure { margin: 1.5em 0; }
.blog-detail-content figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.blog-detail-content .table-scroll { overflow-x: auto; margin: 1.5em 0; -webkit-overflow-scrolling: touch; }
.blog-detail-content .table-scroll table { margin: 0; min-width: 480px; }
.blog-detail-content caption { text-align: left; font-weight: 600; padding-bottom: 0.5em; }
.blog-detail-content,
.blog-detail-content p,
.blog-detail-content li { overflow-wrap: anywhere; }
.blog-detail-content .cta-card { margin: 2em 0; padding: 20px 24px; border: 1px solid rgba(0, 138, 0, 0.2); border-radius: 12px; background: #fff; }
.blog-detail-content .cta-card p { margin: 0 0 8px; }
.blog-detail-content .cta-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(0, 138, 0, 0.1); color: #006b00; font-size: 0.72em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.blog-detail-content .cta-title { font-size: 1.15em; font-weight: 700; line-height: 1.3; }
.blog-detail-content a.cta-link { display: inline-block; padding: 10px 18px; border: 0; border-radius: 8px; background: #008a00; color: #fff; font-weight: 600; }
.blog-detail-content a.cta-link:hover { background: #006b00; color: #fff; }
