@import url("styles.css");

.hero-section {
  background: url("../images/blogs/blog-hero-desktop.png");
  background-size: cover;
  background-position: center;
  padding: 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-section {
    background: url("../images/blogs/blog-hero-mobile.png");
    background-size: cover;
    background-position: center;
  }
}

.hero-section h1 {
  color: #e4e9e9;
  text-align: center;
  font-family: Manrope;
  font-size: 48px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0.24px;
}

.hero-section h1 .font-family-2 {
  color: #c7ee4e;
  font-family: "DM Serif Text";
  font-size: 58px;
  font-style: italic;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0.28px;
}

.hero-section p {
  color: #bcc;
  text-align: center;
  font-family: Manrope;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.16px;
}

.blogs h1 {
  color: #003134;
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0.18px;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 60px;
}

@media (max-width: 768px) {
  .blogs h1 {
    width: 343px;
    font-size: 32px !important;
    font-style: normal;
    letter-spacing: 0.16px;
    text-align: left;
  }
  .hero-section h1 .font-family-2 {
    font-size: 36px !important;
  }
  .hero-section h1 {
  font-size: 32px;
}
}

.blogs .card {
  border: none;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.blogs .img-container img {
  display: block;
  width: 100%;
  height: auto;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.blogs .card-body {
  margin: 0 !important;
  padding: 20px !important;
  border: 0.5px solid #b3c1c2;
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.blogs h5 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-100);
}

.blogs p {
  font-size: 0.9rem;
  color: var(--dark-grey);
}

.blogs .text-small {
  font-size: 0.8rem;
  color: var(--dark-grey);
}

.blogs a {
  color: #74950e;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.08px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-transform: capitalize;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.read-more-link img {
  width: 16px !important;
  height: 16px !important;
}

.blogs .btn {
  width: 100%;
  font-weight: 600;
  color: var(--primary-100);
  border-color: var(--primary-100);
  border: solid 1px;
  padding: 0.75rem 1rem;
  margin-right: 10px;
}

.blogs .btn:hover {
  color: white;
  background: var(--primary-100);
}

.blogs .img-container {
  overflow: hidden;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blogs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blogs img:hover {
  transform: scale(1.05);
}

.paginationjs {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin-top: 20px;
}

.paginationjs li {
  display: inline-block;
  margin-right: 10px;
}

.paginationjs li a {
  display: block;
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #f5f5f5;
  color: #333;
}

.paginationjs li.active a {
  background-color: var(--contrast-color);
  color: #fff;
}

.paginationjs li.disabled a {
  pointer-events: none;
  opacity: 0.5;
}

.bottomCTA {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 80px;
  gap: 40px;
  border-radius: 16px;
  background: #003134;
  margin-top: 50px;
}

.bottomCTA h2 {
  color: #e4e9e9;
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 0.18px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.bottomCTA span {
  color: #c7ee4e;
  font-family: "DM Serif Text";
  font-size: 40px;
  font-style: italic;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0.2px;
}

.bottomCTA p {
  color: #bcc;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.16px;
}

.primary-btn {
  display: flex;
  padding: 20px 40px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    #f3fbd9 -4.17%,
    #c7ee4e 14.96%,
    #85b000 88.25%,
    #9acc00 108.33%
  );
  color: #1a2e1a !important;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.08px;
  text-decoration: none !important;
  min-width: 300px;
  border: none;
  cursor: pointer;
}

.primary-btn:hover {
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    #ddf29b 10.42%,
    #c2eb45 27.41%,
    #a5d60e 88.41%,
    #85ae07 101.04%
  );
  box-shadow: 0 10px 15px 0 rgba(0, 0, 0, 0.15);
}

.primary-btn:active {
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    #85ae07 10.42%,
    #a5d60e 47.89%,
    #c2eb45 84.05%,
    #ddf29b 101.04%
  );
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25) inset,
    0 4px 5px 0 rgba(0, 0, 0, 0.2);
}
.bottomCTA a.secondary-btn {
  display: flex;
  padding: 20px 40px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  border: 0.5px solid #e4e9e9;
  background: linear-gradient(
    180deg,
    rgba(214, 214, 214, 0.2) 0%,
    rgba(0, 49, 52, 0.2) 100%
  );
  backdrop-filter: blur(3.5px);
  color: white;
  min-width: 300px;
  margin-top: 14px;
  text-decoration: none;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.08px;
}

.secondary-btn:hover {
  border-radius: 8px;
  border: 0.5px solid var(--Light-Mode-Main-Text, #003134);
  background: linear-gradient(
    180deg,
    rgba(214, 214, 214, 0.2) 0%,
    rgba(199, 238, 78, 0.2) 100%
  );
  box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3.5px);
}
.secondary-btn:active {
  border-radius: 8px;
  border: 0.5px solid var(--Light-Mode-Main-Text, #003134);
  background: linear-gradient(
    180deg,
    rgba(210, 223, 224, 0.2) 60.1%,
    rgba(199, 238, 78, 0.2) 100%
  );
  box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.1) inset,
    0 5px 5px 0 rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(3.5px);
}

.secondary-btn img {
  width: 19.897px;
  height: 20px;
  aspect-ratio: 19.9/20;
  margin-right: 3px;
}

@media (max-width: 768px) {
  .bottomCTA {
    flex-direction: column;
    align-items: stretch;
    padding: 40px 30px;
    gap: 30px;
  }

  .cta-text {
    order: 1;
    width: 100%;
  }

  .bottomCTA h2 {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .bottomCTA span {
    font-size: 36px;
  }

  .bottomCTA p {
    font-size: 15px;
    margin-bottom: 0;
  }

  .cta-buttons {
    order: 2;
    align-items: stretch;
    width: 100%;
  }

  .primary-btn,
  .secondary-btn {
    min-width: 100%;
    width: 100%;
    padding: 18px 30px;
    font-size: 15px;
  }

  .secondary-btn {
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .bottomCTA {
    padding: 30px 20px;
    gap: 25px;
    margin-top: 40px;
  }

  .bottomCTA h2 {
    font-size: 30px;
  }

  .bottomCTA span {
    font-size: 36px;
  }

  .bottomCTA p {
    font-size: 14px;
  }

  .primary-btn,
  .secondary-btn {
    padding: 16px 25px;
    font-size: 14px;
  }
}
