.gallery-section {
  display: flex;
  flex-direction: column;
  margin-top: 5%;
}

.gallery-container {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 24px;
  padding: 50px;
  flex-wrap: wrap;
}

.blog-main-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 14px;
  height: 100%;
}

.blog-article {
  display: flex;
  justify-content: center;
  width: 100%;
}

.blog-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 941px;
  min-height: 206.17px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 8px 40px 8px 8px;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.blog-article:hover {
  border: 2px solid var(--primary-green);
  border-radius: 16px;
}

.blog-content:hover .blog-arrow svg path {
  fill: var(--primary-green);
}

.blog-thumbnail {
  display: flex;
}

.blog-thumbnail img {
  width: 100%;
  max-width: 338px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.blog-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
  min-width: 0;
  gap: 8px;
}

.blog-details-content a {
  text-underline-offset: 12.5%;
  text-decoration-thickness: 8.5%;
  color: #2d8737;
}

.blog-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--text-dark);
}

.blog-description {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  margin-top: 4px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;

  /* Truncate the description of too long */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  width: 100%;
  max-width: 451px;
  height: calc(22px * 3);
}

.blog-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.blog-arrow path {
  cursor: pointer;
  fill: #84a0ad;
  transition: fill 0.3s ease;
}

.floating-container {
  position: sticky;
  top: 130px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 459px;
}

.blog-content.img-float {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 450px;
  border-radius: 16px;
  border: 4px solid #ffffff;
  background-color: transparent;
  padding: 10px;
}

.blog-content.img-float img {
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-content.img-float .float-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: var(--text-dark);
  margin-top: 12px;
  line-height: 32px;
}

.blog-content.img-float .float-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-family: "Roboto", sans-serif;
  width: 313px;
  height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  border: none;
  gap: 8px;
  background-color: #3fb84b;
  color: #ffff;
  cursor: pointer;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.blog-content.img-float .float-button:hover {
  background-color: #35a840;
}

/* Blog Details Styles */
.blog-details-container {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
  gap: 40px;
}

.blog-details-content {
  width: 785px;
  margin-right: 60px;
}

.blog-details-content-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.blog-details-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.social-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
}

.social-btn:hover {
  background-color: #f0f0f0;
}

.social-btn img {
  width: 20px;
  height: 20px;
}

.blog-details-content h2 {
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  letter-spacing: 0;
  color: var(--text-dark);
}

.blog-centered-text,
.blog-details-content h2:not(:first-of-type) {
  margin-top: 6%; 
}

.blog-details-content p {
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  margin-top: 10px;
  letter-spacing: 0;
  color: var(--text-gray);
}

.blog-details-image {
  margin-top: 24px;
  text-align: start;
}

.blog-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background-size: cover;
}

.blog-details-image-caption {
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0;
  margin-top: 10px;
  margin-left: 15px;
  color: var(--text-muted);
}

.blog-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 24px;
  width: 100%;
  margin-top: 50px;
}

.blog-image-gallery img {
  width: 100%;
  height: 255px;
  border-radius: 16px;
  object-fit: cover;
}

.blog-details-bullets {
  margin-top: 20px;
}

.blog-details-bullets h3 {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.blog-details-content ul {
  padding-left: 20px;
  color: var(--text-gray);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  margin-left: 5%;
}

.blog-details-content ul li::marker {
  font-size: 15px;
}

.blog-centered-text {
  display: flex;
  background-color: #cfdee5;
  border-radius: 16px;
  height: 240px;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  color: #000000;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
}

.page-btn {
  width: 48px;
  height: 48px;
  padding: 8px;
  border: none;
  background-color: #3fb84b;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-btn:hover {
  background-color: #34a340;
  transform: scale(1.05);
}

.page-btn.flipped .arrow-icon {
  transform: rotate(180deg);
}

.arrow-icon {
  width: 24px;
  height: 24px;
}

.page-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: #ffffff;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.page-circle:hover {
  background-color: #f1f1f1;
  color: #3fb84b;
  transform: scale(1.05);
}

.page-circle.active {
  background-color: #ffffff;
  border: 2px solid #46cc55;
}

.dots {
  padding: 0 6px;
  font-weight: bold;
  color: #888;
}

@media (max-width: 1532px) {
  .blog-details-content {
    width: 700px;
  }
}

@media (max-width: 1524px) {
  .floating-container {
    flex-direction: column;
    width: 30%;
  }
}

@media (max-width: 1480px) {
  .floating-container {
    flex-direction: column;
    width: 30%;
  }

  .blog-main-container {
    width: 60%;
  }

  .blog-details-content {
    width: 510px;
  }

  .blog-content.img-float .float-title {
    font-size: 18px;
    line-height: 24px;
  }

  .blog-content.img-float .float-button {
    width: 80%;
    font-size: 12px;
    height: 44px;
    margin-top: 1%;
  }
}

