/* Blog Page Header */
.page-header {
  background: linear-gradient(135deg, #105fab 0%, #35b654 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
}

.page-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-header-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-header-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-header {
    /* padding: 40px 0; */
  }

  .page-header-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-header-content p {
    font-size: 1rem;
  }
}

.blog-section {
  width: 100%;
  max-width: 100vw;
  padding: 80px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  font-family: "Nunito Sans", Arial, sans-serif;
  background: rgba(0, 96, 188, 0.0588235294);
}

.blog-header {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-header img {
  margin-right: -32px;
  z-index: 3;
}
@media (max-width: 768px) {
  .blog-header img {
    transform: scale(0.8);
    margin-right: -25px;
  }
}
.blog-header-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: #00abdc;
  z-index: 1;
}
.blog-header-title {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 521px;
  height: 47px;
  padding: 17px 86px;
  border-radius: 80px;
  background: linear-gradient(to right, #00abdc 0%, #005c76 100%);
  font-family: "Audiowide", Arial, sans-serif !important;
}
.blog-header-title p {
  font-size: 24px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .blog-header-title {
    width: auto;
    max-width: 90%;
    height: 40px;
    padding: 10px 30px;
  }
  .blog-header-title p {
    font-size: 18px;
  }
}

.blog-subheading {
  font-size: 32px;
  font-weight: 800;
  color: #545454;
  text-align: center;
  max-width: 800px;
}
@media (max-width: 768px) {
  .blog-subheading {
    font-size: 24px;
  }
}

.blog-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1200px;
}
@media (max-width: 1024px) {
  .blog-cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-cards-wrapper {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: transparent;
  gap: 16px;
  text-align: left;
}
.blog-card .blog-icon {
  width: 100%;
  height: 220px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.blog-card .blog-title {
  font-size: 22px;
  font-weight: 700;
  color: #545454;
  margin: 0;
  text-transform: capitalize;
  line-height: 1.2;
  text-align: left;
}
.blog-card .blog-description {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: normal;
  text-align: left;
}
.blog-card .blog-button {
  width: -moz-fit-content;
  width: fit-content;
  align-self: flex-start;
}
/* Mobile responsive styles for blog section */
@media (max-width: 768px) {
  .blog-section {
    /* padding: 60px 20px; */
    gap: 30px;
  }

  .blog-header-title {
    width: auto;
    max-width: 90%;
    height: 40px;
    padding: 10px 30px;
  }

  .blog-header-title p {
    font-size: 18px;
  }

  .blog-subheading {
    font-size: 24px;
    padding: 0 20px;
  }

  .blog-cards-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 20px;
  }

  .blog-card {
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  }

  .blog-card .blog-icon {
    height: 180px;
    border-radius: 8px;
  }

  .blog-card .blog-title {
    font-size: 20px;
    margin-top: 15px;
  }

  .blog-card .blog-description {
    font-size: 14px;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}

@media (max-width: 480px) {
  .blog-section {
    /* padding: 40px 15px; */
    gap: 25px;
  }

  .blog-subheading {
    font-size: 20px;
    padding: 0 15px;
  }

  .blog-cards-wrapper {
    gap: 20px;
    padding: 0 15px;
    width: 90%;
  }

  .blog-card {
    padding: 15px;
  }

  .blog-card .blog-icon {
    height: 160px;
  }

  .blog-card .blog-title {
    font-size: 18px;
  }

  .blog-card .blog-description {
    font-size: 13px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}