@media (max-width: 1120px) {
  .gallery-container {
    flex-direction: column;
    align-items: center;
    padding: 32px;
  }

  .blog-main-container {
    width: 100%;
  }

  .blog-content {
    align-items: center;
    padding: 16px;
    max-width: 100%;
  }

  .blog-details-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 785px;
    margin-right: 0px;
  }

  .blog-details-content h2 {
    text-align: center;
  }

  .blog-thumbnail img {
    width: 100%;
  }

  .blog-text {
    padding: 16px 0;
    text-align: center;
  }

  .floating-container {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .blog-content.img-float {
    width: 100%;
    max-width: 100%;
  }

  .blog-content.img-float .float-title {
    font-size: 18px;
    line-height: 24px;
  }

  .blog-content.img-float .float-button {
    width: 100%;
    font-size: 14px;
    height: 44px;
  }

  .blog-details-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .blog-details-social {
    flex-direction: row;
  }
}

@media (max-width: 1024px) {
  .blog-details-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .blog-details-content {
    width: 100%;
    margin-right: 0;
    padding: 0 16px;
  }

  .blog-details-content p {
    font-size: 20px;
    line-height: 30px;
  }

  .blog-details-content h2 {
    font-size: 28px;
    line-height: 38px;
  }

  .blog-details-content ul {
    font-size: 20px;
    line-height: 30px;
  }

  .blog-details-image-caption {
    font-size: 18px;
    line-height: 26px;
  }

  .blog-centered-text {
    font-size: 20px;
    line-height: 28px;
    height: auto;
    padding: 40px 16px;
  }

  .blog-details-social {
    flex-direction: row;
    justify-content: center;
  }

  .social-btn {
    width: 48px;
    height: 48px;
  }

  .social-btn img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 730px) {
  .blog-content {
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
  }

  .blog-title {
    font-size: 20px;
    line-height: 28px;
  }

  .blog-description {
    font-size: 14px;
    line-height: 20px;
    height: calc(20px * 3);
  }

  .floating-container {
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .blog-thumbnail {
    width: 100%;
  }

  .blog-thumbnail img {
    max-width: 100%;
  }

  .blog-content.img-float .float-title {
    font-size: 18px;
    line-height: 24px;
  }

  .blog-content.img-float .float-button {
    width: 100%;
    font-size: 14px;
    height: 44px;
  }

  .page-circle,
  .page-btn {
    width: 40px;
    height: 40px;
  }

  .blog-details-content p {
    font-size: 18px;
    line-height: 26px;
  }

  .blog-details-content h2 {
    font-size: 24px;
    line-height: 34px;
  }

  .blog-details-content ul {
    font-size: 18px;
    line-height: 28px;
  }

  .blog-details-image-caption {
    font-size: 16px;
    line-height: 24px;
  }

  .blog-centered-text {
    font-size: 18px;
    line-height: 26px;
    padding: 32px 12px;
  }

  .blog-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .blog-text {
    padding: 12px 0;
    text-align: center;
  }

  .blog-title {
    font-size: 18px;
    line-height: 26px;
  }

  .blog-description {
    font-size: 13px;
    line-height: 18px;
    height: calc(18px * 3);

    /* Truncate the description of too long */
    max-width: 351px;
    height: calc(25px * 3);
  }

  .blog-thumbnail {
    width: 100%;
  }

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

  .blog-content.img-float .float-title {
    font-size: 16px;
    line-height: 22px;
  }

  .blog-content.img-float .float-button {
    font-size: 13px;
    height: 42px;
  }

  .page-circle,
  .page-btn {
    width: 36px;
    height: 36px;
  }

  .blog-image-gallery {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 375px) {
  .blog-content {
    max-width: 100%;
  }

  .blog-title {
    font-size: 16px;
    line-height: 24px;
  }

  .blog-description {
    font-size: 12.5px;
    line-height: 17px;
    height: calc(5px * 3);

    /* Truncate the description of too long */
    max-width: 351px;
    height: calc(25px * 2);
  }

  .blog-content.img-float {
    height: 100%;
  }

  .blog-content.img-float img {
    max-height: 100px;
  }

  .blog-content.img-float .float-title {
    font-size: 12px;
    line-height: 20px;
  }

  .blog-content.img-float .float-button {
    font-size: 10px;
    width: 80%;
    gap: 0;
  }

  .page-circle,
  .page-btn {
    width: 34px;
    height: 34px;
  }

  .blog-details-content h2 {
    font-size: 20px;
    line-height: 30px;
  }

  .blog-details-content p {
    font-size: 16px;
    line-height: 24px;
  }

  .blog-details-bullets h3 {
    font-size: 20px;
  }

  .blog-details-content ul {
    font-size: 16px;
    line-height: 24px;
  }

  .blog-centered-text {
    font-size: 16px;
    line-height: 24px;
    padding: 24px 10px;
  }

  .social-btn {
    width: 40px;
    height: 40px;
  }

  .social-btn img {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 320px) {
  .blog-title {
    font-size: 15px;
    line-height: 22px;
  }

  .blog-description {
    font-size: 12px;
    line-height: 16px;
  }

  .blog-text {
    padding: 8px 0;
  }

  .page-circle,
  .page-btn {
    width: 32px;
    height: 32px;
  }
}
